Regenerated after Reid's change for uint64_t/u_int64_t (patch by Bill Wendling)
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for LLVM 1.4.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/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 -n "`(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   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME='LLVM'
424 PACKAGE_TARNAME='-llvm-'
425 PACKAGE_VERSION='1.4'
426 PACKAGE_STRING='LLVM 1.4'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 ac_subdirs_all="$ac_subdirs_all projects/${i}"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_unique_file=""Makefile.config.in""
468 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 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_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC95_ROOT USE_SPEC95 SPEC2000_ROOT USE_SPEC2000 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
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     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CXX_set=${CXX+set}
910 ac_env_CXX_value=$CXX
911 ac_cv_env_CXX_set=${CXX+set}
912 ac_cv_env_CXX_value=$CXX
913 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_env_CXXFLAGS_value=$CXXFLAGS
915 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CC_set=${CC+set}
926 ac_env_CC_value=$CC
927 ac_cv_env_CC_set=${CC+set}
928 ac_cv_env_CC_value=$CC
929 ac_env_CFLAGS_set=${CFLAGS+set}
930 ac_env_CFLAGS_value=$CFLAGS
931 ac_cv_env_CFLAGS_set=${CFLAGS+set}
932 ac_cv_env_CFLAGS_value=$CFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 System types:
1011   --build=BUILD     configure for building on BUILD [guessed]
1012   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1013   --target=TARGET   configure for building compilers for TARGET [HOST]
1014 _ACEOF
1015 fi
1016
1017 if test -n "$ac_init_help"; then
1018   case $ac_init_help in
1019      short | recursive ) echo "Configuration of LLVM 1.4:";;
1020    esac
1021   cat <<\_ACEOF
1022
1023 Optional Features:
1024   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026   --enable-shared[=PKGS]
1027                           build shared libraries [default=yes]
1028   --enable-static[=PKGS]
1029                           build static libraries [default=yes]
1030   --enable-fast-install[=PKGS]
1031                           optimize for fast installation [default=yes]
1032   --disable-libtool-lock  avoid locking (might break parallel builds)
1033   --enable-optimized      Compile with optimizations enabled (default is NO)
1034   --enable-spec95=ARG     Use spec95 as a benchmark (srcs in DIR)
1035   --enable-spec2000=ARG   Use spec2000 as a benchmark (srcs in DIR)
1036   --enable-povray=ARG     Use povray as a benchmark (srcs in DIR)
1037   --enable-precompiled_bytecode
1038                           Use pre-compiled bytecode (default is NO)
1039   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1040   --enable-jit            Enable Just In Time Compiling (default is YES)
1041
1042 Optional Packages:
1043   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046   --with-pic              try to use only PIC/non-PIC objects [default=use
1047                           both]
1048   --with-tags[=TAGS]
1049                           include additional configurations [automatic]
1050   --with-llvmgccdir       Location of LLVM GCC front-end
1051   --with-bcrepos          Location of Bytecode Repository
1052   --with-papi             Location of PAPI
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 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106 # absolute.
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112     cd $ac_dir
1113     # Check for guested configure; otherwise get Cygnus style configure.
1114     if test -f $ac_srcdir/configure.gnu; then
1115       echo
1116       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1117     elif test -f $ac_srcdir/configure; then
1118       echo
1119       $SHELL $ac_srcdir/configure  --help=recursive
1120     elif test -f $ac_srcdir/configure.ac ||
1121            test -f $ac_srcdir/configure.in; then
1122       echo
1123       $ac_configure --help
1124     else
1125       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126     fi
1127     cd $ac_popdir
1128   done
1129 fi
1130
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1133   cat <<\_ACEOF
1134 LLVM configure 1.4
1135 generated by GNU Autoconf 2.57
1136
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1141 _ACEOF
1142   exit 0
1143 fi
1144 exec 5>config.log
1145 cat >&5 <<_ACEOF
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1148
1149 It was created by LLVM $as_me 1.4, which was
1150 generated by GNU Autoconf 2.57.  Invocation command line was
1151
1152   $ $0 $@
1153
1154 _ACEOF
1155 {
1156 cat <<_ASUNAME
1157 ## --------- ##
1158 ## Platform. ##
1159 ## --------- ##
1160
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
1170 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
1178 _ASUNAME
1179
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181 for as_dir in $PATH
1182 do
1183   IFS=$as_save_IFS
1184   test -z "$as_dir" && as_dir=.
1185   echo "PATH: $as_dir"
1186 done
1187
1188 } >&5
1189
1190 cat >&5 <<_ACEOF
1191
1192
1193 ## ----------- ##
1194 ## Core tests. ##
1195 ## ----------- ##
1196
1197 _ACEOF
1198
1199
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1205 ac_configure_args=
1206 ac_configure_args0=
1207 ac_configure_args1=
1208 ac_sep=
1209 ac_must_keep_next=false
1210 for ac_pass in 1 2
1211 do
1212   for ac_arg
1213   do
1214     case $ac_arg in
1215     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217     | -silent | --silent | --silen | --sile | --sil)
1218       continue ;;
1219     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221     esac
1222     case $ac_pass in
1223     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224     2)
1225       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226       if test $ac_must_keep_next = true; then
1227         ac_must_keep_next=false # Got value, back to normal.
1228       else
1229         case $ac_arg in
1230           *=* | --config-cache | -C | -disable-* | --disable-* \
1231           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233           | -with-* | --with-* | -without-* | --without-* | --x)
1234             case "$ac_configure_args0 " in
1235               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236             esac
1237             ;;
1238           -* ) ac_must_keep_next=true ;;
1239         esac
1240       fi
1241       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242       # Get rid of the leading space.
1243       ac_sep=" "
1244       ;;
1245     esac
1246   done
1247 done
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log.  We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257   # Save into config.log some information that might help in debugging.
1258   {
1259     echo
1260
1261     cat <<\_ASBOX
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1265 _ASBOX
1266     echo
1267     # The following way of writing the cache mishandles newlines in values,
1268 {
1269   (set) 2>&1 |
1270     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271     *ac_space=\ *)
1272       sed -n \
1273         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275       ;;
1276     *)
1277       sed -n \
1278         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279       ;;
1280     esac;
1281 }
1282     echo
1283
1284     cat <<\_ASBOX
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1288 _ASBOX
1289     echo
1290     for ac_var in $ac_subst_vars
1291     do
1292       eval ac_val=$`echo $ac_var`
1293       echo "$ac_var='"'"'$ac_val'"'"'"
1294     done | sort
1295     echo
1296
1297     if test -n "$ac_subst_files"; then
1298       cat <<\_ASBOX
1299 ## ------------- ##
1300 ## Output files. ##
1301 ## ------------- ##
1302 _ASBOX
1303       echo
1304       for ac_var in $ac_subst_files
1305       do
1306         eval ac_val=$`echo $ac_var`
1307         echo "$ac_var='"'"'$ac_val'"'"'"
1308       done | sort
1309       echo
1310     fi
1311
1312     if test -s confdefs.h; then
1313       cat <<\_ASBOX
1314 ## ----------- ##
1315 ## confdefs.h. ##
1316 ## ----------- ##
1317 _ASBOX
1318       echo
1319       sed "/^$/d" confdefs.h | sort
1320       echo
1321     fi
1322     test "$ac_signal" != 0 &&
1323       echo "$as_me: caught signal $ac_signal"
1324     echo "$as_me: exit $exit_status"
1325   } >&5
1326   rm -f core core.* *.core &&
1327   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328     exit $exit_status
1329      ' 0
1330 for ac_signal in 1 2 13 15; do
1331   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332 done
1333 ac_signal=0
1334
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 echo >confdefs.h
1339
1340 # Predefined preprocessor variables.
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364 _ACEOF
1365
1366
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370   if test "x$prefix" != xNONE; then
1371     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372   else
1373     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374   fi
1375 fi
1376 for ac_site_file in $CONFIG_SITE; do
1377   if test -r "$ac_site_file"; then
1378     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380     sed 's/^/| /' "$ac_site_file" >&5
1381     . "$ac_site_file"
1382   fi
1383 done
1384
1385 if test -r "$cache_file"; then
1386   # Some versions of bash will fail to source /dev/null (special
1387   # files actually), so we avoid doing that.
1388   if test -f "$cache_file"; then
1389     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1391     case $cache_file in
1392       [\\/]* | ?:[\\/]* ) . $cache_file;;
1393       *)                      . ./$cache_file;;
1394     esac
1395   fi
1396 else
1397   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1399   >$cache_file
1400 fi
1401
1402 # Check that the precious variables saved in the cache have kept the same
1403 # value.
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408   eval ac_new_set=\$ac_env_${ac_var}_set
1409   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410   eval ac_new_val="\$ac_env_${ac_var}_value"
1411   case $ac_old_set,$ac_new_set in
1412     set,)
1413       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415       ac_cache_corrupted=: ;;
1416     ,set)
1417       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419       ac_cache_corrupted=: ;;
1420     ,);;
1421     *)
1422       if test "x$ac_old_val" != "x$ac_new_val"; then
1423         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426 echo "$as_me:   former value:  $ac_old_val" >&2;}
1427         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428 echo "$as_me:   current value: $ac_new_val" >&2;}
1429         ac_cache_corrupted=:
1430       fi;;
1431   esac
1432   # Pass precious variables to config.status.
1433   if test "$ac_new_set" = set; then
1434     case $ac_new_val in
1435     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437     *) ac_arg=$ac_var=$ac_new_val ;;
1438     esac
1439     case " $ac_configure_args " in
1440       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442     esac
1443   fi
1444 done
1445 if $ac_cache_corrupted; then
1446   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450    { (exit 1); exit 1; }; }
1451 fi
1452
1453 ac_ext=c
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486 ac_aux_dir=
1487 for ac_dir in autoconf $srcdir/autoconf; do
1488   if test -f $ac_dir/install-sh; then
1489     ac_aux_dir=$ac_dir
1490     ac_install_sh="$ac_aux_dir/install-sh -c"
1491     break
1492   elif test -f $ac_dir/install.sh; then
1493     ac_aux_dir=$ac_dir
1494     ac_install_sh="$ac_aux_dir/install.sh -c"
1495     break
1496   elif test -f $ac_dir/shtool; then
1497     ac_aux_dir=$ac_dir
1498     ac_install_sh="$ac_aux_dir/shtool install -c"
1499     break
1500   fi
1501 done
1502 if test -z "$ac_aux_dir"; then
1503   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505    { (exit 1); exit 1; }; }
1506 fi
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511
1512 if test ${srcdir} != "."
1513 then
1514         if test -f ${srcdir}/include/llvm/Config/config.h
1515         then
1516                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518    { (exit 1); exit 1; }; }
1519         fi
1520 fi
1521
1522 for i in `ls ${srcdir}/projects`
1523 do
1524   if test ${i} != "CVS"
1525   then
1526     if test -f ${srcdir}/projects/${i}/configure
1527     then
1528
1529
1530 subdirs="$subdirs projects/${i}"
1531
1532     fi
1533   fi
1534 done
1535
1536           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
1537
1538
1539                                                             ac_config_files="$ac_config_files Makefile.config include/llvm/Support/DataTypes.h include/llvm/Support/ThreadSupport.h include/llvm/ADT/hash_map include/llvm/ADT/hash_set include/llvm/ADT/iterator"
1540
1541
1542           ac_config_commands="$ac_config_commands Makefile"
1543
1544
1545           ac_config_commands="$ac_config_commands Makefile.common"
1546
1547
1548           ac_config_commands="$ac_config_commands examples/Makefile"
1549
1550
1551           ac_config_commands="$ac_config_commands lib/Makefile"
1552
1553
1554           ac_config_commands="$ac_config_commands runtime/Makefile"
1555
1556
1557           ac_config_commands="$ac_config_commands test/Makefile"
1558
1559
1560           ac_config_commands="$ac_config_commands test/Makefile.tests"
1561
1562
1563           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1564
1565
1566           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1567
1568
1569           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1570
1571
1572           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1573
1574
1575           ac_config_commands="$ac_config_commands test/Programs/Makefile.tests"
1576
1577
1578           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1579
1580
1581           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1582
1583
1584           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1585
1586
1587           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1588
1589
1590           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1591
1592
1593           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1594
1595
1596           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1597
1598
1599           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1600
1601
1602           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1603
1604
1605           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1606
1607
1608           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1609
1610
1611           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1612
1613
1614           ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1615
1616
1617           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1618
1619
1620           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1621
1622
1623           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1624
1625
1626           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1627
1628
1629           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1630
1631
1632           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1633
1634
1635           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1636
1637
1638           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1639
1640
1641           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1642
1643
1644           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1645
1646
1647           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1648
1649
1650           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1651
1652
1653           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1654
1655
1656           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1657
1658
1659           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1660
1661
1662           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1663
1664
1665           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1666
1667
1668           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1669
1670
1671           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1672
1673
1674           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1675
1676
1677           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1678
1679
1680           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1681
1682
1683           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1684
1685
1686           ac_config_commands="$ac_config_commands tools/Makefile"
1687
1688
1689           ac_config_commands="$ac_config_commands utils/Makefile"
1690
1691
1692           ac_config_commands="$ac_config_commands projects/Makefile"
1693
1694
1695
1696 # Find a good install program.  We prefer a C program (faster),
1697 # so one script is as good as another.  But avoid the broken or
1698 # incompatible versions:
1699 # SysV /etc/install, /usr/sbin/install
1700 # SunOS /usr/etc/install
1701 # IRIX /sbin/install
1702 # AIX /bin/install
1703 # AmigaOS /C/install, which installs bootblocks on floppy discs
1704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1707 # ./install, which can be erroneously created by make from ./install.sh.
1708 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1709 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1710 if test -z "$INSTALL"; then
1711 if test "${ac_cv_path_install+set}" = set; then
1712   echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1716 do
1717   IFS=$as_save_IFS
1718   test -z "$as_dir" && as_dir=.
1719   # Account for people who put trailing slashes in PATH elements.
1720 case $as_dir/ in
1721   ./ | .// | /cC/* | \
1722   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1723   /usr/ucb/* ) ;;
1724   *)
1725     # OSF1 and SCO ODT 3.0 have their own names for install.
1726     # Don't use installbsd from OSF since it installs stuff as root
1727     # by default.
1728     for ac_prog in ginstall scoinst install; do
1729       for ac_exec_ext in '' $ac_executable_extensions; do
1730         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1731           if test $ac_prog = install &&
1732             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1733             # AIX install.  It has an incompatible calling convention.
1734             :
1735           elif test $ac_prog = install &&
1736             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1737             # program-specific install script used by HP pwplus--don't use.
1738             :
1739           else
1740             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1741             break 3
1742           fi
1743         fi
1744       done
1745     done
1746     ;;
1747 esac
1748 done
1749
1750
1751 fi
1752   if test "${ac_cv_path_install+set}" = set; then
1753     INSTALL=$ac_cv_path_install
1754   else
1755     # As a last resort, use the slow shell script.  We don't cache a
1756     # path for INSTALL within a source directory, because that will
1757     # break other packages using the cache if that directory is
1758     # removed, or if the path is relative.
1759     INSTALL=$ac_install_sh
1760   fi
1761 fi
1762 echo "$as_me:$LINENO: result: $INSTALL" >&5
1763 echo "${ECHO_T}$INSTALL" >&6
1764
1765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1766 # It thinks the first close brace ends the variable substitution.
1767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1768
1769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1770
1771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1772
1773
1774 # Make sure we can run config.sub.
1775 $ac_config_sub sun4 >/dev/null 2>&1 ||
1776   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1777 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1778    { (exit 1); exit 1; }; }
1779
1780 echo "$as_me:$LINENO: checking build system type" >&5
1781 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1782 if test "${ac_cv_build+set}" = set; then
1783   echo $ECHO_N "(cached) $ECHO_C" >&6
1784 else
1785   ac_cv_build_alias=$build_alias
1786 test -z "$ac_cv_build_alias" &&
1787   ac_cv_build_alias=`$ac_config_guess`
1788 test -z "$ac_cv_build_alias" &&
1789   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1790 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1791    { (exit 1); exit 1; }; }
1792 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1793   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1794 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1795    { (exit 1); exit 1; }; }
1796
1797 fi
1798 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1799 echo "${ECHO_T}$ac_cv_build" >&6
1800 build=$ac_cv_build
1801 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1802 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1803 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1804
1805
1806 echo "$as_me:$LINENO: checking host system type" >&5
1807 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1808 if test "${ac_cv_host+set}" = set; then
1809   echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811   ac_cv_host_alias=$host_alias
1812 test -z "$ac_cv_host_alias" &&
1813   ac_cv_host_alias=$ac_cv_build_alias
1814 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1815   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1816 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1817    { (exit 1); exit 1; }; }
1818
1819 fi
1820 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1821 echo "${ECHO_T}$ac_cv_host" >&6
1822 host=$ac_cv_host
1823 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1824 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1825 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1826
1827
1828 echo "$as_me:$LINENO: checking target system type" >&5
1829 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1830 if test "${ac_cv_target+set}" = set; then
1831   echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833   ac_cv_target_alias=$target_alias
1834 test "x$ac_cv_target_alias" = "x" &&
1835   ac_cv_target_alias=$ac_cv_host_alias
1836 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1837   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1838 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1839    { (exit 1); exit 1; }; }
1840
1841 fi
1842 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1843 echo "${ECHO_T}$ac_cv_target" >&6
1844 target=$ac_cv_target
1845 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1846 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1847 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1848
1849
1850 # The aliases save the names the user supplied, while $host etc.
1851 # will get canonicalized.
1852 test -n "$target_alias" &&
1853   test "$program_prefix$program_suffix$program_transform_name" = \
1854     NONENONEs,x,x, &&
1855   program_prefix=${target_alias}-
1856
1857
1858 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1859 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1860 case $build in
1861         *-*-aix*)
1862              OS=AIX
1863
1864              platform_type="AIX"
1865              ;;
1866         *-*-cygwin*)
1867              OS=Cygwin
1868
1869              platform_type="Cygwin"
1870              ;;
1871         *-*-darwin*)
1872              OS=Darwin
1873
1874              platform_type="Darwin"
1875              ;;
1876         *-*-freebsd*)
1877              OS=Linux
1878
1879              platform_type="FreeBSD"
1880              ;;
1881         *-*-interix*)
1882              OS=SunOS
1883
1884              platform_type="Interix"
1885              ;;
1886         *-*-linux*)
1887              OS=Linux
1888
1889              platform_type="Linux"
1890              if test -d /home/vadve/lattner/local/x86/llvm-gcc
1891              then
1892                LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1893
1894              fi
1895              ;;
1896         *-*-solaris*)
1897              OS=SunOS
1898
1899              platform_type="SunOS"
1900              if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1901              then
1902                LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1903
1904              fi
1905              ;;
1906         *-*-win32*)
1907              OS=Win32
1908
1909              platform_type="Win32"
1910              ;;
1911         *)
1912              OS=Unknown
1913
1914              platform_type="Unknown"
1915              ;;
1916 esac
1917
1918 if test "$platform_type" = "Unknown" ; then
1919   { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1920 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1921    { (exit 1); exit 1; }; }
1922 fi
1923
1924           ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1925
1926
1927 echo "$as_me:$LINENO: result: $platform_type" >&5
1928 echo "${ECHO_T}$platform_type" >&6
1929
1930 echo "$as_me:$LINENO: checking target architecture" >&5
1931 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1932 case $target in
1933         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1934
1935                             ;;
1936 esac
1937
1938 case $target in
1939         i*86-*)
1940           ARCH="x86"
1941           ARCH=x86
1942
1943           ;;
1944         sparc*-*)
1945           ARCH="Sparc"
1946           ARCH=Sparc
1947
1948           ;;
1949         powerpc*-*)
1950           ARCH="PowerPC"
1951           ARCH=PowerPC
1952
1953           ;;
1954         *)
1955           ARCH="Unknown"
1956           ARCH=Unknown
1957
1958           ;;
1959 esac
1960
1961 echo "$as_me:$LINENO: result: $ARCH" >&5
1962 echo "${ECHO_T}$ARCH" >&6
1963
1964 ac_ext=cc
1965 ac_cpp='$CXXCPP $CPPFLAGS'
1966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1969 if test -n "$ac_tool_prefix"; then
1970   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1971   do
1972     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_CXX+set}" = set; then
1977   echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979   if test -n "$CXX"; then
1980   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1981 else
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH
1984 do
1985   IFS=$as_save_IFS
1986   test -z "$as_dir" && as_dir=.
1987   for ac_exec_ext in '' $ac_executable_extensions; do
1988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991     break 2
1992   fi
1993 done
1994 done
1995
1996 fi
1997 fi
1998 CXX=$ac_cv_prog_CXX
1999 if test -n "$CXX"; then
2000   echo "$as_me:$LINENO: result: $CXX" >&5
2001 echo "${ECHO_T}$CXX" >&6
2002 else
2003   echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2005 fi
2006
2007     test -n "$CXX" && break
2008   done
2009 fi
2010 if test -z "$CXX"; then
2011   ac_ct_CXX=$CXX
2012   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2013 do
2014   # Extract the first word of "$ac_prog", so it can be a program name with args.
2015 set dummy $ac_prog; ac_word=$2
2016 echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   if test -n "$ac_ct_CXX"; then
2022   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2023 else
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027   IFS=$as_save_IFS
2028   test -z "$as_dir" && as_dir=.
2029   for ac_exec_ext in '' $ac_executable_extensions; do
2030   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031     ac_cv_prog_ac_ct_CXX="$ac_prog"
2032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033     break 2
2034   fi
2035 done
2036 done
2037
2038 fi
2039 fi
2040 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2041 if test -n "$ac_ct_CXX"; then
2042   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2043 echo "${ECHO_T}$ac_ct_CXX" >&6
2044 else
2045   echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2047 fi
2048
2049   test -n "$ac_ct_CXX" && break
2050 done
2051 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2052
2053   CXX=$ac_ct_CXX
2054 fi
2055
2056
2057 # Provide some information about the compiler.
2058 echo "$as_me:$LINENO:" \
2059      "checking for C++ compiler version" >&5
2060 ac_compiler=`set X $ac_compile; echo $2`
2061 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2062   (eval $ac_compiler --version </dev/null >&5) 2>&5
2063   ac_status=$?
2064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065   (exit $ac_status); }
2066 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2067   (eval $ac_compiler -v </dev/null >&5) 2>&5
2068   ac_status=$?
2069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070   (exit $ac_status); }
2071 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2072   (eval $ac_compiler -V </dev/null >&5) 2>&5
2073   ac_status=$?
2074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075   (exit $ac_status); }
2076
2077 cat >conftest.$ac_ext <<_ACEOF
2078 #line $LINENO "configure"
2079 /* confdefs.h.  */
2080 _ACEOF
2081 cat confdefs.h >>conftest.$ac_ext
2082 cat >>conftest.$ac_ext <<_ACEOF
2083 /* end confdefs.h.  */
2084
2085 int
2086 main ()
2087 {
2088
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 ac_clean_files_save=$ac_clean_files
2094 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2095 # Try to create an executable without -o first, disregard a.out.
2096 # It will help us diagnose broken compilers, and finding out an intuition
2097 # of exeext.
2098 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2099 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2100 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2101 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2102   (eval $ac_link_default) 2>&5
2103   ac_status=$?
2104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105   (exit $ac_status); }; then
2106   # Find the output, starting from the most likely.  This scheme is
2107 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2108 # resort.
2109
2110 # Be careful to initialize this variable, since it used to be cached.
2111 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2112 ac_cv_exeext=
2113 # b.out is created by i960 compilers.
2114 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2115 do
2116   test -f "$ac_file" || continue
2117   case $ac_file in
2118     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2119         ;;
2120     conftest.$ac_ext )
2121         # This is the source file.
2122         ;;
2123     [ab].out )
2124         # We found the default executable, but exeext='' is most
2125         # certainly right.
2126         break;;
2127     *.* )
2128         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2129         # FIXME: I believe we export ac_cv_exeext for Libtool,
2130         # but it would be cool to find out if it's true.  Does anybody
2131         # maintain Libtool? --akim.
2132         export ac_cv_exeext
2133         break;;
2134     * )
2135         break;;
2136   esac
2137 done
2138 else
2139   echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2141
2142 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: C++ compiler cannot create executables
2145 See \`config.log' for more details." >&2;}
2146    { (exit 77); exit 77; }; }
2147 fi
2148
2149 ac_exeext=$ac_cv_exeext
2150 echo "$as_me:$LINENO: result: $ac_file" >&5
2151 echo "${ECHO_T}$ac_file" >&6
2152
2153 # Check the compiler produces executables we can run.  If not, either
2154 # the compiler is broken, or we cross compile.
2155 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2156 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2157 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2158 # If not cross compiling, check that we can run a simple program.
2159 if test "$cross_compiling" != yes; then
2160   if { ac_try='./$ac_file'
2161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162   (eval $ac_try) 2>&5
2163   ac_status=$?
2164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165   (exit $ac_status); }; }; then
2166     cross_compiling=no
2167   else
2168     if test "$cross_compiling" = maybe; then
2169         cross_compiling=yes
2170     else
2171         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2172 If you meant to cross compile, use \`--host'.
2173 See \`config.log' for more details." >&5
2174 echo "$as_me: error: cannot run C++ compiled programs.
2175 If you meant to cross compile, use \`--host'.
2176 See \`config.log' for more details." >&2;}
2177    { (exit 1); exit 1; }; }
2178     fi
2179   fi
2180 fi
2181 echo "$as_me:$LINENO: result: yes" >&5
2182 echo "${ECHO_T}yes" >&6
2183
2184 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2185 ac_clean_files=$ac_clean_files_save
2186 # Check the compiler produces executables we can run.  If not, either
2187 # the compiler is broken, or we cross compile.
2188 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2189 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2190 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2191 echo "${ECHO_T}$cross_compiling" >&6
2192
2193 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2194 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2196   (eval $ac_link) 2>&5
2197   ac_status=$?
2198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199   (exit $ac_status); }; then
2200   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2201 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2202 # work properly (i.e., refer to `conftest.exe'), while it won't with
2203 # `rm'.
2204 for ac_file in conftest.exe conftest conftest.*; do
2205   test -f "$ac_file" || continue
2206   case $ac_file in
2207     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2208     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2209           export ac_cv_exeext
2210           break;;
2211     * ) break;;
2212   esac
2213 done
2214 else
2215   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2218 See \`config.log' for more details." >&2;}
2219    { (exit 1); exit 1; }; }
2220 fi
2221
2222 rm -f conftest$ac_cv_exeext
2223 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2224 echo "${ECHO_T}$ac_cv_exeext" >&6
2225
2226 rm -f conftest.$ac_ext
2227 EXEEXT=$ac_cv_exeext
2228 ac_exeext=$EXEEXT
2229 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2230 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2231 if test "${ac_cv_objext+set}" = set; then
2232   echo $ECHO_N "(cached) $ECHO_C" >&6
2233 else
2234   cat >conftest.$ac_ext <<_ACEOF
2235 #line $LINENO "configure"
2236 /* confdefs.h.  */
2237 _ACEOF
2238 cat confdefs.h >>conftest.$ac_ext
2239 cat >>conftest.$ac_ext <<_ACEOF
2240 /* end confdefs.h.  */
2241
2242 int
2243 main ()
2244 {
2245
2246   ;
2247   return 0;
2248 }
2249 _ACEOF
2250 rm -f conftest.o conftest.obj
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252   (eval $ac_compile) 2>&5
2253   ac_status=$?
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); }; then
2256   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2257   case $ac_file in
2258     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2259     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2260        break;;
2261   esac
2262 done
2263 else
2264   echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2266
2267 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2270 See \`config.log' for more details." >&2;}
2271    { (exit 1); exit 1; }; }
2272 fi
2273
2274 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2275 fi
2276 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2277 echo "${ECHO_T}$ac_cv_objext" >&6
2278 OBJEXT=$ac_cv_objext
2279 ac_objext=$OBJEXT
2280 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2281 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2282 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2283   echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285   cat >conftest.$ac_ext <<_ACEOF
2286 #line $LINENO "configure"
2287 /* confdefs.h.  */
2288 _ACEOF
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h.  */
2292
2293 int
2294 main ()
2295 {
2296 #ifndef __GNUC__
2297        choke me
2298 #endif
2299
2300   ;
2301   return 0;
2302 }
2303 _ACEOF
2304 rm -f conftest.$ac_objext
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306   (eval $ac_compile) 2>&5
2307   ac_status=$?
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); } &&
2310          { ac_try='test -s conftest.$ac_objext'
2311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312   (eval $ac_try) 2>&5
2313   ac_status=$?
2314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315   (exit $ac_status); }; }; then
2316   ac_compiler_gnu=yes
2317 else
2318   echo "$as_me: failed program was:" >&5
2319 sed 's/^/| /' conftest.$ac_ext >&5
2320
2321 ac_compiler_gnu=no
2322 fi
2323 rm -f conftest.$ac_objext conftest.$ac_ext
2324 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2325
2326 fi
2327 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2328 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2329 GXX=`test $ac_compiler_gnu = yes && echo yes`
2330 ac_test_CXXFLAGS=${CXXFLAGS+set}
2331 ac_save_CXXFLAGS=$CXXFLAGS
2332 CXXFLAGS="-g"
2333 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2334 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2335 if test "${ac_cv_prog_cxx_g+set}" = set; then
2336   echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338   cat >conftest.$ac_ext <<_ACEOF
2339 #line $LINENO "configure"
2340 /* confdefs.h.  */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h.  */
2345
2346 int
2347 main ()
2348 {
2349
2350   ;
2351   return 0;
2352 }
2353 _ACEOF
2354 rm -f conftest.$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356   (eval $ac_compile) 2>&5
2357   ac_status=$?
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); } &&
2360          { ac_try='test -s conftest.$ac_objext'
2361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362   (eval $ac_try) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; }; then
2366   ac_cv_prog_cxx_g=yes
2367 else
2368   echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2370
2371 ac_cv_prog_cxx_g=no
2372 fi
2373 rm -f conftest.$ac_objext conftest.$ac_ext
2374 fi
2375 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2376 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2377 if test "$ac_test_CXXFLAGS" = set; then
2378   CXXFLAGS=$ac_save_CXXFLAGS
2379 elif test $ac_cv_prog_cxx_g = yes; then
2380   if test "$GXX" = yes; then
2381     CXXFLAGS="-g -O2"
2382   else
2383     CXXFLAGS="-g"
2384   fi
2385 else
2386   if test "$GXX" = yes; then
2387     CXXFLAGS="-O2"
2388   else
2389     CXXFLAGS=
2390   fi
2391 fi
2392 for ac_declaration in \
2393    ''\
2394    '#include <stdlib.h>' \
2395    'extern "C" void std::exit (int) throw (); using std::exit;' \
2396    'extern "C" void std::exit (int); using std::exit;' \
2397    'extern "C" void exit (int) throw ();' \
2398    'extern "C" void exit (int);' \
2399    'void exit (int);'
2400 do
2401   cat >conftest.$ac_ext <<_ACEOF
2402 #line $LINENO "configure"
2403 /* confdefs.h.  */
2404 _ACEOF
2405 cat confdefs.h >>conftest.$ac_ext
2406 cat >>conftest.$ac_ext <<_ACEOF
2407 /* end confdefs.h.  */
2408 #include <stdlib.h>
2409 $ac_declaration
2410 int
2411 main ()
2412 {
2413 exit (42);
2414   ;
2415   return 0;
2416 }
2417 _ACEOF
2418 rm -f conftest.$ac_objext
2419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420   (eval $ac_compile) 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); } &&
2424          { ac_try='test -s conftest.$ac_objext'
2425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426   (eval $ac_try) 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }; }; then
2430   :
2431 else
2432   echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 continue
2436 fi
2437 rm -f conftest.$ac_objext conftest.$ac_ext
2438   cat >conftest.$ac_ext <<_ACEOF
2439 #line $LINENO "configure"
2440 /* confdefs.h.  */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h.  */
2445 $ac_declaration
2446 int
2447 main ()
2448 {
2449 exit (42);
2450   ;
2451   return 0;
2452 }
2453 _ACEOF
2454 rm -f conftest.$ac_objext
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456   (eval $ac_compile) 2>&5
2457   ac_status=$?
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); } &&
2460          { ac_try='test -s conftest.$ac_objext'
2461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462   (eval $ac_try) 2>&5
2463   ac_status=$?
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); }; }; then
2466   break
2467 else
2468   echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2470
2471 fi
2472 rm -f conftest.$ac_objext conftest.$ac_ext
2473 done
2474 rm -f conftest*
2475 if test -n "$ac_declaration"; then
2476   echo '#ifdef __cplusplus' >>confdefs.h
2477   echo $ac_declaration      >>confdefs.h
2478   echo '#endif'             >>confdefs.h
2479 fi
2480
2481 ac_ext=c
2482 ac_cpp='$CPP $CPPFLAGS'
2483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2486
2487 ac_ext=c
2488 ac_cpp='$CPP $CPPFLAGS'
2489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492 if test -n "$ac_tool_prefix"; then
2493   for ac_prog in gcc
2494   do
2495     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2497 echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2499 if test "${ac_cv_prog_CC+set}" = set; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502   if test -n "$CC"; then
2503   ac_cv_prog_CC="$CC" # Let the user override the test.
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2507 do
2508   IFS=$as_save_IFS
2509   test -z "$as_dir" && as_dir=.
2510   for ac_exec_ext in '' $ac_executable_extensions; do
2511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2512     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514     break 2
2515   fi
2516 done
2517 done
2518
2519 fi
2520 fi
2521 CC=$ac_cv_prog_CC
2522 if test -n "$CC"; then
2523   echo "$as_me:$LINENO: result: $CC" >&5
2524 echo "${ECHO_T}$CC" >&6
2525 else
2526   echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6
2528 fi
2529
2530     test -n "$CC" && break
2531   done
2532 fi
2533 if test -z "$CC"; then
2534   ac_ct_CC=$CC
2535   for ac_prog in gcc
2536 do
2537   # Extract the first word of "$ac_prog", so it can be a program name with args.
2538 set dummy $ac_prog; ac_word=$2
2539 echo "$as_me:$LINENO: checking for $ac_word" >&5
2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2541 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2542   echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544   if test -n "$ac_ct_CC"; then
2545   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550   IFS=$as_save_IFS
2551   test -z "$as_dir" && as_dir=.
2552   for ac_exec_ext in '' $ac_executable_extensions; do
2553   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2554     ac_cv_prog_ac_ct_CC="$ac_prog"
2555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556     break 2
2557   fi
2558 done
2559 done
2560
2561 fi
2562 fi
2563 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2564 if test -n "$ac_ct_CC"; then
2565   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2566 echo "${ECHO_T}$ac_ct_CC" >&6
2567 else
2568   echo "$as_me:$LINENO: result: no" >&5
2569 echo "${ECHO_T}no" >&6
2570 fi
2571
2572   test -n "$ac_ct_CC" && break
2573 done
2574
2575   CC=$ac_ct_CC
2576 fi
2577
2578
2579 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2580 See \`config.log' for more details." >&5
2581 echo "$as_me: error: no acceptable C compiler found in \$PATH
2582 See \`config.log' for more details." >&2;}
2583    { (exit 1); exit 1; }; }
2584
2585 # Provide some information about the compiler.
2586 echo "$as_me:$LINENO:" \
2587      "checking for C compiler version" >&5
2588 ac_compiler=`set X $ac_compile; echo $2`
2589 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2590   (eval $ac_compiler --version </dev/null >&5) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }
2594 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2595   (eval $ac_compiler -v </dev/null >&5) 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }
2599 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2600   (eval $ac_compiler -V </dev/null >&5) 2>&5
2601   ac_status=$?
2602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); }
2604
2605 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2606 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2607 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2608   echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610   cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2612 /* confdefs.h.  */
2613 _ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h.  */
2617
2618 int
2619 main ()
2620 {
2621 #ifndef __GNUC__
2622        choke me
2623 #endif
2624
2625   ;
2626   return 0;
2627 }
2628 _ACEOF
2629 rm -f conftest.$ac_objext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631   (eval $ac_compile) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); } &&
2635          { ac_try='test -s conftest.$ac_objext'
2636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637   (eval $ac_try) 2>&5
2638   ac_status=$?
2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640   (exit $ac_status); }; }; then
2641   ac_compiler_gnu=yes
2642 else
2643   echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2645
2646 ac_compiler_gnu=no
2647 fi
2648 rm -f conftest.$ac_objext conftest.$ac_ext
2649 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2650
2651 fi
2652 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2653 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2654 GCC=`test $ac_compiler_gnu = yes && echo yes`
2655 ac_test_CFLAGS=${CFLAGS+set}
2656 ac_save_CFLAGS=$CFLAGS
2657 CFLAGS="-g"
2658 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2659 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2660 if test "${ac_cv_prog_cc_g+set}" = set; then
2661   echo $ECHO_N "(cached) $ECHO_C" >&6
2662 else
2663   cat >conftest.$ac_ext <<_ACEOF
2664 #line $LINENO "configure"
2665 /* confdefs.h.  */
2666 _ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h.  */
2670
2671 int
2672 main ()
2673 {
2674
2675   ;
2676   return 0;
2677 }
2678 _ACEOF
2679 rm -f conftest.$ac_objext
2680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681   (eval $ac_compile) 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); } &&
2685          { ac_try='test -s conftest.$ac_objext'
2686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687   (eval $ac_try) 2>&5
2688   ac_status=$?
2689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690   (exit $ac_status); }; }; then
2691   ac_cv_prog_cc_g=yes
2692 else
2693   echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2695
2696 ac_cv_prog_cc_g=no
2697 fi
2698 rm -f conftest.$ac_objext conftest.$ac_ext
2699 fi
2700 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2701 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2702 if test "$ac_test_CFLAGS" = set; then
2703   CFLAGS=$ac_save_CFLAGS
2704 elif test $ac_cv_prog_cc_g = yes; then
2705   if test "$GCC" = yes; then
2706     CFLAGS="-g -O2"
2707   else
2708     CFLAGS="-g"
2709   fi
2710 else
2711   if test "$GCC" = yes; then
2712     CFLAGS="-O2"
2713   else
2714     CFLAGS=
2715   fi
2716 fi
2717 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2718 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2719 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2720   echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722   ac_cv_prog_cc_stdc=no
2723 ac_save_CC=$CC
2724 cat >conftest.$ac_ext <<_ACEOF
2725 #line $LINENO "configure"
2726 /* confdefs.h.  */
2727 _ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h.  */
2731 #include <stdarg.h>
2732 #include <stdio.h>
2733 #include <sys/types.h>
2734 #include <sys/stat.h>
2735 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2736 struct buf { int x; };
2737 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2738 static char *e (p, i)
2739      char **p;
2740      int i;
2741 {
2742   return p[i];
2743 }
2744 static char *f (char * (*g) (char **, int), char **p, ...)
2745 {
2746   char *s;
2747   va_list v;
2748   va_start (v,p);
2749   s = g (p, va_arg (v,int));
2750   va_end (v);
2751   return s;
2752 }
2753 int test (int i, double x);
2754 struct s1 {int (*f) (int a);};
2755 struct s2 {int (*f) (double a);};
2756 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2757 int argc;
2758 char **argv;
2759 int
2760 main ()
2761 {
2762 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2763   ;
2764   return 0;
2765 }
2766 _ACEOF
2767 # Don't try gcc -ansi; that turns off useful extensions and
2768 # breaks some systems' header files.
2769 # AIX                   -qlanglvl=ansi
2770 # Ultrix and OSF/1      -std1
2771 # HP-UX 10.20 and later -Ae
2772 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2773 # SVR4                  -Xc -D__EXTENSIONS__
2774 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2775 do
2776   CC="$ac_save_CC $ac_arg"
2777   rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779   (eval $ac_compile) 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); } &&
2783          { ac_try='test -s conftest.$ac_objext'
2784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785   (eval $ac_try) 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); }; }; then
2789   ac_cv_prog_cc_stdc=$ac_arg
2790 break
2791 else
2792   echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795 fi
2796 rm -f conftest.$ac_objext
2797 done
2798 rm -f conftest.$ac_ext conftest.$ac_objext
2799 CC=$ac_save_CC
2800
2801 fi
2802
2803 case "x$ac_cv_prog_cc_stdc" in
2804   x|xno)
2805     echo "$as_me:$LINENO: result: none needed" >&5
2806 echo "${ECHO_T}none needed" >&6 ;;
2807   *)
2808     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2809 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2810     CC="$CC $ac_cv_prog_cc_stdc" ;;
2811 esac
2812
2813 # Some people use a C++ compiler to compile C.  Since we use `exit',
2814 # in C++ we need to declare it.  In case someone uses the same compiler
2815 # for both compiling C and C++ we need to have the C++ compiler decide
2816 # the declaration of exit, since it's the most demanding environment.
2817 cat >conftest.$ac_ext <<_ACEOF
2818 #ifndef __cplusplus
2819   choke me
2820 #endif
2821 _ACEOF
2822 rm -f conftest.$ac_objext
2823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824   (eval $ac_compile) 2>&5
2825   ac_status=$?
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); } &&
2828          { ac_try='test -s conftest.$ac_objext'
2829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830   (eval $ac_try) 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); }; }; then
2834   for ac_declaration in \
2835    ''\
2836    '#include <stdlib.h>' \
2837    'extern "C" void std::exit (int) throw (); using std::exit;' \
2838    'extern "C" void std::exit (int); using std::exit;' \
2839    'extern "C" void exit (int) throw ();' \
2840    'extern "C" void exit (int);' \
2841    'void exit (int);'
2842 do
2843   cat >conftest.$ac_ext <<_ACEOF
2844 #line $LINENO "configure"
2845 /* confdefs.h.  */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h.  */
2850 #include <stdlib.h>
2851 $ac_declaration
2852 int
2853 main ()
2854 {
2855 exit (42);
2856   ;
2857   return 0;
2858 }
2859 _ACEOF
2860 rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862   (eval $ac_compile) 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); } &&
2866          { ac_try='test -s conftest.$ac_objext'
2867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868   (eval $ac_try) 2>&5
2869   ac_status=$?
2870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); }; }; then
2872   :
2873 else
2874   echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2876
2877 continue
2878 fi
2879 rm -f conftest.$ac_objext conftest.$ac_ext
2880   cat >conftest.$ac_ext <<_ACEOF
2881 #line $LINENO "configure"
2882 /* confdefs.h.  */
2883 _ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h.  */
2887 $ac_declaration
2888 int
2889 main ()
2890 {
2891 exit (42);
2892   ;
2893   return 0;
2894 }
2895 _ACEOF
2896 rm -f conftest.$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898   (eval $ac_compile) 2>&5
2899   ac_status=$?
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); } &&
2902          { ac_try='test -s conftest.$ac_objext'
2903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904   (eval $ac_try) 2>&5
2905   ac_status=$?
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); }; }; then
2908   break
2909 else
2910   echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2912
2913 fi
2914 rm -f conftest.$ac_objext conftest.$ac_ext
2915 done
2916 rm -f conftest*
2917 if test -n "$ac_declaration"; then
2918   echo '#ifdef __cplusplus' >>confdefs.h
2919   echo $ac_declaration      >>confdefs.h
2920   echo '#endif'             >>confdefs.h
2921 fi
2922
2923 else
2924   echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2926
2927 fi
2928 rm -f conftest.$ac_objext conftest.$ac_ext
2929 ac_ext=c
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934
2935 ac_ext=c
2936 ac_cpp='$CPP $CPPFLAGS'
2937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2941 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2942 # On Suns, sometimes $CPP names a directory.
2943 if test -n "$CPP" && test -d "$CPP"; then
2944   CPP=
2945 fi
2946 if test -z "$CPP"; then
2947   if test "${ac_cv_prog_CPP+set}" = set; then
2948   echo $ECHO_N "(cached) $ECHO_C" >&6
2949 else
2950       # Double quotes because CPP needs to be expanded
2951     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2952     do
2953       ac_preproc_ok=false
2954 for ac_c_preproc_warn_flag in '' yes
2955 do
2956   # Use a header file that comes with gcc, so configuring glibc
2957   # with a fresh cross-compiler works.
2958   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2959   # <limits.h> exists even on freestanding compilers.
2960   # On the NeXT, cc -E runs the code through the compiler's parser,
2961   # not just through cpp. "Syntax error" is here to catch this case.
2962   cat >conftest.$ac_ext <<_ACEOF
2963 #line $LINENO "configure"
2964 /* confdefs.h.  */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h.  */
2969 #ifdef __STDC__
2970 # include <limits.h>
2971 #else
2972 # include <assert.h>
2973 #endif
2974                      Syntax error
2975 _ACEOF
2976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2977   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2978   ac_status=$?
2979   grep -v '^ *+' conftest.er1 >conftest.err
2980   rm -f conftest.er1
2981   cat conftest.err >&5
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); } >/dev/null; then
2984   if test -s conftest.err; then
2985     ac_cpp_err=$ac_c_preproc_warn_flag
2986   else
2987     ac_cpp_err=
2988   fi
2989 else
2990   ac_cpp_err=yes
2991 fi
2992 if test -z "$ac_cpp_err"; then
2993   :
2994 else
2995   echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998   # Broken: fails on valid input.
2999 continue
3000 fi
3001 rm -f conftest.err conftest.$ac_ext
3002
3003   # OK, works on sane cases.  Now check whether non-existent headers
3004   # can be detected and how.
3005   cat >conftest.$ac_ext <<_ACEOF
3006 #line $LINENO "configure"
3007 /* confdefs.h.  */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h.  */
3012 #include <ac_nonexistent.h>
3013 _ACEOF
3014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3015   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3016   ac_status=$?
3017   grep -v '^ *+' conftest.er1 >conftest.err
3018   rm -f conftest.er1
3019   cat conftest.err >&5
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); } >/dev/null; then
3022   if test -s conftest.err; then
3023     ac_cpp_err=$ac_c_preproc_warn_flag
3024   else
3025     ac_cpp_err=
3026   fi
3027 else
3028   ac_cpp_err=yes
3029 fi
3030 if test -z "$ac_cpp_err"; then
3031   # Broken: success on invalid input.
3032 continue
3033 else
3034   echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3036
3037   # Passes both tests.
3038 ac_preproc_ok=:
3039 break
3040 fi
3041 rm -f conftest.err conftest.$ac_ext
3042
3043 done
3044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3045 rm -f conftest.err conftest.$ac_ext
3046 if $ac_preproc_ok; then
3047   break
3048 fi
3049
3050     done
3051     ac_cv_prog_CPP=$CPP
3052
3053 fi
3054   CPP=$ac_cv_prog_CPP
3055 else
3056   ac_cv_prog_CPP=$CPP
3057 fi
3058 echo "$as_me:$LINENO: result: $CPP" >&5
3059 echo "${ECHO_T}$CPP" >&6
3060 ac_preproc_ok=false
3061 for ac_c_preproc_warn_flag in '' yes
3062 do
3063   # Use a header file that comes with gcc, so configuring glibc
3064   # with a fresh cross-compiler works.
3065   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3066   # <limits.h> exists even on freestanding compilers.
3067   # On the NeXT, cc -E runs the code through the compiler's parser,
3068   # not just through cpp. "Syntax error" is here to catch this case.
3069   cat >conftest.$ac_ext <<_ACEOF
3070 #line $LINENO "configure"
3071 /* confdefs.h.  */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h.  */
3076 #ifdef __STDC__
3077 # include <limits.h>
3078 #else
3079 # include <assert.h>
3080 #endif
3081                      Syntax error
3082 _ACEOF
3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3085   ac_status=$?
3086   grep -v '^ *+' conftest.er1 >conftest.err
3087   rm -f conftest.er1
3088   cat conftest.err >&5
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); } >/dev/null; then
3091   if test -s conftest.err; then
3092     ac_cpp_err=$ac_c_preproc_warn_flag
3093   else
3094     ac_cpp_err=
3095   fi
3096 else
3097   ac_cpp_err=yes
3098 fi
3099 if test -z "$ac_cpp_err"; then
3100   :
3101 else
3102   echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105   # Broken: fails on valid input.
3106 continue
3107 fi
3108 rm -f conftest.err conftest.$ac_ext
3109
3110   # OK, works on sane cases.  Now check whether non-existent headers
3111   # can be detected and how.
3112   cat >conftest.$ac_ext <<_ACEOF
3113 #line $LINENO "configure"
3114 /* confdefs.h.  */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h.  */
3119 #include <ac_nonexistent.h>
3120 _ACEOF
3121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3123   ac_status=$?
3124   grep -v '^ *+' conftest.er1 >conftest.err
3125   rm -f conftest.er1
3126   cat conftest.err >&5
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); } >/dev/null; then
3129   if test -s conftest.err; then
3130     ac_cpp_err=$ac_c_preproc_warn_flag
3131   else
3132     ac_cpp_err=
3133   fi
3134 else
3135   ac_cpp_err=yes
3136 fi
3137 if test -z "$ac_cpp_err"; then
3138   # Broken: success on invalid input.
3139 continue
3140 else
3141   echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144   # Passes both tests.
3145 ac_preproc_ok=:
3146 break
3147 fi
3148 rm -f conftest.err conftest.$ac_ext
3149
3150 done
3151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3152 rm -f conftest.err conftest.$ac_ext
3153 if $ac_preproc_ok; then
3154   :
3155 else
3156   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3157 See \`config.log' for more details." >&5
3158 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3159 See \`config.log' for more details." >&2;}
3160    { (exit 1); exit 1; }; }
3161 fi
3162
3163 ac_ext=c
3164 ac_cpp='$CPP $CPPFLAGS'
3165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168
3169
3170 if test "$GCC" != "yes"
3171 then
3172         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3173 echo "$as_me: error: gcc required but not found" >&2;}
3174    { (exit 1); exit 1; }; }
3175 fi
3176 if test "$GXX" != "yes"
3177 then
3178         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3179 echo "$as_me: error: g++ required but not found" >&2;}
3180    { (exit 1); exit 1; }; }
3181 fi
3182
3183 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3184 if test "$gccmajor" -lt "3"
3185 then
3186         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3187 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3188    { (exit 1); exit 1; }; }
3189 fi
3190
3191  echo "$as_me:$LINENO: checking for GNU make" >&5
3192 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3193 if test "${_cv_gnu_make_command+set}" = set; then
3194   echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196   _cv_gnu_make_command='' ;
3197                 for a in "$MAKE" make gmake gnumake ; do
3198                         if test -z "$a" ; then continue ; fi ;
3199                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3200                                 _cv_gnu_make_command=$a ;
3201                                 break;
3202                         fi
3203                 done ;
3204
3205 fi
3206 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3207 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3208         if test  "x$_cv_gnu_make_command" != "x"  ; then
3209                 ifGNUmake='' ;
3210         else
3211                 ifGNUmake='#' ;
3212                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3213 echo "${ECHO_T}\"Not found\"" >&6;
3214         fi
3215
3216
3217 if test -z "$_cv_gnu_make_command"
3218 then
3219         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3220 echo "$as_me: error: GNU Make required but not found" >&2;}
3221    { (exit 1); exit 1; }; }
3222 fi
3223
3224
3225 echo "$as_me:$LINENO: checking " >&5
3226 echo $ECHO_N "checking ... $ECHO_C" >&6
3227 if test "${ac_cv_has_flex+set}" = set; then
3228   echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230   for ac_prog in flex lex
3231 do
3232   # Extract the first word of "$ac_prog", so it can be a program name with args.
3233 set dummy $ac_prog; ac_word=$2
3234 echo "$as_me:$LINENO: checking for $ac_word" >&5
3235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3236 if test "${ac_cv_prog_LEX+set}" = set; then
3237   echo $ECHO_N "(cached) $ECHO_C" >&6
3238 else
3239   if test -n "$LEX"; then
3240   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3241 else
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 for as_dir in $PATH
3244 do
3245   IFS=$as_save_IFS
3246   test -z "$as_dir" && as_dir=.
3247   for ac_exec_ext in '' $ac_executable_extensions; do
3248   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249     ac_cv_prog_LEX="$ac_prog"
3250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251     break 2
3252   fi
3253 done
3254 done
3255
3256 fi
3257 fi
3258 LEX=$ac_cv_prog_LEX
3259 if test -n "$LEX"; then
3260   echo "$as_me:$LINENO: result: $LEX" >&5
3261 echo "${ECHO_T}$LEX" >&6
3262 else
3263   echo "$as_me:$LINENO: result: no" >&5
3264 echo "${ECHO_T}no" >&6
3265 fi
3266
3267   test -n "$LEX" && break
3268 done
3269 test -n "$LEX" || LEX=":"
3270
3271 if test -z "$LEXLIB"
3272 then
3273   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3274 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3275 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278   ac_check_lib_save_LIBS=$LIBS
3279 LIBS="-lfl  $LIBS"
3280 cat >conftest.$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287
3288 /* Override any gcc2 internal prototype to avoid an error.  */
3289 #ifdef __cplusplus
3290 extern "C"
3291 #endif
3292 /* We use char because int might match the return type of a gcc2
3293    builtin and then its argument prototype would still apply.  */
3294 char yywrap ();
3295 int
3296 main ()
3297 {
3298 yywrap ();
3299   ;
3300   return 0;
3301 }
3302 _ACEOF
3303 rm -f conftest.$ac_objext conftest$ac_exeext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3305   (eval $ac_link) 2>&5
3306   ac_status=$?
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); } &&
3309          { ac_try='test -s conftest$ac_exeext'
3310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311   (eval $ac_try) 2>&5
3312   ac_status=$?
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); }; }; then
3315   ac_cv_lib_fl_yywrap=yes
3316 else
3317   echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320 ac_cv_lib_fl_yywrap=no
3321 fi
3322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3323 LIBS=$ac_check_lib_save_LIBS
3324 fi
3325 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3326 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3327 if test $ac_cv_lib_fl_yywrap = yes; then
3328   LEXLIB="-lfl"
3329 else
3330   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3331 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3332 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3333   echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335   ac_check_lib_save_LIBS=$LIBS
3336 LIBS="-ll  $LIBS"
3337 cat >conftest.$ac_ext <<_ACEOF
3338 #line $LINENO "configure"
3339 /* confdefs.h.  */
3340 _ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h.  */
3344
3345 /* Override any gcc2 internal prototype to avoid an error.  */
3346 #ifdef __cplusplus
3347 extern "C"
3348 #endif
3349 /* We use char because int might match the return type of a gcc2
3350    builtin and then its argument prototype would still apply.  */
3351 char yywrap ();
3352 int
3353 main ()
3354 {
3355 yywrap ();
3356   ;
3357   return 0;
3358 }
3359 _ACEOF
3360 rm -f conftest.$ac_objext conftest$ac_exeext
3361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3362   (eval $ac_link) 2>&5
3363   ac_status=$?
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); } &&
3366          { ac_try='test -s conftest$ac_exeext'
3367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368   (eval $ac_try) 2>&5
3369   ac_status=$?
3370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371   (exit $ac_status); }; }; then
3372   ac_cv_lib_l_yywrap=yes
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377 ac_cv_lib_l_yywrap=no
3378 fi
3379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3380 LIBS=$ac_check_lib_save_LIBS
3381 fi
3382 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3383 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3384 if test $ac_cv_lib_l_yywrap = yes; then
3385   LEXLIB="-ll"
3386 fi
3387
3388 fi
3389
3390 fi
3391
3392 if test "x$LEX" != "x:"; then
3393   echo "$as_me:$LINENO: checking lex output file root" >&5
3394 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3395 if test "${ac_cv_prog_lex_root+set}" = set; then
3396   echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398   # The minimal lex program is just a single line: %%.  But some broken lexes
3399 # (Solaris, I think it was) want two %% lines, so accommodate them.
3400 cat >conftest.l <<_ACEOF
3401 %%
3402 %%
3403 _ACEOF
3404 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3405   (eval $LEX conftest.l) 2>&5
3406   ac_status=$?
3407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408   (exit $ac_status); }
3409 if test -f lex.yy.c; then
3410   ac_cv_prog_lex_root=lex.yy
3411 elif test -f lexyy.c; then
3412   ac_cv_prog_lex_root=lexyy
3413 else
3414   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3415 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3416    { (exit 1); exit 1; }; }
3417 fi
3418 fi
3419 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3420 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3421 rm -f conftest.l
3422 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3423
3424 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3425 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3426 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3427   echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429   # POSIX says lex can declare yytext either as a pointer or an array; the
3430 # default is implementation-dependent. Figure out which it is, since
3431 # not all implementations provide the %pointer and %array declarations.
3432 ac_cv_prog_lex_yytext_pointer=no
3433 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3434 ac_save_LIBS=$LIBS
3435 LIBS="$LIBS $LEXLIB"
3436 cat >conftest.$ac_ext <<_ACEOF
3437 `cat $LEX_OUTPUT_ROOT.c`
3438 _ACEOF
3439 rm -f conftest.$ac_objext conftest$ac_exeext
3440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3441   (eval $ac_link) 2>&5
3442   ac_status=$?
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } &&
3445          { ac_try='test -s conftest$ac_exeext'
3446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447   (eval $ac_try) 2>&5
3448   ac_status=$?
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); }; }; then
3451   ac_cv_prog_lex_yytext_pointer=yes
3452 else
3453   echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3455
3456 fi
3457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3458 LIBS=$ac_save_LIBS
3459 rm -f "${LEX_OUTPUT_ROOT}.c"
3460
3461 fi
3462 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3463 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3464 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3465
3466 cat >>confdefs.h <<\_ACEOF
3467 #define YYTEXT_POINTER 1
3468 _ACEOF
3469
3470 fi
3471
3472 fi
3473
3474 fi
3475 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3476 echo "${ECHO_T}$ac_cv_has_flex" >&6
3477 if test "$LEX" != "flex"; then
3478   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3479 echo "$as_me: error: flex not found but required" >&2;}
3480    { (exit 1); exit 1; }; }
3481 fi
3482
3483 echo "$as_me:$LINENO: checking " >&5
3484 echo $ECHO_N "checking ... $ECHO_C" >&6
3485 if test "${ac_cv_has_bison+set}" = set; then
3486   echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488   for ac_prog in 'bison -y' byacc
3489 do
3490   # Extract the first word of "$ac_prog", so it can be a program name with args.
3491 set dummy $ac_prog; ac_word=$2
3492 echo "$as_me:$LINENO: checking for $ac_word" >&5
3493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3494 if test "${ac_cv_prog_YACC+set}" = set; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497   if test -n "$YACC"; then
3498   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503   IFS=$as_save_IFS
3504   test -z "$as_dir" && as_dir=.
3505   for ac_exec_ext in '' $ac_executable_extensions; do
3506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507     ac_cv_prog_YACC="$ac_prog"
3508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509     break 2
3510   fi
3511 done
3512 done
3513
3514 fi
3515 fi
3516 YACC=$ac_cv_prog_YACC
3517 if test -n "$YACC"; then
3518   echo "$as_me:$LINENO: result: $YACC" >&5
3519 echo "${ECHO_T}$YACC" >&6
3520 else
3521   echo "$as_me:$LINENO: result: no" >&5
3522 echo "${ECHO_T}no" >&6
3523 fi
3524
3525   test -n "$YACC" && break
3526 done
3527 test -n "$YACC" || YACC="yacc"
3528
3529
3530 fi
3531 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3532 echo "${ECHO_T}$ac_cv_has_bison" >&6
3533 if test "$YACC" != "bison -y"; then
3534   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3535 echo "$as_me: error: bison not found but required" >&2;}
3536    { (exit 1); exit 1; }; }
3537 else
3538   BISON=bison
3539
3540 fi
3541
3542 # Check whether --enable-shared or --disable-shared was given.
3543 if test "${enable_shared+set}" = set; then
3544   enableval="$enable_shared"
3545   p=${PACKAGE-default}
3546     case $enableval in
3547     yes) enable_shared=yes ;;
3548     no) enable_shared=no ;;
3549     *)
3550       enable_shared=no
3551       # Look at the argument we got.  We use all the common list separators.
3552       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3553       for pkg in $enableval; do
3554         IFS="$lt_save_ifs"
3555         if test "X$pkg" = "X$p"; then
3556           enable_shared=yes
3557         fi
3558       done
3559       IFS="$lt_save_ifs"
3560       ;;
3561     esac
3562 else
3563   enable_shared=yes
3564 fi;
3565
3566 # Check whether --enable-static or --disable-static was given.
3567 if test "${enable_static+set}" = set; then
3568   enableval="$enable_static"
3569   p=${PACKAGE-default}
3570     case $enableval in
3571     yes) enable_static=yes ;;
3572     no) enable_static=no ;;
3573     *)
3574      enable_static=no
3575       # Look at the argument we got.  We use all the common list separators.
3576       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3577       for pkg in $enableval; do
3578         IFS="$lt_save_ifs"
3579         if test "X$pkg" = "X$p"; then
3580           enable_static=yes
3581         fi
3582       done
3583       IFS="$lt_save_ifs"
3584       ;;
3585     esac
3586 else
3587   enable_static=yes
3588 fi;
3589
3590 # Check whether --enable-fast-install or --disable-fast-install was given.
3591 if test "${enable_fast_install+set}" = set; then
3592   enableval="$enable_fast_install"
3593   p=${PACKAGE-default}
3594     case $enableval in
3595     yes) enable_fast_install=yes ;;
3596     no) enable_fast_install=no ;;
3597     *)
3598       enable_fast_install=no
3599       # Look at the argument we got.  We use all the common list separators.
3600       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3601       for pkg in $enableval; do
3602         IFS="$lt_save_ifs"
3603         if test "X$pkg" = "X$p"; then
3604           enable_fast_install=yes
3605         fi
3606       done
3607       IFS="$lt_save_ifs"
3608       ;;
3609     esac
3610 else
3611   enable_fast_install=yes
3612 fi;
3613
3614 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3615 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3616 if test "${lt_cv_path_SED+set}" = set; then
3617   echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619   # Loop through the user's path and test for sed and gsed.
3620 # Then use that list of sed's as ones to test for truncation.
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3623 do
3624   IFS=$as_save_IFS
3625   test -z "$as_dir" && as_dir=.
3626   for lt_ac_prog in sed gsed; do
3627     for ac_exec_ext in '' $ac_executable_extensions; do
3628       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3629         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3630       fi
3631     done
3632   done
3633 done
3634 lt_ac_max=0
3635 lt_ac_count=0
3636 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3637 # along with /bin/sed that truncates output.
3638 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3639   test ! -f $lt_ac_sed && break
3640   cat /dev/null > conftest.in
3641   lt_ac_count=0
3642   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3643   # Check for GNU sed and select it if it is found.
3644   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3645     lt_cv_path_SED=$lt_ac_sed
3646     break
3647   fi
3648   while true; do
3649     cat conftest.in conftest.in >conftest.tmp
3650     mv conftest.tmp conftest.in
3651     cp conftest.in conftest.nl
3652     echo >>conftest.nl
3653     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3654     cmp -s conftest.out conftest.nl || break
3655     # 10000 chars as input seems more than enough
3656     test $lt_ac_count -gt 10 && break
3657     lt_ac_count=`expr $lt_ac_count + 1`
3658     if test $lt_ac_count -gt $lt_ac_max; then
3659       lt_ac_max=$lt_ac_count
3660       lt_cv_path_SED=$lt_ac_sed
3661     fi
3662   done
3663 done
3664 SED=$lt_cv_path_SED
3665
3666 fi
3667
3668 echo "$as_me:$LINENO: result: $SED" >&5
3669 echo "${ECHO_T}$SED" >&6
3670
3671 echo "$as_me:$LINENO: checking for egrep" >&5
3672 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3673 if test "${ac_cv_prog_egrep+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3677     then ac_cv_prog_egrep='grep -E'
3678     else ac_cv_prog_egrep='egrep'
3679     fi
3680 fi
3681 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3682 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3683  EGREP=$ac_cv_prog_egrep
3684
3685
3686
3687 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3688 if test "${with_gnu_ld+set}" = set; then
3689   withval="$with_gnu_ld"
3690   test "$withval" = no || with_gnu_ld=yes
3691 else
3692   with_gnu_ld=no
3693 fi;
3694 ac_prog=ld
3695 if test "$GCC" = yes; then
3696   # Check if gcc -print-prog-name=ld gives a path.
3697   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3698 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3699   case $host in
3700   *-*-mingw*)
3701     # gcc leaves a trailing carriage return which upsets mingw
3702     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3703   *)
3704     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3705   esac
3706   case $ac_prog in
3707     # Accept absolute paths.
3708     [\\/]* | ?:[\\/]*)
3709       re_direlt='/[^/][^/]*/\.\./'
3710       # Canonicalize the path of ld
3711       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3712       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3713         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3714       done
3715       test -z "$LD" && LD="$ac_prog"
3716       ;;
3717   "")
3718     # If it fails, then pretend we aren't using GCC.
3719     ac_prog=ld
3720     ;;
3721   *)
3722     # If it is relative, then search for the first ld in PATH.
3723     with_gnu_ld=unknown
3724     ;;
3725   esac
3726 elif test "$with_gnu_ld" = yes; then
3727   echo "$as_me:$LINENO: checking for GNU ld" >&5
3728 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3729 else
3730   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3731 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3732 fi
3733 if test "${lt_cv_path_LD+set}" = set; then
3734   echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736   if test -z "$LD"; then
3737   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3738   for ac_dir in $PATH; do
3739     IFS="$lt_save_ifs"
3740     test -z "$ac_dir" && ac_dir=.
3741     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3742       lt_cv_path_LD="$ac_dir/$ac_prog"
3743       # Check to see if the program is GNU ld.  I'd rather use --version,
3744       # but apparently some GNU ld's only accept -v.
3745       # Break only if it was the GNU/non-GNU ld that we prefer.
3746       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3747       *GNU* | *'with BFD'*)
3748         test "$with_gnu_ld" != no && break
3749         ;;
3750       *)
3751         test "$with_gnu_ld" != yes && break
3752         ;;
3753       esac
3754     fi
3755   done
3756   IFS="$lt_save_ifs"
3757 else
3758   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3759 fi
3760 fi
3761
3762 LD="$lt_cv_path_LD"
3763 if test -n "$LD"; then
3764   echo "$as_me:$LINENO: result: $LD" >&5
3765 echo "${ECHO_T}$LD" >&6
3766 else
3767   echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6
3769 fi
3770 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3771 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3772    { (exit 1); exit 1; }; }
3773 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3774 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3775 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3776   echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3779 case `"$LD" -v 2>&1 </dev/null` in
3780 *GNU* | *'with BFD'*)
3781   lt_cv_prog_gnu_ld=yes
3782   ;;
3783 *)
3784   lt_cv_prog_gnu_ld=no
3785   ;;
3786 esac
3787 fi
3788 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3789 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3790 with_gnu_ld=$lt_cv_prog_gnu_ld
3791
3792
3793 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3794 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3795 if test "${lt_cv_ld_reload_flag+set}" = set; then
3796   echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798   lt_cv_ld_reload_flag='-r'
3799 fi
3800 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3801 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3802 reload_flag=$lt_cv_ld_reload_flag
3803 case $reload_flag in
3804 "" | " "*) ;;
3805 *) reload_flag=" $reload_flag" ;;
3806 esac
3807 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3808
3809 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3810 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3811 if test "${lt_cv_path_NM+set}" = set; then
3812   echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814   if test -n "$NM"; then
3815   # Let the user override the test.
3816   lt_cv_path_NM="$NM"
3817 else
3818   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3819   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3820     IFS="$lt_save_ifs"
3821     test -z "$ac_dir" && ac_dir=.
3822     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3823     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3824       # Check to see if the nm accepts a BSD-compat flag.
3825       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3826       #   nm: unknown option "B" ignored
3827       # Tru64's nm complains that /dev/null is an invalid object file
3828       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3829       */dev/null* | *'Invalid file or object type'*)
3830         lt_cv_path_NM="$tmp_nm -B"
3831         break
3832         ;;
3833       *)
3834         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3835         */dev/null*)
3836           lt_cv_path_NM="$tmp_nm -p"
3837           break
3838           ;;
3839         *)
3840           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3841           continue # so that we can try to find one that supports BSD flags
3842           ;;
3843         esac
3844       esac
3845     fi
3846   done
3847   IFS="$lt_save_ifs"
3848   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3849 fi
3850 fi
3851 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3852 echo "${ECHO_T}$lt_cv_path_NM" >&6
3853 NM="$lt_cv_path_NM"
3854
3855 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3856 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3857 LN_S=$as_ln_s
3858 if test "$LN_S" = "ln -s"; then
3859   echo "$as_me:$LINENO: result: yes" >&5
3860 echo "${ECHO_T}yes" >&6
3861 else
3862   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3863 echo "${ECHO_T}no, using $LN_S" >&6
3864 fi
3865
3866 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3867 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3868 if test "${lt_cv_deplibs_check_method+set}" = set; then
3869   echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871   lt_cv_file_magic_cmd='$MAGIC_CMD'
3872 lt_cv_file_magic_test_file=
3873 lt_cv_deplibs_check_method='unknown'
3874 # Need to set the preceding variable on all platforms that support
3875 # interlibrary dependencies.
3876 # 'none' -- dependencies not supported.
3877 # `unknown' -- same as none, but documents that we really don't know.
3878 # 'pass_all' -- all dependencies passed with no checks.
3879 # 'test_compile' -- check by making test program.
3880 # 'file_magic [[regex]]' -- check by looking for files in library path
3881 # which responds to the $file_magic_cmd with a given extended regex.
3882 # If you have `file' or equivalent on your system and you're not sure
3883 # whether `pass_all' will *always* work, you probably want this one.
3884
3885 case $host_os in
3886 aix4* | aix5*)
3887   lt_cv_deplibs_check_method=pass_all
3888   ;;
3889
3890 beos*)
3891   lt_cv_deplibs_check_method=pass_all
3892   ;;
3893
3894 bsdi4*)
3895   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3896   lt_cv_file_magic_cmd='/usr/bin/file -L'
3897   lt_cv_file_magic_test_file=/shlib/libc.so
3898   ;;
3899
3900 cygwin* | mingw* | pw32*)
3901   # win32_libid is a shell function defined in ltmain.sh
3902   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3903   lt_cv_file_magic_cmd='win32_libid'
3904   ;;
3905
3906 darwin* | rhapsody*)
3907   # this will be overwritten by pass_all, but leave it in just in case
3908   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3909   lt_cv_file_magic_cmd='/usr/bin/file -L'
3910   case "$host_os" in
3911   rhapsody* | darwin1.[012])
3912     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3913     ;;
3914   *) # Darwin 1.3 on
3915     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3916     ;;
3917   esac
3918   lt_cv_deplibs_check_method=pass_all
3919   ;;
3920
3921 freebsd*)
3922   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3923     case $host_cpu in
3924     i*86 )
3925       # Not sure whether the presence of OpenBSD here was a mistake.
3926       # Let's accept both of them until this is cleared up.
3927       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3928       lt_cv_file_magic_cmd=/usr/bin/file
3929       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3930       ;;
3931     esac
3932   else
3933     lt_cv_deplibs_check_method=pass_all
3934   fi
3935   ;;
3936
3937 gnu*)
3938   lt_cv_deplibs_check_method=pass_all
3939   ;;
3940
3941 hpux10.20* | hpux11*)
3942   lt_cv_file_magic_cmd=/usr/bin/file
3943   case "$host_cpu" in
3944   ia64*)
3945     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3946     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3947     ;;
3948   hppa*64*)
3949     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]'
3950     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3951     ;;
3952   *)
3953     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3954     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3955     ;;
3956   esac
3957   ;;
3958
3959 irix5* | irix6* | nonstopux*)
3960   case $host_os in
3961   irix5* | nonstopux*)
3962     # this will be overridden with pass_all, but let us keep it just in case
3963     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3964     ;;
3965   *)
3966     case $LD in
3967     *-32|*"-32 ") libmagic=32-bit;;
3968     *-n32|*"-n32 ") libmagic=N32;;
3969     *-64|*"-64 ") libmagic=64-bit;;
3970     *) libmagic=never-match;;
3971     esac
3972     # this will be overridden with pass_all, but let us keep it just in case
3973     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3974     ;;
3975   esac
3976   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3977   lt_cv_deplibs_check_method=pass_all
3978   ;;
3979
3980 # This must be Linux ELF.
3981 linux*)
3982   case $host_cpu in
3983   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3984     lt_cv_deplibs_check_method=pass_all ;;
3985   *)
3986     # glibc up to 2.1.1 does not perform some relocations on ARM
3987     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3988   esac
3989   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3990   ;;
3991
3992 netbsd*)
3993   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3994     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3995   else
3996     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3997   fi
3998   ;;
3999
4000 newos6*)
4001   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4002   lt_cv_file_magic_cmd=/usr/bin/file
4003   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4004   ;;
4005
4006 nto-qnx)
4007   lt_cv_deplibs_check_method=unknown
4008   ;;
4009
4010 openbsd*)
4011   lt_cv_file_magic_cmd=/usr/bin/file
4012   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4013   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4014     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4015   else
4016     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4017   fi
4018   ;;
4019
4020 osf3* | osf4* | osf5*)
4021   # this will be overridden with pass_all, but let us keep it just in case
4022   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4023   lt_cv_file_magic_test_file=/shlib/libc.so
4024   lt_cv_deplibs_check_method=pass_all
4025   ;;
4026
4027 sco3.2v5*)
4028   lt_cv_deplibs_check_method=pass_all
4029   ;;
4030
4031 solaris*)
4032   lt_cv_deplibs_check_method=pass_all
4033   lt_cv_file_magic_test_file=/lib/libc.so
4034   ;;
4035
4036 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4037   case $host_vendor in
4038   motorola)
4039     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]'
4040     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4041     ;;
4042   ncr)
4043     lt_cv_deplibs_check_method=pass_all
4044     ;;
4045   sequent)
4046     lt_cv_file_magic_cmd='/bin/file'
4047     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4048     ;;
4049   sni)
4050     lt_cv_file_magic_cmd='/bin/file'
4051     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4052     lt_cv_file_magic_test_file=/lib/libc.so
4053     ;;
4054   siemens)
4055     lt_cv_deplibs_check_method=pass_all
4056     ;;
4057   esac
4058   ;;
4059
4060 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4061   lt_cv_deplibs_check_method=pass_all
4062   ;;
4063 esac
4064
4065 fi
4066 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4067 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4068 file_magic_cmd=$lt_cv_file_magic_cmd
4069 deplibs_check_method=$lt_cv_deplibs_check_method
4070 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4071
4072
4073
4074
4075 # If no C compiler was specified, use CC.
4076 LTCC=${LTCC-"$CC"}
4077
4078 # Allow CC to be a program name with arguments.
4079 compiler=$CC
4080
4081 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4082 if test "${enable_libtool_lock+set}" = set; then
4083   enableval="$enable_libtool_lock"
4084
4085 fi;
4086 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4087
4088 # Some flags need to be propagated to the compiler or linker for good
4089 # libtool support.
4090 case $host in
4091 ia64-*-hpux*)
4092   # Find out which ABI we are using.
4093   echo 'int i;' > conftest.$ac_ext
4094   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095   (eval $ac_compile) 2>&5
4096   ac_status=$?
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); }; then
4099     case `/usr/bin/file conftest.$ac_objext` in
4100     *ELF-32*)
4101       HPUX_IA64_MODE="32"
4102       ;;
4103     *ELF-64*)
4104       HPUX_IA64_MODE="64"
4105       ;;
4106     esac
4107   fi
4108   rm -rf conftest*
4109   ;;
4110 *-*-irix6*)
4111   # Find out which ABI we are using.
4112   echo '#line 4112 "configure"' > conftest.$ac_ext
4113   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114   (eval $ac_compile) 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; then
4118    if test "$lt_cv_prog_gnu_ld" = yes; then
4119     case `/usr/bin/file conftest.$ac_objext` in
4120     *32-bit*)
4121       LD="${LD-ld} -melf32bsmip"
4122       ;;
4123     *N32*)
4124       LD="${LD-ld} -melf32bmipn32"
4125       ;;
4126     *64-bit*)
4127       LD="${LD-ld} -melf64bmip"
4128       ;;
4129     esac
4130    else
4131     case `/usr/bin/file conftest.$ac_objext` in
4132     *32-bit*)
4133       LD="${LD-ld} -32"
4134       ;;
4135     *N32*)
4136       LD="${LD-ld} -n32"
4137       ;;
4138     *64-bit*)
4139       LD="${LD-ld} -64"
4140       ;;
4141     esac
4142    fi
4143   fi
4144   rm -rf conftest*
4145   ;;
4146
4147 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4148   # Find out which ABI we are using.
4149   echo 'int i;' > conftest.$ac_ext
4150   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151   (eval $ac_compile) 2>&5
4152   ac_status=$?
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); }; then
4155     case "`/usr/bin/file conftest.o`" in
4156     *32-bit*)
4157       case $host in
4158         x86_64-*linux*)
4159           LD="${LD-ld} -m elf_i386"
4160           ;;
4161         ppc64-*linux*)
4162           LD="${LD-ld} -m elf32ppclinux"
4163           ;;
4164         s390x-*linux*)
4165           LD="${LD-ld} -m elf_s390"
4166           ;;
4167         sparc64-*linux*)
4168           LD="${LD-ld} -m elf32_sparc"
4169           ;;
4170       esac
4171       ;;
4172     *64-bit*)
4173       case $host in
4174         x86_64-*linux*)
4175           LD="${LD-ld} -m elf_x86_64"
4176           ;;
4177         ppc*-*linux*|powerpc*-*linux*)
4178           LD="${LD-ld} -m elf64ppc"
4179           ;;
4180         s390*-*linux*)
4181           LD="${LD-ld} -m elf64_s390"
4182           ;;
4183         sparc*-*linux*)
4184           LD="${LD-ld} -m elf64_sparc"
4185           ;;
4186       esac
4187       ;;
4188     esac
4189   fi
4190   rm -rf conftest*
4191   ;;
4192
4193 *-*-sco3.2v5*)
4194   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4195   SAVE_CFLAGS="$CFLAGS"
4196   CFLAGS="$CFLAGS -belf"
4197   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4198 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4199 if test "${lt_cv_cc_needs_belf+set}" = set; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202   ac_ext=c
4203 ac_cpp='$CPP $CPPFLAGS'
4204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207
4208      cat >conftest.$ac_ext <<_ACEOF
4209 #line $LINENO "configure"
4210 /* confdefs.h.  */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h.  */
4215
4216 int
4217 main ()
4218 {
4219
4220   ;
4221   return 0;
4222 }
4223 _ACEOF
4224 rm -f conftest.$ac_objext conftest$ac_exeext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4226   (eval $ac_link) 2>&5
4227   ac_status=$?
4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229   (exit $ac_status); } &&
4230          { ac_try='test -s conftest$ac_exeext'
4231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232   (eval $ac_try) 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); }; }; then
4236   lt_cv_cc_needs_belf=yes
4237 else
4238   echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4240
4241 lt_cv_cc_needs_belf=no
4242 fi
4243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4244      ac_ext=c
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249
4250 fi
4251 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4252 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4253   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4254     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4255     CFLAGS="$SAVE_CFLAGS"
4256   fi
4257   ;;
4258
4259 esac
4260
4261 need_locks="$enable_libtool_lock"
4262
4263
4264
4265 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4266 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4267 if test "${ac_cv_header_stdc+set}" = set; then
4268   echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270   cat >conftest.$ac_ext <<_ACEOF
4271 #line $LINENO "configure"
4272 /* confdefs.h.  */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h.  */
4277 #include <stdlib.h>
4278 #include <stdarg.h>
4279 #include <string.h>
4280 #include <float.h>
4281
4282 int
4283 main ()
4284 {
4285
4286   ;
4287   return 0;
4288 }
4289 _ACEOF
4290 rm -f conftest.$ac_objext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4292   (eval $ac_compile) 2>&5
4293   ac_status=$?
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); } &&
4296          { ac_try='test -s conftest.$ac_objext'
4297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298   (eval $ac_try) 2>&5
4299   ac_status=$?
4300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301   (exit $ac_status); }; }; then
4302   ac_cv_header_stdc=yes
4303 else
4304   echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4306
4307 ac_cv_header_stdc=no
4308 fi
4309 rm -f conftest.$ac_objext conftest.$ac_ext
4310
4311 if test $ac_cv_header_stdc = yes; then
4312   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4313   cat >conftest.$ac_ext <<_ACEOF
4314 #line $LINENO "configure"
4315 /* confdefs.h.  */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h.  */
4320 #include <string.h>
4321
4322 _ACEOF
4323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4324   $EGREP "memchr" >/dev/null 2>&1; then
4325   :
4326 else
4327   ac_cv_header_stdc=no
4328 fi
4329 rm -f conftest*
4330
4331 fi
4332
4333 if test $ac_cv_header_stdc = yes; then
4334   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4335   cat >conftest.$ac_ext <<_ACEOF
4336 #line $LINENO "configure"
4337 /* confdefs.h.  */
4338 _ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h.  */
4342 #include <stdlib.h>
4343
4344 _ACEOF
4345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4346   $EGREP "free" >/dev/null 2>&1; then
4347   :
4348 else
4349   ac_cv_header_stdc=no
4350 fi
4351 rm -f conftest*
4352
4353 fi
4354
4355 if test $ac_cv_header_stdc = yes; then
4356   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4357   if test "$cross_compiling" = yes; then
4358   :
4359 else
4360   cat >conftest.$ac_ext <<_ACEOF
4361 #line $LINENO "configure"
4362 /* confdefs.h.  */
4363 _ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h.  */
4367 #include <ctype.h>
4368 #if ((' ' & 0x0FF) == 0x020)
4369 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4370 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4371 #else
4372 # define ISLOWER(c) \
4373                    (('a' <= (c) && (c) <= 'i') \
4374                      || ('j' <= (c) && (c) <= 'r') \
4375                      || ('s' <= (c) && (c) <= 'z'))
4376 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4377 #endif
4378
4379 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4380 int
4381 main ()
4382 {
4383   int i;
4384   for (i = 0; i < 256; i++)
4385     if (XOR (islower (i), ISLOWER (i))
4386         || toupper (i) != TOUPPER (i))
4387       exit(2);
4388   exit (0);
4389 }
4390 _ACEOF
4391 rm -f conftest$ac_exeext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393   (eval $ac_link) 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398   (eval $ac_try) 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); }; }; then
4402   :
4403 else
4404   echo "$as_me: program exited with status $ac_status" >&5
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4407
4408 ( exit $ac_status )
4409 ac_cv_header_stdc=no
4410 fi
4411 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4412 fi
4413 fi
4414 fi
4415 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4416 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4417 if test $ac_cv_header_stdc = yes; then
4418
4419 cat >>confdefs.h <<\_ACEOF
4420 #define STDC_HEADERS 1
4421 _ACEOF
4422
4423 fi
4424
4425 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4436                   inttypes.h stdint.h unistd.h
4437 do
4438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439 echo "$as_me:$LINENO: checking for $ac_header" >&5
4440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444   cat >conftest.$ac_ext <<_ACEOF
4445 #line $LINENO "configure"
4446 /* confdefs.h.  */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h.  */
4451 $ac_includes_default
4452
4453 #include <$ac_header>
4454 _ACEOF
4455 rm -f conftest.$ac_objext
4456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457   (eval $ac_compile) 2>&5
4458   ac_status=$?
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); } &&
4461          { ac_try='test -s conftest.$ac_objext'
4462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463   (eval $ac_try) 2>&5
4464   ac_status=$?
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); }; }; then
4467   eval "$as_ac_Header=yes"
4468 else
4469   echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4471
4472 eval "$as_ac_Header=no"
4473 fi
4474 rm -f conftest.$ac_objext conftest.$ac_ext
4475 fi
4476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4479   cat >>confdefs.h <<_ACEOF
4480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4481 _ACEOF
4482
4483 fi
4484
4485 done
4486
4487
4488
4489 for ac_header in dlfcn.h
4490 do
4491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4493   echo "$as_me:$LINENO: checking for $ac_header" >&5
4494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4496   echo $ECHO_N "(cached) $ECHO_C" >&6
4497 fi
4498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4500 else
4501   # Is the header compilable?
4502 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4504 cat >conftest.$ac_ext <<_ACEOF
4505 #line $LINENO "configure"
4506 /* confdefs.h.  */
4507 _ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h.  */
4511 $ac_includes_default
4512 #include <$ac_header>
4513 _ACEOF
4514 rm -f conftest.$ac_objext
4515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4516   (eval $ac_compile) 2>&5
4517   ac_status=$?
4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519   (exit $ac_status); } &&
4520          { ac_try='test -s conftest.$ac_objext'
4521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522   (eval $ac_try) 2>&5
4523   ac_status=$?
4524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525   (exit $ac_status); }; }; then
4526   ac_header_compiler=yes
4527 else
4528   echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4530
4531 ac_header_compiler=no
4532 fi
4533 rm -f conftest.$ac_objext conftest.$ac_ext
4534 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4535 echo "${ECHO_T}$ac_header_compiler" >&6
4536
4537 # Is the header present?
4538 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4540 cat >conftest.$ac_ext <<_ACEOF
4541 #line $LINENO "configure"
4542 /* confdefs.h.  */
4543 _ACEOF
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h.  */
4547 #include <$ac_header>
4548 _ACEOF
4549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4550   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4551   ac_status=$?
4552   grep -v '^ *+' conftest.er1 >conftest.err
4553   rm -f conftest.er1
4554   cat conftest.err >&5
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); } >/dev/null; then
4557   if test -s conftest.err; then
4558     ac_cpp_err=$ac_c_preproc_warn_flag
4559   else
4560     ac_cpp_err=
4561   fi
4562 else
4563   ac_cpp_err=yes
4564 fi
4565 if test -z "$ac_cpp_err"; then
4566   ac_header_preproc=yes
4567 else
4568   echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4570
4571   ac_header_preproc=no
4572 fi
4573 rm -f conftest.err conftest.$ac_ext
4574 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4575 echo "${ECHO_T}$ac_header_preproc" >&6
4576
4577 # So?  What about this header?
4578 case $ac_header_compiler:$ac_header_preproc in
4579   yes:no )
4580     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4584     (
4585       cat <<\_ASBOX
4586 ## ------------------------------------ ##
4587 ## Report this to bug-autoconf@gnu.org. ##
4588 ## ------------------------------------ ##
4589 _ASBOX
4590     ) |
4591       sed "s/^/$as_me: WARNING:     /" >&2
4592     ;;
4593   no:yes )
4594     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4596     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4600     (
4601       cat <<\_ASBOX
4602 ## ------------------------------------ ##
4603 ## Report this to bug-autoconf@gnu.org. ##
4604 ## ------------------------------------ ##
4605 _ASBOX
4606     ) |
4607       sed "s/^/$as_me: WARNING:     /" >&2
4608     ;;
4609 esac
4610 echo "$as_me:$LINENO: checking for $ac_header" >&5
4611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4613   echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615   eval "$as_ac_Header=$ac_header_preproc"
4616 fi
4617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4619
4620 fi
4621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4622   cat >>confdefs.h <<_ACEOF
4623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4624 _ACEOF
4625
4626 fi
4627
4628 done
4629
4630 ac_ext=cc
4631 ac_cpp='$CXXCPP $CPPFLAGS'
4632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4635 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4636 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4637 if test -z "$CXXCPP"; then
4638   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4639   echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641       # Double quotes because CXXCPP needs to be expanded
4642     for CXXCPP in "$CXX -E" "/lib/cpp"
4643     do
4644       ac_preproc_ok=false
4645 for ac_cxx_preproc_warn_flag in '' yes
4646 do
4647   # Use a header file that comes with gcc, so configuring glibc
4648   # with a fresh cross-compiler works.
4649   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4650   # <limits.h> exists even on freestanding compilers.
4651   # On the NeXT, cc -E runs the code through the compiler's parser,
4652   # not just through cpp. "Syntax error" is here to catch this case.
4653   cat >conftest.$ac_ext <<_ACEOF
4654 #line $LINENO "configure"
4655 /* confdefs.h.  */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h.  */
4660 #ifdef __STDC__
4661 # include <limits.h>
4662 #else
4663 # include <assert.h>
4664 #endif
4665                      Syntax error
4666 _ACEOF
4667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4668   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4669   ac_status=$?
4670   grep -v '^ *+' conftest.er1 >conftest.err
4671   rm -f conftest.er1
4672   cat conftest.err >&5
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); } >/dev/null; then
4675   if test -s conftest.err; then
4676     ac_cpp_err=$ac_cxx_preproc_warn_flag
4677   else
4678     ac_cpp_err=
4679   fi
4680 else
4681   ac_cpp_err=yes
4682 fi
4683 if test -z "$ac_cpp_err"; then
4684   :
4685 else
4686   echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4688
4689   # Broken: fails on valid input.
4690 continue
4691 fi
4692 rm -f conftest.err conftest.$ac_ext
4693
4694   # OK, works on sane cases.  Now check whether non-existent headers
4695   # can be detected and how.
4696   cat >conftest.$ac_ext <<_ACEOF
4697 #line $LINENO "configure"
4698 /* confdefs.h.  */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h.  */
4703 #include <ac_nonexistent.h>
4704 _ACEOF
4705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4706   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4707   ac_status=$?
4708   grep -v '^ *+' conftest.er1 >conftest.err
4709   rm -f conftest.er1
4710   cat conftest.err >&5
4711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712   (exit $ac_status); } >/dev/null; then
4713   if test -s conftest.err; then
4714     ac_cpp_err=$ac_cxx_preproc_warn_flag
4715   else
4716     ac_cpp_err=
4717   fi
4718 else
4719   ac_cpp_err=yes
4720 fi
4721 if test -z "$ac_cpp_err"; then
4722   # Broken: success on invalid input.
4723 continue
4724 else
4725   echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4727
4728   # Passes both tests.
4729 ac_preproc_ok=:
4730 break
4731 fi
4732 rm -f conftest.err conftest.$ac_ext
4733
4734 done
4735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4736 rm -f conftest.err conftest.$ac_ext
4737 if $ac_preproc_ok; then
4738   break
4739 fi
4740
4741     done
4742     ac_cv_prog_CXXCPP=$CXXCPP
4743
4744 fi
4745   CXXCPP=$ac_cv_prog_CXXCPP
4746 else
4747   ac_cv_prog_CXXCPP=$CXXCPP
4748 fi
4749 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4750 echo "${ECHO_T}$CXXCPP" >&6
4751 ac_preproc_ok=false
4752 for ac_cxx_preproc_warn_flag in '' yes
4753 do
4754   # Use a header file that comes with gcc, so configuring glibc
4755   # with a fresh cross-compiler works.
4756   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4757   # <limits.h> exists even on freestanding compilers.
4758   # On the NeXT, cc -E runs the code through the compiler's parser,
4759   # not just through cpp. "Syntax error" is here to catch this case.
4760   cat >conftest.$ac_ext <<_ACEOF
4761 #line $LINENO "configure"
4762 /* confdefs.h.  */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h.  */
4767 #ifdef __STDC__
4768 # include <limits.h>
4769 #else
4770 # include <assert.h>
4771 #endif
4772                      Syntax error
4773 _ACEOF
4774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4775   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4776   ac_status=$?
4777   grep -v '^ *+' conftest.er1 >conftest.err
4778   rm -f conftest.er1
4779   cat conftest.err >&5
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); } >/dev/null; then
4782   if test -s conftest.err; then
4783     ac_cpp_err=$ac_cxx_preproc_warn_flag
4784   else
4785     ac_cpp_err=
4786   fi
4787 else
4788   ac_cpp_err=yes
4789 fi
4790 if test -z "$ac_cpp_err"; then
4791   :
4792 else
4793   echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4795
4796   # Broken: fails on valid input.
4797 continue
4798 fi
4799 rm -f conftest.err conftest.$ac_ext
4800
4801   # OK, works on sane cases.  Now check whether non-existent headers
4802   # can be detected and how.
4803   cat >conftest.$ac_ext <<_ACEOF
4804 #line $LINENO "configure"
4805 /* confdefs.h.  */
4806 _ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h.  */
4810 #include <ac_nonexistent.h>
4811 _ACEOF
4812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4813   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4814   ac_status=$?
4815   grep -v '^ *+' conftest.er1 >conftest.err
4816   rm -f conftest.er1
4817   cat conftest.err >&5
4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819   (exit $ac_status); } >/dev/null; then
4820   if test -s conftest.err; then
4821     ac_cpp_err=$ac_cxx_preproc_warn_flag
4822   else
4823     ac_cpp_err=
4824   fi
4825 else
4826   ac_cpp_err=yes
4827 fi
4828 if test -z "$ac_cpp_err"; then
4829   # Broken: success on invalid input.
4830 continue
4831 else
4832   echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4834
4835   # Passes both tests.
4836 ac_preproc_ok=:
4837 break
4838 fi
4839 rm -f conftest.err conftest.$ac_ext
4840
4841 done
4842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4843 rm -f conftest.err conftest.$ac_ext
4844 if $ac_preproc_ok; then
4845   :
4846 else
4847   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4848 See \`config.log' for more details." >&5
4849 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4850 See \`config.log' for more details." >&2;}
4851    { (exit 1); exit 1; }; }
4852 fi
4853
4854 ac_ext=cc
4855 ac_cpp='$CXXCPP $CPPFLAGS'
4856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4859
4860
4861 ac_ext=f
4862 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4863 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4865 if test -n "$ac_tool_prefix"; then
4866   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4867   do
4868     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4870 echo "$as_me:$LINENO: checking for $ac_word" >&5
4871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4872 if test "${ac_cv_prog_F77+set}" = set; then
4873   echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875   if test -n "$F77"; then
4876   ac_cv_prog_F77="$F77" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4880 do
4881   IFS=$as_save_IFS
4882   test -z "$as_dir" && as_dir=.
4883   for ac_exec_ext in '' $ac_executable_extensions; do
4884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4885     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887     break 2
4888   fi
4889 done
4890 done
4891
4892 fi
4893 fi
4894 F77=$ac_cv_prog_F77
4895 if test -n "$F77"; then
4896   echo "$as_me:$LINENO: result: $F77" >&5
4897 echo "${ECHO_T}$F77" >&6
4898 else
4899   echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6
4901 fi
4902
4903     test -n "$F77" && break
4904   done
4905 fi
4906 if test -z "$F77"; then
4907   ac_ct_F77=$F77
4908   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4909 do
4910   # Extract the first word of "$ac_prog", so it can be a program name with args.
4911 set dummy $ac_prog; ac_word=$2
4912 echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4914 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4915   echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917   if test -n "$ac_ct_F77"; then
4918   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4922 do
4923   IFS=$as_save_IFS
4924   test -z "$as_dir" && as_dir=.
4925   for ac_exec_ext in '' $ac_executable_extensions; do
4926   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927     ac_cv_prog_ac_ct_F77="$ac_prog"
4928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929     break 2
4930   fi
4931 done
4932 done
4933
4934 fi
4935 fi
4936 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4937 if test -n "$ac_ct_F77"; then
4938   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4939 echo "${ECHO_T}$ac_ct_F77" >&6
4940 else
4941   echo "$as_me:$LINENO: result: no" >&5
4942 echo "${ECHO_T}no" >&6
4943 fi
4944
4945   test -n "$ac_ct_F77" && break
4946 done
4947
4948   F77=$ac_ct_F77
4949 fi
4950
4951
4952 # Provide some information about the compiler.
4953 echo "$as_me:4953:" \
4954      "checking for Fortran 77 compiler version" >&5
4955 ac_compiler=`set X $ac_compile; echo $2`
4956 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4957   (eval $ac_compiler --version </dev/null >&5) 2>&5
4958   ac_status=$?
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); }
4961 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4962   (eval $ac_compiler -v </dev/null >&5) 2>&5
4963   ac_status=$?
4964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965   (exit $ac_status); }
4966 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4967   (eval $ac_compiler -V </dev/null >&5) 2>&5
4968   ac_status=$?
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); }
4971
4972 # If we don't use `.F' as extension, the preprocessor is not run on the
4973 # input file.
4974 ac_save_ext=$ac_ext
4975 ac_ext=F
4976 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4977 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4978 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4979   echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981   cat >conftest.$ac_ext <<_ACEOF
4982       program main
4983 #ifndef __GNUC__
4984        choke me
4985 #endif
4986
4987       end
4988 _ACEOF
4989 rm -f conftest.$ac_objext
4990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991   (eval $ac_compile) 2>&5
4992   ac_status=$?
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); } &&
4995          { ac_try='test -s conftest.$ac_objext'
4996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997   (eval $ac_try) 2>&5
4998   ac_status=$?
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); }; }; then
5001   ac_compiler_gnu=yes
5002 else
5003   echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5005
5006 ac_compiler_gnu=no
5007 fi
5008 rm -f conftest.$ac_objext conftest.$ac_ext
5009 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5010
5011 fi
5012 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5013 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5014 ac_ext=$ac_save_ext
5015 G77=`test $ac_compiler_gnu = yes && echo yes`
5016 ac_test_FFLAGS=${FFLAGS+set}
5017 ac_save_FFLAGS=$FFLAGS
5018 FFLAGS=
5019 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5020 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5021 if test "${ac_cv_prog_f77_g+set}" = set; then
5022   echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024   FFLAGS=-g
5025 cat >conftest.$ac_ext <<_ACEOF
5026       program main
5027
5028       end
5029 _ACEOF
5030 rm -f conftest.$ac_objext
5031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5032   (eval $ac_compile) 2>&5
5033   ac_status=$?
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); } &&
5036          { ac_try='test -s conftest.$ac_objext'
5037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038   (eval $ac_try) 2>&5
5039   ac_status=$?
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); }; }; then
5042   ac_cv_prog_f77_g=yes
5043 else
5044   echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5046
5047 ac_cv_prog_f77_g=no
5048 fi
5049 rm -f conftest.$ac_objext conftest.$ac_ext
5050
5051 fi
5052 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5053 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5054 if test "$ac_test_FFLAGS" = set; then
5055   FFLAGS=$ac_save_FFLAGS
5056 elif test $ac_cv_prog_f77_g = yes; then
5057   if test "$G77" = yes; then
5058     FFLAGS="-g -O2"
5059   else
5060     FFLAGS="-g"
5061   fi
5062 else
5063   if test "$G77" = yes; then
5064     FFLAGS="-O2"
5065   else
5066     FFLAGS=
5067   fi
5068 fi
5069 ac_ext=c
5070 ac_cpp='$CPP $CPPFLAGS'
5071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5074
5075
5076
5077 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5078
5079 # find the maximum length of command line arguments
5080 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5081 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5082 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5083   echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085     i=0
5086   testring="ABCD"
5087
5088   case $build_os in
5089   msdosdjgpp*)
5090     # On DJGPP, this test can blow up pretty badly due to problems in libc
5091     # (any single argument exceeding 2000 bytes causes a buffer overrun
5092     # during glob expansion).  Even if it were fixed, the result of this
5093     # check would be larger than it should be.
5094     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5095     ;;
5096
5097   gnu*)
5098     # Under GNU Hurd, this test is not required because there is
5099     # no limit to the length of command line arguments.
5100     # Libtool will interpret -1 as no limit whatsoever
5101     lt_cv_sys_max_cmd_len=-1;
5102     ;;
5103
5104   cygwin* | mingw*)
5105     # On Win9x/ME, this test blows up -- it succeeds, but takes
5106     # about 5 minutes as the teststring grows exponentially.
5107     # Worse, since 9x/ME are not pre-emptively multitasking,
5108     # you end up with a "frozen" computer, even though with patience
5109     # the test eventually succeeds (with a max line length of 256k).
5110     # Instead, let's just punt: use the minimum linelength reported by
5111     # all of the supported platforms: 8192 (on NT/2K/XP).
5112     lt_cv_sys_max_cmd_len=8192;
5113     ;;
5114
5115  *)
5116     # If test is not a shell built-in, we'll probably end up computing a
5117     # maximum length that is only half of the actual maximum length, but
5118     # we can't tell.
5119     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5120                = "XX$testring") >/dev/null 2>&1 &&
5121             new_result=`expr "X$testring" : ".*" 2>&1` &&
5122             lt_cv_sys_max_cmd_len=$new_result &&
5123             test $i != 17 # 1/2 MB should be enough
5124     do
5125       i=`expr $i + 1`
5126       testring=$testring$testring
5127     done
5128     testring=
5129     # Add a significant safety factor because C++ compilers can tack on massive
5130     # amounts of additional arguments before passing them to the linker.
5131     # It appears as though 1/2 is a usable value.
5132     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5133     ;;
5134   esac
5135
5136 fi
5137
5138 if test -n $lt_cv_sys_max_cmd_len ; then
5139   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5140 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5141 else
5142   echo "$as_me:$LINENO: result: none" >&5
5143 echo "${ECHO_T}none" >&6
5144 fi
5145
5146
5147
5148
5149 # Check for command to grab the raw symbol name followed by C symbol from nm.
5150 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5151 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5152 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5153   echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155
5156 # These are sane defaults that work on at least a few old systems.
5157 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5158
5159 # Character class describing NM global symbol codes.
5160 symcode='[BCDEGRST]'
5161
5162 # Regexp to match symbols that can be accessed directly from C.
5163 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5164
5165 # Transform the above into a raw symbol and a C symbol.
5166 symxfrm='\1 \2\3 \3'
5167
5168 # Transform an extracted symbol line into a proper C declaration
5169 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5170
5171 # Transform an extracted symbol line into symbol name and symbol address
5172 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'"
5173
5174 # Define system-specific variables.
5175 case $host_os in
5176 aix*)
5177   symcode='[BCDT]'
5178   ;;
5179 cygwin* | mingw* | pw32*)
5180   symcode='[ABCDGISTW]'
5181   ;;
5182 hpux*) # Its linker distinguishes data from code symbols
5183   if test "$host_cpu" = ia64; then
5184     symcode='[ABCDEGRST]'
5185   fi
5186   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5187   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'"
5188   ;;
5189 irix* | nonstopux*)
5190   symcode='[BCDEGRST]'
5191   ;;
5192 osf*)
5193   symcode='[BCDEGQRST]'
5194   ;;
5195 solaris* | sysv5*)
5196   symcode='[BDT]'
5197   ;;
5198 sysv4)
5199   symcode='[DFNSTU]'
5200   ;;
5201 esac
5202
5203 # Handle CRLF in mingw tool chain
5204 opt_cr=
5205 case $build_os in
5206 mingw*)
5207   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5208   ;;
5209 esac
5210
5211 # If we're using GNU nm, then use its standard symbol codes.
5212 case `$NM -V 2>&1` in
5213 *GNU* | *'with BFD'*)
5214   symcode='[ABCDGISTW]' ;;
5215 esac
5216
5217 # Try without a prefix undercore, then with it.
5218 for ac_symprfx in "" "_"; do
5219
5220   # Write the raw and C identifiers.
5221   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5222
5223   # Check to see that the pipe works correctly.
5224   pipe_works=no
5225
5226   rm -f conftest*
5227   cat > conftest.$ac_ext <<EOF
5228 #ifdef __cplusplus
5229 extern "C" {
5230 #endif
5231 char nm_test_var;
5232 void nm_test_func(){}
5233 #ifdef __cplusplus
5234 }
5235 #endif
5236 int main(){nm_test_var='a';nm_test_func();return(0);}
5237 EOF
5238
5239   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5240   (eval $ac_compile) 2>&5
5241   ac_status=$?
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); }; then
5244     # Now try to grab the symbols.
5245     nlist=conftest.nm
5246     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5247   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); } && test -s "$nlist"; then
5251       # Try sorting and uniquifying the output.
5252       if sort "$nlist" | uniq > "$nlist"T; then
5253         mv -f "$nlist"T "$nlist"
5254       else
5255         rm -f "$nlist"T
5256       fi
5257
5258       # Make sure that we snagged all the symbols we need.
5259       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5260         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5261           cat <<EOF > conftest.$ac_ext
5262 #ifdef __cplusplus
5263 extern "C" {
5264 #endif
5265
5266 EOF
5267           # Now generate the symbol file.
5268           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5269
5270           cat <<EOF >> conftest.$ac_ext
5271 #if defined (__STDC__) && __STDC__
5272 # define lt_ptr_t void *
5273 #else
5274 # define lt_ptr_t char *
5275 # define const
5276 #endif
5277
5278 /* The mapping between symbol names and symbols. */
5279 const struct {
5280   const char *name;
5281   lt_ptr_t address;
5282 }
5283 lt_preloaded_symbols[] =
5284 {
5285 EOF
5286           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5287           cat <<\EOF >> conftest.$ac_ext
5288   {0, (lt_ptr_t) 0}
5289 };
5290
5291 #ifdef __cplusplus
5292 }
5293 #endif
5294 EOF
5295           # Now try linking the two files.
5296           mv conftest.$ac_objext conftstm.$ac_objext
5297           lt_save_LIBS="$LIBS"
5298           lt_save_CFLAGS="$CFLAGS"
5299           LIBS="conftstm.$ac_objext"
5300           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5301           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5302   (eval $ac_link) 2>&5
5303   ac_status=$?
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5306             pipe_works=yes
5307           fi
5308           LIBS="$lt_save_LIBS"
5309           CFLAGS="$lt_save_CFLAGS"
5310         else
5311           echo "cannot find nm_test_func in $nlist" >&5
5312         fi
5313       else
5314         echo "cannot find nm_test_var in $nlist" >&5
5315       fi
5316     else
5317       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5318     fi
5319   else
5320     echo "$progname: failed program was:" >&5
5321     cat conftest.$ac_ext >&5
5322   fi
5323   rm -f conftest* conftst*
5324
5325   # Do not use the global_symbol_pipe unless it works.
5326   if test "$pipe_works" = yes; then
5327     break
5328   else
5329     lt_cv_sys_global_symbol_pipe=
5330   fi
5331 done
5332
5333 fi
5334
5335 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5336   lt_cv_sys_global_symbol_to_cdecl=
5337 fi
5338 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5339   echo "$as_me:$LINENO: result: failed" >&5
5340 echo "${ECHO_T}failed" >&6
5341 else
5342   echo "$as_me:$LINENO: result: ok" >&5
5343 echo "${ECHO_T}ok" >&6
5344 fi
5345
5346 echo "$as_me:$LINENO: checking for objdir" >&5
5347 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5348 if test "${lt_cv_objdir+set}" = set; then
5349   echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351   rm -f .libs 2>/dev/null
5352 mkdir .libs 2>/dev/null
5353 if test -d .libs; then
5354   lt_cv_objdir=.libs
5355 else
5356   # MS-DOS does not allow filenames that begin with a dot.
5357   lt_cv_objdir=_libs
5358 fi
5359 rmdir .libs 2>/dev/null
5360 fi
5361 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5362 echo "${ECHO_T}$lt_cv_objdir" >&6
5363 objdir=$lt_cv_objdir
5364
5365
5366
5367
5368
5369 case $host_os in
5370 aix3*)
5371   # AIX sometimes has problems with the GCC collect2 program.  For some
5372   # reason, if we set the COLLECT_NAMES environment variable, the problems
5373   # vanish in a puff of smoke.
5374   if test "X${COLLECT_NAMES+set}" != Xset; then
5375     COLLECT_NAMES=
5376     export COLLECT_NAMES
5377   fi
5378   ;;
5379 esac
5380
5381 # Sed substitution that helps us do robust quoting.  It backslashifies
5382 # metacharacters that are still active within double-quoted strings.
5383 Xsed='sed -e s/^X//'
5384 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5385
5386 # Same as above, but do not quote variable references.
5387 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5388
5389 # Sed substitution to delay expansion of an escaped shell variable in a
5390 # double_quote_subst'ed string.
5391 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5392
5393 # Sed substitution to avoid accidental globbing in evaled expressions
5394 no_glob_subst='s/\*/\\\*/g'
5395
5396 # Constants:
5397 rm="rm -f"
5398
5399 # Global variables:
5400 default_ofile=mklib
5401 can_build_shared=yes
5402
5403 # All known linkers require a `.a' archive for static linking (except M$VC,
5404 # which needs '.lib').
5405 libext=a
5406 ltmain="$ac_aux_dir/ltmain.sh"
5407 ofile="$default_ofile"
5408 with_gnu_ld="$lt_cv_prog_gnu_ld"
5409
5410 if test -n "$ac_tool_prefix"; then
5411   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5412 set dummy ${ac_tool_prefix}ar; ac_word=$2
5413 echo "$as_me:$LINENO: checking for $ac_word" >&5
5414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5415 if test "${ac_cv_prog_AR+set}" = set; then
5416   echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418   if test -n "$AR"; then
5419   ac_cv_prog_AR="$AR" # Let the user override the test.
5420 else
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 for as_dir in $PATH
5423 do
5424   IFS=$as_save_IFS
5425   test -z "$as_dir" && as_dir=.
5426   for ac_exec_ext in '' $ac_executable_extensions; do
5427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5428     ac_cv_prog_AR="${ac_tool_prefix}ar"
5429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5430     break 2
5431   fi
5432 done
5433 done
5434
5435 fi
5436 fi
5437 AR=$ac_cv_prog_AR
5438 if test -n "$AR"; then
5439   echo "$as_me:$LINENO: result: $AR" >&5
5440 echo "${ECHO_T}$AR" >&6
5441 else
5442   echo "$as_me:$LINENO: result: no" >&5
5443 echo "${ECHO_T}no" >&6
5444 fi
5445
5446 fi
5447 if test -z "$ac_cv_prog_AR"; then
5448   ac_ct_AR=$AR
5449   # Extract the first word of "ar", so it can be a program name with args.
5450 set dummy ar; ac_word=$2
5451 echo "$as_me:$LINENO: checking for $ac_word" >&5
5452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5453 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5454   echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456   if test -n "$ac_ct_AR"; then
5457   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5458 else
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5461 do
5462   IFS=$as_save_IFS
5463   test -z "$as_dir" && as_dir=.
5464   for ac_exec_ext in '' $ac_executable_extensions; do
5465   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466     ac_cv_prog_ac_ct_AR="ar"
5467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5468     break 2
5469   fi
5470 done
5471 done
5472
5473   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5474 fi
5475 fi
5476 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5477 if test -n "$ac_ct_AR"; then
5478   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5479 echo "${ECHO_T}$ac_ct_AR" >&6
5480 else
5481   echo "$as_me:$LINENO: result: no" >&5
5482 echo "${ECHO_T}no" >&6
5483 fi
5484
5485   AR=$ac_ct_AR
5486 else
5487   AR="$ac_cv_prog_AR"
5488 fi
5489
5490 if test -n "$ac_tool_prefix"; then
5491   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5492 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5493 echo "$as_me:$LINENO: checking for $ac_word" >&5
5494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5495 if test "${ac_cv_prog_RANLIB+set}" = set; then
5496   echo $ECHO_N "(cached) $ECHO_C" >&6
5497 else
5498   if test -n "$RANLIB"; then
5499   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5500 else
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5503 do
5504   IFS=$as_save_IFS
5505   test -z "$as_dir" && as_dir=.
5506   for ac_exec_ext in '' $ac_executable_extensions; do
5507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5510     break 2
5511   fi
5512 done
5513 done
5514
5515 fi
5516 fi
5517 RANLIB=$ac_cv_prog_RANLIB
5518 if test -n "$RANLIB"; then
5519   echo "$as_me:$LINENO: result: $RANLIB" >&5
5520 echo "${ECHO_T}$RANLIB" >&6
5521 else
5522   echo "$as_me:$LINENO: result: no" >&5
5523 echo "${ECHO_T}no" >&6
5524 fi
5525
5526 fi
5527 if test -z "$ac_cv_prog_RANLIB"; then
5528   ac_ct_RANLIB=$RANLIB
5529   # Extract the first word of "ranlib", so it can be a program name with args.
5530 set dummy ranlib; ac_word=$2
5531 echo "$as_me:$LINENO: checking for $ac_word" >&5
5532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5533 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5534   echo $ECHO_N "(cached) $ECHO_C" >&6
5535 else
5536   if test -n "$ac_ct_RANLIB"; then
5537   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5538 else
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 for as_dir in $PATH
5541 do
5542   IFS=$as_save_IFS
5543   test -z "$as_dir" && as_dir=.
5544   for ac_exec_ext in '' $ac_executable_extensions; do
5545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5546     ac_cv_prog_ac_ct_RANLIB="ranlib"
5547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5548     break 2
5549   fi
5550 done
5551 done
5552
5553   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5554 fi
5555 fi
5556 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5557 if test -n "$ac_ct_RANLIB"; then
5558   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5559 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5560 else
5561   echo "$as_me:$LINENO: result: no" >&5
5562 echo "${ECHO_T}no" >&6
5563 fi
5564
5565   RANLIB=$ac_ct_RANLIB
5566 else
5567   RANLIB="$ac_cv_prog_RANLIB"
5568 fi
5569
5570 if test -n "$ac_tool_prefix"; then
5571   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5572 set dummy ${ac_tool_prefix}strip; ac_word=$2
5573 echo "$as_me:$LINENO: checking for $ac_word" >&5
5574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5575 if test "${ac_cv_prog_STRIP+set}" = set; then
5576   echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578   if test -n "$STRIP"; then
5579   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5580 else
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5583 do
5584   IFS=$as_save_IFS
5585   test -z "$as_dir" && as_dir=.
5586   for ac_exec_ext in '' $ac_executable_extensions; do
5587   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5590     break 2
5591   fi
5592 done
5593 done
5594
5595 fi
5596 fi
5597 STRIP=$ac_cv_prog_STRIP
5598 if test -n "$STRIP"; then
5599   echo "$as_me:$LINENO: result: $STRIP" >&5
5600 echo "${ECHO_T}$STRIP" >&6
5601 else
5602   echo "$as_me:$LINENO: result: no" >&5
5603 echo "${ECHO_T}no" >&6
5604 fi
5605
5606 fi
5607 if test -z "$ac_cv_prog_STRIP"; then
5608   ac_ct_STRIP=$STRIP
5609   # Extract the first word of "strip", so it can be a program name with args.
5610 set dummy strip; ac_word=$2
5611 echo "$as_me:$LINENO: checking for $ac_word" >&5
5612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5613 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5614   echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616   if test -n "$ac_ct_STRIP"; then
5617   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5618 else
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5621 do
5622   IFS=$as_save_IFS
5623   test -z "$as_dir" && as_dir=.
5624   for ac_exec_ext in '' $ac_executable_extensions; do
5625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626     ac_cv_prog_ac_ct_STRIP="strip"
5627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5628     break 2
5629   fi
5630 done
5631 done
5632
5633   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5634 fi
5635 fi
5636 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5637 if test -n "$ac_ct_STRIP"; then
5638   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5639 echo "${ECHO_T}$ac_ct_STRIP" >&6
5640 else
5641   echo "$as_me:$LINENO: result: no" >&5
5642 echo "${ECHO_T}no" >&6
5643 fi
5644
5645   STRIP=$ac_ct_STRIP
5646 else
5647   STRIP="$ac_cv_prog_STRIP"
5648 fi
5649
5650
5651 old_CC="$CC"
5652 old_CFLAGS="$CFLAGS"
5653
5654 # Set sane defaults for various variables
5655 test -z "$AR" && AR=ar
5656 test -z "$AR_FLAGS" && AR_FLAGS=cru
5657 test -z "$AS" && AS=as
5658 test -z "$CC" && CC=cc
5659 test -z "$LTCC" && LTCC=$CC
5660 test -z "$DLLTOOL" && DLLTOOL=dlltool
5661 test -z "$LD" && LD=ld
5662 test -z "$LN_S" && LN_S="ln -s"
5663 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5664 test -z "$NM" && NM=nm
5665 test -z "$SED" && SED=sed
5666 test -z "$OBJDUMP" && OBJDUMP=objdump
5667 test -z "$RANLIB" && RANLIB=:
5668 test -z "$STRIP" && STRIP=:
5669 test -z "$ac_objext" && ac_objext=o
5670
5671 # Determine commands to create old-style static archives.
5672 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5673 old_postinstall_cmds='chmod 644 $oldlib'
5674 old_postuninstall_cmds=
5675
5676 if test -n "$RANLIB"; then
5677   case $host_os in
5678   openbsd*)
5679     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5680     ;;
5681   *)
5682     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5683     ;;
5684   esac
5685   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5686 fi
5687
5688 # Only perform the check for file, if the check method requires it
5689 case $deplibs_check_method in
5690 file_magic*)
5691   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5692     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5693 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5694 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697   case $MAGIC_CMD in
5698 [\\/*] |  ?:[\\/]*)
5699   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5700   ;;
5701 *)
5702   lt_save_MAGIC_CMD="$MAGIC_CMD"
5703   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5704   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5705   for ac_dir in $ac_dummy; do
5706     IFS="$lt_save_ifs"
5707     test -z "$ac_dir" && ac_dir=.
5708     if test -f $ac_dir/${ac_tool_prefix}file; then
5709       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5710       if test -n "$file_magic_test_file"; then
5711         case $deplibs_check_method in
5712         "file_magic "*)
5713           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5714           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5715           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5716             $EGREP "$file_magic_regex" > /dev/null; then
5717             :
5718           else
5719             cat <<EOF 1>&2
5720
5721 *** Warning: the command libtool uses to detect shared libraries,
5722 *** $file_magic_cmd, produces output that libtool cannot recognize.
5723 *** The result is that libtool may fail to recognize shared libraries
5724 *** as such.  This will affect the creation of libtool libraries that
5725 *** depend on shared libraries, but programs linked with such libtool
5726 *** libraries will work regardless of this problem.  Nevertheless, you
5727 *** may want to report the problem to your system manager and/or to
5728 *** bug-libtool@gnu.org
5729
5730 EOF
5731           fi ;;
5732         esac
5733       fi
5734       break
5735     fi
5736   done
5737   IFS="$lt_save_ifs"
5738   MAGIC_CMD="$lt_save_MAGIC_CMD"
5739   ;;
5740 esac
5741 fi
5742
5743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5744 if test -n "$MAGIC_CMD"; then
5745   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5746 echo "${ECHO_T}$MAGIC_CMD" >&6
5747 else
5748   echo "$as_me:$LINENO: result: no" >&5
5749 echo "${ECHO_T}no" >&6
5750 fi
5751
5752 if test -z "$lt_cv_path_MAGIC_CMD"; then
5753   if test -n "$ac_tool_prefix"; then
5754     echo "$as_me:$LINENO: checking for file" >&5
5755 echo $ECHO_N "checking for file... $ECHO_C" >&6
5756 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   case $MAGIC_CMD in
5760 [\\/*] |  ?:[\\/]*)
5761   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5762   ;;
5763 *)
5764   lt_save_MAGIC_CMD="$MAGIC_CMD"
5765   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5766   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5767   for ac_dir in $ac_dummy; do
5768     IFS="$lt_save_ifs"
5769     test -z "$ac_dir" && ac_dir=.
5770     if test -f $ac_dir/file; then
5771       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5772       if test -n "$file_magic_test_file"; then
5773         case $deplibs_check_method in
5774         "file_magic "*)
5775           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5776           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5777           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5778             $EGREP "$file_magic_regex" > /dev/null; then
5779             :
5780           else
5781             cat <<EOF 1>&2
5782
5783 *** Warning: the command libtool uses to detect shared libraries,
5784 *** $file_magic_cmd, produces output that libtool cannot recognize.
5785 *** The result is that libtool may fail to recognize shared libraries
5786 *** as such.  This will affect the creation of libtool libraries that
5787 *** depend on shared libraries, but programs linked with such libtool
5788 *** libraries will work regardless of this problem.  Nevertheless, you
5789 *** may want to report the problem to your system manager and/or to
5790 *** bug-libtool@gnu.org
5791
5792 EOF
5793           fi ;;
5794         esac
5795       fi
5796       break
5797     fi
5798   done
5799   IFS="$lt_save_ifs"
5800   MAGIC_CMD="$lt_save_MAGIC_CMD"
5801   ;;
5802 esac
5803 fi
5804
5805 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5806 if test -n "$MAGIC_CMD"; then
5807   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5808 echo "${ECHO_T}$MAGIC_CMD" >&6
5809 else
5810   echo "$as_me:$LINENO: result: no" >&5
5811 echo "${ECHO_T}no" >&6
5812 fi
5813
5814   else
5815     MAGIC_CMD=:
5816   fi
5817 fi
5818
5819   fi
5820   ;;
5821 esac
5822
5823 enable_dlopen=no
5824 enable_win32_dll=no
5825
5826 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5827 if test "${enable_libtool_lock+set}" = set; then
5828   enableval="$enable_libtool_lock"
5829
5830 fi;
5831 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5832
5833
5834 # Check whether --with-pic or --without-pic was given.
5835 if test "${with_pic+set}" = set; then
5836   withval="$with_pic"
5837   pic_mode="$withval"
5838 else
5839   pic_mode=default
5840 fi;
5841 test -z "$pic_mode" && pic_mode=default
5842
5843 # Use C for the default configuration in the libtool script
5844 tagname=
5845 lt_save_CC="$CC"
5846 ac_ext=c
5847 ac_cpp='$CPP $CPPFLAGS'
5848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5851
5852
5853 # Source file extension for C test sources.
5854 ac_ext=c
5855
5856 # Object file extension for compiled C test sources.
5857 objext=o
5858 objext=$objext
5859
5860 # Code to be used in simple compile tests
5861 lt_simple_compile_test_code="int some_variable = 0;\n"
5862
5863 # Code to be used in simple link tests
5864 lt_simple_link_test_code='int main(){return(0);}\n'
5865
5866
5867 # If no C compiler was specified, use CC.
5868 LTCC=${LTCC-"$CC"}
5869
5870 # Allow CC to be a program name with arguments.
5871 compiler=$CC
5872
5873
5874 #
5875 # Check for any special shared library compilation flags.
5876 #
5877 lt_prog_cc_shlib=
5878 if test "$GCC" = no; then
5879   case $host_os in
5880   sco3.2v5*)
5881     lt_prog_cc_shlib='-belf'
5882     ;;
5883   esac
5884 fi
5885 if test -n "$lt_prog_cc_shlib"; then
5886   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5887 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5888   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5889   else
5890     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5891 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5892     lt_cv_prog_cc_can_build_shared=no
5893   fi
5894 fi
5895
5896
5897 #
5898 # Check to make sure the static flag actually works.
5899 #
5900 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5901 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5902 if test "${lt_prog_compiler_static_works+set}" = set; then
5903   echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905   lt_prog_compiler_static_works=no
5906    save_LDFLAGS="$LDFLAGS"
5907    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5908    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5909    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5910      # The compiler can only warn and ignore the option if not recognized
5911      # So say no if there are warnings
5912      if test -s conftest.err; then
5913        # Append any errors to the config.log.
5914        cat conftest.err 1>&5
5915      else
5916        lt_prog_compiler_static_works=yes
5917      fi
5918    fi
5919    $rm conftest*
5920    LDFLAGS="$save_LDFLAGS"
5921
5922 fi
5923 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5924 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5925
5926 if test x"$lt_prog_compiler_static_works" = xyes; then
5927     :
5928 else
5929     lt_prog_compiler_static=
5930 fi
5931
5932
5933
5934
5935 lt_prog_compiler_no_builtin_flag=
5936
5937 if test "$GCC" = yes; then
5938   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5939
5940   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5941 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5942 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5943   echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945   lt_cv_prog_compiler_rtti_exceptions=no
5946   ac_outfile=conftest.$ac_objext
5947    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5948    lt_compiler_flag="-fno-rtti -fno-exceptions"
5949    # Insert the option either (1) after the last *FLAGS variable, or
5950    # (2) before a word containing "conftest.", or (3) at the end.
5951    # Note that $ac_compile itself does not contain backslashes and begins
5952    # with a dollar sign (not a hyphen), so the echo should work correctly.
5953    # The option is referenced via a variable to avoid confusing sed.
5954    lt_compile=`echo "$ac_compile" | $SED \
5955    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5956    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5957    -e 's:$: $lt_compiler_flag:'`
5958    (eval echo "\"\$as_me:5958: $lt_compile\"" >&5)
5959    (eval "$lt_compile" 2>conftest.err)
5960    ac_status=$?
5961    cat conftest.err >&5
5962    echo "$as_me:5962: \$? = $ac_status" >&5
5963    if (exit $ac_status) && test -s "$ac_outfile"; then
5964      # The compiler can only warn and ignore the option if not recognized
5965      # So say no if there are warnings
5966      if test ! -s conftest.err; then
5967        lt_cv_prog_compiler_rtti_exceptions=yes
5968      fi
5969    fi
5970    $rm conftest*
5971
5972 fi
5973 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5974 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5975
5976 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5977     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5978 else
5979     :
5980 fi
5981
5982 fi
5983
5984 lt_prog_compiler_wl=
5985 lt_prog_compiler_pic=
5986 lt_prog_compiler_static=
5987
5988 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5989 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5990
5991   if test "$GCC" = yes; then
5992     lt_prog_compiler_wl='-Wl,'
5993     lt_prog_compiler_static='-static'
5994
5995     case $host_os in
5996       aix*)
5997       # All AIX code is PIC.
5998       if test "$host_cpu" = ia64; then
5999         # AIX 5 now supports IA64 processor
6000         lt_prog_compiler_static='-Bstatic'
6001       fi
6002       ;;
6003
6004     amigaos*)
6005       # FIXME: we need at least 68020 code to build shared libraries, but
6006       # adding the `-m68020' flag to GCC prevents building anything better,
6007       # like `-m68040'.
6008       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6009       ;;
6010
6011     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6012       # PIC is the default for these OSes.
6013       ;;
6014
6015     mingw* | pw32* | os2*)
6016       # This hack is so that the source file can tell whether it is being
6017       # built for inclusion in a dll (and should export symbols for example).
6018       lt_prog_compiler_pic='-DDLL_EXPORT'
6019       ;;
6020
6021     darwin* | rhapsody*)
6022       # PIC is the default on this platform
6023       # Common symbols not allowed in MH_DYLIB files
6024       lt_prog_compiler_pic='-fno-common'
6025       ;;
6026
6027     msdosdjgpp*)
6028       # Just because we use GCC doesn't mean we suddenly get shared libraries
6029       # on systems that don't support them.
6030       lt_prog_compiler_can_build_shared=no
6031       enable_shared=no
6032       ;;
6033
6034     sysv4*MP*)
6035       if test -d /usr/nec; then
6036         lt_prog_compiler_pic=-Kconform_pic
6037       fi
6038       ;;
6039
6040     hpux*)
6041       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6042       # not for PA HP-UX.
6043       case "$host_cpu" in
6044       hppa*64*|ia64*)
6045         # +Z the default
6046         ;;
6047       *)
6048         lt_prog_compiler_pic='-fPIC'
6049         ;;
6050       esac
6051       ;;
6052
6053     *)
6054       lt_prog_compiler_pic='-fPIC'
6055       ;;
6056     esac
6057   else
6058     # PORTME Check for flag to pass linker flags through the system compiler.
6059     case $host_os in
6060     aix*)
6061       lt_prog_compiler_wl='-Wl,'
6062       if test "$host_cpu" = ia64; then
6063         # AIX 5 now supports IA64 processor
6064         lt_prog_compiler_static='-Bstatic'
6065       else
6066         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6067       fi
6068       ;;
6069
6070     mingw* | pw32* | os2*)
6071       # This hack is so that the source file can tell whether it is being
6072       # built for inclusion in a dll (and should export symbols for example).
6073       lt_prog_compiler_pic='-DDLL_EXPORT'
6074       ;;
6075
6076     hpux9* | hpux10* | hpux11*)
6077       lt_prog_compiler_wl='-Wl,'
6078       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6079       # not for PA HP-UX.
6080       case "$host_cpu" in
6081       hppa*64*|ia64*)
6082         # +Z the default
6083         ;;
6084       *)
6085         lt_prog_compiler_pic='+Z'
6086         ;;
6087       esac
6088       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6089       lt_prog_compiler_static='${wl}-a ${wl}archive'
6090       ;;
6091
6092     irix5* | irix6* | nonstopux*)
6093       lt_prog_compiler_wl='-Wl,'
6094       # PIC (with -KPIC) is the default.
6095       lt_prog_compiler_static='-non_shared'
6096       ;;
6097
6098     newsos6)
6099       lt_prog_compiler_pic='-KPIC'
6100       lt_prog_compiler_static='-Bstatic'
6101       ;;
6102
6103     linux*)
6104       case $CC in
6105       icc|ecc)
6106         lt_prog_compiler_wl='-Wl,'
6107         lt_prog_compiler_pic='-KPIC'
6108         lt_prog_compiler_static='-static'
6109         ;;
6110       ccc)
6111         lt_prog_compiler_wl='-Wl,'
6112         # All Alpha code is PIC.
6113         lt_prog_compiler_static='-non_shared'
6114         ;;
6115       esac
6116       ;;
6117
6118     osf3* | osf4* | osf5*)
6119       lt_prog_compiler_wl='-Wl,'
6120       # All OSF/1 code is PIC.
6121       lt_prog_compiler_static='-non_shared'
6122       ;;
6123
6124     sco3.2v5*)
6125       lt_prog_compiler_pic='-Kpic'
6126       lt_prog_compiler_static='-dn'
6127       ;;
6128
6129     solaris*)
6130       lt_prog_compiler_wl='-Wl,'
6131       lt_prog_compiler_pic='-KPIC'
6132       lt_prog_compiler_static='-Bstatic'
6133       ;;
6134
6135     sunos4*)
6136       lt_prog_compiler_wl='-Qoption ld '
6137       lt_prog_compiler_pic='-PIC'
6138       lt_prog_compiler_static='-Bstatic'
6139       ;;
6140
6141     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6142       lt_prog_compiler_wl='-Wl,'
6143       lt_prog_compiler_pic='-KPIC'
6144       lt_prog_compiler_static='-Bstatic'
6145       ;;
6146
6147     sysv4*MP*)
6148       if test -d /usr/nec ;then
6149         lt_prog_compiler_pic='-Kconform_pic'
6150         lt_prog_compiler_static='-Bstatic'
6151       fi
6152       ;;
6153
6154     uts4*)
6155       lt_prog_compiler_pic='-pic'
6156       lt_prog_compiler_static='-Bstatic'
6157       ;;
6158
6159     *)
6160       lt_prog_compiler_can_build_shared=no
6161       ;;
6162     esac
6163   fi
6164
6165 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6166 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6167
6168 #
6169 # Check to make sure the PIC flag actually works.
6170 #
6171 if test -n "$lt_prog_compiler_pic"; then
6172   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6173 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6174 if test "${lt_prog_compiler_pic_works+set}" = set; then
6175   echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177   lt_prog_compiler_pic_works=no
6178   ac_outfile=conftest.$ac_objext
6179    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6180    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6181    # Insert the option either (1) after the last *FLAGS variable, or
6182    # (2) before a word containing "conftest.", or (3) at the end.
6183    # Note that $ac_compile itself does not contain backslashes and begins
6184    # with a dollar sign (not a hyphen), so the echo should work correctly.
6185    # The option is referenced via a variable to avoid confusing sed.
6186    lt_compile=`echo "$ac_compile" | $SED \
6187    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6188    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6189    -e 's:$: $lt_compiler_flag:'`
6190    (eval echo "\"\$as_me:6190: $lt_compile\"" >&5)
6191    (eval "$lt_compile" 2>conftest.err)
6192    ac_status=$?
6193    cat conftest.err >&5
6194    echo "$as_me:6194: \$? = $ac_status" >&5
6195    if (exit $ac_status) && test -s "$ac_outfile"; then
6196      # The compiler can only warn and ignore the option if not recognized
6197      # So say no if there are warnings
6198      if test ! -s conftest.err; then
6199        lt_prog_compiler_pic_works=yes
6200      fi
6201    fi
6202    $rm conftest*
6203
6204 fi
6205 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6206 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6207
6208 if test x"$lt_prog_compiler_pic_works" = xyes; then
6209     case $lt_prog_compiler_pic in
6210      "" | " "*) ;;
6211      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6212      esac
6213 else
6214     lt_prog_compiler_pic=
6215      lt_prog_compiler_can_build_shared=no
6216 fi
6217
6218 fi
6219 case "$host_os" in
6220   # For platforms which do not support PIC, -DPIC is meaningless:
6221   *djgpp*)
6222     lt_prog_compiler_pic=
6223     ;;
6224   *)
6225     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6226     ;;
6227 esac
6228
6229 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6230 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6231 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6232   echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234   lt_cv_prog_compiler_c_o=no
6235    $rm -r conftest 2>/dev/null
6236    mkdir conftest
6237    cd conftest
6238    mkdir out
6239    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6240
6241    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6242    # that will create temporary files in the current directory regardless of
6243    # the output directory.  Thus, making CWD read-only will cause this test
6244    # to fail, enabling locking or at least warning the user not to do parallel
6245    # builds.
6246    chmod -w .
6247
6248    lt_compiler_flag="-o out/conftest2.$ac_objext"
6249    # Insert the option either (1) after the last *FLAGS variable, or
6250    # (2) before a word containing "conftest.", or (3) at the end.
6251    # Note that $ac_compile itself does not contain backslashes and begins
6252    # with a dollar sign (not a hyphen), so the echo should work correctly.
6253    lt_compile=`echo "$ac_compile" | $SED \
6254    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6255    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6256    -e 's:$: $lt_compiler_flag:'`
6257    (eval echo "\"\$as_me:6257: $lt_compile\"" >&5)
6258    (eval "$lt_compile" 2>out/conftest.err)
6259    ac_status=$?
6260    cat out/conftest.err >&5
6261    echo "$as_me:6261: \$? = $ac_status" >&5
6262    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6263    then
6264      # The compiler can only warn and ignore the option if not recognized
6265      # So say no if there are warnings
6266      if test ! -s out/conftest.err; then
6267        lt_cv_prog_compiler_c_o=yes
6268      fi
6269    fi
6270    chmod u+w .
6271    $rm conftest* out/*
6272    rmdir out
6273    cd ..
6274    rmdir conftest
6275    $rm conftest*
6276
6277 fi
6278 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6279 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6280
6281
6282 hard_links="nottested"
6283 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6284   # do not overwrite the value of need_locks provided by the user
6285   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6286 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6287   hard_links=yes
6288   $rm conftest*
6289   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6290   touch conftest.a
6291   ln conftest.a conftest.b 2>&5 || hard_links=no
6292   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6293   echo "$as_me:$LINENO: result: $hard_links" >&5
6294 echo "${ECHO_T}$hard_links" >&6
6295   if test "$hard_links" = no; then
6296     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6297 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6298     need_locks=warn
6299   fi
6300 else
6301   need_locks=no
6302 fi
6303
6304 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6305 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6306
6307   runpath_var=
6308   allow_undefined_flag=
6309   enable_shared_with_static_runtimes=no
6310   archive_cmds=
6311   archive_expsym_cmds=
6312   old_archive_From_new_cmds=
6313   old_archive_from_expsyms_cmds=
6314   export_dynamic_flag_spec=
6315   whole_archive_flag_spec=
6316   thread_safe_flag_spec=
6317   hardcode_libdir_flag_spec=
6318   hardcode_libdir_flag_spec_ld=
6319   hardcode_libdir_separator=
6320   hardcode_direct=no
6321   hardcode_minus_L=no
6322   hardcode_shlibpath_var=unsupported
6323   link_all_deplibs=unknown
6324   hardcode_automatic=no
6325   module_cmds=
6326   module_expsym_cmds=
6327   always_export_symbols=no
6328   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6329   # include_expsyms should be a list of space-separated symbols to be *always*
6330   # included in the symbol list
6331   include_expsyms=
6332   # exclude_expsyms can be an extended regexp of symbols to exclude
6333   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6334   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6335   # as well as any symbol that contains `d'.
6336   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6337   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6338   # platforms (ab)use it in PIC code, but their linkers get confused if
6339   # the symbol is explicitly referenced.  Since portable code cannot
6340   # rely on this symbol name, it's probably fine to never include it in
6341   # preloaded symbol tables.
6342   extract_expsyms_cmds=
6343
6344   case $host_os in
6345   cygwin* | mingw* | pw32*)
6346     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6347     # When not using gcc, we currently assume that we are using
6348     # Microsoft Visual C++.
6349     if test "$GCC" != yes; then
6350       with_gnu_ld=no
6351     fi
6352     ;;
6353   openbsd*)
6354     with_gnu_ld=no
6355     ;;
6356   esac
6357
6358   ld_shlibs=yes
6359   if test "$with_gnu_ld" = yes; then
6360     # If archive_cmds runs LD, not CC, wlarc should be empty
6361     wlarc='${wl}'
6362
6363     # See if GNU ld supports shared libraries.
6364     case $host_os in
6365     aix3* | aix4* | aix5*)
6366       # On AIX/PPC, the GNU linker is very broken
6367       if test "$host_cpu" != ia64; then
6368         ld_shlibs=no
6369         cat <<EOF 1>&2
6370
6371 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6372 *** to be unable to reliably create shared libraries on AIX.
6373 *** Therefore, libtool is disabling shared libraries support.  If you
6374 *** really care for shared libraries, you may want to modify your PATH
6375 *** so that a non-GNU linker is found, and then restart.
6376
6377 EOF
6378       fi
6379       ;;
6380
6381     amigaos*)
6382       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)'
6383       hardcode_libdir_flag_spec='-L$libdir'
6384       hardcode_minus_L=yes
6385
6386       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6387       # that the semantics of dynamic libraries on AmigaOS, at least up
6388       # to version 4, is to share data among multiple programs linked
6389       # with the same dynamic library.  Since this doesn't match the
6390       # behavior of shared libraries on other platforms, we can't use
6391       # them.
6392       ld_shlibs=no
6393       ;;
6394
6395     beos*)
6396       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6397         allow_undefined_flag=unsupported
6398         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6399         # support --undefined.  This deserves some investigation.  FIXME
6400         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6401       else
6402         ld_shlibs=no
6403       fi
6404       ;;
6405
6406     cygwin* | mingw* | pw32*)
6407       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6408       # as there is no search path for DLLs.
6409       hardcode_libdir_flag_spec='-L$libdir'
6410       allow_undefined_flag=unsupported
6411       always_export_symbols=no
6412       enable_shared_with_static_runtimes=yes
6413       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6414
6415       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6416         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6417         # If the export-symbols file already is a .def file (1st line
6418         # is EXPORTS), use it as is; otherwise, prepend...
6419         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6420           cp $export_symbols $output_objdir/$soname.def;
6421         else
6422           echo EXPORTS > $output_objdir/$soname.def;
6423           cat $export_symbols >> $output_objdir/$soname.def;
6424         fi~
6425         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6426       else
6427         ld_shlibs=no
6428       fi
6429       ;;
6430
6431     netbsd*)
6432       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6433         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6434         wlarc=
6435       else
6436         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6437         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6438       fi
6439       ;;
6440
6441     solaris* | sysv5*)
6442       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6443         ld_shlibs=no
6444         cat <<EOF 1>&2
6445
6446 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6447 *** create shared libraries on Solaris systems.  Therefore, libtool
6448 *** is disabling shared libraries support.  We urge you to upgrade GNU
6449 *** binutils to release 2.9.1 or newer.  Another option is to modify
6450 *** your PATH or compiler configuration so that the native linker is
6451 *** used, and then restart.
6452
6453 EOF
6454       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6455         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6456         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6457       else
6458         ld_shlibs=no
6459       fi
6460       ;;
6461
6462     sunos4*)
6463       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6464       wlarc=
6465       hardcode_direct=yes
6466       hardcode_shlibpath_var=no
6467       ;;
6468
6469     *)
6470       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6471         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6472         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6473       else
6474         ld_shlibs=no
6475       fi
6476       ;;
6477     esac
6478
6479     if test "$ld_shlibs" = yes; then
6480       runpath_var=LD_RUN_PATH
6481       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6482       export_dynamic_flag_spec='${wl}--export-dynamic'
6483       # ancient GNU ld didn't support --whole-archive et. al.
6484       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6485         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6486       else
6487         whole_archive_flag_spec=
6488       fi
6489     fi
6490   else
6491     # PORTME fill in a description of your system's linker (not GNU ld)
6492     case $host_os in
6493     aix3*)
6494       allow_undefined_flag=unsupported
6495       always_export_symbols=yes
6496       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'
6497       # Note: this linker hardcodes the directories in LIBPATH if there
6498       # are no directories specified by -L.
6499       hardcode_minus_L=yes
6500       if test "$GCC" = yes && test -z "$link_static_flag"; then
6501         # Neither direct hardcoding nor static linking is supported with a
6502         # broken collect2.
6503         hardcode_direct=unsupported
6504       fi
6505       ;;
6506
6507     aix4* | aix5*)
6508       if test "$host_cpu" = ia64; then
6509         # On IA64, the linker does run time linking by default, so we don't
6510         # have to do anything special.
6511         aix_use_runtimelinking=no
6512         exp_sym_flag='-Bexport'
6513         no_entry_flag=""
6514       else
6515         # If we're using GNU nm, then we don't want the "-C" option.
6516         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6517         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6518           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'
6519         else
6520           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'
6521         fi
6522         aix_use_runtimelinking=no
6523
6524         # Test if we are trying to use run time linking or normal
6525         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6526         # need to do runtime linking.
6527         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6528           for ld_flag in $LDFLAGS; do
6529           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6530             aix_use_runtimelinking=yes
6531             break
6532           fi
6533           done
6534         esac
6535
6536         exp_sym_flag='-bexport'
6537         no_entry_flag='-bnoentry'
6538       fi
6539
6540       # When large executables or shared objects are built, AIX ld can
6541       # have problems creating the table of contents.  If linking a library
6542       # or program results in "error TOC overflow" add -mminimal-toc to
6543       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6544       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6545
6546       archive_cmds=''
6547       hardcode_direct=yes
6548       hardcode_libdir_separator=':'
6549       link_all_deplibs=yes
6550
6551       if test "$GCC" = yes; then
6552         case $host_os in aix4.012|aix4.012.*)
6553         # We only want to do this on AIX 4.2 and lower, the check
6554         # below for broken collect2 doesn't work under 4.3+
6555           collect2name=`${CC} -print-prog-name=collect2`
6556           if test -f "$collect2name" && \
6557            strings "$collect2name" | grep resolve_lib_name >/dev/null
6558           then
6559           # We have reworked collect2
6560           hardcode_direct=yes
6561           else
6562           # We have old collect2
6563           hardcode_direct=unsupported
6564           # It fails to find uninstalled libraries when the uninstalled
6565           # path is not listed in the libpath.  Setting hardcode_minus_L
6566           # to unsupported forces relinking
6567           hardcode_minus_L=yes
6568           hardcode_libdir_flag_spec='-L$libdir'
6569           hardcode_libdir_separator=
6570           fi
6571         esac
6572         shared_flag='-shared'
6573       else
6574         # not using gcc
6575         if test "$host_cpu" = ia64; then
6576         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6577         # chokes on -Wl,-G. The following line is correct:
6578           shared_flag='-G'
6579         else
6580         if test "$aix_use_runtimelinking" = yes; then
6581             shared_flag='${wl}-G'
6582           else
6583             shared_flag='${wl}-bM:SRE'
6584         fi
6585         fi
6586       fi
6587
6588       # It seems that -bexpall does not export symbols beginning with
6589       # underscore (_), so it is better to generate a list of symbols to export.
6590       always_export_symbols=yes
6591       if test "$aix_use_runtimelinking" = yes; then
6592         # Warning - without using the other runtime loading flags (-brtl),
6593         # -berok will link without error, but may produce a broken library.
6594         allow_undefined_flag='-berok'
6595        # Determine the default libpath from the value encoded in an empty executable.
6596        cat >conftest.$ac_ext <<_ACEOF
6597 #line $LINENO "configure"
6598 /* confdefs.h.  */
6599 _ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h.  */
6603
6604 int
6605 main ()
6606 {
6607
6608   ;
6609   return 0;
6610 }
6611 _ACEOF
6612 rm -f conftest.$ac_objext conftest$ac_exeext
6613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6614   (eval $ac_link) 2>&5
6615   ac_status=$?
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); } &&
6618          { ac_try='test -s conftest$ac_exeext'
6619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620   (eval $ac_try) 2>&5
6621   ac_status=$?
6622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623   (exit $ac_status); }; }; then
6624
6625 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6626 }'`
6627 # Check for a 64-bit object if we didn't find anything.
6628 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; }
6629 }'`; fi
6630 else
6631   echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6633
6634 fi
6635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6636 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6637
6638        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6639         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"
6640        else
6641         if test "$host_cpu" = ia64; then
6642           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6643           allow_undefined_flag="-z nodefs"
6644           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"
6645         else
6646          # Determine the default libpath from the value encoded in an empty executable.
6647          cat >conftest.$ac_ext <<_ACEOF
6648 #line $LINENO "configure"
6649 /* confdefs.h.  */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h.  */
6654
6655 int
6656 main ()
6657 {
6658
6659   ;
6660   return 0;
6661 }
6662 _ACEOF
6663 rm -f conftest.$ac_objext conftest$ac_exeext
6664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6665   (eval $ac_link) 2>&5
6666   ac_status=$?
6667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668   (exit $ac_status); } &&
6669          { ac_try='test -s conftest$ac_exeext'
6670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671   (eval $ac_try) 2>&5
6672   ac_status=$?
6673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674   (exit $ac_status); }; }; then
6675
6676 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6677 }'`
6678 # Check for a 64-bit object if we didn't find anything.
6679 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; }
6680 }'`; fi
6681 else
6682   echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6684
6685 fi
6686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6687 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6688
6689          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6690           # Warning - without using the other run time loading flags,
6691           # -berok will link without error, but may produce a broken library.
6692           no_undefined_flag=' ${wl}-bernotok'
6693           allow_undefined_flag=' ${wl}-berok'
6694           # -bexpall does not export symbols beginning with underscore (_)
6695           always_export_symbols=yes
6696           # Exported symbols can be pulled into shared objects from archives
6697           whole_archive_flag_spec=' '
6698           archive_cmds_need_lc=yes
6699           # This is similar to how AIX traditionally builds it's shared libraries.
6700           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'
6701         fi
6702       fi
6703       ;;
6704
6705     amigaos*)
6706       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)'
6707       hardcode_libdir_flag_spec='-L$libdir'
6708       hardcode_minus_L=yes
6709       # see comment about different semantics on the GNU ld section
6710       ld_shlibs=no
6711       ;;
6712
6713     bsdi4*)
6714       export_dynamic_flag_spec=-rdynamic
6715       ;;
6716
6717     cygwin* | mingw* | pw32*)
6718       # When not using gcc, we currently assume that we are using
6719       # Microsoft Visual C++.
6720       # hardcode_libdir_flag_spec is actually meaningless, as there is
6721       # no search path for DLLs.
6722       hardcode_libdir_flag_spec=' '
6723       allow_undefined_flag=unsupported
6724       # Tell ltmain to make .lib files, not .a files.
6725       libext=lib
6726       # Tell ltmain to make .dll files, not .so files.
6727       shrext=".dll"
6728       # FIXME: Setting linknames here is a bad hack.
6729       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6730       # The linker will automatically build a .lib file if we build a DLL.
6731       old_archive_From_new_cmds='true'
6732       # FIXME: Should let the user specify the lib program.
6733       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6734       fix_srcfile_path='`cygpath -w "$srcfile"`'
6735       enable_shared_with_static_runtimes=yes
6736       ;;
6737
6738     darwin* | rhapsody*)
6739     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6740       archive_cmds_need_lc=no
6741       case "$host_os" in
6742       rhapsody* | darwin1.[012])
6743         allow_undefined_flag='-undefined suppress'
6744         ;;
6745       *) # Darwin 1.3 on
6746         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6747         ;;
6748       esac
6749       # FIXME: Relying on posixy $() will cause problems for
6750       #        cross-compilation, but unfortunately the echo tests do not
6751       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6752       #        `"' quotes if we put them in here... so don't!
6753         lt_int_apple_cc_single_mod=no
6754         output_verbose_link_cmd='echo'
6755         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6756           lt_int_apple_cc_single_mod=yes
6757         fi
6758         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6759           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6760         else
6761         archive_cmds='$CC -r ${wl}-bind_at_load -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'
6762       fi
6763       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6764       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6765         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6766           archive_expsym_cmds='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}'
6767         else
6768           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
6769         fi
6770           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6771       hardcode_direct=no
6772       hardcode_automatic=yes
6773       hardcode_shlibpath_var=unsupported
6774       whole_archive_flag_spec='-all_load $convenience'
6775       link_all_deplibs=yes
6776     fi
6777       ;;
6778
6779     dgux*)
6780       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6781       hardcode_libdir_flag_spec='-L$libdir'
6782       hardcode_shlibpath_var=no
6783       ;;
6784
6785     freebsd1*)
6786       ld_shlibs=no
6787       ;;
6788
6789     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6790     # support.  Future versions do this automatically, but an explicit c++rt0.o
6791     # does not break anything, and helps significantly (at the cost of a little
6792     # extra space).
6793     freebsd2.2*)
6794       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6795       hardcode_libdir_flag_spec='-R$libdir'
6796       hardcode_direct=yes
6797       hardcode_shlibpath_var=no
6798       ;;
6799
6800     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6801     freebsd2*)
6802       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6803       hardcode_direct=yes
6804       hardcode_minus_L=yes
6805       hardcode_shlibpath_var=no
6806       ;;
6807
6808     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6809     freebsd*)
6810       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6811       hardcode_libdir_flag_spec='-R$libdir'
6812       hardcode_direct=yes
6813       hardcode_shlibpath_var=no
6814       ;;
6815
6816     hpux9*)
6817       if test "$GCC" = yes; then
6818         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'
6819       else
6820         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'
6821       fi
6822       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6823       hardcode_libdir_separator=:
6824       hardcode_direct=yes
6825
6826       # hardcode_minus_L: Not really in the search PATH,
6827       # but as the default location of the library.
6828       hardcode_minus_L=yes
6829       export_dynamic_flag_spec='${wl}-E'
6830       ;;
6831
6832     hpux10* | hpux11*)
6833       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6834         case "$host_cpu" in
6835         hppa*64*|ia64*)
6836           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6837           ;;
6838         *)
6839           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6840           ;;
6841         esac
6842       else
6843         case "$host_cpu" in
6844         hppa*64*|ia64*)
6845           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6846           ;;
6847         *)
6848           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6849           ;;
6850         esac
6851       fi
6852       if test "$with_gnu_ld" = no; then
6853         case "$host_cpu" in
6854         hppa*64*)
6855           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6856           hardcode_libdir_flag_spec_ld='+b $libdir'
6857           hardcode_libdir_separator=:
6858           hardcode_direct=no
6859           hardcode_shlibpath_var=no
6860           ;;
6861         ia64*)
6862           hardcode_libdir_flag_spec='-L$libdir'
6863           hardcode_direct=no
6864           hardcode_shlibpath_var=no
6865
6866           # hardcode_minus_L: Not really in the search PATH,
6867           # but as the default location of the library.
6868           hardcode_minus_L=yes
6869           ;;
6870         *)
6871           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6872           hardcode_libdir_separator=:
6873           hardcode_direct=yes
6874           export_dynamic_flag_spec='${wl}-E'
6875
6876           # hardcode_minus_L: Not really in the search PATH,
6877           # but as the default location of the library.
6878           hardcode_minus_L=yes
6879           ;;
6880         esac
6881       fi
6882       ;;
6883
6884     irix5* | irix6* | nonstopux*)
6885       if test "$GCC" = yes; then
6886         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'
6887       else
6888         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'
6889         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6890       fi
6891       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6892       hardcode_libdir_separator=:
6893       link_all_deplibs=yes
6894       ;;
6895
6896     netbsd*)
6897       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6898         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6899       else
6900         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6901       fi
6902       hardcode_libdir_flag_spec='-R$libdir'
6903       hardcode_direct=yes
6904       hardcode_shlibpath_var=no
6905       ;;
6906
6907     newsos6)
6908       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6909       hardcode_direct=yes
6910       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6911       hardcode_libdir_separator=:
6912       hardcode_shlibpath_var=no
6913       ;;
6914
6915     openbsd*)
6916       hardcode_direct=yes
6917       hardcode_shlibpath_var=no
6918       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6919         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6920         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6921         export_dynamic_flag_spec='${wl}-E'
6922       else
6923        case $host_os in
6924          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6925            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6926            hardcode_libdir_flag_spec='-R$libdir'
6927            ;;
6928          *)
6929            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6930            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6931            ;;
6932        esac
6933       fi
6934       ;;
6935
6936     os2*)
6937       hardcode_libdir_flag_spec='-L$libdir'
6938       hardcode_minus_L=yes
6939       allow_undefined_flag=unsupported
6940       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'
6941       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6942       ;;
6943
6944     osf3*)
6945       if test "$GCC" = yes; then
6946         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6947         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'
6948       else
6949         allow_undefined_flag=' -expect_unresolved \*'
6950         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'
6951       fi
6952       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6953       hardcode_libdir_separator=:
6954       ;;
6955
6956     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6957       if test "$GCC" = yes; then
6958         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6959         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'
6960         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6961       else
6962         allow_undefined_flag=' -expect_unresolved \*'
6963         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'
6964         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6965         $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'
6966
6967         # Both c and cxx compiler support -rpath directly
6968         hardcode_libdir_flag_spec='-rpath $libdir'
6969       fi
6970       hardcode_libdir_separator=:
6971       ;;
6972
6973     sco3.2v5*)
6974       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6975       hardcode_shlibpath_var=no
6976       export_dynamic_flag_spec='${wl}-Bexport'
6977       runpath_var=LD_RUN_PATH
6978       hardcode_runpath_var=yes
6979       ;;
6980
6981     solaris*)
6982       no_undefined_flag=' -z text'
6983       if test "$GCC" = yes; then
6984         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6985         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6986           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6987       else
6988         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6989         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6990         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6991       fi
6992       hardcode_libdir_flag_spec='-R$libdir'
6993       hardcode_shlibpath_var=no
6994       case $host_os in
6995       solaris2.[0-5] | solaris2.[0-5].*) ;;
6996       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6997         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6998       esac
6999       link_all_deplibs=yes
7000       ;;
7001
7002     sunos4*)
7003       if test "x$host_vendor" = xsequent; then
7004         # Use $CC to link under sequent, because it throws in some extra .o
7005         # files that make .init and .fini sections work.
7006         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7007       else
7008         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7009       fi
7010       hardcode_libdir_flag_spec='-L$libdir'
7011       hardcode_direct=yes
7012       hardcode_minus_L=yes
7013       hardcode_shlibpath_var=no
7014       ;;
7015
7016     sysv4)
7017       case $host_vendor in
7018         sni)
7019           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7020           hardcode_direct=yes # is this really true???
7021         ;;
7022         siemens)
7023           ## LD is ld it makes a PLAMLIB
7024           ## CC just makes a GrossModule.
7025           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7026           reload_cmds='$CC -r -o $output$reload_objs'
7027           hardcode_direct=no
7028         ;;
7029         motorola)
7030           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7031           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7032         ;;
7033       esac
7034       runpath_var='LD_RUN_PATH'
7035       hardcode_shlibpath_var=no
7036       ;;
7037
7038     sysv4.3*)
7039       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7040       hardcode_shlibpath_var=no
7041       export_dynamic_flag_spec='-Bexport'
7042       ;;
7043
7044     sysv4*MP*)
7045       if test -d /usr/nec; then
7046         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7047         hardcode_shlibpath_var=no
7048         runpath_var=LD_RUN_PATH
7049         hardcode_runpath_var=yes
7050         ld_shlibs=yes
7051       fi
7052       ;;
7053
7054     sysv4.2uw2*)
7055       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7056       hardcode_direct=yes
7057       hardcode_minus_L=no
7058       hardcode_shlibpath_var=no
7059       hardcode_runpath_var=yes
7060       runpath_var=LD_RUN_PATH
7061       ;;
7062
7063    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7064       no_undefined_flag='${wl}-z ${wl}text'
7065       if test "$GCC" = yes; then
7066         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7067       else
7068         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7069       fi
7070       runpath_var='LD_RUN_PATH'
7071       hardcode_shlibpath_var=no
7072       ;;
7073
7074     sysv5*)
7075       no_undefined_flag=' -z text'
7076       # $CC -shared without GNU ld will not create a library from C++
7077       # object files and a static libstdc++, better avoid it by now
7078       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7079       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7080                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7081       hardcode_libdir_flag_spec=
7082       hardcode_shlibpath_var=no
7083       runpath_var='LD_RUN_PATH'
7084       ;;
7085
7086     uts4*)
7087       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7088       hardcode_libdir_flag_spec='-L$libdir'
7089       hardcode_shlibpath_var=no
7090       ;;
7091
7092     *)
7093       ld_shlibs=no
7094       ;;
7095     esac
7096   fi
7097
7098 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7099 echo "${ECHO_T}$ld_shlibs" >&6
7100 test "$ld_shlibs" = no && can_build_shared=no
7101
7102 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7103 if test "$GCC" = yes; then
7104   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7105 fi
7106
7107 #
7108 # Do we need to explicitly link libc?
7109 #
7110 case "x$archive_cmds_need_lc" in
7111 x|xyes)
7112   # Assume -lc should be added
7113   archive_cmds_need_lc=yes
7114
7115   if test "$enable_shared" = yes && test "$GCC" = yes; then
7116     case $archive_cmds in
7117     *'~'*)
7118       # FIXME: we may have to deal with multi-command sequences.
7119       ;;
7120     '$CC '*)
7121       # Test whether the compiler implicitly links with -lc since on some
7122       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7123       # to ld, don't add -lc before -lgcc.
7124       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7125 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7126       $rm conftest*
7127       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7128
7129       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7130   (eval $ac_compile) 2>&5
7131   ac_status=$?
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); } 2>conftest.err; then
7134         soname=conftest
7135         lib=conftest
7136         libobjs=conftest.$ac_objext
7137         deplibs=
7138         wl=$lt_prog_compiler_wl
7139         compiler_flags=-v
7140         linker_flags=-v
7141         verstring=
7142         output_objdir=.
7143         libname=conftest
7144         lt_save_allow_undefined_flag=$allow_undefined_flag
7145         allow_undefined_flag=
7146         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7147   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7148   ac_status=$?
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); }
7151         then
7152           archive_cmds_need_lc=no
7153         else
7154           archive_cmds_need_lc=yes
7155         fi
7156         allow_undefined_flag=$lt_save_allow_undefined_flag
7157       else
7158         cat conftest.err 1>&5
7159       fi
7160       $rm conftest*
7161       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7162 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7163       ;;
7164     esac
7165   fi
7166   ;;
7167 esac
7168
7169 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7170 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7171 hardcode_action=
7172 if test -n "$hardcode_libdir_flag_spec" || \
7173    test -n "$runpath_var " || \
7174    test "X$hardcode_automatic"="Xyes" ; then
7175
7176   # We can hardcode non-existant directories.
7177   if test "$hardcode_direct" != no &&
7178      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7179      # have to relink, otherwise we might link with an installed library
7180      # when we should be linking with a yet-to-be-installed one
7181      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7182      test "$hardcode_minus_L" != no; then
7183     # Linking always hardcodes the temporary library directory.
7184     hardcode_action=relink
7185   else
7186     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7187     hardcode_action=immediate
7188   fi
7189 else
7190   # We cannot hardcode anything, or else we can only hardcode existing
7191   # directories.
7192   hardcode_action=unsupported
7193 fi
7194 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7195 echo "${ECHO_T}$hardcode_action" >&6
7196
7197 if test "$hardcode_action" = relink; then
7198   # Fast installation is not supported
7199   enable_fast_install=no
7200 elif test "$shlibpath_overrides_runpath" = yes ||
7201      test "$enable_shared" = no; then
7202   # Fast installation is not necessary
7203   enable_fast_install=needless
7204 fi
7205
7206 striplib=
7207 old_striplib=
7208 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7209 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7210 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7211   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7212   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7213   echo "$as_me:$LINENO: result: yes" >&5
7214 echo "${ECHO_T}yes" >&6
7215 else
7216 # FIXME - insert some real tests, host_os isn't really good enough
7217   case $host_os in
7218    darwin*)
7219        if test -n "$STRIP" ; then
7220          striplib="$STRIP -x"
7221          echo "$as_me:$LINENO: result: yes" >&5
7222 echo "${ECHO_T}yes" >&6
7223        else
7224   echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6
7226 fi
7227        ;;
7228    *)
7229   echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6
7231     ;;
7232   esac
7233 fi
7234
7235 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7236 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7237 library_names_spec=
7238 libname_spec='lib$name'
7239 soname_spec=
7240 shrext=".so"
7241 postinstall_cmds=
7242 postuninstall_cmds=
7243 finish_cmds=
7244 finish_eval=
7245 shlibpath_var=
7246 shlibpath_overrides_runpath=unknown
7247 version_type=none
7248 dynamic_linker="$host_os ld.so"
7249 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7250 if test "$GCC" = yes; then
7251   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7252   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7253     # if the path contains ";" then we assume it to be the separator
7254     # otherwise default to the standard path separator (i.e. ":") - it is
7255     # assumed that no part of a normal pathname contains ";" but that should
7256     # okay in the real world where ";" in dirpaths is itself problematic.
7257     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7258   else
7259     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7260   fi
7261 else
7262   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7263 fi
7264 need_lib_prefix=unknown
7265 hardcode_into_libs=no
7266
7267 # when you set need_version to no, make sure it does not cause -set_version
7268 # flags to be left without arguments
7269 need_version=unknown
7270
7271 case $host_os in
7272 aix3*)
7273   version_type=linux
7274   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7275   shlibpath_var=LIBPATH
7276
7277   # AIX 3 has no versioning support, so we append a major version to the name.
7278   soname_spec='${libname}${release}${shared_ext}$major'
7279   ;;
7280
7281 aix4* | aix5*)
7282   version_type=linux
7283   need_lib_prefix=no
7284   need_version=no
7285   hardcode_into_libs=yes
7286   if test "$host_cpu" = ia64; then
7287     # AIX 5 supports IA64
7288     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7289     shlibpath_var=LD_LIBRARY_PATH
7290   else
7291     # With GCC up to 2.95.x, collect2 would create an import file
7292     # for dependence libraries.  The import file would start with
7293     # the line `#! .'.  This would cause the generated library to
7294     # depend on `.', always an invalid library.  This was fixed in
7295     # development snapshots of GCC prior to 3.0.
7296     case $host_os in
7297       aix4 | aix4.[01] | aix4.[01].*)
7298       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7299            echo ' yes '
7300            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7301         :
7302       else
7303         can_build_shared=no
7304       fi
7305       ;;
7306     esac
7307     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7308     # soname into executable. Probably we can add versioning support to
7309     # collect2, so additional links can be useful in future.
7310     if test "$aix_use_runtimelinking" = yes; then
7311       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7312       # instead of lib<name>.a to let people know that these are not
7313       # typical AIX shared libraries.
7314       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7315     else
7316       # We preserve .a as extension for shared libraries through AIX4.2
7317       # and later when we are not doing run time linking.
7318       library_names_spec='${libname}${release}.a $libname.a'
7319       soname_spec='${libname}${release}${shared_ext}$major'
7320     fi
7321     shlibpath_var=LIBPATH
7322   fi
7323   ;;
7324
7325 amigaos*)
7326   library_names_spec='$libname.ixlibrary $libname.a'
7327   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7328   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'
7329   ;;
7330
7331 beos*)
7332   library_names_spec='${libname}${shared_ext}'
7333   dynamic_linker="$host_os ld.so"
7334   shlibpath_var=LIBRARY_PATH
7335   ;;
7336
7337 bsdi4*)
7338   version_type=linux
7339   need_version=no
7340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7341   soname_spec='${libname}${release}${shared_ext}$major'
7342   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7343   shlibpath_var=LD_LIBRARY_PATH
7344   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7345   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7346   # the default ld.so.conf also contains /usr/contrib/lib and
7347   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7348   # libtool to hard-code these into programs
7349   ;;
7350
7351 cygwin* | mingw* | pw32*)
7352   version_type=windows
7353   shrext=".dll"
7354   need_version=no
7355   need_lib_prefix=no
7356
7357   case $GCC,$host_os in
7358   yes,cygwin* | yes,mingw* | yes,pw32*)
7359     library_names_spec='$libname.dll.a'
7360     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7361     postinstall_cmds='base_file=`basename \${file}`~
7362       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7363       dldir=$destdir/`dirname \$dlpath`~
7364       test -d \$dldir || mkdir -p \$dldir~
7365       $install_prog $dir/$dlname \$dldir/$dlname'
7366     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7367       dlpath=$dir/\$dldll~
7368        $rm \$dlpath'
7369     shlibpath_overrides_runpath=yes
7370
7371     case $host_os in
7372     cygwin*)
7373       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7374       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7375       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7376       ;;
7377     mingw*)
7378       # MinGW DLLs use traditional 'lib' prefix
7379       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7380       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7381       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7382         # It is most probably a Windows format PATH printed by
7383         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7384         # path with ; separators, and with drive letters. We can handle the
7385         # drive letters (cygwin fileutils understands them), so leave them,
7386         # especially as we might pass files found there to a mingw objdump,
7387         # which wouldn't understand a cygwinified path. Ahh.
7388         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7389       else
7390         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7391       fi
7392       ;;
7393     pw32*)
7394       # pw32 DLLs use 'pw' prefix rather than 'lib'
7395       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7396       ;;
7397     esac
7398     ;;
7399
7400   *)
7401     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7402     ;;
7403   esac
7404   dynamic_linker='Win32 ld.exe'
7405   # FIXME: first we should search . and the directory the executable is in
7406   shlibpath_var=PATH
7407   ;;
7408
7409 darwin* | rhapsody*)
7410   dynamic_linker="$host_os dyld"
7411   version_type=darwin
7412   need_lib_prefix=no
7413   need_version=no
7414   # FIXME: Relying on posixy $() will cause problems for
7415   #        cross-compilation, but unfortunately the echo tests do not
7416   #        yet detect zsh echo's removal of \ escapes.
7417   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7418   soname_spec='${libname}${release}${major}$shared_ext'
7419   shlibpath_overrides_runpath=yes
7420   shlibpath_var=DYLD_LIBRARY_PATH
7421   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7422   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7423   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7424   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"`
7425   fi
7426   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7427   ;;
7428
7429 dgux*)
7430   version_type=linux
7431   need_lib_prefix=no
7432   need_version=no
7433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7434   soname_spec='${libname}${release}${shared_ext}$major'
7435   shlibpath_var=LD_LIBRARY_PATH
7436   ;;
7437
7438 freebsd1*)
7439   dynamic_linker=no
7440   ;;
7441
7442 freebsd*)
7443   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7444   version_type=freebsd-$objformat
7445   case $version_type in
7446     freebsd-elf*)
7447       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7448       need_version=no
7449       need_lib_prefix=no
7450       ;;
7451     freebsd-*)
7452       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7453       need_version=yes
7454       ;;
7455   esac
7456   shlibpath_var=LD_LIBRARY_PATH
7457   case $host_os in
7458   freebsd2*)
7459     shlibpath_overrides_runpath=yes
7460     ;;
7461   freebsd3.01* | freebsdelf3.01*)
7462     shlibpath_overrides_runpath=yes
7463     hardcode_into_libs=yes
7464     ;;
7465   *) # from 3.2 on
7466     shlibpath_overrides_runpath=no
7467     hardcode_into_libs=yes
7468     ;;
7469   esac
7470   ;;
7471
7472 gnu*)
7473   version_type=linux
7474   need_lib_prefix=no
7475   need_version=no
7476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7477   soname_spec='${libname}${release}${shared_ext}$major'
7478   shlibpath_var=LD_LIBRARY_PATH
7479   hardcode_into_libs=yes
7480   ;;
7481
7482 hpux9* | hpux10* | hpux11*)
7483   # Give a soname corresponding to the major version so that dld.sl refuses to
7484   # link against other versions.
7485   version_type=sunos
7486   need_lib_prefix=no
7487   need_version=no
7488   case "$host_cpu" in
7489   ia64*)
7490     shrext='.so'
7491     hardcode_into_libs=yes
7492     dynamic_linker="$host_os dld.so"
7493     shlibpath_var=LD_LIBRARY_PATH
7494     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7495     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7496     soname_spec='${libname}${release}${shared_ext}$major'
7497     if test "X$HPUX_IA64_MODE" = X32; then
7498       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7499     else
7500       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7501     fi
7502     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7503     ;;
7504    hppa*64*)
7505      shrext='.sl'
7506      hardcode_into_libs=yes
7507      dynamic_linker="$host_os dld.sl"
7508      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7509      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7510      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7511      soname_spec='${libname}${release}${shared_ext}$major'
7512      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7513      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7514      ;;
7515    *)
7516     shrext='.sl'
7517     dynamic_linker="$host_os dld.sl"
7518     shlibpath_var=SHLIB_PATH
7519     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7520     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7521     soname_spec='${libname}${release}${shared_ext}$major'
7522     ;;
7523   esac
7524   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7525   postinstall_cmds='chmod 555 $lib'
7526   ;;
7527
7528 irix5* | irix6* | nonstopux*)
7529   case $host_os in
7530     nonstopux*) version_type=nonstopux ;;
7531     *)
7532         if test "$lt_cv_prog_gnu_ld" = yes; then
7533                 version_type=linux
7534         else
7535                 version_type=irix
7536         fi ;;
7537   esac
7538   need_lib_prefix=no
7539   need_version=no
7540   soname_spec='${libname}${release}${shared_ext}$major'
7541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7542   case $host_os in
7543   irix5* | nonstopux*)
7544     libsuff= shlibsuff=
7545     ;;
7546   *)
7547     case $LD in # libtool.m4 will add one of these switches to LD
7548     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7549       libsuff= shlibsuff= libmagic=32-bit;;
7550     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7551       libsuff=32 shlibsuff=N32 libmagic=N32;;
7552     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7553       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7554     *) libsuff= shlibsuff= libmagic=never-match;;
7555     esac
7556     ;;
7557   esac
7558   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7559   shlibpath_overrides_runpath=no
7560   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7561   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7562   hardcode_into_libs=yes
7563   ;;
7564
7565 # No shared lib support for Linux oldld, aout, or coff.
7566 linux*oldld* | linux*aout* | linux*coff*)
7567   dynamic_linker=no
7568   ;;
7569
7570 # This must be Linux ELF.
7571 linux*)
7572   version_type=linux
7573   need_lib_prefix=no
7574   need_version=no
7575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7576   soname_spec='${libname}${release}${shared_ext}$major'
7577   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7578   shlibpath_var=LD_LIBRARY_PATH
7579   shlibpath_overrides_runpath=no
7580   # This implies no fast_install, which is unacceptable.
7581   # Some rework will be needed to allow for fast_install
7582   # before this can be enabled.
7583   hardcode_into_libs=yes
7584
7585   # We used to test for /lib/ld.so.1 and disable shared libraries on
7586   # powerpc, because MkLinux only supported shared libraries with the
7587   # GNU dynamic linker.  Since this was broken with cross compilers,
7588   # most powerpc-linux boxes support dynamic linking these days and
7589   # people can always --disable-shared, the test was removed, and we
7590   # assume the GNU/Linux dynamic linker is in use.
7591   dynamic_linker='GNU/Linux ld.so'
7592   ;;
7593
7594 netbsd*)
7595   version_type=sunos
7596   need_lib_prefix=no
7597   need_version=no
7598   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7599     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7600     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7601     dynamic_linker='NetBSD (a.out) ld.so'
7602   else
7603     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7604     soname_spec='${libname}${release}${shared_ext}$major'
7605     dynamic_linker='NetBSD ld.elf_so'
7606   fi
7607   shlibpath_var=LD_LIBRARY_PATH
7608   shlibpath_overrides_runpath=yes
7609   hardcode_into_libs=yes
7610   ;;
7611
7612 newsos6)
7613   version_type=linux
7614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7615   shlibpath_var=LD_LIBRARY_PATH
7616   shlibpath_overrides_runpath=yes
7617   ;;
7618
7619 nto-qnx)
7620   version_type=linux
7621   need_lib_prefix=no
7622   need_version=no
7623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7624   soname_spec='${libname}${release}${shared_ext}$major'
7625   shlibpath_var=LD_LIBRARY_PATH
7626   shlibpath_overrides_runpath=yes
7627   ;;
7628
7629 openbsd*)
7630   version_type=sunos
7631   need_lib_prefix=no
7632   need_version=no
7633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7634   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7635   shlibpath_var=LD_LIBRARY_PATH
7636   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7637     case $host_os in
7638       openbsd2.[89] | openbsd2.[89].*)
7639         shlibpath_overrides_runpath=no
7640         ;;
7641       *)
7642         shlibpath_overrides_runpath=yes
7643         ;;
7644       esac
7645   else
7646     shlibpath_overrides_runpath=yes
7647   fi
7648   ;;
7649
7650 os2*)
7651   libname_spec='$name'
7652   shrext=".dll"
7653   need_lib_prefix=no
7654   library_names_spec='$libname${shared_ext} $libname.a'
7655   dynamic_linker='OS/2 ld.exe'
7656   shlibpath_var=LIBPATH
7657   ;;
7658
7659 osf3* | osf4* | osf5*)
7660   version_type=osf
7661   need_lib_prefix=no
7662   need_version=no
7663   soname_spec='${libname}${release}${shared_ext}$major'
7664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7665   shlibpath_var=LD_LIBRARY_PATH
7666   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7667   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7668   ;;
7669
7670 sco3.2v5*)
7671   version_type=osf
7672   soname_spec='${libname}${release}${shared_ext}$major'
7673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7674   shlibpath_var=LD_LIBRARY_PATH
7675   ;;
7676
7677 solaris*)
7678   version_type=linux
7679   need_lib_prefix=no
7680   need_version=no
7681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7682   soname_spec='${libname}${release}${shared_ext}$major'
7683   shlibpath_var=LD_LIBRARY_PATH
7684   shlibpath_overrides_runpath=yes
7685   hardcode_into_libs=yes
7686   # ldd complains unless libraries are executable
7687   postinstall_cmds='chmod +x $lib'
7688   ;;
7689
7690 sunos4*)
7691   version_type=sunos
7692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7693   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7694   shlibpath_var=LD_LIBRARY_PATH
7695   shlibpath_overrides_runpath=yes
7696   if test "$with_gnu_ld" = yes; then
7697     need_lib_prefix=no
7698   fi
7699   need_version=yes
7700   ;;
7701
7702 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7703   version_type=linux
7704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7705   soname_spec='${libname}${release}${shared_ext}$major'
7706   shlibpath_var=LD_LIBRARY_PATH
7707   case $host_vendor in
7708     sni)
7709       shlibpath_overrides_runpath=no
7710       need_lib_prefix=no
7711       export_dynamic_flag_spec='${wl}-Blargedynsym'
7712       runpath_var=LD_RUN_PATH
7713       ;;
7714     siemens)
7715       need_lib_prefix=no
7716       ;;
7717     motorola)
7718       need_lib_prefix=no
7719       need_version=no
7720       shlibpath_overrides_runpath=no
7721       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7722       ;;
7723   esac
7724   ;;
7725
7726 sysv4*MP*)
7727   if test -d /usr/nec ;then
7728     version_type=linux
7729     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7730     soname_spec='$libname${shared_ext}.$major'
7731     shlibpath_var=LD_LIBRARY_PATH
7732   fi
7733   ;;
7734
7735 uts4*)
7736   version_type=linux
7737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7738   soname_spec='${libname}${release}${shared_ext}$major'
7739   shlibpath_var=LD_LIBRARY_PATH
7740   ;;
7741
7742 *)
7743   dynamic_linker=no
7744   ;;
7745 esac
7746 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7747 echo "${ECHO_T}$dynamic_linker" >&6
7748 test "$dynamic_linker" = no && can_build_shared=no
7749
7750 if test "x$enable_dlopen" != xyes; then
7751   enable_dlopen=unknown
7752   enable_dlopen_self=unknown
7753   enable_dlopen_self_static=unknown
7754 else
7755   lt_cv_dlopen=no
7756   lt_cv_dlopen_libs=
7757
7758   case $host_os in
7759   beos*)
7760     lt_cv_dlopen="load_add_on"
7761     lt_cv_dlopen_libs=
7762     lt_cv_dlopen_self=yes
7763     ;;
7764
7765   mingw* | pw32*)
7766     lt_cv_dlopen="LoadLibrary"
7767     lt_cv_dlopen_libs=
7768    ;;
7769
7770   cygwin*)
7771     lt_cv_dlopen="dlopen"
7772     lt_cv_dlopen_libs=
7773    ;;
7774
7775   darwin*)
7776   # if libdl is installed we need to link against it
7777     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7778 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7779 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7780   echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782   ac_check_lib_save_LIBS=$LIBS
7783 LIBS="-ldl  $LIBS"
7784 cat >conftest.$ac_ext <<_ACEOF
7785 #line $LINENO "configure"
7786 /* confdefs.h.  */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h.  */
7791
7792 /* Override any gcc2 internal prototype to avoid an error.  */
7793 #ifdef __cplusplus
7794 extern "C"
7795 #endif
7796 /* We use char because int might match the return type of a gcc2
7797    builtin and then its argument prototype would still apply.  */
7798 char dlopen ();
7799 int
7800 main ()
7801 {
7802 dlopen ();
7803   ;
7804   return 0;
7805 }
7806 _ACEOF
7807 rm -f conftest.$ac_objext conftest$ac_exeext
7808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7809   (eval $ac_link) 2>&5
7810   ac_status=$?
7811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812   (exit $ac_status); } &&
7813          { ac_try='test -s conftest$ac_exeext'
7814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815   (eval $ac_try) 2>&5
7816   ac_status=$?
7817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); }; }; then
7819   ac_cv_lib_dl_dlopen=yes
7820 else
7821   echo "$as_me: failed program was:" >&5
7822 sed 's/^/| /' conftest.$ac_ext >&5
7823
7824 ac_cv_lib_dl_dlopen=no
7825 fi
7826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7827 LIBS=$ac_check_lib_save_LIBS
7828 fi
7829 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7830 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7831 if test $ac_cv_lib_dl_dlopen = yes; then
7832   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7833 else
7834
7835     lt_cv_dlopen="dyld"
7836     lt_cv_dlopen_libs=
7837     lt_cv_dlopen_self=yes
7838
7839 fi
7840
7841    ;;
7842
7843   *)
7844     echo "$as_me:$LINENO: checking for shl_load" >&5
7845 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7846 if test "${ac_cv_func_shl_load+set}" = set; then
7847   echo $ECHO_N "(cached) $ECHO_C" >&6
7848 else
7849   cat >conftest.$ac_ext <<_ACEOF
7850 #line $LINENO "configure"
7851 /* confdefs.h.  */
7852 _ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h.  */
7856 /* System header to define __stub macros and hopefully few prototypes,
7857     which can conflict with char shl_load (); below.
7858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7859     <limits.h> exists even on freestanding compilers.  */
7860 #ifdef __STDC__
7861 # include <limits.h>
7862 #else
7863 # include <assert.h>
7864 #endif
7865 /* Override any gcc2 internal prototype to avoid an error.  */
7866 #ifdef __cplusplus
7867 extern "C"
7868 {
7869 #endif
7870 /* We use char because int might match the return type of a gcc2
7871    builtin and then its argument prototype would still apply.  */
7872 char shl_load ();
7873 /* The GNU C library defines this for functions which it implements
7874     to always fail with ENOSYS.  Some functions are actually named
7875     something starting with __ and the normal name is an alias.  */
7876 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7877 choke me
7878 #else
7879 char (*f) () = shl_load;
7880 #endif
7881 #ifdef __cplusplus
7882 }
7883 #endif
7884
7885 int
7886 main ()
7887 {
7888 return f != shl_load;
7889   ;
7890   return 0;
7891 }
7892 _ACEOF
7893 rm -f conftest.$ac_objext conftest$ac_exeext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7895   (eval $ac_link) 2>&5
7896   ac_status=$?
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); } &&
7899          { ac_try='test -s conftest$ac_exeext'
7900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901   (eval $ac_try) 2>&5
7902   ac_status=$?
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); }; }; then
7905   ac_cv_func_shl_load=yes
7906 else
7907   echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7909
7910 ac_cv_func_shl_load=no
7911 fi
7912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7913 fi
7914 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7915 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7916 if test $ac_cv_func_shl_load = yes; then
7917   lt_cv_dlopen="shl_load"
7918 else
7919   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7920 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7921 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7922   echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924   ac_check_lib_save_LIBS=$LIBS
7925 LIBS="-ldld  $LIBS"
7926 cat >conftest.$ac_ext <<_ACEOF
7927 #line $LINENO "configure"
7928 /* confdefs.h.  */
7929 _ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h.  */
7933
7934 /* Override any gcc2 internal prototype to avoid an error.  */
7935 #ifdef __cplusplus
7936 extern "C"
7937 #endif
7938 /* We use char because int might match the return type of a gcc2
7939    builtin and then its argument prototype would still apply.  */
7940 char shl_load ();
7941 int
7942 main ()
7943 {
7944 shl_load ();
7945   ;
7946   return 0;
7947 }
7948 _ACEOF
7949 rm -f conftest.$ac_objext conftest$ac_exeext
7950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7951   (eval $ac_link) 2>&5
7952   ac_status=$?
7953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954   (exit $ac_status); } &&
7955          { ac_try='test -s conftest$ac_exeext'
7956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957   (eval $ac_try) 2>&5
7958   ac_status=$?
7959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960   (exit $ac_status); }; }; then
7961   ac_cv_lib_dld_shl_load=yes
7962 else
7963   echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7965
7966 ac_cv_lib_dld_shl_load=no
7967 fi
7968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7969 LIBS=$ac_check_lib_save_LIBS
7970 fi
7971 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7972 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7973 if test $ac_cv_lib_dld_shl_load = yes; then
7974   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7975 else
7976   echo "$as_me:$LINENO: checking for dlopen" >&5
7977 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7978 if test "${ac_cv_func_dlopen+set}" = set; then
7979   echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981   cat >conftest.$ac_ext <<_ACEOF
7982 #line $LINENO "configure"
7983 /* confdefs.h.  */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h.  */
7988 /* System header to define __stub macros and hopefully few prototypes,
7989     which can conflict with char dlopen (); below.
7990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7991     <limits.h> exists even on freestanding compilers.  */
7992 #ifdef __STDC__
7993 # include <limits.h>
7994 #else
7995 # include <assert.h>
7996 #endif
7997 /* Override any gcc2 internal prototype to avoid an error.  */
7998 #ifdef __cplusplus
7999 extern "C"
8000 {
8001 #endif
8002 /* We use char because int might match the return type of a gcc2
8003    builtin and then its argument prototype would still apply.  */
8004 char dlopen ();
8005 /* The GNU C library defines this for functions which it implements
8006     to always fail with ENOSYS.  Some functions are actually named
8007     something starting with __ and the normal name is an alias.  */
8008 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8009 choke me
8010 #else
8011 char (*f) () = dlopen;
8012 #endif
8013 #ifdef __cplusplus
8014 }
8015 #endif
8016
8017 int
8018 main ()
8019 {
8020 return f != dlopen;
8021   ;
8022   return 0;
8023 }
8024 _ACEOF
8025 rm -f conftest.$ac_objext conftest$ac_exeext
8026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8027   (eval $ac_link) 2>&5
8028   ac_status=$?
8029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030   (exit $ac_status); } &&
8031          { ac_try='test -s conftest$ac_exeext'
8032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033   (eval $ac_try) 2>&5
8034   ac_status=$?
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); }; }; then
8037   ac_cv_func_dlopen=yes
8038 else
8039   echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8041
8042 ac_cv_func_dlopen=no
8043 fi
8044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8045 fi
8046 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8047 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8048 if test $ac_cv_func_dlopen = yes; then
8049   lt_cv_dlopen="dlopen"
8050 else
8051   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8052 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8053 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8054   echo $ECHO_N "(cached) $ECHO_C" >&6
8055 else
8056   ac_check_lib_save_LIBS=$LIBS
8057 LIBS="-ldl  $LIBS"
8058 cat >conftest.$ac_ext <<_ACEOF
8059 #line $LINENO "configure"
8060 /* confdefs.h.  */
8061 _ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h.  */
8065
8066 /* Override any gcc2 internal prototype to avoid an error.  */
8067 #ifdef __cplusplus
8068 extern "C"
8069 #endif
8070 /* We use char because int might match the return type of a gcc2
8071    builtin and then its argument prototype would still apply.  */
8072 char dlopen ();
8073 int
8074 main ()
8075 {
8076 dlopen ();
8077   ;
8078   return 0;
8079 }
8080 _ACEOF
8081 rm -f conftest.$ac_objext conftest$ac_exeext
8082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8083   (eval $ac_link) 2>&5
8084   ac_status=$?
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); } &&
8087          { ac_try='test -s conftest$ac_exeext'
8088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089   (eval $ac_try) 2>&5
8090   ac_status=$?
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); }; }; then
8093   ac_cv_lib_dl_dlopen=yes
8094 else
8095   echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8097
8098 ac_cv_lib_dl_dlopen=no
8099 fi
8100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8101 LIBS=$ac_check_lib_save_LIBS
8102 fi
8103 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8104 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8105 if test $ac_cv_lib_dl_dlopen = yes; then
8106   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8107 else
8108   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8109 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8110 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8111   echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113   ac_check_lib_save_LIBS=$LIBS
8114 LIBS="-lsvld  $LIBS"
8115 cat >conftest.$ac_ext <<_ACEOF
8116 #line $LINENO "configure"
8117 /* confdefs.h.  */
8118 _ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h.  */
8122
8123 /* Override any gcc2 internal prototype to avoid an error.  */
8124 #ifdef __cplusplus
8125 extern "C"
8126 #endif
8127 /* We use char because int might match the return type of a gcc2
8128    builtin and then its argument prototype would still apply.  */
8129 char dlopen ();
8130 int
8131 main ()
8132 {
8133 dlopen ();
8134   ;
8135   return 0;
8136 }
8137 _ACEOF
8138 rm -f conftest.$ac_objext conftest$ac_exeext
8139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8140   (eval $ac_link) 2>&5
8141   ac_status=$?
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); } &&
8144          { ac_try='test -s conftest$ac_exeext'
8145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146   (eval $ac_try) 2>&5
8147   ac_status=$?
8148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149   (exit $ac_status); }; }; then
8150   ac_cv_lib_svld_dlopen=yes
8151 else
8152   echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8154
8155 ac_cv_lib_svld_dlopen=no
8156 fi
8157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8158 LIBS=$ac_check_lib_save_LIBS
8159 fi
8160 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8161 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8162 if test $ac_cv_lib_svld_dlopen = yes; then
8163   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8164 else
8165   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8166 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8167 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8168   echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170   ac_check_lib_save_LIBS=$LIBS
8171 LIBS="-ldld  $LIBS"
8172 cat >conftest.$ac_ext <<_ACEOF
8173 #line $LINENO "configure"
8174 /* confdefs.h.  */
8175 _ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h.  */
8179
8180 /* Override any gcc2 internal prototype to avoid an error.  */
8181 #ifdef __cplusplus
8182 extern "C"
8183 #endif
8184 /* We use char because int might match the return type of a gcc2
8185    builtin and then its argument prototype would still apply.  */
8186 char dld_link ();
8187 int
8188 main ()
8189 {
8190 dld_link ();
8191   ;
8192   return 0;
8193 }
8194 _ACEOF
8195 rm -f conftest.$ac_objext conftest$ac_exeext
8196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8197   (eval $ac_link) 2>&5
8198   ac_status=$?
8199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200   (exit $ac_status); } &&
8201          { ac_try='test -s conftest$ac_exeext'
8202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203   (eval $ac_try) 2>&5
8204   ac_status=$?
8205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206   (exit $ac_status); }; }; then
8207   ac_cv_lib_dld_dld_link=yes
8208 else
8209   echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8211
8212 ac_cv_lib_dld_dld_link=no
8213 fi
8214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8215 LIBS=$ac_check_lib_save_LIBS
8216 fi
8217 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8218 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8219 if test $ac_cv_lib_dld_dld_link = yes; then
8220   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8221 fi
8222
8223
8224 fi
8225
8226
8227 fi
8228
8229
8230 fi
8231
8232
8233 fi
8234
8235
8236 fi
8237
8238     ;;
8239   esac
8240
8241   if test "x$lt_cv_dlopen" != xno; then
8242     enable_dlopen=yes
8243   else
8244     enable_dlopen=no
8245   fi
8246
8247   case $lt_cv_dlopen in
8248   dlopen)
8249     save_CPPFLAGS="$CPPFLAGS"
8250     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8251
8252     save_LDFLAGS="$LDFLAGS"
8253     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8254
8255     save_LIBS="$LIBS"
8256     LIBS="$lt_cv_dlopen_libs $LIBS"
8257
8258     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8259 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8260 if test "${lt_cv_dlopen_self+set}" = set; then
8261   echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263           if test "$cross_compiling" = yes; then :
8264   lt_cv_dlopen_self=cross
8265 else
8266   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8267   lt_status=$lt_dlunknown
8268   cat > conftest.$ac_ext <<EOF
8269 #line 8269 "configure"
8270 #include "confdefs.h"
8271
8272 #if HAVE_DLFCN_H
8273 #include <dlfcn.h>
8274 #endif
8275
8276 #include <stdio.h>
8277
8278 #ifdef RTLD_GLOBAL
8279 #  define LT_DLGLOBAL           RTLD_GLOBAL
8280 #else
8281 #  ifdef DL_GLOBAL
8282 #    define LT_DLGLOBAL         DL_GLOBAL
8283 #  else
8284 #    define LT_DLGLOBAL         0
8285 #  endif
8286 #endif
8287
8288 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8289    find out it does not work in some platform. */
8290 #ifndef LT_DLLAZY_OR_NOW
8291 #  ifdef RTLD_LAZY
8292 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8293 #  else
8294 #    ifdef DL_LAZY
8295 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8296 #    else
8297 #      ifdef RTLD_NOW
8298 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8299 #      else
8300 #        ifdef DL_NOW
8301 #          define LT_DLLAZY_OR_NOW      DL_NOW
8302 #        else
8303 #          define LT_DLLAZY_OR_NOW      0
8304 #        endif
8305 #      endif
8306 #    endif
8307 #  endif
8308 #endif
8309
8310 #ifdef __cplusplus
8311 extern "C" void exit (int);
8312 #endif
8313
8314 void fnord() { int i=42;}
8315 int main ()
8316 {
8317   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8318   int status = $lt_dlunknown;
8319
8320   if (self)
8321     {
8322       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8323       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8324       /* dlclose (self); */
8325     }
8326
8327     exit (status);
8328 }
8329 EOF
8330   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8331   (eval $ac_link) 2>&5
8332   ac_status=$?
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8335     (./conftest; exit; ) 2>/dev/null
8336     lt_status=$?
8337     case x$lt_status in
8338       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8339       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8340       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8341     esac
8342   else :
8343     # compilation failed
8344     lt_cv_dlopen_self=no
8345   fi
8346 fi
8347 rm -fr conftest*
8348
8349
8350 fi
8351 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8352 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8353
8354     if test "x$lt_cv_dlopen_self" = xyes; then
8355       LDFLAGS="$LDFLAGS $link_static_flag"
8356       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8357 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8358 if test "${lt_cv_dlopen_self_static+set}" = set; then
8359   echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361           if test "$cross_compiling" = yes; then :
8362   lt_cv_dlopen_self_static=cross
8363 else
8364   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8365   lt_status=$lt_dlunknown
8366   cat > conftest.$ac_ext <<EOF
8367 #line 8367 "configure"
8368 #include "confdefs.h"
8369
8370 #if HAVE_DLFCN_H
8371 #include <dlfcn.h>
8372 #endif
8373
8374 #include <stdio.h>
8375
8376 #ifdef RTLD_GLOBAL
8377 #  define LT_DLGLOBAL           RTLD_GLOBAL
8378 #else
8379 #  ifdef DL_GLOBAL
8380 #    define LT_DLGLOBAL         DL_GLOBAL
8381 #  else
8382 #    define LT_DLGLOBAL         0
8383 #  endif
8384 #endif
8385
8386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8387    find out it does not work in some platform. */
8388 #ifndef LT_DLLAZY_OR_NOW
8389 #  ifdef RTLD_LAZY
8390 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8391 #  else
8392 #    ifdef DL_LAZY
8393 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8394 #    else
8395 #      ifdef RTLD_NOW
8396 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8397 #      else
8398 #        ifdef DL_NOW
8399 #          define LT_DLLAZY_OR_NOW      DL_NOW
8400 #        else
8401 #          define LT_DLLAZY_OR_NOW      0
8402 #        endif
8403 #      endif
8404 #    endif
8405 #  endif
8406 #endif
8407
8408 #ifdef __cplusplus
8409 extern "C" void exit (int);
8410 #endif
8411
8412 void fnord() { int i=42;}
8413 int main ()
8414 {
8415   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8416   int status = $lt_dlunknown;
8417
8418   if (self)
8419     {
8420       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8421       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8422       /* dlclose (self); */
8423     }
8424
8425     exit (status);
8426 }
8427 EOF
8428   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429   (eval $ac_link) 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8433     (./conftest; exit; ) 2>/dev/null
8434     lt_status=$?
8435     case x$lt_status in
8436       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8437       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8438       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8439     esac
8440   else :
8441     # compilation failed
8442     lt_cv_dlopen_self_static=no
8443   fi
8444 fi
8445 rm -fr conftest*
8446
8447
8448 fi
8449 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8450 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8451     fi
8452
8453     CPPFLAGS="$save_CPPFLAGS"
8454     LDFLAGS="$save_LDFLAGS"
8455     LIBS="$save_LIBS"
8456     ;;
8457   esac
8458
8459   case $lt_cv_dlopen_self in
8460   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8461   *) enable_dlopen_self=unknown ;;
8462   esac
8463
8464   case $lt_cv_dlopen_self_static in
8465   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8466   *) enable_dlopen_self_static=unknown ;;
8467   esac
8468 fi
8469
8470
8471 # Report which librarie types wil actually be built
8472 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8473 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8474 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8475 echo "${ECHO_T}$can_build_shared" >&6
8476
8477 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8478 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8479 test "$can_build_shared" = "no" && enable_shared=no
8480
8481 # On AIX, shared libraries and static libraries use the same namespace, and
8482 # are all built from PIC.
8483 case "$host_os" in
8484 aix3*)
8485   test "$enable_shared" = yes && enable_static=no
8486   if test -n "$RANLIB"; then
8487     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8488     postinstall_cmds='$RANLIB $lib'
8489   fi
8490   ;;
8491
8492 aix4*)
8493   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8494     test "$enable_shared" = yes && enable_static=no
8495   fi
8496   ;;
8497   darwin* | rhapsody*)
8498   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8499     archive_cmds_need_lc=no
8500     case "$host_os" in
8501     rhapsody* | darwin1.[012])
8502       allow_undefined_flag='-undefined suppress'
8503       ;;
8504     *) # Darwin 1.3 on
8505       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8506       ;;
8507     esac
8508     # FIXME: Relying on posixy $() will cause problems for
8509     #        cross-compilation, but unfortunately the echo tests do not
8510     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8511     #          `"' quotes if we put them in here... so don't!
8512                 output_verbose_link_cmd='echo'
8513     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8514     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8515     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8516                   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}'
8517                   module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8518     hardcode_direct=no
8519     hardcode_automatic=yes
8520     hardcode_shlibpath_var=unsupported
8521     whole_archive_flag_spec='-all_load $convenience'
8522     link_all_deplibs=yes
8523     fi
8524     ;;
8525 esac
8526 echo "$as_me:$LINENO: result: $enable_shared" >&5
8527 echo "${ECHO_T}$enable_shared" >&6
8528
8529 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8530 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8531 # Make sure either enable_shared or enable_static is yes.
8532 test "$enable_shared" = yes || enable_static=yes
8533 echo "$as_me:$LINENO: result: $enable_static" >&5
8534 echo "${ECHO_T}$enable_static" >&6
8535
8536 # The else clause should only fire when bootstrapping the
8537 # libtool distribution, otherwise you forgot to ship ltmain.sh
8538 # with your package, and you will get complaints that there are
8539 # no rules to generate ltmain.sh.
8540 if test -f "$ltmain"; then
8541   # See if we are running on zsh, and set the options which allow our commands through
8542   # without removal of \ escapes.
8543   if test -n "${ZSH_VERSION+set}" ; then
8544     setopt NO_GLOB_SUBST
8545   fi
8546   # Now quote all the things that may contain metacharacters while being
8547   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8548   # variables and quote the copies for generation of the libtool script.
8549   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8550     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8551     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8552     deplibs_check_method reload_flag reload_cmds need_locks \
8553     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8554     lt_cv_sys_global_symbol_to_c_name_address \
8555     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8556     old_postinstall_cmds old_postuninstall_cmds \
8557     compiler \
8558     CC \
8559     LD \
8560     lt_prog_compiler_wl \
8561     lt_prog_compiler_pic \
8562     lt_prog_compiler_static \
8563     lt_prog_compiler_no_builtin_flag \
8564     export_dynamic_flag_spec \
8565     thread_safe_flag_spec \
8566     whole_archive_flag_spec \
8567     enable_shared_with_static_runtimes \
8568     old_archive_cmds \
8569     old_archive_from_new_cmds \
8570     predep_objects \
8571     postdep_objects \
8572     predeps \
8573     postdeps \
8574     compiler_lib_search_path \
8575     archive_cmds \
8576     archive_expsym_cmds \
8577     postinstall_cmds \
8578     postuninstall_cmds \
8579     old_archive_from_expsyms_cmds \
8580     allow_undefined_flag \
8581     no_undefined_flag \
8582     export_symbols_cmds \
8583     hardcode_libdir_flag_spec \
8584     hardcode_libdir_flag_spec_ld \
8585     hardcode_libdir_separator \
8586     hardcode_automatic \
8587     module_cmds \
8588     module_expsym_cmds \
8589     lt_cv_prog_compiler_c_o \
8590     exclude_expsyms \
8591     include_expsyms; do
8592
8593     case $var in
8594     old_archive_cmds | \
8595     old_archive_from_new_cmds | \
8596     archive_cmds | \
8597     archive_expsym_cmds | \
8598     module_cmds | \
8599     module_expsym_cmds | \
8600     old_archive_from_expsyms_cmds | \
8601     export_symbols_cmds | \
8602     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8603     postinstall_cmds | postuninstall_cmds | \
8604     old_postinstall_cmds | old_postuninstall_cmds | \
8605     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8606       # Double-quote double-evaled strings.
8607       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8608       ;;
8609     *)
8610       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8611       ;;
8612     esac
8613   done
8614
8615   case $lt_echo in
8616   *'\$0 --fallback-echo"')
8617     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8618     ;;
8619   esac
8620
8621 cfgfile="${ofile}T"
8622   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8623   $rm -f "$cfgfile"
8624   { echo "$as_me:$LINENO: creating $ofile" >&5
8625 echo "$as_me: creating $ofile" >&6;}
8626
8627   cat <<__EOF__ >> "$cfgfile"
8628 #! $SHELL
8629
8630 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8631 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8632 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8633 #
8634 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8635 # Free Software Foundation, Inc.
8636 #
8637 # This file is part of GNU Libtool:
8638 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8639 #
8640 # This program is free software; you can redistribute it and/or modify
8641 # it under the terms of the GNU General Public License as published by
8642 # the Free Software Foundation; either version 2 of the License, or
8643 # (at your option) any later version.
8644 #
8645 # This program is distributed in the hope that it will be useful, but
8646 # WITHOUT ANY WARRANTY; without even the implied warranty of
8647 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8648 # General Public License for more details.
8649 #
8650 # You should have received a copy of the GNU General Public License
8651 # along with this program; if not, write to the Free Software
8652 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8653 #
8654 # As a special exception to the GNU General Public License, if you
8655 # distribute this file as part of a program that contains a
8656 # configuration script generated by Autoconf, you may include it under
8657 # the same distribution terms that you use for the rest of that program.
8658
8659 # A sed program that does not truncate output.
8660 SED=$lt_SED
8661
8662 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8663 Xsed="$SED -e s/^X//"
8664
8665 # The HP-UX ksh and POSIX shell print the target directory to stdout
8666 # if CDPATH is set.
8667 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8668
8669 # The names of the tagged configurations supported by this script.
8670 available_tags=
8671
8672 # ### BEGIN LIBTOOL CONFIG
8673
8674 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8675
8676 # Shell to use when invoking shell scripts.
8677 SHELL=$lt_SHELL
8678
8679 # Whether or not to build shared libraries.
8680 build_libtool_libs=$enable_shared
8681
8682 # Whether or not to build static libraries.
8683 build_old_libs=$enable_static
8684
8685 # Whether or not to add -lc for building shared libraries.
8686 build_libtool_need_lc=$archive_cmds_need_lc
8687
8688 # Whether or not to disallow shared libs when runtime libs are static
8689 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8690
8691 # Whether or not to optimize for fast installation.
8692 fast_install=$enable_fast_install
8693
8694 # The host system.
8695 host_alias=$host_alias
8696 host=$host
8697
8698 # An echo program that does not interpret backslashes.
8699 echo=$lt_echo
8700
8701 # The archiver.
8702 AR=$lt_AR
8703 AR_FLAGS=$lt_AR_FLAGS
8704
8705 # A C compiler.
8706 LTCC=$lt_LTCC
8707
8708 # A language-specific compiler.
8709 CC=$lt_compiler
8710
8711 # Is the compiler the GNU C compiler?
8712 with_gcc=$GCC
8713
8714 # An ERE matcher.
8715 EGREP=$lt_EGREP
8716
8717 # The linker used to build libraries.
8718 LD=$lt_LD
8719
8720 # Whether we need hard or soft links.
8721 LN_S=$lt_LN_S
8722
8723 # A BSD-compatible nm program.
8724 NM=$lt_NM
8725
8726 # A symbol stripping program
8727 STRIP=$STRIP
8728
8729 # Used to examine libraries when file_magic_cmd begins "file"
8730 MAGIC_CMD=$MAGIC_CMD
8731
8732 # Used on cygwin: DLL creation program.
8733 DLLTOOL="$DLLTOOL"
8734
8735 # Used on cygwin: object dumper.
8736 OBJDUMP="$OBJDUMP"
8737
8738 # Used on cygwin: assembler.
8739 AS="$AS"
8740
8741 # The name of the directory that contains temporary libtool files.
8742 objdir=$objdir
8743
8744 # How to create reloadable object files.
8745 reload_flag=$lt_reload_flag
8746 reload_cmds=$lt_reload_cmds
8747
8748 # How to pass a linker flag through the compiler.
8749 wl=$lt_lt_prog_compiler_wl
8750
8751 # Object file suffix (normally "o").
8752 objext="$ac_objext"
8753
8754 # Old archive suffix (normally "a").
8755 libext="$libext"
8756
8757 # Shared library suffix (normally ".so").
8758 shrext='$shrext'
8759
8760 # Executable file suffix (normally "").
8761 exeext="$exeext"
8762
8763 # Additional compiler flags for building library objects.
8764 pic_flag=$lt_lt_prog_compiler_pic
8765 pic_mode=$pic_mode
8766
8767 # What is the maximum length of a command?
8768 max_cmd_len=$lt_cv_sys_max_cmd_len
8769
8770 # Does compiler simultaneously support -c and -o options?
8771 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8772
8773 # Must we lock files when doing compilation ?
8774 need_locks=$lt_need_locks
8775
8776 # Do we need the lib prefix for modules?
8777 need_lib_prefix=$need_lib_prefix
8778
8779 # Do we need a version for libraries?
8780 need_version=$need_version
8781
8782 # Whether dlopen is supported.
8783 dlopen_support=$enable_dlopen
8784
8785 # Whether dlopen of programs is supported.
8786 dlopen_self=$enable_dlopen_self
8787
8788 # Whether dlopen of statically linked programs is supported.
8789 dlopen_self_static=$enable_dlopen_self_static
8790
8791 # Compiler flag to prevent dynamic linking.
8792 link_static_flag=$lt_lt_prog_compiler_static
8793
8794 # Compiler flag to turn off builtin functions.
8795 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8796
8797 # Compiler flag to allow reflexive dlopens.
8798 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8799
8800 # Compiler flag to generate shared objects directly from archives.
8801 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8802
8803 # Compiler flag to generate thread-safe objects.
8804 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8805
8806 # Library versioning type.
8807 version_type=$version_type
8808
8809 # Format of library name prefix.
8810 libname_spec=$lt_libname_spec
8811
8812 # List of archive names.  First name is the real one, the rest are links.
8813 # The last name is the one that the linker finds with -lNAME.
8814 library_names_spec=$lt_library_names_spec
8815
8816 # The coded name of the library, if different from the real name.
8817 soname_spec=$lt_soname_spec
8818
8819 # Commands used to build and install an old-style archive.
8820 RANLIB=$lt_RANLIB
8821 old_archive_cmds=$lt_old_archive_cmds
8822 old_postinstall_cmds=$lt_old_postinstall_cmds
8823 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8824
8825 # Create an old-style archive from a shared archive.
8826 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8827
8828 # Create a temporary old-style archive to link instead of a shared archive.
8829 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8830
8831 # Commands used to build and install a shared archive.
8832 archive_cmds=$lt_archive_cmds
8833 archive_expsym_cmds=$lt_archive_expsym_cmds
8834 postinstall_cmds=$lt_postinstall_cmds
8835 postuninstall_cmds=$lt_postuninstall_cmds
8836
8837 # Commands used to build a loadable module (assumed same as above if empty)
8838 module_cmds=$lt_module_cmds
8839 module_expsym_cmds=$lt_module_expsym_cmds
8840
8841 # Commands to strip libraries.
8842 old_striplib=$lt_old_striplib
8843 striplib=$lt_striplib
8844
8845 # Dependencies to place before the objects being linked to create a
8846 # shared library.
8847 predep_objects=$lt_predep_objects
8848
8849 # Dependencies to place after the objects being linked to create a
8850 # shared library.
8851 postdep_objects=$lt_postdep_objects
8852
8853 # Dependencies to place before the objects being linked to create a
8854 # shared library.
8855 predeps=$lt_predeps
8856
8857 # Dependencies to place after the objects being linked to create a
8858 # shared library.
8859 postdeps=$lt_postdeps
8860
8861 # The library search path used internally by the compiler when linking
8862 # a shared library.
8863 compiler_lib_search_path=$lt_compiler_lib_search_path
8864
8865 # Method to check whether dependent libraries are shared objects.
8866 deplibs_check_method=$lt_deplibs_check_method
8867
8868 # Command to use when deplibs_check_method == file_magic.
8869 file_magic_cmd=$lt_file_magic_cmd
8870
8871 # Flag that allows shared libraries with undefined symbols to be built.
8872 allow_undefined_flag=$lt_allow_undefined_flag
8873
8874 # Flag that forces no undefined symbols.
8875 no_undefined_flag=$lt_no_undefined_flag
8876
8877 # Commands used to finish a libtool library installation in a directory.
8878 finish_cmds=$lt_finish_cmds
8879
8880 # Same as above, but a single script fragment to be evaled but not shown.
8881 finish_eval=$lt_finish_eval
8882
8883 # Take the output of nm and produce a listing of raw symbols and C names.
8884 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8885
8886 # Transform the output of nm in a proper C declaration
8887 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8888
8889 # Transform the output of nm in a C name address pair
8890 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8891
8892 # This is the shared library runtime path variable.
8893 runpath_var=$runpath_var
8894
8895 # This is the shared library path variable.
8896 shlibpath_var=$shlibpath_var
8897
8898 # Is shlibpath searched before the hard-coded library search path?
8899 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8900
8901 # How to hardcode a shared library path into an executable.
8902 hardcode_action=$hardcode_action
8903
8904 # Whether we should hardcode library paths into libraries.
8905 hardcode_into_libs=$hardcode_into_libs
8906
8907 # Flag to hardcode \$libdir into a binary during linking.
8908 # This must work even if \$libdir does not exist.
8909 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8910
8911 # If ld is used when linking, flag to hardcode \$libdir into
8912 # a binary during linking. This must work even if \$libdir does
8913 # not exist.
8914 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8915
8916 # Whether we need a single -rpath flag with a separated argument.
8917 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8918
8919 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8920 # resulting binary.
8921 hardcode_direct=$hardcode_direct
8922
8923 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8924 # resulting binary.
8925 hardcode_minus_L=$hardcode_minus_L
8926
8927 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8928 # the resulting binary.
8929 hardcode_shlibpath_var=$hardcode_shlibpath_var
8930
8931 # Set to yes if building a shared library automatically hardcodes DIR into the library
8932 # and all subsequent libraries and executables linked against it.
8933 hardcode_automatic=$hardcode_automatic
8934
8935 # Variables whose values should be saved in libtool wrapper scripts and
8936 # restored at relink time.
8937 variables_saved_for_relink="$variables_saved_for_relink"
8938
8939 # Whether libtool must link a program against all its dependency libraries.
8940 link_all_deplibs=$link_all_deplibs
8941
8942 # Compile-time system search path for libraries
8943 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8944
8945 # Run-time system search path for libraries
8946 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8947
8948 # Fix the shell variable \$srcfile for the compiler.
8949 fix_srcfile_path="$fix_srcfile_path"
8950
8951 # Set to yes if exported symbols are required.
8952 always_export_symbols=$always_export_symbols
8953
8954 # The commands to list exported symbols.
8955 export_symbols_cmds=$lt_export_symbols_cmds
8956
8957 # The commands to extract the exported symbol list from a shared archive.
8958 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8959
8960 # Symbols that should not be listed in the preloaded symbols.
8961 exclude_expsyms=$lt_exclude_expsyms
8962
8963 # Symbols that must always be exported.
8964 include_expsyms=$lt_include_expsyms
8965
8966 # ### END LIBTOOL CONFIG
8967
8968 __EOF__
8969
8970
8971   case $host_os in
8972   aix3*)
8973     cat <<\EOF >> "$cfgfile"
8974
8975 # AIX sometimes has problems with the GCC collect2 program.  For some
8976 # reason, if we set the COLLECT_NAMES environment variable, the problems
8977 # vanish in a puff of smoke.
8978 if test "X${COLLECT_NAMES+set}" != Xset; then
8979   COLLECT_NAMES=
8980   export COLLECT_NAMES
8981 fi
8982 EOF
8983     ;;
8984   esac
8985
8986   # We use sed instead of cat because bash on DJGPP gets confused if
8987   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8988   # text mode, it properly converts lines to CR/LF.  This bash problem
8989   # is reportedly fixed, but why not run on old versions too?
8990   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8991
8992   mv -f "$cfgfile" "$ofile" || \
8993     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8994   chmod +x "$ofile"
8995
8996 else
8997   # If there is no Makefile yet, we rely on a make rule to execute
8998   # `config.status --recheck' to rerun these tests and create the
8999   # libtool script then.
9000   test -f Makefile && make "$ltmain"
9001 fi
9002
9003
9004 ac_ext=c
9005 ac_cpp='$CPP $CPPFLAGS'
9006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9009
9010 CC="$lt_save_CC"
9011
9012
9013 # Check whether --with-tags or --without-tags was given.
9014 if test "${with_tags+set}" = set; then
9015   withval="$with_tags"
9016   tagnames="$withval"
9017 fi;
9018
9019 if test -f "$ltmain" && test -n "$tagnames"; then
9020   if test ! -f "${ofile}"; then
9021     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9022 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9023   fi
9024
9025   if test -z "$LTCC"; then
9026     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9027     if test -z "$LTCC"; then
9028       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9029 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9030     else
9031       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9032 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9033     fi
9034   fi
9035
9036   # Extract list of available tagged configurations in $ofile.
9037   # Note that this assumes the entire list is on one line.
9038   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9039
9040   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9041   for tagname in $tagnames; do
9042     IFS="$lt_save_ifs"
9043     # Check whether tagname contains only valid characters
9044     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9045     "") ;;
9046     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9047 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9048    { (exit 1); exit 1; }; }
9049         ;;
9050     esac
9051
9052     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9053     then
9054       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9055 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9056    { (exit 1); exit 1; }; }
9057     fi
9058
9059     # Update the list of available tags.
9060     if test -n "$tagname"; then
9061       echo appending configuration tag \"$tagname\" to $ofile
9062
9063       case $tagname in
9064       CXX)
9065         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9066           ac_ext=cc
9067 ac_cpp='$CXXCPP $CPPFLAGS'
9068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9071
9072
9073
9074
9075 archive_cmds_need_lc_CXX=no
9076 allow_undefined_flag_CXX=
9077 always_export_symbols_CXX=no
9078 archive_expsym_cmds_CXX=
9079 export_dynamic_flag_spec_CXX=
9080 hardcode_direct_CXX=no
9081 hardcode_libdir_flag_spec_CXX=
9082 hardcode_libdir_flag_spec_ld_CXX=
9083 hardcode_libdir_separator_CXX=
9084 hardcode_minus_L_CXX=no
9085 hardcode_automatic_CXX=no
9086 module_cmds_CXX=
9087 module_expsym_cmds_CXX=
9088 link_all_deplibs_CXX=unknown
9089 old_archive_cmds_CXX=$old_archive_cmds
9090 no_undefined_flag_CXX=
9091 whole_archive_flag_spec_CXX=
9092 enable_shared_with_static_runtimes_CXX=no
9093
9094 # Dependencies to place before and after the object being linked:
9095 predep_objects_CXX=
9096 postdep_objects_CXX=
9097 predeps_CXX=
9098 postdeps_CXX=
9099 compiler_lib_search_path_CXX=
9100
9101 # Source file extension for C++ test sources.
9102 ac_ext=cc
9103
9104 # Object file extension for compiled C++ test sources.
9105 objext=o
9106 objext_CXX=$objext
9107
9108 # Code to be used in simple compile tests
9109 lt_simple_compile_test_code="int some_variable = 0;\n"
9110
9111 # Code to be used in simple link tests
9112 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9113
9114 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9115
9116 # If no C compiler was specified, use CC.
9117 LTCC=${LTCC-"$CC"}
9118
9119 # Allow CC to be a program name with arguments.
9120 compiler=$CC
9121
9122
9123 # Allow CC to be a program name with arguments.
9124 lt_save_CC=$CC
9125 lt_save_LD=$LD
9126 lt_save_GCC=$GCC
9127 GCC=$GXX
9128 lt_save_with_gnu_ld=$with_gnu_ld
9129 lt_save_path_LD=$lt_cv_path_LD
9130 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9131   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9132 else
9133   unset lt_cv_prog_gnu_ld
9134 fi
9135 if test -n "${lt_cv_path_LDCXX+set}"; then
9136   lt_cv_path_LD=$lt_cv_path_LDCXX
9137 else
9138   unset lt_cv_path_LD
9139 fi
9140 test -z "${LDCXX+set}" || LD=$LDCXX
9141 CC=${CXX-"c++"}
9142 compiler=$CC
9143 compiler_CXX=$CC
9144 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9145
9146 # We don't want -fno-exception wen compiling C++ code, so set the
9147 # no_builtin_flag separately
9148 if test "$GXX" = yes; then
9149   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9150 else
9151   lt_prog_compiler_no_builtin_flag_CXX=
9152 fi
9153
9154 if test "$GXX" = yes; then
9155   # Set up default GNU C++ configuration
9156
9157
9158 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9159 if test "${with_gnu_ld+set}" = set; then
9160   withval="$with_gnu_ld"
9161   test "$withval" = no || with_gnu_ld=yes
9162 else
9163   with_gnu_ld=no
9164 fi;
9165 ac_prog=ld
9166 if test "$GCC" = yes; then
9167   # Check if gcc -print-prog-name=ld gives a path.
9168   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9169 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9170   case $host in
9171   *-*-mingw*)
9172     # gcc leaves a trailing carriage return which upsets mingw
9173     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9174   *)
9175     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9176   esac
9177   case $ac_prog in
9178     # Accept absolute paths.
9179     [\\/]* | ?:[\\/]*)
9180       re_direlt='/[^/][^/]*/\.\./'
9181       # Canonicalize the path of ld
9182       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9183       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9184         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9185       done
9186       test -z "$LD" && LD="$ac_prog"
9187       ;;
9188   "")
9189     # If it fails, then pretend we aren't using GCC.
9190     ac_prog=ld
9191     ;;
9192   *)
9193     # If it is relative, then search for the first ld in PATH.
9194     with_gnu_ld=unknown
9195     ;;
9196   esac
9197 elif test "$with_gnu_ld" = yes; then
9198   echo "$as_me:$LINENO: checking for GNU ld" >&5
9199 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9200 else
9201   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9202 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9203 fi
9204 if test "${lt_cv_path_LD+set}" = set; then
9205   echo $ECHO_N "(cached) $ECHO_C" >&6
9206 else
9207   if test -z "$LD"; then
9208   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9209   for ac_dir in $PATH; do
9210     IFS="$lt_save_ifs"
9211     test -z "$ac_dir" && ac_dir=.
9212     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9213       lt_cv_path_LD="$ac_dir/$ac_prog"
9214       # Check to see if the program is GNU ld.  I'd rather use --version,
9215       # but apparently some GNU ld's only accept -v.
9216       # Break only if it was the GNU/non-GNU ld that we prefer.
9217       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9218       *GNU* | *'with BFD'*)
9219         test "$with_gnu_ld" != no && break
9220         ;;
9221       *)
9222         test "$with_gnu_ld" != yes && break
9223         ;;
9224       esac
9225     fi
9226   done
9227   IFS="$lt_save_ifs"
9228 else
9229   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9230 fi
9231 fi
9232
9233 LD="$lt_cv_path_LD"
9234 if test -n "$LD"; then
9235   echo "$as_me:$LINENO: result: $LD" >&5
9236 echo "${ECHO_T}$LD" >&6
9237 else
9238   echo "$as_me:$LINENO: result: no" >&5
9239 echo "${ECHO_T}no" >&6
9240 fi
9241 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9242 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9243    { (exit 1); exit 1; }; }
9244 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9245 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9246 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9247   echo $ECHO_N "(cached) $ECHO_C" >&6
9248 else
9249   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9250 case `"$LD" -v 2>&1 </dev/null` in
9251 *GNU* | *'with BFD'*)
9252   lt_cv_prog_gnu_ld=yes
9253   ;;
9254 *)
9255   lt_cv_prog_gnu_ld=no
9256   ;;
9257 esac
9258 fi
9259 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9260 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9261 with_gnu_ld=$lt_cv_prog_gnu_ld
9262
9263
9264
9265   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9266   # archiving commands below assume that GNU ld is being used.
9267   if test "$with_gnu_ld" = yes; then
9268     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9269     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'
9270
9271     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9272     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9273
9274     # If archive_cmds runs LD, not CC, wlarc should be empty
9275     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9276     #     investigate it a little bit more. (MM)
9277     wlarc='${wl}'
9278
9279     # ancient GNU ld didn't support --whole-archive et. al.
9280     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9281         grep 'no-whole-archive' > /dev/null; then
9282       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9283     else
9284       whole_archive_flag_spec_CXX=
9285     fi
9286   else
9287     with_gnu_ld=no
9288     wlarc=
9289
9290     # A generic and very simple default shared library creation
9291     # command for GNU C++ for the case where it uses the native
9292     # linker, instead of GNU ld.  If possible, this setting should
9293     # overridden to take advantage of the native linker features on
9294     # the platform it is being used on.
9295     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9296   fi
9297
9298   # Commands to make compiler produce verbose output that lists
9299   # what "hidden" libraries, object files and flags are used when
9300   # linking a shared library.
9301   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9302
9303 else
9304   GXX=no
9305   with_gnu_ld=no
9306   wlarc=
9307 fi
9308
9309 # PORTME: fill in a description of your system's C++ link characteristics
9310 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9311 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9312 ld_shlibs_CXX=yes
9313 case $host_os in
9314   aix3*)
9315     # FIXME: insert proper C++ library support
9316     ld_shlibs_CXX=no
9317     ;;
9318   aix4* | aix5*)
9319     if test "$host_cpu" = ia64; then
9320       # On IA64, the linker does run time linking by default, so we don't
9321       # have to do anything special.
9322       aix_use_runtimelinking=no
9323       exp_sym_flag='-Bexport'
9324       no_entry_flag=""
9325     else
9326       aix_use_runtimelinking=no
9327
9328       # Test if we are trying to use run time linking or normal
9329       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9330       # need to do runtime linking.
9331       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9332         for ld_flag in $LDFLAGS; do
9333           case $ld_flag in
9334           *-brtl*)
9335             aix_use_runtimelinking=yes
9336             break
9337             ;;
9338           esac
9339         done
9340       esac
9341
9342       exp_sym_flag='-bexport'
9343       no_entry_flag='-bnoentry'
9344     fi
9345
9346     # When large executables or shared objects are built, AIX ld can
9347     # have problems creating the table of contents.  If linking a library
9348     # or program results in "error TOC overflow" add -mminimal-toc to
9349     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9350     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9351
9352     archive_cmds_CXX=''
9353     hardcode_direct_CXX=yes
9354     hardcode_libdir_separator_CXX=':'
9355     link_all_deplibs_CXX=yes
9356
9357     if test "$GXX" = yes; then
9358       case $host_os in aix4.012|aix4.012.*)
9359       # We only want to do this on AIX 4.2 and lower, the check
9360       # below for broken collect2 doesn't work under 4.3+
9361         collect2name=`${CC} -print-prog-name=collect2`
9362         if test -f "$collect2name" && \
9363            strings "$collect2name" | grep resolve_lib_name >/dev/null
9364         then
9365           # We have reworked collect2
9366           hardcode_direct_CXX=yes
9367         else
9368           # We have old collect2
9369           hardcode_direct_CXX=unsupported
9370           # It fails to find uninstalled libraries when the uninstalled
9371           # path is not listed in the libpath.  Setting hardcode_minus_L
9372           # to unsupported forces relinking
9373           hardcode_minus_L_CXX=yes
9374           hardcode_libdir_flag_spec_CXX='-L$libdir'
9375           hardcode_libdir_separator_CXX=
9376         fi
9377       esac
9378       shared_flag='-shared'
9379     else
9380       # not using gcc
9381       if test "$host_cpu" = ia64; then
9382         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9383         # chokes on -Wl,-G. The following line is correct:
9384         shared_flag='-G'
9385       else
9386         if test "$aix_use_runtimelinking" = yes; then
9387           shared_flag='${wl}-G'
9388         else
9389           shared_flag='${wl}-bM:SRE'
9390         fi
9391       fi
9392     fi
9393
9394     # It seems that -bexpall does not export symbols beginning with
9395     # underscore (_), so it is better to generate a list of symbols to export.
9396     always_export_symbols_CXX=yes
9397     if test "$aix_use_runtimelinking" = yes; then
9398       # Warning - without using the other runtime loading flags (-brtl),
9399       # -berok will link without error, but may produce a broken library.
9400       allow_undefined_flag_CXX='-berok'
9401       # Determine the default libpath from the value encoded in an empty executable.
9402       cat >conftest.$ac_ext <<_ACEOF
9403 #line $LINENO "configure"
9404 /* confdefs.h.  */
9405 _ACEOF
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h.  */
9409
9410 int
9411 main ()
9412 {
9413
9414   ;
9415   return 0;
9416 }
9417 _ACEOF
9418 rm -f conftest.$ac_objext conftest$ac_exeext
9419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9420   (eval $ac_link) 2>&5
9421   ac_status=$?
9422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423   (exit $ac_status); } &&
9424          { ac_try='test -s conftest$ac_exeext'
9425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426   (eval $ac_try) 2>&5
9427   ac_status=$?
9428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429   (exit $ac_status); }; }; then
9430
9431 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9432 }'`
9433 # Check for a 64-bit object if we didn't find anything.
9434 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; }
9435 }'`; fi
9436 else
9437   echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9439
9440 fi
9441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9442 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9443
9444       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9445
9446       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"
9447      else
9448       if test "$host_cpu" = ia64; then
9449         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9450         allow_undefined_flag_CXX="-z nodefs"
9451         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"
9452       else
9453         # Determine the default libpath from the value encoded in an empty executable.
9454         cat >conftest.$ac_ext <<_ACEOF
9455 #line $LINENO "configure"
9456 /* confdefs.h.  */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h.  */
9461
9462 int
9463 main ()
9464 {
9465
9466   ;
9467   return 0;
9468 }
9469 _ACEOF
9470 rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9472   (eval $ac_link) 2>&5
9473   ac_status=$?
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); } &&
9476          { ac_try='test -s conftest$ac_exeext'
9477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478   (eval $ac_try) 2>&5
9479   ac_status=$?
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); }; }; then
9482
9483 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9484 }'`
9485 # Check for a 64-bit object if we didn't find anything.
9486 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; }
9487 }'`; fi
9488 else
9489   echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9491
9492 fi
9493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9495
9496         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9497         # Warning - without using the other run time loading flags,
9498         # -berok will link without error, but may produce a broken library.
9499         no_undefined_flag_CXX=' ${wl}-bernotok'
9500         allow_undefined_flag_CXX=' ${wl}-berok'
9501         # -bexpall does not export symbols beginning with underscore (_)
9502         always_export_symbols_CXX=yes
9503         # Exported symbols can be pulled into shared objects from archives
9504         whole_archive_flag_spec_CXX=' '
9505         archive_cmds_need_lc_CXX=yes
9506         # This is similar to how AIX traditionally builds it's shared libraries.
9507         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'
9508       fi
9509     fi
9510     ;;
9511   chorus*)
9512     case $cc_basename in
9513       *)
9514         # FIXME: insert proper C++ library support
9515         ld_shlibs_CXX=no
9516         ;;
9517     esac
9518     ;;
9519
9520   cygwin* | mingw* | pw32*)
9521     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9522     # as there is no search path for DLLs.
9523     hardcode_libdir_flag_spec_CXX='-L$libdir'
9524     allow_undefined_flag_CXX=unsupported
9525     always_export_symbols_CXX=no
9526     enable_shared_with_static_runtimes_CXX=yes
9527
9528     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9529       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'
9530       # If the export-symbols file already is a .def file (1st line
9531       # is EXPORTS), use it as is; otherwise, prepend...
9532       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9533         cp $export_symbols $output_objdir/$soname.def;
9534       else
9535         echo EXPORTS > $output_objdir/$soname.def;
9536         cat $export_symbols >> $output_objdir/$soname.def;
9537       fi~
9538       $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'
9539     else
9540       ld_shlibs_CXX=no
9541     fi
9542   ;;
9543
9544   darwin* | rhapsody*)
9545    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9546     archive_cmds_need_lc_CXX=no
9547     case "$host_os" in
9548     rhapsody* | darwin1.[012])
9549       allow_undefined_flag_CXX='-undefined suppress'
9550       ;;
9551     *) # Darwin 1.3 on
9552       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9553       ;;
9554     esac
9555         lt_int_apple_cc_single_mod=no
9556         output_verbose_link_cmd='echo'
9557         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9558           lt_int_apple_cc_single_mod=yes
9559         fi
9560         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9561           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9562         else
9563         archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9564       fi
9565       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9566
9567     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9568       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9569         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}'
9570       else
9571         archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
9572       fi
9573         module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9574     hardcode_direct_CXX=no
9575     hardcode_automatic_CXX=yes
9576     hardcode_shlibpath_var_CXX=unsupported
9577     whole_archive_flag_spec_CXX='-all_load $convenience'
9578     link_all_deplibs_CXX=yes
9579    fi
9580     ;;
9581
9582   dgux*)
9583     case $cc_basename in
9584       ec++)
9585         # FIXME: insert proper C++ library support
9586         ld_shlibs_CXX=no
9587         ;;
9588       ghcx)
9589         # Green Hills C++ Compiler
9590         # FIXME: insert proper C++ library support
9591         ld_shlibs_CXX=no
9592         ;;
9593       *)
9594         # FIXME: insert proper C++ library support
9595         ld_shlibs_CXX=no
9596         ;;
9597     esac
9598     ;;
9599   freebsd12*)
9600     # C++ shared libraries reported to be fairly broken before switch to ELF
9601     ld_shlibs_CXX=no
9602     ;;
9603   freebsd-elf*)
9604     archive_cmds_need_lc_CXX=no
9605     ;;
9606   freebsd*)
9607     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9608     # conventions
9609     ld_shlibs_CXX=yes
9610     ;;
9611   gnu*)
9612     ;;
9613   hpux9*)
9614     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9615     hardcode_libdir_separator_CXX=:
9616     export_dynamic_flag_spec_CXX='${wl}-E'
9617     hardcode_direct_CXX=yes
9618     hardcode_minus_L_CXX=yes # Not in the search PATH,
9619                                 # but as the default
9620                                 # location of the library.
9621
9622     case $cc_basename in
9623     CC)
9624       # FIXME: insert proper C++ library support
9625       ld_shlibs_CXX=no
9626       ;;
9627     aCC)
9628       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'
9629       # Commands to make compiler produce verbose output that lists
9630       # what "hidden" libraries, object files and flags are used when
9631       # linking a shared library.
9632       #
9633       # There doesn't appear to be a way to prevent this compiler from
9634       # explicitly linking system object files so we need to strip them
9635       # from the output so that they don't get included in the library
9636       # dependencies.
9637       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9638       ;;
9639     *)
9640       if test "$GXX" = yes; then
9641         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'
9642       else
9643         # FIXME: insert proper C++ library support
9644         ld_shlibs_CXX=no
9645       fi
9646       ;;
9647     esac
9648     ;;
9649   hpux10*|hpux11*)
9650     if test $with_gnu_ld = no; then
9651       case "$host_cpu" in
9652       hppa*64*)
9653         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9654         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9655         hardcode_libdir_separator_CXX=:
9656         ;;
9657       ia64*)
9658         hardcode_libdir_flag_spec_CXX='-L$libdir'
9659         ;;
9660       *)
9661         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9662         hardcode_libdir_separator_CXX=:
9663         export_dynamic_flag_spec_CXX='${wl}-E'
9664         ;;
9665       esac
9666     fi
9667     case "$host_cpu" in
9668     hppa*64*)
9669       hardcode_direct_CXX=no
9670       hardcode_shlibpath_var_CXX=no
9671       ;;
9672     ia64*)
9673       hardcode_direct_CXX=no
9674       hardcode_shlibpath_var_CXX=no
9675       hardcode_minus_L_CXX=yes # Not in the search PATH,
9676                                               # but as the default
9677                                               # location of the library.
9678       ;;
9679     *)
9680       hardcode_direct_CXX=yes
9681       hardcode_minus_L_CXX=yes # Not in the search PATH,
9682                                               # but as the default
9683                                               # location of the library.
9684       ;;
9685     esac
9686
9687     case $cc_basename in
9688       CC)
9689         # FIXME: insert proper C++ library support
9690         ld_shlibs_CXX=no
9691         ;;
9692       aCC)
9693         case "$host_cpu" in
9694         hppa*64*|ia64*)
9695           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9696           ;;
9697         *)
9698           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9699           ;;
9700         esac
9701         # Commands to make compiler produce verbose output that lists
9702         # what "hidden" libraries, object files and flags are used when
9703         # linking a shared library.
9704         #
9705         # There doesn't appear to be a way to prevent this compiler from
9706         # explicitly linking system object files so we need to strip them
9707         # from the output so that they don't get included in the library
9708         # dependencies.
9709         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'
9710         ;;
9711       *)
9712         if test "$GXX" = yes; then
9713           if test $with_gnu_ld = no; then
9714             case "$host_cpu" in
9715             ia64*|hppa*64*)
9716               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9717               ;;
9718             *)
9719               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'
9720               ;;
9721             esac
9722           fi
9723         else
9724           # FIXME: insert proper C++ library support
9725           ld_shlibs_CXX=no
9726         fi
9727         ;;
9728     esac
9729     ;;
9730   irix5* | irix6*)
9731     case $cc_basename in
9732       CC)
9733         # SGI C++
9734         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'
9735
9736         # Archives containing C++ object files must be created using
9737         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9738         # necessary to make sure instantiated templates are included
9739         # in the archive.
9740         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9741         ;;
9742       *)
9743         if test "$GXX" = yes; then
9744           if test "$with_gnu_ld" = no; then
9745             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'
9746           else
9747             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'
9748           fi
9749         fi
9750         link_all_deplibs_CXX=yes
9751         ;;
9752     esac
9753     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9754     hardcode_libdir_separator_CXX=:
9755     ;;
9756   linux*)
9757     case $cc_basename in
9758       KCC)
9759         # Kuck and Associates, Inc. (KAI) C++ Compiler
9760
9761         # KCC will only create a shared library if the output file
9762         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9763         # to its proper name (with version) after linking.
9764         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'
9765         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'
9766         # Commands to make compiler produce verbose output that lists
9767         # what "hidden" libraries, object files and flags are used when
9768         # linking a shared library.
9769         #
9770         # There doesn't appear to be a way to prevent this compiler from
9771         # explicitly linking system object files so we need to strip them
9772         # from the output so that they don't get included in the library
9773         # dependencies.
9774         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'
9775
9776         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9777         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9778
9779         # Archives containing C++ object files must be created using
9780         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9781         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9782         ;;
9783       icpc)
9784         # Intel C++
9785         with_gnu_ld=yes
9786         archive_cmds_need_lc_CXX=no
9787         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9788         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'
9789         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9790         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9791         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9792         ;;
9793       cxx)
9794         # Compaq C++
9795         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9796         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'
9797
9798         runpath_var=LD_RUN_PATH
9799         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9800         hardcode_libdir_separator_CXX=:
9801
9802         # Commands to make compiler produce verbose output that lists
9803         # what "hidden" libraries, object files and flags are used when
9804         # linking a shared library.
9805         #
9806         # There doesn't appear to be a way to prevent this compiler from
9807         # explicitly linking system object files so we need to strip them
9808         # from the output so that they don't get included in the library
9809         # dependencies.
9810         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'
9811         ;;
9812     esac
9813     ;;
9814   lynxos*)
9815     # FIXME: insert proper C++ library support
9816     ld_shlibs_CXX=no
9817     ;;
9818   m88k*)
9819     # FIXME: insert proper C++ library support
9820     ld_shlibs_CXX=no
9821     ;;
9822   mvs*)
9823     case $cc_basename in
9824       cxx)
9825         # FIXME: insert proper C++ library support
9826         ld_shlibs_CXX=no
9827         ;;
9828       *)
9829         # FIXME: insert proper C++ library support
9830         ld_shlibs_CXX=no
9831         ;;
9832     esac
9833     ;;
9834   netbsd*)
9835     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9836       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9837       wlarc=
9838       hardcode_libdir_flag_spec_CXX='-R$libdir'
9839       hardcode_direct_CXX=yes
9840       hardcode_shlibpath_var_CXX=no
9841     fi
9842     # Workaround some broken pre-1.5 toolchains
9843     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9844     ;;
9845   osf3*)
9846     case $cc_basename in
9847       KCC)
9848         # Kuck and Associates, Inc. (KAI) C++ Compiler
9849
9850         # KCC will only create a shared library if the output file
9851         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9852         # to its proper name (with version) after linking.
9853         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'
9854
9855         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9856         hardcode_libdir_separator_CXX=:
9857
9858         # Archives containing C++ object files must be created using
9859         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9860         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9861
9862         ;;
9863       RCC)
9864         # Rational C++ 2.4.1
9865         # FIXME: insert proper C++ library support
9866         ld_shlibs_CXX=no
9867         ;;
9868       cxx)
9869         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9870         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'
9871
9872         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9873         hardcode_libdir_separator_CXX=:
9874
9875         # Commands to make compiler produce verbose output that lists
9876         # what "hidden" libraries, object files and flags are used when
9877         # linking a shared library.
9878         #
9879         # There doesn't appear to be a way to prevent this compiler from
9880         # explicitly linking system object files so we need to strip them
9881         # from the output so that they don't get included in the library
9882         # dependencies.
9883         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'
9884         ;;
9885       *)
9886         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9887           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9888           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'
9889
9890           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9891           hardcode_libdir_separator_CXX=:
9892
9893           # Commands to make compiler produce verbose output that lists
9894           # what "hidden" libraries, object files and flags are used when
9895           # linking a shared library.
9896           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9897
9898         else
9899           # FIXME: insert proper C++ library support
9900           ld_shlibs_CXX=no
9901         fi
9902         ;;
9903     esac
9904     ;;
9905   osf4* | osf5*)
9906     case $cc_basename in
9907       KCC)
9908         # Kuck and Associates, Inc. (KAI) C++ Compiler
9909
9910         # KCC will only create a shared library if the output file
9911         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9912         # to its proper name (with version) after linking.
9913         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'
9914
9915         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9916         hardcode_libdir_separator_CXX=:
9917
9918         # Archives containing C++ object files must be created using
9919         # the KAI C++ compiler.
9920         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9921         ;;
9922       RCC)
9923         # Rational C++ 2.4.1
9924         # FIXME: insert proper C++ library support
9925         ld_shlibs_CXX=no
9926         ;;
9927       cxx)
9928         allow_undefined_flag_CXX=' -expect_unresolved \*'
9929         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'
9930         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9931           echo "-hidden">> $lib.exp~
9932           $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~
9933           $rm $lib.exp'
9934
9935         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9936         hardcode_libdir_separator_CXX=:
9937
9938         # Commands to make compiler produce verbose output that lists
9939         # what "hidden" libraries, object files and flags are used when
9940         # linking a shared library.
9941         #
9942         # There doesn't appear to be a way to prevent this compiler from
9943         # explicitly linking system object files so we need to strip them
9944         # from the output so that they don't get included in the library
9945         # dependencies.
9946         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'
9947         ;;
9948       *)
9949         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9950           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9951          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'
9952
9953           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9954           hardcode_libdir_separator_CXX=:
9955
9956           # Commands to make compiler produce verbose output that lists
9957           # what "hidden" libraries, object files and flags are used when
9958           # linking a shared library.
9959           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9960
9961         else
9962           # FIXME: insert proper C++ library support
9963           ld_shlibs_CXX=no
9964         fi
9965         ;;
9966     esac
9967     ;;
9968   psos*)
9969     # FIXME: insert proper C++ library support
9970     ld_shlibs_CXX=no
9971     ;;
9972   sco*)
9973     archive_cmds_need_lc_CXX=no
9974     case $cc_basename in
9975       CC)
9976         # FIXME: insert proper C++ library support
9977         ld_shlibs_CXX=no
9978         ;;
9979       *)
9980         # FIXME: insert proper C++ library support
9981         ld_shlibs_CXX=no
9982         ;;
9983     esac
9984     ;;
9985   sunos4*)
9986     case $cc_basename in
9987       CC)
9988         # Sun C++ 4.x
9989         # FIXME: insert proper C++ library support
9990         ld_shlibs_CXX=no
9991         ;;
9992       lcc)
9993         # Lucid
9994         # FIXME: insert proper C++ library support
9995         ld_shlibs_CXX=no
9996         ;;
9997       *)
9998         # FIXME: insert proper C++ library support
9999         ld_shlibs_CXX=no
10000         ;;
10001     esac
10002     ;;
10003   solaris*)
10004     case $cc_basename in
10005       CC)
10006         # Sun C++ 4.2, 5.x and Centerline C++
10007         no_undefined_flag_CXX=' -zdefs'
10008         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10009         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10010         $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'
10011
10012         hardcode_libdir_flag_spec_CXX='-R$libdir'
10013         hardcode_shlibpath_var_CXX=no
10014         case $host_os in
10015           solaris2.0-5 | solaris2.0-5.*) ;;
10016           *)
10017             # The C++ compiler is used as linker so we must use $wl
10018             # flag to pass the commands to the underlying system
10019             # linker.
10020             # Supported since Solaris 2.6 (maybe 2.5.1?)
10021             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10022             ;;
10023         esac
10024         link_all_deplibs_CXX=yes
10025
10026         # Commands to make compiler produce verbose output that lists
10027         # what "hidden" libraries, object files and flags are used when
10028         # linking a shared library.
10029         #
10030         # There doesn't appear to be a way to prevent this compiler from
10031         # explicitly linking system object files so we need to strip them
10032         # from the output so that they don't get included in the library
10033         # dependencies.
10034         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'
10035
10036         # Archives containing C++ object files must be created using
10037         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10038         # necessary to make sure instantiated templates are included
10039         # in the archive.
10040         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10041         ;;
10042       gcx)
10043         # Green Hills C++ Compiler
10044         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10045
10046         # The C++ compiler must be used to create the archive.
10047         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10048         ;;
10049       *)
10050         # GNU C++ compiler with Solaris linker
10051         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10052           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10053           if $CC --version | grep -v '^2\.7' > /dev/null; then
10054             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10055             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10056                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10057
10058             # Commands to make compiler produce verbose output that lists
10059             # what "hidden" libraries, object files and flags are used when
10060             # linking a shared library.
10061             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10062           else
10063             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10064             # platform.
10065             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10066             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10067                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10068
10069             # Commands to make compiler produce verbose output that lists
10070             # what "hidden" libraries, object files and flags are used when
10071             # linking a shared library.
10072             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10073           fi
10074
10075           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10076         fi
10077         ;;
10078     esac
10079     ;;
10080   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10081     archive_cmds_need_lc_CXX=no
10082     ;;
10083   tandem*)
10084     case $cc_basename in
10085       NCC)
10086         # NonStop-UX NCC 3.20
10087         # FIXME: insert proper C++ library support
10088         ld_shlibs_CXX=no
10089         ;;
10090       *)
10091         # FIXME: insert proper C++ library support
10092         ld_shlibs_CXX=no
10093         ;;
10094     esac
10095     ;;
10096   vxworks*)
10097     # FIXME: insert proper C++ library support
10098     ld_shlibs_CXX=no
10099     ;;
10100   *)
10101     # FIXME: insert proper C++ library support
10102     ld_shlibs_CXX=no
10103     ;;
10104 esac
10105 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10106 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10107 test "$ld_shlibs_CXX" = no && can_build_shared=no
10108
10109 GCC_CXX="$GXX"
10110 LD_CXX="$LD"
10111
10112
10113 cat > conftest.$ac_ext <<EOF
10114 class Foo
10115 {
10116 public:
10117   Foo (void) { a = 0; }
10118 private:
10119   int a;
10120 };
10121 EOF
10122
10123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124   (eval $ac_compile) 2>&5
10125   ac_status=$?
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); }; then
10128   # Parse the compiler output and extract the necessary
10129   # objects, libraries and library flags.
10130
10131   # Sentinel used to keep track of whether or not we are before
10132   # the conftest object file.
10133   pre_test_object_deps_done=no
10134
10135   # The `*' in the case matches for architectures that use `case' in
10136   # $output_verbose_cmd can trigger glob expansion during the loop
10137   # eval without this substitution.
10138   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10139
10140   for p in `eval $output_verbose_link_cmd`; do
10141     case $p in
10142
10143     -L* | -R* | -l*)
10144        # Some compilers place space between "-{L,R}" and the path.
10145        # Remove the space.
10146        if test $p = "-L" \
10147           || test $p = "-R"; then
10148          prev=$p
10149          continue
10150        else
10151          prev=
10152        fi
10153
10154        if test "$pre_test_object_deps_done" = no; then
10155          case $p in
10156          -L* | -R*)
10157            # Internal compiler library paths should come after those
10158            # provided the user.  The postdeps already come after the
10159            # user supplied libs so there is no need to process them.
10160            if test -z "$compiler_lib_search_path_CXX"; then
10161              compiler_lib_search_path_CXX="${prev}${p}"
10162            else
10163              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10164            fi
10165            ;;
10166          # The "-l" case would never come before the object being
10167          # linked, so don't bother handling this case.
10168          esac
10169        else
10170          if test -z "$postdeps_CXX"; then
10171            postdeps_CXX="${prev}${p}"
10172          else
10173            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10174          fi
10175        fi
10176        ;;
10177
10178     *.$objext)
10179        # This assumes that the test object file only shows up
10180        # once in the compiler output.
10181        if test "$p" = "conftest.$objext"; then
10182          pre_test_object_deps_done=yes
10183          continue
10184        fi
10185
10186        if test "$pre_test_object_deps_done" = no; then
10187          if test -z "$predep_objects_CXX"; then
10188            predep_objects_CXX="$p"
10189          else
10190            predep_objects_CXX="$predep_objects_CXX $p"
10191          fi
10192        else
10193          if test -z "$postdep_objects_CXX"; then
10194            postdep_objects_CXX="$p"
10195          else
10196            postdep_objects_CXX="$postdep_objects_CXX $p"
10197          fi
10198        fi
10199        ;;
10200
10201     *) ;; # Ignore the rest.
10202
10203     esac
10204   done
10205
10206   # Clean up.
10207   rm -f a.out a.exe
10208 else
10209   echo "libtool.m4: error: problem compiling CXX test program"
10210 fi
10211
10212 $rm -f confest.$objext
10213
10214 case " $postdeps_CXX " in
10215 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10216 esac
10217
10218 lt_prog_compiler_wl_CXX=
10219 lt_prog_compiler_pic_CXX=
10220 lt_prog_compiler_static_CXX=
10221
10222 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10223 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10224
10225   # C++ specific cases for pic, static, wl, etc.
10226   if test "$GXX" = yes; then
10227     lt_prog_compiler_wl_CXX='-Wl,'
10228     lt_prog_compiler_static_CXX='-static'
10229
10230     case $host_os in
10231     aix*)
10232       # All AIX code is PIC.
10233       if test "$host_cpu" = ia64; then
10234         # AIX 5 now supports IA64 processor
10235         lt_prog_compiler_static_CXX='-Bstatic'
10236       fi
10237       ;;
10238     amigaos*)
10239       # FIXME: we need at least 68020 code to build shared libraries, but
10240       # adding the `-m68020' flag to GCC prevents building anything better,
10241       # like `-m68040'.
10242       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10243       ;;
10244     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10245       # PIC is the default for these OSes.
10246       ;;
10247     mingw* | os2* | pw32*)
10248       # This hack is so that the source file can tell whether it is being
10249       # built for inclusion in a dll (and should export symbols for example).
10250       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10251       ;;
10252     darwin* | rhapsody*)
10253       # PIC is the default on this platform
10254       # Common symbols not allowed in MH_DYLIB files
10255       lt_prog_compiler_pic_CXX='-fno-common'
10256       ;;
10257     *djgpp*)
10258       # DJGPP does not support shared libraries at all
10259       lt_prog_compiler_pic_CXX=
10260       ;;
10261     sysv4*MP*)
10262       if test -d /usr/nec; then
10263         lt_prog_compiler_pic_CXX=-Kconform_pic
10264       fi
10265       ;;
10266     hpux*)
10267       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10268       # not for PA HP-UX.
10269       case "$host_cpu" in
10270       hppa*64*|ia64*)
10271         ;;
10272       *)
10273         lt_prog_compiler_pic_CXX='-fPIC'
10274         ;;
10275       esac
10276       ;;
10277     *)
10278       lt_prog_compiler_pic_CXX='-fPIC'
10279       ;;
10280     esac
10281   else
10282     case $host_os in
10283       aix4* | aix5*)
10284         # All AIX code is PIC.
10285         if test "$host_cpu" = ia64; then
10286           # AIX 5 now supports IA64 processor
10287           lt_prog_compiler_static_CXX='-Bstatic'
10288         else
10289           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10290         fi
10291         ;;
10292       chorus*)
10293         case $cc_basename in
10294         cxch68)
10295           # Green Hills C++ Compiler
10296           # _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"
10297           ;;
10298         esac
10299         ;;
10300       dgux*)
10301         case $cc_basename in
10302           ec++)
10303             lt_prog_compiler_pic_CXX='-KPIC'
10304             ;;
10305           ghcx)
10306             # Green Hills C++ Compiler
10307             lt_prog_compiler_pic_CXX='-pic'
10308             ;;
10309           *)
10310             ;;
10311         esac
10312         ;;
10313       freebsd*)
10314         # FreeBSD uses GNU C++
10315         ;;
10316       hpux9* | hpux10* | hpux11*)
10317         case $cc_basename in
10318           CC)
10319             lt_prog_compiler_wl_CXX='-Wl,'
10320             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10321             if test "$host_cpu" != ia64; then
10322               lt_prog_compiler_pic_CXX='+Z'
10323             fi
10324             ;;
10325           aCC)
10326             lt_prog_compiler_wl_CXX='-Wl,'
10327             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10328             case "$host_cpu" in
10329             hppa*64*|ia64*)
10330               # +Z the default
10331               ;;
10332             *)
10333               lt_prog_compiler_pic_CXX='+Z'
10334               ;;
10335             esac
10336             ;;
10337           *)
10338             ;;
10339         esac
10340         ;;
10341       irix5* | irix6* | nonstopux*)
10342         case $cc_basename in
10343           CC)
10344             lt_prog_compiler_wl_CXX='-Wl,'
10345             lt_prog_compiler_static_CXX='-non_shared'
10346             # CC pic flag -KPIC is the default.
10347             ;;
10348           *)
10349             ;;
10350         esac
10351         ;;
10352       linux*)
10353         case $cc_basename in
10354           KCC)
10355             # KAI C++ Compiler
10356             lt_prog_compiler_wl_CXX='--backend -Wl,'
10357             lt_prog_compiler_pic_CXX='-fPIC'
10358             ;;
10359           icpc)
10360             # Intel C++
10361             lt_prog_compiler_wl_CXX='-Wl,'
10362             lt_prog_compiler_pic_CXX='-KPIC'
10363             lt_prog_compiler_static_CXX='-static'
10364             ;;
10365           cxx)
10366             # Compaq C++
10367             # Make sure the PIC flag is empty.  It appears that all Alpha
10368             # Linux and Compaq Tru64 Unix objects are PIC.
10369             lt_prog_compiler_pic_CXX=
10370             lt_prog_compiler_static_CXX='-non_shared'
10371             ;;
10372           *)
10373             ;;
10374         esac
10375         ;;
10376       lynxos*)
10377         ;;
10378       m88k*)
10379         ;;
10380       mvs*)
10381         case $cc_basename in
10382           cxx)
10383             lt_prog_compiler_pic_CXX='-W c,exportall'
10384             ;;
10385           *)
10386             ;;
10387         esac
10388         ;;
10389       netbsd*)
10390         ;;
10391       osf3* | osf4* | osf5*)
10392         case $cc_basename in
10393           KCC)
10394             lt_prog_compiler_wl_CXX='--backend -Wl,'
10395             ;;
10396           RCC)
10397             # Rational C++ 2.4.1
10398             lt_prog_compiler_pic_CXX='-pic'
10399             ;;
10400           cxx)
10401             # Digital/Compaq C++
10402             lt_prog_compiler_wl_CXX='-Wl,'
10403             # Make sure the PIC flag is empty.  It appears that all Alpha
10404             # Linux and Compaq Tru64 Unix objects are PIC.
10405             lt_prog_compiler_pic_CXX=
10406             lt_prog_compiler_static_CXX='-non_shared'
10407             ;;
10408           *)
10409             ;;
10410         esac
10411         ;;
10412       psos*)
10413         ;;
10414       sco*)
10415         case $cc_basename in
10416           CC)
10417             lt_prog_compiler_pic_CXX='-fPIC'
10418             ;;
10419           *)
10420             ;;
10421         esac
10422         ;;
10423       solaris*)
10424         case $cc_basename in
10425           CC)
10426             # Sun C++ 4.2, 5.x and Centerline C++
10427             lt_prog_compiler_pic_CXX='-KPIC'
10428             lt_prog_compiler_static_CXX='-Bstatic'
10429             lt_prog_compiler_wl_CXX='-Qoption ld '
10430             ;;
10431           gcx)
10432             # Green Hills C++ Compiler
10433             lt_prog_compiler_pic_CXX='-PIC'
10434             ;;
10435           *)
10436             ;;
10437         esac
10438         ;;
10439       sunos4*)
10440         case $cc_basename in
10441           CC)
10442             # Sun C++ 4.x
10443             lt_prog_compiler_pic_CXX='-pic'
10444             lt_prog_compiler_static_CXX='-Bstatic'
10445             ;;
10446           lcc)
10447             # Lucid
10448             lt_prog_compiler_pic_CXX='-pic'
10449             ;;
10450           *)
10451             ;;
10452         esac
10453         ;;
10454       tandem*)
10455         case $cc_basename in
10456           NCC)
10457             # NonStop-UX NCC 3.20
10458             lt_prog_compiler_pic_CXX='-KPIC'
10459             ;;
10460           *)
10461             ;;
10462         esac
10463         ;;
10464       unixware*)
10465         ;;
10466       vxworks*)
10467         ;;
10468       *)
10469         lt_prog_compiler_can_build_shared_CXX=no
10470         ;;
10471     esac
10472   fi
10473
10474 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10475 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10476
10477 #
10478 # Check to make sure the PIC flag actually works.
10479 #
10480 if test -n "$lt_prog_compiler_pic_CXX"; then
10481   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10482 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10483 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10484   echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486   lt_prog_compiler_pic_works_CXX=no
10487   ac_outfile=conftest.$ac_objext
10488    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10489    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10490    # Insert the option either (1) after the last *FLAGS variable, or
10491    # (2) before a word containing "conftest.", or (3) at the end.
10492    # Note that $ac_compile itself does not contain backslashes and begins
10493    # with a dollar sign (not a hyphen), so the echo should work correctly.
10494    # The option is referenced via a variable to avoid confusing sed.
10495    lt_compile=`echo "$ac_compile" | $SED \
10496    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10497    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10498    -e 's:$: $lt_compiler_flag:'`
10499    (eval echo "\"\$as_me:10499: $lt_compile\"" >&5)
10500    (eval "$lt_compile" 2>conftest.err)
10501    ac_status=$?
10502    cat conftest.err >&5
10503    echo "$as_me:10503: \$? = $ac_status" >&5
10504    if (exit $ac_status) && test -s "$ac_outfile"; then
10505      # The compiler can only warn and ignore the option if not recognized
10506      # So say no if there are warnings
10507      if test ! -s conftest.err; then
10508        lt_prog_compiler_pic_works_CXX=yes
10509      fi
10510    fi
10511    $rm conftest*
10512
10513 fi
10514 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10515 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10516
10517 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10518     case $lt_prog_compiler_pic_CXX in
10519      "" | " "*) ;;
10520      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10521      esac
10522 else
10523     lt_prog_compiler_pic_CXX=
10524      lt_prog_compiler_can_build_shared_CXX=no
10525 fi
10526
10527 fi
10528 case "$host_os" in
10529   # For platforms which do not support PIC, -DPIC is meaningless:
10530   *djgpp*)
10531     lt_prog_compiler_pic_CXX=
10532     ;;
10533   *)
10534     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10535     ;;
10536 esac
10537
10538 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10539 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10540 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10541   echo $ECHO_N "(cached) $ECHO_C" >&6
10542 else
10543   lt_cv_prog_compiler_c_o_CXX=no
10544    $rm -r conftest 2>/dev/null
10545    mkdir conftest
10546    cd conftest
10547    mkdir out
10548    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10549
10550    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10551    # that will create temporary files in the current directory regardless of
10552    # the output directory.  Thus, making CWD read-only will cause this test
10553    # to fail, enabling locking or at least warning the user not to do parallel
10554    # builds.
10555    chmod -w .
10556
10557    lt_compiler_flag="-o out/conftest2.$ac_objext"
10558    # Insert the option either (1) after the last *FLAGS variable, or
10559    # (2) before a word containing "conftest.", or (3) at the end.
10560    # Note that $ac_compile itself does not contain backslashes and begins
10561    # with a dollar sign (not a hyphen), so the echo should work correctly.
10562    lt_compile=`echo "$ac_compile" | $SED \
10563    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10564    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10565    -e 's:$: $lt_compiler_flag:'`
10566    (eval echo "\"\$as_me:10566: $lt_compile\"" >&5)
10567    (eval "$lt_compile" 2>out/conftest.err)
10568    ac_status=$?
10569    cat out/conftest.err >&5
10570    echo "$as_me:10570: \$? = $ac_status" >&5
10571    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10572    then
10573      # The compiler can only warn and ignore the option if not recognized
10574      # So say no if there are warnings
10575      if test ! -s out/conftest.err; then
10576        lt_cv_prog_compiler_c_o_CXX=yes
10577      fi
10578    fi
10579    chmod u+w .
10580    $rm conftest* out/*
10581    rmdir out
10582    cd ..
10583    rmdir conftest
10584    $rm conftest*
10585
10586 fi
10587 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10588 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10589
10590
10591 hard_links="nottested"
10592 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10593   # do not overwrite the value of need_locks provided by the user
10594   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10595 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10596   hard_links=yes
10597   $rm conftest*
10598   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10599   touch conftest.a
10600   ln conftest.a conftest.b 2>&5 || hard_links=no
10601   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10602   echo "$as_me:$LINENO: result: $hard_links" >&5
10603 echo "${ECHO_T}$hard_links" >&6
10604   if test "$hard_links" = no; then
10605     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10606 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10607     need_locks=warn
10608   fi
10609 else
10610   need_locks=no
10611 fi
10612
10613 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10614 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10615
10616   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10617   case $host_os in
10618   aix4* | aix5*)
10619     # If we're using GNU nm, then we don't want the "-C" option.
10620     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10621     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10622       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'
10623     else
10624       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'
10625     fi
10626     ;;
10627   pw32*)
10628     export_symbols_cmds_CXX="$ltdll_cmds"
10629   ;;
10630   cygwin* | mingw*)
10631     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10632   ;;
10633   *)
10634     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10635   ;;
10636   esac
10637
10638 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10639 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10640 test "$ld_shlibs_CXX" = no && can_build_shared=no
10641
10642 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10643 if test "$GCC" = yes; then
10644   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10645 fi
10646
10647 #
10648 # Do we need to explicitly link libc?
10649 #
10650 case "x$archive_cmds_need_lc_CXX" in
10651 x|xyes)
10652   # Assume -lc should be added
10653   archive_cmds_need_lc_CXX=yes
10654
10655   if test "$enable_shared" = yes && test "$GCC" = yes; then
10656     case $archive_cmds_CXX in
10657     *'~'*)
10658       # FIXME: we may have to deal with multi-command sequences.
10659       ;;
10660     '$CC '*)
10661       # Test whether the compiler implicitly links with -lc since on some
10662       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10663       # to ld, don't add -lc before -lgcc.
10664       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10665 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10666       $rm conftest*
10667       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10668
10669       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10670   (eval $ac_compile) 2>&5
10671   ac_status=$?
10672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673   (exit $ac_status); } 2>conftest.err; then
10674         soname=conftest
10675         lib=conftest
10676         libobjs=conftest.$ac_objext
10677         deplibs=
10678         wl=$lt_prog_compiler_wl_CXX
10679         compiler_flags=-v
10680         linker_flags=-v
10681         verstring=
10682         output_objdir=.
10683         libname=conftest
10684         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10685         allow_undefined_flag_CXX=
10686         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10687   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10688   ac_status=$?
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); }
10691         then
10692           archive_cmds_need_lc_CXX=no
10693         else
10694           archive_cmds_need_lc_CXX=yes
10695         fi
10696         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10697       else
10698         cat conftest.err 1>&5
10699       fi
10700       $rm conftest*
10701       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10702 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10703       ;;
10704     esac
10705   fi
10706   ;;
10707 esac
10708
10709 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10710 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10711 hardcode_action_CXX=
10712 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10713    test -n "$runpath_var CXX" || \
10714    test "X$hardcode_automatic_CXX"="Xyes" ; then
10715
10716   # We can hardcode non-existant directories.
10717   if test "$hardcode_direct_CXX" != no &&
10718      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10719      # have to relink, otherwise we might link with an installed library
10720      # when we should be linking with a yet-to-be-installed one
10721      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10722      test "$hardcode_minus_L_CXX" != no; then
10723     # Linking always hardcodes the temporary library directory.
10724     hardcode_action_CXX=relink
10725   else
10726     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10727     hardcode_action_CXX=immediate
10728   fi
10729 else
10730   # We cannot hardcode anything, or else we can only hardcode existing
10731   # directories.
10732   hardcode_action_CXX=unsupported
10733 fi
10734 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10735 echo "${ECHO_T}$hardcode_action_CXX" >&6
10736
10737 if test "$hardcode_action_CXX" = relink; then
10738   # Fast installation is not supported
10739   enable_fast_install=no
10740 elif test "$shlibpath_overrides_runpath" = yes ||
10741      test "$enable_shared" = no; then
10742   # Fast installation is not necessary
10743   enable_fast_install=needless
10744 fi
10745
10746 striplib=
10747 old_striplib=
10748 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10749 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10750 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10751   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10752   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10753   echo "$as_me:$LINENO: result: yes" >&5
10754 echo "${ECHO_T}yes" >&6
10755 else
10756 # FIXME - insert some real tests, host_os isn't really good enough
10757   case $host_os in
10758    darwin*)
10759        if test -n "$STRIP" ; then
10760          striplib="$STRIP -x"
10761          echo "$as_me:$LINENO: result: yes" >&5
10762 echo "${ECHO_T}yes" >&6
10763        else
10764   echo "$as_me:$LINENO: result: no" >&5
10765 echo "${ECHO_T}no" >&6
10766 fi
10767        ;;
10768    *)
10769   echo "$as_me:$LINENO: result: no" >&5
10770 echo "${ECHO_T}no" >&6
10771     ;;
10772   esac
10773 fi
10774
10775 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10776 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10777 library_names_spec=
10778 libname_spec='lib$name'
10779 soname_spec=
10780 shrext=".so"
10781 postinstall_cmds=
10782 postuninstall_cmds=
10783 finish_cmds=
10784 finish_eval=
10785 shlibpath_var=
10786 shlibpath_overrides_runpath=unknown
10787 version_type=none
10788 dynamic_linker="$host_os ld.so"
10789 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10790 if test "$GCC" = yes; then
10791   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10792   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10793     # if the path contains ";" then we assume it to be the separator
10794     # otherwise default to the standard path separator (i.e. ":") - it is
10795     # assumed that no part of a normal pathname contains ";" but that should
10796     # okay in the real world where ";" in dirpaths is itself problematic.
10797     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10798   else
10799     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10800   fi
10801 else
10802   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10803 fi
10804 need_lib_prefix=unknown
10805 hardcode_into_libs=no
10806
10807 # when you set need_version to no, make sure it does not cause -set_version
10808 # flags to be left without arguments
10809 need_version=unknown
10810
10811 case $host_os in
10812 aix3*)
10813   version_type=linux
10814   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10815   shlibpath_var=LIBPATH
10816
10817   # AIX 3 has no versioning support, so we append a major version to the name.
10818   soname_spec='${libname}${release}${shared_ext}$major'
10819   ;;
10820
10821 aix4* | aix5*)
10822   version_type=linux
10823   need_lib_prefix=no
10824   need_version=no
10825   hardcode_into_libs=yes
10826   if test "$host_cpu" = ia64; then
10827     # AIX 5 supports IA64
10828     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10829     shlibpath_var=LD_LIBRARY_PATH
10830   else
10831     # With GCC up to 2.95.x, collect2 would create an import file
10832     # for dependence libraries.  The import file would start with
10833     # the line `#! .'.  This would cause the generated library to
10834     # depend on `.', always an invalid library.  This was fixed in
10835     # development snapshots of GCC prior to 3.0.
10836     case $host_os in
10837       aix4 | aix4.[01] | aix4.[01].*)
10838       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10839            echo ' yes '
10840            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10841         :
10842       else
10843         can_build_shared=no
10844       fi
10845       ;;
10846     esac
10847     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10848     # soname into executable. Probably we can add versioning support to
10849     # collect2, so additional links can be useful in future.
10850     if test "$aix_use_runtimelinking" = yes; then
10851       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10852       # instead of lib<name>.a to let people know that these are not
10853       # typical AIX shared libraries.
10854       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10855     else
10856       # We preserve .a as extension for shared libraries through AIX4.2
10857       # and later when we are not doing run time linking.
10858       library_names_spec='${libname}${release}.a $libname.a'
10859       soname_spec='${libname}${release}${shared_ext}$major'
10860     fi
10861     shlibpath_var=LIBPATH
10862   fi
10863   ;;
10864
10865 amigaos*)
10866   library_names_spec='$libname.ixlibrary $libname.a'
10867   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10868   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'
10869   ;;
10870
10871 beos*)
10872   library_names_spec='${libname}${shared_ext}'
10873   dynamic_linker="$host_os ld.so"
10874   shlibpath_var=LIBRARY_PATH
10875   ;;
10876
10877 bsdi4*)
10878   version_type=linux
10879   need_version=no
10880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10881   soname_spec='${libname}${release}${shared_ext}$major'
10882   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10883   shlibpath_var=LD_LIBRARY_PATH
10884   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10885   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10886   # the default ld.so.conf also contains /usr/contrib/lib and
10887   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10888   # libtool to hard-code these into programs
10889   ;;
10890
10891 cygwin* | mingw* | pw32*)
10892   version_type=windows
10893   shrext=".dll"
10894   need_version=no
10895   need_lib_prefix=no
10896
10897   case $GCC,$host_os in
10898   yes,cygwin* | yes,mingw* | yes,pw32*)
10899     library_names_spec='$libname.dll.a'
10900     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10901     postinstall_cmds='base_file=`basename \${file}`~
10902       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10903       dldir=$destdir/`dirname \$dlpath`~
10904       test -d \$dldir || mkdir -p \$dldir~
10905       $install_prog $dir/$dlname \$dldir/$dlname'
10906     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10907       dlpath=$dir/\$dldll~
10908        $rm \$dlpath'
10909     shlibpath_overrides_runpath=yes
10910
10911     case $host_os in
10912     cygwin*)
10913       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10914       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10915       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10916       ;;
10917     mingw*)
10918       # MinGW DLLs use traditional 'lib' prefix
10919       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10920       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10921       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10922         # It is most probably a Windows format PATH printed by
10923         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10924         # path with ; separators, and with drive letters. We can handle the
10925         # drive letters (cygwin fileutils understands them), so leave them,
10926         # especially as we might pass files found there to a mingw objdump,
10927         # which wouldn't understand a cygwinified path. Ahh.
10928         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10929       else
10930         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10931       fi
10932       ;;
10933     pw32*)
10934       # pw32 DLLs use 'pw' prefix rather than 'lib'
10935       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10936       ;;
10937     esac
10938     ;;
10939
10940   *)
10941     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10942     ;;
10943   esac
10944   dynamic_linker='Win32 ld.exe'
10945   # FIXME: first we should search . and the directory the executable is in
10946   shlibpath_var=PATH
10947   ;;
10948
10949 darwin* | rhapsody*)
10950   dynamic_linker="$host_os dyld"
10951   version_type=darwin
10952   need_lib_prefix=no
10953   need_version=no
10954   # FIXME: Relying on posixy $() will cause problems for
10955   #        cross-compilation, but unfortunately the echo tests do not
10956   #        yet detect zsh echo's removal of \ escapes.
10957   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10958   soname_spec='${libname}${release}${major}$shared_ext'
10959   shlibpath_overrides_runpath=yes
10960   shlibpath_var=DYLD_LIBRARY_PATH
10961   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10962   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10963   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10964   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"`
10965   fi
10966   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10967   ;;
10968
10969 dgux*)
10970   version_type=linux
10971   need_lib_prefix=no
10972   need_version=no
10973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10974   soname_spec='${libname}${release}${shared_ext}$major'
10975   shlibpath_var=LD_LIBRARY_PATH
10976   ;;
10977
10978 freebsd1*)
10979   dynamic_linker=no
10980   ;;
10981
10982 freebsd*)
10983   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10984   version_type=freebsd-$objformat
10985   case $version_type in
10986     freebsd-elf*)
10987       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10988       need_version=no
10989       need_lib_prefix=no
10990       ;;
10991     freebsd-*)
10992       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10993       need_version=yes
10994       ;;
10995   esac
10996   shlibpath_var=LD_LIBRARY_PATH
10997   case $host_os in
10998   freebsd2*)
10999     shlibpath_overrides_runpath=yes
11000     ;;
11001   freebsd3.01* | freebsdelf3.01*)
11002     shlibpath_overrides_runpath=yes
11003     hardcode_into_libs=yes
11004     ;;
11005   *) # from 3.2 on
11006     shlibpath_overrides_runpath=no
11007     hardcode_into_libs=yes
11008     ;;
11009   esac
11010   ;;
11011
11012 gnu*)
11013   version_type=linux
11014   need_lib_prefix=no
11015   need_version=no
11016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11017   soname_spec='${libname}${release}${shared_ext}$major'
11018   shlibpath_var=LD_LIBRARY_PATH
11019   hardcode_into_libs=yes
11020   ;;
11021
11022 hpux9* | hpux10* | hpux11*)
11023   # Give a soname corresponding to the major version so that dld.sl refuses to
11024   # link against other versions.
11025   version_type=sunos
11026   need_lib_prefix=no
11027   need_version=no
11028   case "$host_cpu" in
11029   ia64*)
11030     shrext='.so'
11031     hardcode_into_libs=yes
11032     dynamic_linker="$host_os dld.so"
11033     shlibpath_var=LD_LIBRARY_PATH
11034     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11035     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11036     soname_spec='${libname}${release}${shared_ext}$major'
11037     if test "X$HPUX_IA64_MODE" = X32; then
11038       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11039     else
11040       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11041     fi
11042     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11043     ;;
11044    hppa*64*)
11045      shrext='.sl'
11046      hardcode_into_libs=yes
11047      dynamic_linker="$host_os dld.sl"
11048      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11049      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11050      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051      soname_spec='${libname}${release}${shared_ext}$major'
11052      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11053      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11054      ;;
11055    *)
11056     shrext='.sl'
11057     dynamic_linker="$host_os dld.sl"
11058     shlibpath_var=SHLIB_PATH
11059     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11060     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061     soname_spec='${libname}${release}${shared_ext}$major'
11062     ;;
11063   esac
11064   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11065   postinstall_cmds='chmod 555 $lib'
11066   ;;
11067
11068 irix5* | irix6* | nonstopux*)
11069   case $host_os in
11070     nonstopux*) version_type=nonstopux ;;
11071     *)
11072         if test "$lt_cv_prog_gnu_ld" = yes; then
11073                 version_type=linux
11074         else
11075                 version_type=irix
11076         fi ;;
11077   esac
11078   need_lib_prefix=no
11079   need_version=no
11080   soname_spec='${libname}${release}${shared_ext}$major'
11081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11082   case $host_os in
11083   irix5* | nonstopux*)
11084     libsuff= shlibsuff=
11085     ;;
11086   *)
11087     case $LD in # libtool.m4 will add one of these switches to LD
11088     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11089       libsuff= shlibsuff= libmagic=32-bit;;
11090     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11091       libsuff=32 shlibsuff=N32 libmagic=N32;;
11092     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11093       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11094     *) libsuff= shlibsuff= libmagic=never-match;;
11095     esac
11096     ;;
11097   esac
11098   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11099   shlibpath_overrides_runpath=no
11100   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11101   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11102   hardcode_into_libs=yes
11103   ;;
11104
11105 # No shared lib support for Linux oldld, aout, or coff.
11106 linux*oldld* | linux*aout* | linux*coff*)
11107   dynamic_linker=no
11108   ;;
11109
11110 # This must be Linux ELF.
11111 linux*)
11112   version_type=linux
11113   need_lib_prefix=no
11114   need_version=no
11115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116   soname_spec='${libname}${release}${shared_ext}$major'
11117   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11118   shlibpath_var=LD_LIBRARY_PATH
11119   shlibpath_overrides_runpath=no
11120   # This implies no fast_install, which is unacceptable.
11121   # Some rework will be needed to allow for fast_install
11122   # before this can be enabled.
11123   hardcode_into_libs=yes
11124
11125   # We used to test for /lib/ld.so.1 and disable shared libraries on
11126   # powerpc, because MkLinux only supported shared libraries with the
11127   # GNU dynamic linker.  Since this was broken with cross compilers,
11128   # most powerpc-linux boxes support dynamic linking these days and
11129   # people can always --disable-shared, the test was removed, and we
11130   # assume the GNU/Linux dynamic linker is in use.
11131   dynamic_linker='GNU/Linux ld.so'
11132   ;;
11133
11134 netbsd*)
11135   version_type=sunos
11136   need_lib_prefix=no
11137   need_version=no
11138   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11139     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11140     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11141     dynamic_linker='NetBSD (a.out) ld.so'
11142   else
11143     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11144     soname_spec='${libname}${release}${shared_ext}$major'
11145     dynamic_linker='NetBSD ld.elf_so'
11146   fi
11147   shlibpath_var=LD_LIBRARY_PATH
11148   shlibpath_overrides_runpath=yes
11149   hardcode_into_libs=yes
11150   ;;
11151
11152 newsos6)
11153   version_type=linux
11154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155   shlibpath_var=LD_LIBRARY_PATH
11156   shlibpath_overrides_runpath=yes
11157   ;;
11158
11159 nto-qnx)
11160   version_type=linux
11161   need_lib_prefix=no
11162   need_version=no
11163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164   soname_spec='${libname}${release}${shared_ext}$major'
11165   shlibpath_var=LD_LIBRARY_PATH
11166   shlibpath_overrides_runpath=yes
11167   ;;
11168
11169 openbsd*)
11170   version_type=sunos
11171   need_lib_prefix=no
11172   need_version=no
11173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11174   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11175   shlibpath_var=LD_LIBRARY_PATH
11176   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11177     case $host_os in
11178       openbsd2.[89] | openbsd2.[89].*)
11179         shlibpath_overrides_runpath=no
11180         ;;
11181       *)
11182         shlibpath_overrides_runpath=yes
11183         ;;
11184       esac
11185   else
11186     shlibpath_overrides_runpath=yes
11187   fi
11188   ;;
11189
11190 os2*)
11191   libname_spec='$name'
11192   shrext=".dll"
11193   need_lib_prefix=no
11194   library_names_spec='$libname${shared_ext} $libname.a'
11195   dynamic_linker='OS/2 ld.exe'
11196   shlibpath_var=LIBPATH
11197   ;;
11198
11199 osf3* | osf4* | osf5*)
11200   version_type=osf
11201   need_lib_prefix=no
11202   need_version=no
11203   soname_spec='${libname}${release}${shared_ext}$major'
11204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205   shlibpath_var=LD_LIBRARY_PATH
11206   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11207   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11208   ;;
11209
11210 sco3.2v5*)
11211   version_type=osf
11212   soname_spec='${libname}${release}${shared_ext}$major'
11213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11214   shlibpath_var=LD_LIBRARY_PATH
11215   ;;
11216
11217 solaris*)
11218   version_type=linux
11219   need_lib_prefix=no
11220   need_version=no
11221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222   soname_spec='${libname}${release}${shared_ext}$major'
11223   shlibpath_var=LD_LIBRARY_PATH
11224   shlibpath_overrides_runpath=yes
11225   hardcode_into_libs=yes
11226   # ldd complains unless libraries are executable
11227   postinstall_cmds='chmod +x $lib'
11228   ;;
11229
11230 sunos4*)
11231   version_type=sunos
11232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11233   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11234   shlibpath_var=LD_LIBRARY_PATH
11235   shlibpath_overrides_runpath=yes
11236   if test "$with_gnu_ld" = yes; then
11237     need_lib_prefix=no
11238   fi
11239   need_version=yes
11240   ;;
11241
11242 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11243   version_type=linux
11244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245   soname_spec='${libname}${release}${shared_ext}$major'
11246   shlibpath_var=LD_LIBRARY_PATH
11247   case $host_vendor in
11248     sni)
11249       shlibpath_overrides_runpath=no
11250       need_lib_prefix=no
11251       export_dynamic_flag_spec='${wl}-Blargedynsym'
11252       runpath_var=LD_RUN_PATH
11253       ;;
11254     siemens)
11255       need_lib_prefix=no
11256       ;;
11257     motorola)
11258       need_lib_prefix=no
11259       need_version=no
11260       shlibpath_overrides_runpath=no
11261       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11262       ;;
11263   esac
11264   ;;
11265
11266 sysv4*MP*)
11267   if test -d /usr/nec ;then
11268     version_type=linux
11269     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11270     soname_spec='$libname${shared_ext}.$major'
11271     shlibpath_var=LD_LIBRARY_PATH
11272   fi
11273   ;;
11274
11275 uts4*)
11276   version_type=linux
11277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278   soname_spec='${libname}${release}${shared_ext}$major'
11279   shlibpath_var=LD_LIBRARY_PATH
11280   ;;
11281
11282 *)
11283   dynamic_linker=no
11284   ;;
11285 esac
11286 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11287 echo "${ECHO_T}$dynamic_linker" >&6
11288 test "$dynamic_linker" = no && can_build_shared=no
11289
11290 if test "x$enable_dlopen" != xyes; then
11291   enable_dlopen=unknown
11292   enable_dlopen_self=unknown
11293   enable_dlopen_self_static=unknown
11294 else
11295   lt_cv_dlopen=no
11296   lt_cv_dlopen_libs=
11297
11298   case $host_os in
11299   beos*)
11300     lt_cv_dlopen="load_add_on"
11301     lt_cv_dlopen_libs=
11302     lt_cv_dlopen_self=yes
11303     ;;
11304
11305   mingw* | pw32*)
11306     lt_cv_dlopen="LoadLibrary"
11307     lt_cv_dlopen_libs=
11308    ;;
11309
11310   cygwin*)
11311     lt_cv_dlopen="dlopen"
11312     lt_cv_dlopen_libs=
11313    ;;
11314
11315   darwin*)
11316   # if libdl is installed we need to link against it
11317     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11318 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11319 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11320   echo $ECHO_N "(cached) $ECHO_C" >&6
11321 else
11322   ac_check_lib_save_LIBS=$LIBS
11323 LIBS="-ldl  $LIBS"
11324 cat >conftest.$ac_ext <<_ACEOF
11325 #line $LINENO "configure"
11326 /* confdefs.h.  */
11327 _ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h.  */
11331
11332 /* Override any gcc2 internal prototype to avoid an error.  */
11333 #ifdef __cplusplus
11334 extern "C"
11335 #endif
11336 /* We use char because int might match the return type of a gcc2
11337    builtin and then its argument prototype would still apply.  */
11338 char dlopen ();
11339 int
11340 main ()
11341 {
11342 dlopen ();
11343   ;
11344   return 0;
11345 }
11346 _ACEOF
11347 rm -f conftest.$ac_objext conftest$ac_exeext
11348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11349   (eval $ac_link) 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); } &&
11353          { ac_try='test -s conftest$ac_exeext'
11354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355   (eval $ac_try) 2>&5
11356   ac_status=$?
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); }; }; then
11359   ac_cv_lib_dl_dlopen=yes
11360 else
11361   echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11363
11364 ac_cv_lib_dl_dlopen=no
11365 fi
11366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11367 LIBS=$ac_check_lib_save_LIBS
11368 fi
11369 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11370 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11371 if test $ac_cv_lib_dl_dlopen = yes; then
11372   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11373 else
11374
11375     lt_cv_dlopen="dyld"
11376     lt_cv_dlopen_libs=
11377     lt_cv_dlopen_self=yes
11378
11379 fi
11380
11381    ;;
11382
11383   *)
11384     echo "$as_me:$LINENO: checking for shl_load" >&5
11385 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11386 if test "${ac_cv_func_shl_load+set}" = set; then
11387   echo $ECHO_N "(cached) $ECHO_C" >&6
11388 else
11389   cat >conftest.$ac_ext <<_ACEOF
11390 #line $LINENO "configure"
11391 /* confdefs.h.  */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h.  */
11396 /* System header to define __stub macros and hopefully few prototypes,
11397     which can conflict with char shl_load (); below.
11398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11399     <limits.h> exists even on freestanding compilers.  */
11400 #ifdef __STDC__
11401 # include <limits.h>
11402 #else
11403 # include <assert.h>
11404 #endif
11405 /* Override any gcc2 internal prototype to avoid an error.  */
11406 #ifdef __cplusplus
11407 extern "C"
11408 {
11409 #endif
11410 /* We use char because int might match the return type of a gcc2
11411    builtin and then its argument prototype would still apply.  */
11412 char shl_load ();
11413 /* The GNU C library defines this for functions which it implements
11414     to always fail with ENOSYS.  Some functions are actually named
11415     something starting with __ and the normal name is an alias.  */
11416 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11417 choke me
11418 #else
11419 char (*f) () = shl_load;
11420 #endif
11421 #ifdef __cplusplus
11422 }
11423 #endif
11424
11425 int
11426 main ()
11427 {
11428 return f != shl_load;
11429   ;
11430   return 0;
11431 }
11432 _ACEOF
11433 rm -f conftest.$ac_objext conftest$ac_exeext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11435   (eval $ac_link) 2>&5
11436   ac_status=$?
11437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438   (exit $ac_status); } &&
11439          { ac_try='test -s conftest$ac_exeext'
11440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441   (eval $ac_try) 2>&5
11442   ac_status=$?
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); }; }; then
11445   ac_cv_func_shl_load=yes
11446 else
11447   echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11449
11450 ac_cv_func_shl_load=no
11451 fi
11452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11453 fi
11454 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11455 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11456 if test $ac_cv_func_shl_load = yes; then
11457   lt_cv_dlopen="shl_load"
11458 else
11459   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11460 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11461 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11462   echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464   ac_check_lib_save_LIBS=$LIBS
11465 LIBS="-ldld  $LIBS"
11466 cat >conftest.$ac_ext <<_ACEOF
11467 #line $LINENO "configure"
11468 /* confdefs.h.  */
11469 _ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h.  */
11473
11474 /* Override any gcc2 internal prototype to avoid an error.  */
11475 #ifdef __cplusplus
11476 extern "C"
11477 #endif
11478 /* We use char because int might match the return type of a gcc2
11479    builtin and then its argument prototype would still apply.  */
11480 char shl_load ();
11481 int
11482 main ()
11483 {
11484 shl_load ();
11485   ;
11486   return 0;
11487 }
11488 _ACEOF
11489 rm -f conftest.$ac_objext conftest$ac_exeext
11490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11491   (eval $ac_link) 2>&5
11492   ac_status=$?
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); } &&
11495          { ac_try='test -s conftest$ac_exeext'
11496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497   (eval $ac_try) 2>&5
11498   ac_status=$?
11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500   (exit $ac_status); }; }; then
11501   ac_cv_lib_dld_shl_load=yes
11502 else
11503   echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11505
11506 ac_cv_lib_dld_shl_load=no
11507 fi
11508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11509 LIBS=$ac_check_lib_save_LIBS
11510 fi
11511 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11512 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11513 if test $ac_cv_lib_dld_shl_load = yes; then
11514   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11515 else
11516   echo "$as_me:$LINENO: checking for dlopen" >&5
11517 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11518 if test "${ac_cv_func_dlopen+set}" = set; then
11519   echo $ECHO_N "(cached) $ECHO_C" >&6
11520 else
11521   cat >conftest.$ac_ext <<_ACEOF
11522 #line $LINENO "configure"
11523 /* confdefs.h.  */
11524 _ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h.  */
11528 /* System header to define __stub macros and hopefully few prototypes,
11529     which can conflict with char dlopen (); below.
11530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11531     <limits.h> exists even on freestanding compilers.  */
11532 #ifdef __STDC__
11533 # include <limits.h>
11534 #else
11535 # include <assert.h>
11536 #endif
11537 /* Override any gcc2 internal prototype to avoid an error.  */
11538 #ifdef __cplusplus
11539 extern "C"
11540 {
11541 #endif
11542 /* We use char because int might match the return type of a gcc2
11543    builtin and then its argument prototype would still apply.  */
11544 char dlopen ();
11545 /* The GNU C library defines this for functions which it implements
11546     to always fail with ENOSYS.  Some functions are actually named
11547     something starting with __ and the normal name is an alias.  */
11548 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11549 choke me
11550 #else
11551 char (*f) () = dlopen;
11552 #endif
11553 #ifdef __cplusplus
11554 }
11555 #endif
11556
11557 int
11558 main ()
11559 {
11560 return f != dlopen;
11561   ;
11562   return 0;
11563 }
11564 _ACEOF
11565 rm -f conftest.$ac_objext conftest$ac_exeext
11566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11567   (eval $ac_link) 2>&5
11568   ac_status=$?
11569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570   (exit $ac_status); } &&
11571          { ac_try='test -s conftest$ac_exeext'
11572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573   (eval $ac_try) 2>&5
11574   ac_status=$?
11575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576   (exit $ac_status); }; }; then
11577   ac_cv_func_dlopen=yes
11578 else
11579   echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11581
11582 ac_cv_func_dlopen=no
11583 fi
11584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11585 fi
11586 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11587 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11588 if test $ac_cv_func_dlopen = yes; then
11589   lt_cv_dlopen="dlopen"
11590 else
11591   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11592 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11593 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11594   echo $ECHO_N "(cached) $ECHO_C" >&6
11595 else
11596   ac_check_lib_save_LIBS=$LIBS
11597 LIBS="-ldl  $LIBS"
11598 cat >conftest.$ac_ext <<_ACEOF
11599 #line $LINENO "configure"
11600 /* confdefs.h.  */
11601 _ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h.  */
11605
11606 /* Override any gcc2 internal prototype to avoid an error.  */
11607 #ifdef __cplusplus
11608 extern "C"
11609 #endif
11610 /* We use char because int might match the return type of a gcc2
11611    builtin and then its argument prototype would still apply.  */
11612 char dlopen ();
11613 int
11614 main ()
11615 {
11616 dlopen ();
11617   ;
11618   return 0;
11619 }
11620 _ACEOF
11621 rm -f conftest.$ac_objext conftest$ac_exeext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11623   (eval $ac_link) 2>&5
11624   ac_status=$?
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); } &&
11627          { ac_try='test -s conftest$ac_exeext'
11628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629   (eval $ac_try) 2>&5
11630   ac_status=$?
11631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632   (exit $ac_status); }; }; then
11633   ac_cv_lib_dl_dlopen=yes
11634 else
11635   echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.$ac_ext >&5
11637
11638 ac_cv_lib_dl_dlopen=no
11639 fi
11640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11641 LIBS=$ac_check_lib_save_LIBS
11642 fi
11643 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11644 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11645 if test $ac_cv_lib_dl_dlopen = yes; then
11646   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11647 else
11648   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11649 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11650 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11651   echo $ECHO_N "(cached) $ECHO_C" >&6
11652 else
11653   ac_check_lib_save_LIBS=$LIBS
11654 LIBS="-lsvld  $LIBS"
11655 cat >conftest.$ac_ext <<_ACEOF
11656 #line $LINENO "configure"
11657 /* confdefs.h.  */
11658 _ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h.  */
11662
11663 /* Override any gcc2 internal prototype to avoid an error.  */
11664 #ifdef __cplusplus
11665 extern "C"
11666 #endif
11667 /* We use char because int might match the return type of a gcc2
11668    builtin and then its argument prototype would still apply.  */
11669 char dlopen ();
11670 int
11671 main ()
11672 {
11673 dlopen ();
11674   ;
11675   return 0;
11676 }
11677 _ACEOF
11678 rm -f conftest.$ac_objext conftest$ac_exeext
11679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11680   (eval $ac_link) 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); } &&
11684          { ac_try='test -s conftest$ac_exeext'
11685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686   (eval $ac_try) 2>&5
11687   ac_status=$?
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); }; }; then
11690   ac_cv_lib_svld_dlopen=yes
11691 else
11692   echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11694
11695 ac_cv_lib_svld_dlopen=no
11696 fi
11697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11698 LIBS=$ac_check_lib_save_LIBS
11699 fi
11700 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11701 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11702 if test $ac_cv_lib_svld_dlopen = yes; then
11703   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11704 else
11705   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11706 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11707 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11708   echo $ECHO_N "(cached) $ECHO_C" >&6
11709 else
11710   ac_check_lib_save_LIBS=$LIBS
11711 LIBS="-ldld  $LIBS"
11712 cat >conftest.$ac_ext <<_ACEOF
11713 #line $LINENO "configure"
11714 /* confdefs.h.  */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h.  */
11719
11720 /* Override any gcc2 internal prototype to avoid an error.  */
11721 #ifdef __cplusplus
11722 extern "C"
11723 #endif
11724 /* We use char because int might match the return type of a gcc2
11725    builtin and then its argument prototype would still apply.  */
11726 char dld_link ();
11727 int
11728 main ()
11729 {
11730 dld_link ();
11731   ;
11732   return 0;
11733 }
11734 _ACEOF
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11737   (eval $ac_link) 2>&5
11738   ac_status=$?
11739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740   (exit $ac_status); } &&
11741          { ac_try='test -s conftest$ac_exeext'
11742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743   (eval $ac_try) 2>&5
11744   ac_status=$?
11745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746   (exit $ac_status); }; }; then
11747   ac_cv_lib_dld_dld_link=yes
11748 else
11749   echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11751
11752 ac_cv_lib_dld_dld_link=no
11753 fi
11754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11755 LIBS=$ac_check_lib_save_LIBS
11756 fi
11757 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11758 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11759 if test $ac_cv_lib_dld_dld_link = yes; then
11760   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11761 fi
11762
11763
11764 fi
11765
11766
11767 fi
11768
11769
11770 fi
11771
11772
11773 fi
11774
11775
11776 fi
11777
11778     ;;
11779   esac
11780
11781   if test "x$lt_cv_dlopen" != xno; then
11782     enable_dlopen=yes
11783   else
11784     enable_dlopen=no
11785   fi
11786
11787   case $lt_cv_dlopen in
11788   dlopen)
11789     save_CPPFLAGS="$CPPFLAGS"
11790     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11791
11792     save_LDFLAGS="$LDFLAGS"
11793     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11794
11795     save_LIBS="$LIBS"
11796     LIBS="$lt_cv_dlopen_libs $LIBS"
11797
11798     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11799 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11800 if test "${lt_cv_dlopen_self+set}" = set; then
11801   echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
11803           if test "$cross_compiling" = yes; then :
11804   lt_cv_dlopen_self=cross
11805 else
11806   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11807   lt_status=$lt_dlunknown
11808   cat > conftest.$ac_ext <<EOF
11809 #line 11809 "configure"
11810 #include "confdefs.h"
11811
11812 #if HAVE_DLFCN_H
11813 #include <dlfcn.h>
11814 #endif
11815
11816 #include <stdio.h>
11817
11818 #ifdef RTLD_GLOBAL
11819 #  define LT_DLGLOBAL           RTLD_GLOBAL
11820 #else
11821 #  ifdef DL_GLOBAL
11822 #    define LT_DLGLOBAL         DL_GLOBAL
11823 #  else
11824 #    define LT_DLGLOBAL         0
11825 #  endif
11826 #endif
11827
11828 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11829    find out it does not work in some platform. */
11830 #ifndef LT_DLLAZY_OR_NOW
11831 #  ifdef RTLD_LAZY
11832 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11833 #  else
11834 #    ifdef DL_LAZY
11835 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11836 #    else
11837 #      ifdef RTLD_NOW
11838 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11839 #      else
11840 #        ifdef DL_NOW
11841 #          define LT_DLLAZY_OR_NOW      DL_NOW
11842 #        else
11843 #          define LT_DLLAZY_OR_NOW      0
11844 #        endif
11845 #      endif
11846 #    endif
11847 #  endif
11848 #endif
11849
11850 #ifdef __cplusplus
11851 extern "C" void exit (int);
11852 #endif
11853
11854 void fnord() { int i=42;}
11855 int main ()
11856 {
11857   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11858   int status = $lt_dlunknown;
11859
11860   if (self)
11861     {
11862       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11863       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11864       /* dlclose (self); */
11865     }
11866
11867     exit (status);
11868 }
11869 EOF
11870   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11871   (eval $ac_link) 2>&5
11872   ac_status=$?
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11875     (./conftest; exit; ) 2>/dev/null
11876     lt_status=$?
11877     case x$lt_status in
11878       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11879       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11880       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11881     esac
11882   else :
11883     # compilation failed
11884     lt_cv_dlopen_self=no
11885   fi
11886 fi
11887 rm -fr conftest*
11888
11889
11890 fi
11891 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11892 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11893
11894     if test "x$lt_cv_dlopen_self" = xyes; then
11895       LDFLAGS="$LDFLAGS $link_static_flag"
11896       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11897 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11898 if test "${lt_cv_dlopen_self_static+set}" = set; then
11899   echo $ECHO_N "(cached) $ECHO_C" >&6
11900 else
11901           if test "$cross_compiling" = yes; then :
11902   lt_cv_dlopen_self_static=cross
11903 else
11904   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11905   lt_status=$lt_dlunknown
11906   cat > conftest.$ac_ext <<EOF
11907 #line 11907 "configure"
11908 #include "confdefs.h"
11909
11910 #if HAVE_DLFCN_H
11911 #include <dlfcn.h>
11912 #endif
11913
11914 #include <stdio.h>
11915
11916 #ifdef RTLD_GLOBAL
11917 #  define LT_DLGLOBAL           RTLD_GLOBAL
11918 #else
11919 #  ifdef DL_GLOBAL
11920 #    define LT_DLGLOBAL         DL_GLOBAL
11921 #  else
11922 #    define LT_DLGLOBAL         0
11923 #  endif
11924 #endif
11925
11926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11927    find out it does not work in some platform. */
11928 #ifndef LT_DLLAZY_OR_NOW
11929 #  ifdef RTLD_LAZY
11930 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11931 #  else
11932 #    ifdef DL_LAZY
11933 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11934 #    else
11935 #      ifdef RTLD_NOW
11936 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11937 #      else
11938 #        ifdef DL_NOW
11939 #          define LT_DLLAZY_OR_NOW      DL_NOW
11940 #        else
11941 #          define LT_DLLAZY_OR_NOW      0
11942 #        endif
11943 #      endif
11944 #    endif
11945 #  endif
11946 #endif
11947
11948 #ifdef __cplusplus
11949 extern "C" void exit (int);
11950 #endif
11951
11952 void fnord() { int i=42;}
11953 int main ()
11954 {
11955   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11956   int status = $lt_dlunknown;
11957
11958   if (self)
11959     {
11960       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11961       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11962       /* dlclose (self); */
11963     }
11964
11965     exit (status);
11966 }
11967 EOF
11968   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11969   (eval $ac_link) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11973     (./conftest; exit; ) 2>/dev/null
11974     lt_status=$?
11975     case x$lt_status in
11976       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11977       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11978       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11979     esac
11980   else :
11981     # compilation failed
11982     lt_cv_dlopen_self_static=no
11983   fi
11984 fi
11985 rm -fr conftest*
11986
11987
11988 fi
11989 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11990 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11991     fi
11992
11993     CPPFLAGS="$save_CPPFLAGS"
11994     LDFLAGS="$save_LDFLAGS"
11995     LIBS="$save_LIBS"
11996     ;;
11997   esac
11998
11999   case $lt_cv_dlopen_self in
12000   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12001   *) enable_dlopen_self=unknown ;;
12002   esac
12003
12004   case $lt_cv_dlopen_self_static in
12005   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12006   *) enable_dlopen_self_static=unknown ;;
12007   esac
12008 fi
12009
12010
12011 # The else clause should only fire when bootstrapping the
12012 # libtool distribution, otherwise you forgot to ship ltmain.sh
12013 # with your package, and you will get complaints that there are
12014 # no rules to generate ltmain.sh.
12015 if test -f "$ltmain"; then
12016   # See if we are running on zsh, and set the options which allow our commands through
12017   # without removal of \ escapes.
12018   if test -n "${ZSH_VERSION+set}" ; then
12019     setopt NO_GLOB_SUBST
12020   fi
12021   # Now quote all the things that may contain metacharacters while being
12022   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12023   # variables and quote the copies for generation of the libtool script.
12024   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12025     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12026     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12027     deplibs_check_method reload_flag reload_cmds need_locks \
12028     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12029     lt_cv_sys_global_symbol_to_c_name_address \
12030     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12031     old_postinstall_cmds old_postuninstall_cmds \
12032     compiler_CXX \
12033     CC_CXX \
12034     LD_CXX \
12035     lt_prog_compiler_wl_CXX \
12036     lt_prog_compiler_pic_CXX \
12037     lt_prog_compiler_static_CXX \
12038     lt_prog_compiler_no_builtin_flag_CXX \
12039     export_dynamic_flag_spec_CXX \
12040     thread_safe_flag_spec_CXX \
12041     whole_archive_flag_spec_CXX \
12042     enable_shared_with_static_runtimes_CXX \
12043     old_archive_cmds_CXX \
12044     old_archive_from_new_cmds_CXX \
12045     predep_objects_CXX \
12046     postdep_objects_CXX \
12047     predeps_CXX \
12048     postdeps_CXX \
12049     compiler_lib_search_path_CXX \
12050     archive_cmds_CXX \
12051     archive_expsym_cmds_CXX \
12052     postinstall_cmds_CXX \
12053     postuninstall_cmds_CXX \
12054     old_archive_from_expsyms_cmds_CXX \
12055     allow_undefined_flag_CXX \
12056     no_undefined_flag_CXX \
12057     export_symbols_cmds_CXX \
12058     hardcode_libdir_flag_spec_CXX \
12059     hardcode_libdir_flag_spec_ld_CXX \
12060     hardcode_libdir_separator_CXX \
12061     hardcode_automatic_CXX \
12062     module_cmds_CXX \
12063     module_expsym_cmds_CXX \
12064     lt_cv_prog_compiler_c_o_CXX \
12065     exclude_expsyms_CXX \
12066     include_expsyms_CXX; do
12067
12068     case $var in
12069     old_archive_cmds_CXX | \
12070     old_archive_from_new_cmds_CXX | \
12071     archive_cmds_CXX | \
12072     archive_expsym_cmds_CXX | \
12073     module_cmds_CXX | \
12074     module_expsym_cmds_CXX | \
12075     old_archive_from_expsyms_cmds_CXX | \
12076     export_symbols_cmds_CXX | \
12077     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12078     postinstall_cmds | postuninstall_cmds | \
12079     old_postinstall_cmds | old_postuninstall_cmds | \
12080     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12081       # Double-quote double-evaled strings.
12082       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12083       ;;
12084     *)
12085       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12086       ;;
12087     esac
12088   done
12089
12090   case $lt_echo in
12091   *'\$0 --fallback-echo"')
12092     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12093     ;;
12094   esac
12095
12096 cfgfile="$ofile"
12097
12098   cat <<__EOF__ >> "$cfgfile"
12099 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12100
12101 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12102
12103 # Shell to use when invoking shell scripts.
12104 SHELL=$lt_SHELL
12105
12106 # Whether or not to build shared libraries.
12107 build_libtool_libs=$enable_shared
12108
12109 # Whether or not to build static libraries.
12110 build_old_libs=$enable_static
12111
12112 # Whether or not to add -lc for building shared libraries.
12113 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12114
12115 # Whether or not to disallow shared libs when runtime libs are static
12116 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12117
12118 # Whether or not to optimize for fast installation.
12119 fast_install=$enable_fast_install
12120
12121 # The host system.
12122 host_alias=$host_alias
12123 host=$host
12124
12125 # An echo program that does not interpret backslashes.
12126 echo=$lt_echo
12127
12128 # The archiver.
12129 AR=$lt_AR
12130 AR_FLAGS=$lt_AR_FLAGS
12131
12132 # A C compiler.
12133 LTCC=$lt_LTCC
12134
12135 # A language-specific compiler.
12136 CC=$lt_compiler_CXX
12137
12138 # Is the compiler the GNU C compiler?
12139 with_gcc=$GCC_CXX
12140
12141 # An ERE matcher.
12142 EGREP=$lt_EGREP
12143
12144 # The linker used to build libraries.
12145 LD=$lt_LD_CXX
12146
12147 # Whether we need hard or soft links.
12148 LN_S=$lt_LN_S
12149
12150 # A BSD-compatible nm program.
12151 NM=$lt_NM
12152
12153 # A symbol stripping program
12154 STRIP=$STRIP
12155
12156 # Used to examine libraries when file_magic_cmd begins "file"
12157 MAGIC_CMD=$MAGIC_CMD
12158
12159 # Used on cygwin: DLL creation program.
12160 DLLTOOL="$DLLTOOL"
12161
12162 # Used on cygwin: object dumper.
12163 OBJDUMP="$OBJDUMP"
12164
12165 # Used on cygwin: assembler.
12166 AS="$AS"
12167
12168 # The name of the directory that contains temporary libtool files.
12169 objdir=$objdir
12170
12171 # How to create reloadable object files.
12172 reload_flag=$lt_reload_flag
12173 reload_cmds=$lt_reload_cmds
12174
12175 # How to pass a linker flag through the compiler.
12176 wl=$lt_lt_prog_compiler_wl_CXX
12177
12178 # Object file suffix (normally "o").
12179 objext="$ac_objext"
12180
12181 # Old archive suffix (normally "a").
12182 libext="$libext"
12183
12184 # Shared library suffix (normally ".so").
12185 shrext='$shrext'
12186
12187 # Executable file suffix (normally "").
12188 exeext="$exeext"
12189
12190 # Additional compiler flags for building library objects.
12191 pic_flag=$lt_lt_prog_compiler_pic_CXX
12192 pic_mode=$pic_mode
12193
12194 # What is the maximum length of a command?
12195 max_cmd_len=$lt_cv_sys_max_cmd_len
12196
12197 # Does compiler simultaneously support -c and -o options?
12198 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12199
12200 # Must we lock files when doing compilation ?
12201 need_locks=$lt_need_locks
12202
12203 # Do we need the lib prefix for modules?
12204 need_lib_prefix=$need_lib_prefix
12205
12206 # Do we need a version for libraries?
12207 need_version=$need_version
12208
12209 # Whether dlopen is supported.
12210 dlopen_support=$enable_dlopen
12211
12212 # Whether dlopen of programs is supported.
12213 dlopen_self=$enable_dlopen_self
12214
12215 # Whether dlopen of statically linked programs is supported.
12216 dlopen_self_static=$enable_dlopen_self_static
12217
12218 # Compiler flag to prevent dynamic linking.
12219 link_static_flag=$lt_lt_prog_compiler_static_CXX
12220
12221 # Compiler flag to turn off builtin functions.
12222 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12223
12224 # Compiler flag to allow reflexive dlopens.
12225 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12226
12227 # Compiler flag to generate shared objects directly from archives.
12228 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12229
12230 # Compiler flag to generate thread-safe objects.
12231 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12232
12233 # Library versioning type.
12234 version_type=$version_type
12235
12236 # Format of library name prefix.
12237 libname_spec=$lt_libname_spec
12238
12239 # List of archive names.  First name is the real one, the rest are links.
12240 # The last name is the one that the linker finds with -lNAME.
12241 library_names_spec=$lt_library_names_spec
12242
12243 # The coded name of the library, if different from the real name.
12244 soname_spec=$lt_soname_spec
12245
12246 # Commands used to build and install an old-style archive.
12247 RANLIB=$lt_RANLIB
12248 old_archive_cmds=$lt_old_archive_cmds_CXX
12249 old_postinstall_cmds=$lt_old_postinstall_cmds
12250 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12251
12252 # Create an old-style archive from a shared archive.
12253 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12254
12255 # Create a temporary old-style archive to link instead of a shared archive.
12256 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12257
12258 # Commands used to build and install a shared archive.
12259 archive_cmds=$lt_archive_cmds_CXX
12260 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12261 postinstall_cmds=$lt_postinstall_cmds
12262 postuninstall_cmds=$lt_postuninstall_cmds
12263
12264 # Commands used to build a loadable module (assumed same as above if empty)
12265 module_cmds=$lt_module_cmds_CXX
12266 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12267
12268 # Commands to strip libraries.
12269 old_striplib=$lt_old_striplib
12270 striplib=$lt_striplib
12271
12272 # Dependencies to place before the objects being linked to create a
12273 # shared library.
12274 predep_objects=$lt_predep_objects_CXX
12275
12276 # Dependencies to place after the objects being linked to create a
12277 # shared library.
12278 postdep_objects=$lt_postdep_objects_CXX
12279
12280 # Dependencies to place before the objects being linked to create a
12281 # shared library.
12282 predeps=$lt_predeps_CXX
12283
12284 # Dependencies to place after the objects being linked to create a
12285 # shared library.
12286 postdeps=$lt_postdeps_CXX
12287
12288 # The library search path used internally by the compiler when linking
12289 # a shared library.
12290 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12291
12292 # Method to check whether dependent libraries are shared objects.
12293 deplibs_check_method=$lt_deplibs_check_method
12294
12295 # Command to use when deplibs_check_method == file_magic.
12296 file_magic_cmd=$lt_file_magic_cmd
12297
12298 # Flag that allows shared libraries with undefined symbols to be built.
12299 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12300
12301 # Flag that forces no undefined symbols.
12302 no_undefined_flag=$lt_no_undefined_flag_CXX
12303
12304 # Commands used to finish a libtool library installation in a directory.
12305 finish_cmds=$lt_finish_cmds
12306
12307 # Same as above, but a single script fragment to be evaled but not shown.
12308 finish_eval=$lt_finish_eval
12309
12310 # Take the output of nm and produce a listing of raw symbols and C names.
12311 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12312
12313 # Transform the output of nm in a proper C declaration
12314 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12315
12316 # Transform the output of nm in a C name address pair
12317 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12318
12319 # This is the shared library runtime path variable.
12320 runpath_var=$runpath_var
12321
12322 # This is the shared library path variable.
12323 shlibpath_var=$shlibpath_var
12324
12325 # Is shlibpath searched before the hard-coded library search path?
12326 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12327
12328 # How to hardcode a shared library path into an executable.
12329 hardcode_action=$hardcode_action_CXX
12330
12331 # Whether we should hardcode library paths into libraries.
12332 hardcode_into_libs=$hardcode_into_libs
12333
12334 # Flag to hardcode \$libdir into a binary during linking.
12335 # This must work even if \$libdir does not exist.
12336 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12337
12338 # If ld is used when linking, flag to hardcode \$libdir into
12339 # a binary during linking. This must work even if \$libdir does
12340 # not exist.
12341 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12342
12343 # Whether we need a single -rpath flag with a separated argument.
12344 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12345
12346 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12347 # resulting binary.
12348 hardcode_direct=$hardcode_direct_CXX
12349
12350 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12351 # resulting binary.
12352 hardcode_minus_L=$hardcode_minus_L_CXX
12353
12354 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12355 # the resulting binary.
12356 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12357
12358 # Set to yes if building a shared library automatically hardcodes DIR into the library
12359 # and all subsequent libraries and executables linked against it.
12360 hardcode_automatic=$hardcode_automatic_CXX
12361
12362 # Variables whose values should be saved in libtool wrapper scripts and
12363 # restored at relink time.
12364 variables_saved_for_relink="$variables_saved_for_relink"
12365
12366 # Whether libtool must link a program against all its dependency libraries.
12367 link_all_deplibs=$link_all_deplibs_CXX
12368
12369 # Compile-time system search path for libraries
12370 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12371
12372 # Run-time system search path for libraries
12373 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12374
12375 # Fix the shell variable \$srcfile for the compiler.
12376 fix_srcfile_path="$fix_srcfile_path_CXX"
12377
12378 # Set to yes if exported symbols are required.
12379 always_export_symbols=$always_export_symbols_CXX
12380
12381 # The commands to list exported symbols.
12382 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12383
12384 # The commands to extract the exported symbol list from a shared archive.
12385 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12386
12387 # Symbols that should not be listed in the preloaded symbols.
12388 exclude_expsyms=$lt_exclude_expsyms_CXX
12389
12390 # Symbols that must always be exported.
12391 include_expsyms=$lt_include_expsyms_CXX
12392
12393 # ### END LIBTOOL TAG CONFIG: $tagname
12394
12395 __EOF__
12396
12397
12398 else
12399   # If there is no Makefile yet, we rely on a make rule to execute
12400   # `config.status --recheck' to rerun these tests and create the
12401   # libtool script then.
12402   test -f Makefile && make "$ltmain"
12403 fi
12404
12405
12406 ac_ext=c
12407 ac_cpp='$CPP $CPPFLAGS'
12408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12411
12412 CC=$lt_save_CC
12413 LDCXX=$LD
12414 LD=$lt_save_LD
12415 GCC=$lt_save_GCC
12416 with_gnu_ldcxx=$with_gnu_ld
12417 with_gnu_ld=$lt_save_with_gnu_ld
12418 lt_cv_path_LDCXX=$lt_cv_path_LD
12419 lt_cv_path_LD=$lt_save_path_LD
12420 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12421 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12422
12423         else
12424           tagname=""
12425         fi
12426         ;;
12427
12428       F77)
12429         if test -n "$F77" && test "X$F77" != "Xno"; then
12430
12431 ac_ext=f
12432 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12433 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12434 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12435
12436
12437 archive_cmds_need_lc_F77=no
12438 allow_undefined_flag_F77=
12439 always_export_symbols_F77=no
12440 archive_expsym_cmds_F77=
12441 export_dynamic_flag_spec_F77=
12442 hardcode_direct_F77=no
12443 hardcode_libdir_flag_spec_F77=
12444 hardcode_libdir_flag_spec_ld_F77=
12445 hardcode_libdir_separator_F77=
12446 hardcode_minus_L_F77=no
12447 hardcode_automatic_F77=no
12448 module_cmds_F77=
12449 module_expsym_cmds_F77=
12450 link_all_deplibs_F77=unknown
12451 old_archive_cmds_F77=$old_archive_cmds
12452 no_undefined_flag_F77=
12453 whole_archive_flag_spec_F77=
12454 enable_shared_with_static_runtimes_F77=no
12455
12456 # Source file extension for f77 test sources.
12457 ac_ext=f
12458
12459 # Object file extension for compiled f77 test sources.
12460 objext=o
12461 objext_F77=$objext
12462
12463 # Code to be used in simple compile tests
12464 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12465
12466 # Code to be used in simple link tests
12467 lt_simple_link_test_code="      program t\n      end\n"
12468
12469 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12470
12471 # If no C compiler was specified, use CC.
12472 LTCC=${LTCC-"$CC"}
12473
12474 # Allow CC to be a program name with arguments.
12475 compiler=$CC
12476
12477
12478 # Allow CC to be a program name with arguments.
12479 lt_save_CC="$CC"
12480 CC=${F77-"f77"}
12481 compiler=$CC
12482 compiler_F77=$CC
12483 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12484
12485 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12486 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12487 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12488 echo "${ECHO_T}$can_build_shared" >&6
12489
12490 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12491 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12492 test "$can_build_shared" = "no" && enable_shared=no
12493
12494 # On AIX, shared libraries and static libraries use the same namespace, and
12495 # are all built from PIC.
12496 case "$host_os" in
12497 aix3*)
12498   test "$enable_shared" = yes && enable_static=no
12499   if test -n "$RANLIB"; then
12500     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12501     postinstall_cmds='$RANLIB $lib'
12502   fi
12503   ;;
12504 aix4*)
12505   test "$enable_shared" = yes && enable_static=no
12506   ;;
12507 esac
12508 echo "$as_me:$LINENO: result: $enable_shared" >&5
12509 echo "${ECHO_T}$enable_shared" >&6
12510
12511 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12512 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12513 # Make sure either enable_shared or enable_static is yes.
12514 test "$enable_shared" = yes || enable_static=yes
12515 echo "$as_me:$LINENO: result: $enable_static" >&5
12516 echo "${ECHO_T}$enable_static" >&6
12517
12518 test "$ld_shlibs_F77" = no && can_build_shared=no
12519
12520 GCC_F77="$G77"
12521 LD_F77="$LD"
12522
12523 lt_prog_compiler_wl_F77=
12524 lt_prog_compiler_pic_F77=
12525 lt_prog_compiler_static_F77=
12526
12527 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12528 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12529
12530   if test "$GCC" = yes; then
12531     lt_prog_compiler_wl_F77='-Wl,'
12532     lt_prog_compiler_static_F77='-static'
12533
12534     case $host_os in
12535       aix*)
12536       # All AIX code is PIC.
12537       if test "$host_cpu" = ia64; then
12538         # AIX 5 now supports IA64 processor
12539         lt_prog_compiler_static_F77='-Bstatic'
12540       fi
12541       ;;
12542
12543     amigaos*)
12544       # FIXME: we need at least 68020 code to build shared libraries, but
12545       # adding the `-m68020' flag to GCC prevents building anything better,
12546       # like `-m68040'.
12547       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12548       ;;
12549
12550     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12551       # PIC is the default for these OSes.
12552       ;;
12553
12554     mingw* | pw32* | os2*)
12555       # This hack is so that the source file can tell whether it is being
12556       # built for inclusion in a dll (and should export symbols for example).
12557       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12558       ;;
12559
12560     darwin* | rhapsody*)
12561       # PIC is the default on this platform
12562       # Common symbols not allowed in MH_DYLIB files
12563       lt_prog_compiler_pic_F77='-fno-common'
12564       ;;
12565
12566     msdosdjgpp*)
12567       # Just because we use GCC doesn't mean we suddenly get shared libraries
12568       # on systems that don't support them.
12569       lt_prog_compiler_can_build_shared_F77=no
12570       enable_shared=no
12571       ;;
12572
12573     sysv4*MP*)
12574       if test -d /usr/nec; then
12575         lt_prog_compiler_pic_F77=-Kconform_pic
12576       fi
12577       ;;
12578
12579     hpux*)
12580       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12581       # not for PA HP-UX.
12582       case "$host_cpu" in
12583       hppa*64*|ia64*)
12584         # +Z the default
12585         ;;
12586       *)
12587         lt_prog_compiler_pic_F77='-fPIC'
12588         ;;
12589       esac
12590       ;;
12591
12592     *)
12593       lt_prog_compiler_pic_F77='-fPIC'
12594       ;;
12595     esac
12596   else
12597     # PORTME Check for flag to pass linker flags through the system compiler.
12598     case $host_os in
12599     aix*)
12600       lt_prog_compiler_wl_F77='-Wl,'
12601       if test "$host_cpu" = ia64; then
12602         # AIX 5 now supports IA64 processor
12603         lt_prog_compiler_static_F77='-Bstatic'
12604       else
12605         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12606       fi
12607       ;;
12608
12609     mingw* | pw32* | os2*)
12610       # This hack is so that the source file can tell whether it is being
12611       # built for inclusion in a dll (and should export symbols for example).
12612       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12613       ;;
12614
12615     hpux9* | hpux10* | hpux11*)
12616       lt_prog_compiler_wl_F77='-Wl,'
12617       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12618       # not for PA HP-UX.
12619       case "$host_cpu" in
12620       hppa*64*|ia64*)
12621         # +Z the default
12622         ;;
12623       *)
12624         lt_prog_compiler_pic_F77='+Z'
12625         ;;
12626       esac
12627       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12628       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12629       ;;
12630
12631     irix5* | irix6* | nonstopux*)
12632       lt_prog_compiler_wl_F77='-Wl,'
12633       # PIC (with -KPIC) is the default.
12634       lt_prog_compiler_static_F77='-non_shared'
12635       ;;
12636
12637     newsos6)
12638       lt_prog_compiler_pic_F77='-KPIC'
12639       lt_prog_compiler_static_F77='-Bstatic'
12640       ;;
12641
12642     linux*)
12643       case $CC in
12644       icc|ecc)
12645         lt_prog_compiler_wl_F77='-Wl,'
12646         lt_prog_compiler_pic_F77='-KPIC'
12647         lt_prog_compiler_static_F77='-static'
12648         ;;
12649       ccc)
12650         lt_prog_compiler_wl_F77='-Wl,'
12651         # All Alpha code is PIC.
12652         lt_prog_compiler_static_F77='-non_shared'
12653         ;;
12654       esac
12655       ;;
12656
12657     osf3* | osf4* | osf5*)
12658       lt_prog_compiler_wl_F77='-Wl,'
12659       # All OSF/1 code is PIC.
12660       lt_prog_compiler_static_F77='-non_shared'
12661       ;;
12662
12663     sco3.2v5*)
12664       lt_prog_compiler_pic_F77='-Kpic'
12665       lt_prog_compiler_static_F77='-dn'
12666       ;;
12667
12668     solaris*)
12669       lt_prog_compiler_wl_F77='-Wl,'
12670       lt_prog_compiler_pic_F77='-KPIC'
12671       lt_prog_compiler_static_F77='-Bstatic'
12672       ;;
12673
12674     sunos4*)
12675       lt_prog_compiler_wl_F77='-Qoption ld '
12676       lt_prog_compiler_pic_F77='-PIC'
12677       lt_prog_compiler_static_F77='-Bstatic'
12678       ;;
12679
12680     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12681       lt_prog_compiler_wl_F77='-Wl,'
12682       lt_prog_compiler_pic_F77='-KPIC'
12683       lt_prog_compiler_static_F77='-Bstatic'
12684       ;;
12685
12686     sysv4*MP*)
12687       if test -d /usr/nec ;then
12688         lt_prog_compiler_pic_F77='-Kconform_pic'
12689         lt_prog_compiler_static_F77='-Bstatic'
12690       fi
12691       ;;
12692
12693     uts4*)
12694       lt_prog_compiler_pic_F77='-pic'
12695       lt_prog_compiler_static_F77='-Bstatic'
12696       ;;
12697
12698     *)
12699       lt_prog_compiler_can_build_shared_F77=no
12700       ;;
12701     esac
12702   fi
12703
12704 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12705 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12706
12707 #
12708 # Check to make sure the PIC flag actually works.
12709 #
12710 if test -n "$lt_prog_compiler_pic_F77"; then
12711   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12712 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12713 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12714   echo $ECHO_N "(cached) $ECHO_C" >&6
12715 else
12716   lt_prog_compiler_pic_works_F77=no
12717   ac_outfile=conftest.$ac_objext
12718    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12719    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12720    # Insert the option either (1) after the last *FLAGS variable, or
12721    # (2) before a word containing "conftest.", or (3) at the end.
12722    # Note that $ac_compile itself does not contain backslashes and begins
12723    # with a dollar sign (not a hyphen), so the echo should work correctly.
12724    # The option is referenced via a variable to avoid confusing sed.
12725    lt_compile=`echo "$ac_compile" | $SED \
12726    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12727    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12728    -e 's:$: $lt_compiler_flag:'`
12729    (eval echo "\"\$as_me:12729: $lt_compile\"" >&5)
12730    (eval "$lt_compile" 2>conftest.err)
12731    ac_status=$?
12732    cat conftest.err >&5
12733    echo "$as_me:12733: \$? = $ac_status" >&5
12734    if (exit $ac_status) && test -s "$ac_outfile"; then
12735      # The compiler can only warn and ignore the option if not recognized
12736      # So say no if there are warnings
12737      if test ! -s conftest.err; then
12738        lt_prog_compiler_pic_works_F77=yes
12739      fi
12740    fi
12741    $rm conftest*
12742
12743 fi
12744 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12745 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12746
12747 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12748     case $lt_prog_compiler_pic_F77 in
12749      "" | " "*) ;;
12750      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12751      esac
12752 else
12753     lt_prog_compiler_pic_F77=
12754      lt_prog_compiler_can_build_shared_F77=no
12755 fi
12756
12757 fi
12758 case "$host_os" in
12759   # For platforms which do not support PIC, -DPIC is meaningless:
12760   *djgpp*)
12761     lt_prog_compiler_pic_F77=
12762     ;;
12763   *)
12764     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12765     ;;
12766 esac
12767
12768 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12769 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12770 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12771   echo $ECHO_N "(cached) $ECHO_C" >&6
12772 else
12773   lt_cv_prog_compiler_c_o_F77=no
12774    $rm -r conftest 2>/dev/null
12775    mkdir conftest
12776    cd conftest
12777    mkdir out
12778    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12779
12780    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12781    # that will create temporary files in the current directory regardless of
12782    # the output directory.  Thus, making CWD read-only will cause this test
12783    # to fail, enabling locking or at least warning the user not to do parallel
12784    # builds.
12785    chmod -w .
12786
12787    lt_compiler_flag="-o out/conftest2.$ac_objext"
12788    # Insert the option either (1) after the last *FLAGS variable, or
12789    # (2) before a word containing "conftest.", or (3) at the end.
12790    # Note that $ac_compile itself does not contain backslashes and begins
12791    # with a dollar sign (not a hyphen), so the echo should work correctly.
12792    lt_compile=`echo "$ac_compile" | $SED \
12793    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12795    -e 's:$: $lt_compiler_flag:'`
12796    (eval echo "\"\$as_me:12796: $lt_compile\"" >&5)
12797    (eval "$lt_compile" 2>out/conftest.err)
12798    ac_status=$?
12799    cat out/conftest.err >&5
12800    echo "$as_me:12800: \$? = $ac_status" >&5
12801    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12802    then
12803      # The compiler can only warn and ignore the option if not recognized
12804      # So say no if there are warnings
12805      if test ! -s out/conftest.err; then
12806        lt_cv_prog_compiler_c_o_F77=yes
12807      fi
12808    fi
12809    chmod u+w .
12810    $rm conftest* out/*
12811    rmdir out
12812    cd ..
12813    rmdir conftest
12814    $rm conftest*
12815
12816 fi
12817 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12818 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12819
12820
12821 hard_links="nottested"
12822 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12823   # do not overwrite the value of need_locks provided by the user
12824   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12825 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12826   hard_links=yes
12827   $rm conftest*
12828   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12829   touch conftest.a
12830   ln conftest.a conftest.b 2>&5 || hard_links=no
12831   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12832   echo "$as_me:$LINENO: result: $hard_links" >&5
12833 echo "${ECHO_T}$hard_links" >&6
12834   if test "$hard_links" = no; then
12835     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12836 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12837     need_locks=warn
12838   fi
12839 else
12840   need_locks=no
12841 fi
12842
12843 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12844 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12845
12846   runpath_var=
12847   allow_undefined_flag_F77=
12848   enable_shared_with_static_runtimes_F77=no
12849   archive_cmds_F77=
12850   archive_expsym_cmds_F77=
12851   old_archive_From_new_cmds_F77=
12852   old_archive_from_expsyms_cmds_F77=
12853   export_dynamic_flag_spec_F77=
12854   whole_archive_flag_spec_F77=
12855   thread_safe_flag_spec_F77=
12856   hardcode_libdir_flag_spec_F77=
12857   hardcode_libdir_flag_spec_ld_F77=
12858   hardcode_libdir_separator_F77=
12859   hardcode_direct_F77=no
12860   hardcode_minus_L_F77=no
12861   hardcode_shlibpath_var_F77=unsupported
12862   link_all_deplibs_F77=unknown
12863   hardcode_automatic_F77=no
12864   module_cmds_F77=
12865   module_expsym_cmds_F77=
12866   always_export_symbols_F77=no
12867   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12868   # include_expsyms should be a list of space-separated symbols to be *always*
12869   # included in the symbol list
12870   include_expsyms_F77=
12871   # exclude_expsyms can be an extended regexp of symbols to exclude
12872   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12873   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12874   # as well as any symbol that contains `d'.
12875   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12876   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12877   # platforms (ab)use it in PIC code, but their linkers get confused if
12878   # the symbol is explicitly referenced.  Since portable code cannot
12879   # rely on this symbol name, it's probably fine to never include it in
12880   # preloaded symbol tables.
12881   extract_expsyms_cmds=
12882
12883   case $host_os in
12884   cygwin* | mingw* | pw32*)
12885     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12886     # When not using gcc, we currently assume that we are using
12887     # Microsoft Visual C++.
12888     if test "$GCC" != yes; then
12889       with_gnu_ld=no
12890     fi
12891     ;;
12892   openbsd*)
12893     with_gnu_ld=no
12894     ;;
12895   esac
12896
12897   ld_shlibs_F77=yes
12898   if test "$with_gnu_ld" = yes; then
12899     # If archive_cmds runs LD, not CC, wlarc should be empty
12900     wlarc='${wl}'
12901
12902     # See if GNU ld supports shared libraries.
12903     case $host_os in
12904     aix3* | aix4* | aix5*)
12905       # On AIX/PPC, the GNU linker is very broken
12906       if test "$host_cpu" != ia64; then
12907         ld_shlibs_F77=no
12908         cat <<EOF 1>&2
12909
12910 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12911 *** to be unable to reliably create shared libraries on AIX.
12912 *** Therefore, libtool is disabling shared libraries support.  If you
12913 *** really care for shared libraries, you may want to modify your PATH
12914 *** so that a non-GNU linker is found, and then restart.
12915
12916 EOF
12917       fi
12918       ;;
12919
12920     amigaos*)
12921       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)'
12922       hardcode_libdir_flag_spec_F77='-L$libdir'
12923       hardcode_minus_L_F77=yes
12924
12925       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12926       # that the semantics of dynamic libraries on AmigaOS, at least up
12927       # to version 4, is to share data among multiple programs linked
12928       # with the same dynamic library.  Since this doesn't match the
12929       # behavior of shared libraries on other platforms, we can't use
12930       # them.
12931       ld_shlibs_F77=no
12932       ;;
12933
12934     beos*)
12935       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12936         allow_undefined_flag_F77=unsupported
12937         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12938         # support --undefined.  This deserves some investigation.  FIXME
12939         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12940       else
12941         ld_shlibs_F77=no
12942       fi
12943       ;;
12944
12945     cygwin* | mingw* | pw32*)
12946       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12947       # as there is no search path for DLLs.
12948       hardcode_libdir_flag_spec_F77='-L$libdir'
12949       allow_undefined_flag_F77=unsupported
12950       always_export_symbols_F77=no
12951       enable_shared_with_static_runtimes_F77=yes
12952       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12953
12954       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12955         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12956         # If the export-symbols file already is a .def file (1st line
12957         # is EXPORTS), use it as is; otherwise, prepend...
12958         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12959           cp $export_symbols $output_objdir/$soname.def;
12960         else
12961           echo EXPORTS > $output_objdir/$soname.def;
12962           cat $export_symbols >> $output_objdir/$soname.def;
12963         fi~
12964         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12965       else
12966         ld_shlibs=no
12967       fi
12968       ;;
12969
12970     netbsd*)
12971       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12972         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12973         wlarc=
12974       else
12975         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12976         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12977       fi
12978       ;;
12979
12980     solaris* | sysv5*)
12981       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12982         ld_shlibs_F77=no
12983         cat <<EOF 1>&2
12984
12985 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12986 *** create shared libraries on Solaris systems.  Therefore, libtool
12987 *** is disabling shared libraries support.  We urge you to upgrade GNU
12988 *** binutils to release 2.9.1 or newer.  Another option is to modify
12989 *** your PATH or compiler configuration so that the native linker is
12990 *** used, and then restart.
12991
12992 EOF
12993       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12994         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12995         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12996       else
12997         ld_shlibs_F77=no
12998       fi
12999       ;;
13000
13001     sunos4*)
13002       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13003       wlarc=
13004       hardcode_direct_F77=yes
13005       hardcode_shlibpath_var_F77=no
13006       ;;
13007
13008     *)
13009       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13010         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13011         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13012       else
13013         ld_shlibs_F77=no
13014       fi
13015       ;;
13016     esac
13017
13018     if test "$ld_shlibs_F77" = yes; then
13019       runpath_var=LD_RUN_PATH
13020       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13021       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13022       # ancient GNU ld didn't support --whole-archive et. al.
13023       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13024         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13025       else
13026         whole_archive_flag_spec_F77=
13027       fi
13028     fi
13029   else
13030     # PORTME fill in a description of your system's linker (not GNU ld)
13031     case $host_os in
13032     aix3*)
13033       allow_undefined_flag_F77=unsupported
13034       always_export_symbols_F77=yes
13035       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'
13036       # Note: this linker hardcodes the directories in LIBPATH if there
13037       # are no directories specified by -L.
13038       hardcode_minus_L_F77=yes
13039       if test "$GCC" = yes && test -z "$link_static_flag"; then
13040         # Neither direct hardcoding nor static linking is supported with a
13041         # broken collect2.
13042         hardcode_direct_F77=unsupported
13043       fi
13044       ;;
13045
13046     aix4* | aix5*)
13047       if test "$host_cpu" = ia64; then
13048         # On IA64, the linker does run time linking by default, so we don't
13049         # have to do anything special.
13050         aix_use_runtimelinking=no
13051         exp_sym_flag='-Bexport'
13052         no_entry_flag=""
13053       else
13054         # If we're using GNU nm, then we don't want the "-C" option.
13055         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13056         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13057           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'
13058         else
13059           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'
13060         fi
13061         aix_use_runtimelinking=no
13062
13063         # Test if we are trying to use run time linking or normal
13064         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13065         # need to do runtime linking.
13066         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13067           for ld_flag in $LDFLAGS; do
13068           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13069             aix_use_runtimelinking=yes
13070             break
13071           fi
13072           done
13073         esac
13074
13075         exp_sym_flag='-bexport'
13076         no_entry_flag='-bnoentry'
13077       fi
13078
13079       # When large executables or shared objects are built, AIX ld can
13080       # have problems creating the table of contents.  If linking a library
13081       # or program results in "error TOC overflow" add -mminimal-toc to
13082       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13083       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13084
13085       archive_cmds_F77=''
13086       hardcode_direct_F77=yes
13087       hardcode_libdir_separator_F77=':'
13088       link_all_deplibs_F77=yes
13089
13090       if test "$GCC" = yes; then
13091         case $host_os in aix4.012|aix4.012.*)
13092         # We only want to do this on AIX 4.2 and lower, the check
13093         # below for broken collect2 doesn't work under 4.3+
13094           collect2name=`${CC} -print-prog-name=collect2`
13095           if test -f "$collect2name" && \
13096            strings "$collect2name" | grep resolve_lib_name >/dev/null
13097           then
13098           # We have reworked collect2
13099           hardcode_direct_F77=yes
13100           else
13101           # We have old collect2
13102           hardcode_direct_F77=unsupported
13103           # It fails to find uninstalled libraries when the uninstalled
13104           # path is not listed in the libpath.  Setting hardcode_minus_L
13105           # to unsupported forces relinking
13106           hardcode_minus_L_F77=yes
13107           hardcode_libdir_flag_spec_F77='-L$libdir'
13108           hardcode_libdir_separator_F77=
13109           fi
13110         esac
13111         shared_flag='-shared'
13112       else
13113         # not using gcc
13114         if test "$host_cpu" = ia64; then
13115         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13116         # chokes on -Wl,-G. The following line is correct:
13117           shared_flag='-G'
13118         else
13119         if test "$aix_use_runtimelinking" = yes; then
13120             shared_flag='${wl}-G'
13121           else
13122             shared_flag='${wl}-bM:SRE'
13123         fi
13124         fi
13125       fi
13126
13127       # It seems that -bexpall does not export symbols beginning with
13128       # underscore (_), so it is better to generate a list of symbols to export.
13129       always_export_symbols_F77=yes
13130       if test "$aix_use_runtimelinking" = yes; then
13131         # Warning - without using the other runtime loading flags (-brtl),
13132         # -berok will link without error, but may produce a broken library.
13133         allow_undefined_flag_F77='-berok'
13134        # Determine the default libpath from the value encoded in an empty executable.
13135        cat >conftest.$ac_ext <<_ACEOF
13136       program main
13137
13138       end
13139 _ACEOF
13140 rm -f conftest.$ac_objext conftest$ac_exeext
13141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13142   (eval $ac_link) 2>&5
13143   ac_status=$?
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); } &&
13146          { ac_try='test -s conftest$ac_exeext'
13147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148   (eval $ac_try) 2>&5
13149   ac_status=$?
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); }; }; then
13152
13153 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13154 }'`
13155 # Check for a 64-bit object if we didn't find anything.
13156 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; }
13157 }'`; fi
13158 else
13159   echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13161
13162 fi
13163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13164 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13165
13166        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13167         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"
13168        else
13169         if test "$host_cpu" = ia64; then
13170           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13171           allow_undefined_flag_F77="-z nodefs"
13172           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"
13173         else
13174          # Determine the default libpath from the value encoded in an empty executable.
13175          cat >conftest.$ac_ext <<_ACEOF
13176       program main
13177
13178       end
13179 _ACEOF
13180 rm -f conftest.$ac_objext conftest$ac_exeext
13181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13182   (eval $ac_link) 2>&5
13183   ac_status=$?
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); } &&
13186          { ac_try='test -s conftest$ac_exeext'
13187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188   (eval $ac_try) 2>&5
13189   ac_status=$?
13190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191   (exit $ac_status); }; }; then
13192
13193 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13194 }'`
13195 # Check for a 64-bit object if we didn't find anything.
13196 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; }
13197 }'`; fi
13198 else
13199   echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.$ac_ext >&5
13201
13202 fi
13203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13205
13206          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13207           # Warning - without using the other run time loading flags,
13208           # -berok will link without error, but may produce a broken library.
13209           no_undefined_flag_F77=' ${wl}-bernotok'
13210           allow_undefined_flag_F77=' ${wl}-berok'
13211           # -bexpall does not export symbols beginning with underscore (_)
13212           always_export_symbols_F77=yes
13213           # Exported symbols can be pulled into shared objects from archives
13214           whole_archive_flag_spec_F77=' '
13215           archive_cmds_need_lc_F77=yes
13216           # This is similar to how AIX traditionally builds it's shared libraries.
13217           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'
13218         fi
13219       fi
13220       ;;
13221
13222     amigaos*)
13223       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)'
13224       hardcode_libdir_flag_spec_F77='-L$libdir'
13225       hardcode_minus_L_F77=yes
13226       # see comment about different semantics on the GNU ld section
13227       ld_shlibs_F77=no
13228       ;;
13229
13230     bsdi4*)
13231       export_dynamic_flag_spec_F77=-rdynamic
13232       ;;
13233
13234     cygwin* | mingw* | pw32*)
13235       # When not using gcc, we currently assume that we are using
13236       # Microsoft Visual C++.
13237       # hardcode_libdir_flag_spec is actually meaningless, as there is
13238       # no search path for DLLs.
13239       hardcode_libdir_flag_spec_F77=' '
13240       allow_undefined_flag_F77=unsupported
13241       # Tell ltmain to make .lib files, not .a files.
13242       libext=lib
13243       # Tell ltmain to make .dll files, not .so files.
13244       shrext=".dll"
13245       # FIXME: Setting linknames here is a bad hack.
13246       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13247       # The linker will automatically build a .lib file if we build a DLL.
13248       old_archive_From_new_cmds_F77='true'
13249       # FIXME: Should let the user specify the lib program.
13250       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13251       fix_srcfile_path='`cygpath -w "$srcfile"`'
13252       enable_shared_with_static_runtimes_F77=yes
13253       ;;
13254
13255     darwin* | rhapsody*)
13256     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13257       archive_cmds_need_lc_F77=no
13258       case "$host_os" in
13259       rhapsody* | darwin1.[012])
13260         allow_undefined_flag_F77='-undefined suppress'
13261         ;;
13262       *) # Darwin 1.3 on
13263         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13264         ;;
13265       esac
13266       # FIXME: Relying on posixy $() will cause problems for
13267       #        cross-compilation, but unfortunately the echo tests do not
13268       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13269       #        `"' quotes if we put them in here... so don't!
13270         lt_int_apple_cc_single_mod=no
13271         output_verbose_link_cmd='echo'
13272         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13273           lt_int_apple_cc_single_mod=yes
13274         fi
13275         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13276           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13277         else
13278         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13279       fi
13280       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13281       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13282         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13283           archive_expsym_cmds_F77='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}'
13284         else
13285           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13286         fi
13287           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13288       hardcode_direct_F77=no
13289       hardcode_automatic_F77=yes
13290       hardcode_shlibpath_var_F77=unsupported
13291       whole_archive_flag_spec_F77='-all_load $convenience'
13292       link_all_deplibs_F77=yes
13293     fi
13294       ;;
13295
13296     dgux*)
13297       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13298       hardcode_libdir_flag_spec_F77='-L$libdir'
13299       hardcode_shlibpath_var_F77=no
13300       ;;
13301
13302     freebsd1*)
13303       ld_shlibs_F77=no
13304       ;;
13305
13306     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13307     # support.  Future versions do this automatically, but an explicit c++rt0.o
13308     # does not break anything, and helps significantly (at the cost of a little
13309     # extra space).
13310     freebsd2.2*)
13311       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13312       hardcode_libdir_flag_spec_F77='-R$libdir'
13313       hardcode_direct_F77=yes
13314       hardcode_shlibpath_var_F77=no
13315       ;;
13316
13317     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13318     freebsd2*)
13319       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13320       hardcode_direct_F77=yes
13321       hardcode_minus_L_F77=yes
13322       hardcode_shlibpath_var_F77=no
13323       ;;
13324
13325     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13326     freebsd*)
13327       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13328       hardcode_libdir_flag_spec_F77='-R$libdir'
13329       hardcode_direct_F77=yes
13330       hardcode_shlibpath_var_F77=no
13331       ;;
13332
13333     hpux9*)
13334       if test "$GCC" = yes; then
13335         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'
13336       else
13337         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'
13338       fi
13339       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13340       hardcode_libdir_separator_F77=:
13341       hardcode_direct_F77=yes
13342
13343       # hardcode_minus_L: Not really in the search PATH,
13344       # but as the default location of the library.
13345       hardcode_minus_L_F77=yes
13346       export_dynamic_flag_spec_F77='${wl}-E'
13347       ;;
13348
13349     hpux10* | hpux11*)
13350       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13351         case "$host_cpu" in
13352         hppa*64*|ia64*)
13353           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13354           ;;
13355         *)
13356           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13357           ;;
13358         esac
13359       else
13360         case "$host_cpu" in
13361         hppa*64*|ia64*)
13362           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13363           ;;
13364         *)
13365           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13366           ;;
13367         esac
13368       fi
13369       if test "$with_gnu_ld" = no; then
13370         case "$host_cpu" in
13371         hppa*64*)
13372           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13373           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13374           hardcode_libdir_separator_F77=:
13375           hardcode_direct_F77=no
13376           hardcode_shlibpath_var_F77=no
13377           ;;
13378         ia64*)
13379           hardcode_libdir_flag_spec_F77='-L$libdir'
13380           hardcode_direct_F77=no
13381           hardcode_shlibpath_var_F77=no
13382
13383           # hardcode_minus_L: Not really in the search PATH,
13384           # but as the default location of the library.
13385           hardcode_minus_L_F77=yes
13386           ;;
13387         *)
13388           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13389           hardcode_libdir_separator_F77=:
13390           hardcode_direct_F77=yes
13391           export_dynamic_flag_spec_F77='${wl}-E'
13392
13393           # hardcode_minus_L: Not really in the search PATH,
13394           # but as the default location of the library.
13395           hardcode_minus_L_F77=yes
13396           ;;
13397         esac
13398       fi
13399       ;;
13400
13401     irix5* | irix6* | nonstopux*)
13402       if test "$GCC" = yes; then
13403         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'
13404       else
13405         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'
13406         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13407       fi
13408       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13409       hardcode_libdir_separator_F77=:
13410       link_all_deplibs_F77=yes
13411       ;;
13412
13413     netbsd*)
13414       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13415         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13416       else
13417         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13418       fi
13419       hardcode_libdir_flag_spec_F77='-R$libdir'
13420       hardcode_direct_F77=yes
13421       hardcode_shlibpath_var_F77=no
13422       ;;
13423
13424     newsos6)
13425       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13426       hardcode_direct_F77=yes
13427       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13428       hardcode_libdir_separator_F77=:
13429       hardcode_shlibpath_var_F77=no
13430       ;;
13431
13432     openbsd*)
13433       hardcode_direct_F77=yes
13434       hardcode_shlibpath_var_F77=no
13435       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13436         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13437         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13438         export_dynamic_flag_spec_F77='${wl}-E'
13439       else
13440        case $host_os in
13441          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13442            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13443            hardcode_libdir_flag_spec_F77='-R$libdir'
13444            ;;
13445          *)
13446            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13447            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13448            ;;
13449        esac
13450       fi
13451       ;;
13452
13453     os2*)
13454       hardcode_libdir_flag_spec_F77='-L$libdir'
13455       hardcode_minus_L_F77=yes
13456       allow_undefined_flag_F77=unsupported
13457       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'
13458       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13459       ;;
13460
13461     osf3*)
13462       if test "$GCC" = yes; then
13463         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13464         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'
13465       else
13466         allow_undefined_flag_F77=' -expect_unresolved \*'
13467         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'
13468       fi
13469       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13470       hardcode_libdir_separator_F77=:
13471       ;;
13472
13473     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13474       if test "$GCC" = yes; then
13475         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13476         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'
13477         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13478       else
13479         allow_undefined_flag_F77=' -expect_unresolved \*'
13480         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'
13481         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~
13482         $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'
13483
13484         # Both c and cxx compiler support -rpath directly
13485         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13486       fi
13487       hardcode_libdir_separator_F77=:
13488       ;;
13489
13490     sco3.2v5*)
13491       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13492       hardcode_shlibpath_var_F77=no
13493       export_dynamic_flag_spec_F77='${wl}-Bexport'
13494       runpath_var=LD_RUN_PATH
13495       hardcode_runpath_var=yes
13496       ;;
13497
13498     solaris*)
13499       no_undefined_flag_F77=' -z text'
13500       if test "$GCC" = yes; then
13501         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13502         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13503           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13504       else
13505         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13506         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13507         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13508       fi
13509       hardcode_libdir_flag_spec_F77='-R$libdir'
13510       hardcode_shlibpath_var_F77=no
13511       case $host_os in
13512       solaris2.[0-5] | solaris2.[0-5].*) ;;
13513       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13514         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13515       esac
13516       link_all_deplibs_F77=yes
13517       ;;
13518
13519     sunos4*)
13520       if test "x$host_vendor" = xsequent; then
13521         # Use $CC to link under sequent, because it throws in some extra .o
13522         # files that make .init and .fini sections work.
13523         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13524       else
13525         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13526       fi
13527       hardcode_libdir_flag_spec_F77='-L$libdir'
13528       hardcode_direct_F77=yes
13529       hardcode_minus_L_F77=yes
13530       hardcode_shlibpath_var_F77=no
13531       ;;
13532
13533     sysv4)
13534       case $host_vendor in
13535         sni)
13536           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13537           hardcode_direct_F77=yes # is this really true???
13538         ;;
13539         siemens)
13540           ## LD is ld it makes a PLAMLIB
13541           ## CC just makes a GrossModule.
13542           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13543           reload_cmds_F77='$CC -r -o $output$reload_objs'
13544           hardcode_direct_F77=no
13545         ;;
13546         motorola)
13547           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13548           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13549         ;;
13550       esac
13551       runpath_var='LD_RUN_PATH'
13552       hardcode_shlibpath_var_F77=no
13553       ;;
13554
13555     sysv4.3*)
13556       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13557       hardcode_shlibpath_var_F77=no
13558       export_dynamic_flag_spec_F77='-Bexport'
13559       ;;
13560
13561     sysv4*MP*)
13562       if test -d /usr/nec; then
13563         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13564         hardcode_shlibpath_var_F77=no
13565         runpath_var=LD_RUN_PATH
13566         hardcode_runpath_var=yes
13567         ld_shlibs_F77=yes
13568       fi
13569       ;;
13570
13571     sysv4.2uw2*)
13572       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13573       hardcode_direct_F77=yes
13574       hardcode_minus_L_F77=no
13575       hardcode_shlibpath_var_F77=no
13576       hardcode_runpath_var=yes
13577       runpath_var=LD_RUN_PATH
13578       ;;
13579
13580    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13581       no_undefined_flag_F77='${wl}-z ${wl}text'
13582       if test "$GCC" = yes; then
13583         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13584       else
13585         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13586       fi
13587       runpath_var='LD_RUN_PATH'
13588       hardcode_shlibpath_var_F77=no
13589       ;;
13590
13591     sysv5*)
13592       no_undefined_flag_F77=' -z text'
13593       # $CC -shared without GNU ld will not create a library from C++
13594       # object files and a static libstdc++, better avoid it by now
13595       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13596       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13597                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13598       hardcode_libdir_flag_spec_F77=
13599       hardcode_shlibpath_var_F77=no
13600       runpath_var='LD_RUN_PATH'
13601       ;;
13602
13603     uts4*)
13604       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13605       hardcode_libdir_flag_spec_F77='-L$libdir'
13606       hardcode_shlibpath_var_F77=no
13607       ;;
13608
13609     *)
13610       ld_shlibs_F77=no
13611       ;;
13612     esac
13613   fi
13614
13615 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13616 echo "${ECHO_T}$ld_shlibs_F77" >&6
13617 test "$ld_shlibs_F77" = no && can_build_shared=no
13618
13619 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13620 if test "$GCC" = yes; then
13621   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13622 fi
13623
13624 #
13625 # Do we need to explicitly link libc?
13626 #
13627 case "x$archive_cmds_need_lc_F77" in
13628 x|xyes)
13629   # Assume -lc should be added
13630   archive_cmds_need_lc_F77=yes
13631
13632   if test "$enable_shared" = yes && test "$GCC" = yes; then
13633     case $archive_cmds_F77 in
13634     *'~'*)
13635       # FIXME: we may have to deal with multi-command sequences.
13636       ;;
13637     '$CC '*)
13638       # Test whether the compiler implicitly links with -lc since on some
13639       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13640       # to ld, don't add -lc before -lgcc.
13641       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13642 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13643       $rm conftest*
13644       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13645
13646       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13647   (eval $ac_compile) 2>&5
13648   ac_status=$?
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); } 2>conftest.err; then
13651         soname=conftest
13652         lib=conftest
13653         libobjs=conftest.$ac_objext
13654         deplibs=
13655         wl=$lt_prog_compiler_wl_F77
13656         compiler_flags=-v
13657         linker_flags=-v
13658         verstring=
13659         output_objdir=.
13660         libname=conftest
13661         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13662         allow_undefined_flag_F77=
13663         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13664   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13665   ac_status=$?
13666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667   (exit $ac_status); }
13668         then
13669           archive_cmds_need_lc_F77=no
13670         else
13671           archive_cmds_need_lc_F77=yes
13672         fi
13673         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13674       else
13675         cat conftest.err 1>&5
13676       fi
13677       $rm conftest*
13678       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13679 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13680       ;;
13681     esac
13682   fi
13683   ;;
13684 esac
13685
13686 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13687 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13688 hardcode_action_F77=
13689 if test -n "$hardcode_libdir_flag_spec_F77" || \
13690    test -n "$runpath_var F77" || \
13691    test "X$hardcode_automatic_F77"="Xyes" ; then
13692
13693   # We can hardcode non-existant directories.
13694   if test "$hardcode_direct_F77" != no &&
13695      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13696      # have to relink, otherwise we might link with an installed library
13697      # when we should be linking with a yet-to-be-installed one
13698      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13699      test "$hardcode_minus_L_F77" != no; then
13700     # Linking always hardcodes the temporary library directory.
13701     hardcode_action_F77=relink
13702   else
13703     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13704     hardcode_action_F77=immediate
13705   fi
13706 else
13707   # We cannot hardcode anything, or else we can only hardcode existing
13708   # directories.
13709   hardcode_action_F77=unsupported
13710 fi
13711 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13712 echo "${ECHO_T}$hardcode_action_F77" >&6
13713
13714 if test "$hardcode_action_F77" = relink; then
13715   # Fast installation is not supported
13716   enable_fast_install=no
13717 elif test "$shlibpath_overrides_runpath" = yes ||
13718      test "$enable_shared" = no; then
13719   # Fast installation is not necessary
13720   enable_fast_install=needless
13721 fi
13722
13723 striplib=
13724 old_striplib=
13725 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13726 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13727 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13728   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13729   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13730   echo "$as_me:$LINENO: result: yes" >&5
13731 echo "${ECHO_T}yes" >&6
13732 else
13733 # FIXME - insert some real tests, host_os isn't really good enough
13734   case $host_os in
13735    darwin*)
13736        if test -n "$STRIP" ; then
13737          striplib="$STRIP -x"
13738          echo "$as_me:$LINENO: result: yes" >&5
13739 echo "${ECHO_T}yes" >&6
13740        else
13741   echo "$as_me:$LINENO: result: no" >&5
13742 echo "${ECHO_T}no" >&6
13743 fi
13744        ;;
13745    *)
13746   echo "$as_me:$LINENO: result: no" >&5
13747 echo "${ECHO_T}no" >&6
13748     ;;
13749   esac
13750 fi
13751
13752 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13753 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13754 library_names_spec=
13755 libname_spec='lib$name'
13756 soname_spec=
13757 shrext=".so"
13758 postinstall_cmds=
13759 postuninstall_cmds=
13760 finish_cmds=
13761 finish_eval=
13762 shlibpath_var=
13763 shlibpath_overrides_runpath=unknown
13764 version_type=none
13765 dynamic_linker="$host_os ld.so"
13766 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13767 if test "$GCC" = yes; then
13768   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13769   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13770     # if the path contains ";" then we assume it to be the separator
13771     # otherwise default to the standard path separator (i.e. ":") - it is
13772     # assumed that no part of a normal pathname contains ";" but that should
13773     # okay in the real world where ";" in dirpaths is itself problematic.
13774     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13775   else
13776     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13777   fi
13778 else
13779   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13780 fi
13781 need_lib_prefix=unknown
13782 hardcode_into_libs=no
13783
13784 # when you set need_version to no, make sure it does not cause -set_version
13785 # flags to be left without arguments
13786 need_version=unknown
13787
13788 case $host_os in
13789 aix3*)
13790   version_type=linux
13791   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13792   shlibpath_var=LIBPATH
13793
13794   # AIX 3 has no versioning support, so we append a major version to the name.
13795   soname_spec='${libname}${release}${shared_ext}$major'
13796   ;;
13797
13798 aix4* | aix5*)
13799   version_type=linux
13800   need_lib_prefix=no
13801   need_version=no
13802   hardcode_into_libs=yes
13803   if test "$host_cpu" = ia64; then
13804     # AIX 5 supports IA64
13805     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13806     shlibpath_var=LD_LIBRARY_PATH
13807   else
13808     # With GCC up to 2.95.x, collect2 would create an import file
13809     # for dependence libraries.  The import file would start with
13810     # the line `#! .'.  This would cause the generated library to
13811     # depend on `.', always an invalid library.  This was fixed in
13812     # development snapshots of GCC prior to 3.0.
13813     case $host_os in
13814       aix4 | aix4.[01] | aix4.[01].*)
13815       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13816            echo ' yes '
13817            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13818         :
13819       else
13820         can_build_shared=no
13821       fi
13822       ;;
13823     esac
13824     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13825     # soname into executable. Probably we can add versioning support to
13826     # collect2, so additional links can be useful in future.
13827     if test "$aix_use_runtimelinking" = yes; then
13828       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13829       # instead of lib<name>.a to let people know that these are not
13830       # typical AIX shared libraries.
13831       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13832     else
13833       # We preserve .a as extension for shared libraries through AIX4.2
13834       # and later when we are not doing run time linking.
13835       library_names_spec='${libname}${release}.a $libname.a'
13836       soname_spec='${libname}${release}${shared_ext}$major'
13837     fi
13838     shlibpath_var=LIBPATH
13839   fi
13840   ;;
13841
13842 amigaos*)
13843   library_names_spec='$libname.ixlibrary $libname.a'
13844   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13845   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'
13846   ;;
13847
13848 beos*)
13849   library_names_spec='${libname}${shared_ext}'
13850   dynamic_linker="$host_os ld.so"
13851   shlibpath_var=LIBRARY_PATH
13852   ;;
13853
13854 bsdi4*)
13855   version_type=linux
13856   need_version=no
13857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13858   soname_spec='${libname}${release}${shared_ext}$major'
13859   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13860   shlibpath_var=LD_LIBRARY_PATH
13861   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13862   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13863   # the default ld.so.conf also contains /usr/contrib/lib and
13864   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13865   # libtool to hard-code these into programs
13866   ;;
13867
13868 cygwin* | mingw* | pw32*)
13869   version_type=windows
13870   shrext=".dll"
13871   need_version=no
13872   need_lib_prefix=no
13873
13874   case $GCC,$host_os in
13875   yes,cygwin* | yes,mingw* | yes,pw32*)
13876     library_names_spec='$libname.dll.a'
13877     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13878     postinstall_cmds='base_file=`basename \${file}`~
13879       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13880       dldir=$destdir/`dirname \$dlpath`~
13881       test -d \$dldir || mkdir -p \$dldir~
13882       $install_prog $dir/$dlname \$dldir/$dlname'
13883     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13884       dlpath=$dir/\$dldll~
13885        $rm \$dlpath'
13886     shlibpath_overrides_runpath=yes
13887
13888     case $host_os in
13889     cygwin*)
13890       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13891       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13892       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13893       ;;
13894     mingw*)
13895       # MinGW DLLs use traditional 'lib' prefix
13896       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13897       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13898       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13899         # It is most probably a Windows format PATH printed by
13900         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13901         # path with ; separators, and with drive letters. We can handle the
13902         # drive letters (cygwin fileutils understands them), so leave them,
13903         # especially as we might pass files found there to a mingw objdump,
13904         # which wouldn't understand a cygwinified path. Ahh.
13905         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13906       else
13907         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13908       fi
13909       ;;
13910     pw32*)
13911       # pw32 DLLs use 'pw' prefix rather than 'lib'
13912       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13913       ;;
13914     esac
13915     ;;
13916
13917   *)
13918     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13919     ;;
13920   esac
13921   dynamic_linker='Win32 ld.exe'
13922   # FIXME: first we should search . and the directory the executable is in
13923   shlibpath_var=PATH
13924   ;;
13925
13926 darwin* | rhapsody*)
13927   dynamic_linker="$host_os dyld"
13928   version_type=darwin
13929   need_lib_prefix=no
13930   need_version=no
13931   # FIXME: Relying on posixy $() will cause problems for
13932   #        cross-compilation, but unfortunately the echo tests do not
13933   #        yet detect zsh echo's removal of \ escapes.
13934   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13935   soname_spec='${libname}${release}${major}$shared_ext'
13936   shlibpath_overrides_runpath=yes
13937   shlibpath_var=DYLD_LIBRARY_PATH
13938   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13939   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13940   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13941   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"`
13942   fi
13943   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13944   ;;
13945
13946 dgux*)
13947   version_type=linux
13948   need_lib_prefix=no
13949   need_version=no
13950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13951   soname_spec='${libname}${release}${shared_ext}$major'
13952   shlibpath_var=LD_LIBRARY_PATH
13953   ;;
13954
13955 freebsd1*)
13956   dynamic_linker=no
13957   ;;
13958
13959 freebsd*)
13960   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13961   version_type=freebsd-$objformat
13962   case $version_type in
13963     freebsd-elf*)
13964       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13965       need_version=no
13966       need_lib_prefix=no
13967       ;;
13968     freebsd-*)
13969       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13970       need_version=yes
13971       ;;
13972   esac
13973   shlibpath_var=LD_LIBRARY_PATH
13974   case $host_os in
13975   freebsd2*)
13976     shlibpath_overrides_runpath=yes
13977     ;;
13978   freebsd3.01* | freebsdelf3.01*)
13979     shlibpath_overrides_runpath=yes
13980     hardcode_into_libs=yes
13981     ;;
13982   *) # from 3.2 on
13983     shlibpath_overrides_runpath=no
13984     hardcode_into_libs=yes
13985     ;;
13986   esac
13987   ;;
13988
13989 gnu*)
13990   version_type=linux
13991   need_lib_prefix=no
13992   need_version=no
13993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13994   soname_spec='${libname}${release}${shared_ext}$major'
13995   shlibpath_var=LD_LIBRARY_PATH
13996   hardcode_into_libs=yes
13997   ;;
13998
13999 hpux9* | hpux10* | hpux11*)
14000   # Give a soname corresponding to the major version so that dld.sl refuses to
14001   # link against other versions.
14002   version_type=sunos
14003   need_lib_prefix=no
14004   need_version=no
14005   case "$host_cpu" in
14006   ia64*)
14007     shrext='.so'
14008     hardcode_into_libs=yes
14009     dynamic_linker="$host_os dld.so"
14010     shlibpath_var=LD_LIBRARY_PATH
14011     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14012     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14013     soname_spec='${libname}${release}${shared_ext}$major'
14014     if test "X$HPUX_IA64_MODE" = X32; then
14015       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14016     else
14017       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14018     fi
14019     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14020     ;;
14021    hppa*64*)
14022      shrext='.sl'
14023      hardcode_into_libs=yes
14024      dynamic_linker="$host_os dld.sl"
14025      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14026      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14027      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14028      soname_spec='${libname}${release}${shared_ext}$major'
14029      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14030      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14031      ;;
14032    *)
14033     shrext='.sl'
14034     dynamic_linker="$host_os dld.sl"
14035     shlibpath_var=SHLIB_PATH
14036     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14037     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14038     soname_spec='${libname}${release}${shared_ext}$major'
14039     ;;
14040   esac
14041   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14042   postinstall_cmds='chmod 555 $lib'
14043   ;;
14044
14045 irix5* | irix6* | nonstopux*)
14046   case $host_os in
14047     nonstopux*) version_type=nonstopux ;;
14048     *)
14049         if test "$lt_cv_prog_gnu_ld" = yes; then
14050                 version_type=linux
14051         else
14052                 version_type=irix
14053         fi ;;
14054   esac
14055   need_lib_prefix=no
14056   need_version=no
14057   soname_spec='${libname}${release}${shared_ext}$major'
14058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14059   case $host_os in
14060   irix5* | nonstopux*)
14061     libsuff= shlibsuff=
14062     ;;
14063   *)
14064     case $LD in # libtool.m4 will add one of these switches to LD
14065     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14066       libsuff= shlibsuff= libmagic=32-bit;;
14067     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14068       libsuff=32 shlibsuff=N32 libmagic=N32;;
14069     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14070       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14071     *) libsuff= shlibsuff= libmagic=never-match;;
14072     esac
14073     ;;
14074   esac
14075   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14076   shlibpath_overrides_runpath=no
14077   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14078   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14079   hardcode_into_libs=yes
14080   ;;
14081
14082 # No shared lib support for Linux oldld, aout, or coff.
14083 linux*oldld* | linux*aout* | linux*coff*)
14084   dynamic_linker=no
14085   ;;
14086
14087 # This must be Linux ELF.
14088 linux*)
14089   version_type=linux
14090   need_lib_prefix=no
14091   need_version=no
14092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14093   soname_spec='${libname}${release}${shared_ext}$major'
14094   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14095   shlibpath_var=LD_LIBRARY_PATH
14096   shlibpath_overrides_runpath=no
14097   # This implies no fast_install, which is unacceptable.
14098   # Some rework will be needed to allow for fast_install
14099   # before this can be enabled.
14100   hardcode_into_libs=yes
14101
14102   # We used to test for /lib/ld.so.1 and disable shared libraries on
14103   # powerpc, because MkLinux only supported shared libraries with the
14104   # GNU dynamic linker.  Since this was broken with cross compilers,
14105   # most powerpc-linux boxes support dynamic linking these days and
14106   # people can always --disable-shared, the test was removed, and we
14107   # assume the GNU/Linux dynamic linker is in use.
14108   dynamic_linker='GNU/Linux ld.so'
14109   ;;
14110
14111 netbsd*)
14112   version_type=sunos
14113   need_lib_prefix=no
14114   need_version=no
14115   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14117     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14118     dynamic_linker='NetBSD (a.out) ld.so'
14119   else
14120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14121     soname_spec='${libname}${release}${shared_ext}$major'
14122     dynamic_linker='NetBSD ld.elf_so'
14123   fi
14124   shlibpath_var=LD_LIBRARY_PATH
14125   shlibpath_overrides_runpath=yes
14126   hardcode_into_libs=yes
14127   ;;
14128
14129 newsos6)
14130   version_type=linux
14131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132   shlibpath_var=LD_LIBRARY_PATH
14133   shlibpath_overrides_runpath=yes
14134   ;;
14135
14136 nto-qnx)
14137   version_type=linux
14138   need_lib_prefix=no
14139   need_version=no
14140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14141   soname_spec='${libname}${release}${shared_ext}$major'
14142   shlibpath_var=LD_LIBRARY_PATH
14143   shlibpath_overrides_runpath=yes
14144   ;;
14145
14146 openbsd*)
14147   version_type=sunos
14148   need_lib_prefix=no
14149   need_version=no
14150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14151   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14152   shlibpath_var=LD_LIBRARY_PATH
14153   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14154     case $host_os in
14155       openbsd2.[89] | openbsd2.[89].*)
14156         shlibpath_overrides_runpath=no
14157         ;;
14158       *)
14159         shlibpath_overrides_runpath=yes
14160         ;;
14161       esac
14162   else
14163     shlibpath_overrides_runpath=yes
14164   fi
14165   ;;
14166
14167 os2*)
14168   libname_spec='$name'
14169   shrext=".dll"
14170   need_lib_prefix=no
14171   library_names_spec='$libname${shared_ext} $libname.a'
14172   dynamic_linker='OS/2 ld.exe'
14173   shlibpath_var=LIBPATH
14174   ;;
14175
14176 osf3* | osf4* | osf5*)
14177   version_type=osf
14178   need_lib_prefix=no
14179   need_version=no
14180   soname_spec='${libname}${release}${shared_ext}$major'
14181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14182   shlibpath_var=LD_LIBRARY_PATH
14183   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14184   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14185   ;;
14186
14187 sco3.2v5*)
14188   version_type=osf
14189   soname_spec='${libname}${release}${shared_ext}$major'
14190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14191   shlibpath_var=LD_LIBRARY_PATH
14192   ;;
14193
14194 solaris*)
14195   version_type=linux
14196   need_lib_prefix=no
14197   need_version=no
14198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14199   soname_spec='${libname}${release}${shared_ext}$major'
14200   shlibpath_var=LD_LIBRARY_PATH
14201   shlibpath_overrides_runpath=yes
14202   hardcode_into_libs=yes
14203   # ldd complains unless libraries are executable
14204   postinstall_cmds='chmod +x $lib'
14205   ;;
14206
14207 sunos4*)
14208   version_type=sunos
14209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14210   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14211   shlibpath_var=LD_LIBRARY_PATH
14212   shlibpath_overrides_runpath=yes
14213   if test "$with_gnu_ld" = yes; then
14214     need_lib_prefix=no
14215   fi
14216   need_version=yes
14217   ;;
14218
14219 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14220   version_type=linux
14221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14222   soname_spec='${libname}${release}${shared_ext}$major'
14223   shlibpath_var=LD_LIBRARY_PATH
14224   case $host_vendor in
14225     sni)
14226       shlibpath_overrides_runpath=no
14227       need_lib_prefix=no
14228       export_dynamic_flag_spec='${wl}-Blargedynsym'
14229       runpath_var=LD_RUN_PATH
14230       ;;
14231     siemens)
14232       need_lib_prefix=no
14233       ;;
14234     motorola)
14235       need_lib_prefix=no
14236       need_version=no
14237       shlibpath_overrides_runpath=no
14238       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14239       ;;
14240   esac
14241   ;;
14242
14243 sysv4*MP*)
14244   if test -d /usr/nec ;then
14245     version_type=linux
14246     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14247     soname_spec='$libname${shared_ext}.$major'
14248     shlibpath_var=LD_LIBRARY_PATH
14249   fi
14250   ;;
14251
14252 uts4*)
14253   version_type=linux
14254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14255   soname_spec='${libname}${release}${shared_ext}$major'
14256   shlibpath_var=LD_LIBRARY_PATH
14257   ;;
14258
14259 *)
14260   dynamic_linker=no
14261   ;;
14262 esac
14263 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14264 echo "${ECHO_T}$dynamic_linker" >&6
14265 test "$dynamic_linker" = no && can_build_shared=no
14266
14267
14268 # The else clause should only fire when bootstrapping the
14269 # libtool distribution, otherwise you forgot to ship ltmain.sh
14270 # with your package, and you will get complaints that there are
14271 # no rules to generate ltmain.sh.
14272 if test -f "$ltmain"; then
14273   # See if we are running on zsh, and set the options which allow our commands through
14274   # without removal of \ escapes.
14275   if test -n "${ZSH_VERSION+set}" ; then
14276     setopt NO_GLOB_SUBST
14277   fi
14278   # Now quote all the things that may contain metacharacters while being
14279   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14280   # variables and quote the copies for generation of the libtool script.
14281   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14282     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14283     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14284     deplibs_check_method reload_flag reload_cmds need_locks \
14285     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14286     lt_cv_sys_global_symbol_to_c_name_address \
14287     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14288     old_postinstall_cmds old_postuninstall_cmds \
14289     compiler_F77 \
14290     CC_F77 \
14291     LD_F77 \
14292     lt_prog_compiler_wl_F77 \
14293     lt_prog_compiler_pic_F77 \
14294     lt_prog_compiler_static_F77 \
14295     lt_prog_compiler_no_builtin_flag_F77 \
14296     export_dynamic_flag_spec_F77 \
14297     thread_safe_flag_spec_F77 \
14298     whole_archive_flag_spec_F77 \
14299     enable_shared_with_static_runtimes_F77 \
14300     old_archive_cmds_F77 \
14301     old_archive_from_new_cmds_F77 \
14302     predep_objects_F77 \
14303     postdep_objects_F77 \
14304     predeps_F77 \
14305     postdeps_F77 \
14306     compiler_lib_search_path_F77 \
14307     archive_cmds_F77 \
14308     archive_expsym_cmds_F77 \
14309     postinstall_cmds_F77 \
14310     postuninstall_cmds_F77 \
14311     old_archive_from_expsyms_cmds_F77 \
14312     allow_undefined_flag_F77 \
14313     no_undefined_flag_F77 \
14314     export_symbols_cmds_F77 \
14315     hardcode_libdir_flag_spec_F77 \
14316     hardcode_libdir_flag_spec_ld_F77 \
14317     hardcode_libdir_separator_F77 \
14318     hardcode_automatic_F77 \
14319     module_cmds_F77 \
14320     module_expsym_cmds_F77 \
14321     lt_cv_prog_compiler_c_o_F77 \
14322     exclude_expsyms_F77 \
14323     include_expsyms_F77; do
14324
14325     case $var in
14326     old_archive_cmds_F77 | \
14327     old_archive_from_new_cmds_F77 | \
14328     archive_cmds_F77 | \
14329     archive_expsym_cmds_F77 | \
14330     module_cmds_F77 | \
14331     module_expsym_cmds_F77 | \
14332     old_archive_from_expsyms_cmds_F77 | \
14333     export_symbols_cmds_F77 | \
14334     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14335     postinstall_cmds | postuninstall_cmds | \
14336     old_postinstall_cmds | old_postuninstall_cmds | \
14337     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14338       # Double-quote double-evaled strings.
14339       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14340       ;;
14341     *)
14342       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14343       ;;
14344     esac
14345   done
14346
14347   case $lt_echo in
14348   *'\$0 --fallback-echo"')
14349     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14350     ;;
14351   esac
14352
14353 cfgfile="$ofile"
14354
14355   cat <<__EOF__ >> "$cfgfile"
14356 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14357
14358 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14359
14360 # Shell to use when invoking shell scripts.
14361 SHELL=$lt_SHELL
14362
14363 # Whether or not to build shared libraries.
14364 build_libtool_libs=$enable_shared
14365
14366 # Whether or not to build static libraries.
14367 build_old_libs=$enable_static
14368
14369 # Whether or not to add -lc for building shared libraries.
14370 build_libtool_need_lc=$archive_cmds_need_lc_F77
14371
14372 # Whether or not to disallow shared libs when runtime libs are static
14373 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14374
14375 # Whether or not to optimize for fast installation.
14376 fast_install=$enable_fast_install
14377
14378 # The host system.
14379 host_alias=$host_alias
14380 host=$host
14381
14382 # An echo program that does not interpret backslashes.
14383 echo=$lt_echo
14384
14385 # The archiver.
14386 AR=$lt_AR
14387 AR_FLAGS=$lt_AR_FLAGS
14388
14389 # A C compiler.
14390 LTCC=$lt_LTCC
14391
14392 # A language-specific compiler.
14393 CC=$lt_compiler_F77
14394
14395 # Is the compiler the GNU C compiler?
14396 with_gcc=$GCC_F77
14397
14398 # An ERE matcher.
14399 EGREP=$lt_EGREP
14400
14401 # The linker used to build libraries.
14402 LD=$lt_LD_F77
14403
14404 # Whether we need hard or soft links.
14405 LN_S=$lt_LN_S
14406
14407 # A BSD-compatible nm program.
14408 NM=$lt_NM
14409
14410 # A symbol stripping program
14411 STRIP=$STRIP
14412
14413 # Used to examine libraries when file_magic_cmd begins "file"
14414 MAGIC_CMD=$MAGIC_CMD
14415
14416 # Used on cygwin: DLL creation program.
14417 DLLTOOL="$DLLTOOL"
14418
14419 # Used on cygwin: object dumper.
14420 OBJDUMP="$OBJDUMP"
14421
14422 # Used on cygwin: assembler.
14423 AS="$AS"
14424
14425 # The name of the directory that contains temporary libtool files.
14426 objdir=$objdir
14427
14428 # How to create reloadable object files.
14429 reload_flag=$lt_reload_flag
14430 reload_cmds=$lt_reload_cmds
14431
14432 # How to pass a linker flag through the compiler.
14433 wl=$lt_lt_prog_compiler_wl_F77
14434
14435 # Object file suffix (normally "o").
14436 objext="$ac_objext"
14437
14438 # Old archive suffix (normally "a").
14439 libext="$libext"
14440
14441 # Shared library suffix (normally ".so").
14442 shrext='$shrext'
14443
14444 # Executable file suffix (normally "").
14445 exeext="$exeext"
14446
14447 # Additional compiler flags for building library objects.
14448 pic_flag=$lt_lt_prog_compiler_pic_F77
14449 pic_mode=$pic_mode
14450
14451 # What is the maximum length of a command?
14452 max_cmd_len=$lt_cv_sys_max_cmd_len
14453
14454 # Does compiler simultaneously support -c and -o options?
14455 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14456
14457 # Must we lock files when doing compilation ?
14458 need_locks=$lt_need_locks
14459
14460 # Do we need the lib prefix for modules?
14461 need_lib_prefix=$need_lib_prefix
14462
14463 # Do we need a version for libraries?
14464 need_version=$need_version
14465
14466 # Whether dlopen is supported.
14467 dlopen_support=$enable_dlopen
14468
14469 # Whether dlopen of programs is supported.
14470 dlopen_self=$enable_dlopen_self
14471
14472 # Whether dlopen of statically linked programs is supported.
14473 dlopen_self_static=$enable_dlopen_self_static
14474
14475 # Compiler flag to prevent dynamic linking.
14476 link_static_flag=$lt_lt_prog_compiler_static_F77
14477
14478 # Compiler flag to turn off builtin functions.
14479 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14480
14481 # Compiler flag to allow reflexive dlopens.
14482 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14483
14484 # Compiler flag to generate shared objects directly from archives.
14485 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14486
14487 # Compiler flag to generate thread-safe objects.
14488 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14489
14490 # Library versioning type.
14491 version_type=$version_type
14492
14493 # Format of library name prefix.
14494 libname_spec=$lt_libname_spec
14495
14496 # List of archive names.  First name is the real one, the rest are links.
14497 # The last name is the one that the linker finds with -lNAME.
14498 library_names_spec=$lt_library_names_spec
14499
14500 # The coded name of the library, if different from the real name.
14501 soname_spec=$lt_soname_spec
14502
14503 # Commands used to build and install an old-style archive.
14504 RANLIB=$lt_RANLIB
14505 old_archive_cmds=$lt_old_archive_cmds_F77
14506 old_postinstall_cmds=$lt_old_postinstall_cmds
14507 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14508
14509 # Create an old-style archive from a shared archive.
14510 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14511
14512 # Create a temporary old-style archive to link instead of a shared archive.
14513 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14514
14515 # Commands used to build and install a shared archive.
14516 archive_cmds=$lt_archive_cmds_F77
14517 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14518 postinstall_cmds=$lt_postinstall_cmds
14519 postuninstall_cmds=$lt_postuninstall_cmds
14520
14521 # Commands used to build a loadable module (assumed same as above if empty)
14522 module_cmds=$lt_module_cmds_F77
14523 module_expsym_cmds=$lt_module_expsym_cmds_F77
14524
14525 # Commands to strip libraries.
14526 old_striplib=$lt_old_striplib
14527 striplib=$lt_striplib
14528
14529 # Dependencies to place before the objects being linked to create a
14530 # shared library.
14531 predep_objects=$lt_predep_objects_F77
14532
14533 # Dependencies to place after the objects being linked to create a
14534 # shared library.
14535 postdep_objects=$lt_postdep_objects_F77
14536
14537 # Dependencies to place before the objects being linked to create a
14538 # shared library.
14539 predeps=$lt_predeps_F77
14540
14541 # Dependencies to place after the objects being linked to create a
14542 # shared library.
14543 postdeps=$lt_postdeps_F77
14544
14545 # The library search path used internally by the compiler when linking
14546 # a shared library.
14547 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14548
14549 # Method to check whether dependent libraries are shared objects.
14550 deplibs_check_method=$lt_deplibs_check_method
14551
14552 # Command to use when deplibs_check_method == file_magic.
14553 file_magic_cmd=$lt_file_magic_cmd
14554
14555 # Flag that allows shared libraries with undefined symbols to be built.
14556 allow_undefined_flag=$lt_allow_undefined_flag_F77
14557
14558 # Flag that forces no undefined symbols.
14559 no_undefined_flag=$lt_no_undefined_flag_F77
14560
14561 # Commands used to finish a libtool library installation in a directory.
14562 finish_cmds=$lt_finish_cmds
14563
14564 # Same as above, but a single script fragment to be evaled but not shown.
14565 finish_eval=$lt_finish_eval
14566
14567 # Take the output of nm and produce a listing of raw symbols and C names.
14568 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14569
14570 # Transform the output of nm in a proper C declaration
14571 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14572
14573 # Transform the output of nm in a C name address pair
14574 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14575
14576 # This is the shared library runtime path variable.
14577 runpath_var=$runpath_var
14578
14579 # This is the shared library path variable.
14580 shlibpath_var=$shlibpath_var
14581
14582 # Is shlibpath searched before the hard-coded library search path?
14583 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14584
14585 # How to hardcode a shared library path into an executable.
14586 hardcode_action=$hardcode_action_F77
14587
14588 # Whether we should hardcode library paths into libraries.
14589 hardcode_into_libs=$hardcode_into_libs
14590
14591 # Flag to hardcode \$libdir into a binary during linking.
14592 # This must work even if \$libdir does not exist.
14593 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14594
14595 # If ld is used when linking, flag to hardcode \$libdir into
14596 # a binary during linking. This must work even if \$libdir does
14597 # not exist.
14598 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14599
14600 # Whether we need a single -rpath flag with a separated argument.
14601 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14602
14603 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14604 # resulting binary.
14605 hardcode_direct=$hardcode_direct_F77
14606
14607 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14608 # resulting binary.
14609 hardcode_minus_L=$hardcode_minus_L_F77
14610
14611 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14612 # the resulting binary.
14613 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14614
14615 # Set to yes if building a shared library automatically hardcodes DIR into the library
14616 # and all subsequent libraries and executables linked against it.
14617 hardcode_automatic=$hardcode_automatic_F77
14618
14619 # Variables whose values should be saved in libtool wrapper scripts and
14620 # restored at relink time.
14621 variables_saved_for_relink="$variables_saved_for_relink"
14622
14623 # Whether libtool must link a program against all its dependency libraries.
14624 link_all_deplibs=$link_all_deplibs_F77
14625
14626 # Compile-time system search path for libraries
14627 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14628
14629 # Run-time system search path for libraries
14630 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14631
14632 # Fix the shell variable \$srcfile for the compiler.
14633 fix_srcfile_path="$fix_srcfile_path_F77"
14634
14635 # Set to yes if exported symbols are required.
14636 always_export_symbols=$always_export_symbols_F77
14637
14638 # The commands to list exported symbols.
14639 export_symbols_cmds=$lt_export_symbols_cmds_F77
14640
14641 # The commands to extract the exported symbol list from a shared archive.
14642 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14643
14644 # Symbols that should not be listed in the preloaded symbols.
14645 exclude_expsyms=$lt_exclude_expsyms_F77
14646
14647 # Symbols that must always be exported.
14648 include_expsyms=$lt_include_expsyms_F77
14649
14650 # ### END LIBTOOL TAG CONFIG: $tagname
14651
14652 __EOF__
14653
14654
14655 else
14656   # If there is no Makefile yet, we rely on a make rule to execute
14657   # `config.status --recheck' to rerun these tests and create the
14658   # libtool script then.
14659   test -f Makefile && make "$ltmain"
14660 fi
14661
14662
14663 ac_ext=c
14664 ac_cpp='$CPP $CPPFLAGS'
14665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14668
14669 CC="$lt_save_CC"
14670
14671         else
14672           tagname=""
14673         fi
14674         ;;
14675
14676       GCJ)
14677         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14678
14679
14680
14681 # Source file extension for Java test sources.
14682 ac_ext=java
14683
14684 # Object file extension for compiled Java test sources.
14685 objext=o
14686 objext_GCJ=$objext
14687
14688 # Code to be used in simple compile tests
14689 lt_simple_compile_test_code="class foo {}\n"
14690
14691 # Code to be used in simple link tests
14692 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14693
14694 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14695
14696 # If no C compiler was specified, use CC.
14697 LTCC=${LTCC-"$CC"}
14698
14699 # Allow CC to be a program name with arguments.
14700 compiler=$CC
14701
14702
14703 # Allow CC to be a program name with arguments.
14704 lt_save_CC="$CC"
14705 CC=${GCJ-"gcj"}
14706 compiler=$CC
14707 compiler_GCJ=$CC
14708
14709 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14710 archive_cmds_need_lc_GCJ=no
14711
14712
14713 lt_prog_compiler_no_builtin_flag_GCJ=
14714
14715 if test "$GCC" = yes; then
14716   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14717
14718   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14719 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14720 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14721   echo $ECHO_N "(cached) $ECHO_C" >&6
14722 else
14723   lt_cv_prog_compiler_rtti_exceptions=no
14724   ac_outfile=conftest.$ac_objext
14725    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14726    lt_compiler_flag="-fno-rtti -fno-exceptions"
14727    # Insert the option either (1) after the last *FLAGS variable, or
14728    # (2) before a word containing "conftest.", or (3) at the end.
14729    # Note that $ac_compile itself does not contain backslashes and begins
14730    # with a dollar sign (not a hyphen), so the echo should work correctly.
14731    # The option is referenced via a variable to avoid confusing sed.
14732    lt_compile=`echo "$ac_compile" | $SED \
14733    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14734    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14735    -e 's:$: $lt_compiler_flag:'`
14736    (eval echo "\"\$as_me:14736: $lt_compile\"" >&5)
14737    (eval "$lt_compile" 2>conftest.err)
14738    ac_status=$?
14739    cat conftest.err >&5
14740    echo "$as_me:14740: \$? = $ac_status" >&5
14741    if (exit $ac_status) && test -s "$ac_outfile"; then
14742      # The compiler can only warn and ignore the option if not recognized
14743      # So say no if there are warnings
14744      if test ! -s conftest.err; then
14745        lt_cv_prog_compiler_rtti_exceptions=yes
14746      fi
14747    fi
14748    $rm conftest*
14749
14750 fi
14751 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14752 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14753
14754 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14755     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14756 else
14757     :
14758 fi
14759
14760 fi
14761
14762 lt_prog_compiler_wl_GCJ=
14763 lt_prog_compiler_pic_GCJ=
14764 lt_prog_compiler_static_GCJ=
14765
14766 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14767 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14768
14769   if test "$GCC" = yes; then
14770     lt_prog_compiler_wl_GCJ='-Wl,'
14771     lt_prog_compiler_static_GCJ='-static'
14772
14773     case $host_os in
14774       aix*)
14775       # All AIX code is PIC.
14776       if test "$host_cpu" = ia64; then
14777         # AIX 5 now supports IA64 processor
14778         lt_prog_compiler_static_GCJ='-Bstatic'
14779       fi
14780       ;;
14781
14782     amigaos*)
14783       # FIXME: we need at least 68020 code to build shared libraries, but
14784       # adding the `-m68020' flag to GCC prevents building anything better,
14785       # like `-m68040'.
14786       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14787       ;;
14788
14789     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14790       # PIC is the default for these OSes.
14791       ;;
14792
14793     mingw* | pw32* | os2*)
14794       # This hack is so that the source file can tell whether it is being
14795       # built for inclusion in a dll (and should export symbols for example).
14796       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14797       ;;
14798
14799     darwin* | rhapsody*)
14800       # PIC is the default on this platform
14801       # Common symbols not allowed in MH_DYLIB files
14802       lt_prog_compiler_pic_GCJ='-fno-common'
14803       ;;
14804
14805     msdosdjgpp*)
14806       # Just because we use GCC doesn't mean we suddenly get shared libraries
14807       # on systems that don't support them.
14808       lt_prog_compiler_can_build_shared_GCJ=no
14809       enable_shared=no
14810       ;;
14811
14812     sysv4*MP*)
14813       if test -d /usr/nec; then
14814         lt_prog_compiler_pic_GCJ=-Kconform_pic
14815       fi
14816       ;;
14817
14818     hpux*)
14819       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14820       # not for PA HP-UX.
14821       case "$host_cpu" in
14822       hppa*64*|ia64*)
14823         # +Z the default
14824         ;;
14825       *)
14826         lt_prog_compiler_pic_GCJ='-fPIC'
14827         ;;
14828       esac
14829       ;;
14830
14831     *)
14832       lt_prog_compiler_pic_GCJ='-fPIC'
14833       ;;
14834     esac
14835   else
14836     # PORTME Check for flag to pass linker flags through the system compiler.
14837     case $host_os in
14838     aix*)
14839       lt_prog_compiler_wl_GCJ='-Wl,'
14840       if test "$host_cpu" = ia64; then
14841         # AIX 5 now supports IA64 processor
14842         lt_prog_compiler_static_GCJ='-Bstatic'
14843       else
14844         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14845       fi
14846       ;;
14847
14848     mingw* | pw32* | os2*)
14849       # This hack is so that the source file can tell whether it is being
14850       # built for inclusion in a dll (and should export symbols for example).
14851       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14852       ;;
14853
14854     hpux9* | hpux10* | hpux11*)
14855       lt_prog_compiler_wl_GCJ='-Wl,'
14856       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14857       # not for PA HP-UX.
14858       case "$host_cpu" in
14859       hppa*64*|ia64*)
14860         # +Z the default
14861         ;;
14862       *)
14863         lt_prog_compiler_pic_GCJ='+Z'
14864         ;;
14865       esac
14866       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14867       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14868       ;;
14869
14870     irix5* | irix6* | nonstopux*)
14871       lt_prog_compiler_wl_GCJ='-Wl,'
14872       # PIC (with -KPIC) is the default.
14873       lt_prog_compiler_static_GCJ='-non_shared'
14874       ;;
14875
14876     newsos6)
14877       lt_prog_compiler_pic_GCJ='-KPIC'
14878       lt_prog_compiler_static_GCJ='-Bstatic'
14879       ;;
14880
14881     linux*)
14882       case $CC in
14883       icc|ecc)
14884         lt_prog_compiler_wl_GCJ='-Wl,'
14885         lt_prog_compiler_pic_GCJ='-KPIC'
14886         lt_prog_compiler_static_GCJ='-static'
14887         ;;
14888       ccc)
14889         lt_prog_compiler_wl_GCJ='-Wl,'
14890         # All Alpha code is PIC.
14891         lt_prog_compiler_static_GCJ='-non_shared'
14892         ;;
14893       esac
14894       ;;
14895
14896     osf3* | osf4* | osf5*)
14897       lt_prog_compiler_wl_GCJ='-Wl,'
14898       # All OSF/1 code is PIC.
14899       lt_prog_compiler_static_GCJ='-non_shared'
14900       ;;
14901
14902     sco3.2v5*)
14903       lt_prog_compiler_pic_GCJ='-Kpic'
14904       lt_prog_compiler_static_GCJ='-dn'
14905       ;;
14906
14907     solaris*)
14908       lt_prog_compiler_wl_GCJ='-Wl,'
14909       lt_prog_compiler_pic_GCJ='-KPIC'
14910       lt_prog_compiler_static_GCJ='-Bstatic'
14911       ;;
14912
14913     sunos4*)
14914       lt_prog_compiler_wl_GCJ='-Qoption ld '
14915       lt_prog_compiler_pic_GCJ='-PIC'
14916       lt_prog_compiler_static_GCJ='-Bstatic'
14917       ;;
14918
14919     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14920       lt_prog_compiler_wl_GCJ='-Wl,'
14921       lt_prog_compiler_pic_GCJ='-KPIC'
14922       lt_prog_compiler_static_GCJ='-Bstatic'
14923       ;;
14924
14925     sysv4*MP*)
14926       if test -d /usr/nec ;then
14927         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14928         lt_prog_compiler_static_GCJ='-Bstatic'
14929       fi
14930       ;;
14931
14932     uts4*)
14933       lt_prog_compiler_pic_GCJ='-pic'
14934       lt_prog_compiler_static_GCJ='-Bstatic'
14935       ;;
14936
14937     *)
14938       lt_prog_compiler_can_build_shared_GCJ=no
14939       ;;
14940     esac
14941   fi
14942
14943 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14944 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14945
14946 #
14947 # Check to make sure the PIC flag actually works.
14948 #
14949 if test -n "$lt_prog_compiler_pic_GCJ"; then
14950   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14951 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14952 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14953   echo $ECHO_N "(cached) $ECHO_C" >&6
14954 else
14955   lt_prog_compiler_pic_works_GCJ=no
14956   ac_outfile=conftest.$ac_objext
14957    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14958    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14959    # Insert the option either (1) after the last *FLAGS variable, or
14960    # (2) before a word containing "conftest.", or (3) at the end.
14961    # Note that $ac_compile itself does not contain backslashes and begins
14962    # with a dollar sign (not a hyphen), so the echo should work correctly.
14963    # The option is referenced via a variable to avoid confusing sed.
14964    lt_compile=`echo "$ac_compile" | $SED \
14965    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14966    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14967    -e 's:$: $lt_compiler_flag:'`
14968    (eval echo "\"\$as_me:14968: $lt_compile\"" >&5)
14969    (eval "$lt_compile" 2>conftest.err)
14970    ac_status=$?
14971    cat conftest.err >&5
14972    echo "$as_me:14972: \$? = $ac_status" >&5
14973    if (exit $ac_status) && test -s "$ac_outfile"; then
14974      # The compiler can only warn and ignore the option if not recognized
14975      # So say no if there are warnings
14976      if test ! -s conftest.err; then
14977        lt_prog_compiler_pic_works_GCJ=yes
14978      fi
14979    fi
14980    $rm conftest*
14981
14982 fi
14983 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14984 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14985
14986 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14987     case $lt_prog_compiler_pic_GCJ in
14988      "" | " "*) ;;
14989      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14990      esac
14991 else
14992     lt_prog_compiler_pic_GCJ=
14993      lt_prog_compiler_can_build_shared_GCJ=no
14994 fi
14995
14996 fi
14997 case "$host_os" in
14998   # For platforms which do not support PIC, -DPIC is meaningless:
14999   *djgpp*)
15000     lt_prog_compiler_pic_GCJ=
15001     ;;
15002   *)
15003     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15004     ;;
15005 esac
15006
15007 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15008 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15009 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15010   echo $ECHO_N "(cached) $ECHO_C" >&6
15011 else
15012   lt_cv_prog_compiler_c_o_GCJ=no
15013    $rm -r conftest 2>/dev/null
15014    mkdir conftest
15015    cd conftest
15016    mkdir out
15017    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15018
15019    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15020    # that will create temporary files in the current directory regardless of
15021    # the output directory.  Thus, making CWD read-only will cause this test
15022    # to fail, enabling locking or at least warning the user not to do parallel
15023    # builds.
15024    chmod -w .
15025
15026    lt_compiler_flag="-o out/conftest2.$ac_objext"
15027    # Insert the option either (1) after the last *FLAGS variable, or
15028    # (2) before a word containing "conftest.", or (3) at the end.
15029    # Note that $ac_compile itself does not contain backslashes and begins
15030    # with a dollar sign (not a hyphen), so the echo should work correctly.
15031    lt_compile=`echo "$ac_compile" | $SED \
15032    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15033    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15034    -e 's:$: $lt_compiler_flag:'`
15035    (eval echo "\"\$as_me:15035: $lt_compile\"" >&5)
15036    (eval "$lt_compile" 2>out/conftest.err)
15037    ac_status=$?
15038    cat out/conftest.err >&5
15039    echo "$as_me:15039: \$? = $ac_status" >&5
15040    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15041    then
15042      # The compiler can only warn and ignore the option if not recognized
15043      # So say no if there are warnings
15044      if test ! -s out/conftest.err; then
15045        lt_cv_prog_compiler_c_o_GCJ=yes
15046      fi
15047    fi
15048    chmod u+w .
15049    $rm conftest* out/*
15050    rmdir out
15051    cd ..
15052    rmdir conftest
15053    $rm conftest*
15054
15055 fi
15056 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15057 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15058
15059
15060 hard_links="nottested"
15061 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15062   # do not overwrite the value of need_locks provided by the user
15063   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15064 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15065   hard_links=yes
15066   $rm conftest*
15067   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15068   touch conftest.a
15069   ln conftest.a conftest.b 2>&5 || hard_links=no
15070   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15071   echo "$as_me:$LINENO: result: $hard_links" >&5
15072 echo "${ECHO_T}$hard_links" >&6
15073   if test "$hard_links" = no; then
15074     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15075 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15076     need_locks=warn
15077   fi
15078 else
15079   need_locks=no
15080 fi
15081
15082 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15083 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15084
15085   runpath_var=
15086   allow_undefined_flag_GCJ=
15087   enable_shared_with_static_runtimes_GCJ=no
15088   archive_cmds_GCJ=
15089   archive_expsym_cmds_GCJ=
15090   old_archive_From_new_cmds_GCJ=
15091   old_archive_from_expsyms_cmds_GCJ=
15092   export_dynamic_flag_spec_GCJ=
15093   whole_archive_flag_spec_GCJ=
15094   thread_safe_flag_spec_GCJ=
15095   hardcode_libdir_flag_spec_GCJ=
15096   hardcode_libdir_flag_spec_ld_GCJ=
15097   hardcode_libdir_separator_GCJ=
15098   hardcode_direct_GCJ=no
15099   hardcode_minus_L_GCJ=no
15100   hardcode_shlibpath_var_GCJ=unsupported
15101   link_all_deplibs_GCJ=unknown
15102   hardcode_automatic_GCJ=no
15103   module_cmds_GCJ=
15104   module_expsym_cmds_GCJ=
15105   always_export_symbols_GCJ=no
15106   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15107   # include_expsyms should be a list of space-separated symbols to be *always*
15108   # included in the symbol list
15109   include_expsyms_GCJ=
15110   # exclude_expsyms can be an extended regexp of symbols to exclude
15111   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15112   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15113   # as well as any symbol that contains `d'.
15114   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15115   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15116   # platforms (ab)use it in PIC code, but their linkers get confused if
15117   # the symbol is explicitly referenced.  Since portable code cannot
15118   # rely on this symbol name, it's probably fine to never include it in
15119   # preloaded symbol tables.
15120   extract_expsyms_cmds=
15121
15122   case $host_os in
15123   cygwin* | mingw* | pw32*)
15124     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15125     # When not using gcc, we currently assume that we are using
15126     # Microsoft Visual C++.
15127     if test "$GCC" != yes; then
15128       with_gnu_ld=no
15129     fi
15130     ;;
15131   openbsd*)
15132     with_gnu_ld=no
15133     ;;
15134   esac
15135
15136   ld_shlibs_GCJ=yes
15137   if test "$with_gnu_ld" = yes; then
15138     # If archive_cmds runs LD, not CC, wlarc should be empty
15139     wlarc='${wl}'
15140
15141     # See if GNU ld supports shared libraries.
15142     case $host_os in
15143     aix3* | aix4* | aix5*)
15144       # On AIX/PPC, the GNU linker is very broken
15145       if test "$host_cpu" != ia64; then
15146         ld_shlibs_GCJ=no
15147         cat <<EOF 1>&2
15148
15149 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15150 *** to be unable to reliably create shared libraries on AIX.
15151 *** Therefore, libtool is disabling shared libraries support.  If you
15152 *** really care for shared libraries, you may want to modify your PATH
15153 *** so that a non-GNU linker is found, and then restart.
15154
15155 EOF
15156       fi
15157       ;;
15158
15159     amigaos*)
15160       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)'
15161       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15162       hardcode_minus_L_GCJ=yes
15163
15164       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15165       # that the semantics of dynamic libraries on AmigaOS, at least up
15166       # to version 4, is to share data among multiple programs linked
15167       # with the same dynamic library.  Since this doesn't match the
15168       # behavior of shared libraries on other platforms, we can't use
15169       # them.
15170       ld_shlibs_GCJ=no
15171       ;;
15172
15173     beos*)
15174       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15175         allow_undefined_flag_GCJ=unsupported
15176         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15177         # support --undefined.  This deserves some investigation.  FIXME
15178         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15179       else
15180         ld_shlibs_GCJ=no
15181       fi
15182       ;;
15183
15184     cygwin* | mingw* | pw32*)
15185       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15186       # as there is no search path for DLLs.
15187       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15188       allow_undefined_flag_GCJ=unsupported
15189       always_export_symbols_GCJ=no
15190       enable_shared_with_static_runtimes_GCJ=yes
15191       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15192
15193       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15194         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15195         # If the export-symbols file already is a .def file (1st line
15196         # is EXPORTS), use it as is; otherwise, prepend...
15197         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15198           cp $export_symbols $output_objdir/$soname.def;
15199         else
15200           echo EXPORTS > $output_objdir/$soname.def;
15201           cat $export_symbols >> $output_objdir/$soname.def;
15202         fi~
15203         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15204       else
15205         ld_shlibs=no
15206       fi
15207       ;;
15208
15209     netbsd*)
15210       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15211         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15212         wlarc=
15213       else
15214         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15215         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15216       fi
15217       ;;
15218
15219     solaris* | sysv5*)
15220       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15221         ld_shlibs_GCJ=no
15222         cat <<EOF 1>&2
15223
15224 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15225 *** create shared libraries on Solaris systems.  Therefore, libtool
15226 *** is disabling shared libraries support.  We urge you to upgrade GNU
15227 *** binutils to release 2.9.1 or newer.  Another option is to modify
15228 *** your PATH or compiler configuration so that the native linker is
15229 *** used, and then restart.
15230
15231 EOF
15232       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15233         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15234         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15235       else
15236         ld_shlibs_GCJ=no
15237       fi
15238       ;;
15239
15240     sunos4*)
15241       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15242       wlarc=
15243       hardcode_direct_GCJ=yes
15244       hardcode_shlibpath_var_GCJ=no
15245       ;;
15246
15247     *)
15248       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15249         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15250         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15251       else
15252         ld_shlibs_GCJ=no
15253       fi
15254       ;;
15255     esac
15256
15257     if test "$ld_shlibs_GCJ" = yes; then
15258       runpath_var=LD_RUN_PATH
15259       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15260       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15261       # ancient GNU ld didn't support --whole-archive et. al.
15262       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15263         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15264       else
15265         whole_archive_flag_spec_GCJ=
15266       fi
15267     fi
15268   else
15269     # PORTME fill in a description of your system's linker (not GNU ld)
15270     case $host_os in
15271     aix3*)
15272       allow_undefined_flag_GCJ=unsupported
15273       always_export_symbols_GCJ=yes
15274       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'
15275       # Note: this linker hardcodes the directories in LIBPATH if there
15276       # are no directories specified by -L.
15277       hardcode_minus_L_GCJ=yes
15278       if test "$GCC" = yes && test -z "$link_static_flag"; then
15279         # Neither direct hardcoding nor static linking is supported with a
15280         # broken collect2.
15281         hardcode_direct_GCJ=unsupported
15282       fi
15283       ;;
15284
15285     aix4* | aix5*)
15286       if test "$host_cpu" = ia64; then
15287         # On IA64, the linker does run time linking by default, so we don't
15288         # have to do anything special.
15289         aix_use_runtimelinking=no
15290         exp_sym_flag='-Bexport'
15291         no_entry_flag=""
15292       else
15293         # If we're using GNU nm, then we don't want the "-C" option.
15294         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15295         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15296           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'
15297         else
15298           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'
15299         fi
15300         aix_use_runtimelinking=no
15301
15302         # Test if we are trying to use run time linking or normal
15303         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15304         # need to do runtime linking.
15305         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15306           for ld_flag in $LDFLAGS; do
15307           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15308             aix_use_runtimelinking=yes
15309             break
15310           fi
15311           done
15312         esac
15313
15314         exp_sym_flag='-bexport'
15315         no_entry_flag='-bnoentry'
15316       fi
15317
15318       # When large executables or shared objects are built, AIX ld can
15319       # have problems creating the table of contents.  If linking a library
15320       # or program results in "error TOC overflow" add -mminimal-toc to
15321       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15322       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15323
15324       archive_cmds_GCJ=''
15325       hardcode_direct_GCJ=yes
15326       hardcode_libdir_separator_GCJ=':'
15327       link_all_deplibs_GCJ=yes
15328
15329       if test "$GCC" = yes; then
15330         case $host_os in aix4.012|aix4.012.*)
15331         # We only want to do this on AIX 4.2 and lower, the check
15332         # below for broken collect2 doesn't work under 4.3+
15333           collect2name=`${CC} -print-prog-name=collect2`
15334           if test -f "$collect2name" && \
15335            strings "$collect2name" | grep resolve_lib_name >/dev/null
15336           then
15337           # We have reworked collect2
15338           hardcode_direct_GCJ=yes
15339           else
15340           # We have old collect2
15341           hardcode_direct_GCJ=unsupported
15342           # It fails to find uninstalled libraries when the uninstalled
15343           # path is not listed in the libpath.  Setting hardcode_minus_L
15344           # to unsupported forces relinking
15345           hardcode_minus_L_GCJ=yes
15346           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15347           hardcode_libdir_separator_GCJ=
15348           fi
15349         esac
15350         shared_flag='-shared'
15351       else
15352         # not using gcc
15353         if test "$host_cpu" = ia64; then
15354         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15355         # chokes on -Wl,-G. The following line is correct:
15356           shared_flag='-G'
15357         else
15358         if test "$aix_use_runtimelinking" = yes; then
15359             shared_flag='${wl}-G'
15360           else
15361             shared_flag='${wl}-bM:SRE'
15362         fi
15363         fi
15364       fi
15365
15366       # It seems that -bexpall does not export symbols beginning with
15367       # underscore (_), so it is better to generate a list of symbols to export.
15368       always_export_symbols_GCJ=yes
15369       if test "$aix_use_runtimelinking" = yes; then
15370         # Warning - without using the other runtime loading flags (-brtl),
15371         # -berok will link without error, but may produce a broken library.
15372         allow_undefined_flag_GCJ='-berok'
15373        # Determine the default libpath from the value encoded in an empty executable.
15374        cat >conftest.$ac_ext <<_ACEOF
15375 #line $LINENO "configure"
15376 /* confdefs.h.  */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h.  */
15381
15382 int
15383 main ()
15384 {
15385
15386   ;
15387   return 0;
15388 }
15389 _ACEOF
15390 rm -f conftest.$ac_objext conftest$ac_exeext
15391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15392   (eval $ac_link) 2>&5
15393   ac_status=$?
15394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395   (exit $ac_status); } &&
15396          { ac_try='test -s conftest$ac_exeext'
15397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398   (eval $ac_try) 2>&5
15399   ac_status=$?
15400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); }; }; then
15402
15403 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15404 }'`
15405 # Check for a 64-bit object if we didn't find anything.
15406 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; }
15407 }'`; fi
15408 else
15409   echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15411
15412 fi
15413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15415
15416        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15417         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"
15418        else
15419         if test "$host_cpu" = ia64; then
15420           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15421           allow_undefined_flag_GCJ="-z nodefs"
15422           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"
15423         else
15424          # Determine the default libpath from the value encoded in an empty executable.
15425          cat >conftest.$ac_ext <<_ACEOF
15426 #line $LINENO "configure"
15427 /* confdefs.h.  */
15428 _ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h.  */
15432
15433 int
15434 main ()
15435 {
15436
15437   ;
15438   return 0;
15439 }
15440 _ACEOF
15441 rm -f conftest.$ac_objext conftest$ac_exeext
15442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15443   (eval $ac_link) 2>&5
15444   ac_status=$?
15445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446   (exit $ac_status); } &&
15447          { ac_try='test -s conftest$ac_exeext'
15448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449   (eval $ac_try) 2>&5
15450   ac_status=$?
15451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452   (exit $ac_status); }; }; then
15453
15454 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15455 }'`
15456 # Check for a 64-bit object if we didn't find anything.
15457 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; }
15458 }'`; fi
15459 else
15460   echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15462
15463 fi
15464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15465 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15466
15467          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15468           # Warning - without using the other run time loading flags,
15469           # -berok will link without error, but may produce a broken library.
15470           no_undefined_flag_GCJ=' ${wl}-bernotok'
15471           allow_undefined_flag_GCJ=' ${wl}-berok'
15472           # -bexpall does not export symbols beginning with underscore (_)
15473           always_export_symbols_GCJ=yes
15474           # Exported symbols can be pulled into shared objects from archives
15475           whole_archive_flag_spec_GCJ=' '
15476           archive_cmds_need_lc_GCJ=yes
15477           # This is similar to how AIX traditionally builds it's shared libraries.
15478           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'
15479         fi
15480       fi
15481       ;;
15482
15483     amigaos*)
15484       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)'
15485       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15486       hardcode_minus_L_GCJ=yes
15487       # see comment about different semantics on the GNU ld section
15488       ld_shlibs_GCJ=no
15489       ;;
15490
15491     bsdi4*)
15492       export_dynamic_flag_spec_GCJ=-rdynamic
15493       ;;
15494
15495     cygwin* | mingw* | pw32*)
15496       # When not using gcc, we currently assume that we are using
15497       # Microsoft Visual C++.
15498       # hardcode_libdir_flag_spec is actually meaningless, as there is
15499       # no search path for DLLs.
15500       hardcode_libdir_flag_spec_GCJ=' '
15501       allow_undefined_flag_GCJ=unsupported
15502       # Tell ltmain to make .lib files, not .a files.
15503       libext=lib
15504       # Tell ltmain to make .dll files, not .so files.
15505       shrext=".dll"
15506       # FIXME: Setting linknames here is a bad hack.
15507       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15508       # The linker will automatically build a .lib file if we build a DLL.
15509       old_archive_From_new_cmds_GCJ='true'
15510       # FIXME: Should let the user specify the lib program.
15511       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15512       fix_srcfile_path='`cygpath -w "$srcfile"`'
15513       enable_shared_with_static_runtimes_GCJ=yes
15514       ;;
15515
15516     darwin* | rhapsody*)
15517     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15518       archive_cmds_need_lc_GCJ=no
15519       case "$host_os" in
15520       rhapsody* | darwin1.[012])
15521         allow_undefined_flag_GCJ='-undefined suppress'
15522         ;;
15523       *) # Darwin 1.3 on
15524         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15525         ;;
15526       esac
15527       # FIXME: Relying on posixy $() will cause problems for
15528       #        cross-compilation, but unfortunately the echo tests do not
15529       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15530       #        `"' quotes if we put them in here... so don't!
15531         lt_int_apple_cc_single_mod=no
15532         output_verbose_link_cmd='echo'
15533         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15534           lt_int_apple_cc_single_mod=yes
15535         fi
15536         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15537           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15538         else
15539         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
15540       fi
15541       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15542       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15543         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15544           archive_expsym_cmds_GCJ='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}'
15545         else
15546           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
15547         fi
15548           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15549       hardcode_direct_GCJ=no
15550       hardcode_automatic_GCJ=yes
15551       hardcode_shlibpath_var_GCJ=unsupported
15552       whole_archive_flag_spec_GCJ='-all_load $convenience'
15553       link_all_deplibs_GCJ=yes
15554     fi
15555       ;;
15556
15557     dgux*)
15558       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15559       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15560       hardcode_shlibpath_var_GCJ=no
15561       ;;
15562
15563     freebsd1*)
15564       ld_shlibs_GCJ=no
15565       ;;
15566
15567     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15568     # support.  Future versions do this automatically, but an explicit c++rt0.o
15569     # does not break anything, and helps significantly (at the cost of a little
15570     # extra space).
15571     freebsd2.2*)
15572       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15573       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15574       hardcode_direct_GCJ=yes
15575       hardcode_shlibpath_var_GCJ=no
15576       ;;
15577
15578     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15579     freebsd2*)
15580       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15581       hardcode_direct_GCJ=yes
15582       hardcode_minus_L_GCJ=yes
15583       hardcode_shlibpath_var_GCJ=no
15584       ;;
15585
15586     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15587     freebsd*)
15588       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15589       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15590       hardcode_direct_GCJ=yes
15591       hardcode_shlibpath_var_GCJ=no
15592       ;;
15593
15594     hpux9*)
15595       if test "$GCC" = yes; then
15596         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'
15597       else
15598         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'
15599       fi
15600       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15601       hardcode_libdir_separator_GCJ=:
15602       hardcode_direct_GCJ=yes
15603
15604       # hardcode_minus_L: Not really in the search PATH,
15605       # but as the default location of the library.
15606       hardcode_minus_L_GCJ=yes
15607       export_dynamic_flag_spec_GCJ='${wl}-E'
15608       ;;
15609
15610     hpux10* | hpux11*)
15611       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15612         case "$host_cpu" in
15613         hppa*64*|ia64*)
15614           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15615           ;;
15616         *)
15617           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15618           ;;
15619         esac
15620       else
15621         case "$host_cpu" in
15622         hppa*64*|ia64*)
15623           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15624           ;;
15625         *)
15626           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15627           ;;
15628         esac
15629       fi
15630       if test "$with_gnu_ld" = no; then
15631         case "$host_cpu" in
15632         hppa*64*)
15633           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15634           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15635           hardcode_libdir_separator_GCJ=:
15636           hardcode_direct_GCJ=no
15637           hardcode_shlibpath_var_GCJ=no
15638           ;;
15639         ia64*)
15640           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15641           hardcode_direct_GCJ=no
15642           hardcode_shlibpath_var_GCJ=no
15643
15644           # hardcode_minus_L: Not really in the search PATH,
15645           # but as the default location of the library.
15646           hardcode_minus_L_GCJ=yes
15647           ;;
15648         *)
15649           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15650           hardcode_libdir_separator_GCJ=:
15651           hardcode_direct_GCJ=yes
15652           export_dynamic_flag_spec_GCJ='${wl}-E'
15653
15654           # hardcode_minus_L: Not really in the search PATH,
15655           # but as the default location of the library.
15656           hardcode_minus_L_GCJ=yes
15657           ;;
15658         esac
15659       fi
15660       ;;
15661
15662     irix5* | irix6* | nonstopux*)
15663       if test "$GCC" = yes; then
15664         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'
15665       else
15666         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'
15667         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15668       fi
15669       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15670       hardcode_libdir_separator_GCJ=:
15671       link_all_deplibs_GCJ=yes
15672       ;;
15673
15674     netbsd*)
15675       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15676         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15677       else
15678         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15679       fi
15680       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15681       hardcode_direct_GCJ=yes
15682       hardcode_shlibpath_var_GCJ=no
15683       ;;
15684
15685     newsos6)
15686       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15687       hardcode_direct_GCJ=yes
15688       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15689       hardcode_libdir_separator_GCJ=:
15690       hardcode_shlibpath_var_GCJ=no
15691       ;;
15692
15693     openbsd*)
15694       hardcode_direct_GCJ=yes
15695       hardcode_shlibpath_var_GCJ=no
15696       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15697         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15698         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15699         export_dynamic_flag_spec_GCJ='${wl}-E'
15700       else
15701        case $host_os in
15702          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15703            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15704            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15705            ;;
15706          *)
15707            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15708            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15709            ;;
15710        esac
15711       fi
15712       ;;
15713
15714     os2*)
15715       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15716       hardcode_minus_L_GCJ=yes
15717       allow_undefined_flag_GCJ=unsupported
15718       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'
15719       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15720       ;;
15721
15722     osf3*)
15723       if test "$GCC" = yes; then
15724         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15725         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'
15726       else
15727         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15728         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'
15729       fi
15730       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15731       hardcode_libdir_separator_GCJ=:
15732       ;;
15733
15734     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15735       if test "$GCC" = yes; then
15736         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15737         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'
15738         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15739       else
15740         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15741         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'
15742         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~
15743         $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'
15744
15745         # Both c and cxx compiler support -rpath directly
15746         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15747       fi
15748       hardcode_libdir_separator_GCJ=:
15749       ;;
15750
15751     sco3.2v5*)
15752       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15753       hardcode_shlibpath_var_GCJ=no
15754       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15755       runpath_var=LD_RUN_PATH
15756       hardcode_runpath_var=yes
15757       ;;
15758
15759     solaris*)
15760       no_undefined_flag_GCJ=' -z text'
15761       if test "$GCC" = yes; then
15762         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15763         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15764           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15765       else
15766         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15767         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15768         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15769       fi
15770       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15771       hardcode_shlibpath_var_GCJ=no
15772       case $host_os in
15773       solaris2.[0-5] | solaris2.[0-5].*) ;;
15774       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15775         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15776       esac
15777       link_all_deplibs_GCJ=yes
15778       ;;
15779
15780     sunos4*)
15781       if test "x$host_vendor" = xsequent; then
15782         # Use $CC to link under sequent, because it throws in some extra .o
15783         # files that make .init and .fini sections work.
15784         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15785       else
15786         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15787       fi
15788       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15789       hardcode_direct_GCJ=yes
15790       hardcode_minus_L_GCJ=yes
15791       hardcode_shlibpath_var_GCJ=no
15792       ;;
15793
15794     sysv4)
15795       case $host_vendor in
15796         sni)
15797           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15798           hardcode_direct_GCJ=yes # is this really true???
15799         ;;
15800         siemens)
15801           ## LD is ld it makes a PLAMLIB
15802           ## CC just makes a GrossModule.
15803           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15804           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15805           hardcode_direct_GCJ=no
15806         ;;
15807         motorola)
15808           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15810         ;;
15811       esac
15812       runpath_var='LD_RUN_PATH'
15813       hardcode_shlibpath_var_GCJ=no
15814       ;;
15815
15816     sysv4.3*)
15817       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15818       hardcode_shlibpath_var_GCJ=no
15819       export_dynamic_flag_spec_GCJ='-Bexport'
15820       ;;
15821
15822     sysv4*MP*)
15823       if test -d /usr/nec; then
15824         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15825         hardcode_shlibpath_var_GCJ=no
15826         runpath_var=LD_RUN_PATH
15827         hardcode_runpath_var=yes
15828         ld_shlibs_GCJ=yes
15829       fi
15830       ;;
15831
15832     sysv4.2uw2*)
15833       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15834       hardcode_direct_GCJ=yes
15835       hardcode_minus_L_GCJ=no
15836       hardcode_shlibpath_var_GCJ=no
15837       hardcode_runpath_var=yes
15838       runpath_var=LD_RUN_PATH
15839       ;;
15840
15841    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15842       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15843       if test "$GCC" = yes; then
15844         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15845       else
15846         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15847       fi
15848       runpath_var='LD_RUN_PATH'
15849       hardcode_shlibpath_var_GCJ=no
15850       ;;
15851
15852     sysv5*)
15853       no_undefined_flag_GCJ=' -z text'
15854       # $CC -shared without GNU ld will not create a library from C++
15855       # object files and a static libstdc++, better avoid it by now
15856       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15857       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15858                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15859       hardcode_libdir_flag_spec_GCJ=
15860       hardcode_shlibpath_var_GCJ=no
15861       runpath_var='LD_RUN_PATH'
15862       ;;
15863
15864     uts4*)
15865       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15866       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15867       hardcode_shlibpath_var_GCJ=no
15868       ;;
15869
15870     *)
15871       ld_shlibs_GCJ=no
15872       ;;
15873     esac
15874   fi
15875
15876 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15877 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15878 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15879
15880 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15881 if test "$GCC" = yes; then
15882   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15883 fi
15884
15885 #
15886 # Do we need to explicitly link libc?
15887 #
15888 case "x$archive_cmds_need_lc_GCJ" in
15889 x|xyes)
15890   # Assume -lc should be added
15891   archive_cmds_need_lc_GCJ=yes
15892
15893   if test "$enable_shared" = yes && test "$GCC" = yes; then
15894     case $archive_cmds_GCJ in
15895     *'~'*)
15896       # FIXME: we may have to deal with multi-command sequences.
15897       ;;
15898     '$CC '*)
15899       # Test whether the compiler implicitly links with -lc since on some
15900       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15901       # to ld, don't add -lc before -lgcc.
15902       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15903 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15904       $rm conftest*
15905       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15906
15907       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15908   (eval $ac_compile) 2>&5
15909   ac_status=$?
15910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911   (exit $ac_status); } 2>conftest.err; then
15912         soname=conftest
15913         lib=conftest
15914         libobjs=conftest.$ac_objext
15915         deplibs=
15916         wl=$lt_prog_compiler_wl_GCJ
15917         compiler_flags=-v
15918         linker_flags=-v
15919         verstring=
15920         output_objdir=.
15921         libname=conftest
15922         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15923         allow_undefined_flag_GCJ=
15924         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15925   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15926   ac_status=$?
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); }
15929         then
15930           archive_cmds_need_lc_GCJ=no
15931         else
15932           archive_cmds_need_lc_GCJ=yes
15933         fi
15934         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15935       else
15936         cat conftest.err 1>&5
15937       fi
15938       $rm conftest*
15939       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15940 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15941       ;;
15942     esac
15943   fi
15944   ;;
15945 esac
15946
15947 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15948 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15949 hardcode_action_GCJ=
15950 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15951    test -n "$runpath_var GCJ" || \
15952    test "X$hardcode_automatic_GCJ"="Xyes" ; then
15953
15954   # We can hardcode non-existant directories.
15955   if test "$hardcode_direct_GCJ" != no &&
15956      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15957      # have to relink, otherwise we might link with an installed library
15958      # when we should be linking with a yet-to-be-installed one
15959      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15960      test "$hardcode_minus_L_GCJ" != no; then
15961     # Linking always hardcodes the temporary library directory.
15962     hardcode_action_GCJ=relink
15963   else
15964     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15965     hardcode_action_GCJ=immediate
15966   fi
15967 else
15968   # We cannot hardcode anything, or else we can only hardcode existing
15969   # directories.
15970   hardcode_action_GCJ=unsupported
15971 fi
15972 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15973 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15974
15975 if test "$hardcode_action_GCJ" = relink; then
15976   # Fast installation is not supported
15977   enable_fast_install=no
15978 elif test "$shlibpath_overrides_runpath" = yes ||
15979      test "$enable_shared" = no; then
15980   # Fast installation is not necessary
15981   enable_fast_install=needless
15982 fi
15983
15984 striplib=
15985 old_striplib=
15986 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15987 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15988 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15989   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15990   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15991   echo "$as_me:$LINENO: result: yes" >&5
15992 echo "${ECHO_T}yes" >&6
15993 else
15994 # FIXME - insert some real tests, host_os isn't really good enough
15995   case $host_os in
15996    darwin*)
15997        if test -n "$STRIP" ; then
15998          striplib="$STRIP -x"
15999          echo "$as_me:$LINENO: result: yes" >&5
16000 echo "${ECHO_T}yes" >&6
16001        else
16002   echo "$as_me:$LINENO: result: no" >&5
16003 echo "${ECHO_T}no" >&6
16004 fi
16005        ;;
16006    *)
16007   echo "$as_me:$LINENO: result: no" >&5
16008 echo "${ECHO_T}no" >&6
16009     ;;
16010   esac
16011 fi
16012
16013 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16014 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16015 library_names_spec=
16016 libname_spec='lib$name'
16017 soname_spec=
16018 shrext=".so"
16019 postinstall_cmds=
16020 postuninstall_cmds=
16021 finish_cmds=
16022 finish_eval=
16023 shlibpath_var=
16024 shlibpath_overrides_runpath=unknown
16025 version_type=none
16026 dynamic_linker="$host_os ld.so"
16027 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16028 if test "$GCC" = yes; then
16029   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16030   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16031     # if the path contains ";" then we assume it to be the separator
16032     # otherwise default to the standard path separator (i.e. ":") - it is
16033     # assumed that no part of a normal pathname contains ";" but that should
16034     # okay in the real world where ";" in dirpaths is itself problematic.
16035     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16036   else
16037     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16038   fi
16039 else
16040   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16041 fi
16042 need_lib_prefix=unknown
16043 hardcode_into_libs=no
16044
16045 # when you set need_version to no, make sure it does not cause -set_version
16046 # flags to be left without arguments
16047 need_version=unknown
16048
16049 case $host_os in
16050 aix3*)
16051   version_type=linux
16052   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16053   shlibpath_var=LIBPATH
16054
16055   # AIX 3 has no versioning support, so we append a major version to the name.
16056   soname_spec='${libname}${release}${shared_ext}$major'
16057   ;;
16058
16059 aix4* | aix5*)
16060   version_type=linux
16061   need_lib_prefix=no
16062   need_version=no
16063   hardcode_into_libs=yes
16064   if test "$host_cpu" = ia64; then
16065     # AIX 5 supports IA64
16066     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16067     shlibpath_var=LD_LIBRARY_PATH
16068   else
16069     # With GCC up to 2.95.x, collect2 would create an import file
16070     # for dependence libraries.  The import file would start with
16071     # the line `#! .'.  This would cause the generated library to
16072     # depend on `.', always an invalid library.  This was fixed in
16073     # development snapshots of GCC prior to 3.0.
16074     case $host_os in
16075       aix4 | aix4.[01] | aix4.[01].*)
16076       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16077            echo ' yes '
16078            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16079         :
16080       else
16081         can_build_shared=no
16082       fi
16083       ;;
16084     esac
16085     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16086     # soname into executable. Probably we can add versioning support to
16087     # collect2, so additional links can be useful in future.
16088     if test "$aix_use_runtimelinking" = yes; then
16089       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16090       # instead of lib<name>.a to let people know that these are not
16091       # typical AIX shared libraries.
16092       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16093     else
16094       # We preserve .a as extension for shared libraries through AIX4.2
16095       # and later when we are not doing run time linking.
16096       library_names_spec='${libname}${release}.a $libname.a'
16097       soname_spec='${libname}${release}${shared_ext}$major'
16098     fi
16099     shlibpath_var=LIBPATH
16100   fi
16101   ;;
16102
16103 amigaos*)
16104   library_names_spec='$libname.ixlibrary $libname.a'
16105   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16106   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'
16107   ;;
16108
16109 beos*)
16110   library_names_spec='${libname}${shared_ext}'
16111   dynamic_linker="$host_os ld.so"
16112   shlibpath_var=LIBRARY_PATH
16113   ;;
16114
16115 bsdi4*)
16116   version_type=linux
16117   need_version=no
16118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16119   soname_spec='${libname}${release}${shared_ext}$major'
16120   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16121   shlibpath_var=LD_LIBRARY_PATH
16122   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16123   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16124   # the default ld.so.conf also contains /usr/contrib/lib and
16125   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16126   # libtool to hard-code these into programs
16127   ;;
16128
16129 cygwin* | mingw* | pw32*)
16130   version_type=windows
16131   shrext=".dll"
16132   need_version=no
16133   need_lib_prefix=no
16134
16135   case $GCC,$host_os in
16136   yes,cygwin* | yes,mingw* | yes,pw32*)
16137     library_names_spec='$libname.dll.a'
16138     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16139     postinstall_cmds='base_file=`basename \${file}`~
16140       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16141       dldir=$destdir/`dirname \$dlpath`~
16142       test -d \$dldir || mkdir -p \$dldir~
16143       $install_prog $dir/$dlname \$dldir/$dlname'
16144     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16145       dlpath=$dir/\$dldll~
16146        $rm \$dlpath'
16147     shlibpath_overrides_runpath=yes
16148
16149     case $host_os in
16150     cygwin*)
16151       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16152       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16153       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16154       ;;
16155     mingw*)
16156       # MinGW DLLs use traditional 'lib' prefix
16157       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16158       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16159       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16160         # It is most probably a Windows format PATH printed by
16161         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16162         # path with ; separators, and with drive letters. We can handle the
16163         # drive letters (cygwin fileutils understands them), so leave them,
16164         # especially as we might pass files found there to a mingw objdump,
16165         # which wouldn't understand a cygwinified path. Ahh.
16166         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16167       else
16168         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16169       fi
16170       ;;
16171     pw32*)
16172       # pw32 DLLs use 'pw' prefix rather than 'lib'
16173       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16174       ;;
16175     esac
16176     ;;
16177
16178   *)
16179     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16180     ;;
16181   esac
16182   dynamic_linker='Win32 ld.exe'
16183   # FIXME: first we should search . and the directory the executable is in
16184   shlibpath_var=PATH
16185   ;;
16186
16187 darwin* | rhapsody*)
16188   dynamic_linker="$host_os dyld"
16189   version_type=darwin
16190   need_lib_prefix=no
16191   need_version=no
16192   # FIXME: Relying on posixy $() will cause problems for
16193   #        cross-compilation, but unfortunately the echo tests do not
16194   #        yet detect zsh echo's removal of \ escapes.
16195   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16196   soname_spec='${libname}${release}${major}$shared_ext'
16197   shlibpath_overrides_runpath=yes
16198   shlibpath_var=DYLD_LIBRARY_PATH
16199   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16200   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16201   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16202   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"`
16203   fi
16204   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16205   ;;
16206
16207 dgux*)
16208   version_type=linux
16209   need_lib_prefix=no
16210   need_version=no
16211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16212   soname_spec='${libname}${release}${shared_ext}$major'
16213   shlibpath_var=LD_LIBRARY_PATH
16214   ;;
16215
16216 freebsd1*)
16217   dynamic_linker=no
16218   ;;
16219
16220 freebsd*)
16221   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16222   version_type=freebsd-$objformat
16223   case $version_type in
16224     freebsd-elf*)
16225       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16226       need_version=no
16227       need_lib_prefix=no
16228       ;;
16229     freebsd-*)
16230       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16231       need_version=yes
16232       ;;
16233   esac
16234   shlibpath_var=LD_LIBRARY_PATH
16235   case $host_os in
16236   freebsd2*)
16237     shlibpath_overrides_runpath=yes
16238     ;;
16239   freebsd3.01* | freebsdelf3.01*)
16240     shlibpath_overrides_runpath=yes
16241     hardcode_into_libs=yes
16242     ;;
16243   *) # from 3.2 on
16244     shlibpath_overrides_runpath=no
16245     hardcode_into_libs=yes
16246     ;;
16247   esac
16248   ;;
16249
16250 gnu*)
16251   version_type=linux
16252   need_lib_prefix=no
16253   need_version=no
16254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16255   soname_spec='${libname}${release}${shared_ext}$major'
16256   shlibpath_var=LD_LIBRARY_PATH
16257   hardcode_into_libs=yes
16258   ;;
16259
16260 hpux9* | hpux10* | hpux11*)
16261   # Give a soname corresponding to the major version so that dld.sl refuses to
16262   # link against other versions.
16263   version_type=sunos
16264   need_lib_prefix=no
16265   need_version=no
16266   case "$host_cpu" in
16267   ia64*)
16268     shrext='.so'
16269     hardcode_into_libs=yes
16270     dynamic_linker="$host_os dld.so"
16271     shlibpath_var=LD_LIBRARY_PATH
16272     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16273     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274     soname_spec='${libname}${release}${shared_ext}$major'
16275     if test "X$HPUX_IA64_MODE" = X32; then
16276       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16277     else
16278       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16279     fi
16280     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16281     ;;
16282    hppa*64*)
16283      shrext='.sl'
16284      hardcode_into_libs=yes
16285      dynamic_linker="$host_os dld.sl"
16286      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16287      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16288      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289      soname_spec='${libname}${release}${shared_ext}$major'
16290      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16291      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16292      ;;
16293    *)
16294     shrext='.sl'
16295     dynamic_linker="$host_os dld.sl"
16296     shlibpath_var=SHLIB_PATH
16297     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16298     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16299     soname_spec='${libname}${release}${shared_ext}$major'
16300     ;;
16301   esac
16302   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16303   postinstall_cmds='chmod 555 $lib'
16304   ;;
16305
16306 irix5* | irix6* | nonstopux*)
16307   case $host_os in
16308     nonstopux*) version_type=nonstopux ;;
16309     *)
16310         if test "$lt_cv_prog_gnu_ld" = yes; then
16311                 version_type=linux
16312         else
16313                 version_type=irix
16314         fi ;;
16315   esac
16316   need_lib_prefix=no
16317   need_version=no
16318   soname_spec='${libname}${release}${shared_ext}$major'
16319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16320   case $host_os in
16321   irix5* | nonstopux*)
16322     libsuff= shlibsuff=
16323     ;;
16324   *)
16325     case $LD in # libtool.m4 will add one of these switches to LD
16326     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16327       libsuff= shlibsuff= libmagic=32-bit;;
16328     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16329       libsuff=32 shlibsuff=N32 libmagic=N32;;
16330     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16331       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16332     *) libsuff= shlibsuff= libmagic=never-match;;
16333     esac
16334     ;;
16335   esac
16336   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16337   shlibpath_overrides_runpath=no
16338   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16339   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16340   hardcode_into_libs=yes
16341   ;;
16342
16343 # No shared lib support for Linux oldld, aout, or coff.
16344 linux*oldld* | linux*aout* | linux*coff*)
16345   dynamic_linker=no
16346   ;;
16347
16348 # This must be Linux ELF.
16349 linux*)
16350   version_type=linux
16351   need_lib_prefix=no
16352   need_version=no
16353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16354   soname_spec='${libname}${release}${shared_ext}$major'
16355   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16356   shlibpath_var=LD_LIBRARY_PATH
16357   shlibpath_overrides_runpath=no
16358   # This implies no fast_install, which is unacceptable.
16359   # Some rework will be needed to allow for fast_install
16360   # before this can be enabled.
16361   hardcode_into_libs=yes
16362
16363   # We used to test for /lib/ld.so.1 and disable shared libraries on
16364   # powerpc, because MkLinux only supported shared libraries with the
16365   # GNU dynamic linker.  Since this was broken with cross compilers,
16366   # most powerpc-linux boxes support dynamic linking these days and
16367   # people can always --disable-shared, the test was removed, and we
16368   # assume the GNU/Linux dynamic linker is in use.
16369   dynamic_linker='GNU/Linux ld.so'
16370   ;;
16371
16372 netbsd*)
16373   version_type=sunos
16374   need_lib_prefix=no
16375   need_version=no
16376   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16377     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16378     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16379     dynamic_linker='NetBSD (a.out) ld.so'
16380   else
16381     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16382     soname_spec='${libname}${release}${shared_ext}$major'
16383     dynamic_linker='NetBSD ld.elf_so'
16384   fi
16385   shlibpath_var=LD_LIBRARY_PATH
16386   shlibpath_overrides_runpath=yes
16387   hardcode_into_libs=yes
16388   ;;
16389
16390 newsos6)
16391   version_type=linux
16392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16393   shlibpath_var=LD_LIBRARY_PATH
16394   shlibpath_overrides_runpath=yes
16395   ;;
16396
16397 nto-qnx)
16398   version_type=linux
16399   need_lib_prefix=no
16400   need_version=no
16401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16402   soname_spec='${libname}${release}${shared_ext}$major'
16403   shlibpath_var=LD_LIBRARY_PATH
16404   shlibpath_overrides_runpath=yes
16405   ;;
16406
16407 openbsd*)
16408   version_type=sunos
16409   need_lib_prefix=no
16410   need_version=no
16411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16412   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16413   shlibpath_var=LD_LIBRARY_PATH
16414   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16415     case $host_os in
16416       openbsd2.[89] | openbsd2.[89].*)
16417         shlibpath_overrides_runpath=no
16418         ;;
16419       *)
16420         shlibpath_overrides_runpath=yes
16421         ;;
16422       esac
16423   else
16424     shlibpath_overrides_runpath=yes
16425   fi
16426   ;;
16427
16428 os2*)
16429   libname_spec='$name'
16430   shrext=".dll"
16431   need_lib_prefix=no
16432   library_names_spec='$libname${shared_ext} $libname.a'
16433   dynamic_linker='OS/2 ld.exe'
16434   shlibpath_var=LIBPATH
16435   ;;
16436
16437 osf3* | osf4* | osf5*)
16438   version_type=osf
16439   need_lib_prefix=no
16440   need_version=no
16441   soname_spec='${libname}${release}${shared_ext}$major'
16442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16443   shlibpath_var=LD_LIBRARY_PATH
16444   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16445   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16446   ;;
16447
16448 sco3.2v5*)
16449   version_type=osf
16450   soname_spec='${libname}${release}${shared_ext}$major'
16451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16452   shlibpath_var=LD_LIBRARY_PATH
16453   ;;
16454
16455 solaris*)
16456   version_type=linux
16457   need_lib_prefix=no
16458   need_version=no
16459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16460   soname_spec='${libname}${release}${shared_ext}$major'
16461   shlibpath_var=LD_LIBRARY_PATH
16462   shlibpath_overrides_runpath=yes
16463   hardcode_into_libs=yes
16464   # ldd complains unless libraries are executable
16465   postinstall_cmds='chmod +x $lib'
16466   ;;
16467
16468 sunos4*)
16469   version_type=sunos
16470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16471   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16472   shlibpath_var=LD_LIBRARY_PATH
16473   shlibpath_overrides_runpath=yes
16474   if test "$with_gnu_ld" = yes; then
16475     need_lib_prefix=no
16476   fi
16477   need_version=yes
16478   ;;
16479
16480 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16481   version_type=linux
16482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16483   soname_spec='${libname}${release}${shared_ext}$major'
16484   shlibpath_var=LD_LIBRARY_PATH
16485   case $host_vendor in
16486     sni)
16487       shlibpath_overrides_runpath=no
16488       need_lib_prefix=no
16489       export_dynamic_flag_spec='${wl}-Blargedynsym'
16490       runpath_var=LD_RUN_PATH
16491       ;;
16492     siemens)
16493       need_lib_prefix=no
16494       ;;
16495     motorola)
16496       need_lib_prefix=no
16497       need_version=no
16498       shlibpath_overrides_runpath=no
16499       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16500       ;;
16501   esac
16502   ;;
16503
16504 sysv4*MP*)
16505   if test -d /usr/nec ;then
16506     version_type=linux
16507     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16508     soname_spec='$libname${shared_ext}.$major'
16509     shlibpath_var=LD_LIBRARY_PATH
16510   fi
16511   ;;
16512
16513 uts4*)
16514   version_type=linux
16515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516   soname_spec='${libname}${release}${shared_ext}$major'
16517   shlibpath_var=LD_LIBRARY_PATH
16518   ;;
16519
16520 *)
16521   dynamic_linker=no
16522   ;;
16523 esac
16524 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16525 echo "${ECHO_T}$dynamic_linker" >&6
16526 test "$dynamic_linker" = no && can_build_shared=no
16527
16528 if test "x$enable_dlopen" != xyes; then
16529   enable_dlopen=unknown
16530   enable_dlopen_self=unknown
16531   enable_dlopen_self_static=unknown
16532 else
16533   lt_cv_dlopen=no
16534   lt_cv_dlopen_libs=
16535
16536   case $host_os in
16537   beos*)
16538     lt_cv_dlopen="load_add_on"
16539     lt_cv_dlopen_libs=
16540     lt_cv_dlopen_self=yes
16541     ;;
16542
16543   mingw* | pw32*)
16544     lt_cv_dlopen="LoadLibrary"
16545     lt_cv_dlopen_libs=
16546    ;;
16547
16548   cygwin*)
16549     lt_cv_dlopen="dlopen"
16550     lt_cv_dlopen_libs=
16551    ;;
16552
16553   darwin*)
16554   # if libdl is installed we need to link against it
16555     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16556 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16557 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16558   echo $ECHO_N "(cached) $ECHO_C" >&6
16559 else
16560   ac_check_lib_save_LIBS=$LIBS
16561 LIBS="-ldl  $LIBS"
16562 cat >conftest.$ac_ext <<_ACEOF
16563 #line $LINENO "configure"
16564 /* confdefs.h.  */
16565 _ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h.  */
16569
16570 /* Override any gcc2 internal prototype to avoid an error.  */
16571 #ifdef __cplusplus
16572 extern "C"
16573 #endif
16574 /* We use char because int might match the return type of a gcc2
16575    builtin and then its argument prototype would still apply.  */
16576 char dlopen ();
16577 int
16578 main ()
16579 {
16580 dlopen ();
16581   ;
16582   return 0;
16583 }
16584 _ACEOF
16585 rm -f conftest.$ac_objext conftest$ac_exeext
16586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16587   (eval $ac_link) 2>&5
16588   ac_status=$?
16589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590   (exit $ac_status); } &&
16591          { ac_try='test -s conftest$ac_exeext'
16592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593   (eval $ac_try) 2>&5
16594   ac_status=$?
16595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596   (exit $ac_status); }; }; then
16597   ac_cv_lib_dl_dlopen=yes
16598 else
16599   echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16601
16602 ac_cv_lib_dl_dlopen=no
16603 fi
16604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16605 LIBS=$ac_check_lib_save_LIBS
16606 fi
16607 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16608 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16609 if test $ac_cv_lib_dl_dlopen = yes; then
16610   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16611 else
16612
16613     lt_cv_dlopen="dyld"
16614     lt_cv_dlopen_libs=
16615     lt_cv_dlopen_self=yes
16616
16617 fi
16618
16619    ;;
16620
16621   *)
16622     echo "$as_me:$LINENO: checking for shl_load" >&5
16623 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16624 if test "${ac_cv_func_shl_load+set}" = set; then
16625   echo $ECHO_N "(cached) $ECHO_C" >&6
16626 else
16627   cat >conftest.$ac_ext <<_ACEOF
16628 #line $LINENO "configure"
16629 /* confdefs.h.  */
16630 _ACEOF
16631 cat confdefs.h >>conftest.$ac_ext
16632 cat >>conftest.$ac_ext <<_ACEOF
16633 /* end confdefs.h.  */
16634 /* System header to define __stub macros and hopefully few prototypes,
16635     which can conflict with char shl_load (); below.
16636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16637     <limits.h> exists even on freestanding compilers.  */
16638 #ifdef __STDC__
16639 # include <limits.h>
16640 #else
16641 # include <assert.h>
16642 #endif
16643 /* Override any gcc2 internal prototype to avoid an error.  */
16644 #ifdef __cplusplus
16645 extern "C"
16646 {
16647 #endif
16648 /* We use char because int might match the return type of a gcc2
16649    builtin and then its argument prototype would still apply.  */
16650 char shl_load ();
16651 /* The GNU C library defines this for functions which it implements
16652     to always fail with ENOSYS.  Some functions are actually named
16653     something starting with __ and the normal name is an alias.  */
16654 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16655 choke me
16656 #else
16657 char (*f) () = shl_load;
16658 #endif
16659 #ifdef __cplusplus
16660 }
16661 #endif
16662
16663 int
16664 main ()
16665 {
16666 return f != shl_load;
16667   ;
16668   return 0;
16669 }
16670 _ACEOF
16671 rm -f conftest.$ac_objext conftest$ac_exeext
16672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16673   (eval $ac_link) 2>&5
16674   ac_status=$?
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); } &&
16677          { ac_try='test -s conftest$ac_exeext'
16678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679   (eval $ac_try) 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); }; }; then
16683   ac_cv_func_shl_load=yes
16684 else
16685   echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16687
16688 ac_cv_func_shl_load=no
16689 fi
16690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16691 fi
16692 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16693 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16694 if test $ac_cv_func_shl_load = yes; then
16695   lt_cv_dlopen="shl_load"
16696 else
16697   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16698 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16699 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16700   echo $ECHO_N "(cached) $ECHO_C" >&6
16701 else
16702   ac_check_lib_save_LIBS=$LIBS
16703 LIBS="-ldld  $LIBS"
16704 cat >conftest.$ac_ext <<_ACEOF
16705 #line $LINENO "configure"
16706 /* confdefs.h.  */
16707 _ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h.  */
16711
16712 /* Override any gcc2 internal prototype to avoid an error.  */
16713 #ifdef __cplusplus
16714 extern "C"
16715 #endif
16716 /* We use char because int might match the return type of a gcc2
16717    builtin and then its argument prototype would still apply.  */
16718 char shl_load ();
16719 int
16720 main ()
16721 {
16722 shl_load ();
16723   ;
16724   return 0;
16725 }
16726 _ACEOF
16727 rm -f conftest.$ac_objext conftest$ac_exeext
16728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16729   (eval $ac_link) 2>&5
16730   ac_status=$?
16731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732   (exit $ac_status); } &&
16733          { ac_try='test -s conftest$ac_exeext'
16734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735   (eval $ac_try) 2>&5
16736   ac_status=$?
16737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738   (exit $ac_status); }; }; then
16739   ac_cv_lib_dld_shl_load=yes
16740 else
16741   echo "$as_me: failed program was:" >&5
16742 sed 's/^/| /' conftest.$ac_ext >&5
16743
16744 ac_cv_lib_dld_shl_load=no
16745 fi
16746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16747 LIBS=$ac_check_lib_save_LIBS
16748 fi
16749 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16750 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16751 if test $ac_cv_lib_dld_shl_load = yes; then
16752   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16753 else
16754   echo "$as_me:$LINENO: checking for dlopen" >&5
16755 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16756 if test "${ac_cv_func_dlopen+set}" = set; then
16757   echo $ECHO_N "(cached) $ECHO_C" >&6
16758 else
16759   cat >conftest.$ac_ext <<_ACEOF
16760 #line $LINENO "configure"
16761 /* confdefs.h.  */
16762 _ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h.  */
16766 /* System header to define __stub macros and hopefully few prototypes,
16767     which can conflict with char dlopen (); below.
16768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16769     <limits.h> exists even on freestanding compilers.  */
16770 #ifdef __STDC__
16771 # include <limits.h>
16772 #else
16773 # include <assert.h>
16774 #endif
16775 /* Override any gcc2 internal prototype to avoid an error.  */
16776 #ifdef __cplusplus
16777 extern "C"
16778 {
16779 #endif
16780 /* We use char because int might match the return type of a gcc2
16781    builtin and then its argument prototype would still apply.  */
16782 char dlopen ();
16783 /* The GNU C library defines this for functions which it implements
16784     to always fail with ENOSYS.  Some functions are actually named
16785     something starting with __ and the normal name is an alias.  */
16786 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16787 choke me
16788 #else
16789 char (*f) () = dlopen;
16790 #endif
16791 #ifdef __cplusplus
16792 }
16793 #endif
16794
16795 int
16796 main ()
16797 {
16798 return f != dlopen;
16799   ;
16800   return 0;
16801 }
16802 _ACEOF
16803 rm -f conftest.$ac_objext conftest$ac_exeext
16804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16805   (eval $ac_link) 2>&5
16806   ac_status=$?
16807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808   (exit $ac_status); } &&
16809          { ac_try='test -s conftest$ac_exeext'
16810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811   (eval $ac_try) 2>&5
16812   ac_status=$?
16813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814   (exit $ac_status); }; }; then
16815   ac_cv_func_dlopen=yes
16816 else
16817   echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16819
16820 ac_cv_func_dlopen=no
16821 fi
16822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16823 fi
16824 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16825 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16826 if test $ac_cv_func_dlopen = yes; then
16827   lt_cv_dlopen="dlopen"
16828 else
16829   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16830 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16831 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16832   echo $ECHO_N "(cached) $ECHO_C" >&6
16833 else
16834   ac_check_lib_save_LIBS=$LIBS
16835 LIBS="-ldl  $LIBS"
16836 cat >conftest.$ac_ext <<_ACEOF
16837 #line $LINENO "configure"
16838 /* confdefs.h.  */
16839 _ACEOF
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h.  */
16843
16844 /* Override any gcc2 internal prototype to avoid an error.  */
16845 #ifdef __cplusplus
16846 extern "C"
16847 #endif
16848 /* We use char because int might match the return type of a gcc2
16849    builtin and then its argument prototype would still apply.  */
16850 char dlopen ();
16851 int
16852 main ()
16853 {
16854 dlopen ();
16855   ;
16856   return 0;
16857 }
16858 _ACEOF
16859 rm -f conftest.$ac_objext conftest$ac_exeext
16860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16861   (eval $ac_link) 2>&5
16862   ac_status=$?
16863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864   (exit $ac_status); } &&
16865          { ac_try='test -s conftest$ac_exeext'
16866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867   (eval $ac_try) 2>&5
16868   ac_status=$?
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); }; }; then
16871   ac_cv_lib_dl_dlopen=yes
16872 else
16873   echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16875
16876 ac_cv_lib_dl_dlopen=no
16877 fi
16878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16879 LIBS=$ac_check_lib_save_LIBS
16880 fi
16881 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16882 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16883 if test $ac_cv_lib_dl_dlopen = yes; then
16884   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16885 else
16886   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16887 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16888 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16889   echo $ECHO_N "(cached) $ECHO_C" >&6
16890 else
16891   ac_check_lib_save_LIBS=$LIBS
16892 LIBS="-lsvld  $LIBS"
16893 cat >conftest.$ac_ext <<_ACEOF
16894 #line $LINENO "configure"
16895 /* confdefs.h.  */
16896 _ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h.  */
16900
16901 /* Override any gcc2 internal prototype to avoid an error.  */
16902 #ifdef __cplusplus
16903 extern "C"
16904 #endif
16905 /* We use char because int might match the return type of a gcc2
16906    builtin and then its argument prototype would still apply.  */
16907 char dlopen ();
16908 int
16909 main ()
16910 {
16911 dlopen ();
16912   ;
16913   return 0;
16914 }
16915 _ACEOF
16916 rm -f conftest.$ac_objext conftest$ac_exeext
16917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16918   (eval $ac_link) 2>&5
16919   ac_status=$?
16920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921   (exit $ac_status); } &&
16922          { ac_try='test -s conftest$ac_exeext'
16923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924   (eval $ac_try) 2>&5
16925   ac_status=$?
16926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927   (exit $ac_status); }; }; then
16928   ac_cv_lib_svld_dlopen=yes
16929 else
16930   echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16932
16933 ac_cv_lib_svld_dlopen=no
16934 fi
16935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16936 LIBS=$ac_check_lib_save_LIBS
16937 fi
16938 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16939 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16940 if test $ac_cv_lib_svld_dlopen = yes; then
16941   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16942 else
16943   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16944 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16945 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16946   echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948   ac_check_lib_save_LIBS=$LIBS
16949 LIBS="-ldld  $LIBS"
16950 cat >conftest.$ac_ext <<_ACEOF
16951 #line $LINENO "configure"
16952 /* confdefs.h.  */
16953 _ACEOF
16954 cat confdefs.h >>conftest.$ac_ext
16955 cat >>conftest.$ac_ext <<_ACEOF
16956 /* end confdefs.h.  */
16957
16958 /* Override any gcc2 internal prototype to avoid an error.  */
16959 #ifdef __cplusplus
16960 extern "C"
16961 #endif
16962 /* We use char because int might match the return type of a gcc2
16963    builtin and then its argument prototype would still apply.  */
16964 char dld_link ();
16965 int
16966 main ()
16967 {
16968 dld_link ();
16969   ;
16970   return 0;
16971 }
16972 _ACEOF
16973 rm -f conftest.$ac_objext conftest$ac_exeext
16974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16975   (eval $ac_link) 2>&5
16976   ac_status=$?
16977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978   (exit $ac_status); } &&
16979          { ac_try='test -s conftest$ac_exeext'
16980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981   (eval $ac_try) 2>&5
16982   ac_status=$?
16983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984   (exit $ac_status); }; }; then
16985   ac_cv_lib_dld_dld_link=yes
16986 else
16987   echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.$ac_ext >&5
16989
16990 ac_cv_lib_dld_dld_link=no
16991 fi
16992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16993 LIBS=$ac_check_lib_save_LIBS
16994 fi
16995 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16996 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16997 if test $ac_cv_lib_dld_dld_link = yes; then
16998   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16999 fi
17000
17001
17002 fi
17003
17004
17005 fi
17006
17007
17008 fi
17009
17010
17011 fi
17012
17013
17014 fi
17015
17016     ;;
17017   esac
17018
17019   if test "x$lt_cv_dlopen" != xno; then
17020     enable_dlopen=yes
17021   else
17022     enable_dlopen=no
17023   fi
17024
17025   case $lt_cv_dlopen in
17026   dlopen)
17027     save_CPPFLAGS="$CPPFLAGS"
17028     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17029
17030     save_LDFLAGS="$LDFLAGS"
17031     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17032
17033     save_LIBS="$LIBS"
17034     LIBS="$lt_cv_dlopen_libs $LIBS"
17035
17036     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17037 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17038 if test "${lt_cv_dlopen_self+set}" = set; then
17039   echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041           if test "$cross_compiling" = yes; then :
17042   lt_cv_dlopen_self=cross
17043 else
17044   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17045   lt_status=$lt_dlunknown
17046   cat > conftest.$ac_ext <<EOF
17047 #line 17047 "configure"
17048 #include "confdefs.h"
17049
17050 #if HAVE_DLFCN_H
17051 #include <dlfcn.h>
17052 #endif
17053
17054 #include <stdio.h>
17055
17056 #ifdef RTLD_GLOBAL
17057 #  define LT_DLGLOBAL           RTLD_GLOBAL
17058 #else
17059 #  ifdef DL_GLOBAL
17060 #    define LT_DLGLOBAL         DL_GLOBAL
17061 #  else
17062 #    define LT_DLGLOBAL         0
17063 #  endif
17064 #endif
17065
17066 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17067    find out it does not work in some platform. */
17068 #ifndef LT_DLLAZY_OR_NOW
17069 #  ifdef RTLD_LAZY
17070 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17071 #  else
17072 #    ifdef DL_LAZY
17073 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17074 #    else
17075 #      ifdef RTLD_NOW
17076 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17077 #      else
17078 #        ifdef DL_NOW
17079 #          define LT_DLLAZY_OR_NOW      DL_NOW
17080 #        else
17081 #          define LT_DLLAZY_OR_NOW      0
17082 #        endif
17083 #      endif
17084 #    endif
17085 #  endif
17086 #endif
17087
17088 #ifdef __cplusplus
17089 extern "C" void exit (int);
17090 #endif
17091
17092 void fnord() { int i=42;}
17093 int main ()
17094 {
17095   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17096   int status = $lt_dlunknown;
17097
17098   if (self)
17099     {
17100       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17101       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17102       /* dlclose (self); */
17103     }
17104
17105     exit (status);
17106 }
17107 EOF
17108   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17109   (eval $ac_link) 2>&5
17110   ac_status=$?
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17113     (./conftest; exit; ) 2>/dev/null
17114     lt_status=$?
17115     case x$lt_status in
17116       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17117       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17118       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17119     esac
17120   else :
17121     # compilation failed
17122     lt_cv_dlopen_self=no
17123   fi
17124 fi
17125 rm -fr conftest*
17126
17127
17128 fi
17129 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17130 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17131
17132     if test "x$lt_cv_dlopen_self" = xyes; then
17133       LDFLAGS="$LDFLAGS $link_static_flag"
17134       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17135 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17136 if test "${lt_cv_dlopen_self_static+set}" = set; then
17137   echo $ECHO_N "(cached) $ECHO_C" >&6
17138 else
17139           if test "$cross_compiling" = yes; then :
17140   lt_cv_dlopen_self_static=cross
17141 else
17142   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17143   lt_status=$lt_dlunknown
17144   cat > conftest.$ac_ext <<EOF
17145 #line 17145 "configure"
17146 #include "confdefs.h"
17147
17148 #if HAVE_DLFCN_H
17149 #include <dlfcn.h>
17150 #endif
17151
17152 #include <stdio.h>
17153
17154 #ifdef RTLD_GLOBAL
17155 #  define LT_DLGLOBAL           RTLD_GLOBAL
17156 #else
17157 #  ifdef DL_GLOBAL
17158 #    define LT_DLGLOBAL         DL_GLOBAL
17159 #  else
17160 #    define LT_DLGLOBAL         0
17161 #  endif
17162 #endif
17163
17164 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17165    find out it does not work in some platform. */
17166 #ifndef LT_DLLAZY_OR_NOW
17167 #  ifdef RTLD_LAZY
17168 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17169 #  else
17170 #    ifdef DL_LAZY
17171 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17172 #    else
17173 #      ifdef RTLD_NOW
17174 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17175 #      else
17176 #        ifdef DL_NOW
17177 #          define LT_DLLAZY_OR_NOW      DL_NOW
17178 #        else
17179 #          define LT_DLLAZY_OR_NOW      0
17180 #        endif
17181 #      endif
17182 #    endif
17183 #  endif
17184 #endif
17185
17186 #ifdef __cplusplus
17187 extern "C" void exit (int);
17188 #endif
17189
17190 void fnord() { int i=42;}
17191 int main ()
17192 {
17193   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17194   int status = $lt_dlunknown;
17195
17196   if (self)
17197     {
17198       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17199       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17200       /* dlclose (self); */
17201     }
17202
17203     exit (status);
17204 }
17205 EOF
17206   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17207   (eval $ac_link) 2>&5
17208   ac_status=$?
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17211     (./conftest; exit; ) 2>/dev/null
17212     lt_status=$?
17213     case x$lt_status in
17214       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17215       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17216       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17217     esac
17218   else :
17219     # compilation failed
17220     lt_cv_dlopen_self_static=no
17221   fi
17222 fi
17223 rm -fr conftest*
17224
17225
17226 fi
17227 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17228 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17229     fi
17230
17231     CPPFLAGS="$save_CPPFLAGS"
17232     LDFLAGS="$save_LDFLAGS"
17233     LIBS="$save_LIBS"
17234     ;;
17235   esac
17236
17237   case $lt_cv_dlopen_self in
17238   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17239   *) enable_dlopen_self=unknown ;;
17240   esac
17241
17242   case $lt_cv_dlopen_self_static in
17243   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17244   *) enable_dlopen_self_static=unknown ;;
17245   esac
17246 fi
17247
17248
17249 # The else clause should only fire when bootstrapping the
17250 # libtool distribution, otherwise you forgot to ship ltmain.sh
17251 # with your package, and you will get complaints that there are
17252 # no rules to generate ltmain.sh.
17253 if test -f "$ltmain"; then
17254   # See if we are running on zsh, and set the options which allow our commands through
17255   # without removal of \ escapes.
17256   if test -n "${ZSH_VERSION+set}" ; then
17257     setopt NO_GLOB_SUBST
17258   fi
17259   # Now quote all the things that may contain metacharacters while being
17260   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17261   # variables and quote the copies for generation of the libtool script.
17262   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17263     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17264     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17265     deplibs_check_method reload_flag reload_cmds need_locks \
17266     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17267     lt_cv_sys_global_symbol_to_c_name_address \
17268     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17269     old_postinstall_cmds old_postuninstall_cmds \
17270     compiler_GCJ \
17271     CC_GCJ \
17272     LD_GCJ \
17273     lt_prog_compiler_wl_GCJ \
17274     lt_prog_compiler_pic_GCJ \
17275     lt_prog_compiler_static_GCJ \
17276     lt_prog_compiler_no_builtin_flag_GCJ \
17277     export_dynamic_flag_spec_GCJ \
17278     thread_safe_flag_spec_GCJ \
17279     whole_archive_flag_spec_GCJ \
17280     enable_shared_with_static_runtimes_GCJ \
17281     old_archive_cmds_GCJ \
17282     old_archive_from_new_cmds_GCJ \
17283     predep_objects_GCJ \
17284     postdep_objects_GCJ \
17285     predeps_GCJ \
17286     postdeps_GCJ \
17287     compiler_lib_search_path_GCJ \
17288     archive_cmds_GCJ \
17289     archive_expsym_cmds_GCJ \
17290     postinstall_cmds_GCJ \
17291     postuninstall_cmds_GCJ \
17292     old_archive_from_expsyms_cmds_GCJ \
17293     allow_undefined_flag_GCJ \
17294     no_undefined_flag_GCJ \
17295     export_symbols_cmds_GCJ \
17296     hardcode_libdir_flag_spec_GCJ \
17297     hardcode_libdir_flag_spec_ld_GCJ \
17298     hardcode_libdir_separator_GCJ \
17299     hardcode_automatic_GCJ \
17300     module_cmds_GCJ \
17301     module_expsym_cmds_GCJ \
17302     lt_cv_prog_compiler_c_o_GCJ \
17303     exclude_expsyms_GCJ \
17304     include_expsyms_GCJ; do
17305
17306     case $var in
17307     old_archive_cmds_GCJ | \
17308     old_archive_from_new_cmds_GCJ | \
17309     archive_cmds_GCJ | \
17310     archive_expsym_cmds_GCJ | \
17311     module_cmds_GCJ | \
17312     module_expsym_cmds_GCJ | \
17313     old_archive_from_expsyms_cmds_GCJ | \
17314     export_symbols_cmds_GCJ | \
17315     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17316     postinstall_cmds | postuninstall_cmds | \
17317     old_postinstall_cmds | old_postuninstall_cmds | \
17318     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17319       # Double-quote double-evaled strings.
17320       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17321       ;;
17322     *)
17323       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17324       ;;
17325     esac
17326   done
17327
17328   case $lt_echo in
17329   *'\$0 --fallback-echo"')
17330     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17331     ;;
17332   esac
17333
17334 cfgfile="$ofile"
17335
17336   cat <<__EOF__ >> "$cfgfile"
17337 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17338
17339 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17340
17341 # Shell to use when invoking shell scripts.
17342 SHELL=$lt_SHELL
17343
17344 # Whether or not to build shared libraries.
17345 build_libtool_libs=$enable_shared
17346
17347 # Whether or not to build static libraries.
17348 build_old_libs=$enable_static
17349
17350 # Whether or not to add -lc for building shared libraries.
17351 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17352
17353 # Whether or not to disallow shared libs when runtime libs are static
17354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17355
17356 # Whether or not to optimize for fast installation.
17357 fast_install=$enable_fast_install
17358
17359 # The host system.
17360 host_alias=$host_alias
17361 host=$host
17362
17363 # An echo program that does not interpret backslashes.
17364 echo=$lt_echo
17365
17366 # The archiver.
17367 AR=$lt_AR
17368 AR_FLAGS=$lt_AR_FLAGS
17369
17370 # A C compiler.
17371 LTCC=$lt_LTCC
17372
17373 # A language-specific compiler.
17374 CC=$lt_compiler_GCJ
17375
17376 # Is the compiler the GNU C compiler?
17377 with_gcc=$GCC_GCJ
17378
17379 # An ERE matcher.
17380 EGREP=$lt_EGREP
17381
17382 # The linker used to build libraries.
17383 LD=$lt_LD_GCJ
17384
17385 # Whether we need hard or soft links.
17386 LN_S=$lt_LN_S
17387
17388 # A BSD-compatible nm program.
17389 NM=$lt_NM
17390
17391 # A symbol stripping program
17392 STRIP=$STRIP
17393
17394 # Used to examine libraries when file_magic_cmd begins "file"
17395 MAGIC_CMD=$MAGIC_CMD
17396
17397 # Used on cygwin: DLL creation program.
17398 DLLTOOL="$DLLTOOL"
17399
17400 # Used on cygwin: object dumper.
17401 OBJDUMP="$OBJDUMP"
17402
17403 # Used on cygwin: assembler.
17404 AS="$AS"
17405
17406 # The name of the directory that contains temporary libtool files.
17407 objdir=$objdir
17408
17409 # How to create reloadable object files.
17410 reload_flag=$lt_reload_flag
17411 reload_cmds=$lt_reload_cmds
17412
17413 # How to pass a linker flag through the compiler.
17414 wl=$lt_lt_prog_compiler_wl_GCJ
17415
17416 # Object file suffix (normally "o").
17417 objext="$ac_objext"
17418
17419 # Old archive suffix (normally "a").
17420 libext="$libext"
17421
17422 # Shared library suffix (normally ".so").
17423 shrext='$shrext'
17424
17425 # Executable file suffix (normally "").
17426 exeext="$exeext"
17427
17428 # Additional compiler flags for building library objects.
17429 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17430 pic_mode=$pic_mode
17431
17432 # What is the maximum length of a command?
17433 max_cmd_len=$lt_cv_sys_max_cmd_len
17434
17435 # Does compiler simultaneously support -c and -o options?
17436 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17437
17438 # Must we lock files when doing compilation ?
17439 need_locks=$lt_need_locks
17440
17441 # Do we need the lib prefix for modules?
17442 need_lib_prefix=$need_lib_prefix
17443
17444 # Do we need a version for libraries?
17445 need_version=$need_version
17446
17447 # Whether dlopen is supported.
17448 dlopen_support=$enable_dlopen
17449
17450 # Whether dlopen of programs is supported.
17451 dlopen_self=$enable_dlopen_self
17452
17453 # Whether dlopen of statically linked programs is supported.
17454 dlopen_self_static=$enable_dlopen_self_static
17455
17456 # Compiler flag to prevent dynamic linking.
17457 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17458
17459 # Compiler flag to turn off builtin functions.
17460 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17461
17462 # Compiler flag to allow reflexive dlopens.
17463 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17464
17465 # Compiler flag to generate shared objects directly from archives.
17466 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17467
17468 # Compiler flag to generate thread-safe objects.
17469 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17470
17471 # Library versioning type.
17472 version_type=$version_type
17473
17474 # Format of library name prefix.
17475 libname_spec=$lt_libname_spec
17476
17477 # List of archive names.  First name is the real one, the rest are links.
17478 # The last name is the one that the linker finds with -lNAME.
17479 library_names_spec=$lt_library_names_spec
17480
17481 # The coded name of the library, if different from the real name.
17482 soname_spec=$lt_soname_spec
17483
17484 # Commands used to build and install an old-style archive.
17485 RANLIB=$lt_RANLIB
17486 old_archive_cmds=$lt_old_archive_cmds_GCJ
17487 old_postinstall_cmds=$lt_old_postinstall_cmds
17488 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17489
17490 # Create an old-style archive from a shared archive.
17491 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17492
17493 # Create a temporary old-style archive to link instead of a shared archive.
17494 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17495
17496 # Commands used to build and install a shared archive.
17497 archive_cmds=$lt_archive_cmds_GCJ
17498 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17499 postinstall_cmds=$lt_postinstall_cmds
17500 postuninstall_cmds=$lt_postuninstall_cmds
17501
17502 # Commands used to build a loadable module (assumed same as above if empty)
17503 module_cmds=$lt_module_cmds_GCJ
17504 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17505
17506 # Commands to strip libraries.
17507 old_striplib=$lt_old_striplib
17508 striplib=$lt_striplib
17509
17510 # Dependencies to place before the objects being linked to create a
17511 # shared library.
17512 predep_objects=$lt_predep_objects_GCJ
17513
17514 # Dependencies to place after the objects being linked to create a
17515 # shared library.
17516 postdep_objects=$lt_postdep_objects_GCJ
17517
17518 # Dependencies to place before the objects being linked to create a
17519 # shared library.
17520 predeps=$lt_predeps_GCJ
17521
17522 # Dependencies to place after the objects being linked to create a
17523 # shared library.
17524 postdeps=$lt_postdeps_GCJ
17525
17526 # The library search path used internally by the compiler when linking
17527 # a shared library.
17528 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17529
17530 # Method to check whether dependent libraries are shared objects.
17531 deplibs_check_method=$lt_deplibs_check_method
17532
17533 # Command to use when deplibs_check_method == file_magic.
17534 file_magic_cmd=$lt_file_magic_cmd
17535
17536 # Flag that allows shared libraries with undefined symbols to be built.
17537 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17538
17539 # Flag that forces no undefined symbols.
17540 no_undefined_flag=$lt_no_undefined_flag_GCJ
17541
17542 # Commands used to finish a libtool library installation in a directory.
17543 finish_cmds=$lt_finish_cmds
17544
17545 # Same as above, but a single script fragment to be evaled but not shown.
17546 finish_eval=$lt_finish_eval
17547
17548 # Take the output of nm and produce a listing of raw symbols and C names.
17549 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17550
17551 # Transform the output of nm in a proper C declaration
17552 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17553
17554 # Transform the output of nm in a C name address pair
17555 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17556
17557 # This is the shared library runtime path variable.
17558 runpath_var=$runpath_var
17559
17560 # This is the shared library path variable.
17561 shlibpath_var=$shlibpath_var
17562
17563 # Is shlibpath searched before the hard-coded library search path?
17564 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17565
17566 # How to hardcode a shared library path into an executable.
17567 hardcode_action=$hardcode_action_GCJ
17568
17569 # Whether we should hardcode library paths into libraries.
17570 hardcode_into_libs=$hardcode_into_libs
17571
17572 # Flag to hardcode \$libdir into a binary during linking.
17573 # This must work even if \$libdir does not exist.
17574 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17575
17576 # If ld is used when linking, flag to hardcode \$libdir into
17577 # a binary during linking. This must work even if \$libdir does
17578 # not exist.
17579 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17580
17581 # Whether we need a single -rpath flag with a separated argument.
17582 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17583
17584 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17585 # resulting binary.
17586 hardcode_direct=$hardcode_direct_GCJ
17587
17588 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17589 # resulting binary.
17590 hardcode_minus_L=$hardcode_minus_L_GCJ
17591
17592 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17593 # the resulting binary.
17594 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17595
17596 # Set to yes if building a shared library automatically hardcodes DIR into the library
17597 # and all subsequent libraries and executables linked against it.
17598 hardcode_automatic=$hardcode_automatic_GCJ
17599
17600 # Variables whose values should be saved in libtool wrapper scripts and
17601 # restored at relink time.
17602 variables_saved_for_relink="$variables_saved_for_relink"
17603
17604 # Whether libtool must link a program against all its dependency libraries.
17605 link_all_deplibs=$link_all_deplibs_GCJ
17606
17607 # Compile-time system search path for libraries
17608 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17609
17610 # Run-time system search path for libraries
17611 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17612
17613 # Fix the shell variable \$srcfile for the compiler.
17614 fix_srcfile_path="$fix_srcfile_path_GCJ"
17615
17616 # Set to yes if exported symbols are required.
17617 always_export_symbols=$always_export_symbols_GCJ
17618
17619 # The commands to list exported symbols.
17620 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17621
17622 # The commands to extract the exported symbol list from a shared archive.
17623 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17624
17625 # Symbols that should not be listed in the preloaded symbols.
17626 exclude_expsyms=$lt_exclude_expsyms_GCJ
17627
17628 # Symbols that must always be exported.
17629 include_expsyms=$lt_include_expsyms_GCJ
17630
17631 # ### END LIBTOOL TAG CONFIG: $tagname
17632
17633 __EOF__
17634
17635
17636 else
17637   # If there is no Makefile yet, we rely on a make rule to execute
17638   # `config.status --recheck' to rerun these tests and create the
17639   # libtool script then.
17640   test -f Makefile && make "$ltmain"
17641 fi
17642
17643
17644 ac_ext=c
17645 ac_cpp='$CPP $CPPFLAGS'
17646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17649
17650 CC="$lt_save_CC"
17651
17652         else
17653           tagname=""
17654         fi
17655         ;;
17656
17657       RC)
17658
17659
17660
17661 # Source file extension for RC test sources.
17662 ac_ext=rc
17663
17664 # Object file extension for compiled RC test sources.
17665 objext=o
17666 objext_RC=$objext
17667
17668 # Code to be used in simple compile tests
17669 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17670
17671 # Code to be used in simple link tests
17672 lt_simple_link_test_code="$lt_simple_compile_test_code"
17673
17674 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17675
17676 # If no C compiler was specified, use CC.
17677 LTCC=${LTCC-"$CC"}
17678
17679 # Allow CC to be a program name with arguments.
17680 compiler=$CC
17681
17682
17683 # Allow CC to be a program name with arguments.
17684 lt_save_CC="$CC"
17685 CC=${RC-"windres"}
17686 compiler=$CC
17687 compiler_RC=$CC
17688 lt_cv_prog_compiler_c_o_RC=yes
17689
17690 # The else clause should only fire when bootstrapping the
17691 # libtool distribution, otherwise you forgot to ship ltmain.sh
17692 # with your package, and you will get complaints that there are
17693 # no rules to generate ltmain.sh.
17694 if test -f "$ltmain"; then
17695   # See if we are running on zsh, and set the options which allow our commands through
17696   # without removal of \ escapes.
17697   if test -n "${ZSH_VERSION+set}" ; then
17698     setopt NO_GLOB_SUBST
17699   fi
17700   # Now quote all the things that may contain metacharacters while being
17701   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17702   # variables and quote the copies for generation of the libtool script.
17703   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17704     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17705     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17706     deplibs_check_method reload_flag reload_cmds need_locks \
17707     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17708     lt_cv_sys_global_symbol_to_c_name_address \
17709     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17710     old_postinstall_cmds old_postuninstall_cmds \
17711     compiler_RC \
17712     CC_RC \
17713     LD_RC \
17714     lt_prog_compiler_wl_RC \
17715     lt_prog_compiler_pic_RC \
17716     lt_prog_compiler_static_RC \
17717     lt_prog_compiler_no_builtin_flag_RC \
17718     export_dynamic_flag_spec_RC \
17719     thread_safe_flag_spec_RC \
17720     whole_archive_flag_spec_RC \
17721     enable_shared_with_static_runtimes_RC \
17722     old_archive_cmds_RC \
17723     old_archive_from_new_cmds_RC \
17724     predep_objects_RC \
17725     postdep_objects_RC \
17726     predeps_RC \
17727     postdeps_RC \
17728     compiler_lib_search_path_RC \
17729     archive_cmds_RC \
17730     archive_expsym_cmds_RC \
17731     postinstall_cmds_RC \
17732     postuninstall_cmds_RC \
17733     old_archive_from_expsyms_cmds_RC \
17734     allow_undefined_flag_RC \
17735     no_undefined_flag_RC \
17736     export_symbols_cmds_RC \
17737     hardcode_libdir_flag_spec_RC \
17738     hardcode_libdir_flag_spec_ld_RC \
17739     hardcode_libdir_separator_RC \
17740     hardcode_automatic_RC \
17741     module_cmds_RC \
17742     module_expsym_cmds_RC \
17743     lt_cv_prog_compiler_c_o_RC \
17744     exclude_expsyms_RC \
17745     include_expsyms_RC; do
17746
17747     case $var in
17748     old_archive_cmds_RC | \
17749     old_archive_from_new_cmds_RC | \
17750     archive_cmds_RC | \
17751     archive_expsym_cmds_RC | \
17752     module_cmds_RC | \
17753     module_expsym_cmds_RC | \
17754     old_archive_from_expsyms_cmds_RC | \
17755     export_symbols_cmds_RC | \
17756     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17757     postinstall_cmds | postuninstall_cmds | \
17758     old_postinstall_cmds | old_postuninstall_cmds | \
17759     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17760       # Double-quote double-evaled strings.
17761       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17762       ;;
17763     *)
17764       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17765       ;;
17766     esac
17767   done
17768
17769   case $lt_echo in
17770   *'\$0 --fallback-echo"')
17771     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17772     ;;
17773   esac
17774
17775 cfgfile="$ofile"
17776
17777   cat <<__EOF__ >> "$cfgfile"
17778 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17779
17780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17781
17782 # Shell to use when invoking shell scripts.
17783 SHELL=$lt_SHELL
17784
17785 # Whether or not to build shared libraries.
17786 build_libtool_libs=$enable_shared
17787
17788 # Whether or not to build static libraries.
17789 build_old_libs=$enable_static
17790
17791 # Whether or not to add -lc for building shared libraries.
17792 build_libtool_need_lc=$archive_cmds_need_lc_RC
17793
17794 # Whether or not to disallow shared libs when runtime libs are static
17795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17796
17797 # Whether or not to optimize for fast installation.
17798 fast_install=$enable_fast_install
17799
17800 # The host system.
17801 host_alias=$host_alias
17802 host=$host
17803
17804 # An echo program that does not interpret backslashes.
17805 echo=$lt_echo
17806
17807 # The archiver.
17808 AR=$lt_AR
17809 AR_FLAGS=$lt_AR_FLAGS
17810
17811 # A C compiler.
17812 LTCC=$lt_LTCC
17813
17814 # A language-specific compiler.
17815 CC=$lt_compiler_RC
17816
17817 # Is the compiler the GNU C compiler?
17818 with_gcc=$GCC_RC
17819
17820 # An ERE matcher.
17821 EGREP=$lt_EGREP
17822
17823 # The linker used to build libraries.
17824 LD=$lt_LD_RC
17825
17826 # Whether we need hard or soft links.
17827 LN_S=$lt_LN_S
17828
17829 # A BSD-compatible nm program.
17830 NM=$lt_NM
17831
17832 # A symbol stripping program
17833 STRIP=$STRIP
17834
17835 # Used to examine libraries when file_magic_cmd begins "file"
17836 MAGIC_CMD=$MAGIC_CMD
17837
17838 # Used on cygwin: DLL creation program.
17839 DLLTOOL="$DLLTOOL"
17840
17841 # Used on cygwin: object dumper.
17842 OBJDUMP="$OBJDUMP"
17843
17844 # Used on cygwin: assembler.
17845 AS="$AS"
17846
17847 # The name of the directory that contains temporary libtool files.
17848 objdir=$objdir
17849
17850 # How to create reloadable object files.
17851 reload_flag=$lt_reload_flag
17852 reload_cmds=$lt_reload_cmds
17853
17854 # How to pass a linker flag through the compiler.
17855 wl=$lt_lt_prog_compiler_wl_RC
17856
17857 # Object file suffix (normally "o").
17858 objext="$ac_objext"
17859
17860 # Old archive suffix (normally "a").
17861 libext="$libext"
17862
17863 # Shared library suffix (normally ".so").
17864 shrext='$shrext'
17865
17866 # Executable file suffix (normally "").
17867 exeext="$exeext"
17868
17869 # Additional compiler flags for building library objects.
17870 pic_flag=$lt_lt_prog_compiler_pic_RC
17871 pic_mode=$pic_mode
17872
17873 # What is the maximum length of a command?
17874 max_cmd_len=$lt_cv_sys_max_cmd_len
17875
17876 # Does compiler simultaneously support -c and -o options?
17877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17878
17879 # Must we lock files when doing compilation ?
17880 need_locks=$lt_need_locks
17881
17882 # Do we need the lib prefix for modules?
17883 need_lib_prefix=$need_lib_prefix
17884
17885 # Do we need a version for libraries?
17886 need_version=$need_version
17887
17888 # Whether dlopen is supported.
17889 dlopen_support=$enable_dlopen
17890
17891 # Whether dlopen of programs is supported.
17892 dlopen_self=$enable_dlopen_self
17893
17894 # Whether dlopen of statically linked programs is supported.
17895 dlopen_self_static=$enable_dlopen_self_static
17896
17897 # Compiler flag to prevent dynamic linking.
17898 link_static_flag=$lt_lt_prog_compiler_static_RC
17899
17900 # Compiler flag to turn off builtin functions.
17901 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17902
17903 # Compiler flag to allow reflexive dlopens.
17904 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17905
17906 # Compiler flag to generate shared objects directly from archives.
17907 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17908
17909 # Compiler flag to generate thread-safe objects.
17910 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17911
17912 # Library versioning type.
17913 version_type=$version_type
17914
17915 # Format of library name prefix.
17916 libname_spec=$lt_libname_spec
17917
17918 # List of archive names.  First name is the real one, the rest are links.
17919 # The last name is the one that the linker finds with -lNAME.
17920 library_names_spec=$lt_library_names_spec
17921
17922 # The coded name of the library, if different from the real name.
17923 soname_spec=$lt_soname_spec
17924
17925 # Commands used to build and install an old-style archive.
17926 RANLIB=$lt_RANLIB
17927 old_archive_cmds=$lt_old_archive_cmds_RC
17928 old_postinstall_cmds=$lt_old_postinstall_cmds
17929 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17930
17931 # Create an old-style archive from a shared archive.
17932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17933
17934 # Create a temporary old-style archive to link instead of a shared archive.
17935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17936
17937 # Commands used to build and install a shared archive.
17938 archive_cmds=$lt_archive_cmds_RC
17939 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17940 postinstall_cmds=$lt_postinstall_cmds
17941 postuninstall_cmds=$lt_postuninstall_cmds
17942
17943 # Commands used to build a loadable module (assumed same as above if empty)
17944 module_cmds=$lt_module_cmds_RC
17945 module_expsym_cmds=$lt_module_expsym_cmds_RC
17946
17947 # Commands to strip libraries.
17948 old_striplib=$lt_old_striplib
17949 striplib=$lt_striplib
17950
17951 # Dependencies to place before the objects being linked to create a
17952 # shared library.
17953 predep_objects=$lt_predep_objects_RC
17954
17955 # Dependencies to place after the objects being linked to create a
17956 # shared library.
17957 postdep_objects=$lt_postdep_objects_RC
17958
17959 # Dependencies to place before the objects being linked to create a
17960 # shared library.
17961 predeps=$lt_predeps_RC
17962
17963 # Dependencies to place after the objects being linked to create a
17964 # shared library.
17965 postdeps=$lt_postdeps_RC
17966
17967 # The library search path used internally by the compiler when linking
17968 # a shared library.
17969 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17970
17971 # Method to check whether dependent libraries are shared objects.
17972 deplibs_check_method=$lt_deplibs_check_method
17973
17974 # Command to use when deplibs_check_method == file_magic.
17975 file_magic_cmd=$lt_file_magic_cmd
17976
17977 # Flag that allows shared libraries with undefined symbols to be built.
17978 allow_undefined_flag=$lt_allow_undefined_flag_RC
17979
17980 # Flag that forces no undefined symbols.
17981 no_undefined_flag=$lt_no_undefined_flag_RC
17982
17983 # Commands used to finish a libtool library installation in a directory.
17984 finish_cmds=$lt_finish_cmds
17985
17986 # Same as above, but a single script fragment to be evaled but not shown.
17987 finish_eval=$lt_finish_eval
17988
17989 # Take the output of nm and produce a listing of raw symbols and C names.
17990 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17991
17992 # Transform the output of nm in a proper C declaration
17993 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17994
17995 # Transform the output of nm in a C name address pair
17996 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17997
17998 # This is the shared library runtime path variable.
17999 runpath_var=$runpath_var
18000
18001 # This is the shared library path variable.
18002 shlibpath_var=$shlibpath_var
18003
18004 # Is shlibpath searched before the hard-coded library search path?
18005 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18006
18007 # How to hardcode a shared library path into an executable.
18008 hardcode_action=$hardcode_action_RC
18009
18010 # Whether we should hardcode library paths into libraries.
18011 hardcode_into_libs=$hardcode_into_libs
18012
18013 # Flag to hardcode \$libdir into a binary during linking.
18014 # This must work even if \$libdir does not exist.
18015 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18016
18017 # If ld is used when linking, flag to hardcode \$libdir into
18018 # a binary during linking. This must work even if \$libdir does
18019 # not exist.
18020 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18021
18022 # Whether we need a single -rpath flag with a separated argument.
18023 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18024
18025 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18026 # resulting binary.
18027 hardcode_direct=$hardcode_direct_RC
18028
18029 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18030 # resulting binary.
18031 hardcode_minus_L=$hardcode_minus_L_RC
18032
18033 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18034 # the resulting binary.
18035 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18036
18037 # Set to yes if building a shared library automatically hardcodes DIR into the library
18038 # and all subsequent libraries and executables linked against it.
18039 hardcode_automatic=$hardcode_automatic_RC
18040
18041 # Variables whose values should be saved in libtool wrapper scripts and
18042 # restored at relink time.
18043 variables_saved_for_relink="$variables_saved_for_relink"
18044
18045 # Whether libtool must link a program against all its dependency libraries.
18046 link_all_deplibs=$link_all_deplibs_RC
18047
18048 # Compile-time system search path for libraries
18049 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18050
18051 # Run-time system search path for libraries
18052 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18053
18054 # Fix the shell variable \$srcfile for the compiler.
18055 fix_srcfile_path="$fix_srcfile_path_RC"
18056
18057 # Set to yes if exported symbols are required.
18058 always_export_symbols=$always_export_symbols_RC
18059
18060 # The commands to list exported symbols.
18061 export_symbols_cmds=$lt_export_symbols_cmds_RC
18062
18063 # The commands to extract the exported symbol list from a shared archive.
18064 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18065
18066 # Symbols that should not be listed in the preloaded symbols.
18067 exclude_expsyms=$lt_exclude_expsyms_RC
18068
18069 # Symbols that must always be exported.
18070 include_expsyms=$lt_include_expsyms_RC
18071
18072 # ### END LIBTOOL TAG CONFIG: $tagname
18073
18074 __EOF__
18075
18076
18077 else
18078   # If there is no Makefile yet, we rely on a make rule to execute
18079   # `config.status --recheck' to rerun these tests and create the
18080   # libtool script then.
18081   test -f Makefile && make "$ltmain"
18082 fi
18083
18084
18085 ac_ext=c
18086 ac_cpp='$CPP $CPPFLAGS'
18087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18090
18091 CC="$lt_save_CC"
18092
18093         ;;
18094
18095       *)
18096         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18097 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18098    { (exit 1); exit 1; }; }
18099         ;;
18100       esac
18101
18102       # Append the new tag name to the list of available tags.
18103       if test -n "$tagname" ; then
18104       available_tags="$available_tags $tagname"
18105     fi
18106     fi
18107   done
18108   IFS="$lt_save_ifs"
18109
18110   # Now substitute the updated list of available tags.
18111   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18112     mv "${ofile}T" "$ofile"
18113     chmod +x "$ofile"
18114   else
18115     rm -f "${ofile}T"
18116     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18117 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18118    { (exit 1); exit 1; }; }
18119   fi
18120 fi
18121
18122
18123
18124 # This can be used to rebuild libtool when needed
18125 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18126
18127 # Always use our own libtool.
18128 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18129
18130 # Prevent multiple expansion
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152 # Extract the first word of "dot", so it can be a program name with args.
18153 set dummy dot; ac_word=$2
18154 echo "$as_me:$LINENO: checking for $ac_word" >&5
18155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18156 if test "${ac_cv_path_DOT+set}" = set; then
18157   echo $ECHO_N "(cached) $ECHO_C" >&6
18158 else
18159   case $DOT in
18160   [\\/]* | ?:[\\/]*)
18161   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18162   ;;
18163   *)
18164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18165 for as_dir in $PATH
18166 do
18167   IFS=$as_save_IFS
18168   test -z "$as_dir" && as_dir=.
18169   for ac_exec_ext in '' $ac_executable_extensions; do
18170   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18171     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18173     break 2
18174   fi
18175 done
18176 done
18177
18178   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18179   ;;
18180 esac
18181 fi
18182 DOT=$ac_cv_path_DOT
18183
18184 if test -n "$DOT"; then
18185   echo "$as_me:$LINENO: result: $DOT" >&5
18186 echo "${ECHO_T}$DOT" >&6
18187 else
18188   echo "$as_me:$LINENO: result: no" >&5
18189 echo "${ECHO_T}no" >&6
18190 fi
18191
18192 # Extract the first word of "etags", so it can be a program name with args.
18193 set dummy etags; ac_word=$2
18194 echo "$as_me:$LINENO: checking for $ac_word" >&5
18195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18196 if test "${ac_cv_path_ETAGS+set}" = set; then
18197   echo $ECHO_N "(cached) $ECHO_C" >&6
18198 else
18199   case $ETAGS in
18200   [\\/]* | ?:[\\/]*)
18201   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18202   ;;
18203   *)
18204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18205 for as_dir in $PATH
18206 do
18207   IFS=$as_save_IFS
18208   test -z "$as_dir" && as_dir=.
18209   for ac_exec_ext in '' $ac_executable_extensions; do
18210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18211     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18213     break 2
18214   fi
18215 done
18216 done
18217
18218   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18219   ;;
18220 esac
18221 fi
18222 ETAGS=$ac_cv_path_ETAGS
18223
18224 if test -n "$ETAGS"; then
18225   echo "$as_me:$LINENO: result: $ETAGS" >&5
18226 echo "${ECHO_T}$ETAGS" >&6
18227 else
18228   echo "$as_me:$LINENO: result: no" >&5
18229 echo "${ECHO_T}no" >&6
18230 fi
18231
18232 etags_version=`$ETAGS --version 2>&1`
18233 case "$etags_version" in
18234         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18235         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18236         *) ETAGSFLAGS="" ;;
18237 esac
18238 ETAGSFLAGS=$ETAGSFLAGS
18239
18240 # Extract the first word of "python", so it can be a program name with args.
18241 set dummy python; ac_word=$2
18242 echo "$as_me:$LINENO: checking for $ac_word" >&5
18243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18244 if test "${ac_cv_path_PYTHON+set}" = set; then
18245   echo $ECHO_N "(cached) $ECHO_C" >&6
18246 else
18247   case $PYTHON in
18248   [\\/]* | ?:[\\/]*)
18249   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18250   ;;
18251   *)
18252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18253 for as_dir in $PATH
18254 do
18255   IFS=$as_save_IFS
18256   test -z "$as_dir" && as_dir=.
18257   for ac_exec_ext in '' $ac_executable_extensions; do
18258   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18259     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18261     break 2
18262   fi
18263 done
18264 done
18265
18266   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18267   ;;
18268 esac
18269 fi
18270 PYTHON=$ac_cv_path_PYTHON
18271
18272 if test -n "$PYTHON"; then
18273   echo "$as_me:$LINENO: result: $PYTHON" >&5
18274 echo "${ECHO_T}$PYTHON" >&6
18275 else
18276   echo "$as_me:$LINENO: result: no" >&5
18277 echo "${ECHO_T}no" >&6
18278 fi
18279
18280 if test "$PYTHON" = "false"
18281 then
18282         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18283 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18284 fi
18285 # Extract the first word of "qmtest", so it can be a program name with args.
18286 set dummy qmtest; ac_word=$2
18287 echo "$as_me:$LINENO: checking for $ac_word" >&5
18288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18289 if test "${ac_cv_path_QMTEST+set}" = set; then
18290   echo $ECHO_N "(cached) $ECHO_C" >&6
18291 else
18292   case $QMTEST in
18293   [\\/]* | ?:[\\/]*)
18294   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18295   ;;
18296   *)
18297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18298 for as_dir in $PATH
18299 do
18300   IFS=$as_save_IFS
18301   test -z "$as_dir" && as_dir=.
18302   for ac_exec_ext in '' $ac_executable_extensions; do
18303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18304     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18306     break 2
18307   fi
18308 done
18309 done
18310
18311   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18312   ;;
18313 esac
18314 fi
18315 QMTEST=$ac_cv_path_QMTEST
18316
18317 if test -n "$QMTEST"; then
18318   echo "$as_me:$LINENO: result: $QMTEST" >&5
18319 echo "${ECHO_T}$QMTEST" >&6
18320 else
18321   echo "$as_me:$LINENO: result: no" >&5
18322 echo "${ECHO_T}no" >&6
18323 fi
18324
18325 if test "$QMTEST" = "false"
18326 then
18327         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18328 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18329 fi
18330
18331 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18332 pymajor=`echo $pyversion | cut -d. -f1`
18333 pyminor=`echo $pyversion | cut -d. -f2`
18334
18335 if test "$pymajor" -ge "2"
18336 then
18337         if test "$pymajor" -eq "2"
18338         then
18339                 if test "$pyminor" -lt "2"
18340                 then
18341                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18342 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18343                 fi
18344         fi
18345 else
18346         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18347 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18348 fi
18349
18350
18351
18352
18353 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18354 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18355 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18356   echo $ECHO_N "(cached) $ECHO_C" >&6
18357 else
18358   ac_check_lib_save_LIBS=$LIBS
18359 LIBS="-lelf  $LIBS"
18360 cat >conftest.$ac_ext <<_ACEOF
18361 #line $LINENO "configure"
18362 /* confdefs.h.  */
18363 _ACEOF
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h.  */
18367
18368 /* Override any gcc2 internal prototype to avoid an error.  */
18369 #ifdef __cplusplus
18370 extern "C"
18371 #endif
18372 /* We use char because int might match the return type of a gcc2
18373    builtin and then its argument prototype would still apply.  */
18374 char elf_begin ();
18375 int
18376 main ()
18377 {
18378 elf_begin ();
18379   ;
18380   return 0;
18381 }
18382 _ACEOF
18383 rm -f conftest.$ac_objext conftest$ac_exeext
18384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18385   (eval $ac_link) 2>&5
18386   ac_status=$?
18387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388   (exit $ac_status); } &&
18389          { ac_try='test -s conftest$ac_exeext'
18390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391   (eval $ac_try) 2>&5
18392   ac_status=$?
18393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394   (exit $ac_status); }; }; then
18395   ac_cv_lib_elf_elf_begin=yes
18396 else
18397   echo "$as_me: failed program was:" >&5
18398 sed 's/^/| /' conftest.$ac_ext >&5
18399
18400 ac_cv_lib_elf_elf_begin=no
18401 fi
18402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18403 LIBS=$ac_check_lib_save_LIBS
18404 fi
18405 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18406 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18407 if test $ac_cv_lib_elf_elf_begin = yes; then
18408   cat >>confdefs.h <<_ACEOF
18409 #define HAVE_LIBELF 1
18410 _ACEOF
18411
18412   LIBS="-lelf $LIBS"
18413
18414 fi
18415
18416
18417 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18418 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18419 if test "${ac_cv_search_dlopen+set}" = set; then
18420   echo $ECHO_N "(cached) $ECHO_C" >&6
18421 else
18422   ac_func_search_save_LIBS=$LIBS
18423 ac_cv_search_dlopen=no
18424 cat >conftest.$ac_ext <<_ACEOF
18425 #line $LINENO "configure"
18426 /* confdefs.h.  */
18427 _ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h.  */
18431
18432 /* Override any gcc2 internal prototype to avoid an error.  */
18433 #ifdef __cplusplus
18434 extern "C"
18435 #endif
18436 /* We use char because int might match the return type of a gcc2
18437    builtin and then its argument prototype would still apply.  */
18438 char dlopen ();
18439 int
18440 main ()
18441 {
18442 dlopen ();
18443   ;
18444   return 0;
18445 }
18446 _ACEOF
18447 rm -f conftest.$ac_objext conftest$ac_exeext
18448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18449   (eval $ac_link) 2>&5
18450   ac_status=$?
18451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452   (exit $ac_status); } &&
18453          { ac_try='test -s conftest$ac_exeext'
18454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455   (eval $ac_try) 2>&5
18456   ac_status=$?
18457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458   (exit $ac_status); }; }; then
18459   ac_cv_search_dlopen="none required"
18460 else
18461   echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18463
18464 fi
18465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18466 if test "$ac_cv_search_dlopen" = no; then
18467   for ac_lib in dl; do
18468     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18469     cat >conftest.$ac_ext <<_ACEOF
18470 #line $LINENO "configure"
18471 /* confdefs.h.  */
18472 _ACEOF
18473 cat confdefs.h >>conftest.$ac_ext
18474 cat >>conftest.$ac_ext <<_ACEOF
18475 /* end confdefs.h.  */
18476
18477 /* Override any gcc2 internal prototype to avoid an error.  */
18478 #ifdef __cplusplus
18479 extern "C"
18480 #endif
18481 /* We use char because int might match the return type of a gcc2
18482    builtin and then its argument prototype would still apply.  */
18483 char dlopen ();
18484 int
18485 main ()
18486 {
18487 dlopen ();
18488   ;
18489   return 0;
18490 }
18491 _ACEOF
18492 rm -f conftest.$ac_objext conftest$ac_exeext
18493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18494   (eval $ac_link) 2>&5
18495   ac_status=$?
18496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497   (exit $ac_status); } &&
18498          { ac_try='test -s conftest$ac_exeext'
18499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500   (eval $ac_try) 2>&5
18501   ac_status=$?
18502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503   (exit $ac_status); }; }; then
18504   ac_cv_search_dlopen="-l$ac_lib"
18505 break
18506 else
18507   echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18509
18510 fi
18511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18512   done
18513 fi
18514 LIBS=$ac_func_search_save_LIBS
18515 fi
18516 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18517 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18518 if test "$ac_cv_search_dlopen" != no; then
18519   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18520
18521 cat >>confdefs.h <<\_ACEOF
18522 #define HAVE_DLOPEN 1
18523 _ACEOF
18524
18525 else
18526   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18527 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18528 fi
18529
18530
18531 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18532 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18533 if test "${ac_cv_search_mallinfo+set}" = set; then
18534   echo $ECHO_N "(cached) $ECHO_C" >&6
18535 else
18536   ac_func_search_save_LIBS=$LIBS
18537 ac_cv_search_mallinfo=no
18538 cat >conftest.$ac_ext <<_ACEOF
18539 #line $LINENO "configure"
18540 /* confdefs.h.  */
18541 _ACEOF
18542 cat confdefs.h >>conftest.$ac_ext
18543 cat >>conftest.$ac_ext <<_ACEOF
18544 /* end confdefs.h.  */
18545
18546 /* Override any gcc2 internal prototype to avoid an error.  */
18547 #ifdef __cplusplus
18548 extern "C"
18549 #endif
18550 /* We use char because int might match the return type of a gcc2
18551    builtin and then its argument prototype would still apply.  */
18552 char mallinfo ();
18553 int
18554 main ()
18555 {
18556 mallinfo ();
18557   ;
18558   return 0;
18559 }
18560 _ACEOF
18561 rm -f conftest.$ac_objext conftest$ac_exeext
18562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18563   (eval $ac_link) 2>&5
18564   ac_status=$?
18565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566   (exit $ac_status); } &&
18567          { ac_try='test -s conftest$ac_exeext'
18568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569   (eval $ac_try) 2>&5
18570   ac_status=$?
18571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572   (exit $ac_status); }; }; then
18573   ac_cv_search_mallinfo="none required"
18574 else
18575   echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18577
18578 fi
18579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18580 if test "$ac_cv_search_mallinfo" = no; then
18581   for ac_lib in malloc; do
18582     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18583     cat >conftest.$ac_ext <<_ACEOF
18584 #line $LINENO "configure"
18585 /* confdefs.h.  */
18586 _ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h.  */
18590
18591 /* Override any gcc2 internal prototype to avoid an error.  */
18592 #ifdef __cplusplus
18593 extern "C"
18594 #endif
18595 /* We use char because int might match the return type of a gcc2
18596    builtin and then its argument prototype would still apply.  */
18597 char mallinfo ();
18598 int
18599 main ()
18600 {
18601 mallinfo ();
18602   ;
18603   return 0;
18604 }
18605 _ACEOF
18606 rm -f conftest.$ac_objext conftest$ac_exeext
18607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18608   (eval $ac_link) 2>&5
18609   ac_status=$?
18610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611   (exit $ac_status); } &&
18612          { ac_try='test -s conftest$ac_exeext'
18613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614   (eval $ac_try) 2>&5
18615   ac_status=$?
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); }; }; then
18618   ac_cv_search_mallinfo="-l$ac_lib"
18619 break
18620 else
18621   echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18623
18624 fi
18625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18626   done
18627 fi
18628 LIBS=$ac_func_search_save_LIBS
18629 fi
18630 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18631 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18632 if test "$ac_cv_search_mallinfo" != no; then
18633   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18634
18635 cat >>confdefs.h <<\_ACEOF
18636 #define HAVE_MALLINFO 1
18637 _ACEOF
18638
18639 fi
18640
18641
18642 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18643 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18644 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18645   echo $ECHO_N "(cached) $ECHO_C" >&6
18646 else
18647   ac_func_search_save_LIBS=$LIBS
18648 ac_cv_search_pthread_mutex_lock=no
18649 cat >conftest.$ac_ext <<_ACEOF
18650 #line $LINENO "configure"
18651 /* confdefs.h.  */
18652 _ACEOF
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h.  */
18656
18657 /* Override any gcc2 internal prototype to avoid an error.  */
18658 #ifdef __cplusplus
18659 extern "C"
18660 #endif
18661 /* We use char because int might match the return type of a gcc2
18662    builtin and then its argument prototype would still apply.  */
18663 char pthread_mutex_lock ();
18664 int
18665 main ()
18666 {
18667 pthread_mutex_lock ();
18668   ;
18669   return 0;
18670 }
18671 _ACEOF
18672 rm -f conftest.$ac_objext conftest$ac_exeext
18673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18674   (eval $ac_link) 2>&5
18675   ac_status=$?
18676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677   (exit $ac_status); } &&
18678          { ac_try='test -s conftest$ac_exeext'
18679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680   (eval $ac_try) 2>&5
18681   ac_status=$?
18682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683   (exit $ac_status); }; }; then
18684   ac_cv_search_pthread_mutex_lock="none required"
18685 else
18686   echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18688
18689 fi
18690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18691 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18692   for ac_lib in pthread; do
18693     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18694     cat >conftest.$ac_ext <<_ACEOF
18695 #line $LINENO "configure"
18696 /* confdefs.h.  */
18697 _ACEOF
18698 cat confdefs.h >>conftest.$ac_ext
18699 cat >>conftest.$ac_ext <<_ACEOF
18700 /* end confdefs.h.  */
18701
18702 /* Override any gcc2 internal prototype to avoid an error.  */
18703 #ifdef __cplusplus
18704 extern "C"
18705 #endif
18706 /* We use char because int might match the return type of a gcc2
18707    builtin and then its argument prototype would still apply.  */
18708 char pthread_mutex_lock ();
18709 int
18710 main ()
18711 {
18712 pthread_mutex_lock ();
18713   ;
18714   return 0;
18715 }
18716 _ACEOF
18717 rm -f conftest.$ac_objext conftest$ac_exeext
18718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18719   (eval $ac_link) 2>&5
18720   ac_status=$?
18721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722   (exit $ac_status); } &&
18723          { ac_try='test -s conftest$ac_exeext'
18724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725   (eval $ac_try) 2>&5
18726   ac_status=$?
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); }; }; then
18729   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18730 break
18731 else
18732   echo "$as_me: failed program was:" >&5
18733 sed 's/^/| /' conftest.$ac_ext >&5
18734
18735 fi
18736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18737   done
18738 fi
18739 LIBS=$ac_func_search_save_LIBS
18740 fi
18741 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18742 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18743 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18744   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18745   HAVE_PTHREAD_MUTEX_LOCK=1
18746 else
18747   HAVE_PTHREAD_MUTEX_LOCK=0
18748 fi
18749
18750
18751
18752 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18753 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18754 if test "${ac_cv_header_stdc+set}" = set; then
18755   echo $ECHO_N "(cached) $ECHO_C" >&6
18756 else
18757   cat >conftest.$ac_ext <<_ACEOF
18758 #line $LINENO "configure"
18759 /* confdefs.h.  */
18760 _ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h.  */
18764 #include <stdlib.h>
18765 #include <stdarg.h>
18766 #include <string.h>
18767 #include <float.h>
18768
18769 int
18770 main ()
18771 {
18772
18773   ;
18774   return 0;
18775 }
18776 _ACEOF
18777 rm -f conftest.$ac_objext
18778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18779   (eval $ac_compile) 2>&5
18780   ac_status=$?
18781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782   (exit $ac_status); } &&
18783          { ac_try='test -s conftest.$ac_objext'
18784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785   (eval $ac_try) 2>&5
18786   ac_status=$?
18787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788   (exit $ac_status); }; }; then
18789   ac_cv_header_stdc=yes
18790 else
18791   echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18793
18794 ac_cv_header_stdc=no
18795 fi
18796 rm -f conftest.$ac_objext conftest.$ac_ext
18797
18798 if test $ac_cv_header_stdc = yes; then
18799   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18800   cat >conftest.$ac_ext <<_ACEOF
18801 #line $LINENO "configure"
18802 /* confdefs.h.  */
18803 _ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h.  */
18807 #include <string.h>
18808
18809 _ACEOF
18810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18811   $EGREP "memchr" >/dev/null 2>&1; then
18812   :
18813 else
18814   ac_cv_header_stdc=no
18815 fi
18816 rm -f conftest*
18817
18818 fi
18819
18820 if test $ac_cv_header_stdc = yes; then
18821   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18822   cat >conftest.$ac_ext <<_ACEOF
18823 #line $LINENO "configure"
18824 /* confdefs.h.  */
18825 _ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h.  */
18829 #include <stdlib.h>
18830
18831 _ACEOF
18832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18833   $EGREP "free" >/dev/null 2>&1; then
18834   :
18835 else
18836   ac_cv_header_stdc=no
18837 fi
18838 rm -f conftest*
18839
18840 fi
18841
18842 if test $ac_cv_header_stdc = yes; then
18843   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18844   if test "$cross_compiling" = yes; then
18845   :
18846 else
18847   cat >conftest.$ac_ext <<_ACEOF
18848 #line $LINENO "configure"
18849 /* confdefs.h.  */
18850 _ACEOF
18851 cat confdefs.h >>conftest.$ac_ext
18852 cat >>conftest.$ac_ext <<_ACEOF
18853 /* end confdefs.h.  */
18854 #include <ctype.h>
18855 #if ((' ' & 0x0FF) == 0x020)
18856 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18857 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18858 #else
18859 # define ISLOWER(c) \
18860                    (('a' <= (c) && (c) <= 'i') \
18861                      || ('j' <= (c) && (c) <= 'r') \
18862                      || ('s' <= (c) && (c) <= 'z'))
18863 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18864 #endif
18865
18866 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18867 int
18868 main ()
18869 {
18870   int i;
18871   for (i = 0; i < 256; i++)
18872     if (XOR (islower (i), ISLOWER (i))
18873         || toupper (i) != TOUPPER (i))
18874       exit(2);
18875   exit (0);
18876 }
18877 _ACEOF
18878 rm -f conftest$ac_exeext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18880   (eval $ac_link) 2>&5
18881   ac_status=$?
18882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885   (eval $ac_try) 2>&5
18886   ac_status=$?
18887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888   (exit $ac_status); }; }; then
18889   :
18890 else
18891   echo "$as_me: program exited with status $ac_status" >&5
18892 echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18894
18895 ( exit $ac_status )
18896 ac_cv_header_stdc=no
18897 fi
18898 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18899 fi
18900 fi
18901 fi
18902 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18903 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18904 if test $ac_cv_header_stdc = yes; then
18905
18906 cat >>confdefs.h <<\_ACEOF
18907 #define STDC_HEADERS 1
18908 _ACEOF
18909
18910 fi
18911
18912 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18913 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18914 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18915   echo $ECHO_N "(cached) $ECHO_C" >&6
18916 else
18917   cat >conftest.$ac_ext <<_ACEOF
18918 #line $LINENO "configure"
18919 /* confdefs.h.  */
18920 _ACEOF
18921 cat confdefs.h >>conftest.$ac_ext
18922 cat >>conftest.$ac_ext <<_ACEOF
18923 /* end confdefs.h.  */
18924 #include <sys/types.h>
18925 #include <sys/wait.h>
18926 #ifndef WEXITSTATUS
18927 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18928 #endif
18929 #ifndef WIFEXITED
18930 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18931 #endif
18932
18933 int
18934 main ()
18935 {
18936   int s;
18937   wait (&s);
18938   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18939   ;
18940   return 0;
18941 }
18942 _ACEOF
18943 rm -f conftest.$ac_objext
18944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18945   (eval $ac_compile) 2>&5
18946   ac_status=$?
18947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948   (exit $ac_status); } &&
18949          { ac_try='test -s conftest.$ac_objext'
18950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951   (eval $ac_try) 2>&5
18952   ac_status=$?
18953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954   (exit $ac_status); }; }; then
18955   ac_cv_header_sys_wait_h=yes
18956 else
18957   echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18959
18960 ac_cv_header_sys_wait_h=no
18961 fi
18962 rm -f conftest.$ac_objext conftest.$ac_ext
18963 fi
18964 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18965 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18966 if test $ac_cv_header_sys_wait_h = yes; then
18967
18968 cat >>confdefs.h <<\_ACEOF
18969 #define HAVE_SYS_WAIT_H 1
18970 _ACEOF
18971
18972 fi
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986 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
18987 do
18988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18990   echo "$as_me:$LINENO: checking for $ac_header" >&5
18991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18993   echo $ECHO_N "(cached) $ECHO_C" >&6
18994 fi
18995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18997 else
18998   # Is the header compilable?
18999 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19001 cat >conftest.$ac_ext <<_ACEOF
19002 #line $LINENO "configure"
19003 /* confdefs.h.  */
19004 _ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h.  */
19008 $ac_includes_default
19009 #include <$ac_header>
19010 _ACEOF
19011 rm -f conftest.$ac_objext
19012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19013   (eval $ac_compile) 2>&5
19014   ac_status=$?
19015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016   (exit $ac_status); } &&
19017          { ac_try='test -s conftest.$ac_objext'
19018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19019   (eval $ac_try) 2>&5
19020   ac_status=$?
19021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022   (exit $ac_status); }; }; then
19023   ac_header_compiler=yes
19024 else
19025   echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19027
19028 ac_header_compiler=no
19029 fi
19030 rm -f conftest.$ac_objext conftest.$ac_ext
19031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19032 echo "${ECHO_T}$ac_header_compiler" >&6
19033
19034 # Is the header present?
19035 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19037 cat >conftest.$ac_ext <<_ACEOF
19038 #line $LINENO "configure"
19039 /* confdefs.h.  */
19040 _ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h.  */
19044 #include <$ac_header>
19045 _ACEOF
19046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19047   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19048   ac_status=$?
19049   grep -v '^ *+' conftest.er1 >conftest.err
19050   rm -f conftest.er1
19051   cat conftest.err >&5
19052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053   (exit $ac_status); } >/dev/null; then
19054   if test -s conftest.err; then
19055     ac_cpp_err=$ac_c_preproc_warn_flag
19056   else
19057     ac_cpp_err=
19058   fi
19059 else
19060   ac_cpp_err=yes
19061 fi
19062 if test -z "$ac_cpp_err"; then
19063   ac_header_preproc=yes
19064 else
19065   echo "$as_me: failed program was:" >&5
19066 sed 's/^/| /' conftest.$ac_ext >&5
19067
19068   ac_header_preproc=no
19069 fi
19070 rm -f conftest.err conftest.$ac_ext
19071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19072 echo "${ECHO_T}$ac_header_preproc" >&6
19073
19074 # So?  What about this header?
19075 case $ac_header_compiler:$ac_header_preproc in
19076   yes:no )
19077     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19079     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19081     (
19082       cat <<\_ASBOX
19083 ## ------------------------------------ ##
19084 ## Report this to bug-autoconf@gnu.org. ##
19085 ## ------------------------------------ ##
19086 _ASBOX
19087     ) |
19088       sed "s/^/$as_me: WARNING:     /" >&2
19089     ;;
19090   no:yes )
19091     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19093     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19097     (
19098       cat <<\_ASBOX
19099 ## ------------------------------------ ##
19100 ## Report this to bug-autoconf@gnu.org. ##
19101 ## ------------------------------------ ##
19102 _ASBOX
19103     ) |
19104       sed "s/^/$as_me: WARNING:     /" >&2
19105     ;;
19106 esac
19107 echo "$as_me:$LINENO: checking for $ac_header" >&5
19108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19110   echo $ECHO_N "(cached) $ECHO_C" >&6
19111 else
19112   eval "$as_ac_Header=$ac_header_preproc"
19113 fi
19114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19116
19117 fi
19118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19119   cat >>confdefs.h <<_ACEOF
19120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19121 _ACEOF
19122
19123 fi
19124
19125 done
19126
19127
19128 if test "${ac_cv_header_sys_types_h+set}" = set; then
19129   echo "$as_me:$LINENO: checking for sys/types.h" >&5
19130 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19131 if test "${ac_cv_header_sys_types_h+set}" = set; then
19132   echo $ECHO_N "(cached) $ECHO_C" >&6
19133 fi
19134 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19135 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19136 else
19137   # Is the header compilable?
19138 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19139 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19140 cat >conftest.$ac_ext <<_ACEOF
19141 #line $LINENO "configure"
19142 /* confdefs.h.  */
19143 _ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h.  */
19147 $ac_includes_default
19148 #include <sys/types.h>
19149 _ACEOF
19150 rm -f conftest.$ac_objext
19151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19152   (eval $ac_compile) 2>&5
19153   ac_status=$?
19154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155   (exit $ac_status); } &&
19156          { ac_try='test -s conftest.$ac_objext'
19157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19158   (eval $ac_try) 2>&5
19159   ac_status=$?
19160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161   (exit $ac_status); }; }; then
19162   ac_header_compiler=yes
19163 else
19164   echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19166
19167 ac_header_compiler=no
19168 fi
19169 rm -f conftest.$ac_objext conftest.$ac_ext
19170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19171 echo "${ECHO_T}$ac_header_compiler" >&6
19172
19173 # Is the header present?
19174 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19175 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19176 cat >conftest.$ac_ext <<_ACEOF
19177 #line $LINENO "configure"
19178 /* confdefs.h.  */
19179 _ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h.  */
19183 #include <sys/types.h>
19184 _ACEOF
19185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19186   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19187   ac_status=$?
19188   grep -v '^ *+' conftest.er1 >conftest.err
19189   rm -f conftest.er1
19190   cat conftest.err >&5
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); } >/dev/null; then
19193   if test -s conftest.err; then
19194     ac_cpp_err=$ac_c_preproc_warn_flag
19195   else
19196     ac_cpp_err=
19197   fi
19198 else
19199   ac_cpp_err=yes
19200 fi
19201 if test -z "$ac_cpp_err"; then
19202   ac_header_preproc=yes
19203 else
19204   echo "$as_me: failed program was:" >&5
19205 sed 's/^/| /' conftest.$ac_ext >&5
19206
19207   ac_header_preproc=no
19208 fi
19209 rm -f conftest.err conftest.$ac_ext
19210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19211 echo "${ECHO_T}$ac_header_preproc" >&6
19212
19213 # So?  What about this header?
19214 case $ac_header_compiler:$ac_header_preproc in
19215   yes:no )
19216     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19217 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19218     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19219 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19220     (
19221       cat <<\_ASBOX
19222 ## ------------------------------------ ##
19223 ## Report this to bug-autoconf@gnu.org. ##
19224 ## ------------------------------------ ##
19225 _ASBOX
19226     ) |
19227       sed "s/^/$as_me: WARNING:     /" >&2
19228     ;;
19229   no:yes )
19230     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19231 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19232     { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19233 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19234     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19235 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19236     (
19237       cat <<\_ASBOX
19238 ## ------------------------------------ ##
19239 ## Report this to bug-autoconf@gnu.org. ##
19240 ## ------------------------------------ ##
19241 _ASBOX
19242     ) |
19243       sed "s/^/$as_me: WARNING:     /" >&2
19244     ;;
19245 esac
19246 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19247 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19248 if test "${ac_cv_header_sys_types_h+set}" = set; then
19249   echo $ECHO_N "(cached) $ECHO_C" >&6
19250 else
19251   ac_cv_header_sys_types_h=$ac_header_preproc
19252 fi
19253 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19254 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19255
19256 fi
19257 if test $ac_cv_header_sys_types_h = yes; then
19258   INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19259 else
19260   INCLUDE_SYS_TYPES_H=''
19261 fi
19262
19263
19264
19265 if test "${ac_cv_header_inttypes_h+set}" = set; then
19266   echo "$as_me:$LINENO: checking for inttypes.h" >&5
19267 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19268 if test "${ac_cv_header_inttypes_h+set}" = set; then
19269   echo $ECHO_N "(cached) $ECHO_C" >&6
19270 fi
19271 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19272 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19273 else
19274   # Is the header compilable?
19275 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19276 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19277 cat >conftest.$ac_ext <<_ACEOF
19278 #line $LINENO "configure"
19279 /* confdefs.h.  */
19280 _ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h.  */
19284 $ac_includes_default
19285 #include <inttypes.h>
19286 _ACEOF
19287 rm -f conftest.$ac_objext
19288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19289   (eval $ac_compile) 2>&5
19290   ac_status=$?
19291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292   (exit $ac_status); } &&
19293          { ac_try='test -s conftest.$ac_objext'
19294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295   (eval $ac_try) 2>&5
19296   ac_status=$?
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); }; }; then
19299   ac_header_compiler=yes
19300 else
19301   echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19303
19304 ac_header_compiler=no
19305 fi
19306 rm -f conftest.$ac_objext conftest.$ac_ext
19307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19308 echo "${ECHO_T}$ac_header_compiler" >&6
19309
19310 # Is the header present?
19311 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19312 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19313 cat >conftest.$ac_ext <<_ACEOF
19314 #line $LINENO "configure"
19315 /* confdefs.h.  */
19316 _ACEOF
19317 cat confdefs.h >>conftest.$ac_ext
19318 cat >>conftest.$ac_ext <<_ACEOF
19319 /* end confdefs.h.  */
19320 #include <inttypes.h>
19321 _ACEOF
19322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19323   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
19330   if test -s conftest.err; then
19331     ac_cpp_err=$ac_c_preproc_warn_flag
19332   else
19333     ac_cpp_err=
19334   fi
19335 else
19336   ac_cpp_err=yes
19337 fi
19338 if test -z "$ac_cpp_err"; then
19339   ac_header_preproc=yes
19340 else
19341   echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19343
19344   ac_header_preproc=no
19345 fi
19346 rm -f conftest.err conftest.$ac_ext
19347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19348 echo "${ECHO_T}$ac_header_preproc" >&6
19349
19350 # So?  What about this header?
19351 case $ac_header_compiler:$ac_header_preproc in
19352   yes:no )
19353     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19354 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19355     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19356 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19357     (
19358       cat <<\_ASBOX
19359 ## ------------------------------------ ##
19360 ## Report this to bug-autoconf@gnu.org. ##
19361 ## ------------------------------------ ##
19362 _ASBOX
19363     ) |
19364       sed "s/^/$as_me: WARNING:     /" >&2
19365     ;;
19366   no:yes )
19367     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19368 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19369     { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19370 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19371     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19372 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19373     (
19374       cat <<\_ASBOX
19375 ## ------------------------------------ ##
19376 ## Report this to bug-autoconf@gnu.org. ##
19377 ## ------------------------------------ ##
19378 _ASBOX
19379     ) |
19380       sed "s/^/$as_me: WARNING:     /" >&2
19381     ;;
19382 esac
19383 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19384 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19385 if test "${ac_cv_header_inttypes_h+set}" = set; then
19386   echo $ECHO_N "(cached) $ECHO_C" >&6
19387 else
19388   ac_cv_header_inttypes_h=$ac_header_preproc
19389 fi
19390 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19391 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19392
19393 fi
19394 if test $ac_cv_header_inttypes_h = yes; then
19395   INCLUDE_INTTYPES_H='#include <inttypes.h>'
19396 else
19397   INCLUDE_INTTYPES_H=''
19398 fi
19399
19400
19401
19402 if test "${ac_cv_header_stdint_h+set}" = set; then
19403   echo "$as_me:$LINENO: checking for stdint.h" >&5
19404 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19405 if test "${ac_cv_header_stdint_h+set}" = set; then
19406   echo $ECHO_N "(cached) $ECHO_C" >&6
19407 fi
19408 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19409 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19410 else
19411   # Is the header compilable?
19412 echo "$as_me:$LINENO: checking stdint.h usability" >&5
19413 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
19414 cat >conftest.$ac_ext <<_ACEOF
19415 #line $LINENO "configure"
19416 /* confdefs.h.  */
19417 _ACEOF
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h.  */
19421 $ac_includes_default
19422 #include <stdint.h>
19423 _ACEOF
19424 rm -f conftest.$ac_objext
19425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19426   (eval $ac_compile) 2>&5
19427   ac_status=$?
19428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429   (exit $ac_status); } &&
19430          { ac_try='test -s conftest.$ac_objext'
19431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432   (eval $ac_try) 2>&5
19433   ac_status=$?
19434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435   (exit $ac_status); }; }; then
19436   ac_header_compiler=yes
19437 else
19438   echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19440
19441 ac_header_compiler=no
19442 fi
19443 rm -f conftest.$ac_objext conftest.$ac_ext
19444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19445 echo "${ECHO_T}$ac_header_compiler" >&6
19446
19447 # Is the header present?
19448 echo "$as_me:$LINENO: checking stdint.h presence" >&5
19449 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
19450 cat >conftest.$ac_ext <<_ACEOF
19451 #line $LINENO "configure"
19452 /* confdefs.h.  */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h.  */
19457 #include <stdint.h>
19458 _ACEOF
19459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19460   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19461   ac_status=$?
19462   grep -v '^ *+' conftest.er1 >conftest.err
19463   rm -f conftest.er1
19464   cat conftest.err >&5
19465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466   (exit $ac_status); } >/dev/null; then
19467   if test -s conftest.err; then
19468     ac_cpp_err=$ac_c_preproc_warn_flag
19469   else
19470     ac_cpp_err=
19471   fi
19472 else
19473   ac_cpp_err=yes
19474 fi
19475 if test -z "$ac_cpp_err"; then
19476   ac_header_preproc=yes
19477 else
19478   echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.$ac_ext >&5
19480
19481   ac_header_preproc=no
19482 fi
19483 rm -f conftest.err conftest.$ac_ext
19484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19485 echo "${ECHO_T}$ac_header_preproc" >&6
19486
19487 # So?  What about this header?
19488 case $ac_header_compiler:$ac_header_preproc in
19489   yes:no )
19490     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
19491 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19492     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19493 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19494     (
19495       cat <<\_ASBOX
19496 ## ------------------------------------ ##
19497 ## Report this to bug-autoconf@gnu.org. ##
19498 ## ------------------------------------ ##
19499 _ASBOX
19500     ) |
19501       sed "s/^/$as_me: WARNING:     /" >&2
19502     ;;
19503   no:yes )
19504     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
19505 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
19506     { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
19507 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
19508     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19509 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19510     (
19511       cat <<\_ASBOX
19512 ## ------------------------------------ ##
19513 ## Report this to bug-autoconf@gnu.org. ##
19514 ## ------------------------------------ ##
19515 _ASBOX
19516     ) |
19517       sed "s/^/$as_me: WARNING:     /" >&2
19518     ;;
19519 esac
19520 echo "$as_me:$LINENO: checking for stdint.h" >&5
19521 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19522 if test "${ac_cv_header_stdint_h+set}" = set; then
19523   echo $ECHO_N "(cached) $ECHO_C" >&6
19524 else
19525   ac_cv_header_stdint_h=$ac_header_preproc
19526 fi
19527 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19528 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19529
19530 fi
19531 if test $ac_cv_header_stdint_h = yes; then
19532   INCLUDE_STDINT_H='#include <stdint.h>'
19533 else
19534   INCLUDE_STDINT_H=''
19535 fi
19536
19537
19538
19539
19540
19541 echo "$as_me:$LINENO: checking for pid_t" >&5
19542 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19543 if test "${ac_cv_type_pid_t+set}" = set; then
19544   echo $ECHO_N "(cached) $ECHO_C" >&6
19545 else
19546   cat >conftest.$ac_ext <<_ACEOF
19547 #line $LINENO "configure"
19548 /* confdefs.h.  */
19549 _ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h.  */
19553 $ac_includes_default
19554 int
19555 main ()
19556 {
19557 if ((pid_t *) 0)
19558   return 0;
19559 if (sizeof (pid_t))
19560   return 0;
19561   ;
19562   return 0;
19563 }
19564 _ACEOF
19565 rm -f conftest.$ac_objext
19566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19567   (eval $ac_compile) 2>&5
19568   ac_status=$?
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); } &&
19571          { ac_try='test -s conftest.$ac_objext'
19572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573   (eval $ac_try) 2>&5
19574   ac_status=$?
19575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576   (exit $ac_status); }; }; then
19577   ac_cv_type_pid_t=yes
19578 else
19579   echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19581
19582 ac_cv_type_pid_t=no
19583 fi
19584 rm -f conftest.$ac_objext conftest.$ac_ext
19585 fi
19586 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19587 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19588 if test $ac_cv_type_pid_t = yes; then
19589   :
19590 else
19591
19592 cat >>confdefs.h <<_ACEOF
19593 #define pid_t int
19594 _ACEOF
19595
19596 fi
19597
19598 echo "$as_me:$LINENO: checking for size_t" >&5
19599 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19600 if test "${ac_cv_type_size_t+set}" = set; then
19601   echo $ECHO_N "(cached) $ECHO_C" >&6
19602 else
19603   cat >conftest.$ac_ext <<_ACEOF
19604 #line $LINENO "configure"
19605 /* confdefs.h.  */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h.  */
19610 $ac_includes_default
19611 int
19612 main ()
19613 {
19614 if ((size_t *) 0)
19615   return 0;
19616 if (sizeof (size_t))
19617   return 0;
19618   ;
19619   return 0;
19620 }
19621 _ACEOF
19622 rm -f conftest.$ac_objext
19623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19624   (eval $ac_compile) 2>&5
19625   ac_status=$?
19626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); } &&
19628          { ac_try='test -s conftest.$ac_objext'
19629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630   (eval $ac_try) 2>&5
19631   ac_status=$?
19632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633   (exit $ac_status); }; }; then
19634   ac_cv_type_size_t=yes
19635 else
19636   echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19638
19639 ac_cv_type_size_t=no
19640 fi
19641 rm -f conftest.$ac_objext conftest.$ac_ext
19642 fi
19643 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19644 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19645 if test $ac_cv_type_size_t = yes; then
19646   :
19647 else
19648
19649 cat >>confdefs.h <<_ACEOF
19650 #define size_t unsigned
19651 _ACEOF
19652
19653 fi
19654
19655 echo "$as_me:$LINENO: checking for int64_t" >&5
19656 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19657 if test "${ac_cv_type_int64_t+set}" = set; then
19658   echo $ECHO_N "(cached) $ECHO_C" >&6
19659 else
19660   cat >conftest.$ac_ext <<_ACEOF
19661 #line $LINENO "configure"
19662 /* confdefs.h.  */
19663 _ACEOF
19664 cat confdefs.h >>conftest.$ac_ext
19665 cat >>conftest.$ac_ext <<_ACEOF
19666 /* end confdefs.h.  */
19667 $ac_includes_default
19668 int
19669 main ()
19670 {
19671 if ((int64_t *) 0)
19672   return 0;
19673 if (sizeof (int64_t))
19674   return 0;
19675   ;
19676   return 0;
19677 }
19678 _ACEOF
19679 rm -f conftest.$ac_objext
19680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19681   (eval $ac_compile) 2>&5
19682   ac_status=$?
19683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684   (exit $ac_status); } &&
19685          { ac_try='test -s conftest.$ac_objext'
19686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687   (eval $ac_try) 2>&5
19688   ac_status=$?
19689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690   (exit $ac_status); }; }; then
19691   ac_cv_type_int64_t=yes
19692 else
19693   echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19695
19696 ac_cv_type_int64_t=no
19697 fi
19698 rm -f conftest.$ac_objext conftest.$ac_ext
19699 fi
19700 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19701 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19702 if test $ac_cv_type_int64_t = yes; then
19703
19704 cat >>confdefs.h <<_ACEOF
19705 #define HAVE_INT64_T 1
19706 _ACEOF
19707
19708
19709 else
19710   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19711 echo "$as_me: error: Type int64_t required but not found" >&2;}
19712    { (exit 1); exit 1; }; }
19713 fi
19714
19715 echo "$as_me:$LINENO: checking for uint64_t" >&5
19716 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19717 if test "${ac_cv_type_uint64_t+set}" = set; then
19718   echo $ECHO_N "(cached) $ECHO_C" >&6
19719 else
19720   cat >conftest.$ac_ext <<_ACEOF
19721 #line $LINENO "configure"
19722 /* confdefs.h.  */
19723 _ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h.  */
19727 $ac_includes_default
19728 int
19729 main ()
19730 {
19731 if ((uint64_t *) 0)
19732   return 0;
19733 if (sizeof (uint64_t))
19734   return 0;
19735   ;
19736   return 0;
19737 }
19738 _ACEOF
19739 rm -f conftest.$ac_objext
19740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19741   (eval $ac_compile) 2>&5
19742   ac_status=$?
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); } &&
19745          { ac_try='test -s conftest.$ac_objext'
19746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747   (eval $ac_try) 2>&5
19748   ac_status=$?
19749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750   (exit $ac_status); }; }; then
19751   ac_cv_type_uint64_t=yes
19752 else
19753   echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19755
19756 ac_cv_type_uint64_t=no
19757 fi
19758 rm -f conftest.$ac_objext conftest.$ac_ext
19759 fi
19760 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19761 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19762 if test $ac_cv_type_uint64_t = yes; then
19763
19764 cat >>confdefs.h <<_ACEOF
19765 #define HAVE_UINT64_T 1
19766 _ACEOF
19767
19768
19769 else
19770   echo "$as_me:$LINENO: checking for u_int64_t" >&5
19771 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
19772 if test "${ac_cv_type_u_int64_t+set}" = set; then
19773   echo $ECHO_N "(cached) $ECHO_C" >&6
19774 else
19775   cat >conftest.$ac_ext <<_ACEOF
19776 #line $LINENO "configure"
19777 /* confdefs.h.  */
19778 _ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h.  */
19782 $ac_includes_default
19783 int
19784 main ()
19785 {
19786 if ((u_int64_t *) 0)
19787   return 0;
19788 if (sizeof (u_int64_t))
19789   return 0;
19790   ;
19791   return 0;
19792 }
19793 _ACEOF
19794 rm -f conftest.$ac_objext
19795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19796   (eval $ac_compile) 2>&5
19797   ac_status=$?
19798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799   (exit $ac_status); } &&
19800          { ac_try='test -s conftest.$ac_objext'
19801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19802   (eval $ac_try) 2>&5
19803   ac_status=$?
19804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805   (exit $ac_status); }; }; then
19806   ac_cv_type_u_int64_t=yes
19807 else
19808   echo "$as_me: failed program was:" >&5
19809 sed 's/^/| /' conftest.$ac_ext >&5
19810
19811 ac_cv_type_u_int64_t=no
19812 fi
19813 rm -f conftest.$ac_objext conftest.$ac_ext
19814 fi
19815 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
19816 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
19817 if test $ac_cv_type_u_int64_t = yes; then
19818
19819 cat >>confdefs.h <<_ACEOF
19820 #define HAVE_U_INT64_T 1
19821 _ACEOF
19822
19823
19824 else
19825   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
19826 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
19827    { (exit 1); exit 1; }; }
19828 fi
19829
19830 fi
19831
19832 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19833 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19834 if test "${ac_cv_header_time+set}" = set; then
19835   echo $ECHO_N "(cached) $ECHO_C" >&6
19836 else
19837   cat >conftest.$ac_ext <<_ACEOF
19838 #line $LINENO "configure"
19839 /* confdefs.h.  */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h.  */
19844 #include <sys/types.h>
19845 #include <sys/time.h>
19846 #include <time.h>
19847
19848 int
19849 main ()
19850 {
19851 if ((struct tm *) 0)
19852 return 0;
19853   ;
19854   return 0;
19855 }
19856 _ACEOF
19857 rm -f conftest.$ac_objext
19858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19859   (eval $ac_compile) 2>&5
19860   ac_status=$?
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); } &&
19863          { ac_try='test -s conftest.$ac_objext'
19864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865   (eval $ac_try) 2>&5
19866   ac_status=$?
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); }; }; then
19869   ac_cv_header_time=yes
19870 else
19871   echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19873
19874 ac_cv_header_time=no
19875 fi
19876 rm -f conftest.$ac_objext conftest.$ac_ext
19877 fi
19878 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19879 echo "${ECHO_T}$ac_cv_header_time" >&6
19880 if test $ac_cv_header_time = yes; then
19881
19882 cat >>confdefs.h <<\_ACEOF
19883 #define TIME_WITH_SYS_TIME 1
19884 _ACEOF
19885
19886 fi
19887
19888 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19889 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19890 if test "${ac_cv_struct_tm+set}" = set; then
19891   echo $ECHO_N "(cached) $ECHO_C" >&6
19892 else
19893   cat >conftest.$ac_ext <<_ACEOF
19894 #line $LINENO "configure"
19895 /* confdefs.h.  */
19896 _ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h.  */
19900 #include <sys/types.h>
19901 #include <time.h>
19902
19903 int
19904 main ()
19905 {
19906 struct tm *tp; tp->tm_sec;
19907   ;
19908   return 0;
19909 }
19910 _ACEOF
19911 rm -f conftest.$ac_objext
19912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19913   (eval $ac_compile) 2>&5
19914   ac_status=$?
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); } &&
19917          { ac_try='test -s conftest.$ac_objext'
19918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919   (eval $ac_try) 2>&5
19920   ac_status=$?
19921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922   (exit $ac_status); }; }; then
19923   ac_cv_struct_tm=time.h
19924 else
19925   echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19927
19928 ac_cv_struct_tm=sys/time.h
19929 fi
19930 rm -f conftest.$ac_objext conftest.$ac_ext
19931 fi
19932 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19933 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19934 if test $ac_cv_struct_tm = sys/time.h; then
19935
19936 cat >>confdefs.h <<\_ACEOF
19937 #define TM_IN_SYS_TIME 1
19938 _ACEOF
19939
19940 fi
19941
19942
19943
19944         echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
19945 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
19946
19947
19948         ac_ext=c
19949 ac_cpp='$CPP $CPPFLAGS'
19950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19953
19954         if test "$cross_compiling" = yes; then
19955   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19956 See \`config.log' for more details." >&5
19957 echo "$as_me: error: cannot run test program while cross compiling
19958 See \`config.log' for more details." >&2;}
19959    { (exit 1); exit 1; }; }
19960 else
19961   cat >conftest.$ac_ext <<_ACEOF
19962 #line $LINENO "configure"
19963 /* confdefs.h.  */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h.  */
19968 #include <stdio.h>
19969                                  #include <stdlib.h>
19970 int
19971 main ()
19972 {
19973
19974                                  volatile double A, B;
19975                                  char Buffer[100];
19976                                  A = 1;
19977                                  A /= 10.0;
19978                                  sprintf(Buffer, "%a", A);
19979                                  B = atof(Buffer);
19980                                  if (A != B)
19981                                                          return (1);
19982                                  if (A != 0x1.999999999999ap-4)
19983                                                          return (1);
19984                                  return (0);
19985   ;
19986   return 0;
19987 }
19988 _ACEOF
19989 rm -f conftest$ac_exeext
19990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19991   (eval $ac_link) 2>&5
19992   ac_status=$?
19993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996   (eval $ac_try) 2>&5
19997   ac_status=$?
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); }; }; then
20000   ac_c_printf_a=yes
20001 else
20002   echo "$as_me: program exited with status $ac_status" >&5
20003 echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20005
20006 ( exit $ac_status )
20007 ac_c_printf_a=no
20008 fi
20009 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20010 fi
20011         ac_ext=c
20012 ac_cpp='$CPP $CPPFLAGS'
20013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20016
20017         echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20018 echo "${ECHO_T}$ac_c_printf_a" >&6
20019         if test "$ac_c_printf_a" = "yes"; then
20020
20021 cat >>confdefs.h <<\_ACEOF
20022 #define HAVE_PRINTF_A 1
20023 _ACEOF
20024
20025         fi
20026
20027
20028 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20029 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20030 if test "${ac_cv_c_bigendian+set}" = set; then
20031   echo $ECHO_N "(cached) $ECHO_C" >&6
20032 else
20033   # See if sys/param.h defines the BYTE_ORDER macro.
20034 cat >conftest.$ac_ext <<_ACEOF
20035 #line $LINENO "configure"
20036 /* confdefs.h.  */
20037 _ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h.  */
20041 #include <sys/types.h>
20042 #include <sys/param.h>
20043
20044 int
20045 main ()
20046 {
20047 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20048  bogus endian macros
20049 #endif
20050
20051   ;
20052   return 0;
20053 }
20054 _ACEOF
20055 rm -f conftest.$ac_objext
20056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20057   (eval $ac_compile) 2>&5
20058   ac_status=$?
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); } &&
20061          { ac_try='test -s conftest.$ac_objext'
20062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063   (eval $ac_try) 2>&5
20064   ac_status=$?
20065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066   (exit $ac_status); }; }; then
20067   # It does; now see whether it defined to BIG_ENDIAN or not.
20068 cat >conftest.$ac_ext <<_ACEOF
20069 #line $LINENO "configure"
20070 /* confdefs.h.  */
20071 _ACEOF
20072 cat confdefs.h >>conftest.$ac_ext
20073 cat >>conftest.$ac_ext <<_ACEOF
20074 /* end confdefs.h.  */
20075 #include <sys/types.h>
20076 #include <sys/param.h>
20077
20078 int
20079 main ()
20080 {
20081 #if BYTE_ORDER != BIG_ENDIAN
20082  not big endian
20083 #endif
20084
20085   ;
20086   return 0;
20087 }
20088 _ACEOF
20089 rm -f conftest.$ac_objext
20090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20091   (eval $ac_compile) 2>&5
20092   ac_status=$?
20093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094   (exit $ac_status); } &&
20095          { ac_try='test -s conftest.$ac_objext'
20096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097   (eval $ac_try) 2>&5
20098   ac_status=$?
20099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100   (exit $ac_status); }; }; then
20101   ac_cv_c_bigendian=yes
20102 else
20103   echo "$as_me: failed program was:" >&5
20104 sed 's/^/| /' conftest.$ac_ext >&5
20105
20106 ac_cv_c_bigendian=no
20107 fi
20108 rm -f conftest.$ac_objext conftest.$ac_ext
20109 else
20110   echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20112
20113 # It does not; compile a test program.
20114 if test "$cross_compiling" = yes; then
20115   # try to guess the endianness by grepping values into an object file
20116   ac_cv_c_bigendian=unknown
20117   cat >conftest.$ac_ext <<_ACEOF
20118 #line $LINENO "configure"
20119 /* confdefs.h.  */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h.  */
20124 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20125 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20126 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20127 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20128 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20129 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20130 int
20131 main ()
20132 {
20133  _ascii (); _ebcdic ();
20134   ;
20135   return 0;
20136 }
20137 _ACEOF
20138 rm -f conftest.$ac_objext
20139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20140   (eval $ac_compile) 2>&5
20141   ac_status=$?
20142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143   (exit $ac_status); } &&
20144          { ac_try='test -s conftest.$ac_objext'
20145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20146   (eval $ac_try) 2>&5
20147   ac_status=$?
20148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149   (exit $ac_status); }; }; then
20150   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20151   ac_cv_c_bigendian=yes
20152 fi
20153 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20154   if test "$ac_cv_c_bigendian" = unknown; then
20155     ac_cv_c_bigendian=no
20156   else
20157     # finding both strings is unlikely to happen, but who knows?
20158     ac_cv_c_bigendian=unknown
20159   fi
20160 fi
20161 else
20162   echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20164
20165 fi
20166 rm -f conftest.$ac_objext conftest.$ac_ext
20167 else
20168   cat >conftest.$ac_ext <<_ACEOF
20169 #line $LINENO "configure"
20170 /* confdefs.h.  */
20171 _ACEOF
20172 cat confdefs.h >>conftest.$ac_ext
20173 cat >>conftest.$ac_ext <<_ACEOF
20174 /* end confdefs.h.  */
20175 int
20176 main ()
20177 {
20178   /* Are we little or big endian?  From Harbison&Steele.  */
20179   union
20180   {
20181     long l;
20182     char c[sizeof (long)];
20183   } u;
20184   u.l = 1;
20185   exit (u.c[sizeof (long) - 1] == 1);
20186 }
20187 _ACEOF
20188 rm -f conftest$ac_exeext
20189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20190   (eval $ac_link) 2>&5
20191   ac_status=$?
20192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195   (eval $ac_try) 2>&5
20196   ac_status=$?
20197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198   (exit $ac_status); }; }; then
20199   ac_cv_c_bigendian=no
20200 else
20201   echo "$as_me: program exited with status $ac_status" >&5
20202 echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20204
20205 ( exit $ac_status )
20206 ac_cv_c_bigendian=yes
20207 fi
20208 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20209 fi
20210 fi
20211 rm -f conftest.$ac_objext conftest.$ac_ext
20212 fi
20213 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20214 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20215 case $ac_cv_c_bigendian in
20216   yes)
20217     ENDIAN=big
20218  ;;
20219   no)
20220     ENDIAN=little
20221  ;;
20222   *)
20223     { { echo "$as_me:$LINENO: error: unknown endianness
20224 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20225 echo "$as_me: error: unknown endianness
20226 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20227    { (exit 1); exit 1; }; } ;;
20228 esac
20229
20230
20231 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20232 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20233 if test "${ac_cv_cxx_namespaces+set}" = set; then
20234   echo $ECHO_N "(cached) $ECHO_C" >&6
20235 else
20236
20237
20238  ac_ext=cc
20239 ac_cpp='$CXXCPP $CPPFLAGS'
20240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20243
20244  cat >conftest.$ac_ext <<_ACEOF
20245 #line $LINENO "configure"
20246 /* confdefs.h.  */
20247 _ACEOF
20248 cat confdefs.h >>conftest.$ac_ext
20249 cat >>conftest.$ac_ext <<_ACEOF
20250 /* end confdefs.h.  */
20251 namespace Outer { namespace Inner { int i = 0; }}
20252 int
20253 main ()
20254 {
20255 using namespace Outer::Inner; return i;
20256   ;
20257   return 0;
20258 }
20259 _ACEOF
20260 rm -f conftest.$ac_objext
20261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20262   (eval $ac_compile) 2>&5
20263   ac_status=$?
20264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265   (exit $ac_status); } &&
20266          { ac_try='test -s conftest.$ac_objext'
20267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268   (eval $ac_try) 2>&5
20269   ac_status=$?
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); }; }; then
20272   ac_cv_cxx_namespaces=yes
20273 else
20274   echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20276
20277 ac_cv_cxx_namespaces=no
20278 fi
20279 rm -f conftest.$ac_objext conftest.$ac_ext
20280  ac_ext=c
20281 ac_cpp='$CPP $CPPFLAGS'
20282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20285
20286
20287 fi
20288 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20289 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20290 if test "$ac_cv_cxx_namespaces" = yes; then
20291
20292 cat >>confdefs.h <<\_ACEOF
20293 #define HAVE_NAMESPACES
20294 _ACEOF
20295
20296 fi
20297
20298 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20299 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20300 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20301   echo $ECHO_N "(cached) $ECHO_C" >&6
20302 else
20303
20304
20305
20306   ac_ext=cc
20307 ac_cpp='$CXXCPP $CPPFLAGS'
20308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20311
20312   cat >conftest.$ac_ext <<_ACEOF
20313 #line $LINENO "configure"
20314 /* confdefs.h.  */
20315 _ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h.  */
20319 #include <ext/hash_map>
20320 #ifdef HAVE_NAMESPACES
20321 using namespace std;
20322 #endif
20323 int
20324 main ()
20325 {
20326 hash_map<int, int> t;
20327   ;
20328   return 0;
20329 }
20330 _ACEOF
20331 rm -f conftest.$ac_objext
20332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20333   (eval $ac_compile) 2>&5
20334   ac_status=$?
20335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336   (exit $ac_status); } &&
20337          { ac_try='test -s conftest.$ac_objext'
20338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339   (eval $ac_try) 2>&5
20340   ac_status=$?
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); }; }; then
20343   ac_cv_cxx_have_std_ext_hash_map=yes
20344 else
20345   echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20347
20348 ac_cv_cxx_have_std_ext_hash_map=no
20349 fi
20350 rm -f conftest.$ac_objext conftest.$ac_ext
20351   ac_ext=c
20352 ac_cpp='$CPP $CPPFLAGS'
20353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20356
20357 fi
20358 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20359 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20360  HAVE_STD_EXT_HASH_MAP=0
20361  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20362  then
20363    HAVE_STD_EXT_HASH_MAP=1
20364  fi
20365
20366  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20367 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20368 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20369   echo $ECHO_N "(cached) $ECHO_C" >&6
20370 else
20371
20372
20373
20374   ac_ext=cc
20375 ac_cpp='$CXXCPP $CPPFLAGS'
20376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20379
20380   cat >conftest.$ac_ext <<_ACEOF
20381 #line $LINENO "configure"
20382 /* confdefs.h.  */
20383 _ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h.  */
20387 #include <ext/hash_map>
20388 #ifdef HAVE_NAMESPACES
20389 using namespace __gnu_cxx;
20390 #endif
20391 int
20392 main ()
20393 {
20394 hash_map<int,int> t;
20395   ;
20396   return 0;
20397 }
20398 _ACEOF
20399 rm -f conftest.$ac_objext
20400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20401   (eval $ac_compile) 2>&5
20402   ac_status=$?
20403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404   (exit $ac_status); } &&
20405          { ac_try='test -s conftest.$ac_objext'
20406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407   (eval $ac_try) 2>&5
20408   ac_status=$?
20409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410   (exit $ac_status); }; }; then
20411   ac_cv_cxx_have_gnu_ext_hash_map=yes
20412 else
20413   echo "$as_me: failed program was:" >&5
20414 sed 's/^/| /' conftest.$ac_ext >&5
20415
20416 ac_cv_cxx_have_gnu_ext_hash_map=no
20417 fi
20418 rm -f conftest.$ac_objext conftest.$ac_ext
20419   ac_ext=c
20420 ac_cpp='$CPP $CPPFLAGS'
20421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20424
20425 fi
20426 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20427 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20428  HAVE_GNU_EXT_HASH_MAP=0
20429  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20430  then
20431    HAVE_GNU_EXT_HASH_MAP=1
20432  fi
20433
20434  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20435 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20436 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20437   echo $ECHO_N "(cached) $ECHO_C" >&6
20438 else
20439
20440
20441
20442   ac_ext=cc
20443 ac_cpp='$CXXCPP $CPPFLAGS'
20444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20447
20448   cat >conftest.$ac_ext <<_ACEOF
20449 #line $LINENO "configure"
20450 /* confdefs.h.  */
20451 _ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h.  */
20455 #include <hash_map>
20456 int
20457 main ()
20458 {
20459 hash_map<int,int> t;
20460   ;
20461   return 0;
20462 }
20463 _ACEOF
20464 rm -f conftest.$ac_objext
20465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20466   (eval $ac_compile) 2>&5
20467   ac_status=$?
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); } &&
20470          { ac_try='test -s conftest.$ac_objext'
20471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20472   (eval $ac_try) 2>&5
20473   ac_status=$?
20474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475   (exit $ac_status); }; }; then
20476   ac_cv_cxx_have_global_hash_map=yes
20477 else
20478   echo "$as_me: failed program was:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20480
20481 ac_cv_cxx_have_global_hash_map=no
20482 fi
20483 rm -f conftest.$ac_objext conftest.$ac_ext
20484   ac_ext=c
20485 ac_cpp='$CPP $CPPFLAGS'
20486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20489
20490 fi
20491 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20492 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20493  HAVE_GLOBAL_HASH_MAP=0
20494  if test "$ac_cv_cxx_have_global_hash_map" = yes
20495  then
20496    HAVE_GLOBAL_HASH_MAP=1
20497  fi
20498
20499 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20500 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20501 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20502   echo $ECHO_N "(cached) $ECHO_C" >&6
20503 else
20504
20505
20506
20507   ac_ext=cc
20508 ac_cpp='$CXXCPP $CPPFLAGS'
20509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20512
20513   cat >conftest.$ac_ext <<_ACEOF
20514 #line $LINENO "configure"
20515 /* confdefs.h.  */
20516 _ACEOF
20517 cat confdefs.h >>conftest.$ac_ext
20518 cat >>conftest.$ac_ext <<_ACEOF
20519 /* end confdefs.h.  */
20520 #include <ext/hash_set>
20521 #ifdef HAVE_NAMESPACES
20522 using namespace std;
20523 #endif
20524 int
20525 main ()
20526 {
20527 hash_set<int> t;
20528   ;
20529   return 0;
20530 }
20531 _ACEOF
20532 rm -f conftest.$ac_objext
20533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20534   (eval $ac_compile) 2>&5
20535   ac_status=$?
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); } &&
20538          { ac_try='test -s conftest.$ac_objext'
20539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540   (eval $ac_try) 2>&5
20541   ac_status=$?
20542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543   (exit $ac_status); }; }; then
20544   ac_cv_cxx_have_std_ext_hash_set=yes
20545 else
20546   echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20548
20549 ac_cv_cxx_have_std_ext_hash_set=no
20550 fi
20551 rm -f conftest.$ac_objext conftest.$ac_ext
20552   ac_ext=c
20553 ac_cpp='$CPP $CPPFLAGS'
20554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20557
20558 fi
20559 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20560 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20561  HAVE_STD_EXT_HASH_SET=0
20562  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20563  then
20564    HAVE_STD_EXT_HASH_SET=1
20565  fi
20566
20567  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20568 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20569 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20570   echo $ECHO_N "(cached) $ECHO_C" >&6
20571 else
20572
20573
20574
20575   ac_ext=cc
20576 ac_cpp='$CXXCPP $CPPFLAGS'
20577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20580
20581   cat >conftest.$ac_ext <<_ACEOF
20582 #line $LINENO "configure"
20583 /* confdefs.h.  */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h.  */
20588 #include <ext/hash_set>
20589 #ifdef HAVE_NAMESPACES
20590 using namespace __gnu_cxx;
20591 #endif
20592 int
20593 main ()
20594 {
20595 hash_set<int> t;
20596   ;
20597   return 0;
20598 }
20599 _ACEOF
20600 rm -f conftest.$ac_objext
20601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20602   (eval $ac_compile) 2>&5
20603   ac_status=$?
20604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605   (exit $ac_status); } &&
20606          { ac_try='test -s conftest.$ac_objext'
20607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608   (eval $ac_try) 2>&5
20609   ac_status=$?
20610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611   (exit $ac_status); }; }; then
20612   ac_cv_cxx_have_gnu_ext_hash_set=yes
20613 else
20614   echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20616
20617 ac_cv_cxx_have_gnu_ext_hash_set=no
20618 fi
20619 rm -f conftest.$ac_objext conftest.$ac_ext
20620   ac_ext=c
20621 ac_cpp='$CPP $CPPFLAGS'
20622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20625
20626 fi
20627 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20628 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20629  HAVE_GNU_EXT_HASH_SET=0
20630  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20631  then
20632    HAVE_GNU_EXT_HASH_SET=1
20633  fi
20634
20635  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20636 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20637 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20638   echo $ECHO_N "(cached) $ECHO_C" >&6
20639 else
20640
20641
20642
20643   ac_ext=cc
20644 ac_cpp='$CXXCPP $CPPFLAGS'
20645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20648
20649   cat >conftest.$ac_ext <<_ACEOF
20650 #line $LINENO "configure"
20651 /* confdefs.h.  */
20652 _ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h.  */
20656 #include <hash_set>
20657 int
20658 main ()
20659 {
20660 hash_set<int> t; return 0;
20661   ;
20662   return 0;
20663 }
20664 _ACEOF
20665 rm -f conftest.$ac_objext
20666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20667   (eval $ac_compile) 2>&5
20668   ac_status=$?
20669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670   (exit $ac_status); } &&
20671          { ac_try='test -s conftest.$ac_objext'
20672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20673   (eval $ac_try) 2>&5
20674   ac_status=$?
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); }; }; then
20677   ac_cv_cxx_have_global_hash_set=yes
20678 else
20679   echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20681
20682 ac_cv_cxx_have_global_hash_set=no
20683 fi
20684 rm -f conftest.$ac_objext conftest.$ac_ext
20685   ac_ext=c
20686 ac_cpp='$CPP $CPPFLAGS'
20687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20690
20691 fi
20692 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20693 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20694  HAVE_GLOBAL_HASH_SET=0
20695  if test "$ac_cv_cxx_have_global_hash_set" = yes
20696  then
20697    HAVE_GLOBAL_HASH_SET=1
20698  fi
20699
20700 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20701 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20702 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20703   echo $ECHO_N "(cached) $ECHO_C" >&6
20704 else
20705
20706
20707
20708   ac_ext=cc
20709 ac_cpp='$CXXCPP $CPPFLAGS'
20710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20713
20714   cat >conftest.$ac_ext <<_ACEOF
20715 #line $LINENO "configure"
20716 /* confdefs.h.  */
20717 _ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h.  */
20721 #include <iterator>
20722 #ifdef HAVE_NAMESPACES
20723 using namespace std;
20724 #endif
20725 int
20726 main ()
20727 {
20728 iterator<int,int,int> t; return 0;
20729   ;
20730   return 0;
20731 }
20732 _ACEOF
20733 rm -f conftest.$ac_objext
20734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20735   (eval $ac_compile) 2>&5
20736   ac_status=$?
20737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738   (exit $ac_status); } &&
20739          { ac_try='test -s conftest.$ac_objext'
20740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741   (eval $ac_try) 2>&5
20742   ac_status=$?
20743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744   (exit $ac_status); }; }; then
20745   ac_cv_cxx_have_std_iterator=yes
20746 else
20747   echo "$as_me: failed program was:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20749
20750 ac_cv_cxx_have_std_iterator=no
20751 fi
20752 rm -f conftest.$ac_objext conftest.$ac_ext
20753   ac_ext=c
20754 ac_cpp='$CPP $CPPFLAGS'
20755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20758
20759
20760 fi
20761 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20762 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20763 HAVE_STD_ITERATOR=0
20764 if test "$ac_cv_cxx_have_std_iterator" = yes
20765 then
20766    HAVE_STD_ITERATOR=1
20767 fi
20768
20769 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20770 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20771 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20772   echo $ECHO_N "(cached) $ECHO_C" >&6
20773 else
20774
20775
20776
20777   ac_ext=cc
20778 ac_cpp='$CXXCPP $CPPFLAGS'
20779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20782
20783   cat >conftest.$ac_ext <<_ACEOF
20784 #line $LINENO "configure"
20785 /* confdefs.h.  */
20786 _ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h.  */
20790 #include <iterator>
20791 #ifdef HAVE_NAMESPACES
20792 using namespace std;
20793 #endif
20794 int
20795 main ()
20796 {
20797 bidirectional_iterator<int,int> t; return 0;
20798   ;
20799   return 0;
20800 }
20801 _ACEOF
20802 rm -f conftest.$ac_objext
20803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20804   (eval $ac_compile) 2>&5
20805   ac_status=$?
20806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807   (exit $ac_status); } &&
20808          { ac_try='test -s conftest.$ac_objext'
20809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810   (eval $ac_try) 2>&5
20811   ac_status=$?
20812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); }; }; then
20814   ac_cv_cxx_have_bi_iterator=yes
20815 else
20816   echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20818
20819 ac_cv_cxx_have_bi_iterator=no
20820 fi
20821 rm -f conftest.$ac_objext conftest.$ac_ext
20822   ac_ext=c
20823 ac_cpp='$CPP $CPPFLAGS'
20824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20827
20828
20829 fi
20830 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20831 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20832 HAVE_BI_ITERATOR=0
20833 if test "$ac_cv_cxx_have_bi_iterator" = yes
20834 then
20835    HAVE_BI_ITERATOR=1
20836 fi
20837
20838 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20839 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20840 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20841   echo $ECHO_N "(cached) $ECHO_C" >&6
20842 else
20843
20844
20845
20846   ac_ext=cc
20847 ac_cpp='$CXXCPP $CPPFLAGS'
20848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20851
20852   cat >conftest.$ac_ext <<_ACEOF
20853 #line $LINENO "configure"
20854 /* confdefs.h.  */
20855 _ACEOF
20856 cat confdefs.h >>conftest.$ac_ext
20857 cat >>conftest.$ac_ext <<_ACEOF
20858 /* end confdefs.h.  */
20859 #include <iterator>
20860 #ifdef HAVE_NAMESPACES
20861 using namespace std;
20862 #endif
20863 int
20864 main ()
20865 {
20866 forward_iterator<int,int> t; return 0;
20867   ;
20868   return 0;
20869 }
20870 _ACEOF
20871 rm -f conftest.$ac_objext
20872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20873   (eval $ac_compile) 2>&5
20874   ac_status=$?
20875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876   (exit $ac_status); } &&
20877          { ac_try='test -s conftest.$ac_objext'
20878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20879   (eval $ac_try) 2>&5
20880   ac_status=$?
20881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882   (exit $ac_status); }; }; then
20883   ac_cv_cxx_have_fwd_iterator=yes
20884 else
20885   echo "$as_me: failed program was:" >&5
20886 sed 's/^/| /' conftest.$ac_ext >&5
20887
20888 ac_cv_cxx_have_fwd_iterator=no
20889 fi
20890 rm -f conftest.$ac_objext conftest.$ac_ext
20891   ac_ext=c
20892 ac_cpp='$CPP $CPPFLAGS'
20893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20896
20897
20898 fi
20899 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20900 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20901 HAVE_FWD_ITERATOR=0
20902 if test "$ac_cv_cxx_have_fwd_iterator" = yes
20903 then
20904    HAVE_FWD_ITERATOR=1
20905 fi
20906
20907
20908
20909 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20910 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
20911 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20912   echo $ECHO_N "(cached) $ECHO_C" >&6
20913 else
20914   ac_ext=cc
20915 ac_cpp='$CXXCPP $CPPFLAGS'
20916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20919
20920   cat >conftest.$ac_ext <<_ACEOF
20921 #line $LINENO "configure"
20922 /* confdefs.h.  */
20923 _ACEOF
20924 cat confdefs.h >>conftest.$ac_ext
20925 cat >>conftest.$ac_ext <<_ACEOF
20926 /* end confdefs.h.  */
20927 #include <math.h>
20928                      int foo(float f) {return isnan(f);}
20929 _ACEOF
20930 rm -f conftest.$ac_objext
20931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20932   (eval $ac_compile) 2>&5
20933   ac_status=$?
20934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935   (exit $ac_status); } &&
20936          { ac_try='test -s conftest.$ac_objext'
20937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20938   (eval $ac_try) 2>&5
20939   ac_status=$?
20940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); }; }; then
20942   ac_cv_func_isnan_in_math_h=yes
20943 else
20944   echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20946
20947 ac_cv_func_isnan_in_math_h=no
20948 fi
20949 rm -f conftest.$ac_objext conftest.$ac_ext
20950  ac_ext=c
20951 ac_cpp='$CPP $CPPFLAGS'
20952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20955
20956 fi
20957 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20958 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
20959  if test "$ac_cv_func_isnan_in_math_h" = "yes"
20960  then
20961
20962 cat >>confdefs.h <<\_ACEOF
20963 #define HAVE_ISNAN_IN_MATH_H 1
20964 _ACEOF
20965
20966  fi
20967 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20968 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
20969 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20970   echo $ECHO_N "(cached) $ECHO_C" >&6
20971 else
20972   ac_ext=cc
20973 ac_cpp='$CXXCPP $CPPFLAGS'
20974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20977
20978   cat >conftest.$ac_ext <<_ACEOF
20979 #line $LINENO "configure"
20980 /* confdefs.h.  */
20981 _ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h.  */
20985 #include <cmath>
20986                      int foo(float f) {return isnan(f);}
20987 _ACEOF
20988 rm -f conftest.$ac_objext
20989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20990   (eval $ac_compile) 2>&5
20991   ac_status=$?
20992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993   (exit $ac_status); } &&
20994          { ac_try='test -s conftest.$ac_objext'
20995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996   (eval $ac_try) 2>&5
20997   ac_status=$?
20998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); }; }; then
21000   ac_cv_func_isnan_in_cmath=yes
21001 else
21002   echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21004
21005 ac_cv_func_isnan_in_cmath=no
21006 fi
21007 rm -f conftest.$ac_objext conftest.$ac_ext
21008  ac_ext=c
21009 ac_cpp='$CPP $CPPFLAGS'
21010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21013
21014 fi
21015 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21016 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21017  if test "$ac_cv_func_isnan_in_cmath" = "yes"
21018  then
21019
21020 cat >>confdefs.h <<\_ACEOF
21021 #define HAVE_ISNAN_IN_CMATH 1
21022 _ACEOF
21023
21024  fi
21025 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21026 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21027 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21028   echo $ECHO_N "(cached) $ECHO_C" >&6
21029 else
21030   ac_ext=cc
21031 ac_cpp='$CXXCPP $CPPFLAGS'
21032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21035
21036   cat >conftest.$ac_ext <<_ACEOF
21037 #line $LINENO "configure"
21038 /* confdefs.h.  */
21039 _ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h.  */
21043 #include <cmath>
21044                      using std::isnan; int foo(float f) {return isnan(f);}
21045 _ACEOF
21046 rm -f conftest.$ac_objext
21047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21048   (eval $ac_compile) 2>&5
21049   ac_status=$?
21050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051   (exit $ac_status); } &&
21052          { ac_try='test -s conftest.$ac_objext'
21053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054   (eval $ac_try) 2>&5
21055   ac_status=$?
21056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057   (exit $ac_status); }; }; then
21058   ac_cv_func_std_isnan_in_cmath=yes
21059 else
21060   echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21062
21063 ac_cv_func_std_isnan_in_cmath=no
21064 fi
21065 rm -f conftest.$ac_objext conftest.$ac_ext
21066  ac_ext=c
21067 ac_cpp='$CPP $CPPFLAGS'
21068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21071
21072 fi
21073 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21074 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21075  if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21076  then
21077
21078 cat >>confdefs.h <<\_ACEOF
21079 #define HAVE_STD_ISNAN_IN_CMATH 1
21080 _ACEOF
21081
21082  fi
21083
21084
21085 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21086 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21087 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21088   echo $ECHO_N "(cached) $ECHO_C" >&6
21089 else
21090   ac_ext=cc
21091 ac_cpp='$CXXCPP $CPPFLAGS'
21092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21095
21096   cat >conftest.$ac_ext <<_ACEOF
21097 #line $LINENO "configure"
21098 /* confdefs.h.  */
21099 _ACEOF
21100 cat confdefs.h >>conftest.$ac_ext
21101 cat >>conftest.$ac_ext <<_ACEOF
21102 /* end confdefs.h.  */
21103 #include <math.h>
21104                      int foo(float f) {return isinf(f);}
21105 _ACEOF
21106 rm -f conftest.$ac_objext
21107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21108   (eval $ac_compile) 2>&5
21109   ac_status=$?
21110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111   (exit $ac_status); } &&
21112          { ac_try='test -s conftest.$ac_objext'
21113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114   (eval $ac_try) 2>&5
21115   ac_status=$?
21116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); }; }; then
21118   ac_cv_func_isinf_in_math_h=yes
21119 else
21120   echo "$as_me: failed program was:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21122
21123 ac_cv_func_isinf_in_math_h=no
21124 fi
21125 rm -f conftest.$ac_objext conftest.$ac_ext
21126  ac_ext=c
21127 ac_cpp='$CPP $CPPFLAGS'
21128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21131
21132 fi
21133 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21134 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21135  if test "$ac_cv_func_isinf_in_math_h" = "yes"
21136  then
21137
21138 cat >>confdefs.h <<\_ACEOF
21139 #define HAVE_ISINF_IN_MATH_H 1
21140 _ACEOF
21141
21142  fi
21143 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21144 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21145 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21146   echo $ECHO_N "(cached) $ECHO_C" >&6
21147 else
21148   ac_ext=cc
21149 ac_cpp='$CXXCPP $CPPFLAGS'
21150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21153
21154   cat >conftest.$ac_ext <<_ACEOF
21155 #line $LINENO "configure"
21156 /* confdefs.h.  */
21157 _ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h.  */
21161 #include <cmath>
21162                      int foo(float f) {return isinf(f);}
21163 _ACEOF
21164 rm -f conftest.$ac_objext
21165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21166   (eval $ac_compile) 2>&5
21167   ac_status=$?
21168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169   (exit $ac_status); } &&
21170          { ac_try='test -s conftest.$ac_objext'
21171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172   (eval $ac_try) 2>&5
21173   ac_status=$?
21174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175   (exit $ac_status); }; }; then
21176   ac_cv_func_isinf_in_cmath=yes
21177 else
21178   echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21180
21181 ac_cv_func_isinf_in_cmath=no
21182 fi
21183 rm -f conftest.$ac_objext conftest.$ac_ext
21184  ac_ext=c
21185 ac_cpp='$CPP $CPPFLAGS'
21186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21189
21190 fi
21191 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21192 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
21193  if test "$ac_cv_func_isinf_in_cmath" = "yes"
21194  then
21195
21196 cat >>confdefs.h <<\_ACEOF
21197 #define HAVE_ISINF_IN_CMATH 1
21198 _ACEOF
21199
21200  fi
21201 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21202 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
21203 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21204   echo $ECHO_N "(cached) $ECHO_C" >&6
21205 else
21206   ac_ext=cc
21207 ac_cpp='$CXXCPP $CPPFLAGS'
21208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21211
21212   cat >conftest.$ac_ext <<_ACEOF
21213 #line $LINENO "configure"
21214 /* confdefs.h.  */
21215 _ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h.  */
21219 #include <cmath>
21220                      using std::isinf; int foo(float f) {return isinf(f);}
21221 _ACEOF
21222 rm -f conftest.$ac_objext
21223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21224   (eval $ac_compile) 2>&5
21225   ac_status=$?
21226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227   (exit $ac_status); } &&
21228          { ac_try='test -s conftest.$ac_objext'
21229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21230   (eval $ac_try) 2>&5
21231   ac_status=$?
21232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233   (exit $ac_status); }; }; then
21234   ac_cv_func_std_isinf_in_cmath=yes
21235 else
21236   echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21238
21239 ac_cv_func_std_isinf_in_cmath=no
21240 fi
21241 rm -f conftest.$ac_objext conftest.$ac_ext
21242  ac_ext=c
21243 ac_cpp='$CPP $CPPFLAGS'
21244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21247
21248 fi
21249 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21250 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
21251  if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
21252  then
21253
21254 cat >>confdefs.h <<\_ACEOF
21255 #define HAVE_STD_ISINF_IN_CMATH 1
21256 _ACEOF
21257
21258  fi
21259 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21260 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
21261 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21262   echo $ECHO_N "(cached) $ECHO_C" >&6
21263 else
21264   ac_ext=cc
21265 ac_cpp='$CXXCPP $CPPFLAGS'
21266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21269
21270   cat >conftest.$ac_ext <<_ACEOF
21271 #line $LINENO "configure"
21272 /* confdefs.h.  */
21273 _ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h.  */
21277 #include <ieeefp.h>
21278                      int foo(float f) {return finite(f);}
21279 _ACEOF
21280 rm -f conftest.$ac_objext
21281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21282   (eval $ac_compile) 2>&5
21283   ac_status=$?
21284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285   (exit $ac_status); } &&
21286          { ac_try='test -s conftest.$ac_objext'
21287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288   (eval $ac_try) 2>&5
21289   ac_status=$?
21290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291   (exit $ac_status); }; }; then
21292   ac_cv_func_finite_in_ieeefp_h=yes
21293 else
21294   echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21296
21297 ac_cv_func_finite_in_ieeefp_h=no
21298 fi
21299 rm -f conftest.$ac_objext conftest.$ac_ext
21300  ac_ext=c
21301 ac_cpp='$CPP $CPPFLAGS'
21302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21305
21306 fi
21307 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21308 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
21309  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
21310  then
21311
21312 cat >>confdefs.h <<\_ACEOF
21313 #define HAVE_FINITE_IN_IEEEFP_H 1
21314 _ACEOF
21315
21316  fi
21317
21318
21319 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21320 # for constant arguments.  Useless!
21321 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21322 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21323 if test "${ac_cv_working_alloca_h+set}" = set; then
21324   echo $ECHO_N "(cached) $ECHO_C" >&6
21325 else
21326   cat >conftest.$ac_ext <<_ACEOF
21327 #line $LINENO "configure"
21328 /* confdefs.h.  */
21329 _ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h.  */
21333 #include <alloca.h>
21334 int
21335 main ()
21336 {
21337 char *p = (char *) alloca (2 * sizeof (int));
21338   ;
21339   return 0;
21340 }
21341 _ACEOF
21342 rm -f conftest.$ac_objext conftest$ac_exeext
21343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21344   (eval $ac_link) 2>&5
21345   ac_status=$?
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); } &&
21348          { ac_try='test -s conftest$ac_exeext'
21349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21350   (eval $ac_try) 2>&5
21351   ac_status=$?
21352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353   (exit $ac_status); }; }; then
21354   ac_cv_working_alloca_h=yes
21355 else
21356   echo "$as_me: failed program was:" >&5
21357 sed 's/^/| /' conftest.$ac_ext >&5
21358
21359 ac_cv_working_alloca_h=no
21360 fi
21361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21362 fi
21363 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21364 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21365 if test $ac_cv_working_alloca_h = yes; then
21366
21367 cat >>confdefs.h <<\_ACEOF
21368 #define HAVE_ALLOCA_H 1
21369 _ACEOF
21370
21371 fi
21372
21373 echo "$as_me:$LINENO: checking for alloca" >&5
21374 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21375 if test "${ac_cv_func_alloca_works+set}" = set; then
21376   echo $ECHO_N "(cached) $ECHO_C" >&6
21377 else
21378   cat >conftest.$ac_ext <<_ACEOF
21379 #line $LINENO "configure"
21380 /* confdefs.h.  */
21381 _ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h.  */
21385 #ifdef __GNUC__
21386 # define alloca __builtin_alloca
21387 #else
21388 # ifdef _MSC_VER
21389 #  include <malloc.h>
21390 #  define alloca _alloca
21391 # else
21392 #  if HAVE_ALLOCA_H
21393 #   include <alloca.h>
21394 #  else
21395 #   ifdef _AIX
21396  #pragma alloca
21397 #   else
21398 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21399 char *alloca ();
21400 #    endif
21401 #   endif
21402 #  endif
21403 # endif
21404 #endif
21405
21406 int
21407 main ()
21408 {
21409 char *p = (char *) alloca (1);
21410   ;
21411   return 0;
21412 }
21413 _ACEOF
21414 rm -f conftest.$ac_objext 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); } &&
21420          { ac_try='test -s conftest$ac_exeext'
21421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422   (eval $ac_try) 2>&5
21423   ac_status=$?
21424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425   (exit $ac_status); }; }; then
21426   ac_cv_func_alloca_works=yes
21427 else
21428   echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431 ac_cv_func_alloca_works=no
21432 fi
21433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21434 fi
21435 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21436 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21437
21438 if test $ac_cv_func_alloca_works = yes; then
21439
21440 cat >>confdefs.h <<\_ACEOF
21441 #define HAVE_ALLOCA 1
21442 _ACEOF
21443
21444 else
21445   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21446 # that cause trouble.  Some versions do not even contain alloca or
21447 # contain a buggy version.  If you still want to use their alloca,
21448 # use ar to extract alloca.o from them instead of compiling alloca.c.
21449
21450 ALLOCA=alloca.$ac_objext
21451
21452 cat >>confdefs.h <<\_ACEOF
21453 #define C_ALLOCA 1
21454 _ACEOF
21455
21456
21457 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21458 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21459 if test "${ac_cv_os_cray+set}" = set; then
21460   echo $ECHO_N "(cached) $ECHO_C" >&6
21461 else
21462   cat >conftest.$ac_ext <<_ACEOF
21463 #line $LINENO "configure"
21464 /* confdefs.h.  */
21465 _ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h.  */
21469 #if defined(CRAY) && ! defined(CRAY2)
21470 webecray
21471 #else
21472 wenotbecray
21473 #endif
21474
21475 _ACEOF
21476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21477   $EGREP "webecray" >/dev/null 2>&1; then
21478   ac_cv_os_cray=yes
21479 else
21480   ac_cv_os_cray=no
21481 fi
21482 rm -f conftest*
21483
21484 fi
21485 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21486 echo "${ECHO_T}$ac_cv_os_cray" >&6
21487 if test $ac_cv_os_cray = yes; then
21488   for ac_func in _getb67 GETB67 getb67; do
21489     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21490 echo "$as_me:$LINENO: checking for $ac_func" >&5
21491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21492 if eval "test \"\${$as_ac_var+set}\" = set"; then
21493   echo $ECHO_N "(cached) $ECHO_C" >&6
21494 else
21495   cat >conftest.$ac_ext <<_ACEOF
21496 #line $LINENO "configure"
21497 /* confdefs.h.  */
21498 _ACEOF
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h.  */
21502 /* System header to define __stub macros and hopefully few prototypes,
21503     which can conflict with char $ac_func (); below.
21504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21505     <limits.h> exists even on freestanding compilers.  */
21506 #ifdef __STDC__
21507 # include <limits.h>
21508 #else
21509 # include <assert.h>
21510 #endif
21511 /* Override any gcc2 internal prototype to avoid an error.  */
21512 #ifdef __cplusplus
21513 extern "C"
21514 {
21515 #endif
21516 /* We use char because int might match the return type of a gcc2
21517    builtin and then its argument prototype would still apply.  */
21518 char $ac_func ();
21519 /* The GNU C library defines this for functions which it implements
21520     to always fail with ENOSYS.  Some functions are actually named
21521     something starting with __ and the normal name is an alias.  */
21522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21523 choke me
21524 #else
21525 char (*f) () = $ac_func;
21526 #endif
21527 #ifdef __cplusplus
21528 }
21529 #endif
21530
21531 int
21532 main ()
21533 {
21534 return f != $ac_func;
21535   ;
21536   return 0;
21537 }
21538 _ACEOF
21539 rm -f conftest.$ac_objext conftest$ac_exeext
21540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21541   (eval $ac_link) 2>&5
21542   ac_status=$?
21543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544   (exit $ac_status); } &&
21545          { ac_try='test -s conftest$ac_exeext'
21546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21547   (eval $ac_try) 2>&5
21548   ac_status=$?
21549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550   (exit $ac_status); }; }; then
21551   eval "$as_ac_var=yes"
21552 else
21553   echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21555
21556 eval "$as_ac_var=no"
21557 fi
21558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21559 fi
21560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21562 if test `eval echo '${'$as_ac_var'}'` = yes; then
21563
21564 cat >>confdefs.h <<_ACEOF
21565 #define CRAY_STACKSEG_END $ac_func
21566 _ACEOF
21567
21568     break
21569 fi
21570
21571   done
21572 fi
21573
21574 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21575 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21576 if test "${ac_cv_c_stack_direction+set}" = set; then
21577   echo $ECHO_N "(cached) $ECHO_C" >&6
21578 else
21579   if test "$cross_compiling" = yes; then
21580   ac_cv_c_stack_direction=0
21581 else
21582   cat >conftest.$ac_ext <<_ACEOF
21583 #line $LINENO "configure"
21584 /* confdefs.h.  */
21585 _ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h.  */
21589 int
21590 find_stack_direction ()
21591 {
21592   static char *addr = 0;
21593   auto char dummy;
21594   if (addr == 0)
21595     {
21596       addr = &dummy;
21597       return find_stack_direction ();
21598     }
21599   else
21600     return (&dummy > addr) ? 1 : -1;
21601 }
21602
21603 int
21604 main ()
21605 {
21606   exit (find_stack_direction () < 0);
21607 }
21608 _ACEOF
21609 rm -f conftest$ac_exeext
21610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21611   (eval $ac_link) 2>&5
21612   ac_status=$?
21613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21616   (eval $ac_try) 2>&5
21617   ac_status=$?
21618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619   (exit $ac_status); }; }; then
21620   ac_cv_c_stack_direction=1
21621 else
21622   echo "$as_me: program exited with status $ac_status" >&5
21623 echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21625
21626 ( exit $ac_status )
21627 ac_cv_c_stack_direction=-1
21628 fi
21629 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21630 fi
21631 fi
21632 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21633 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21634
21635 cat >>confdefs.h <<_ACEOF
21636 #define STACK_DIRECTION $ac_cv_c_stack_direction
21637 _ACEOF
21638
21639
21640 fi
21641
21642
21643
21644 for ac_header in stdlib.h unistd.h
21645 do
21646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21648   echo "$as_me:$LINENO: checking for $ac_header" >&5
21649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21651   echo $ECHO_N "(cached) $ECHO_C" >&6
21652 fi
21653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21655 else
21656   # Is the header compilable?
21657 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21659 cat >conftest.$ac_ext <<_ACEOF
21660 #line $LINENO "configure"
21661 /* confdefs.h.  */
21662 _ACEOF
21663 cat confdefs.h >>conftest.$ac_ext
21664 cat >>conftest.$ac_ext <<_ACEOF
21665 /* end confdefs.h.  */
21666 $ac_includes_default
21667 #include <$ac_header>
21668 _ACEOF
21669 rm -f conftest.$ac_objext
21670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21671   (eval $ac_compile) 2>&5
21672   ac_status=$?
21673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674   (exit $ac_status); } &&
21675          { ac_try='test -s conftest.$ac_objext'
21676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677   (eval $ac_try) 2>&5
21678   ac_status=$?
21679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680   (exit $ac_status); }; }; then
21681   ac_header_compiler=yes
21682 else
21683   echo "$as_me: failed program was:" >&5
21684 sed 's/^/| /' conftest.$ac_ext >&5
21685
21686 ac_header_compiler=no
21687 fi
21688 rm -f conftest.$ac_objext conftest.$ac_ext
21689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21690 echo "${ECHO_T}$ac_header_compiler" >&6
21691
21692 # Is the header present?
21693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21695 cat >conftest.$ac_ext <<_ACEOF
21696 #line $LINENO "configure"
21697 /* confdefs.h.  */
21698 _ACEOF
21699 cat confdefs.h >>conftest.$ac_ext
21700 cat >>conftest.$ac_ext <<_ACEOF
21701 /* end confdefs.h.  */
21702 #include <$ac_header>
21703 _ACEOF
21704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21705   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21706   ac_status=$?
21707   grep -v '^ *+' conftest.er1 >conftest.err
21708   rm -f conftest.er1
21709   cat conftest.err >&5
21710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711   (exit $ac_status); } >/dev/null; then
21712   if test -s conftest.err; then
21713     ac_cpp_err=$ac_c_preproc_warn_flag
21714   else
21715     ac_cpp_err=
21716   fi
21717 else
21718   ac_cpp_err=yes
21719 fi
21720 if test -z "$ac_cpp_err"; then
21721   ac_header_preproc=yes
21722 else
21723   echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21725
21726   ac_header_preproc=no
21727 fi
21728 rm -f conftest.err conftest.$ac_ext
21729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21730 echo "${ECHO_T}$ac_header_preproc" >&6
21731
21732 # So?  What about this header?
21733 case $ac_header_compiler:$ac_header_preproc in
21734   yes:no )
21735     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21739     (
21740       cat <<\_ASBOX
21741 ## ------------------------------------ ##
21742 ## Report this to bug-autoconf@gnu.org. ##
21743 ## ------------------------------------ ##
21744 _ASBOX
21745     ) |
21746       sed "s/^/$as_me: WARNING:     /" >&2
21747     ;;
21748   no:yes )
21749     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21751     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21755     (
21756       cat <<\_ASBOX
21757 ## ------------------------------------ ##
21758 ## Report this to bug-autoconf@gnu.org. ##
21759 ## ------------------------------------ ##
21760 _ASBOX
21761     ) |
21762       sed "s/^/$as_me: WARNING:     /" >&2
21763     ;;
21764 esac
21765 echo "$as_me:$LINENO: checking for $ac_header" >&5
21766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21768   echo $ECHO_N "(cached) $ECHO_C" >&6
21769 else
21770   eval "$as_ac_Header=$ac_header_preproc"
21771 fi
21772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21774
21775 fi
21776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21777   cat >>confdefs.h <<_ACEOF
21778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21779 _ACEOF
21780
21781 fi
21782
21783 done
21784
21785
21786 for ac_func in getpagesize
21787 do
21788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21789 echo "$as_me:$LINENO: checking for $ac_func" >&5
21790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21791 if eval "test \"\${$as_ac_var+set}\" = set"; then
21792   echo $ECHO_N "(cached) $ECHO_C" >&6
21793 else
21794   cat >conftest.$ac_ext <<_ACEOF
21795 #line $LINENO "configure"
21796 /* confdefs.h.  */
21797 _ACEOF
21798 cat confdefs.h >>conftest.$ac_ext
21799 cat >>conftest.$ac_ext <<_ACEOF
21800 /* end confdefs.h.  */
21801 /* System header to define __stub macros and hopefully few prototypes,
21802     which can conflict with char $ac_func (); below.
21803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21804     <limits.h> exists even on freestanding compilers.  */
21805 #ifdef __STDC__
21806 # include <limits.h>
21807 #else
21808 # include <assert.h>
21809 #endif
21810 /* Override any gcc2 internal prototype to avoid an error.  */
21811 #ifdef __cplusplus
21812 extern "C"
21813 {
21814 #endif
21815 /* We use char because int might match the return type of a gcc2
21816    builtin and then its argument prototype would still apply.  */
21817 char $ac_func ();
21818 /* The GNU C library defines this for functions which it implements
21819     to always fail with ENOSYS.  Some functions are actually named
21820     something starting with __ and the normal name is an alias.  */
21821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21822 choke me
21823 #else
21824 char (*f) () = $ac_func;
21825 #endif
21826 #ifdef __cplusplus
21827 }
21828 #endif
21829
21830 int
21831 main ()
21832 {
21833 return f != $ac_func;
21834   ;
21835   return 0;
21836 }
21837 _ACEOF
21838 rm -f conftest.$ac_objext conftest$ac_exeext
21839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21840   (eval $ac_link) 2>&5
21841   ac_status=$?
21842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843   (exit $ac_status); } &&
21844          { ac_try='test -s conftest$ac_exeext'
21845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846   (eval $ac_try) 2>&5
21847   ac_status=$?
21848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849   (exit $ac_status); }; }; then
21850   eval "$as_ac_var=yes"
21851 else
21852   echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21854
21855 eval "$as_ac_var=no"
21856 fi
21857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21858 fi
21859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21861 if test `eval echo '${'$as_ac_var'}'` = yes; then
21862   cat >>confdefs.h <<_ACEOF
21863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21864 _ACEOF
21865
21866 fi
21867 done
21868
21869 echo "$as_me:$LINENO: checking for working mmap" >&5
21870 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21871 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21872   echo $ECHO_N "(cached) $ECHO_C" >&6
21873 else
21874   if test "$cross_compiling" = yes; then
21875   ac_cv_func_mmap_fixed_mapped=no
21876 else
21877   cat >conftest.$ac_ext <<_ACEOF
21878 #line $LINENO "configure"
21879 /* confdefs.h.  */
21880 _ACEOF
21881 cat confdefs.h >>conftest.$ac_ext
21882 cat >>conftest.$ac_ext <<_ACEOF
21883 /* end confdefs.h.  */
21884 $ac_includes_default
21885 /* malloc might have been renamed as rpl_malloc. */
21886 #undef malloc
21887
21888 /* Thanks to Mike Haertel and Jim Avera for this test.
21889    Here is a matrix of mmap possibilities:
21890         mmap private not fixed
21891         mmap private fixed at somewhere currently unmapped
21892         mmap private fixed at somewhere already mapped
21893         mmap shared not fixed
21894         mmap shared fixed at somewhere currently unmapped
21895         mmap shared fixed at somewhere already mapped
21896    For private mappings, we should verify that changes cannot be read()
21897    back from the file, nor mmap's back from the file at a different
21898    address.  (There have been systems where private was not correctly
21899    implemented like the infamous i386 svr4.0, and systems where the
21900    VM page cache was not coherent with the file system buffer cache
21901    like early versions of FreeBSD and possibly contemporary NetBSD.)
21902    For shared mappings, we should conversely verify that changes get
21903    propagated back to all the places they're supposed to be.
21904
21905    Grep wants private fixed already mapped.
21906    The main things grep needs to know about mmap are:
21907    * does it exist and is it safe to write into the mmap'd area
21908    * how to use it (BSD variants)  */
21909
21910 #include <fcntl.h>
21911 #include <sys/mman.h>
21912
21913 #if !STDC_HEADERS && !HAVE_STDLIB_H
21914 char *malloc ();
21915 #endif
21916
21917 /* This mess was copied from the GNU getpagesize.h.  */
21918 #if !HAVE_GETPAGESIZE
21919 /* Assume that all systems that can run configure have sys/param.h.  */
21920 # if !HAVE_SYS_PARAM_H
21921 #  define HAVE_SYS_PARAM_H 1
21922 # endif
21923
21924 # ifdef _SC_PAGESIZE
21925 #  define getpagesize() sysconf(_SC_PAGESIZE)
21926 # else /* no _SC_PAGESIZE */
21927 #  if HAVE_SYS_PARAM_H
21928 #   include <sys/param.h>
21929 #   ifdef EXEC_PAGESIZE
21930 #    define getpagesize() EXEC_PAGESIZE
21931 #   else /* no EXEC_PAGESIZE */
21932 #    ifdef NBPG
21933 #     define getpagesize() NBPG * CLSIZE
21934 #     ifndef CLSIZE
21935 #      define CLSIZE 1
21936 #     endif /* no CLSIZE */
21937 #    else /* no NBPG */
21938 #     ifdef NBPC
21939 #      define getpagesize() NBPC
21940 #     else /* no NBPC */
21941 #      ifdef PAGESIZE
21942 #       define getpagesize() PAGESIZE
21943 #      endif /* PAGESIZE */
21944 #     endif /* no NBPC */
21945 #    endif /* no NBPG */
21946 #   endif /* no EXEC_PAGESIZE */
21947 #  else /* no HAVE_SYS_PARAM_H */
21948 #   define getpagesize() 8192   /* punt totally */
21949 #  endif /* no HAVE_SYS_PARAM_H */
21950 # endif /* no _SC_PAGESIZE */
21951
21952 #endif /* no HAVE_GETPAGESIZE */
21953
21954 int
21955 main ()
21956 {
21957   char *data, *data2, *data3;
21958   int i, pagesize;
21959   int fd;
21960
21961   pagesize = getpagesize ();
21962
21963   /* First, make a file with some known garbage in it. */
21964   data = (char *) malloc (pagesize);
21965   if (!data)
21966     exit (1);
21967   for (i = 0; i < pagesize; ++i)
21968     *(data + i) = rand ();
21969   umask (0);
21970   fd = creat ("conftest.mmap", 0600);
21971   if (fd < 0)
21972     exit (1);
21973   if (write (fd, data, pagesize) != pagesize)
21974     exit (1);
21975   close (fd);
21976
21977   /* Next, try to mmap the file at a fixed address which already has
21978      something else allocated at it.  If we can, also make sure that
21979      we see the same garbage.  */
21980   fd = open ("conftest.mmap", O_RDWR);
21981   if (fd < 0)
21982     exit (1);
21983   data2 = (char *) malloc (2 * pagesize);
21984   if (!data2)
21985     exit (1);
21986   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21987   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21988                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21989     exit (1);
21990   for (i = 0; i < pagesize; ++i)
21991     if (*(data + i) != *(data2 + i))
21992       exit (1);
21993
21994   /* Finally, make sure that changes to the mapped area do not
21995      percolate back to the file as seen by read().  (This is a bug on
21996      some variants of i386 svr4.0.)  */
21997   for (i = 0; i < pagesize; ++i)
21998     *(data2 + i) = *(data2 + i) + 1;
21999   data3 = (char *) malloc (pagesize);
22000   if (!data3)
22001     exit (1);
22002   if (read (fd, data3, pagesize) != pagesize)
22003     exit (1);
22004   for (i = 0; i < pagesize; ++i)
22005     if (*(data + i) != *(data3 + i))
22006       exit (1);
22007   close (fd);
22008   exit (0);
22009 }
22010 _ACEOF
22011 rm -f conftest$ac_exeext
22012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22013   (eval $ac_link) 2>&5
22014   ac_status=$?
22015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22018   (eval $ac_try) 2>&5
22019   ac_status=$?
22020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021   (exit $ac_status); }; }; then
22022   ac_cv_func_mmap_fixed_mapped=yes
22023 else
22024   echo "$as_me: program exited with status $ac_status" >&5
22025 echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22027
22028 ( exit $ac_status )
22029 ac_cv_func_mmap_fixed_mapped=no
22030 fi
22031 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22032 fi
22033 fi
22034 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22035 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22036 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22037
22038 cat >>confdefs.h <<\_ACEOF
22039 #define HAVE_MMAP 1
22040 _ACEOF
22041
22042 fi
22043 rm -f conftest.mmap
22044
22045 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22046 then
22047         { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22048 echo "$as_me: WARNING: mmap() required but not found" >&2;}
22049 fi
22050 echo "$as_me:$LINENO: checking for mmap of files" >&5
22051 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22052 if test "${ac_cv_func_mmap_file+set}" = set; then
22053   echo $ECHO_N "(cached) $ECHO_C" >&6
22054 else
22055
22056
22057   ac_ext=c
22058 ac_cpp='$CPP $CPPFLAGS'
22059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22062
22063   if test "$cross_compiling" = yes; then
22064   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22065 See \`config.log' for more details." >&5
22066 echo "$as_me: error: cannot run test program while cross compiling
22067 See \`config.log' for more details." >&2;}
22068    { (exit 1); exit 1; }; }
22069 else
22070   cat >conftest.$ac_ext <<_ACEOF
22071 #line $LINENO "configure"
22072 /* confdefs.h.  */
22073 _ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h.  */
22077
22078 #ifdef HAVE_SYS_TYPES_H
22079 #include <sys/types.h>
22080 #endif
22081
22082 #ifdef HAVE_SYS_MMAN_H
22083 #include <sys/mman.h>
22084 #endif
22085
22086 #ifdef HAVE_FCNTL_H
22087 #include <fcntl.h>
22088 #endif
22089
22090   int fd;
22091   int main () {
22092   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22093 _ACEOF
22094 rm -f conftest$ac_exeext
22095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22096   (eval $ac_link) 2>&5
22097   ac_status=$?
22098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22101   (eval $ac_try) 2>&5
22102   ac_status=$?
22103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104   (exit $ac_status); }; }; then
22105   ac_cv_func_mmap_file=yes
22106 else
22107   echo "$as_me: program exited with status $ac_status" >&5
22108 echo "$as_me: failed program was:" >&5
22109 sed 's/^/| /' conftest.$ac_ext >&5
22110
22111 ( exit $ac_status )
22112 ac_cv_func_mmap_file=no
22113 fi
22114 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22115 fi
22116   ac_ext=c
22117 ac_cpp='$CPP $CPPFLAGS'
22118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22121
22122
22123 fi
22124 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22125 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22126 if test "$ac_cv_func_mmap_file" = yes; then
22127
22128 cat >>confdefs.h <<\_ACEOF
22129 #define HAVE_MMAP_FILE
22130 _ACEOF
22131
22132    MMAP_FILE=yes
22133
22134 fi
22135
22136 if test "$ac_cv_func_mmap_file" = "no"
22137 then
22138         { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22139 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22140 fi
22141 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22142 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22143 if test "${ac_cv_header_mmap_anon+set}" = set; then
22144   echo $ECHO_N "(cached) $ECHO_C" >&6
22145 else
22146
22147
22148   ac_ext=c
22149 ac_cpp='$CPP $CPPFLAGS'
22150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22153
22154   cat >conftest.$ac_ext <<_ACEOF
22155 #line $LINENO "configure"
22156 /* confdefs.h.  */
22157 _ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h.  */
22161 #include <sys/mman.h>
22162   #include <unistd.h>
22163   #include <fcntl.h>
22164 int
22165 main ()
22166 {
22167 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22168   ;
22169   return 0;
22170 }
22171 _ACEOF
22172 rm -f conftest.$ac_objext
22173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22174   (eval $ac_compile) 2>&5
22175   ac_status=$?
22176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177   (exit $ac_status); } &&
22178          { ac_try='test -s conftest.$ac_objext'
22179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180   (eval $ac_try) 2>&5
22181   ac_status=$?
22182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183   (exit $ac_status); }; }; then
22184   ac_cv_header_mmap_anon=yes
22185 else
22186   echo "$as_me: failed program was:" >&5
22187 sed 's/^/| /' conftest.$ac_ext >&5
22188
22189 ac_cv_header_mmap_anon=no
22190 fi
22191 rm -f conftest.$ac_objext conftest.$ac_ext
22192   ac_ext=c
22193 ac_cpp='$CPP $CPPFLAGS'
22194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22197
22198
22199 fi
22200 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22201 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22202 if test "$ac_cv_header_mmap_anon" = yes; then
22203
22204 cat >>confdefs.h <<\_ACEOF
22205 #define HAVE_MMAP_ANONYMOUS
22206 _ACEOF
22207
22208 fi
22209
22210 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22211 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22212 if test "${ac_cv_type_signal+set}" = set; then
22213   echo $ECHO_N "(cached) $ECHO_C" >&6
22214 else
22215   cat >conftest.$ac_ext <<_ACEOF
22216 #line $LINENO "configure"
22217 /* confdefs.h.  */
22218 _ACEOF
22219 cat confdefs.h >>conftest.$ac_ext
22220 cat >>conftest.$ac_ext <<_ACEOF
22221 /* end confdefs.h.  */
22222 #include <sys/types.h>
22223 #include <signal.h>
22224 #ifdef signal
22225 # undef signal
22226 #endif
22227 #ifdef __cplusplus
22228 extern "C" void (*signal (int, void (*)(int)))(int);
22229 #else
22230 void (*signal ()) ();
22231 #endif
22232
22233 int
22234 main ()
22235 {
22236 int i;
22237   ;
22238   return 0;
22239 }
22240 _ACEOF
22241 rm -f conftest.$ac_objext
22242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22243   (eval $ac_compile) 2>&5
22244   ac_status=$?
22245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246   (exit $ac_status); } &&
22247          { ac_try='test -s conftest.$ac_objext'
22248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22249   (eval $ac_try) 2>&5
22250   ac_status=$?
22251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252   (exit $ac_status); }; }; then
22253   ac_cv_type_signal=void
22254 else
22255   echo "$as_me: failed program was:" >&5
22256 sed 's/^/| /' conftest.$ac_ext >&5
22257
22258 ac_cv_type_signal=int
22259 fi
22260 rm -f conftest.$ac_objext conftest.$ac_ext
22261 fi
22262 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22263 echo "${ECHO_T}$ac_cv_type_signal" >&6
22264
22265 cat >>confdefs.h <<_ACEOF
22266 #define RETSIGTYPE $ac_cv_type_signal
22267 _ACEOF
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
22280 do
22281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22282 echo "$as_me:$LINENO: checking for $ac_func" >&5
22283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22284 if eval "test \"\${$as_ac_var+set}\" = set"; then
22285   echo $ECHO_N "(cached) $ECHO_C" >&6
22286 else
22287   cat >conftest.$ac_ext <<_ACEOF
22288 #line $LINENO "configure"
22289 /* confdefs.h.  */
22290 _ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h.  */
22294 /* System header to define __stub macros and hopefully few prototypes,
22295     which can conflict with char $ac_func (); below.
22296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22297     <limits.h> exists even on freestanding compilers.  */
22298 #ifdef __STDC__
22299 # include <limits.h>
22300 #else
22301 # include <assert.h>
22302 #endif
22303 /* Override any gcc2 internal prototype to avoid an error.  */
22304 #ifdef __cplusplus
22305 extern "C"
22306 {
22307 #endif
22308 /* We use char because int might match the return type of a gcc2
22309    builtin and then its argument prototype would still apply.  */
22310 char $ac_func ();
22311 /* The GNU C library defines this for functions which it implements
22312     to always fail with ENOSYS.  Some functions are actually named
22313     something starting with __ and the normal name is an alias.  */
22314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22315 choke me
22316 #else
22317 char (*f) () = $ac_func;
22318 #endif
22319 #ifdef __cplusplus
22320 }
22321 #endif
22322
22323 int
22324 main ()
22325 {
22326 return f != $ac_func;
22327   ;
22328   return 0;
22329 }
22330 _ACEOF
22331 rm -f conftest.$ac_objext conftest$ac_exeext
22332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22333   (eval $ac_link) 2>&5
22334   ac_status=$?
22335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336   (exit $ac_status); } &&
22337          { ac_try='test -s conftest$ac_exeext'
22338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339   (eval $ac_try) 2>&5
22340   ac_status=$?
22341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342   (exit $ac_status); }; }; then
22343   eval "$as_ac_var=yes"
22344 else
22345   echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22347
22348 eval "$as_ac_var=no"
22349 fi
22350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22351 fi
22352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22354 if test `eval echo '${'$as_ac_var'}'` = yes; then
22355   cat >>confdefs.h <<_ACEOF
22356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22357 _ACEOF
22358
22359 fi
22360 done
22361
22362 echo "$as_me:$LINENO: checking for mprotect" >&5
22363 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22364 if test "${ac_cv_func_mprotect+set}" = set; then
22365   echo $ECHO_N "(cached) $ECHO_C" >&6
22366 else
22367   cat >conftest.$ac_ext <<_ACEOF
22368 #line $LINENO "configure"
22369 /* confdefs.h.  */
22370 _ACEOF
22371 cat confdefs.h >>conftest.$ac_ext
22372 cat >>conftest.$ac_ext <<_ACEOF
22373 /* end confdefs.h.  */
22374 /* System header to define __stub macros and hopefully few prototypes,
22375     which can conflict with char mprotect (); below.
22376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22377     <limits.h> exists even on freestanding compilers.  */
22378 #ifdef __STDC__
22379 # include <limits.h>
22380 #else
22381 # include <assert.h>
22382 #endif
22383 /* Override any gcc2 internal prototype to avoid an error.  */
22384 #ifdef __cplusplus
22385 extern "C"
22386 {
22387 #endif
22388 /* We use char because int might match the return type of a gcc2
22389    builtin and then its argument prototype would still apply.  */
22390 char mprotect ();
22391 /* The GNU C library defines this for functions which it implements
22392     to always fail with ENOSYS.  Some functions are actually named
22393     something starting with __ and the normal name is an alias.  */
22394 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22395 choke me
22396 #else
22397 char (*f) () = mprotect;
22398 #endif
22399 #ifdef __cplusplus
22400 }
22401 #endif
22402
22403 int
22404 main ()
22405 {
22406 return f != mprotect;
22407   ;
22408   return 0;
22409 }
22410 _ACEOF
22411 rm -f conftest.$ac_objext conftest$ac_exeext
22412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22413   (eval $ac_link) 2>&5
22414   ac_status=$?
22415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416   (exit $ac_status); } &&
22417          { ac_try='test -s conftest$ac_exeext'
22418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22419   (eval $ac_try) 2>&5
22420   ac_status=$?
22421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422   (exit $ac_status); }; }; then
22423   ac_cv_func_mprotect=yes
22424 else
22425   echo "$as_me: failed program was:" >&5
22426 sed 's/^/| /' conftest.$ac_ext >&5
22427
22428 ac_cv_func_mprotect=no
22429 fi
22430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22431 fi
22432 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22433 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22434 if test $ac_cv_func_mprotect = yes; then
22435   :
22436 else
22437   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22438 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22439    { (exit 1); exit 1; }; }
22440 fi
22441
22442
22443
22444   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
22445 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
22446
22447
22448   ac_ext=c
22449 ac_cpp='$CPP $CPPFLAGS'
22450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22453
22454   oldcflags="$CFLAGS"
22455   CFLAGS="$CFLAGS -Wl,-R."
22456   cat >conftest.$ac_ext <<_ACEOF
22457 int main() { return 0; }
22458 _ACEOF
22459 rm -f conftest.$ac_objext conftest$ac_exeext
22460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22461   (eval $ac_link) 2>&5
22462   ac_status=$?
22463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464   (exit $ac_status); } &&
22465          { ac_try='test -s conftest$ac_exeext'
22466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22467   (eval $ac_try) 2>&5
22468   ac_status=$?
22469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470   (exit $ac_status); }; }; then
22471   ac_cv_link_use_r=yes
22472 else
22473   echo "$as_me: failed program was:" >&5
22474 sed 's/^/| /' conftest.$ac_ext >&5
22475
22476 ac_cv_link_use_r=no
22477 fi
22478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22479   CFLAGS="$oldcflags"
22480   ac_ext=c
22481 ac_cpp='$CPP $CPPFLAGS'
22482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22485
22486   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
22487 echo "${ECHO_T}$ac_cv_link_use_r" >&6
22488   if test "$ac_cv_link_use_r" = yes
22489   then
22490
22491 cat >>confdefs.h <<\_ACEOF
22492 #define HAVE_LINK_R 1
22493 _ACEOF
22494
22495   fi
22496
22497
22498 # Check whether --enable-optimized or --disable-optimized was given.
22499 if test "${enable_optimized+set}" = set; then
22500   enableval="$enable_optimized"
22501
22502 else
22503   enableval=no
22504 fi;
22505 if test ${enableval} = "no"
22506 then
22507         ENABLE_OPTIMIZED=
22508
22509 else
22510         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22511
22512 fi
22513
22514
22515
22516
22517  # Check whether --enable-spec95 or --disable-spec95 was given.
22518 if test "${enable_spec95+set}" = set; then
22519   enableval="$enable_spec95"
22520   checkresult=$enableval
22521 else
22522   checkresult=auto
22523 fi;
22524 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
22525 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
22526 case "$checkresult" in
22527 auto|yes)
22528     defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
22529         if test -d "$defaultdir"
22530         then
22531                 SPEC95_ROOT=$defaultdir
22532
22533                 USE_SPEC95=USE_SPEC95=1
22534
22535         checkresult="yes, found in $defaultdir"
22536     else
22537         checkresult=no
22538     fi
22539     ;;
22540 no)
22541
22542
22543     checkresult=no
22544     ;;
22545 *)  if test -d "$checkresult"
22546     then
22547         SPEC95_ROOT="$checkresult"
22548
22549         USE_SPEC95=USE_SPEC95=1
22550
22551         checkresult="yes, in $checkresult"
22552     else
22553
22554
22555         checkresult="no, not found in $checkresult"
22556     fi
22557     ;;
22558 esac
22559 echo "$as_me:$LINENO: result: $checkresult" >&5
22560 echo "${ECHO_T}$checkresult" >&6
22561
22562
22563
22564  # Check whether --enable-spec2000 or --disable-spec2000 was given.
22565 if test "${enable_spec2000+set}" = set; then
22566   enableval="$enable_spec2000"
22567   checkresult=$enableval
22568 else
22569   checkresult=auto
22570 fi;
22571 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
22572 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
22573 case "$checkresult" in
22574 auto|yes)
22575     defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22576         if test -d "$defaultdir"
22577         then
22578                 SPEC2000_ROOT=$defaultdir
22579
22580                 USE_SPEC2000=USE_SPEC2000=1
22581
22582         checkresult="yes, found in $defaultdir"
22583     else
22584         checkresult=no
22585     fi
22586     ;;
22587 no)
22588
22589
22590     checkresult=no
22591     ;;
22592 *)  if test -d "$checkresult"
22593     then
22594         SPEC2000_ROOT="$checkresult"
22595
22596         USE_SPEC2000=USE_SPEC2000=1
22597
22598         checkresult="yes, in $checkresult"
22599     else
22600
22601
22602         checkresult="no, not found in $checkresult"
22603     fi
22604     ;;
22605 esac
22606 echo "$as_me:$LINENO: result: $checkresult" >&5
22607 echo "${ECHO_T}$checkresult" >&6
22608
22609
22610
22611  # Check whether --enable-povray or --disable-povray was given.
22612 if test "${enable_povray+set}" = set; then
22613   enableval="$enable_povray"
22614   checkresult=$enableval
22615 else
22616   checkresult=auto
22617 fi;
22618 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
22619 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
22620 case "$checkresult" in
22621 auto|yes)
22622     defaultdir=/home/vadve/shared/benchmarks/povray31
22623         if test -d "$defaultdir"
22624         then
22625                 POVRAY_ROOT=$defaultdir
22626
22627                 USE_POVRAY=USE_POVRAY=1
22628
22629         checkresult="yes, found in $defaultdir"
22630     else
22631         checkresult=no
22632     fi
22633     ;;
22634 no)
22635
22636
22637     checkresult=no
22638     ;;
22639 *)  if test -d "$checkresult"
22640     then
22641         POVRAY_ROOT="$checkresult"
22642
22643         USE_POVRAY=USE_POVRAY=1
22644
22645         checkresult="yes, in $checkresult"
22646     else
22647
22648
22649         checkresult="no, not found in $checkresult"
22650     fi
22651     ;;
22652 esac
22653 echo "$as_me:$LINENO: result: $checkresult" >&5
22654 echo "${ECHO_T}$checkresult" >&6
22655
22656
22657
22658 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22659 if test "${enable_precompiled_bytecode+set}" = set; then
22660   enableval="$enable_precompiled_bytecode"
22661
22662 else
22663   enableval=no
22664 fi;
22665 if test ${enableval} = "no"
22666 then
22667         UPB=
22668
22669 else
22670         UPB=USE_PRECOMPILED_BYTECODE=1
22671
22672 fi
22673
22674 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22675 if test "${enable_llc_diffs+set}" = set; then
22676   enableval="$enable_llc_diffs"
22677
22678 else
22679   enableval=yes
22680 fi;
22681 if test ${enableval} = "no"
22682 then
22683         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22684
22685 else
22686         DISABLE_LLC_DIFFS=
22687
22688 fi
22689
22690 # Check whether --enable-jit or --disable-jit was given.
22691 if test "${enable_jit+set}" = set; then
22692   enableval="$enable_jit"
22693
22694 else
22695   enableval=default
22696 fi;
22697 if test ${enableval} = "no"
22698 then
22699         JIT=
22700
22701 else
22702         case $target in
22703                 *i*86*)
22704                         JIT=TARGET_HAS_JIT=1
22705
22706                         ;;
22707                 *sparc*)
22708                         JIT=TARGET_HAS_JIT=1
22709
22710                         ;;
22711                 *)
22712                         JIT=
22713
22714                         ;;
22715         esac
22716 fi
22717
22718
22719 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22720 if test "${with_llvmgccdir+set}" = set; then
22721   withval="$with_llvmgccdir"
22722   LLVMGCCDIR=$withval
22723
22724 fi;
22725 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22726 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22727 LLVM_GCC_CHECK=no
22728 if test -d "$LLVMGCCDIR"
22729 then
22730         if test -x "$LLVMGCCDIR/bin/gcc"
22731         then
22732                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22733         fi
22734 fi
22735 llvmgccwarn=no
22736 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22737 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22738 if test "$LLVM_GCC_CHECK" = "no"
22739 then
22740     llvmgccwarn=yes
22741 fi
22742 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22743 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22744 LLVM_GCC_SANE=no
22745 if test -x "$LLVM_GCC_CHECK"
22746 then
22747         cp /dev/null conftest.c
22748     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22749         if test $? -eq 0
22750         then
22751                 LLVM_GCC_SANE=yes
22752         fi
22753         rm conftest.c
22754         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
22755         LLVMCC1=$llvmcc1path
22756
22757         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
22758         LLVMCC1PLUS=$llvmcc1pluspath
22759
22760 fi
22761 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22762 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22763 if test "$LLVM_GCC_SANE" = "no"
22764 then
22765         llvmgccwarn=yes
22766 fi
22767
22768
22769 # Check whether --with-bcrepos or --without-bcrepos was given.
22770 if test "${with_bcrepos+set}" = set; then
22771   withval="$with_bcrepos"
22772   BCR=$withval
22773
22774 else
22775   BCR=/home/vadve/lattner/LLVMPrograms
22776
22777 fi;
22778
22779
22780 # Check whether --with-papi or --without-papi was given.
22781 if test "${with_papi+set}" = set; then
22782   withval="$with_papi"
22783   PAPIDIR=$withval
22784
22785 else
22786   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22787
22788 fi;
22789
22790 echo "$as_me:$LINENO: checking for shared library suffix" >&5
22791 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22792 eval "SHLIBEXT=$shrext"
22793 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22794 echo "${ECHO_T}$SHLIBEXT" >&6
22795 SHLIBEXT=$SHLIBEXT
22796
22797
22798 cat >>confdefs.h <<_ACEOF
22799 #define SHLIBEXT "$SHLIBEXT"
22800 _ACEOF
22801
22802
22803 # Translate the various configuration directories and other basic
22804 # information into substitutions that will end up in config.h.in so
22805 # that these configured values can be hard-wired into a program.
22806 eval LLVM_PREFIX="${prefix}";
22807 eval LLVM_BINDIR="${prefix}/bin";
22808 eval LLVM_LIBDIR="${prefix}/lib";
22809 eval LLVM_DATADIR="${prefix}/data";
22810 eval LLVM_DOCSDIR="${prefix}/docs";
22811 eval LLVM_ETCDIR="${prefix}/etc";
22812 eval LLVM_INCLUDEDIR="${prefix}/include";
22813 eval LLVM_INFODIR="${prefix}/info";
22814 eval LLVM_MANDIR="${prefix}/man";
22815 LLVM_CONFIGTIME=`date`
22816
22817
22818
22819
22820
22821
22822
22823
22824
22825
22826
22827 cat >>confdefs.h <<_ACEOF
22828 #define LLVM_PREFIX "$LLVM_PREFIX"
22829 _ACEOF
22830
22831
22832 cat >>confdefs.h <<_ACEOF
22833 #define LLVM_BINDIR "$LLVM_BINDIR"
22834 _ACEOF
22835
22836
22837 cat >>confdefs.h <<_ACEOF
22838 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22839 _ACEOF
22840
22841
22842 cat >>confdefs.h <<_ACEOF
22843 #define LLVM_DATADIR "$LLVM_DATADIR"
22844 _ACEOF
22845
22846
22847 cat >>confdefs.h <<_ACEOF
22848 #define LLVM_DATADIR "$LLVM_DOCSDIR"
22849 _ACEOF
22850
22851
22852 cat >>confdefs.h <<_ACEOF
22853 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22854 _ACEOF
22855
22856
22857 cat >>confdefs.h <<_ACEOF
22858 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22859 _ACEOF
22860
22861
22862 cat >>confdefs.h <<_ACEOF
22863 #define LLVM_INFODIR "$LLVM_INFODIR"
22864 _ACEOF
22865
22866
22867 cat >>confdefs.h <<_ACEOF
22868 #define LLVM_MANDIR "$LLVM_MANDIR"
22869 _ACEOF
22870
22871
22872 cat >>confdefs.h <<_ACEOF
22873 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22874 _ACEOF
22875
22876
22877 cat >confcache <<\_ACEOF
22878 # This file is a shell script that caches the results of configure
22879 # tests run on this system so they can be shared between configure
22880 # scripts and configure runs, see configure's option --config-cache.
22881 # It is not useful on other systems.  If it contains results you don't
22882 # want to keep, you may remove or edit it.
22883 #
22884 # config.status only pays attention to the cache file if you give it
22885 # the --recheck option to rerun configure.
22886 #
22887 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22888 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22889 # following values.
22890
22891 _ACEOF
22892
22893 # The following way of writing the cache mishandles newlines in values,
22894 # but we know of no workaround that is simple, portable, and efficient.
22895 # So, don't put newlines in cache variables' values.
22896 # Ultrix sh set writes to stderr and can't be redirected directly,
22897 # and sets the high bit in the cache file unless we assign to the vars.
22898 {
22899   (set) 2>&1 |
22900     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22901     *ac_space=\ *)
22902       # `set' does not quote correctly, so add quotes (double-quote
22903       # substitution turns \\\\ into \\, and sed turns \\ into \).
22904       sed -n \
22905         "s/'/'\\\\''/g;
22906           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22907       ;;
22908     *)
22909       # `set' quotes correctly as required by POSIX, so do not add quotes.
22910       sed -n \
22911         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22912       ;;
22913     esac;
22914 } |
22915   sed '
22916      t clear
22917      : clear
22918      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22919      t end
22920      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22921      : end' >>confcache
22922 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22923   if test -w $cache_file; then
22924     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22925     cat confcache >$cache_file
22926   else
22927     echo "not updating unwritable cache $cache_file"
22928   fi
22929 fi
22930 rm -f confcache
22931
22932 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22933 # Let make expand exec_prefix.
22934 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22935
22936 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22937 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22938 # trailing colons and then remove the whole line if VPATH becomes empty
22939 # (actually we leave an empty line to preserve line numbers).
22940 if test "x$srcdir" = x.; then
22941   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22942 s/:*\$(srcdir):*/:/;
22943 s/:*\${srcdir}:*/:/;
22944 s/:*@srcdir@:*/:/;
22945 s/^\([^=]*=[    ]*\):*/\1/;
22946 s/:*$//;
22947 s/^[^=]*=[      ]*$//;
22948 }'
22949 fi
22950
22951 DEFS=-DHAVE_CONFIG_H
22952
22953 ac_libobjs=
22954 ac_ltlibobjs=
22955 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22956   # 1. Remove the extension, and $U if already installed.
22957   ac_i=`echo "$ac_i" |
22958          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22959   # 2. Add them.
22960   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22961   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22962 done
22963 LIBOBJS=$ac_libobjs
22964
22965 LTLIBOBJS=$ac_ltlibobjs
22966
22967
22968
22969 : ${CONFIG_STATUS=./config.status}
22970 ac_clean_files_save=$ac_clean_files
22971 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22972 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22973 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22974 cat >$CONFIG_STATUS <<_ACEOF
22975 #! $SHELL
22976 # Generated by $as_me.
22977 # Run this file to recreate the current configuration.
22978 # Compiler output produced by configure, useful for debugging
22979 # configure, is in config.log if it exists.
22980
22981 debug=false
22982 ac_cs_recheck=false
22983 ac_cs_silent=false
22984 SHELL=\${CONFIG_SHELL-$SHELL}
22985 _ACEOF
22986
22987 cat >>$CONFIG_STATUS <<\_ACEOF
22988 ## --------------------- ##
22989 ## M4sh Initialization.  ##
22990 ## --------------------- ##
22991
22992 # Be Bourne compatible
22993 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22994   emulate sh
22995   NULLCMD=:
22996   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22997   # is contrary to our usage.  Disable this feature.
22998   alias -g '${1+"$@"}'='"$@"'
22999 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23000   set -o posix
23001 fi
23002
23003 # Support unset when possible.
23004 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23005   as_unset=unset
23006 else
23007   as_unset=false
23008 fi
23009
23010
23011 # Work around bugs in pre-3.0 UWIN ksh.
23012 $as_unset ENV MAIL MAILPATH
23013 PS1='$ '
23014 PS2='> '
23015 PS4='+ '
23016
23017 # NLS nuisances.
23018 for as_var in \
23019   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23020   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23021   LC_TELEPHONE LC_TIME
23022 do
23023   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23024     eval $as_var=C; export $as_var
23025   else
23026     $as_unset $as_var
23027   fi
23028 done
23029
23030 # Required to use basename.
23031 if expr a : '\(a\)' >/dev/null 2>&1; then
23032   as_expr=expr
23033 else
23034   as_expr=false
23035 fi
23036
23037 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23038   as_basename=basename
23039 else
23040   as_basename=false
23041 fi
23042
23043
23044 # Name of the executable.
23045 as_me=`$as_basename "$0" ||
23046 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23047          X"$0" : 'X\(//\)$' \| \
23048          X"$0" : 'X\(/\)$' \| \
23049          .     : '\(.\)' 2>/dev/null ||
23050 echo X/"$0" |
23051     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23052           /^X\/\(\/\/\)$/{ s//\1/; q; }
23053           /^X\/\(\/\).*/{ s//\1/; q; }
23054           s/.*/./; q'`
23055
23056
23057 # PATH needs CR, and LINENO needs CR and PATH.
23058 # Avoid depending upon Character Ranges.
23059 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23060 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23061 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23062 as_cr_digits='0123456789'
23063 as_cr_alnum=$as_cr_Letters$as_cr_digits
23064
23065 # The user is always right.
23066 if test "${PATH_SEPARATOR+set}" != set; then
23067   echo "#! /bin/sh" >conf$$.sh
23068   echo  "exit 0"   >>conf$$.sh
23069   chmod +x conf$$.sh
23070   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23071     PATH_SEPARATOR=';'
23072   else
23073     PATH_SEPARATOR=:
23074   fi
23075   rm -f conf$$.sh
23076 fi
23077
23078
23079   as_lineno_1=$LINENO
23080   as_lineno_2=$LINENO
23081   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23082   test "x$as_lineno_1" != "x$as_lineno_2" &&
23083   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23084   # Find who we are.  Look in the path if we contain no path at all
23085   # relative or not.
23086   case $0 in
23087     *[\\/]* ) as_myself=$0 ;;
23088     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23089 for as_dir in $PATH
23090 do
23091   IFS=$as_save_IFS
23092   test -z "$as_dir" && as_dir=.
23093   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23094 done
23095
23096        ;;
23097   esac
23098   # We did not find ourselves, most probably we were run as `sh COMMAND'
23099   # in which case we are not to be found in the path.
23100   if test "x$as_myself" = x; then
23101     as_myself=$0
23102   fi
23103   if test ! -f "$as_myself"; then
23104     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23105 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23106    { (exit 1); exit 1; }; }
23107   fi
23108   case $CONFIG_SHELL in
23109   '')
23110     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23111 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23112 do
23113   IFS=$as_save_IFS
23114   test -z "$as_dir" && as_dir=.
23115   for as_base in sh bash ksh sh5; do
23116          case $as_dir in
23117          /*)
23118            if ("$as_dir/$as_base" -c '
23119   as_lineno_1=$LINENO
23120   as_lineno_2=$LINENO
23121   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23122   test "x$as_lineno_1" != "x$as_lineno_2" &&
23123   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23124              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23125              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23126              CONFIG_SHELL=$as_dir/$as_base
23127              export CONFIG_SHELL
23128              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23129            fi;;
23130          esac
23131        done
23132 done
23133 ;;
23134   esac
23135
23136   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23137   # uniformly replaced by the line number.  The first 'sed' inserts a
23138   # line-number line before each line; the second 'sed' does the real
23139   # work.  The second script uses 'N' to pair each line-number line
23140   # with the numbered line, and appends trailing '-' during
23141   # substitution so that $LINENO is not a special case at line end.
23142   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23143   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23144   sed '=' <$as_myself |
23145     sed '
23146       N
23147       s,$,-,
23148       : loop
23149       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23150       t loop
23151       s,-$,,
23152       s,^['$as_cr_digits']*\n,,
23153     ' >$as_me.lineno &&
23154   chmod +x $as_me.lineno ||
23155     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23156 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23157    { (exit 1); exit 1; }; }
23158
23159   # Don't try to exec as it changes $[0], causing all sort of problems
23160   # (the dirname of $[0] is not the place where we might find the
23161   # original and so on.  Autoconf is especially sensible to this).
23162   . ./$as_me.lineno
23163   # Exit status is that of the last command.
23164   exit
23165 }
23166
23167
23168 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23169   *c*,-n*) ECHO_N= ECHO_C='
23170 ' ECHO_T='      ' ;;
23171   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23172   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23173 esac
23174
23175 if expr a : '\(a\)' >/dev/null 2>&1; then
23176   as_expr=expr
23177 else
23178   as_expr=false
23179 fi
23180
23181 rm -f conf$$ conf$$.exe conf$$.file
23182 echo >conf$$.file
23183 if ln -s conf$$.file conf$$ 2>/dev/null; then
23184   # We could just check for DJGPP; but this test a) works b) is more generic
23185   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23186   if test -f conf$$.exe; then
23187     # Don't use ln at all; we don't have any links
23188     as_ln_s='cp -p'
23189   else
23190     as_ln_s='ln -s'
23191   fi
23192 elif ln conf$$.file conf$$ 2>/dev/null; then
23193   as_ln_s=ln
23194 else
23195   as_ln_s='cp -p'
23196 fi
23197 rm -f conf$$ conf$$.exe conf$$.file
23198
23199 if mkdir -p . 2>/dev/null; then
23200   as_mkdir_p=:
23201 else
23202   as_mkdir_p=false
23203 fi
23204
23205 as_executable_p="test -f"
23206
23207 # Sed expression to map a string onto a valid CPP name.
23208 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23209
23210 # Sed expression to map a string onto a valid variable name.
23211 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23212
23213
23214 # IFS
23215 # We need space, tab and new line, in precisely that order.
23216 as_nl='
23217 '
23218 IFS="   $as_nl"
23219
23220 # CDPATH.
23221 $as_unset CDPATH
23222
23223 exec 6>&1
23224
23225 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23226 # report actual input values of CONFIG_FILES etc. instead of their
23227 # values after options handling.  Logging --version etc. is OK.
23228 exec 5>>config.log
23229 {
23230   echo
23231   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23232 ## Running $as_me. ##
23233 _ASBOX
23234 } >&5
23235 cat >&5 <<_CSEOF
23236
23237 This file was extended by LLVM $as_me 1.4, which was
23238 generated by GNU Autoconf 2.57.  Invocation command line was
23239
23240   CONFIG_FILES    = $CONFIG_FILES
23241   CONFIG_HEADERS  = $CONFIG_HEADERS
23242   CONFIG_LINKS    = $CONFIG_LINKS
23243   CONFIG_COMMANDS = $CONFIG_COMMANDS
23244   $ $0 $@
23245
23246 _CSEOF
23247 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23248 echo >&5
23249 _ACEOF
23250
23251 # Files that config.status was made for.
23252 if test -n "$ac_config_files"; then
23253   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23254 fi
23255
23256 if test -n "$ac_config_headers"; then
23257   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23258 fi
23259
23260 if test -n "$ac_config_links"; then
23261   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23262 fi
23263
23264 if test -n "$ac_config_commands"; then
23265   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23266 fi
23267
23268 cat >>$CONFIG_STATUS <<\_ACEOF
23269
23270 ac_cs_usage="\
23271 \`$as_me' instantiates files from templates according to the
23272 current configuration.
23273
23274 Usage: $0 [OPTIONS] [FILE]...
23275
23276   -h, --help       print this help, then exit
23277   -V, --version    print version number, then exit
23278   -q, --quiet      do not print progress messages
23279   -d, --debug      don't remove temporary files
23280       --recheck    update $as_me by reconfiguring in the same conditions
23281   --file=FILE[:TEMPLATE]
23282                    instantiate the configuration file FILE
23283   --header=FILE[:TEMPLATE]
23284                    instantiate the configuration header FILE
23285
23286 Configuration files:
23287 $config_files
23288
23289 Configuration headers:
23290 $config_headers
23291
23292 Configuration links:
23293 $config_links
23294
23295 Configuration commands:
23296 $config_commands
23297
23298 Report bugs to <bug-autoconf@gnu.org>."
23299 _ACEOF
23300
23301 cat >>$CONFIG_STATUS <<_ACEOF
23302 ac_cs_version="\\
23303 LLVM config.status 1.4
23304 configured by $0, generated by GNU Autoconf 2.57,
23305   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23306
23307 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23308 Free Software Foundation, Inc.
23309 This config.status script is free software; the Free Software Foundation
23310 gives unlimited permission to copy, distribute and modify it."
23311 srcdir=$srcdir
23312 INSTALL="$INSTALL"
23313 _ACEOF
23314
23315 cat >>$CONFIG_STATUS <<\_ACEOF
23316 # If no file are specified by the user, then we need to provide default
23317 # value.  By we need to know if files were specified by the user.
23318 ac_need_defaults=:
23319 while test $# != 0
23320 do
23321   case $1 in
23322   --*=*)
23323     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23324     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23325     ac_shift=:
23326     ;;
23327   -*)
23328     ac_option=$1
23329     ac_optarg=$2
23330     ac_shift=shift
23331     ;;
23332   *) # This is not an option, so the user has probably given explicit
23333      # arguments.
23334      ac_option=$1
23335      ac_need_defaults=false;;
23336   esac
23337
23338   case $ac_option in
23339   # Handling of the options.
23340 _ACEOF
23341 cat >>$CONFIG_STATUS <<\_ACEOF
23342   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23343     ac_cs_recheck=: ;;
23344   --version | --vers* | -V )
23345     echo "$ac_cs_version"; exit 0 ;;
23346   --he | --h)
23347     # Conflict between --help and --header
23348     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23349 Try \`$0 --help' for more information." >&5
23350 echo "$as_me: error: ambiguous option: $1
23351 Try \`$0 --help' for more information." >&2;}
23352    { (exit 1); exit 1; }; };;
23353   --help | --hel | -h )
23354     echo "$ac_cs_usage"; exit 0 ;;
23355   --debug | --d* | -d )
23356     debug=: ;;
23357   --file | --fil | --fi | --f )
23358     $ac_shift
23359     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23360     ac_need_defaults=false;;
23361   --header | --heade | --head | --hea )
23362     $ac_shift
23363     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23364     ac_need_defaults=false;;
23365   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23366   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23367     ac_cs_silent=: ;;
23368
23369   # This is an error.
23370   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23371 Try \`$0 --help' for more information." >&5
23372 echo "$as_me: error: unrecognized option: $1
23373 Try \`$0 --help' for more information." >&2;}
23374    { (exit 1); exit 1; }; } ;;
23375
23376   *) ac_config_targets="$ac_config_targets $1" ;;
23377
23378   esac
23379   shift
23380 done
23381
23382 ac_configure_extra_args=
23383
23384 if $ac_cs_silent; then
23385   exec 6>/dev/null
23386   ac_configure_extra_args="$ac_configure_extra_args --silent"
23387 fi
23388
23389 _ACEOF
23390 cat >>$CONFIG_STATUS <<_ACEOF
23391 if \$ac_cs_recheck; then
23392   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23393   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23394 fi
23395
23396 _ACEOF
23397
23398 cat >>$CONFIG_STATUS <<_ACEOF
23399 #
23400 # INIT-COMMANDS section.
23401 #
23402
23403 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23404 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23405 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
23406 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23407 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23408 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23409 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23410 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23411 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23412 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23413 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23414 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
23415 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23416 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23417 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23418 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23419 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23420 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23421 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23422 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23423 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23424 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23454
23455 _ACEOF
23456
23457
23458
23459 cat >>$CONFIG_STATUS <<\_ACEOF
23460 for ac_config_target in $ac_config_targets
23461 do
23462   case "$ac_config_target" in
23463   # Handling of arguments.
23464   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23465   "include/llvm/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/DataTypes.h" ;;
23466   "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
23467   "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;;
23468   "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;;
23469   "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
23470   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
23471   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23472   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23473   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23474   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23475   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23476   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23477   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23478   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23479   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23480   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23481   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23482   "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
23483   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23484   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23485   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23486   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23487   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23488   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23489   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23490   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23491   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23492   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23493   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23494   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23495   "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
23496   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23497   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23498   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23499   "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
23500   "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
23501   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23502   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23503   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23504   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
23505   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
23506   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
23507   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
23508   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
23509   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
23510   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
23511   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
23512   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
23513   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
23514   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
23515   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
23516   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23517   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23518   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23519   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23520   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23521   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23522   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23523   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23524 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23525    { (exit 1); exit 1; }; };;
23526   esac
23527 done
23528
23529 # If the user did not use the arguments to specify the items to instantiate,
23530 # then the envvar interface is used.  Set only those that are not.
23531 # We use the long form for the default assignment because of an extremely
23532 # bizarre bug on SunOS 4.1.3.
23533 if $ac_need_defaults; then
23534   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23535   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23536   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23537   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23538 fi
23539
23540 # Have a temporary directory for convenience.  Make it in the build tree
23541 # simply because there is no reason to put it here, and in addition,
23542 # creating and moving files from /tmp can sometimes cause problems.
23543 # Create a temporary directory, and hook for its removal unless debugging.
23544 $debug ||
23545 {
23546   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23547   trap '{ (exit 1); exit 1; }' 1 2 13 15
23548 }
23549
23550 # Create a (secure) tmp directory for tmp files.
23551
23552 {
23553   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23554   test -n "$tmp" && test -d "$tmp"
23555 }  ||
23556 {
23557   tmp=./confstat$$-$RANDOM
23558   (umask 077 && mkdir $tmp)
23559 } ||
23560 {
23561    echo "$me: cannot create a temporary directory in ." >&2
23562    { (exit 1); exit 1; }
23563 }
23564
23565 _ACEOF
23566
23567 cat >>$CONFIG_STATUS <<_ACEOF
23568
23569 #
23570 # CONFIG_FILES section.
23571 #
23572
23573 # No need to generate the scripts if there are no CONFIG_FILES.
23574 # This happens for instance when ./config.status config.h
23575 if test -n "\$CONFIG_FILES"; then
23576   # Protect against being on the right side of a sed subst in config.status.
23577   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23578    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23579 s,@SHELL@,$SHELL,;t t
23580 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23581 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23582 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23583 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23584 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23585 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23586 s,@exec_prefix@,$exec_prefix,;t t
23587 s,@prefix@,$prefix,;t t
23588 s,@program_transform_name@,$program_transform_name,;t t
23589 s,@bindir@,$bindir,;t t
23590 s,@sbindir@,$sbindir,;t t
23591 s,@libexecdir@,$libexecdir,;t t
23592 s,@datadir@,$datadir,;t t
23593 s,@sysconfdir@,$sysconfdir,;t t
23594 s,@sharedstatedir@,$sharedstatedir,;t t
23595 s,@localstatedir@,$localstatedir,;t t
23596 s,@libdir@,$libdir,;t t
23597 s,@includedir@,$includedir,;t t
23598 s,@oldincludedir@,$oldincludedir,;t t
23599 s,@infodir@,$infodir,;t t
23600 s,@mandir@,$mandir,;t t
23601 s,@build_alias@,$build_alias,;t t
23602 s,@host_alias@,$host_alias,;t t
23603 s,@target_alias@,$target_alias,;t t
23604 s,@DEFS@,$DEFS,;t t
23605 s,@ECHO_C@,$ECHO_C,;t t
23606 s,@ECHO_N@,$ECHO_N,;t t
23607 s,@ECHO_T@,$ECHO_T,;t t
23608 s,@LIBS@,$LIBS,;t t
23609 s,@subdirs@,$subdirs,;t t
23610 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23611 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23612 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23613 s,@build@,$build,;t t
23614 s,@build_cpu@,$build_cpu,;t t
23615 s,@build_vendor@,$build_vendor,;t t
23616 s,@build_os@,$build_os,;t t
23617 s,@host@,$host,;t t
23618 s,@host_cpu@,$host_cpu,;t t
23619 s,@host_vendor@,$host_vendor,;t t
23620 s,@host_os@,$host_os,;t t
23621 s,@target@,$target,;t t
23622 s,@target_cpu@,$target_cpu,;t t
23623 s,@target_vendor@,$target_vendor,;t t
23624 s,@target_os@,$target_os,;t t
23625 s,@OS@,$OS,;t t
23626 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23627 s,@ARCH@,$ARCH,;t t
23628 s,@CXX@,$CXX,;t t
23629 s,@CXXFLAGS@,$CXXFLAGS,;t t
23630 s,@LDFLAGS@,$LDFLAGS,;t t
23631 s,@CPPFLAGS@,$CPPFLAGS,;t t
23632 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23633 s,@EXEEXT@,$EXEEXT,;t t
23634 s,@OBJEXT@,$OBJEXT,;t t
23635 s,@CC@,$CC,;t t
23636 s,@CFLAGS@,$CFLAGS,;t t
23637 s,@ac_ct_CC@,$ac_ct_CC,;t t
23638 s,@CPP@,$CPP,;t t
23639 s,@ifGNUmake@,$ifGNUmake,;t t
23640 s,@LEX@,$LEX,;t t
23641 s,@LEXLIB@,$LEXLIB,;t t
23642 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23643 s,@YACC@,$YACC,;t t
23644 s,@BISON@,$BISON,;t t
23645 s,@EGREP@,$EGREP,;t t
23646 s,@LN_S@,$LN_S,;t t
23647 s,@ECHO@,$ECHO,;t t
23648 s,@AR@,$AR,;t t
23649 s,@ac_ct_AR@,$ac_ct_AR,;t t
23650 s,@RANLIB@,$RANLIB,;t t
23651 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23652 s,@STRIP@,$STRIP,;t t
23653 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23654 s,@CXXCPP@,$CXXCPP,;t t
23655 s,@F77@,$F77,;t t
23656 s,@FFLAGS@,$FFLAGS,;t t
23657 s,@ac_ct_F77@,$ac_ct_F77,;t t
23658 s,@LIBTOOL@,$LIBTOOL,;t t
23659 s,@DOT@,$DOT,;t t
23660 s,@ETAGS@,$ETAGS,;t t
23661 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
23662 s,@PYTHON@,$PYTHON,;t t
23663 s,@QMTEST@,$QMTEST,;t t
23664 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
23665 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
23666 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
23667 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
23668 s,@ENDIAN@,$ENDIAN,;t t
23669 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
23670 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
23671 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
23672 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
23673 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
23674 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
23675 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
23676 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
23677 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
23678 s,@ALLOCA@,$ALLOCA,;t t
23679 s,@MMAP_FILE@,$MMAP_FILE,;t t
23680 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23681 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
23682 s,@USE_SPEC95@,$USE_SPEC95,;t t
23683 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
23684 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
23685 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
23686 s,@USE_POVRAY@,$USE_POVRAY,;t t
23687 s,@UPB@,$UPB,;t t
23688 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23689 s,@JIT@,$JIT,;t t
23690 s,@LLVMCC1@,$LLVMCC1,;t t
23691 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
23692 s,@BCR@,$BCR,;t t
23693 s,@PAPIDIR@,$PAPIDIR,;t t
23694 s,@SHLIBEXT@,$SHLIBEXT,;t t
23695 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
23696 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
23697 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
23698 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
23699 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
23700 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
23701 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
23702 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
23703 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
23704 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
23705 s,@LIBOBJS@,$LIBOBJS,;t t
23706 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23707 CEOF
23708
23709 _ACEOF
23710
23711   cat >>$CONFIG_STATUS <<\_ACEOF
23712   # Split the substitutions into bite-sized pieces for seds with
23713   # small command number limits, like on Digital OSF/1 and HP-UX.
23714   ac_max_sed_lines=48
23715   ac_sed_frag=1 # Number of current file.
23716   ac_beg=1 # First line for current file.
23717   ac_end=$ac_max_sed_lines # Line after last line for current file.
23718   ac_more_lines=:
23719   ac_sed_cmds=
23720   while $ac_more_lines; do
23721     if test $ac_beg -gt 1; then
23722       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23723     else
23724       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23725     fi
23726     if test ! -s $tmp/subs.frag; then
23727       ac_more_lines=false
23728     else
23729       # The purpose of the label and of the branching condition is to
23730       # speed up the sed processing (if there are no `@' at all, there
23731       # is no need to browse any of the substitutions).
23732       # These are the two extra sed commands mentioned above.
23733       (echo ':t
23734   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23735       if test -z "$ac_sed_cmds"; then
23736         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23737       else
23738         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23739       fi
23740       ac_sed_frag=`expr $ac_sed_frag + 1`
23741       ac_beg=$ac_end
23742       ac_end=`expr $ac_end + $ac_max_sed_lines`
23743     fi
23744   done
23745   if test -z "$ac_sed_cmds"; then
23746     ac_sed_cmds=cat
23747   fi
23748 fi # test -n "$CONFIG_FILES"
23749
23750 _ACEOF
23751 cat >>$CONFIG_STATUS <<\_ACEOF
23752 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23753   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23754   case $ac_file in
23755   - | *:- | *:-:* ) # input from stdin
23756         cat >$tmp/stdin
23757         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23758         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23759   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23760         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23761   * )   ac_file_in=$ac_file.in ;;
23762   esac
23763
23764   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23765   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23766 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23767          X"$ac_file" : 'X\(//\)[^/]' \| \
23768          X"$ac_file" : 'X\(//\)$' \| \
23769          X"$ac_file" : 'X\(/\)' \| \
23770          .     : '\(.\)' 2>/dev/null ||
23771 echo X"$ac_file" |
23772     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23773           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23774           /^X\(\/\/\)$/{ s//\1/; q; }
23775           /^X\(\/\).*/{ s//\1/; q; }
23776           s/.*/./; q'`
23777   { if $as_mkdir_p; then
23778     mkdir -p "$ac_dir"
23779   else
23780     as_dir="$ac_dir"
23781     as_dirs=
23782     while test ! -d "$as_dir"; do
23783       as_dirs="$as_dir $as_dirs"
23784       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23785 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23786          X"$as_dir" : 'X\(//\)[^/]' \| \
23787          X"$as_dir" : 'X\(//\)$' \| \
23788          X"$as_dir" : 'X\(/\)' \| \
23789          .     : '\(.\)' 2>/dev/null ||
23790 echo X"$as_dir" |
23791     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23792           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23793           /^X\(\/\/\)$/{ s//\1/; q; }
23794           /^X\(\/\).*/{ s//\1/; q; }
23795           s/.*/./; q'`
23796     done
23797     test ! -n "$as_dirs" || mkdir $as_dirs
23798   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23799 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23800    { (exit 1); exit 1; }; }; }
23801
23802   ac_builddir=.
23803
23804 if test "$ac_dir" != .; then
23805   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23806   # A "../" for each directory in $ac_dir_suffix.
23807   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23808 else
23809   ac_dir_suffix= ac_top_builddir=
23810 fi
23811
23812 case $srcdir in
23813   .)  # No --srcdir option.  We are building in place.
23814     ac_srcdir=.
23815     if test -z "$ac_top_builddir"; then
23816        ac_top_srcdir=.
23817     else
23818        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23819     fi ;;
23820   [\\/]* | ?:[\\/]* )  # Absolute path.
23821     ac_srcdir=$srcdir$ac_dir_suffix;
23822     ac_top_srcdir=$srcdir ;;
23823   *) # Relative path.
23824     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23825     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23826 esac
23827 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23828 # absolute.
23829 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23830 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23831 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23832 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23833
23834
23835   case $INSTALL in
23836   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23837   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23838   esac
23839
23840   if test x"$ac_file" != x-; then
23841     { echo "$as_me:$LINENO: creating $ac_file" >&5
23842 echo "$as_me: creating $ac_file" >&6;}
23843     rm -f "$ac_file"
23844   fi
23845   # Let's still pretend it is `configure' which instantiates (i.e., don't
23846   # use $as_me), people would be surprised to read:
23847   #    /* config.h.  Generated by config.status.  */
23848   if test x"$ac_file" = x-; then
23849     configure_input=
23850   else
23851     configure_input="$ac_file.  "
23852   fi
23853   configure_input=$configure_input"Generated from `echo $ac_file_in |
23854                                      sed 's,.*/,,'` by configure."
23855
23856   # First look for the input files in the build tree, otherwise in the
23857   # src tree.
23858   ac_file_inputs=`IFS=:
23859     for f in $ac_file_in; do
23860       case $f in
23861       -) echo $tmp/stdin ;;
23862       [\\/$]*)
23863          # Absolute (can't be DOS-style, as IFS=:)
23864          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23865 echo "$as_me: error: cannot find input file: $f" >&2;}
23866    { (exit 1); exit 1; }; }
23867          echo $f;;
23868       *) # Relative
23869          if test -f "$f"; then
23870            # Build tree
23871            echo $f
23872          elif test -f "$srcdir/$f"; then
23873            # Source tree
23874            echo $srcdir/$f
23875          else
23876            # /dev/null tree
23877            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23878 echo "$as_me: error: cannot find input file: $f" >&2;}
23879    { (exit 1); exit 1; }; }
23880          fi;;
23881       esac
23882     done` || { (exit 1); exit 1; }
23883 _ACEOF
23884 cat >>$CONFIG_STATUS <<_ACEOF
23885   sed "$ac_vpsub
23886 $extrasub
23887 _ACEOF
23888 cat >>$CONFIG_STATUS <<\_ACEOF
23889 :t
23890 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23891 s,@configure_input@,$configure_input,;t t
23892 s,@srcdir@,$ac_srcdir,;t t
23893 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23894 s,@top_srcdir@,$ac_top_srcdir,;t t
23895 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23896 s,@builddir@,$ac_builddir,;t t
23897 s,@abs_builddir@,$ac_abs_builddir,;t t
23898 s,@top_builddir@,$ac_top_builddir,;t t
23899 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23900 s,@INSTALL@,$ac_INSTALL,;t t
23901 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23902   rm -f $tmp/stdin
23903   if test x"$ac_file" != x-; then
23904     mv $tmp/out $ac_file
23905   else
23906     cat $tmp/out
23907     rm -f $tmp/out
23908   fi
23909
23910 done
23911 _ACEOF
23912 cat >>$CONFIG_STATUS <<\_ACEOF
23913
23914 #
23915 # CONFIG_HEADER section.
23916 #
23917
23918 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23919 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23920 #
23921 # ac_d sets the value in "#define NAME VALUE" lines.
23922 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
23923 ac_dB='[        ].*$,\1#\2'
23924 ac_dC=' '
23925 ac_dD=',;t'
23926 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23927 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23928 ac_uB='$,\1#\2define\3'
23929 ac_uC=' '
23930 ac_uD=',;t'
23931
23932 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23933   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23934   case $ac_file in
23935   - | *:- | *:-:* ) # input from stdin
23936         cat >$tmp/stdin
23937         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23938         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23939   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23940         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23941   * )   ac_file_in=$ac_file.in ;;
23942   esac
23943
23944   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23945 echo "$as_me: creating $ac_file" >&6;}
23946
23947   # First look for the input files in the build tree, otherwise in the
23948   # src tree.
23949   ac_file_inputs=`IFS=:
23950     for f in $ac_file_in; do
23951       case $f in
23952       -) echo $tmp/stdin ;;
23953       [\\/$]*)
23954          # Absolute (can't be DOS-style, as IFS=:)
23955          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23956 echo "$as_me: error: cannot find input file: $f" >&2;}
23957    { (exit 1); exit 1; }; }
23958          echo $f;;
23959       *) # Relative
23960          if test -f "$f"; then
23961            # Build tree
23962            echo $f
23963          elif test -f "$srcdir/$f"; then
23964            # Source tree
23965            echo $srcdir/$f
23966          else
23967            # /dev/null tree
23968            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23969 echo "$as_me: error: cannot find input file: $f" >&2;}
23970    { (exit 1); exit 1; }; }
23971          fi;;
23972       esac
23973     done` || { (exit 1); exit 1; }
23974   # Remove the trailing spaces.
23975   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
23976
23977 _ACEOF
23978
23979 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23980 # `conftest.undefs', that substitutes the proper values into
23981 # config.h.in to produce config.h.  The first handles `#define'
23982 # templates, and the second `#undef' templates.
23983 # And first: Protect against being on the right side of a sed subst in
23984 # config.status.  Protect against being in an unquoted here document
23985 # in config.status.
23986 rm -f conftest.defines conftest.undefs
23987 # Using a here document instead of a string reduces the quoting nightmare.
23988 # Putting comments in sed scripts is not portable.
23989 #
23990 # `end' is used to avoid that the second main sed command (meant for
23991 # 0-ary CPP macros) applies to n-ary macro definitions.
23992 # See the Autoconf documentation for `clear'.
23993 cat >confdef2sed.sed <<\_ACEOF
23994 s/[\\&,]/\\&/g
23995 s,[\\$`],\\&,g
23996 t clear
23997 : clear
23998 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23999 t end
24000 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24001 : end
24002 _ACEOF
24003 # If some macros were called several times there might be several times
24004 # the same #defines, which is useless.  Nevertheless, we may not want to
24005 # sort them, since we want the *last* AC-DEFINE to be honored.
24006 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24007 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24008 rm -f confdef2sed.sed
24009
24010 # This sed command replaces #undef with comments.  This is necessary, for
24011 # example, in the case of _POSIX_SOURCE, which is predefined and required
24012 # on some systems where configure will not decide to define it.
24013 cat >>conftest.undefs <<\_ACEOF
24014 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24015 _ACEOF
24016
24017 # Break up conftest.defines because some shells have a limit on the size
24018 # of here documents, and old seds have small limits too (100 cmds).
24019 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24020 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24021 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24022 echo '  :' >>$CONFIG_STATUS
24023 rm -f conftest.tail
24024 while grep . conftest.defines >/dev/null
24025 do
24026   # Write a limited-size here document to $tmp/defines.sed.
24027   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24028   # Speed up: don't consider the non `#define' lines.
24029   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24030   # Work around the forget-to-reset-the-flag bug.
24031   echo 't clr' >>$CONFIG_STATUS
24032   echo ': clr' >>$CONFIG_STATUS
24033   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24034   echo 'CEOF
24035   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24036   rm -f $tmp/in
24037   mv $tmp/out $tmp/in
24038 ' >>$CONFIG_STATUS
24039   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24040   rm -f conftest.defines
24041   mv conftest.tail conftest.defines
24042 done
24043 rm -f conftest.defines
24044 echo '  fi # grep' >>$CONFIG_STATUS
24045 echo >>$CONFIG_STATUS
24046
24047 # Break up conftest.undefs because some shells have a limit on the size
24048 # of here documents, and old seds have small limits too (100 cmds).
24049 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24050 rm -f conftest.tail
24051 while grep . conftest.undefs >/dev/null
24052 do
24053   # Write a limited-size here document to $tmp/undefs.sed.
24054   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24055   # Speed up: don't consider the non `#undef'
24056   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24057   # Work around the forget-to-reset-the-flag bug.
24058   echo 't clr' >>$CONFIG_STATUS
24059   echo ': clr' >>$CONFIG_STATUS
24060   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24061   echo 'CEOF
24062   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24063   rm -f $tmp/in
24064   mv $tmp/out $tmp/in
24065 ' >>$CONFIG_STATUS
24066   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24067   rm -f conftest.undefs
24068   mv conftest.tail conftest.undefs
24069 done
24070 rm -f conftest.undefs
24071
24072 cat >>$CONFIG_STATUS <<\_ACEOF
24073   # Let's still pretend it is `configure' which instantiates (i.e., don't
24074   # use $as_me), people would be surprised to read:
24075   #    /* config.h.  Generated by config.status.  */
24076   if test x"$ac_file" = x-; then
24077     echo "/* Generated by configure.  */" >$tmp/config.h
24078   else
24079     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24080   fi
24081   cat $tmp/in >>$tmp/config.h
24082   rm -f $tmp/in
24083   if test x"$ac_file" != x-; then
24084     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24085       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24086 echo "$as_me: $ac_file is unchanged" >&6;}
24087     else
24088       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24089 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24090          X"$ac_file" : 'X\(//\)[^/]' \| \
24091          X"$ac_file" : 'X\(//\)$' \| \
24092          X"$ac_file" : 'X\(/\)' \| \
24093          .     : '\(.\)' 2>/dev/null ||
24094 echo X"$ac_file" |
24095     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24096           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24097           /^X\(\/\/\)$/{ s//\1/; q; }
24098           /^X\(\/\).*/{ s//\1/; q; }
24099           s/.*/./; q'`
24100       { if $as_mkdir_p; then
24101     mkdir -p "$ac_dir"
24102   else
24103     as_dir="$ac_dir"
24104     as_dirs=
24105     while test ! -d "$as_dir"; do
24106       as_dirs="$as_dir $as_dirs"
24107       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24108 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24109          X"$as_dir" : 'X\(//\)[^/]' \| \
24110          X"$as_dir" : 'X\(//\)$' \| \
24111          X"$as_dir" : 'X\(/\)' \| \
24112          .     : '\(.\)' 2>/dev/null ||
24113 echo X"$as_dir" |
24114     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24115           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24116           /^X\(\/\/\)$/{ s//\1/; q; }
24117           /^X\(\/\).*/{ s//\1/; q; }
24118           s/.*/./; q'`
24119     done
24120     test ! -n "$as_dirs" || mkdir $as_dirs
24121   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24122 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24123    { (exit 1); exit 1; }; }; }
24124
24125       rm -f $ac_file
24126       mv $tmp/config.h $ac_file
24127     fi
24128   else
24129     cat $tmp/config.h
24130     rm -f $tmp/config.h
24131   fi
24132 done
24133 _ACEOF
24134 cat >>$CONFIG_STATUS <<\_ACEOF
24135
24136 #
24137 # CONFIG_LINKS section.
24138 #
24139
24140 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24141   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24142   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24143
24144   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24145 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
24146
24147   if test ! -r $srcdir/$ac_source; then
24148     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24149 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24150    { (exit 1); exit 1; }; }
24151   fi
24152   rm -f $ac_dest
24153
24154   # Make relative symlinks.
24155   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24156 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24157          X"$ac_dest" : 'X\(//\)[^/]' \| \
24158          X"$ac_dest" : 'X\(//\)$' \| \
24159          X"$ac_dest" : 'X\(/\)' \| \
24160          .     : '\(.\)' 2>/dev/null ||
24161 echo X"$ac_dest" |
24162     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24163           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24164           /^X\(\/\/\)$/{ s//\1/; q; }
24165           /^X\(\/\).*/{ s//\1/; q; }
24166           s/.*/./; q'`
24167   { if $as_mkdir_p; then
24168     mkdir -p "$ac_dest_dir"
24169   else
24170     as_dir="$ac_dest_dir"
24171     as_dirs=
24172     while test ! -d "$as_dir"; do
24173       as_dirs="$as_dir $as_dirs"
24174       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24176          X"$as_dir" : 'X\(//\)[^/]' \| \
24177          X"$as_dir" : 'X\(//\)$' \| \
24178          X"$as_dir" : 'X\(/\)' \| \
24179          .     : '\(.\)' 2>/dev/null ||
24180 echo X"$as_dir" |
24181     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24182           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24183           /^X\(\/\/\)$/{ s//\1/; q; }
24184           /^X\(\/\).*/{ s//\1/; q; }
24185           s/.*/./; q'`
24186     done
24187     test ! -n "$as_dirs" || mkdir $as_dirs
24188   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24189 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24190    { (exit 1); exit 1; }; }; }
24191
24192   ac_builddir=.
24193
24194 if test "$ac_dest_dir" != .; then
24195   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24196   # A "../" for each directory in $ac_dir_suffix.
24197   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24198 else
24199   ac_dir_suffix= ac_top_builddir=
24200 fi
24201
24202 case $srcdir in
24203   .)  # No --srcdir option.  We are building in place.
24204     ac_srcdir=.
24205     if test -z "$ac_top_builddir"; then
24206        ac_top_srcdir=.
24207     else
24208        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24209     fi ;;
24210   [\\/]* | ?:[\\/]* )  # Absolute path.
24211     ac_srcdir=$srcdir$ac_dir_suffix;
24212     ac_top_srcdir=$srcdir ;;
24213   *) # Relative path.
24214     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24215     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24216 esac
24217 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
24218 # absolute.
24219 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
24220 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
24221 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
24222 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
24223
24224
24225   case $srcdir in
24226   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
24227       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
24228   esac
24229
24230   # Try a symlink, then a hard link, then a copy.
24231   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24232     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24233     cp -p $srcdir/$ac_source $ac_dest ||
24234     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24235 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
24236    { (exit 1); exit 1; }; }
24237 done
24238 _ACEOF
24239 cat >>$CONFIG_STATUS <<\_ACEOF
24240
24241 #
24242 # CONFIG_COMMANDS section.
24243 #
24244 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24245   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24246   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24247   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24248 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24249          X"$ac_dest" : 'X\(//\)[^/]' \| \
24250          X"$ac_dest" : 'X\(//\)$' \| \
24251          X"$ac_dest" : 'X\(/\)' \| \
24252          .     : '\(.\)' 2>/dev/null ||
24253 echo X"$ac_dest" |
24254     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24255           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24256           /^X\(\/\/\)$/{ s//\1/; q; }
24257           /^X\(\/\).*/{ s//\1/; q; }
24258           s/.*/./; q'`
24259   ac_builddir=.
24260
24261 if test "$ac_dir" != .; then
24262   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24263   # A "../" for each directory in $ac_dir_suffix.
24264   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24265 else
24266   ac_dir_suffix= ac_top_builddir=
24267 fi
24268
24269 case $srcdir in
24270   .)  # No --srcdir option.  We are building in place.
24271     ac_srcdir=.
24272     if test -z "$ac_top_builddir"; then
24273        ac_top_srcdir=.
24274     else
24275        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24276     fi ;;
24277   [\\/]* | ?:[\\/]* )  # Absolute path.
24278     ac_srcdir=$srcdir$ac_dir_suffix;
24279     ac_top_srcdir=$srcdir ;;
24280   *) # Relative path.
24281     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24282     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24283 esac
24284 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24285 # absolute.
24286 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24287 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24288 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24289 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24290
24291
24292   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24293 echo "$as_me: executing $ac_dest commands" >&6;}
24294   case $ac_dest in
24295     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24296     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24297     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
24298     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24299     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24300     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24301     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24302     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24303     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24304     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24305     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24306     test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
24307     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24308     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24309     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24310     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24311     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24312     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24313     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24314     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24315     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24316     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24317     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24318     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24319     test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
24320     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24321     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24322     test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
24323     test/Programs/External/SPEC/Makefile.spec2000 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec2000 test/Programs/External/SPEC/Makefile.spec2000 ;;
24324     test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
24325     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24326     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24327     test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
24328     test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
24329     test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
24330     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
24331     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
24332     test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
24333     test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
24334     test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
24335     test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
24336     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
24337     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
24338     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
24339     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
24340     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24341     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24342     test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
24343     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24344     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24345     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24346   esac
24347 done
24348 _ACEOF
24349
24350 cat >>$CONFIG_STATUS <<\_ACEOF
24351
24352 { (exit 0); exit 0; }
24353 _ACEOF
24354 chmod +x $CONFIG_STATUS
24355 ac_clean_files=$ac_clean_files_save
24356
24357
24358 # configure is writing to config.log, and then calls config.status.
24359 # config.status does its own redirection, appending to config.log.
24360 # Unfortunately, on DOS this fails, as config.log is still kept open
24361 # by configure, so config.status won't be able to write to it; its
24362 # output is simply discarded.  So we exec the FD to /dev/null,
24363 # effectively closing config.log, so it can be properly (re)opened and
24364 # appended to by config.status.  When coming back to configure, we
24365 # need to make the FD available again.
24366 if test "$no_create" != yes; then
24367   ac_cs_success=:
24368   ac_config_status_args=
24369   test "$silent" = yes &&
24370     ac_config_status_args="$ac_config_status_args --quiet"
24371   exec 5>/dev/null
24372   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24373   exec 5>>config.log
24374   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24375   # would make configure fail if this is the last instruction.
24376   $ac_cs_success || { (exit 1); exit 1; }
24377 fi
24378
24379 #
24380 # CONFIG_SUBDIRS section.
24381 #
24382 if test "$no_recursion" != yes; then
24383
24384   # Remove --cache-file and --srcdir arguments so they do not pile up.
24385   ac_sub_configure_args=
24386   ac_prev=
24387   for ac_arg in $ac_configure_args; do
24388     if test -n "$ac_prev"; then
24389       ac_prev=
24390       continue
24391     fi
24392     case $ac_arg in
24393     -cache-file | --cache-file | --cache-fil | --cache-fi \
24394     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24395       ac_prev=cache_file ;;
24396     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24397     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24398     | --c=*)
24399       ;;
24400     --config-cache | -C)
24401       ;;
24402     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24403       ac_prev=srcdir ;;
24404     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24405       ;;
24406     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24407       ac_prev=prefix ;;
24408     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24409       ;;
24410     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24411     esac
24412   done
24413
24414   # Always prepend --prefix to ensure using the same prefix
24415   # in subdir configurations.
24416   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24417
24418   ac_popdir=`pwd`
24419   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24420
24421     # Do not complain, so a configure script can configure whichever
24422     # parts of a large source tree are present.
24423     test -d $srcdir/$ac_dir || continue
24424
24425     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24426 echo "$as_me: configuring in $ac_dir" >&6;}
24427     { if $as_mkdir_p; then
24428     mkdir -p "$ac_dir"
24429   else
24430     as_dir="$ac_dir"
24431     as_dirs=
24432     while test ! -d "$as_dir"; do
24433       as_dirs="$as_dir $as_dirs"
24434       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24435 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24436          X"$as_dir" : 'X\(//\)[^/]' \| \
24437          X"$as_dir" : 'X\(//\)$' \| \
24438          X"$as_dir" : 'X\(/\)' \| \
24439          .     : '\(.\)' 2>/dev/null ||
24440 echo X"$as_dir" |
24441     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24442           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24443           /^X\(\/\/\)$/{ s//\1/; q; }
24444           /^X\(\/\).*/{ s//\1/; q; }
24445           s/.*/./; q'`
24446     done
24447     test ! -n "$as_dirs" || mkdir $as_dirs
24448   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24449 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24450    { (exit 1); exit 1; }; }; }
24451
24452     ac_builddir=.
24453
24454 if test "$ac_dir" != .; then
24455   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24456   # A "../" for each directory in $ac_dir_suffix.
24457   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24458 else
24459   ac_dir_suffix= ac_top_builddir=
24460 fi
24461
24462 case $srcdir in
24463   .)  # No --srcdir option.  We are building in place.
24464     ac_srcdir=.
24465     if test -z "$ac_top_builddir"; then
24466        ac_top_srcdir=.
24467     else
24468        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24469     fi ;;
24470   [\\/]* | ?:[\\/]* )  # Absolute path.
24471     ac_srcdir=$srcdir$ac_dir_suffix;
24472     ac_top_srcdir=$srcdir ;;
24473   *) # Relative path.
24474     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24475     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24476 esac
24477 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24478 # absolute.
24479 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24480 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24481 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24482 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24483
24484
24485     cd $ac_dir
24486
24487     # Check for guested configure; otherwise get Cygnus style configure.
24488     if test -f $ac_srcdir/configure.gnu; then
24489       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24490     elif test -f $ac_srcdir/configure; then
24491       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24492     elif test -f $ac_srcdir/configure.in; then
24493       ac_sub_configure=$ac_configure
24494     else
24495       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24496 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24497       ac_sub_configure=
24498     fi
24499
24500     # The recursion is here.
24501     if test -n "$ac_sub_configure"; then
24502       # Make the cache file name correct relative to the subdirectory.
24503       case $cache_file in
24504       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24505       *) # Relative path.
24506         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24507       esac
24508
24509       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24510 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24511       # The eval makes quoting arguments work.
24512       eval $ac_sub_configure $ac_sub_configure_args \
24513            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24514         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24515 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24516    { (exit 1); exit 1; }; }
24517     fi
24518
24519     cd $ac_popdir
24520   done
24521 fi
24522
24523
24524 if test $llvmgccwarn = yes
24525 then
24526         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
24527 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
24528         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
24529 echo "$as_me: WARNING: ***** appear to be working." >&2;}
24530         { echo "$as_me:$LINENO: WARNING: ***** " >&5
24531 echo "$as_me: WARNING: ***** " >&2;}
24532         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
24533 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
24534         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
24535 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
24536         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
24537 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
24538 fi
24539