Regenerated using autoconf-2.57.
[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.3].
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.3]'
426 PACKAGE_STRING='[LLVM] [1.3]'
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 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.3] 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.3]:";;
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.3]
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.3], 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/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/Config/config.h"
1537
1538           ac_config_commands="$ac_config_commands Makefile"
1539
1540
1541           ac_config_commands="$ac_config_commands Makefile.common"
1542
1543
1544           ac_config_commands="$ac_config_commands lib/Makefile"
1545
1546
1547           ac_config_commands="$ac_config_commands runtime/Makefile"
1548
1549
1550           ac_config_commands="$ac_config_commands test/Makefile"
1551
1552
1553           ac_config_commands="$ac_config_commands test/Makefile.tests"
1554
1555
1556           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1557
1558
1559           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1560
1561
1562           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1563
1564
1565           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1566
1567
1568           ac_config_commands="$ac_config_commands test/Programs/Makefile.tests"
1569
1570
1571           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1572
1573
1574           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1575
1576
1577           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1578
1579
1580           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1584
1585
1586           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1587
1588
1589           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1590
1591
1592           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1593
1594
1595           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1596
1597
1598           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1599
1600
1601           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1602
1603
1604           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1605
1606
1607           ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1617
1618
1619           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1620
1621
1622           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1623
1624
1625           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1626
1627
1628           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1629
1630
1631           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1632
1633
1634           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1635
1636
1637           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1638
1639
1640           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1641
1642
1643           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1644
1645
1646           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1647
1648
1649           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1650
1651
1652           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1653
1654
1655           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1656
1657
1658           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1659
1660
1661           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1662
1663
1664           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1665
1666
1667           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1668
1669
1670           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1671
1672
1673           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1674
1675
1676           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1677
1678
1679           ac_config_commands="$ac_config_commands tools/Makefile"
1680
1681
1682           ac_config_commands="$ac_config_commands utils/Makefile"
1683
1684
1685           ac_config_commands="$ac_config_commands projects/Makefile"
1686
1687
1688
1689 # Find a good install program.  We prefer a C program (faster),
1690 # so one script is as good as another.  But avoid the broken or
1691 # incompatible versions:
1692 # SysV /etc/install, /usr/sbin/install
1693 # SunOS /usr/etc/install
1694 # IRIX /sbin/install
1695 # AIX /bin/install
1696 # AmigaOS /C/install, which installs bootblocks on floppy discs
1697 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1698 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1699 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1700 # ./install, which can be erroneously created by make from ./install.sh.
1701 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1702 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1703 if test -z "$INSTALL"; then
1704 if test "${ac_cv_path_install+set}" = set; then
1705   echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 for as_dir in $PATH
1709 do
1710   IFS=$as_save_IFS
1711   test -z "$as_dir" && as_dir=.
1712   # Account for people who put trailing slashes in PATH elements.
1713 case $as_dir/ in
1714   ./ | .// | /cC/* | \
1715   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1716   /usr/ucb/* ) ;;
1717   *)
1718     # OSF1 and SCO ODT 3.0 have their own names for install.
1719     # Don't use installbsd from OSF since it installs stuff as root
1720     # by default.
1721     for ac_prog in ginstall scoinst install; do
1722       for ac_exec_ext in '' $ac_executable_extensions; do
1723         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1724           if test $ac_prog = install &&
1725             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1726             # AIX install.  It has an incompatible calling convention.
1727             :
1728           elif test $ac_prog = install &&
1729             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1730             # program-specific install script used by HP pwplus--don't use.
1731             :
1732           else
1733             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1734             break 3
1735           fi
1736         fi
1737       done
1738     done
1739     ;;
1740 esac
1741 done
1742
1743
1744 fi
1745   if test "${ac_cv_path_install+set}" = set; then
1746     INSTALL=$ac_cv_path_install
1747   else
1748     # As a last resort, use the slow shell script.  We don't cache a
1749     # path for INSTALL within a source directory, because that will
1750     # break other packages using the cache if that directory is
1751     # removed, or if the path is relative.
1752     INSTALL=$ac_install_sh
1753   fi
1754 fi
1755 echo "$as_me:$LINENO: result: $INSTALL" >&5
1756 echo "${ECHO_T}$INSTALL" >&6
1757
1758 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1759 # It thinks the first close brace ends the variable substitution.
1760 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1761
1762 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1763
1764 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1765
1766
1767 # Make sure we can run config.sub.
1768 $ac_config_sub sun4 >/dev/null 2>&1 ||
1769   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1770 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1771    { (exit 1); exit 1; }; }
1772
1773 echo "$as_me:$LINENO: checking build system type" >&5
1774 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1775 if test "${ac_cv_build+set}" = set; then
1776   echo $ECHO_N "(cached) $ECHO_C" >&6
1777 else
1778   ac_cv_build_alias=$build_alias
1779 test -z "$ac_cv_build_alias" &&
1780   ac_cv_build_alias=`$ac_config_guess`
1781 test -z "$ac_cv_build_alias" &&
1782   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1783 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1784    { (exit 1); exit 1; }; }
1785 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1786   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1787 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1788    { (exit 1); exit 1; }; }
1789
1790 fi
1791 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1792 echo "${ECHO_T}$ac_cv_build" >&6
1793 build=$ac_cv_build
1794 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1795 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1796 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1797
1798
1799 echo "$as_me:$LINENO: checking host system type" >&5
1800 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1801 if test "${ac_cv_host+set}" = set; then
1802   echo $ECHO_N "(cached) $ECHO_C" >&6
1803 else
1804   ac_cv_host_alias=$host_alias
1805 test -z "$ac_cv_host_alias" &&
1806   ac_cv_host_alias=$ac_cv_build_alias
1807 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1808   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1809 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1810    { (exit 1); exit 1; }; }
1811
1812 fi
1813 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1814 echo "${ECHO_T}$ac_cv_host" >&6
1815 host=$ac_cv_host
1816 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1817 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1818 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1819
1820
1821 echo "$as_me:$LINENO: checking target system type" >&5
1822 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1823 if test "${ac_cv_target+set}" = set; then
1824   echo $ECHO_N "(cached) $ECHO_C" >&6
1825 else
1826   ac_cv_target_alias=$target_alias
1827 test "x$ac_cv_target_alias" = "x" &&
1828   ac_cv_target_alias=$ac_cv_host_alias
1829 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1830   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1831 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1832    { (exit 1); exit 1; }; }
1833
1834 fi
1835 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1836 echo "${ECHO_T}$ac_cv_target" >&6
1837 target=$ac_cv_target
1838 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1839 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1840 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1841
1842
1843 # The aliases save the names the user supplied, while $host etc.
1844 # will get canonicalized.
1845 test -n "$target_alias" &&
1846   test "$program_prefix$program_suffix$program_transform_name" = \
1847     NONENONEs,x,x, &&
1848   program_prefix=${target_alias}-
1849
1850 case $build in
1851         *-*-linux*)
1852              OS=Linux
1853
1854                          if test -d /home/vadve/lattner/local/x86/llvm-gcc
1855                          then
1856                            LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1857
1858                          fi
1859                  ;;
1860         *-*-solaris*)
1861              OS=SunOS
1862
1863                          if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1864                          then
1865                    LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1866
1867                          fi
1868                  ;;
1869         *-*-cygwin*)
1870              OS=Cygwin
1871
1872                  ;;
1873         *-*-darwin*)
1874              OS=Darwin
1875
1876                  ;;
1877         *-*-aix*)
1878              OS=AIX
1879
1880                  ;;
1881         *)       OS=Unknown
1882
1883                  ;;
1884 esac
1885
1886 case $target in
1887         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1888
1889                             ;;
1890 esac
1891
1892 case $target in
1893         i*86-*)           ARCH=x86
1894
1895                           ;;
1896         sparc*-*)         ARCH=Sparc
1897
1898                           ;;
1899         powerpc*-*)       ARCH=PowerPC
1900
1901                           ;;
1902         *)                ARCH=Unknown
1903
1904                           ;;
1905 esac
1906
1907 ac_ext=cc
1908 ac_cpp='$CXXCPP $CPPFLAGS'
1909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1912 if test -n "$ac_tool_prefix"; then
1913   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1914   do
1915     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1917 echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919 if test "${ac_cv_prog_CXX+set}" = set; then
1920   echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922   if test -n "$CXX"; then
1923   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1924 else
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 for as_dir in $PATH
1927 do
1928   IFS=$as_save_IFS
1929   test -z "$as_dir" && as_dir=.
1930   for ac_exec_ext in '' $ac_executable_extensions; do
1931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934     break 2
1935   fi
1936 done
1937 done
1938
1939 fi
1940 fi
1941 CXX=$ac_cv_prog_CXX
1942 if test -n "$CXX"; then
1943   echo "$as_me:$LINENO: result: $CXX" >&5
1944 echo "${ECHO_T}$CXX" >&6
1945 else
1946   echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6
1948 fi
1949
1950     test -n "$CXX" && break
1951   done
1952 fi
1953 if test -z "$CXX"; then
1954   ac_ct_CXX=$CXX
1955   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1956 do
1957   # Extract the first word of "$ac_prog", so it can be a program name with args.
1958 set dummy $ac_prog; ac_word=$2
1959 echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1962   echo $ECHO_N "(cached) $ECHO_C" >&6
1963 else
1964   if test -n "$ac_ct_CXX"; then
1965   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1966 else
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 for as_dir in $PATH
1969 do
1970   IFS=$as_save_IFS
1971   test -z "$as_dir" && as_dir=.
1972   for ac_exec_ext in '' $ac_executable_extensions; do
1973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974     ac_cv_prog_ac_ct_CXX="$ac_prog"
1975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976     break 2
1977   fi
1978 done
1979 done
1980
1981 fi
1982 fi
1983 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1984 if test -n "$ac_ct_CXX"; then
1985   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1986 echo "${ECHO_T}$ac_ct_CXX" >&6
1987 else
1988   echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6
1990 fi
1991
1992   test -n "$ac_ct_CXX" && break
1993 done
1994 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1995
1996   CXX=$ac_ct_CXX
1997 fi
1998
1999
2000 # Provide some information about the compiler.
2001 echo "$as_me:$LINENO:" \
2002      "checking for C++ compiler version" >&5
2003 ac_compiler=`set X $ac_compile; echo $2`
2004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2005   (eval $ac_compiler --version </dev/null >&5) 2>&5
2006   ac_status=$?
2007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008   (exit $ac_status); }
2009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2010   (eval $ac_compiler -v </dev/null >&5) 2>&5
2011   ac_status=$?
2012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013   (exit $ac_status); }
2014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2015   (eval $ac_compiler -V </dev/null >&5) 2>&5
2016   ac_status=$?
2017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018   (exit $ac_status); }
2019
2020 cat >conftest.$ac_ext <<_ACEOF
2021 #line $LINENO "configure"
2022 /* confdefs.h.  */
2023 _ACEOF
2024 cat confdefs.h >>conftest.$ac_ext
2025 cat >>conftest.$ac_ext <<_ACEOF
2026 /* end confdefs.h.  */
2027
2028 int
2029 main ()
2030 {
2031
2032   ;
2033   return 0;
2034 }
2035 _ACEOF
2036 ac_clean_files_save=$ac_clean_files
2037 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2038 # Try to create an executable without -o first, disregard a.out.
2039 # It will help us diagnose broken compilers, and finding out an intuition
2040 # of exeext.
2041 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2042 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2043 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2044 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2045   (eval $ac_link_default) 2>&5
2046   ac_status=$?
2047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048   (exit $ac_status); }; then
2049   # Find the output, starting from the most likely.  This scheme is
2050 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2051 # resort.
2052
2053 # Be careful to initialize this variable, since it used to be cached.
2054 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2055 ac_cv_exeext=
2056 # b.out is created by i960 compilers.
2057 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2058 do
2059   test -f "$ac_file" || continue
2060   case $ac_file in
2061     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2062         ;;
2063     conftest.$ac_ext )
2064         # This is the source file.
2065         ;;
2066     [ab].out )
2067         # We found the default executable, but exeext='' is most
2068         # certainly right.
2069         break;;
2070     *.* )
2071         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2072         # FIXME: I believe we export ac_cv_exeext for Libtool,
2073         # but it would be cool to find out if it's true.  Does anybody
2074         # maintain Libtool? --akim.
2075         export ac_cv_exeext
2076         break;;
2077     * )
2078         break;;
2079   esac
2080 done
2081 else
2082   echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2084
2085 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2086 See \`config.log' for more details." >&5
2087 echo "$as_me: error: C++ compiler cannot create executables
2088 See \`config.log' for more details." >&2;}
2089    { (exit 77); exit 77; }; }
2090 fi
2091
2092 ac_exeext=$ac_cv_exeext
2093 echo "$as_me:$LINENO: result: $ac_file" >&5
2094 echo "${ECHO_T}$ac_file" >&6
2095
2096 # Check the compiler produces executables we can run.  If not, either
2097 # the compiler is broken, or we cross compile.
2098 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2099 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2100 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2101 # If not cross compiling, check that we can run a simple program.
2102 if test "$cross_compiling" != yes; then
2103   if { ac_try='./$ac_file'
2104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105   (eval $ac_try) 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }; }; then
2109     cross_compiling=no
2110   else
2111     if test "$cross_compiling" = maybe; then
2112         cross_compiling=yes
2113     else
2114         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2115 If you meant to cross compile, use \`--host'.
2116 See \`config.log' for more details." >&5
2117 echo "$as_me: error: cannot run C++ compiled programs.
2118 If you meant to cross compile, use \`--host'.
2119 See \`config.log' for more details." >&2;}
2120    { (exit 1); exit 1; }; }
2121     fi
2122   fi
2123 fi
2124 echo "$as_me:$LINENO: result: yes" >&5
2125 echo "${ECHO_T}yes" >&6
2126
2127 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2128 ac_clean_files=$ac_clean_files_save
2129 # Check the compiler produces executables we can run.  If not, either
2130 # the compiler is broken, or we cross compile.
2131 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2132 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2133 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2134 echo "${ECHO_T}$cross_compiling" >&6
2135
2136 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2137 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2139   (eval $ac_link) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }; then
2143   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2144 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2145 # work properly (i.e., refer to `conftest.exe'), while it won't with
2146 # `rm'.
2147 for ac_file in conftest.exe conftest conftest.*; do
2148   test -f "$ac_file" || continue
2149   case $ac_file in
2150     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2151     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2152           export ac_cv_exeext
2153           break;;
2154     * ) break;;
2155   esac
2156 done
2157 else
2158   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2159 See \`config.log' for more details." >&5
2160 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2161 See \`config.log' for more details." >&2;}
2162    { (exit 1); exit 1; }; }
2163 fi
2164
2165 rm -f conftest$ac_cv_exeext
2166 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2167 echo "${ECHO_T}$ac_cv_exeext" >&6
2168
2169 rm -f conftest.$ac_ext
2170 EXEEXT=$ac_cv_exeext
2171 ac_exeext=$EXEEXT
2172 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2173 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2174 if test "${ac_cv_objext+set}" = set; then
2175   echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177   cat >conftest.$ac_ext <<_ACEOF
2178 #line $LINENO "configure"
2179 /* confdefs.h.  */
2180 _ACEOF
2181 cat confdefs.h >>conftest.$ac_ext
2182 cat >>conftest.$ac_ext <<_ACEOF
2183 /* end confdefs.h.  */
2184
2185 int
2186 main ()
2187 {
2188
2189   ;
2190   return 0;
2191 }
2192 _ACEOF
2193 rm -f conftest.o conftest.obj
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195   (eval $ac_compile) 2>&5
2196   ac_status=$?
2197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198   (exit $ac_status); }; then
2199   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2200   case $ac_file in
2201     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2202     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2203        break;;
2204   esac
2205 done
2206 else
2207   echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2209
2210 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2211 See \`config.log' for more details." >&5
2212 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2213 See \`config.log' for more details." >&2;}
2214    { (exit 1); exit 1; }; }
2215 fi
2216
2217 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2218 fi
2219 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2220 echo "${ECHO_T}$ac_cv_objext" >&6
2221 OBJEXT=$ac_cv_objext
2222 ac_objext=$OBJEXT
2223 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2224 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2225 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2226   echo $ECHO_N "(cached) $ECHO_C" >&6
2227 else
2228   cat >conftest.$ac_ext <<_ACEOF
2229 #line $LINENO "configure"
2230 /* confdefs.h.  */
2231 _ACEOF
2232 cat confdefs.h >>conftest.$ac_ext
2233 cat >>conftest.$ac_ext <<_ACEOF
2234 /* end confdefs.h.  */
2235
2236 int
2237 main ()
2238 {
2239 #ifndef __GNUC__
2240        choke me
2241 #endif
2242
2243   ;
2244   return 0;
2245 }
2246 _ACEOF
2247 rm -f conftest.$ac_objext
2248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249   (eval $ac_compile) 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); } &&
2253          { ac_try='test -s conftest.$ac_objext'
2254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255   (eval $ac_try) 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; }; then
2259   ac_compiler_gnu=yes
2260 else
2261   echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2263
2264 ac_compiler_gnu=no
2265 fi
2266 rm -f conftest.$ac_objext conftest.$ac_ext
2267 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2268
2269 fi
2270 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2271 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2272 GXX=`test $ac_compiler_gnu = yes && echo yes`
2273 ac_test_CXXFLAGS=${CXXFLAGS+set}
2274 ac_save_CXXFLAGS=$CXXFLAGS
2275 CXXFLAGS="-g"
2276 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2277 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2278 if test "${ac_cv_prog_cxx_g+set}" = set; then
2279   echo $ECHO_N "(cached) $ECHO_C" >&6
2280 else
2281   cat >conftest.$ac_ext <<_ACEOF
2282 #line $LINENO "configure"
2283 /* confdefs.h.  */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h.  */
2288
2289 int
2290 main ()
2291 {
2292
2293   ;
2294   return 0;
2295 }
2296 _ACEOF
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299   (eval $ac_compile) 2>&5
2300   ac_status=$?
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); } &&
2303          { ac_try='test -s conftest.$ac_objext'
2304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305   (eval $ac_try) 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }; }; then
2309   ac_cv_prog_cxx_g=yes
2310 else
2311   echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2313
2314 ac_cv_prog_cxx_g=no
2315 fi
2316 rm -f conftest.$ac_objext conftest.$ac_ext
2317 fi
2318 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2319 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2320 if test "$ac_test_CXXFLAGS" = set; then
2321   CXXFLAGS=$ac_save_CXXFLAGS
2322 elif test $ac_cv_prog_cxx_g = yes; then
2323   if test "$GXX" = yes; then
2324     CXXFLAGS="-g -O2"
2325   else
2326     CXXFLAGS="-g"
2327   fi
2328 else
2329   if test "$GXX" = yes; then
2330     CXXFLAGS="-O2"
2331   else
2332     CXXFLAGS=
2333   fi
2334 fi
2335 for ac_declaration in \
2336    ''\
2337    '#include <stdlib.h>' \
2338    'extern "C" void std::exit (int) throw (); using std::exit;' \
2339    'extern "C" void std::exit (int); using std::exit;' \
2340    'extern "C" void exit (int) throw ();' \
2341    'extern "C" void exit (int);' \
2342    'void exit (int);'
2343 do
2344   cat >conftest.$ac_ext <<_ACEOF
2345 #line $LINENO "configure"
2346 /* confdefs.h.  */
2347 _ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h.  */
2351 #include <stdlib.h>
2352 $ac_declaration
2353 int
2354 main ()
2355 {
2356 exit (42);
2357   ;
2358   return 0;
2359 }
2360 _ACEOF
2361 rm -f conftest.$ac_objext
2362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363   (eval $ac_compile) 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); } &&
2367          { ac_try='test -s conftest.$ac_objext'
2368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369   (eval $ac_try) 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }; }; then
2373   :
2374 else
2375   echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2377
2378 continue
2379 fi
2380 rm -f conftest.$ac_objext conftest.$ac_ext
2381   cat >conftest.$ac_ext <<_ACEOF
2382 #line $LINENO "configure"
2383 /* confdefs.h.  */
2384 _ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h.  */
2388 $ac_declaration
2389 int
2390 main ()
2391 {
2392 exit (42);
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399   (eval $ac_compile) 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); } &&
2403          { ac_try='test -s conftest.$ac_objext'
2404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405   (eval $ac_try) 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; }; then
2409   break
2410 else
2411   echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2413
2414 fi
2415 rm -f conftest.$ac_objext conftest.$ac_ext
2416 done
2417 rm -f conftest*
2418 if test -n "$ac_declaration"; then
2419   echo '#ifdef __cplusplus' >>confdefs.h
2420   echo $ac_declaration      >>confdefs.h
2421   echo '#endif'             >>confdefs.h
2422 fi
2423
2424 ac_ext=c
2425 ac_cpp='$CPP $CPPFLAGS'
2426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429
2430 ac_ext=c
2431 ac_cpp='$CPP $CPPFLAGS'
2432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 if test -n "$ac_tool_prefix"; then
2436   for ac_prog in gcc
2437   do
2438     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2439 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2440 echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2442 if test "${ac_cv_prog_CC+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   if test -n "$CC"; then
2446   ac_cv_prog_CC="$CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453   for ac_exec_ext in '' $ac_executable_extensions; do
2454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457     break 2
2458   fi
2459 done
2460 done
2461
2462 fi
2463 fi
2464 CC=$ac_cv_prog_CC
2465 if test -n "$CC"; then
2466   echo "$as_me:$LINENO: result: $CC" >&5
2467 echo "${ECHO_T}$CC" >&6
2468 else
2469   echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6
2471 fi
2472
2473     test -n "$CC" && break
2474   done
2475 fi
2476 if test -z "$CC"; then
2477   ac_ct_CC=$CC
2478   for ac_prog in gcc
2479 do
2480   # Extract the first word of "$ac_prog", so it can be a program name with args.
2481 set dummy $ac_prog; ac_word=$2
2482 echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   if test -n "$ac_ct_CC"; then
2488   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493   IFS=$as_save_IFS
2494   test -z "$as_dir" && as_dir=.
2495   for ac_exec_ext in '' $ac_executable_extensions; do
2496   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497     ac_cv_prog_ac_ct_CC="$ac_prog"
2498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499     break 2
2500   fi
2501 done
2502 done
2503
2504 fi
2505 fi
2506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2507 if test -n "$ac_ct_CC"; then
2508   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2509 echo "${ECHO_T}$ac_ct_CC" >&6
2510 else
2511   echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6
2513 fi
2514
2515   test -n "$ac_ct_CC" && break
2516 done
2517
2518   CC=$ac_ct_CC
2519 fi
2520
2521
2522 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2523 See \`config.log' for more details." >&5
2524 echo "$as_me: error: no acceptable C compiler found in \$PATH
2525 See \`config.log' for more details." >&2;}
2526    { (exit 1); exit 1; }; }
2527
2528 # Provide some information about the compiler.
2529 echo "$as_me:$LINENO:" \
2530      "checking for C compiler version" >&5
2531 ac_compiler=`set X $ac_compile; echo $2`
2532 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2533   (eval $ac_compiler --version </dev/null >&5) 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }
2537 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2538   (eval $ac_compiler -v </dev/null >&5) 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }
2542 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2543   (eval $ac_compiler -V </dev/null >&5) 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }
2547
2548 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2549 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2550 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2551   echo $ECHO_N "(cached) $ECHO_C" >&6
2552 else
2553   cat >conftest.$ac_ext <<_ACEOF
2554 #line $LINENO "configure"
2555 /* confdefs.h.  */
2556 _ACEOF
2557 cat confdefs.h >>conftest.$ac_ext
2558 cat >>conftest.$ac_ext <<_ACEOF
2559 /* end confdefs.h.  */
2560
2561 int
2562 main ()
2563 {
2564 #ifndef __GNUC__
2565        choke me
2566 #endif
2567
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574   (eval $ac_compile) 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); } &&
2578          { ac_try='test -s conftest.$ac_objext'
2579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580   (eval $ac_try) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }; }; then
2584   ac_compiler_gnu=yes
2585 else
2586   echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2588
2589 ac_compiler_gnu=no
2590 fi
2591 rm -f conftest.$ac_objext conftest.$ac_ext
2592 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2593
2594 fi
2595 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2596 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2597 GCC=`test $ac_compiler_gnu = yes && echo yes`
2598 ac_test_CFLAGS=${CFLAGS+set}
2599 ac_save_CFLAGS=$CFLAGS
2600 CFLAGS="-g"
2601 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2602 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2603 if test "${ac_cv_prog_cc_g+set}" = set; then
2604   echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606   cat >conftest.$ac_ext <<_ACEOF
2607 #line $LINENO "configure"
2608 /* confdefs.h.  */
2609 _ACEOF
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h.  */
2613
2614 int
2615 main ()
2616 {
2617
2618   ;
2619   return 0;
2620 }
2621 _ACEOF
2622 rm -f conftest.$ac_objext
2623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624   (eval $ac_compile) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); } &&
2628          { ac_try='test -s conftest.$ac_objext'
2629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630   (eval $ac_try) 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }; }; then
2634   ac_cv_prog_cc_g=yes
2635 else
2636   echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639 ac_cv_prog_cc_g=no
2640 fi
2641 rm -f conftest.$ac_objext conftest.$ac_ext
2642 fi
2643 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2645 if test "$ac_test_CFLAGS" = set; then
2646   CFLAGS=$ac_save_CFLAGS
2647 elif test $ac_cv_prog_cc_g = yes; then
2648   if test "$GCC" = yes; then
2649     CFLAGS="-g -O2"
2650   else
2651     CFLAGS="-g"
2652   fi
2653 else
2654   if test "$GCC" = yes; then
2655     CFLAGS="-O2"
2656   else
2657     CFLAGS=
2658   fi
2659 fi
2660 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2661 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2662 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2663   echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665   ac_cv_prog_cc_stdc=no
2666 ac_save_CC=$CC
2667 cat >conftest.$ac_ext <<_ACEOF
2668 #line $LINENO "configure"
2669 /* confdefs.h.  */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h.  */
2674 #include <stdarg.h>
2675 #include <stdio.h>
2676 #include <sys/types.h>
2677 #include <sys/stat.h>
2678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2679 struct buf { int x; };
2680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2681 static char *e (p, i)
2682      char **p;
2683      int i;
2684 {
2685   return p[i];
2686 }
2687 static char *f (char * (*g) (char **, int), char **p, ...)
2688 {
2689   char *s;
2690   va_list v;
2691   va_start (v,p);
2692   s = g (p, va_arg (v,int));
2693   va_end (v);
2694   return s;
2695 }
2696 int test (int i, double x);
2697 struct s1 {int (*f) (int a);};
2698 struct s2 {int (*f) (double a);};
2699 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2700 int argc;
2701 char **argv;
2702 int
2703 main ()
2704 {
2705 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2706   ;
2707   return 0;
2708 }
2709 _ACEOF
2710 # Don't try gcc -ansi; that turns off useful extensions and
2711 # breaks some systems' header files.
2712 # AIX                   -qlanglvl=ansi
2713 # Ultrix and OSF/1      -std1
2714 # HP-UX 10.20 and later -Ae
2715 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2716 # SVR4                  -Xc -D__EXTENSIONS__
2717 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2718 do
2719   CC="$ac_save_CC $ac_arg"
2720   rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722   (eval $ac_compile) 2>&5
2723   ac_status=$?
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); } &&
2726          { ac_try='test -s conftest.$ac_objext'
2727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728   (eval $ac_try) 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }; }; then
2732   ac_cv_prog_cc_stdc=$ac_arg
2733 break
2734 else
2735   echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 fi
2739 rm -f conftest.$ac_objext
2740 done
2741 rm -f conftest.$ac_ext conftest.$ac_objext
2742 CC=$ac_save_CC
2743
2744 fi
2745
2746 case "x$ac_cv_prog_cc_stdc" in
2747   x|xno)
2748     echo "$as_me:$LINENO: result: none needed" >&5
2749 echo "${ECHO_T}none needed" >&6 ;;
2750   *)
2751     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2752 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2753     CC="$CC $ac_cv_prog_cc_stdc" ;;
2754 esac
2755
2756 # Some people use a C++ compiler to compile C.  Since we use `exit',
2757 # in C++ we need to declare it.  In case someone uses the same compiler
2758 # for both compiling C and C++ we need to have the C++ compiler decide
2759 # the declaration of exit, since it's the most demanding environment.
2760 cat >conftest.$ac_ext <<_ACEOF
2761 #ifndef __cplusplus
2762   choke me
2763 #endif
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767   (eval $ac_compile) 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); } &&
2771          { ac_try='test -s conftest.$ac_objext'
2772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773   (eval $ac_try) 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; }; then
2777   for ac_declaration in \
2778    ''\
2779    '#include <stdlib.h>' \
2780    'extern "C" void std::exit (int) throw (); using std::exit;' \
2781    'extern "C" void std::exit (int); using std::exit;' \
2782    'extern "C" void exit (int) throw ();' \
2783    'extern "C" void exit (int);' \
2784    'void exit (int);'
2785 do
2786   cat >conftest.$ac_ext <<_ACEOF
2787 #line $LINENO "configure"
2788 /* confdefs.h.  */
2789 _ACEOF
2790 cat confdefs.h >>conftest.$ac_ext
2791 cat >>conftest.$ac_ext <<_ACEOF
2792 /* end confdefs.h.  */
2793 #include <stdlib.h>
2794 $ac_declaration
2795 int
2796 main ()
2797 {
2798 exit (42);
2799   ;
2800   return 0;
2801 }
2802 _ACEOF
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805   (eval $ac_compile) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); } &&
2809          { ac_try='test -s conftest.$ac_objext'
2810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811   (eval $ac_try) 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; }; then
2815   :
2816 else
2817   echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2819
2820 continue
2821 fi
2822 rm -f conftest.$ac_objext conftest.$ac_ext
2823   cat >conftest.$ac_ext <<_ACEOF
2824 #line $LINENO "configure"
2825 /* confdefs.h.  */
2826 _ACEOF
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h.  */
2830 $ac_declaration
2831 int
2832 main ()
2833 {
2834 exit (42);
2835   ;
2836   return 0;
2837 }
2838 _ACEOF
2839 rm -f conftest.$ac_objext
2840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841   (eval $ac_compile) 2>&5
2842   ac_status=$?
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); } &&
2845          { ac_try='test -s conftest.$ac_objext'
2846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847   (eval $ac_try) 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; }; then
2851   break
2852 else
2853   echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2855
2856 fi
2857 rm -f conftest.$ac_objext conftest.$ac_ext
2858 done
2859 rm -f conftest*
2860 if test -n "$ac_declaration"; then
2861   echo '#ifdef __cplusplus' >>confdefs.h
2862   echo $ac_declaration      >>confdefs.h
2863   echo '#endif'             >>confdefs.h
2864 fi
2865
2866 else
2867   echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870 fi
2871 rm -f conftest.$ac_objext conftest.$ac_ext
2872 ac_ext=c
2873 ac_cpp='$CPP $CPPFLAGS'
2874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2877
2878 ac_ext=c
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2884 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2885 # On Suns, sometimes $CPP names a directory.
2886 if test -n "$CPP" && test -d "$CPP"; then
2887   CPP=
2888 fi
2889 if test -z "$CPP"; then
2890   if test "${ac_cv_prog_CPP+set}" = set; then
2891   echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893       # Double quotes because CPP needs to be expanded
2894     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2895     do
2896       ac_preproc_ok=false
2897 for ac_c_preproc_warn_flag in '' yes
2898 do
2899   # Use a header file that comes with gcc, so configuring glibc
2900   # with a fresh cross-compiler works.
2901   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2902   # <limits.h> exists even on freestanding compilers.
2903   # On the NeXT, cc -E runs the code through the compiler's parser,
2904   # not just through cpp. "Syntax error" is here to catch this case.
2905   cat >conftest.$ac_ext <<_ACEOF
2906 #line $LINENO "configure"
2907 /* confdefs.h.  */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h.  */
2912 #ifdef __STDC__
2913 # include <limits.h>
2914 #else
2915 # include <assert.h>
2916 #endif
2917                      Syntax error
2918 _ACEOF
2919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2921   ac_status=$?
2922   grep -v '^ *+' conftest.er1 >conftest.err
2923   rm -f conftest.er1
2924   cat conftest.err >&5
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); } >/dev/null; then
2927   if test -s conftest.err; then
2928     ac_cpp_err=$ac_c_preproc_warn_flag
2929   else
2930     ac_cpp_err=
2931   fi
2932 else
2933   ac_cpp_err=yes
2934 fi
2935 if test -z "$ac_cpp_err"; then
2936   :
2937 else
2938   echo "$as_me: failed program was:" >&5
2939 sed 's/^/| /' conftest.$ac_ext >&5
2940
2941   # Broken: fails on valid input.
2942 continue
2943 fi
2944 rm -f conftest.err conftest.$ac_ext
2945
2946   # OK, works on sane cases.  Now check whether non-existent headers
2947   # can be detected and how.
2948   cat >conftest.$ac_ext <<_ACEOF
2949 #line $LINENO "configure"
2950 /* confdefs.h.  */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h.  */
2955 #include <ac_nonexistent.h>
2956 _ACEOF
2957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2958   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2959   ac_status=$?
2960   grep -v '^ *+' conftest.er1 >conftest.err
2961   rm -f conftest.er1
2962   cat conftest.err >&5
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); } >/dev/null; then
2965   if test -s conftest.err; then
2966     ac_cpp_err=$ac_c_preproc_warn_flag
2967   else
2968     ac_cpp_err=
2969   fi
2970 else
2971   ac_cpp_err=yes
2972 fi
2973 if test -z "$ac_cpp_err"; then
2974   # Broken: success on invalid input.
2975 continue
2976 else
2977   echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2979
2980   # Passes both tests.
2981 ac_preproc_ok=:
2982 break
2983 fi
2984 rm -f conftest.err conftest.$ac_ext
2985
2986 done
2987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2988 rm -f conftest.err conftest.$ac_ext
2989 if $ac_preproc_ok; then
2990   break
2991 fi
2992
2993     done
2994     ac_cv_prog_CPP=$CPP
2995
2996 fi
2997   CPP=$ac_cv_prog_CPP
2998 else
2999   ac_cv_prog_CPP=$CPP
3000 fi
3001 echo "$as_me:$LINENO: result: $CPP" >&5
3002 echo "${ECHO_T}$CPP" >&6
3003 ac_preproc_ok=false
3004 for ac_c_preproc_warn_flag in '' yes
3005 do
3006   # Use a header file that comes with gcc, so configuring glibc
3007   # with a fresh cross-compiler works.
3008   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3009   # <limits.h> exists even on freestanding compilers.
3010   # On the NeXT, cc -E runs the code through the compiler's parser,
3011   # not just through cpp. "Syntax error" is here to catch this case.
3012   cat >conftest.$ac_ext <<_ACEOF
3013 #line $LINENO "configure"
3014 /* confdefs.h.  */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h.  */
3019 #ifdef __STDC__
3020 # include <limits.h>
3021 #else
3022 # include <assert.h>
3023 #endif
3024                      Syntax error
3025 _ACEOF
3026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3027   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3028   ac_status=$?
3029   grep -v '^ *+' conftest.er1 >conftest.err
3030   rm -f conftest.er1
3031   cat conftest.err >&5
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); } >/dev/null; then
3034   if test -s conftest.err; then
3035     ac_cpp_err=$ac_c_preproc_warn_flag
3036   else
3037     ac_cpp_err=
3038   fi
3039 else
3040   ac_cpp_err=yes
3041 fi
3042 if test -z "$ac_cpp_err"; then
3043   :
3044 else
3045   echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048   # Broken: fails on valid input.
3049 continue
3050 fi
3051 rm -f conftest.err conftest.$ac_ext
3052
3053   # OK, works on sane cases.  Now check whether non-existent headers
3054   # can be detected and how.
3055   cat >conftest.$ac_ext <<_ACEOF
3056 #line $LINENO "configure"
3057 /* confdefs.h.  */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h.  */
3062 #include <ac_nonexistent.h>
3063 _ACEOF
3064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3065   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3066   ac_status=$?
3067   grep -v '^ *+' conftest.er1 >conftest.err
3068   rm -f conftest.er1
3069   cat conftest.err >&5
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); } >/dev/null; then
3072   if test -s conftest.err; then
3073     ac_cpp_err=$ac_c_preproc_warn_flag
3074   else
3075     ac_cpp_err=
3076   fi
3077 else
3078   ac_cpp_err=yes
3079 fi
3080 if test -z "$ac_cpp_err"; then
3081   # Broken: success on invalid input.
3082 continue
3083 else
3084   echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3086
3087   # Passes both tests.
3088 ac_preproc_ok=:
3089 break
3090 fi
3091 rm -f conftest.err conftest.$ac_ext
3092
3093 done
3094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3095 rm -f conftest.err conftest.$ac_ext
3096 if $ac_preproc_ok; then
3097   :
3098 else
3099   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3100 See \`config.log' for more details." >&5
3101 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3102 See \`config.log' for more details." >&2;}
3103    { (exit 1); exit 1; }; }
3104 fi
3105
3106 ac_ext=c
3107 ac_cpp='$CPP $CPPFLAGS'
3108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111
3112
3113 if test "$GCC" != "yes"
3114 then
3115         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3116 echo "$as_me: error: gcc required but not found" >&2;}
3117    { (exit 1); exit 1; }; }
3118 fi
3119 if test "$GXX" != "yes"
3120 then
3121         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3122 echo "$as_me: error: g++ required but not found" >&2;}
3123    { (exit 1); exit 1; }; }
3124 fi
3125
3126 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3127 if test "$gccmajor" -lt "3"
3128 then
3129         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3130 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3131    { (exit 1); exit 1; }; }
3132 fi
3133
3134  echo "$as_me:$LINENO: checking for GNU make" >&5
3135 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3136 if test "${_cv_gnu_make_command+set}" = set; then
3137   echo $ECHO_N "(cached) $ECHO_C" >&6
3138 else
3139   _cv_gnu_make_command='' ;
3140                 for a in "$MAKE" make gmake gnumake ; do
3141                         if test -z "$a" ; then continue ; fi ;
3142                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3143                                 _cv_gnu_make_command=$a ;
3144                                 break;
3145                         fi
3146                 done ;
3147
3148 fi
3149 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3150 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3151         if test  "x$_cv_gnu_make_command" != "x"  ; then
3152                 ifGNUmake='' ;
3153         else
3154                 ifGNUmake='#' ;
3155                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3156 echo "${ECHO_T}\"Not found\"" >&6;
3157         fi
3158
3159
3160 if test -z "$_cv_gnu_make_command"
3161 then
3162         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3163 echo "$as_me: error: GNU Make required but not found" >&2;}
3164    { (exit 1); exit 1; }; }
3165 fi
3166
3167
3168 echo "$as_me:$LINENO: checking " >&5
3169 echo $ECHO_N "checking ... $ECHO_C" >&6
3170 if test "${ac_cv_has_flex+set}" = set; then
3171   echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173   for ac_prog in flex lex
3174 do
3175   # Extract the first word of "$ac_prog", so it can be a program name with args.
3176 set dummy $ac_prog; ac_word=$2
3177 echo "$as_me:$LINENO: checking for $ac_word" >&5
3178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3179 if test "${ac_cv_prog_LEX+set}" = set; then
3180   echo $ECHO_N "(cached) $ECHO_C" >&6
3181 else
3182   if test -n "$LEX"; then
3183   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3187 do
3188   IFS=$as_save_IFS
3189   test -z "$as_dir" && as_dir=.
3190   for ac_exec_ext in '' $ac_executable_extensions; do
3191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192     ac_cv_prog_LEX="$ac_prog"
3193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3194     break 2
3195   fi
3196 done
3197 done
3198
3199 fi
3200 fi
3201 LEX=$ac_cv_prog_LEX
3202 if test -n "$LEX"; then
3203   echo "$as_me:$LINENO: result: $LEX" >&5
3204 echo "${ECHO_T}$LEX" >&6
3205 else
3206   echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6
3208 fi
3209
3210   test -n "$LEX" && break
3211 done
3212 test -n "$LEX" || LEX=":"
3213
3214 if test -z "$LEXLIB"
3215 then
3216   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3217 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3218 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   ac_check_lib_save_LIBS=$LIBS
3222 LIBS="-lfl  $LIBS"
3223 cat >conftest.$ac_ext <<_ACEOF
3224 #line $LINENO "configure"
3225 /* confdefs.h.  */
3226 _ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h.  */
3230
3231 /* Override any gcc2 internal prototype to avoid an error.  */
3232 #ifdef __cplusplus
3233 extern "C"
3234 #endif
3235 /* We use char because int might match the return type of a gcc2
3236    builtin and then its argument prototype would still apply.  */
3237 char yywrap ();
3238 int
3239 main ()
3240 {
3241 yywrap ();
3242   ;
3243   return 0;
3244 }
3245 _ACEOF
3246 rm -f conftest.$ac_objext conftest$ac_exeext
3247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3248   (eval $ac_link) 2>&5
3249   ac_status=$?
3250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251   (exit $ac_status); } &&
3252          { ac_try='test -s conftest$ac_exeext'
3253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254   (eval $ac_try) 2>&5
3255   ac_status=$?
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); }; }; then
3258   ac_cv_lib_fl_yywrap=yes
3259 else
3260   echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263 ac_cv_lib_fl_yywrap=no
3264 fi
3265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3266 LIBS=$ac_check_lib_save_LIBS
3267 fi
3268 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3269 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3270 if test $ac_cv_lib_fl_yywrap = yes; then
3271   LEXLIB="-lfl"
3272 else
3273   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3274 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3275 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278   ac_check_lib_save_LIBS=$LIBS
3279 LIBS="-ll  $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_l_yywrap=yes
3316 else
3317   echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320 ac_cv_lib_l_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_l_yywrap" >&5
3326 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3327 if test $ac_cv_lib_l_yywrap = yes; then
3328   LEXLIB="-ll"
3329 fi
3330
3331 fi
3332
3333 fi
3334
3335 if test "x$LEX" != "x:"; then
3336   echo "$as_me:$LINENO: checking lex output file root" >&5
3337 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3338 if test "${ac_cv_prog_lex_root+set}" = set; then
3339   echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341   # The minimal lex program is just a single line: %%.  But some broken lexes
3342 # (Solaris, I think it was) want two %% lines, so accommodate them.
3343 cat >conftest.l <<_ACEOF
3344 %%
3345 %%
3346 _ACEOF
3347 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3348   (eval $LEX conftest.l) 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); }
3352 if test -f lex.yy.c; then
3353   ac_cv_prog_lex_root=lex.yy
3354 elif test -f lexyy.c; then
3355   ac_cv_prog_lex_root=lexyy
3356 else
3357   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3358 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3359    { (exit 1); exit 1; }; }
3360 fi
3361 fi
3362 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3363 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3364 rm -f conftest.l
3365 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3366
3367 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3368 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3369 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3370   echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372   # POSIX says lex can declare yytext either as a pointer or an array; the
3373 # default is implementation-dependent. Figure out which it is, since
3374 # not all implementations provide the %pointer and %array declarations.
3375 ac_cv_prog_lex_yytext_pointer=no
3376 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3377 ac_save_LIBS=$LIBS
3378 LIBS="$LIBS $LEXLIB"
3379 cat >conftest.$ac_ext <<_ACEOF
3380 `cat $LEX_OUTPUT_ROOT.c`
3381 _ACEOF
3382 rm -f conftest.$ac_objext conftest$ac_exeext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3384   (eval $ac_link) 2>&5
3385   ac_status=$?
3386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); } &&
3388          { ac_try='test -s conftest$ac_exeext'
3389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390   (eval $ac_try) 2>&5
3391   ac_status=$?
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); }; }; then
3394   ac_cv_prog_lex_yytext_pointer=yes
3395 else
3396   echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399 fi
3400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3401 LIBS=$ac_save_LIBS
3402 rm -f "${LEX_OUTPUT_ROOT}.c"
3403
3404 fi
3405 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3406 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3407 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3408
3409 cat >>confdefs.h <<\_ACEOF
3410 #define YYTEXT_POINTER 1
3411 _ACEOF
3412
3413 fi
3414
3415 fi
3416
3417 fi
3418 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3419 echo "${ECHO_T}$ac_cv_has_flex" >&6
3420 if test "$LEX" != "flex"; then
3421   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3422 echo "$as_me: error: flex not found but required" >&2;}
3423    { (exit 1); exit 1; }; }
3424 fi
3425
3426 echo "$as_me:$LINENO: checking " >&5
3427 echo $ECHO_N "checking ... $ECHO_C" >&6
3428 if test "${ac_cv_has_bison+set}" = set; then
3429   echo $ECHO_N "(cached) $ECHO_C" >&6
3430 else
3431   for ac_prog in 'bison -y' byacc
3432 do
3433   # Extract the first word of "$ac_prog", so it can be a program name with args.
3434 set dummy $ac_prog; ac_word=$2
3435 echo "$as_me:$LINENO: checking for $ac_word" >&5
3436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3437 if test "${ac_cv_prog_YACC+set}" = set; then
3438   echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440   if test -n "$YACC"; then
3441   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3445 do
3446   IFS=$as_save_IFS
3447   test -z "$as_dir" && as_dir=.
3448   for ac_exec_ext in '' $ac_executable_extensions; do
3449   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450     ac_cv_prog_YACC="$ac_prog"
3451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3452     break 2
3453   fi
3454 done
3455 done
3456
3457 fi
3458 fi
3459 YACC=$ac_cv_prog_YACC
3460 if test -n "$YACC"; then
3461   echo "$as_me:$LINENO: result: $YACC" >&5
3462 echo "${ECHO_T}$YACC" >&6
3463 else
3464   echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3466 fi
3467
3468   test -n "$YACC" && break
3469 done
3470 test -n "$YACC" || YACC="yacc"
3471
3472
3473 fi
3474 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3475 echo "${ECHO_T}$ac_cv_has_bison" >&6
3476 if test "$YACC" != "bison -y"; then
3477   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3478 echo "$as_me: error: bison not found but required" >&2;}
3479    { (exit 1); exit 1; }; }
3480 else
3481   BISON=bison
3482
3483 fi
3484
3485 # Check whether --enable-shared or --disable-shared was given.
3486 if test "${enable_shared+set}" = set; then
3487   enableval="$enable_shared"
3488   p=${PACKAGE-default}
3489     case $enableval in
3490     yes) enable_shared=yes ;;
3491     no) enable_shared=no ;;
3492     *)
3493       enable_shared=no
3494       # Look at the argument we got.  We use all the common list separators.
3495       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3496       for pkg in $enableval; do
3497         IFS="$lt_save_ifs"
3498         if test "X$pkg" = "X$p"; then
3499           enable_shared=yes
3500         fi
3501       done
3502       IFS="$lt_save_ifs"
3503       ;;
3504     esac
3505 else
3506   enable_shared=yes
3507 fi;
3508
3509 # Check whether --enable-static or --disable-static was given.
3510 if test "${enable_static+set}" = set; then
3511   enableval="$enable_static"
3512   p=${PACKAGE-default}
3513     case $enableval in
3514     yes) enable_static=yes ;;
3515     no) enable_static=no ;;
3516     *)
3517      enable_static=no
3518       # Look at the argument we got.  We use all the common list separators.
3519       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3520       for pkg in $enableval; do
3521         IFS="$lt_save_ifs"
3522         if test "X$pkg" = "X$p"; then
3523           enable_static=yes
3524         fi
3525       done
3526       IFS="$lt_save_ifs"
3527       ;;
3528     esac
3529 else
3530   enable_static=yes
3531 fi;
3532
3533 # Check whether --enable-fast-install or --disable-fast-install was given.
3534 if test "${enable_fast_install+set}" = set; then
3535   enableval="$enable_fast_install"
3536   p=${PACKAGE-default}
3537     case $enableval in
3538     yes) enable_fast_install=yes ;;
3539     no) enable_fast_install=no ;;
3540     *)
3541       enable_fast_install=no
3542       # Look at the argument we got.  We use all the common list separators.
3543       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3544       for pkg in $enableval; do
3545         IFS="$lt_save_ifs"
3546         if test "X$pkg" = "X$p"; then
3547           enable_fast_install=yes
3548         fi
3549       done
3550       IFS="$lt_save_ifs"
3551       ;;
3552     esac
3553 else
3554   enable_fast_install=yes
3555 fi;
3556
3557 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3558 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3559 if test "${lt_cv_path_SED+set}" = set; then
3560   echo $ECHO_N "(cached) $ECHO_C" >&6
3561 else
3562   # Loop through the user's path and test for sed and gsed.
3563 # Then use that list of sed's as ones to test for truncation.
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3566 do
3567   IFS=$as_save_IFS
3568   test -z "$as_dir" && as_dir=.
3569   for lt_ac_prog in sed gsed; do
3570     for ac_exec_ext in '' $ac_executable_extensions; do
3571       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3572         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3573       fi
3574     done
3575   done
3576 done
3577 lt_ac_max=0
3578 lt_ac_count=0
3579 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3580 # along with /bin/sed that truncates output.
3581 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3582   test ! -f $lt_ac_sed && break
3583   cat /dev/null > conftest.in
3584   lt_ac_count=0
3585   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3586   # Check for GNU sed and select it if it is found.
3587   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3588     lt_cv_path_SED=$lt_ac_sed
3589     break
3590   fi
3591   while true; do
3592     cat conftest.in conftest.in >conftest.tmp
3593     mv conftest.tmp conftest.in
3594     cp conftest.in conftest.nl
3595     echo >>conftest.nl
3596     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3597     cmp -s conftest.out conftest.nl || break
3598     # 10000 chars as input seems more than enough
3599     test $lt_ac_count -gt 10 && break
3600     lt_ac_count=`expr $lt_ac_count + 1`
3601     if test $lt_ac_count -gt $lt_ac_max; then
3602       lt_ac_max=$lt_ac_count
3603       lt_cv_path_SED=$lt_ac_sed
3604     fi
3605   done
3606 done
3607 SED=$lt_cv_path_SED
3608
3609 fi
3610
3611 echo "$as_me:$LINENO: result: $SED" >&5
3612 echo "${ECHO_T}$SED" >&6
3613
3614 echo "$as_me:$LINENO: checking for egrep" >&5
3615 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3616 if test "${ac_cv_prog_egrep+set}" = set; then
3617   echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3620     then ac_cv_prog_egrep='grep -E'
3621     else ac_cv_prog_egrep='egrep'
3622     fi
3623 fi
3624 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3625 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3626  EGREP=$ac_cv_prog_egrep
3627
3628
3629
3630 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3631 if test "${with_gnu_ld+set}" = set; then
3632   withval="$with_gnu_ld"
3633   test "$withval" = no || with_gnu_ld=yes
3634 else
3635   with_gnu_ld=no
3636 fi;
3637 ac_prog=ld
3638 if test "$GCC" = yes; then
3639   # Check if gcc -print-prog-name=ld gives a path.
3640   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3641 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3642   case $host in
3643   *-*-mingw*)
3644     # gcc leaves a trailing carriage return which upsets mingw
3645     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3646   *)
3647     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3648   esac
3649   case $ac_prog in
3650     # Accept absolute paths.
3651     [\\/]* | ?:[\\/]*)
3652       re_direlt='/[^/][^/]*/\.\./'
3653       # Canonicalize the path of ld
3654       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3655       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3656         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3657       done
3658       test -z "$LD" && LD="$ac_prog"
3659       ;;
3660   "")
3661     # If it fails, then pretend we aren't using GCC.
3662     ac_prog=ld
3663     ;;
3664   *)
3665     # If it is relative, then search for the first ld in PATH.
3666     with_gnu_ld=unknown
3667     ;;
3668   esac
3669 elif test "$with_gnu_ld" = yes; then
3670   echo "$as_me:$LINENO: checking for GNU ld" >&5
3671 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3672 else
3673   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3674 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3675 fi
3676 if test "${lt_cv_path_LD+set}" = set; then
3677   echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679   if test -z "$LD"; then
3680   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3681   for ac_dir in $PATH; do
3682     IFS="$lt_save_ifs"
3683     test -z "$ac_dir" && ac_dir=.
3684     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3685       lt_cv_path_LD="$ac_dir/$ac_prog"
3686       # Check to see if the program is GNU ld.  I'd rather use --version,
3687       # but apparently some GNU ld's only accept -v.
3688       # Break only if it was the GNU/non-GNU ld that we prefer.
3689       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3690       *GNU* | *'with BFD'*)
3691         test "$with_gnu_ld" != no && break
3692         ;;
3693       *)
3694         test "$with_gnu_ld" != yes && break
3695         ;;
3696       esac
3697     fi
3698   done
3699   IFS="$lt_save_ifs"
3700 else
3701   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3702 fi
3703 fi
3704
3705 LD="$lt_cv_path_LD"
3706 if test -n "$LD"; then
3707   echo "$as_me:$LINENO: result: $LD" >&5
3708 echo "${ECHO_T}$LD" >&6
3709 else
3710   echo "$as_me:$LINENO: result: no" >&5
3711 echo "${ECHO_T}no" >&6
3712 fi
3713 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3714 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3715    { (exit 1); exit 1; }; }
3716 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3717 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3718 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3719   echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3722 case `"$LD" -v 2>&1 </dev/null` in
3723 *GNU* | *'with BFD'*)
3724   lt_cv_prog_gnu_ld=yes
3725   ;;
3726 *)
3727   lt_cv_prog_gnu_ld=no
3728   ;;
3729 esac
3730 fi
3731 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3732 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3733 with_gnu_ld=$lt_cv_prog_gnu_ld
3734
3735
3736 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3737 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3738 if test "${lt_cv_ld_reload_flag+set}" = set; then
3739   echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741   lt_cv_ld_reload_flag='-r'
3742 fi
3743 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3744 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3745 reload_flag=$lt_cv_ld_reload_flag
3746 case $reload_flag in
3747 "" | " "*) ;;
3748 *) reload_flag=" $reload_flag" ;;
3749 esac
3750 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3751
3752 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3753 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3754 if test "${lt_cv_path_NM+set}" = set; then
3755   echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757   if test -n "$NM"; then
3758   # Let the user override the test.
3759   lt_cv_path_NM="$NM"
3760 else
3761   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3762   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3763     IFS="$lt_save_ifs"
3764     test -z "$ac_dir" && ac_dir=.
3765     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3766     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3767       # Check to see if the nm accepts a BSD-compat flag.
3768       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3769       #   nm: unknown option "B" ignored
3770       # Tru64's nm complains that /dev/null is an invalid object file
3771       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3772       */dev/null* | *'Invalid file or object type'*)
3773         lt_cv_path_NM="$tmp_nm -B"
3774         break
3775         ;;
3776       *)
3777         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3778         */dev/null*)
3779           lt_cv_path_NM="$tmp_nm -p"
3780           break
3781           ;;
3782         *)
3783           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3784           continue # so that we can try to find one that supports BSD flags
3785           ;;
3786         esac
3787       esac
3788     fi
3789   done
3790   IFS="$lt_save_ifs"
3791   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3792 fi
3793 fi
3794 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3795 echo "${ECHO_T}$lt_cv_path_NM" >&6
3796 NM="$lt_cv_path_NM"
3797
3798 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3799 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3800 LN_S=$as_ln_s
3801 if test "$LN_S" = "ln -s"; then
3802   echo "$as_me:$LINENO: result: yes" >&5
3803 echo "${ECHO_T}yes" >&6
3804 else
3805   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3806 echo "${ECHO_T}no, using $LN_S" >&6
3807 fi
3808
3809 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3810 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3811 if test "${lt_cv_deplibs_check_method+set}" = set; then
3812   echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814   lt_cv_file_magic_cmd='$MAGIC_CMD'
3815 lt_cv_file_magic_test_file=
3816 lt_cv_deplibs_check_method='unknown'
3817 # Need to set the preceding variable on all platforms that support
3818 # interlibrary dependencies.
3819 # 'none' -- dependencies not supported.
3820 # `unknown' -- same as none, but documents that we really don't know.
3821 # 'pass_all' -- all dependencies passed with no checks.
3822 # 'test_compile' -- check by making test program.
3823 # 'file_magic [[regex]]' -- check by looking for files in library path
3824 # which responds to the $file_magic_cmd with a given extended regex.
3825 # If you have `file' or equivalent on your system and you're not sure
3826 # whether `pass_all' will *always* work, you probably want this one.
3827
3828 case $host_os in
3829 aix4* | aix5*)
3830   lt_cv_deplibs_check_method=pass_all
3831   ;;
3832
3833 beos*)
3834   lt_cv_deplibs_check_method=pass_all
3835   ;;
3836
3837 bsdi4*)
3838   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3839   lt_cv_file_magic_cmd='/usr/bin/file -L'
3840   lt_cv_file_magic_test_file=/shlib/libc.so
3841   ;;
3842
3843 cygwin* | mingw* | pw32*)
3844   # win32_libid is a shell function defined in ltmain.sh
3845   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3846   lt_cv_file_magic_cmd='win32_libid'
3847   ;;
3848
3849 darwin* | rhapsody*)
3850   # this will be overwritten by pass_all, but leave it in just in case
3851   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3852   lt_cv_file_magic_cmd='/usr/bin/file -L'
3853   case "$host_os" in
3854   rhapsody* | darwin1.[012])
3855     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3856     ;;
3857   *) # Darwin 1.3 on
3858     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3859     ;;
3860   esac
3861   lt_cv_deplibs_check_method=pass_all
3862   ;;
3863
3864 freebsd*)
3865   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3866     case $host_cpu in
3867     i*86 )
3868       # Not sure whether the presence of OpenBSD here was a mistake.
3869       # Let's accept both of them until this is cleared up.
3870       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3871       lt_cv_file_magic_cmd=/usr/bin/file
3872       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3873       ;;
3874     esac
3875   else
3876     lt_cv_deplibs_check_method=pass_all
3877   fi
3878   ;;
3879
3880 gnu*)
3881   lt_cv_deplibs_check_method=pass_all
3882   ;;
3883
3884 hpux10.20* | hpux11*)
3885   lt_cv_file_magic_cmd=/usr/bin/file
3886   case "$host_cpu" in
3887   ia64*)
3888     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3889     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3890     ;;
3891   hppa*64*)
3892     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]'
3893     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3894     ;;
3895   *)
3896     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3897     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3898     ;;
3899   esac
3900   ;;
3901
3902 irix5* | irix6* | nonstopux*)
3903   case $host_os in
3904   irix5* | nonstopux*)
3905     # this will be overridden with pass_all, but let us keep it just in case
3906     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3907     ;;
3908   *)
3909     case $LD in
3910     *-32|*"-32 ") libmagic=32-bit;;
3911     *-n32|*"-n32 ") libmagic=N32;;
3912     *-64|*"-64 ") libmagic=64-bit;;
3913     *) libmagic=never-match;;
3914     esac
3915     # this will be overridden with pass_all, but let us keep it just in case
3916     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3917     ;;
3918   esac
3919   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3920   lt_cv_deplibs_check_method=pass_all
3921   ;;
3922
3923 # This must be Linux ELF.
3924 linux*)
3925   case $host_cpu in
3926   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3927     lt_cv_deplibs_check_method=pass_all ;;
3928   *)
3929     # glibc up to 2.1.1 does not perform some relocations on ARM
3930     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3931   esac
3932   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3933   ;;
3934
3935 netbsd*)
3936   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3937     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3938   else
3939     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3940   fi
3941   ;;
3942
3943 newos6*)
3944   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3945   lt_cv_file_magic_cmd=/usr/bin/file
3946   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3947   ;;
3948
3949 nto-qnx)
3950   lt_cv_deplibs_check_method=unknown
3951   ;;
3952
3953 openbsd*)
3954   lt_cv_file_magic_cmd=/usr/bin/file
3955   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3956   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3957     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3958   else
3959     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3960   fi
3961   ;;
3962
3963 osf3* | osf4* | osf5*)
3964   # this will be overridden with pass_all, but let us keep it just in case
3965   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3966   lt_cv_file_magic_test_file=/shlib/libc.so
3967   lt_cv_deplibs_check_method=pass_all
3968   ;;
3969
3970 sco3.2v5*)
3971   lt_cv_deplibs_check_method=pass_all
3972   ;;
3973
3974 solaris*)
3975   lt_cv_deplibs_check_method=pass_all
3976   lt_cv_file_magic_test_file=/lib/libc.so
3977   ;;
3978
3979 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3980   case $host_vendor in
3981   motorola)
3982     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]'
3983     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3984     ;;
3985   ncr)
3986     lt_cv_deplibs_check_method=pass_all
3987     ;;
3988   sequent)
3989     lt_cv_file_magic_cmd='/bin/file'
3990     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3991     ;;
3992   sni)
3993     lt_cv_file_magic_cmd='/bin/file'
3994     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3995     lt_cv_file_magic_test_file=/lib/libc.so
3996     ;;
3997   siemens)
3998     lt_cv_deplibs_check_method=pass_all
3999     ;;
4000   esac
4001   ;;
4002
4003 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4004   lt_cv_deplibs_check_method=pass_all
4005   ;;
4006 esac
4007
4008 fi
4009 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4010 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4011 file_magic_cmd=$lt_cv_file_magic_cmd
4012 deplibs_check_method=$lt_cv_deplibs_check_method
4013 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4014
4015
4016
4017
4018 # If no C compiler was specified, use CC.
4019 LTCC=${LTCC-"$CC"}
4020
4021 # Allow CC to be a program name with arguments.
4022 compiler=$CC
4023
4024 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4025 if test "${enable_libtool_lock+set}" = set; then
4026   enableval="$enable_libtool_lock"
4027
4028 fi;
4029 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4030
4031 # Some flags need to be propagated to the compiler or linker for good
4032 # libtool support.
4033 case $host in
4034 ia64-*-hpux*)
4035   # Find out which ABI we are using.
4036   echo 'int i;' > conftest.$ac_ext
4037   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038   (eval $ac_compile) 2>&5
4039   ac_status=$?
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); }; then
4042     case `/usr/bin/file conftest.$ac_objext` in
4043     *ELF-32*)
4044       HPUX_IA64_MODE="32"
4045       ;;
4046     *ELF-64*)
4047       HPUX_IA64_MODE="64"
4048       ;;
4049     esac
4050   fi
4051   rm -rf conftest*
4052   ;;
4053 *-*-irix6*)
4054   # Find out which ABI we are using.
4055   echo '#line 4055 "configure"' > conftest.$ac_ext
4056   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4057   (eval $ac_compile) 2>&5
4058   ac_status=$?
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); }; then
4061    if test "$lt_cv_prog_gnu_ld" = yes; then
4062     case `/usr/bin/file conftest.$ac_objext` in
4063     *32-bit*)
4064       LD="${LD-ld} -melf32bsmip"
4065       ;;
4066     *N32*)
4067       LD="${LD-ld} -melf32bmipn32"
4068       ;;
4069     *64-bit*)
4070       LD="${LD-ld} -melf64bmip"
4071       ;;
4072     esac
4073    else
4074     case `/usr/bin/file conftest.$ac_objext` in
4075     *32-bit*)
4076       LD="${LD-ld} -32"
4077       ;;
4078     *N32*)
4079       LD="${LD-ld} -n32"
4080       ;;
4081     *64-bit*)
4082       LD="${LD-ld} -64"
4083       ;;
4084     esac
4085    fi
4086   fi
4087   rm -rf conftest*
4088   ;;
4089
4090 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4091   # Find out which ABI we are using.
4092   echo 'int i;' > conftest.$ac_ext
4093   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094   (eval $ac_compile) 2>&5
4095   ac_status=$?
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); }; then
4098     case "`/usr/bin/file conftest.o`" in
4099     *32-bit*)
4100       case $host in
4101         x86_64-*linux*)
4102           LD="${LD-ld} -m elf_i386"
4103           ;;
4104         ppc64-*linux*)
4105           LD="${LD-ld} -m elf32ppclinux"
4106           ;;
4107         s390x-*linux*)
4108           LD="${LD-ld} -m elf_s390"
4109           ;;
4110         sparc64-*linux*)
4111           LD="${LD-ld} -m elf32_sparc"
4112           ;;
4113       esac
4114       ;;
4115     *64-bit*)
4116       case $host in
4117         x86_64-*linux*)
4118           LD="${LD-ld} -m elf_x86_64"
4119           ;;
4120         ppc*-*linux*|powerpc*-*linux*)
4121           LD="${LD-ld} -m elf64ppc"
4122           ;;
4123         s390*-*linux*)
4124           LD="${LD-ld} -m elf64_s390"
4125           ;;
4126         sparc*-*linux*)
4127           LD="${LD-ld} -m elf64_sparc"
4128           ;;
4129       esac
4130       ;;
4131     esac
4132   fi
4133   rm -rf conftest*
4134   ;;
4135
4136 *-*-sco3.2v5*)
4137   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4138   SAVE_CFLAGS="$CFLAGS"
4139   CFLAGS="$CFLAGS -belf"
4140   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4141 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4142 if test "${lt_cv_cc_needs_belf+set}" = set; then
4143   echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145   ac_ext=c
4146 ac_cpp='$CPP $CPPFLAGS'
4147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150
4151      cat >conftest.$ac_ext <<_ACEOF
4152 #line $LINENO "configure"
4153 /* confdefs.h.  */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h.  */
4158
4159 int
4160 main ()
4161 {
4162
4163   ;
4164   return 0;
4165 }
4166 _ACEOF
4167 rm -f conftest.$ac_objext conftest$ac_exeext
4168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4169   (eval $ac_link) 2>&5
4170   ac_status=$?
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); } &&
4173          { ac_try='test -s conftest$ac_exeext'
4174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175   (eval $ac_try) 2>&5
4176   ac_status=$?
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); }; }; then
4179   lt_cv_cc_needs_belf=yes
4180 else
4181   echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4183
4184 lt_cv_cc_needs_belf=no
4185 fi
4186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4187      ac_ext=c
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192
4193 fi
4194 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4195 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4196   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4197     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4198     CFLAGS="$SAVE_CFLAGS"
4199   fi
4200   ;;
4201
4202 esac
4203
4204 need_locks="$enable_libtool_lock"
4205
4206
4207
4208 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4209 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4210 if test "${ac_cv_header_stdc+set}" = set; then
4211   echo $ECHO_N "(cached) $ECHO_C" >&6
4212 else
4213   cat >conftest.$ac_ext <<_ACEOF
4214 #line $LINENO "configure"
4215 /* confdefs.h.  */
4216 _ACEOF
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h.  */
4220 #include <stdlib.h>
4221 #include <stdarg.h>
4222 #include <string.h>
4223 #include <float.h>
4224
4225 int
4226 main ()
4227 {
4228
4229   ;
4230   return 0;
4231 }
4232 _ACEOF
4233 rm -f conftest.$ac_objext
4234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4235   (eval $ac_compile) 2>&5
4236   ac_status=$?
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); } &&
4239          { ac_try='test -s conftest.$ac_objext'
4240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241   (eval $ac_try) 2>&5
4242   ac_status=$?
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); }; }; then
4245   ac_cv_header_stdc=yes
4246 else
4247   echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4249
4250 ac_cv_header_stdc=no
4251 fi
4252 rm -f conftest.$ac_objext conftest.$ac_ext
4253
4254 if test $ac_cv_header_stdc = yes; then
4255   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4256   cat >conftest.$ac_ext <<_ACEOF
4257 #line $LINENO "configure"
4258 /* confdefs.h.  */
4259 _ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h.  */
4263 #include <string.h>
4264
4265 _ACEOF
4266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4267   $EGREP "memchr" >/dev/null 2>&1; then
4268   :
4269 else
4270   ac_cv_header_stdc=no
4271 fi
4272 rm -f conftest*
4273
4274 fi
4275
4276 if test $ac_cv_header_stdc = yes; then
4277   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4278   cat >conftest.$ac_ext <<_ACEOF
4279 #line $LINENO "configure"
4280 /* confdefs.h.  */
4281 _ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h.  */
4285 #include <stdlib.h>
4286
4287 _ACEOF
4288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4289   $EGREP "free" >/dev/null 2>&1; then
4290   :
4291 else
4292   ac_cv_header_stdc=no
4293 fi
4294 rm -f conftest*
4295
4296 fi
4297
4298 if test $ac_cv_header_stdc = yes; then
4299   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4300   if test "$cross_compiling" = yes; then
4301   :
4302 else
4303   cat >conftest.$ac_ext <<_ACEOF
4304 #line $LINENO "configure"
4305 /* confdefs.h.  */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h.  */
4310 #include <ctype.h>
4311 #if ((' ' & 0x0FF) == 0x020)
4312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4314 #else
4315 # define ISLOWER(c) \
4316                    (('a' <= (c) && (c) <= 'i') \
4317                      || ('j' <= (c) && (c) <= 'r') \
4318                      || ('s' <= (c) && (c) <= 'z'))
4319 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4320 #endif
4321
4322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4323 int
4324 main ()
4325 {
4326   int i;
4327   for (i = 0; i < 256; i++)
4328     if (XOR (islower (i), ISLOWER (i))
4329         || toupper (i) != TOUPPER (i))
4330       exit(2);
4331   exit (0);
4332 }
4333 _ACEOF
4334 rm -f conftest$ac_exeext
4335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4336   (eval $ac_link) 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341   (eval $ac_try) 2>&5
4342   ac_status=$?
4343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344   (exit $ac_status); }; }; then
4345   :
4346 else
4347   echo "$as_me: program exited with status $ac_status" >&5
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4350
4351 ( exit $ac_status )
4352 ac_cv_header_stdc=no
4353 fi
4354 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4355 fi
4356 fi
4357 fi
4358 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4359 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4360 if test $ac_cv_header_stdc = yes; then
4361
4362 cat >>confdefs.h <<\_ACEOF
4363 #define STDC_HEADERS 1
4364 _ACEOF
4365
4366 fi
4367
4368 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4379                   inttypes.h stdint.h unistd.h
4380 do
4381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4382 echo "$as_me:$LINENO: checking for $ac_header" >&5
4383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4385   echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387   cat >conftest.$ac_ext <<_ACEOF
4388 #line $LINENO "configure"
4389 /* confdefs.h.  */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h.  */
4394 $ac_includes_default
4395
4396 #include <$ac_header>
4397 _ACEOF
4398 rm -f conftest.$ac_objext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400   (eval $ac_compile) 2>&5
4401   ac_status=$?
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); } &&
4404          { ac_try='test -s conftest.$ac_objext'
4405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406   (eval $ac_try) 2>&5
4407   ac_status=$?
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); }; }; then
4410   eval "$as_ac_Header=yes"
4411 else
4412   echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.$ac_ext >&5
4414
4415 eval "$as_ac_Header=no"
4416 fi
4417 rm -f conftest.$ac_objext conftest.$ac_ext
4418 fi
4419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4422   cat >>confdefs.h <<_ACEOF
4423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4424 _ACEOF
4425
4426 fi
4427
4428 done
4429
4430
4431
4432 for ac_header in dlfcn.h
4433 do
4434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4436   echo "$as_me:$LINENO: checking for $ac_header" >&5
4437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4439   echo $ECHO_N "(cached) $ECHO_C" >&6
4440 fi
4441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4443 else
4444   # Is the header compilable?
4445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4447 cat >conftest.$ac_ext <<_ACEOF
4448 #line $LINENO "configure"
4449 /* confdefs.h.  */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h.  */
4454 $ac_includes_default
4455 #include <$ac_header>
4456 _ACEOF
4457 rm -f conftest.$ac_objext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4459   (eval $ac_compile) 2>&5
4460   ac_status=$?
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); } &&
4463          { ac_try='test -s conftest.$ac_objext'
4464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465   (eval $ac_try) 2>&5
4466   ac_status=$?
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); }; }; then
4469   ac_header_compiler=yes
4470 else
4471   echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4473
4474 ac_header_compiler=no
4475 fi
4476 rm -f conftest.$ac_objext conftest.$ac_ext
4477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4478 echo "${ECHO_T}$ac_header_compiler" >&6
4479
4480 # Is the header present?
4481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4483 cat >conftest.$ac_ext <<_ACEOF
4484 #line $LINENO "configure"
4485 /* confdefs.h.  */
4486 _ACEOF
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h.  */
4490 #include <$ac_header>
4491 _ACEOF
4492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4493   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4494   ac_status=$?
4495   grep -v '^ *+' conftest.er1 >conftest.err
4496   rm -f conftest.er1
4497   cat conftest.err >&5
4498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); } >/dev/null; then
4500   if test -s conftest.err; then
4501     ac_cpp_err=$ac_c_preproc_warn_flag
4502   else
4503     ac_cpp_err=
4504   fi
4505 else
4506   ac_cpp_err=yes
4507 fi
4508 if test -z "$ac_cpp_err"; then
4509   ac_header_preproc=yes
4510 else
4511   echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4513
4514   ac_header_preproc=no
4515 fi
4516 rm -f conftest.err conftest.$ac_ext
4517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4518 echo "${ECHO_T}$ac_header_preproc" >&6
4519
4520 # So?  What about this header?
4521 case $ac_header_compiler:$ac_header_preproc in
4522   yes:no )
4523     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4527     (
4528       cat <<\_ASBOX
4529 ## ------------------------------------ ##
4530 ## Report this to bug-autoconf@gnu.org. ##
4531 ## ------------------------------------ ##
4532 _ASBOX
4533     ) |
4534       sed "s/^/$as_me: WARNING:     /" >&2
4535     ;;
4536   no:yes )
4537     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4539     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4543     (
4544       cat <<\_ASBOX
4545 ## ------------------------------------ ##
4546 ## Report this to bug-autoconf@gnu.org. ##
4547 ## ------------------------------------ ##
4548 _ASBOX
4549     ) |
4550       sed "s/^/$as_me: WARNING:     /" >&2
4551     ;;
4552 esac
4553 echo "$as_me:$LINENO: checking for $ac_header" >&5
4554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   eval "$as_ac_Header=$ac_header_preproc"
4559 fi
4560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4562
4563 fi
4564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4565   cat >>confdefs.h <<_ACEOF
4566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4567 _ACEOF
4568
4569 fi
4570
4571 done
4572
4573 ac_ext=cc
4574 ac_cpp='$CXXCPP $CPPFLAGS'
4575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4578 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4579 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4580 if test -z "$CXXCPP"; then
4581   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584       # Double quotes because CXXCPP needs to be expanded
4585     for CXXCPP in "$CXX -E" "/lib/cpp"
4586     do
4587       ac_preproc_ok=false
4588 for ac_cxx_preproc_warn_flag in '' yes
4589 do
4590   # Use a header file that comes with gcc, so configuring glibc
4591   # with a fresh cross-compiler works.
4592   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4593   # <limits.h> exists even on freestanding compilers.
4594   # On the NeXT, cc -E runs the code through the compiler's parser,
4595   # not just through cpp. "Syntax error" is here to catch this case.
4596   cat >conftest.$ac_ext <<_ACEOF
4597 #line $LINENO "configure"
4598 /* confdefs.h.  */
4599 _ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h.  */
4603 #ifdef __STDC__
4604 # include <limits.h>
4605 #else
4606 # include <assert.h>
4607 #endif
4608                      Syntax error
4609 _ACEOF
4610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4611   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4612   ac_status=$?
4613   grep -v '^ *+' conftest.er1 >conftest.err
4614   rm -f conftest.er1
4615   cat conftest.err >&5
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); } >/dev/null; then
4618   if test -s conftest.err; then
4619     ac_cpp_err=$ac_cxx_preproc_warn_flag
4620   else
4621     ac_cpp_err=
4622   fi
4623 else
4624   ac_cpp_err=yes
4625 fi
4626 if test -z "$ac_cpp_err"; then
4627   :
4628 else
4629   echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632   # Broken: fails on valid input.
4633 continue
4634 fi
4635 rm -f conftest.err conftest.$ac_ext
4636
4637   # OK, works on sane cases.  Now check whether non-existent headers
4638   # can be detected and how.
4639   cat >conftest.$ac_ext <<_ACEOF
4640 #line $LINENO "configure"
4641 /* confdefs.h.  */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h.  */
4646 #include <ac_nonexistent.h>
4647 _ACEOF
4648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4649   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4650   ac_status=$?
4651   grep -v '^ *+' conftest.er1 >conftest.err
4652   rm -f conftest.er1
4653   cat conftest.err >&5
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); } >/dev/null; then
4656   if test -s conftest.err; then
4657     ac_cpp_err=$ac_cxx_preproc_warn_flag
4658   else
4659     ac_cpp_err=
4660   fi
4661 else
4662   ac_cpp_err=yes
4663 fi
4664 if test -z "$ac_cpp_err"; then
4665   # Broken: success on invalid input.
4666 continue
4667 else
4668   echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.$ac_ext >&5
4670
4671   # Passes both tests.
4672 ac_preproc_ok=:
4673 break
4674 fi
4675 rm -f conftest.err conftest.$ac_ext
4676
4677 done
4678 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4679 rm -f conftest.err conftest.$ac_ext
4680 if $ac_preproc_ok; then
4681   break
4682 fi
4683
4684     done
4685     ac_cv_prog_CXXCPP=$CXXCPP
4686
4687 fi
4688   CXXCPP=$ac_cv_prog_CXXCPP
4689 else
4690   ac_cv_prog_CXXCPP=$CXXCPP
4691 fi
4692 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4693 echo "${ECHO_T}$CXXCPP" >&6
4694 ac_preproc_ok=false
4695 for ac_cxx_preproc_warn_flag in '' yes
4696 do
4697   # Use a header file that comes with gcc, so configuring glibc
4698   # with a fresh cross-compiler works.
4699   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4700   # <limits.h> exists even on freestanding compilers.
4701   # On the NeXT, cc -E runs the code through the compiler's parser,
4702   # not just through cpp. "Syntax error" is here to catch this case.
4703   cat >conftest.$ac_ext <<_ACEOF
4704 #line $LINENO "configure"
4705 /* confdefs.h.  */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h.  */
4710 #ifdef __STDC__
4711 # include <limits.h>
4712 #else
4713 # include <assert.h>
4714 #endif
4715                      Syntax error
4716 _ACEOF
4717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4718   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4719   ac_status=$?
4720   grep -v '^ *+' conftest.er1 >conftest.err
4721   rm -f conftest.er1
4722   cat conftest.err >&5
4723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724   (exit $ac_status); } >/dev/null; then
4725   if test -s conftest.err; then
4726     ac_cpp_err=$ac_cxx_preproc_warn_flag
4727   else
4728     ac_cpp_err=
4729   fi
4730 else
4731   ac_cpp_err=yes
4732 fi
4733 if test -z "$ac_cpp_err"; then
4734   :
4735 else
4736   echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4738
4739   # Broken: fails on valid input.
4740 continue
4741 fi
4742 rm -f conftest.err conftest.$ac_ext
4743
4744   # OK, works on sane cases.  Now check whether non-existent headers
4745   # can be detected and how.
4746   cat >conftest.$ac_ext <<_ACEOF
4747 #line $LINENO "configure"
4748 /* confdefs.h.  */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h.  */
4753 #include <ac_nonexistent.h>
4754 _ACEOF
4755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4756   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4757   ac_status=$?
4758   grep -v '^ *+' conftest.er1 >conftest.err
4759   rm -f conftest.er1
4760   cat conftest.err >&5
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); } >/dev/null; then
4763   if test -s conftest.err; then
4764     ac_cpp_err=$ac_cxx_preproc_warn_flag
4765   else
4766     ac_cpp_err=
4767   fi
4768 else
4769   ac_cpp_err=yes
4770 fi
4771 if test -z "$ac_cpp_err"; then
4772   # Broken: success on invalid input.
4773 continue
4774 else
4775   echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4777
4778   # Passes both tests.
4779 ac_preproc_ok=:
4780 break
4781 fi
4782 rm -f conftest.err conftest.$ac_ext
4783
4784 done
4785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4786 rm -f conftest.err conftest.$ac_ext
4787 if $ac_preproc_ok; then
4788   :
4789 else
4790   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4791 See \`config.log' for more details." >&5
4792 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4793 See \`config.log' for more details." >&2;}
4794    { (exit 1); exit 1; }; }
4795 fi
4796
4797 ac_ext=cc
4798 ac_cpp='$CXXCPP $CPPFLAGS'
4799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4802
4803
4804 ac_ext=f
4805 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4806 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4808 if test -n "$ac_tool_prefix"; then
4809   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4810   do
4811     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4813 echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4815 if test "${ac_cv_prog_F77+set}" = set; then
4816   echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818   if test -n "$F77"; then
4819   ac_cv_prog_F77="$F77" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4823 do
4824   IFS=$as_save_IFS
4825   test -z "$as_dir" && as_dir=.
4826   for ac_exec_ext in '' $ac_executable_extensions; do
4827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830     break 2
4831   fi
4832 done
4833 done
4834
4835 fi
4836 fi
4837 F77=$ac_cv_prog_F77
4838 if test -n "$F77"; then
4839   echo "$as_me:$LINENO: result: $F77" >&5
4840 echo "${ECHO_T}$F77" >&6
4841 else
4842   echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6
4844 fi
4845
4846     test -n "$F77" && break
4847   done
4848 fi
4849 if test -z "$F77"; then
4850   ac_ct_F77=$F77
4851   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4852 do
4853   # Extract the first word of "$ac_prog", so it can be a program name with args.
4854 set dummy $ac_prog; ac_word=$2
4855 echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4857 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   if test -n "$ac_ct_F77"; then
4861   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866   IFS=$as_save_IFS
4867   test -z "$as_dir" && as_dir=.
4868   for ac_exec_ext in '' $ac_executable_extensions; do
4869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870     ac_cv_prog_ac_ct_F77="$ac_prog"
4871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872     break 2
4873   fi
4874 done
4875 done
4876
4877 fi
4878 fi
4879 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4880 if test -n "$ac_ct_F77"; then
4881   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4882 echo "${ECHO_T}$ac_ct_F77" >&6
4883 else
4884   echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6
4886 fi
4887
4888   test -n "$ac_ct_F77" && break
4889 done
4890
4891   F77=$ac_ct_F77
4892 fi
4893
4894
4895 # Provide some information about the compiler.
4896 echo "$as_me:4896:" \
4897      "checking for Fortran 77 compiler version" >&5
4898 ac_compiler=`set X $ac_compile; echo $2`
4899 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4900   (eval $ac_compiler --version </dev/null >&5) 2>&5
4901   ac_status=$?
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); }
4904 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4905   (eval $ac_compiler -v </dev/null >&5) 2>&5
4906   ac_status=$?
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); }
4909 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4910   (eval $ac_compiler -V </dev/null >&5) 2>&5
4911   ac_status=$?
4912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913   (exit $ac_status); }
4914
4915 # If we don't use `.F' as extension, the preprocessor is not run on the
4916 # input file.
4917 ac_save_ext=$ac_ext
4918 ac_ext=F
4919 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4920 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4921 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4922   echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924   cat >conftest.$ac_ext <<_ACEOF
4925       program main
4926 #ifndef __GNUC__
4927        choke me
4928 #endif
4929
4930       end
4931 _ACEOF
4932 rm -f conftest.$ac_objext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934   (eval $ac_compile) 2>&5
4935   ac_status=$?
4936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937   (exit $ac_status); } &&
4938          { ac_try='test -s conftest.$ac_objext'
4939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940   (eval $ac_try) 2>&5
4941   ac_status=$?
4942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943   (exit $ac_status); }; }; then
4944   ac_compiler_gnu=yes
4945 else
4946   echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4948
4949 ac_compiler_gnu=no
4950 fi
4951 rm -f conftest.$ac_objext conftest.$ac_ext
4952 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4953
4954 fi
4955 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4956 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4957 ac_ext=$ac_save_ext
4958 G77=`test $ac_compiler_gnu = yes && echo yes`
4959 ac_test_FFLAGS=${FFLAGS+set}
4960 ac_save_FFLAGS=$FFLAGS
4961 FFLAGS=
4962 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4963 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4964 if test "${ac_cv_prog_f77_g+set}" = set; then
4965   echo $ECHO_N "(cached) $ECHO_C" >&6
4966 else
4967   FFLAGS=-g
4968 cat >conftest.$ac_ext <<_ACEOF
4969       program main
4970
4971       end
4972 _ACEOF
4973 rm -f conftest.$ac_objext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975   (eval $ac_compile) 2>&5
4976   ac_status=$?
4977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978   (exit $ac_status); } &&
4979          { ac_try='test -s conftest.$ac_objext'
4980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981   (eval $ac_try) 2>&5
4982   ac_status=$?
4983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); }; }; then
4985   ac_cv_prog_f77_g=yes
4986 else
4987   echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4989
4990 ac_cv_prog_f77_g=no
4991 fi
4992 rm -f conftest.$ac_objext conftest.$ac_ext
4993
4994 fi
4995 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4996 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4997 if test "$ac_test_FFLAGS" = set; then
4998   FFLAGS=$ac_save_FFLAGS
4999 elif test $ac_cv_prog_f77_g = yes; then
5000   if test "$G77" = yes; then
5001     FFLAGS="-g -O2"
5002   else
5003     FFLAGS="-g"
5004   fi
5005 else
5006   if test "$G77" = yes; then
5007     FFLAGS="-O2"
5008   else
5009     FFLAGS=
5010   fi
5011 fi
5012 ac_ext=c
5013 ac_cpp='$CPP $CPPFLAGS'
5014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5017
5018
5019
5020 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5021
5022 # find the maximum length of command line arguments
5023 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5024 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5025 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5026   echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028     i=0
5029   testring="ABCD"
5030
5031   case $build_os in
5032   msdosdjgpp*)
5033     # On DJGPP, this test can blow up pretty badly due to problems in libc
5034     # (any single argument exceeding 2000 bytes causes a buffer overrun
5035     # during glob expansion).  Even if it were fixed, the result of this
5036     # check would be larger than it should be.
5037     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5038     ;;
5039
5040   gnu*)
5041     # Under GNU Hurd, this test is not required because there is
5042     # no limit to the length of command line arguments.
5043     # Libtool will interpret -1 as no limit whatsoever
5044     lt_cv_sys_max_cmd_len=-1;
5045     ;;
5046
5047   cygwin* | mingw*)
5048     # On Win9x/ME, this test blows up -- it succeeds, but takes
5049     # about 5 minutes as the teststring grows exponentially.
5050     # Worse, since 9x/ME are not pre-emptively multitasking,
5051     # you end up with a "frozen" computer, even though with patience
5052     # the test eventually succeeds (with a max line length of 256k).
5053     # Instead, let's just punt: use the minimum linelength reported by
5054     # all of the supported platforms: 8192 (on NT/2K/XP).
5055     lt_cv_sys_max_cmd_len=8192;
5056     ;;
5057
5058  *)
5059     # If test is not a shell built-in, we'll probably end up computing a
5060     # maximum length that is only half of the actual maximum length, but
5061     # we can't tell.
5062     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5063                = "XX$testring") >/dev/null 2>&1 &&
5064             new_result=`expr "X$testring" : ".*" 2>&1` &&
5065             lt_cv_sys_max_cmd_len=$new_result &&
5066             test $i != 17 # 1/2 MB should be enough
5067     do
5068       i=`expr $i + 1`
5069       testring=$testring$testring
5070     done
5071     testring=
5072     # Add a significant safety factor because C++ compilers can tack on massive
5073     # amounts of additional arguments before passing them to the linker.
5074     # It appears as though 1/2 is a usable value.
5075     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5076     ;;
5077   esac
5078
5079 fi
5080
5081 if test -n $lt_cv_sys_max_cmd_len ; then
5082   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5083 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5084 else
5085   echo "$as_me:$LINENO: result: none" >&5
5086 echo "${ECHO_T}none" >&6
5087 fi
5088
5089
5090
5091
5092 # Check for command to grab the raw symbol name followed by C symbol from nm.
5093 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5094 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5095 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5096   echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098
5099 # These are sane defaults that work on at least a few old systems.
5100 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5101
5102 # Character class describing NM global symbol codes.
5103 symcode='[BCDEGRST]'
5104
5105 # Regexp to match symbols that can be accessed directly from C.
5106 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5107
5108 # Transform the above into a raw symbol and a C symbol.
5109 symxfrm='\1 \2\3 \3'
5110
5111 # Transform an extracted symbol line into a proper C declaration
5112 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5113
5114 # Transform an extracted symbol line into symbol name and symbol address
5115 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'"
5116
5117 # Define system-specific variables.
5118 case $host_os in
5119 aix*)
5120   symcode='[BCDT]'
5121   ;;
5122 cygwin* | mingw* | pw32*)
5123   symcode='[ABCDGISTW]'
5124   ;;
5125 hpux*) # Its linker distinguishes data from code symbols
5126   if test "$host_cpu" = ia64; then
5127     symcode='[ABCDEGRST]'
5128   fi
5129   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5130   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'"
5131   ;;
5132 irix* | nonstopux*)
5133   symcode='[BCDEGRST]'
5134   ;;
5135 osf*)
5136   symcode='[BCDEGQRST]'
5137   ;;
5138 solaris* | sysv5*)
5139   symcode='[BDT]'
5140   ;;
5141 sysv4)
5142   symcode='[DFNSTU]'
5143   ;;
5144 esac
5145
5146 # Handle CRLF in mingw tool chain
5147 opt_cr=
5148 case $build_os in
5149 mingw*)
5150   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5151   ;;
5152 esac
5153
5154 # If we're using GNU nm, then use its standard symbol codes.
5155 case `$NM -V 2>&1` in
5156 *GNU* | *'with BFD'*)
5157   symcode='[ABCDGISTW]' ;;
5158 esac
5159
5160 # Try without a prefix undercore, then with it.
5161 for ac_symprfx in "" "_"; do
5162
5163   # Write the raw and C identifiers.
5164   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5165
5166   # Check to see that the pipe works correctly.
5167   pipe_works=no
5168
5169   rm -f conftest*
5170   cat > conftest.$ac_ext <<EOF
5171 #ifdef __cplusplus
5172 extern "C" {
5173 #endif
5174 char nm_test_var;
5175 void nm_test_func(){}
5176 #ifdef __cplusplus
5177 }
5178 #endif
5179 int main(){nm_test_var='a';nm_test_func();return(0);}
5180 EOF
5181
5182   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5183   (eval $ac_compile) 2>&5
5184   ac_status=$?
5185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186   (exit $ac_status); }; then
5187     # Now try to grab the symbols.
5188     nlist=conftest.nm
5189     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5190   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5191   ac_status=$?
5192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193   (exit $ac_status); } && test -s "$nlist"; then
5194       # Try sorting and uniquifying the output.
5195       if sort "$nlist" | uniq > "$nlist"T; then
5196         mv -f "$nlist"T "$nlist"
5197       else
5198         rm -f "$nlist"T
5199       fi
5200
5201       # Make sure that we snagged all the symbols we need.
5202       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5203         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5204           cat <<EOF > conftest.$ac_ext
5205 #ifdef __cplusplus
5206 extern "C" {
5207 #endif
5208
5209 EOF
5210           # Now generate the symbol file.
5211           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5212
5213           cat <<EOF >> conftest.$ac_ext
5214 #if defined (__STDC__) && __STDC__
5215 # define lt_ptr_t void *
5216 #else
5217 # define lt_ptr_t char *
5218 # define const
5219 #endif
5220
5221 /* The mapping between symbol names and symbols. */
5222 const struct {
5223   const char *name;
5224   lt_ptr_t address;
5225 }
5226 lt_preloaded_symbols[] =
5227 {
5228 EOF
5229           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5230           cat <<\EOF >> conftest.$ac_ext
5231   {0, (lt_ptr_t) 0}
5232 };
5233
5234 #ifdef __cplusplus
5235 }
5236 #endif
5237 EOF
5238           # Now try linking the two files.
5239           mv conftest.$ac_objext conftstm.$ac_objext
5240           lt_save_LIBS="$LIBS"
5241           lt_save_CFLAGS="$CFLAGS"
5242           LIBS="conftstm.$ac_objext"
5243           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5244           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5245   (eval $ac_link) 2>&5
5246   ac_status=$?
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5249             pipe_works=yes
5250           fi
5251           LIBS="$lt_save_LIBS"
5252           CFLAGS="$lt_save_CFLAGS"
5253         else
5254           echo "cannot find nm_test_func in $nlist" >&5
5255         fi
5256       else
5257         echo "cannot find nm_test_var in $nlist" >&5
5258       fi
5259     else
5260       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5261     fi
5262   else
5263     echo "$progname: failed program was:" >&5
5264     cat conftest.$ac_ext >&5
5265   fi
5266   rm -f conftest* conftst*
5267
5268   # Do not use the global_symbol_pipe unless it works.
5269   if test "$pipe_works" = yes; then
5270     break
5271   else
5272     lt_cv_sys_global_symbol_pipe=
5273   fi
5274 done
5275
5276 fi
5277
5278 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5279   lt_cv_sys_global_symbol_to_cdecl=
5280 fi
5281 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5282   echo "$as_me:$LINENO: result: failed" >&5
5283 echo "${ECHO_T}failed" >&6
5284 else
5285   echo "$as_me:$LINENO: result: ok" >&5
5286 echo "${ECHO_T}ok" >&6
5287 fi
5288
5289 echo "$as_me:$LINENO: checking for objdir" >&5
5290 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5291 if test "${lt_cv_objdir+set}" = set; then
5292   echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294   rm -f .libs 2>/dev/null
5295 mkdir .libs 2>/dev/null
5296 if test -d .libs; then
5297   lt_cv_objdir=.libs
5298 else
5299   # MS-DOS does not allow filenames that begin with a dot.
5300   lt_cv_objdir=_libs
5301 fi
5302 rmdir .libs 2>/dev/null
5303 fi
5304 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5305 echo "${ECHO_T}$lt_cv_objdir" >&6
5306 objdir=$lt_cv_objdir
5307
5308
5309
5310
5311
5312 case $host_os in
5313 aix3*)
5314   # AIX sometimes has problems with the GCC collect2 program.  For some
5315   # reason, if we set the COLLECT_NAMES environment variable, the problems
5316   # vanish in a puff of smoke.
5317   if test "X${COLLECT_NAMES+set}" != Xset; then
5318     COLLECT_NAMES=
5319     export COLLECT_NAMES
5320   fi
5321   ;;
5322 esac
5323
5324 # Sed substitution that helps us do robust quoting.  It backslashifies
5325 # metacharacters that are still active within double-quoted strings.
5326 Xsed='sed -e s/^X//'
5327 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5328
5329 # Same as above, but do not quote variable references.
5330 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5331
5332 # Sed substitution to delay expansion of an escaped shell variable in a
5333 # double_quote_subst'ed string.
5334 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5335
5336 # Sed substitution to avoid accidental globbing in evaled expressions
5337 no_glob_subst='s/\*/\\\*/g'
5338
5339 # Constants:
5340 rm="rm -f"
5341
5342 # Global variables:
5343 default_ofile=mklib
5344 can_build_shared=yes
5345
5346 # All known linkers require a `.a' archive for static linking (except M$VC,
5347 # which needs '.lib').
5348 libext=a
5349 ltmain="$ac_aux_dir/ltmain.sh"
5350 ofile="$default_ofile"
5351 with_gnu_ld="$lt_cv_prog_gnu_ld"
5352
5353 if test -n "$ac_tool_prefix"; then
5354   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5355 set dummy ${ac_tool_prefix}ar; ac_word=$2
5356 echo "$as_me:$LINENO: checking for $ac_word" >&5
5357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5358 if test "${ac_cv_prog_AR+set}" = set; then
5359   echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361   if test -n "$AR"; then
5362   ac_cv_prog_AR="$AR" # Let the user override the test.
5363 else
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5366 do
5367   IFS=$as_save_IFS
5368   test -z "$as_dir" && as_dir=.
5369   for ac_exec_ext in '' $ac_executable_extensions; do
5370   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5371     ac_cv_prog_AR="${ac_tool_prefix}ar"
5372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373     break 2
5374   fi
5375 done
5376 done
5377
5378 fi
5379 fi
5380 AR=$ac_cv_prog_AR
5381 if test -n "$AR"; then
5382   echo "$as_me:$LINENO: result: $AR" >&5
5383 echo "${ECHO_T}$AR" >&6
5384 else
5385   echo "$as_me:$LINENO: result: no" >&5
5386 echo "${ECHO_T}no" >&6
5387 fi
5388
5389 fi
5390 if test -z "$ac_cv_prog_AR"; then
5391   ac_ct_AR=$AR
5392   # Extract the first word of "ar", so it can be a program name with args.
5393 set dummy ar; ac_word=$2
5394 echo "$as_me:$LINENO: checking for $ac_word" >&5
5395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5396 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5397   echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399   if test -n "$ac_ct_AR"; then
5400   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5401 else
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5404 do
5405   IFS=$as_save_IFS
5406   test -z "$as_dir" && as_dir=.
5407   for ac_exec_ext in '' $ac_executable_extensions; do
5408   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409     ac_cv_prog_ac_ct_AR="ar"
5410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411     break 2
5412   fi
5413 done
5414 done
5415
5416   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5417 fi
5418 fi
5419 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5420 if test -n "$ac_ct_AR"; then
5421   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5422 echo "${ECHO_T}$ac_ct_AR" >&6
5423 else
5424   echo "$as_me:$LINENO: result: no" >&5
5425 echo "${ECHO_T}no" >&6
5426 fi
5427
5428   AR=$ac_ct_AR
5429 else
5430   AR="$ac_cv_prog_AR"
5431 fi
5432
5433 if test -n "$ac_tool_prefix"; then
5434   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5435 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5436 echo "$as_me:$LINENO: checking for $ac_word" >&5
5437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5438 if test "${ac_cv_prog_RANLIB+set}" = set; then
5439   echo $ECHO_N "(cached) $ECHO_C" >&6
5440 else
5441   if test -n "$RANLIB"; then
5442   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5446 do
5447   IFS=$as_save_IFS
5448   test -z "$as_dir" && as_dir=.
5449   for ac_exec_ext in '' $ac_executable_extensions; do
5450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453     break 2
5454   fi
5455 done
5456 done
5457
5458 fi
5459 fi
5460 RANLIB=$ac_cv_prog_RANLIB
5461 if test -n "$RANLIB"; then
5462   echo "$as_me:$LINENO: result: $RANLIB" >&5
5463 echo "${ECHO_T}$RANLIB" >&6
5464 else
5465   echo "$as_me:$LINENO: result: no" >&5
5466 echo "${ECHO_T}no" >&6
5467 fi
5468
5469 fi
5470 if test -z "$ac_cv_prog_RANLIB"; then
5471   ac_ct_RANLIB=$RANLIB
5472   # Extract the first word of "ranlib", so it can be a program name with args.
5473 set dummy ranlib; ac_word=$2
5474 echo "$as_me:$LINENO: checking for $ac_word" >&5
5475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5476 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5477   echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479   if test -n "$ac_ct_RANLIB"; then
5480   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5481 else
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5484 do
5485   IFS=$as_save_IFS
5486   test -z "$as_dir" && as_dir=.
5487   for ac_exec_ext in '' $ac_executable_extensions; do
5488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489     ac_cv_prog_ac_ct_RANLIB="ranlib"
5490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491     break 2
5492   fi
5493 done
5494 done
5495
5496   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5497 fi
5498 fi
5499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5500 if test -n "$ac_ct_RANLIB"; then
5501   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5502 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5503 else
5504   echo "$as_me:$LINENO: result: no" >&5
5505 echo "${ECHO_T}no" >&6
5506 fi
5507
5508   RANLIB=$ac_ct_RANLIB
5509 else
5510   RANLIB="$ac_cv_prog_RANLIB"
5511 fi
5512
5513 if test -n "$ac_tool_prefix"; then
5514   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5515 set dummy ${ac_tool_prefix}strip; ac_word=$2
5516 echo "$as_me:$LINENO: checking for $ac_word" >&5
5517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5518 if test "${ac_cv_prog_STRIP+set}" = set; then
5519   echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521   if test -n "$STRIP"; then
5522   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5523 else
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH
5526 do
5527   IFS=$as_save_IFS
5528   test -z "$as_dir" && as_dir=.
5529   for ac_exec_ext in '' $ac_executable_extensions; do
5530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5533     break 2
5534   fi
5535 done
5536 done
5537
5538 fi
5539 fi
5540 STRIP=$ac_cv_prog_STRIP
5541 if test -n "$STRIP"; then
5542   echo "$as_me:$LINENO: result: $STRIP" >&5
5543 echo "${ECHO_T}$STRIP" >&6
5544 else
5545   echo "$as_me:$LINENO: result: no" >&5
5546 echo "${ECHO_T}no" >&6
5547 fi
5548
5549 fi
5550 if test -z "$ac_cv_prog_STRIP"; then
5551   ac_ct_STRIP=$STRIP
5552   # Extract the first word of "strip", so it can be a program name with args.
5553 set dummy strip; ac_word=$2
5554 echo "$as_me:$LINENO: checking for $ac_word" >&5
5555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5556 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5557   echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559   if test -n "$ac_ct_STRIP"; then
5560   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5561 else
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5564 do
5565   IFS=$as_save_IFS
5566   test -z "$as_dir" && as_dir=.
5567   for ac_exec_ext in '' $ac_executable_extensions; do
5568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569     ac_cv_prog_ac_ct_STRIP="strip"
5570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571     break 2
5572   fi
5573 done
5574 done
5575
5576   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5577 fi
5578 fi
5579 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5580 if test -n "$ac_ct_STRIP"; then
5581   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5582 echo "${ECHO_T}$ac_ct_STRIP" >&6
5583 else
5584   echo "$as_me:$LINENO: result: no" >&5
5585 echo "${ECHO_T}no" >&6
5586 fi
5587
5588   STRIP=$ac_ct_STRIP
5589 else
5590   STRIP="$ac_cv_prog_STRIP"
5591 fi
5592
5593
5594 old_CC="$CC"
5595 old_CFLAGS="$CFLAGS"
5596
5597 # Set sane defaults for various variables
5598 test -z "$AR" && AR=ar
5599 test -z "$AR_FLAGS" && AR_FLAGS=cru
5600 test -z "$AS" && AS=as
5601 test -z "$CC" && CC=cc
5602 test -z "$LTCC" && LTCC=$CC
5603 test -z "$DLLTOOL" && DLLTOOL=dlltool
5604 test -z "$LD" && LD=ld
5605 test -z "$LN_S" && LN_S="ln -s"
5606 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5607 test -z "$NM" && NM=nm
5608 test -z "$SED" && SED=sed
5609 test -z "$OBJDUMP" && OBJDUMP=objdump
5610 test -z "$RANLIB" && RANLIB=:
5611 test -z "$STRIP" && STRIP=:
5612 test -z "$ac_objext" && ac_objext=o
5613
5614 # Determine commands to create old-style static archives.
5615 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5616 old_postinstall_cmds='chmod 644 $oldlib'
5617 old_postuninstall_cmds=
5618
5619 if test -n "$RANLIB"; then
5620   case $host_os in
5621   openbsd*)
5622     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5623     ;;
5624   *)
5625     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5626     ;;
5627   esac
5628   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5629 fi
5630
5631 # Only perform the check for file, if the check method requires it
5632 case $deplibs_check_method in
5633 file_magic*)
5634   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5635     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5636 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5637 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5638   echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640   case $MAGIC_CMD in
5641 [\\/*] |  ?:[\\/]*)
5642   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5643   ;;
5644 *)
5645   lt_save_MAGIC_CMD="$MAGIC_CMD"
5646   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5647   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5648   for ac_dir in $ac_dummy; do
5649     IFS="$lt_save_ifs"
5650     test -z "$ac_dir" && ac_dir=.
5651     if test -f $ac_dir/${ac_tool_prefix}file; then
5652       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5653       if test -n "$file_magic_test_file"; then
5654         case $deplibs_check_method in
5655         "file_magic "*)
5656           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5657           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5658           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5659             $EGREP "$file_magic_regex" > /dev/null; then
5660             :
5661           else
5662             cat <<EOF 1>&2
5663
5664 *** Warning: the command libtool uses to detect shared libraries,
5665 *** $file_magic_cmd, produces output that libtool cannot recognize.
5666 *** The result is that libtool may fail to recognize shared libraries
5667 *** as such.  This will affect the creation of libtool libraries that
5668 *** depend on shared libraries, but programs linked with such libtool
5669 *** libraries will work regardless of this problem.  Nevertheless, you
5670 *** may want to report the problem to your system manager and/or to
5671 *** bug-libtool@gnu.org
5672
5673 EOF
5674           fi ;;
5675         esac
5676       fi
5677       break
5678     fi
5679   done
5680   IFS="$lt_save_ifs"
5681   MAGIC_CMD="$lt_save_MAGIC_CMD"
5682   ;;
5683 esac
5684 fi
5685
5686 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5687 if test -n "$MAGIC_CMD"; then
5688   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5689 echo "${ECHO_T}$MAGIC_CMD" >&6
5690 else
5691   echo "$as_me:$LINENO: result: no" >&5
5692 echo "${ECHO_T}no" >&6
5693 fi
5694
5695 if test -z "$lt_cv_path_MAGIC_CMD"; then
5696   if test -n "$ac_tool_prefix"; then
5697     echo "$as_me:$LINENO: checking for file" >&5
5698 echo $ECHO_N "checking for file... $ECHO_C" >&6
5699 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5700   echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702   case $MAGIC_CMD in
5703 [\\/*] |  ?:[\\/]*)
5704   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5705   ;;
5706 *)
5707   lt_save_MAGIC_CMD="$MAGIC_CMD"
5708   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5709   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5710   for ac_dir in $ac_dummy; do
5711     IFS="$lt_save_ifs"
5712     test -z "$ac_dir" && ac_dir=.
5713     if test -f $ac_dir/file; then
5714       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5715       if test -n "$file_magic_test_file"; then
5716         case $deplibs_check_method in
5717         "file_magic "*)
5718           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5719           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5720           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5721             $EGREP "$file_magic_regex" > /dev/null; then
5722             :
5723           else
5724             cat <<EOF 1>&2
5725
5726 *** Warning: the command libtool uses to detect shared libraries,
5727 *** $file_magic_cmd, produces output that libtool cannot recognize.
5728 *** The result is that libtool may fail to recognize shared libraries
5729 *** as such.  This will affect the creation of libtool libraries that
5730 *** depend on shared libraries, but programs linked with such libtool
5731 *** libraries will work regardless of this problem.  Nevertheless, you
5732 *** may want to report the problem to your system manager and/or to
5733 *** bug-libtool@gnu.org
5734
5735 EOF
5736           fi ;;
5737         esac
5738       fi
5739       break
5740     fi
5741   done
5742   IFS="$lt_save_ifs"
5743   MAGIC_CMD="$lt_save_MAGIC_CMD"
5744   ;;
5745 esac
5746 fi
5747
5748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5749 if test -n "$MAGIC_CMD"; then
5750   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5751 echo "${ECHO_T}$MAGIC_CMD" >&6
5752 else
5753   echo "$as_me:$LINENO: result: no" >&5
5754 echo "${ECHO_T}no" >&6
5755 fi
5756
5757   else
5758     MAGIC_CMD=:
5759   fi
5760 fi
5761
5762   fi
5763   ;;
5764 esac
5765
5766 enable_dlopen=no
5767 enable_win32_dll=no
5768
5769 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5770 if test "${enable_libtool_lock+set}" = set; then
5771   enableval="$enable_libtool_lock"
5772
5773 fi;
5774 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5775
5776
5777 # Check whether --with-pic or --without-pic was given.
5778 if test "${with_pic+set}" = set; then
5779   withval="$with_pic"
5780   pic_mode="$withval"
5781 else
5782   pic_mode=default
5783 fi;
5784 test -z "$pic_mode" && pic_mode=default
5785
5786 # Use C for the default configuration in the libtool script
5787 tagname=
5788 lt_save_CC="$CC"
5789 ac_ext=c
5790 ac_cpp='$CPP $CPPFLAGS'
5791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5794
5795
5796 # Source file extension for C test sources.
5797 ac_ext=c
5798
5799 # Object file extension for compiled C test sources.
5800 objext=o
5801 objext=$objext
5802
5803 # Code to be used in simple compile tests
5804 lt_simple_compile_test_code="int some_variable = 0;\n"
5805
5806 # Code to be used in simple link tests
5807 lt_simple_link_test_code='int main(){return(0);}\n'
5808
5809
5810 # If no C compiler was specified, use CC.
5811 LTCC=${LTCC-"$CC"}
5812
5813 # Allow CC to be a program name with arguments.
5814 compiler=$CC
5815
5816
5817 #
5818 # Check for any special shared library compilation flags.
5819 #
5820 lt_prog_cc_shlib=
5821 if test "$GCC" = no; then
5822   case $host_os in
5823   sco3.2v5*)
5824     lt_prog_cc_shlib='-belf'
5825     ;;
5826   esac
5827 fi
5828 if test -n "$lt_prog_cc_shlib"; then
5829   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5830 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5831   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5832   else
5833     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5834 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5835     lt_cv_prog_cc_can_build_shared=no
5836   fi
5837 fi
5838
5839
5840 #
5841 # Check to make sure the static flag actually works.
5842 #
5843 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5844 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5845 if test "${lt_prog_compiler_static_works+set}" = set; then
5846   echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848   lt_prog_compiler_static_works=no
5849    save_LDFLAGS="$LDFLAGS"
5850    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5851    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5852    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5853      # The compiler can only warn and ignore the option if not recognized
5854      # So say no if there are warnings
5855      if test -s conftest.err; then
5856        # Append any errors to the config.log.
5857        cat conftest.err 1>&5
5858      else
5859        lt_prog_compiler_static_works=yes
5860      fi
5861    fi
5862    $rm conftest*
5863    LDFLAGS="$save_LDFLAGS"
5864
5865 fi
5866 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5867 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5868
5869 if test x"$lt_prog_compiler_static_works" = xyes; then
5870     :
5871 else
5872     lt_prog_compiler_static=
5873 fi
5874
5875
5876
5877
5878 lt_prog_compiler_no_builtin_flag=
5879
5880 if test "$GCC" = yes; then
5881   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5882
5883   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5884 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5885 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   lt_cv_prog_compiler_rtti_exceptions=no
5889   ac_outfile=conftest.$ac_objext
5890    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5891    lt_compiler_flag="-fno-rtti -fno-exceptions"
5892    # Insert the option either (1) after the last *FLAGS variable, or
5893    # (2) before a word containing "conftest.", or (3) at the end.
5894    # Note that $ac_compile itself does not contain backslashes and begins
5895    # with a dollar sign (not a hyphen), so the echo should work correctly.
5896    # The option is referenced via a variable to avoid confusing sed.
5897    lt_compile=`echo "$ac_compile" | $SED \
5898    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5899    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5900    -e 's:$: $lt_compiler_flag:'`
5901    (eval echo "\"\$as_me:5901: $lt_compile\"" >&5)
5902    (eval "$lt_compile" 2>conftest.err)
5903    ac_status=$?
5904    cat conftest.err >&5
5905    echo "$as_me:5905: \$? = $ac_status" >&5
5906    if (exit $ac_status) && test -s "$ac_outfile"; then
5907      # The compiler can only warn and ignore the option if not recognized
5908      # So say no if there are warnings
5909      if test ! -s conftest.err; then
5910        lt_cv_prog_compiler_rtti_exceptions=yes
5911      fi
5912    fi
5913    $rm conftest*
5914
5915 fi
5916 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5917 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5918
5919 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5920     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5921 else
5922     :
5923 fi
5924
5925 fi
5926
5927 lt_prog_compiler_wl=
5928 lt_prog_compiler_pic=
5929 lt_prog_compiler_static=
5930
5931 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5932 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5933
5934   if test "$GCC" = yes; then
5935     lt_prog_compiler_wl='-Wl,'
5936     lt_prog_compiler_static='-static'
5937
5938     case $host_os in
5939       aix*)
5940       # All AIX code is PIC.
5941       if test "$host_cpu" = ia64; then
5942         # AIX 5 now supports IA64 processor
5943         lt_prog_compiler_static='-Bstatic'
5944       fi
5945       ;;
5946
5947     amigaos*)
5948       # FIXME: we need at least 68020 code to build shared libraries, but
5949       # adding the `-m68020' flag to GCC prevents building anything better,
5950       # like `-m68040'.
5951       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5952       ;;
5953
5954     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5955       # PIC is the default for these OSes.
5956       ;;
5957
5958     mingw* | pw32* | os2*)
5959       # This hack is so that the source file can tell whether it is being
5960       # built for inclusion in a dll (and should export symbols for example).
5961       lt_prog_compiler_pic='-DDLL_EXPORT'
5962       ;;
5963
5964     darwin* | rhapsody*)
5965       # PIC is the default on this platform
5966       # Common symbols not allowed in MH_DYLIB files
5967       lt_prog_compiler_pic='-fno-common'
5968       ;;
5969
5970     msdosdjgpp*)
5971       # Just because we use GCC doesn't mean we suddenly get shared libraries
5972       # on systems that don't support them.
5973       lt_prog_compiler_can_build_shared=no
5974       enable_shared=no
5975       ;;
5976
5977     sysv4*MP*)
5978       if test -d /usr/nec; then
5979         lt_prog_compiler_pic=-Kconform_pic
5980       fi
5981       ;;
5982
5983     hpux*)
5984       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5985       # not for PA HP-UX.
5986       case "$host_cpu" in
5987       hppa*64*|ia64*)
5988         # +Z the default
5989         ;;
5990       *)
5991         lt_prog_compiler_pic='-fPIC'
5992         ;;
5993       esac
5994       ;;
5995
5996     *)
5997       lt_prog_compiler_pic='-fPIC'
5998       ;;
5999     esac
6000   else
6001     # PORTME Check for flag to pass linker flags through the system compiler.
6002     case $host_os in
6003     aix*)
6004       lt_prog_compiler_wl='-Wl,'
6005       if test "$host_cpu" = ia64; then
6006         # AIX 5 now supports IA64 processor
6007         lt_prog_compiler_static='-Bstatic'
6008       else
6009         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6010       fi
6011       ;;
6012
6013     mingw* | pw32* | os2*)
6014       # This hack is so that the source file can tell whether it is being
6015       # built for inclusion in a dll (and should export symbols for example).
6016       lt_prog_compiler_pic='-DDLL_EXPORT'
6017       ;;
6018
6019     hpux9* | hpux10* | hpux11*)
6020       lt_prog_compiler_wl='-Wl,'
6021       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6022       # not for PA HP-UX.
6023       case "$host_cpu" in
6024       hppa*64*|ia64*)
6025         # +Z the default
6026         ;;
6027       *)
6028         lt_prog_compiler_pic='+Z'
6029         ;;
6030       esac
6031       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6032       lt_prog_compiler_static='${wl}-a ${wl}archive'
6033       ;;
6034
6035     irix5* | irix6* | nonstopux*)
6036       lt_prog_compiler_wl='-Wl,'
6037       # PIC (with -KPIC) is the default.
6038       lt_prog_compiler_static='-non_shared'
6039       ;;
6040
6041     newsos6)
6042       lt_prog_compiler_pic='-KPIC'
6043       lt_prog_compiler_static='-Bstatic'
6044       ;;
6045
6046     linux*)
6047       case $CC in
6048       icc|ecc)
6049         lt_prog_compiler_wl='-Wl,'
6050         lt_prog_compiler_pic='-KPIC'
6051         lt_prog_compiler_static='-static'
6052         ;;
6053       ccc)
6054         lt_prog_compiler_wl='-Wl,'
6055         # All Alpha code is PIC.
6056         lt_prog_compiler_static='-non_shared'
6057         ;;
6058       esac
6059       ;;
6060
6061     osf3* | osf4* | osf5*)
6062       lt_prog_compiler_wl='-Wl,'
6063       # All OSF/1 code is PIC.
6064       lt_prog_compiler_static='-non_shared'
6065       ;;
6066
6067     sco3.2v5*)
6068       lt_prog_compiler_pic='-Kpic'
6069       lt_prog_compiler_static='-dn'
6070       ;;
6071
6072     solaris*)
6073       lt_prog_compiler_wl='-Wl,'
6074       lt_prog_compiler_pic='-KPIC'
6075       lt_prog_compiler_static='-Bstatic'
6076       ;;
6077
6078     sunos4*)
6079       lt_prog_compiler_wl='-Qoption ld '
6080       lt_prog_compiler_pic='-PIC'
6081       lt_prog_compiler_static='-Bstatic'
6082       ;;
6083
6084     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6085       lt_prog_compiler_wl='-Wl,'
6086       lt_prog_compiler_pic='-KPIC'
6087       lt_prog_compiler_static='-Bstatic'
6088       ;;
6089
6090     sysv4*MP*)
6091       if test -d /usr/nec ;then
6092         lt_prog_compiler_pic='-Kconform_pic'
6093         lt_prog_compiler_static='-Bstatic'
6094       fi
6095       ;;
6096
6097     uts4*)
6098       lt_prog_compiler_pic='-pic'
6099       lt_prog_compiler_static='-Bstatic'
6100       ;;
6101
6102     *)
6103       lt_prog_compiler_can_build_shared=no
6104       ;;
6105     esac
6106   fi
6107
6108 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6109 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6110
6111 #
6112 # Check to make sure the PIC flag actually works.
6113 #
6114 if test -n "$lt_prog_compiler_pic"; then
6115   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6116 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6117 if test "${lt_prog_compiler_pic_works+set}" = set; then
6118   echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120   lt_prog_compiler_pic_works=no
6121   ac_outfile=conftest.$ac_objext
6122    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6123    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6124    # Insert the option either (1) after the last *FLAGS variable, or
6125    # (2) before a word containing "conftest.", or (3) at the end.
6126    # Note that $ac_compile itself does not contain backslashes and begins
6127    # with a dollar sign (not a hyphen), so the echo should work correctly.
6128    # The option is referenced via a variable to avoid confusing sed.
6129    lt_compile=`echo "$ac_compile" | $SED \
6130    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6131    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6132    -e 's:$: $lt_compiler_flag:'`
6133    (eval echo "\"\$as_me:6133: $lt_compile\"" >&5)
6134    (eval "$lt_compile" 2>conftest.err)
6135    ac_status=$?
6136    cat conftest.err >&5
6137    echo "$as_me:6137: \$? = $ac_status" >&5
6138    if (exit $ac_status) && test -s "$ac_outfile"; then
6139      # The compiler can only warn and ignore the option if not recognized
6140      # So say no if there are warnings
6141      if test ! -s conftest.err; then
6142        lt_prog_compiler_pic_works=yes
6143      fi
6144    fi
6145    $rm conftest*
6146
6147 fi
6148 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6149 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6150
6151 if test x"$lt_prog_compiler_pic_works" = xyes; then
6152     case $lt_prog_compiler_pic in
6153      "" | " "*) ;;
6154      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6155      esac
6156 else
6157     lt_prog_compiler_pic=
6158      lt_prog_compiler_can_build_shared=no
6159 fi
6160
6161 fi
6162 case "$host_os" in
6163   # For platforms which do not support PIC, -DPIC is meaningless:
6164   *djgpp*)
6165     lt_prog_compiler_pic=
6166     ;;
6167   *)
6168     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6169     ;;
6170 esac
6171
6172 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6173 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6174 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6175   echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177   lt_cv_prog_compiler_c_o=no
6178    $rm -r conftest 2>/dev/null
6179    mkdir conftest
6180    cd conftest
6181    mkdir out
6182    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6183
6184    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6185    # that will create temporary files in the current directory regardless of
6186    # the output directory.  Thus, making CWD read-only will cause this test
6187    # to fail, enabling locking or at least warning the user not to do parallel
6188    # builds.
6189    chmod -w .
6190
6191    lt_compiler_flag="-o out/conftest2.$ac_objext"
6192    # Insert the option either (1) after the last *FLAGS variable, or
6193    # (2) before a word containing "conftest.", or (3) at the end.
6194    # Note that $ac_compile itself does not contain backslashes and begins
6195    # with a dollar sign (not a hyphen), so the echo should work correctly.
6196    lt_compile=`echo "$ac_compile" | $SED \
6197    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6198    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6199    -e 's:$: $lt_compiler_flag:'`
6200    (eval echo "\"\$as_me:6200: $lt_compile\"" >&5)
6201    (eval "$lt_compile" 2>out/conftest.err)
6202    ac_status=$?
6203    cat out/conftest.err >&5
6204    echo "$as_me:6204: \$? = $ac_status" >&5
6205    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6206    then
6207      # The compiler can only warn and ignore the option if not recognized
6208      # So say no if there are warnings
6209      if test ! -s out/conftest.err; then
6210        lt_cv_prog_compiler_c_o=yes
6211      fi
6212    fi
6213    chmod u+w .
6214    $rm conftest* out/*
6215    rmdir out
6216    cd ..
6217    rmdir conftest
6218    $rm conftest*
6219
6220 fi
6221 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6222 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6223
6224
6225 hard_links="nottested"
6226 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6227   # do not overwrite the value of need_locks provided by the user
6228   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6229 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6230   hard_links=yes
6231   $rm conftest*
6232   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6233   touch conftest.a
6234   ln conftest.a conftest.b 2>&5 || hard_links=no
6235   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6236   echo "$as_me:$LINENO: result: $hard_links" >&5
6237 echo "${ECHO_T}$hard_links" >&6
6238   if test "$hard_links" = no; then
6239     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6240 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6241     need_locks=warn
6242   fi
6243 else
6244   need_locks=no
6245 fi
6246
6247 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6248 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6249
6250   runpath_var=
6251   allow_undefined_flag=
6252   enable_shared_with_static_runtimes=no
6253   archive_cmds=
6254   archive_expsym_cmds=
6255   old_archive_From_new_cmds=
6256   old_archive_from_expsyms_cmds=
6257   export_dynamic_flag_spec=
6258   whole_archive_flag_spec=
6259   thread_safe_flag_spec=
6260   hardcode_libdir_flag_spec=
6261   hardcode_libdir_flag_spec_ld=
6262   hardcode_libdir_separator=
6263   hardcode_direct=no
6264   hardcode_minus_L=no
6265   hardcode_shlibpath_var=unsupported
6266   link_all_deplibs=unknown
6267   hardcode_automatic=no
6268   module_cmds=
6269   module_expsym_cmds=
6270   always_export_symbols=no
6271   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6272   # include_expsyms should be a list of space-separated symbols to be *always*
6273   # included in the symbol list
6274   include_expsyms=
6275   # exclude_expsyms can be an extended regexp of symbols to exclude
6276   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6277   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6278   # as well as any symbol that contains `d'.
6279   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6280   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6281   # platforms (ab)use it in PIC code, but their linkers get confused if
6282   # the symbol is explicitly referenced.  Since portable code cannot
6283   # rely on this symbol name, it's probably fine to never include it in
6284   # preloaded symbol tables.
6285   extract_expsyms_cmds=
6286
6287   case $host_os in
6288   cygwin* | mingw* | pw32*)
6289     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6290     # When not using gcc, we currently assume that we are using
6291     # Microsoft Visual C++.
6292     if test "$GCC" != yes; then
6293       with_gnu_ld=no
6294     fi
6295     ;;
6296   openbsd*)
6297     with_gnu_ld=no
6298     ;;
6299   esac
6300
6301   ld_shlibs=yes
6302   if test "$with_gnu_ld" = yes; then
6303     # If archive_cmds runs LD, not CC, wlarc should be empty
6304     wlarc='${wl}'
6305
6306     # See if GNU ld supports shared libraries.
6307     case $host_os in
6308     aix3* | aix4* | aix5*)
6309       # On AIX/PPC, the GNU linker is very broken
6310       if test "$host_cpu" != ia64; then
6311         ld_shlibs=no
6312         cat <<EOF 1>&2
6313
6314 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6315 *** to be unable to reliably create shared libraries on AIX.
6316 *** Therefore, libtool is disabling shared libraries support.  If you
6317 *** really care for shared libraries, you may want to modify your PATH
6318 *** so that a non-GNU linker is found, and then restart.
6319
6320 EOF
6321       fi
6322       ;;
6323
6324     amigaos*)
6325       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)'
6326       hardcode_libdir_flag_spec='-L$libdir'
6327       hardcode_minus_L=yes
6328
6329       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6330       # that the semantics of dynamic libraries on AmigaOS, at least up
6331       # to version 4, is to share data among multiple programs linked
6332       # with the same dynamic library.  Since this doesn't match the
6333       # behavior of shared libraries on other platforms, we can't use
6334       # them.
6335       ld_shlibs=no
6336       ;;
6337
6338     beos*)
6339       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6340         allow_undefined_flag=unsupported
6341         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6342         # support --undefined.  This deserves some investigation.  FIXME
6343         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6344       else
6345         ld_shlibs=no
6346       fi
6347       ;;
6348
6349     cygwin* | mingw* | pw32*)
6350       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6351       # as there is no search path for DLLs.
6352       hardcode_libdir_flag_spec='-L$libdir'
6353       allow_undefined_flag=unsupported
6354       always_export_symbols=no
6355       enable_shared_with_static_runtimes=yes
6356       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6357
6358       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6359         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6360         # If the export-symbols file already is a .def file (1st line
6361         # is EXPORTS), use it as is; otherwise, prepend...
6362         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6363           cp $export_symbols $output_objdir/$soname.def;
6364         else
6365           echo EXPORTS > $output_objdir/$soname.def;
6366           cat $export_symbols >> $output_objdir/$soname.def;
6367         fi~
6368         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6369       else
6370         ld_shlibs=no
6371       fi
6372       ;;
6373
6374     netbsd*)
6375       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6376         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6377         wlarc=
6378       else
6379         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6380         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6381       fi
6382       ;;
6383
6384     solaris* | sysv5*)
6385       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6386         ld_shlibs=no
6387         cat <<EOF 1>&2
6388
6389 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6390 *** create shared libraries on Solaris systems.  Therefore, libtool
6391 *** is disabling shared libraries support.  We urge you to upgrade GNU
6392 *** binutils to release 2.9.1 or newer.  Another option is to modify
6393 *** your PATH or compiler configuration so that the native linker is
6394 *** used, and then restart.
6395
6396 EOF
6397       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6398         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6399         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6400       else
6401         ld_shlibs=no
6402       fi
6403       ;;
6404
6405     sunos4*)
6406       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6407       wlarc=
6408       hardcode_direct=yes
6409       hardcode_shlibpath_var=no
6410       ;;
6411
6412     *)
6413       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6414         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6415         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6416       else
6417         ld_shlibs=no
6418       fi
6419       ;;
6420     esac
6421
6422     if test "$ld_shlibs" = yes; then
6423       runpath_var=LD_RUN_PATH
6424       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6425       export_dynamic_flag_spec='${wl}--export-dynamic'
6426       # ancient GNU ld didn't support --whole-archive et. al.
6427       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6428         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6429       else
6430         whole_archive_flag_spec=
6431       fi
6432     fi
6433   else
6434     # PORTME fill in a description of your system's linker (not GNU ld)
6435     case $host_os in
6436     aix3*)
6437       allow_undefined_flag=unsupported
6438       always_export_symbols=yes
6439       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'
6440       # Note: this linker hardcodes the directories in LIBPATH if there
6441       # are no directories specified by -L.
6442       hardcode_minus_L=yes
6443       if test "$GCC" = yes && test -z "$link_static_flag"; then
6444         # Neither direct hardcoding nor static linking is supported with a
6445         # broken collect2.
6446         hardcode_direct=unsupported
6447       fi
6448       ;;
6449
6450     aix4* | aix5*)
6451       if test "$host_cpu" = ia64; then
6452         # On IA64, the linker does run time linking by default, so we don't
6453         # have to do anything special.
6454         aix_use_runtimelinking=no
6455         exp_sym_flag='-Bexport'
6456         no_entry_flag=""
6457       else
6458         # If we're using GNU nm, then we don't want the "-C" option.
6459         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6460         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6461           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'
6462         else
6463           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'
6464         fi
6465         aix_use_runtimelinking=no
6466
6467         # Test if we are trying to use run time linking or normal
6468         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6469         # need to do runtime linking.
6470         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6471           for ld_flag in $LDFLAGS; do
6472           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6473             aix_use_runtimelinking=yes
6474             break
6475           fi
6476           done
6477         esac
6478
6479         exp_sym_flag='-bexport'
6480         no_entry_flag='-bnoentry'
6481       fi
6482
6483       # When large executables or shared objects are built, AIX ld can
6484       # have problems creating the table of contents.  If linking a library
6485       # or program results in "error TOC overflow" add -mminimal-toc to
6486       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6487       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6488
6489       archive_cmds=''
6490       hardcode_direct=yes
6491       hardcode_libdir_separator=':'
6492       link_all_deplibs=yes
6493
6494       if test "$GCC" = yes; then
6495         case $host_os in aix4.012|aix4.012.*)
6496         # We only want to do this on AIX 4.2 and lower, the check
6497         # below for broken collect2 doesn't work under 4.3+
6498           collect2name=`${CC} -print-prog-name=collect2`
6499           if test -f "$collect2name" && \
6500            strings "$collect2name" | grep resolve_lib_name >/dev/null
6501           then
6502           # We have reworked collect2
6503           hardcode_direct=yes
6504           else
6505           # We have old collect2
6506           hardcode_direct=unsupported
6507           # It fails to find uninstalled libraries when the uninstalled
6508           # path is not listed in the libpath.  Setting hardcode_minus_L
6509           # to unsupported forces relinking
6510           hardcode_minus_L=yes
6511           hardcode_libdir_flag_spec='-L$libdir'
6512           hardcode_libdir_separator=
6513           fi
6514         esac
6515         shared_flag='-shared'
6516       else
6517         # not using gcc
6518         if test "$host_cpu" = ia64; then
6519         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6520         # chokes on -Wl,-G. The following line is correct:
6521           shared_flag='-G'
6522         else
6523         if test "$aix_use_runtimelinking" = yes; then
6524             shared_flag='${wl}-G'
6525           else
6526             shared_flag='${wl}-bM:SRE'
6527         fi
6528         fi
6529       fi
6530
6531       # It seems that -bexpall does not export symbols beginning with
6532       # underscore (_), so it is better to generate a list of symbols to export.
6533       always_export_symbols=yes
6534       if test "$aix_use_runtimelinking" = yes; then
6535         # Warning - without using the other runtime loading flags (-brtl),
6536         # -berok will link without error, but may produce a broken library.
6537         allow_undefined_flag='-berok'
6538        # Determine the default libpath from the value encoded in an empty executable.
6539        cat >conftest.$ac_ext <<_ACEOF
6540 #line $LINENO "configure"
6541 /* confdefs.h.  */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h.  */
6546
6547 int
6548 main ()
6549 {
6550
6551   ;
6552   return 0;
6553 }
6554 _ACEOF
6555 rm -f conftest.$ac_objext conftest$ac_exeext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6557   (eval $ac_link) 2>&5
6558   ac_status=$?
6559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560   (exit $ac_status); } &&
6561          { ac_try='test -s conftest$ac_exeext'
6562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563   (eval $ac_try) 2>&5
6564   ac_status=$?
6565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566   (exit $ac_status); }; }; then
6567
6568 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6569 }'`
6570 # Check for a 64-bit object if we didn't find anything.
6571 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; }
6572 }'`; fi
6573 else
6574   echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6576
6577 fi
6578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6579 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6580
6581        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6582         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"
6583        else
6584         if test "$host_cpu" = ia64; then
6585           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6586           allow_undefined_flag="-z nodefs"
6587           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"
6588         else
6589          # Determine the default libpath from the value encoded in an empty executable.
6590          cat >conftest.$ac_ext <<_ACEOF
6591 #line $LINENO "configure"
6592 /* confdefs.h.  */
6593 _ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h.  */
6597
6598 int
6599 main ()
6600 {
6601
6602   ;
6603   return 0;
6604 }
6605 _ACEOF
6606 rm -f conftest.$ac_objext conftest$ac_exeext
6607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6608   (eval $ac_link) 2>&5
6609   ac_status=$?
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); } &&
6612          { ac_try='test -s conftest$ac_exeext'
6613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614   (eval $ac_try) 2>&5
6615   ac_status=$?
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); }; }; then
6618
6619 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6620 }'`
6621 # Check for a 64-bit object if we didn't find anything.
6622 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; }
6623 }'`; fi
6624 else
6625   echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6627
6628 fi
6629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6630 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6631
6632          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6633           # Warning - without using the other run time loading flags,
6634           # -berok will link without error, but may produce a broken library.
6635           no_undefined_flag=' ${wl}-bernotok'
6636           allow_undefined_flag=' ${wl}-berok'
6637           # -bexpall does not export symbols beginning with underscore (_)
6638           always_export_symbols=yes
6639           # Exported symbols can be pulled into shared objects from archives
6640           whole_archive_flag_spec=' '
6641           archive_cmds_need_lc=yes
6642           # This is similar to how AIX traditionally builds it's shared libraries.
6643           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'
6644         fi
6645       fi
6646       ;;
6647
6648     amigaos*)
6649       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)'
6650       hardcode_libdir_flag_spec='-L$libdir'
6651       hardcode_minus_L=yes
6652       # see comment about different semantics on the GNU ld section
6653       ld_shlibs=no
6654       ;;
6655
6656     bsdi4*)
6657       export_dynamic_flag_spec=-rdynamic
6658       ;;
6659
6660     cygwin* | mingw* | pw32*)
6661       # When not using gcc, we currently assume that we are using
6662       # Microsoft Visual C++.
6663       # hardcode_libdir_flag_spec is actually meaningless, as there is
6664       # no search path for DLLs.
6665       hardcode_libdir_flag_spec=' '
6666       allow_undefined_flag=unsupported
6667       # Tell ltmain to make .lib files, not .a files.
6668       libext=lib
6669       # Tell ltmain to make .dll files, not .so files.
6670       shrext=".dll"
6671       # FIXME: Setting linknames here is a bad hack.
6672       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6673       # The linker will automatically build a .lib file if we build a DLL.
6674       old_archive_From_new_cmds='true'
6675       # FIXME: Should let the user specify the lib program.
6676       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6677       fix_srcfile_path='`cygpath -w "$srcfile"`'
6678       enable_shared_with_static_runtimes=yes
6679       ;;
6680
6681     darwin* | rhapsody*)
6682     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6683       archive_cmds_need_lc=no
6684       case "$host_os" in
6685       rhapsody* | darwin1.[012])
6686         allow_undefined_flag='-undefined suppress'
6687         ;;
6688       *) # Darwin 1.3 on
6689         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6690         ;;
6691       esac
6692       # FIXME: Relying on posixy $() will cause problems for
6693       #        cross-compilation, but unfortunately the echo tests do not
6694       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6695       #        `"' quotes if we put them in here... so don't!
6696         lt_int_apple_cc_single_mod=no
6697         output_verbose_link_cmd='echo'
6698         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6699           lt_int_apple_cc_single_mod=yes
6700         fi
6701         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6702           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6703         else
6704         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'
6705       fi
6706       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6707       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6708         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6709           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}'
6710         else
6711           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}'
6712         fi
6713           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}'
6714       hardcode_direct=no
6715       hardcode_automatic=yes
6716       hardcode_shlibpath_var=unsupported
6717       whole_archive_flag_spec='-all_load $convenience'
6718       link_all_deplibs=yes
6719     fi
6720       ;;
6721
6722     dgux*)
6723       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6724       hardcode_libdir_flag_spec='-L$libdir'
6725       hardcode_shlibpath_var=no
6726       ;;
6727
6728     freebsd1*)
6729       ld_shlibs=no
6730       ;;
6731
6732     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6733     # support.  Future versions do this automatically, but an explicit c++rt0.o
6734     # does not break anything, and helps significantly (at the cost of a little
6735     # extra space).
6736     freebsd2.2*)
6737       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6738       hardcode_libdir_flag_spec='-R$libdir'
6739       hardcode_direct=yes
6740       hardcode_shlibpath_var=no
6741       ;;
6742
6743     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6744     freebsd2*)
6745       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6746       hardcode_direct=yes
6747       hardcode_minus_L=yes
6748       hardcode_shlibpath_var=no
6749       ;;
6750
6751     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6752     freebsd*)
6753       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6754       hardcode_libdir_flag_spec='-R$libdir'
6755       hardcode_direct=yes
6756       hardcode_shlibpath_var=no
6757       ;;
6758
6759     hpux9*)
6760       if test "$GCC" = yes; then
6761         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'
6762       else
6763         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'
6764       fi
6765       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6766       hardcode_libdir_separator=:
6767       hardcode_direct=yes
6768
6769       # hardcode_minus_L: Not really in the search PATH,
6770       # but as the default location of the library.
6771       hardcode_minus_L=yes
6772       export_dynamic_flag_spec='${wl}-E'
6773       ;;
6774
6775     hpux10* | hpux11*)
6776       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6777         case "$host_cpu" in
6778         hppa*64*|ia64*)
6779           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6780           ;;
6781         *)
6782           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6783           ;;
6784         esac
6785       else
6786         case "$host_cpu" in
6787         hppa*64*|ia64*)
6788           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6789           ;;
6790         *)
6791           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6792           ;;
6793         esac
6794       fi
6795       if test "$with_gnu_ld" = no; then
6796         case "$host_cpu" in
6797         hppa*64*)
6798           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6799           hardcode_libdir_flag_spec_ld='+b $libdir'
6800           hardcode_libdir_separator=:
6801           hardcode_direct=no
6802           hardcode_shlibpath_var=no
6803           ;;
6804         ia64*)
6805           hardcode_libdir_flag_spec='-L$libdir'
6806           hardcode_direct=no
6807           hardcode_shlibpath_var=no
6808
6809           # hardcode_minus_L: Not really in the search PATH,
6810           # but as the default location of the library.
6811           hardcode_minus_L=yes
6812           ;;
6813         *)
6814           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6815           hardcode_libdir_separator=:
6816           hardcode_direct=yes
6817           export_dynamic_flag_spec='${wl}-E'
6818
6819           # hardcode_minus_L: Not really in the search PATH,
6820           # but as the default location of the library.
6821           hardcode_minus_L=yes
6822           ;;
6823         esac
6824       fi
6825       ;;
6826
6827     irix5* | irix6* | nonstopux*)
6828       if test "$GCC" = yes; then
6829         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'
6830       else
6831         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'
6832         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6833       fi
6834       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6835       hardcode_libdir_separator=:
6836       link_all_deplibs=yes
6837       ;;
6838
6839     netbsd*)
6840       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6841         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6842       else
6843         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6844       fi
6845       hardcode_libdir_flag_spec='-R$libdir'
6846       hardcode_direct=yes
6847       hardcode_shlibpath_var=no
6848       ;;
6849
6850     newsos6)
6851       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6852       hardcode_direct=yes
6853       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6854       hardcode_libdir_separator=:
6855       hardcode_shlibpath_var=no
6856       ;;
6857
6858     openbsd*)
6859       hardcode_direct=yes
6860       hardcode_shlibpath_var=no
6861       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6862         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6863         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6864         export_dynamic_flag_spec='${wl}-E'
6865       else
6866        case $host_os in
6867          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6868            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6869            hardcode_libdir_flag_spec='-R$libdir'
6870            ;;
6871          *)
6872            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6873            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6874            ;;
6875        esac
6876       fi
6877       ;;
6878
6879     os2*)
6880       hardcode_libdir_flag_spec='-L$libdir'
6881       hardcode_minus_L=yes
6882       allow_undefined_flag=unsupported
6883       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'
6884       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6885       ;;
6886
6887     osf3*)
6888       if test "$GCC" = yes; then
6889         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6890         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'
6891       else
6892         allow_undefined_flag=' -expect_unresolved \*'
6893         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'
6894       fi
6895       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6896       hardcode_libdir_separator=:
6897       ;;
6898
6899     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6900       if test "$GCC" = yes; then
6901         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6902         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'
6903         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6904       else
6905         allow_undefined_flag=' -expect_unresolved \*'
6906         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'
6907         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6908         $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'
6909
6910         # Both c and cxx compiler support -rpath directly
6911         hardcode_libdir_flag_spec='-rpath $libdir'
6912       fi
6913       hardcode_libdir_separator=:
6914       ;;
6915
6916     sco3.2v5*)
6917       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6918       hardcode_shlibpath_var=no
6919       export_dynamic_flag_spec='${wl}-Bexport'
6920       runpath_var=LD_RUN_PATH
6921       hardcode_runpath_var=yes
6922       ;;
6923
6924     solaris*)
6925       no_undefined_flag=' -z text'
6926       if test "$GCC" = yes; then
6927         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6928         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6929           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6930       else
6931         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6932         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6933         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6934       fi
6935       hardcode_libdir_flag_spec='-R$libdir'
6936       hardcode_shlibpath_var=no
6937       case $host_os in
6938       solaris2.[0-5] | solaris2.[0-5].*) ;;
6939       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6940         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6941       esac
6942       link_all_deplibs=yes
6943       ;;
6944
6945     sunos4*)
6946       if test "x$host_vendor" = xsequent; then
6947         # Use $CC to link under sequent, because it throws in some extra .o
6948         # files that make .init and .fini sections work.
6949         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6950       else
6951         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6952       fi
6953       hardcode_libdir_flag_spec='-L$libdir'
6954       hardcode_direct=yes
6955       hardcode_minus_L=yes
6956       hardcode_shlibpath_var=no
6957       ;;
6958
6959     sysv4)
6960       case $host_vendor in
6961         sni)
6962           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6963           hardcode_direct=yes # is this really true???
6964         ;;
6965         siemens)
6966           ## LD is ld it makes a PLAMLIB
6967           ## CC just makes a GrossModule.
6968           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6969           reload_cmds='$CC -r -o $output$reload_objs'
6970           hardcode_direct=no
6971         ;;
6972         motorola)
6973           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6974           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6975         ;;
6976       esac
6977       runpath_var='LD_RUN_PATH'
6978       hardcode_shlibpath_var=no
6979       ;;
6980
6981     sysv4.3*)
6982       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6983       hardcode_shlibpath_var=no
6984       export_dynamic_flag_spec='-Bexport'
6985       ;;
6986
6987     sysv4*MP*)
6988       if test -d /usr/nec; then
6989         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6990         hardcode_shlibpath_var=no
6991         runpath_var=LD_RUN_PATH
6992         hardcode_runpath_var=yes
6993         ld_shlibs=yes
6994       fi
6995       ;;
6996
6997     sysv4.2uw2*)
6998       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6999       hardcode_direct=yes
7000       hardcode_minus_L=no
7001       hardcode_shlibpath_var=no
7002       hardcode_runpath_var=yes
7003       runpath_var=LD_RUN_PATH
7004       ;;
7005
7006    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7007       no_undefined_flag='${wl}-z ${wl}text'
7008       if test "$GCC" = yes; then
7009         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7010       else
7011         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7012       fi
7013       runpath_var='LD_RUN_PATH'
7014       hardcode_shlibpath_var=no
7015       ;;
7016
7017     sysv5*)
7018       no_undefined_flag=' -z text'
7019       # $CC -shared without GNU ld will not create a library from C++
7020       # object files and a static libstdc++, better avoid it by now
7021       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7022       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7023                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7024       hardcode_libdir_flag_spec=
7025       hardcode_shlibpath_var=no
7026       runpath_var='LD_RUN_PATH'
7027       ;;
7028
7029     uts4*)
7030       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7031       hardcode_libdir_flag_spec='-L$libdir'
7032       hardcode_shlibpath_var=no
7033       ;;
7034
7035     *)
7036       ld_shlibs=no
7037       ;;
7038     esac
7039   fi
7040
7041 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7042 echo "${ECHO_T}$ld_shlibs" >&6
7043 test "$ld_shlibs" = no && can_build_shared=no
7044
7045 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7046 if test "$GCC" = yes; then
7047   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7048 fi
7049
7050 #
7051 # Do we need to explicitly link libc?
7052 #
7053 case "x$archive_cmds_need_lc" in
7054 x|xyes)
7055   # Assume -lc should be added
7056   archive_cmds_need_lc=yes
7057
7058   if test "$enable_shared" = yes && test "$GCC" = yes; then
7059     case $archive_cmds in
7060     *'~'*)
7061       # FIXME: we may have to deal with multi-command sequences.
7062       ;;
7063     '$CC '*)
7064       # Test whether the compiler implicitly links with -lc since on some
7065       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7066       # to ld, don't add -lc before -lgcc.
7067       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7068 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7069       $rm conftest*
7070       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7071
7072       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7073   (eval $ac_compile) 2>&5
7074   ac_status=$?
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); } 2>conftest.err; then
7077         soname=conftest
7078         lib=conftest
7079         libobjs=conftest.$ac_objext
7080         deplibs=
7081         wl=$lt_prog_compiler_wl
7082         compiler_flags=-v
7083         linker_flags=-v
7084         verstring=
7085         output_objdir=.
7086         libname=conftest
7087         lt_save_allow_undefined_flag=$allow_undefined_flag
7088         allow_undefined_flag=
7089         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7090   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7091   ac_status=$?
7092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093   (exit $ac_status); }
7094         then
7095           archive_cmds_need_lc=no
7096         else
7097           archive_cmds_need_lc=yes
7098         fi
7099         allow_undefined_flag=$lt_save_allow_undefined_flag
7100       else
7101         cat conftest.err 1>&5
7102       fi
7103       $rm conftest*
7104       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7105 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7106       ;;
7107     esac
7108   fi
7109   ;;
7110 esac
7111
7112 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7113 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7114 hardcode_action=
7115 if test -n "$hardcode_libdir_flag_spec" || \
7116    test -n "$runpath_var " || \
7117    test "X$hardcode_automatic"="Xyes" ; then
7118
7119   # We can hardcode non-existant directories.
7120   if test "$hardcode_direct" != no &&
7121      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7122      # have to relink, otherwise we might link with an installed library
7123      # when we should be linking with a yet-to-be-installed one
7124      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7125      test "$hardcode_minus_L" != no; then
7126     # Linking always hardcodes the temporary library directory.
7127     hardcode_action=relink
7128   else
7129     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7130     hardcode_action=immediate
7131   fi
7132 else
7133   # We cannot hardcode anything, or else we can only hardcode existing
7134   # directories.
7135   hardcode_action=unsupported
7136 fi
7137 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7138 echo "${ECHO_T}$hardcode_action" >&6
7139
7140 if test "$hardcode_action" = relink; then
7141   # Fast installation is not supported
7142   enable_fast_install=no
7143 elif test "$shlibpath_overrides_runpath" = yes ||
7144      test "$enable_shared" = no; then
7145   # Fast installation is not necessary
7146   enable_fast_install=needless
7147 fi
7148
7149 striplib=
7150 old_striplib=
7151 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7152 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7153 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7154   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7155   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7156   echo "$as_me:$LINENO: result: yes" >&5
7157 echo "${ECHO_T}yes" >&6
7158 else
7159 # FIXME - insert some real tests, host_os isn't really good enough
7160   case $host_os in
7161    darwin*)
7162        if test -n "$STRIP" ; then
7163          striplib="$STRIP -x"
7164          echo "$as_me:$LINENO: result: yes" >&5
7165 echo "${ECHO_T}yes" >&6
7166        else
7167   echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6
7169 fi
7170        ;;
7171    *)
7172   echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6
7174     ;;
7175   esac
7176 fi
7177
7178 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7179 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7180 library_names_spec=
7181 libname_spec='lib$name'
7182 soname_spec=
7183 shrext=".so"
7184 postinstall_cmds=
7185 postuninstall_cmds=
7186 finish_cmds=
7187 finish_eval=
7188 shlibpath_var=
7189 shlibpath_overrides_runpath=unknown
7190 version_type=none
7191 dynamic_linker="$host_os ld.so"
7192 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7193 if test "$GCC" = yes; then
7194   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7195   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7196     # if the path contains ";" then we assume it to be the separator
7197     # otherwise default to the standard path separator (i.e. ":") - it is
7198     # assumed that no part of a normal pathname contains ";" but that should
7199     # okay in the real world where ";" in dirpaths is itself problematic.
7200     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7201   else
7202     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7203   fi
7204 else
7205   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7206 fi
7207 need_lib_prefix=unknown
7208 hardcode_into_libs=no
7209
7210 # when you set need_version to no, make sure it does not cause -set_version
7211 # flags to be left without arguments
7212 need_version=unknown
7213
7214 case $host_os in
7215 aix3*)
7216   version_type=linux
7217   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7218   shlibpath_var=LIBPATH
7219
7220   # AIX 3 has no versioning support, so we append a major version to the name.
7221   soname_spec='${libname}${release}${shared_ext}$major'
7222   ;;
7223
7224 aix4* | aix5*)
7225   version_type=linux
7226   need_lib_prefix=no
7227   need_version=no
7228   hardcode_into_libs=yes
7229   if test "$host_cpu" = ia64; then
7230     # AIX 5 supports IA64
7231     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7232     shlibpath_var=LD_LIBRARY_PATH
7233   else
7234     # With GCC up to 2.95.x, collect2 would create an import file
7235     # for dependence libraries.  The import file would start with
7236     # the line `#! .'.  This would cause the generated library to
7237     # depend on `.', always an invalid library.  This was fixed in
7238     # development snapshots of GCC prior to 3.0.
7239     case $host_os in
7240       aix4 | aix4.[01] | aix4.[01].*)
7241       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7242            echo ' yes '
7243            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7244         :
7245       else
7246         can_build_shared=no
7247       fi
7248       ;;
7249     esac
7250     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7251     # soname into executable. Probably we can add versioning support to
7252     # collect2, so additional links can be useful in future.
7253     if test "$aix_use_runtimelinking" = yes; then
7254       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7255       # instead of lib<name>.a to let people know that these are not
7256       # typical AIX shared libraries.
7257       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7258     else
7259       # We preserve .a as extension for shared libraries through AIX4.2
7260       # and later when we are not doing run time linking.
7261       library_names_spec='${libname}${release}.a $libname.a'
7262       soname_spec='${libname}${release}${shared_ext}$major'
7263     fi
7264     shlibpath_var=LIBPATH
7265   fi
7266   ;;
7267
7268 amigaos*)
7269   library_names_spec='$libname.ixlibrary $libname.a'
7270   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7271   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'
7272   ;;
7273
7274 beos*)
7275   library_names_spec='${libname}${shared_ext}'
7276   dynamic_linker="$host_os ld.so"
7277   shlibpath_var=LIBRARY_PATH
7278   ;;
7279
7280 bsdi4*)
7281   version_type=linux
7282   need_version=no
7283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7284   soname_spec='${libname}${release}${shared_ext}$major'
7285   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7286   shlibpath_var=LD_LIBRARY_PATH
7287   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7288   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7289   # the default ld.so.conf also contains /usr/contrib/lib and
7290   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7291   # libtool to hard-code these into programs
7292   ;;
7293
7294 cygwin* | mingw* | pw32*)
7295   version_type=windows
7296   shrext=".dll"
7297   need_version=no
7298   need_lib_prefix=no
7299
7300   case $GCC,$host_os in
7301   yes,cygwin* | yes,mingw* | yes,pw32*)
7302     library_names_spec='$libname.dll.a'
7303     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7304     postinstall_cmds='base_file=`basename \${file}`~
7305       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7306       dldir=$destdir/`dirname \$dlpath`~
7307       test -d \$dldir || mkdir -p \$dldir~
7308       $install_prog $dir/$dlname \$dldir/$dlname'
7309     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7310       dlpath=$dir/\$dldll~
7311        $rm \$dlpath'
7312     shlibpath_overrides_runpath=yes
7313
7314     case $host_os in
7315     cygwin*)
7316       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7317       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7318       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7319       ;;
7320     mingw*)
7321       # MinGW DLLs use traditional 'lib' prefix
7322       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7323       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7324       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7325         # It is most probably a Windows format PATH printed by
7326         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7327         # path with ; separators, and with drive letters. We can handle the
7328         # drive letters (cygwin fileutils understands them), so leave them,
7329         # especially as we might pass files found there to a mingw objdump,
7330         # which wouldn't understand a cygwinified path. Ahh.
7331         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7332       else
7333         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7334       fi
7335       ;;
7336     pw32*)
7337       # pw32 DLLs use 'pw' prefix rather than 'lib'
7338       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7339       ;;
7340     esac
7341     ;;
7342
7343   *)
7344     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7345     ;;
7346   esac
7347   dynamic_linker='Win32 ld.exe'
7348   # FIXME: first we should search . and the directory the executable is in
7349   shlibpath_var=PATH
7350   ;;
7351
7352 darwin* | rhapsody*)
7353   dynamic_linker="$host_os dyld"
7354   version_type=darwin
7355   need_lib_prefix=no
7356   need_version=no
7357   # FIXME: Relying on posixy $() will cause problems for
7358   #        cross-compilation, but unfortunately the echo tests do not
7359   #        yet detect zsh echo's removal of \ escapes.
7360   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7361   soname_spec='${libname}${release}${major}$shared_ext'
7362   shlibpath_overrides_runpath=yes
7363   shlibpath_var=DYLD_LIBRARY_PATH
7364   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7365   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7366   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7367   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"`
7368   fi
7369   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7370   ;;
7371
7372 dgux*)
7373   version_type=linux
7374   need_lib_prefix=no
7375   need_version=no
7376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7377   soname_spec='${libname}${release}${shared_ext}$major'
7378   shlibpath_var=LD_LIBRARY_PATH
7379   ;;
7380
7381 freebsd1*)
7382   dynamic_linker=no
7383   ;;
7384
7385 freebsd*)
7386   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7387   version_type=freebsd-$objformat
7388   case $version_type in
7389     freebsd-elf*)
7390       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7391       need_version=no
7392       need_lib_prefix=no
7393       ;;
7394     freebsd-*)
7395       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7396       need_version=yes
7397       ;;
7398   esac
7399   shlibpath_var=LD_LIBRARY_PATH
7400   case $host_os in
7401   freebsd2*)
7402     shlibpath_overrides_runpath=yes
7403     ;;
7404   freebsd3.01* | freebsdelf3.01*)
7405     shlibpath_overrides_runpath=yes
7406     hardcode_into_libs=yes
7407     ;;
7408   *) # from 3.2 on
7409     shlibpath_overrides_runpath=no
7410     hardcode_into_libs=yes
7411     ;;
7412   esac
7413   ;;
7414
7415 gnu*)
7416   version_type=linux
7417   need_lib_prefix=no
7418   need_version=no
7419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7420   soname_spec='${libname}${release}${shared_ext}$major'
7421   shlibpath_var=LD_LIBRARY_PATH
7422   hardcode_into_libs=yes
7423   ;;
7424
7425 hpux9* | hpux10* | hpux11*)
7426   # Give a soname corresponding to the major version so that dld.sl refuses to
7427   # link against other versions.
7428   version_type=sunos
7429   need_lib_prefix=no
7430   need_version=no
7431   case "$host_cpu" in
7432   ia64*)
7433     shrext='.so'
7434     hardcode_into_libs=yes
7435     dynamic_linker="$host_os dld.so"
7436     shlibpath_var=LD_LIBRARY_PATH
7437     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7439     soname_spec='${libname}${release}${shared_ext}$major'
7440     if test "X$HPUX_IA64_MODE" = X32; then
7441       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7442     else
7443       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7444     fi
7445     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7446     ;;
7447    hppa*64*)
7448      shrext='.sl'
7449      hardcode_into_libs=yes
7450      dynamic_linker="$host_os dld.sl"
7451      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7452      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7453      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7454      soname_spec='${libname}${release}${shared_ext}$major'
7455      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7456      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7457      ;;
7458    *)
7459     shrext='.sl'
7460     dynamic_linker="$host_os dld.sl"
7461     shlibpath_var=SHLIB_PATH
7462     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7463     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7464     soname_spec='${libname}${release}${shared_ext}$major'
7465     ;;
7466   esac
7467   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7468   postinstall_cmds='chmod 555 $lib'
7469   ;;
7470
7471 irix5* | irix6* | nonstopux*)
7472   case $host_os in
7473     nonstopux*) version_type=nonstopux ;;
7474     *)
7475         if test "$lt_cv_prog_gnu_ld" = yes; then
7476                 version_type=linux
7477         else
7478                 version_type=irix
7479         fi ;;
7480   esac
7481   need_lib_prefix=no
7482   need_version=no
7483   soname_spec='${libname}${release}${shared_ext}$major'
7484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7485   case $host_os in
7486   irix5* | nonstopux*)
7487     libsuff= shlibsuff=
7488     ;;
7489   *)
7490     case $LD in # libtool.m4 will add one of these switches to LD
7491     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7492       libsuff= shlibsuff= libmagic=32-bit;;
7493     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7494       libsuff=32 shlibsuff=N32 libmagic=N32;;
7495     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7496       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7497     *) libsuff= shlibsuff= libmagic=never-match;;
7498     esac
7499     ;;
7500   esac
7501   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7502   shlibpath_overrides_runpath=no
7503   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7504   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7505   hardcode_into_libs=yes
7506   ;;
7507
7508 # No shared lib support for Linux oldld, aout, or coff.
7509 linux*oldld* | linux*aout* | linux*coff*)
7510   dynamic_linker=no
7511   ;;
7512
7513 # This must be Linux ELF.
7514 linux*)
7515   version_type=linux
7516   need_lib_prefix=no
7517   need_version=no
7518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7519   soname_spec='${libname}${release}${shared_ext}$major'
7520   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7521   shlibpath_var=LD_LIBRARY_PATH
7522   shlibpath_overrides_runpath=no
7523   # This implies no fast_install, which is unacceptable.
7524   # Some rework will be needed to allow for fast_install
7525   # before this can be enabled.
7526   hardcode_into_libs=yes
7527
7528   # We used to test for /lib/ld.so.1 and disable shared libraries on
7529   # powerpc, because MkLinux only supported shared libraries with the
7530   # GNU dynamic linker.  Since this was broken with cross compilers,
7531   # most powerpc-linux boxes support dynamic linking these days and
7532   # people can always --disable-shared, the test was removed, and we
7533   # assume the GNU/Linux dynamic linker is in use.
7534   dynamic_linker='GNU/Linux ld.so'
7535   ;;
7536
7537 netbsd*)
7538   version_type=sunos
7539   need_lib_prefix=no
7540   need_version=no
7541   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7542     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7543     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7544     dynamic_linker='NetBSD (a.out) ld.so'
7545   else
7546     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7547     soname_spec='${libname}${release}${shared_ext}$major'
7548     dynamic_linker='NetBSD ld.elf_so'
7549   fi
7550   shlibpath_var=LD_LIBRARY_PATH
7551   shlibpath_overrides_runpath=yes
7552   hardcode_into_libs=yes
7553   ;;
7554
7555 newsos6)
7556   version_type=linux
7557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7558   shlibpath_var=LD_LIBRARY_PATH
7559   shlibpath_overrides_runpath=yes
7560   ;;
7561
7562 nto-qnx)
7563   version_type=linux
7564   need_lib_prefix=no
7565   need_version=no
7566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7567   soname_spec='${libname}${release}${shared_ext}$major'
7568   shlibpath_var=LD_LIBRARY_PATH
7569   shlibpath_overrides_runpath=yes
7570   ;;
7571
7572 openbsd*)
7573   version_type=sunos
7574   need_lib_prefix=no
7575   need_version=no
7576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7577   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7578   shlibpath_var=LD_LIBRARY_PATH
7579   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7580     case $host_os in
7581       openbsd2.[89] | openbsd2.[89].*)
7582         shlibpath_overrides_runpath=no
7583         ;;
7584       *)
7585         shlibpath_overrides_runpath=yes
7586         ;;
7587       esac
7588   else
7589     shlibpath_overrides_runpath=yes
7590   fi
7591   ;;
7592
7593 os2*)
7594   libname_spec='$name'
7595   shrext=".dll"
7596   need_lib_prefix=no
7597   library_names_spec='$libname${shared_ext} $libname.a'
7598   dynamic_linker='OS/2 ld.exe'
7599   shlibpath_var=LIBPATH
7600   ;;
7601
7602 osf3* | osf4* | osf5*)
7603   version_type=osf
7604   need_lib_prefix=no
7605   need_version=no
7606   soname_spec='${libname}${release}${shared_ext}$major'
7607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7608   shlibpath_var=LD_LIBRARY_PATH
7609   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7610   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7611   ;;
7612
7613 sco3.2v5*)
7614   version_type=osf
7615   soname_spec='${libname}${release}${shared_ext}$major'
7616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7617   shlibpath_var=LD_LIBRARY_PATH
7618   ;;
7619
7620 solaris*)
7621   version_type=linux
7622   need_lib_prefix=no
7623   need_version=no
7624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7625   soname_spec='${libname}${release}${shared_ext}$major'
7626   shlibpath_var=LD_LIBRARY_PATH
7627   shlibpath_overrides_runpath=yes
7628   hardcode_into_libs=yes
7629   # ldd complains unless libraries are executable
7630   postinstall_cmds='chmod +x $lib'
7631   ;;
7632
7633 sunos4*)
7634   version_type=sunos
7635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7636   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7637   shlibpath_var=LD_LIBRARY_PATH
7638   shlibpath_overrides_runpath=yes
7639   if test "$with_gnu_ld" = yes; then
7640     need_lib_prefix=no
7641   fi
7642   need_version=yes
7643   ;;
7644
7645 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7646   version_type=linux
7647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7648   soname_spec='${libname}${release}${shared_ext}$major'
7649   shlibpath_var=LD_LIBRARY_PATH
7650   case $host_vendor in
7651     sni)
7652       shlibpath_overrides_runpath=no
7653       need_lib_prefix=no
7654       export_dynamic_flag_spec='${wl}-Blargedynsym'
7655       runpath_var=LD_RUN_PATH
7656       ;;
7657     siemens)
7658       need_lib_prefix=no
7659       ;;
7660     motorola)
7661       need_lib_prefix=no
7662       need_version=no
7663       shlibpath_overrides_runpath=no
7664       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7665       ;;
7666   esac
7667   ;;
7668
7669 sysv4*MP*)
7670   if test -d /usr/nec ;then
7671     version_type=linux
7672     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7673     soname_spec='$libname${shared_ext}.$major'
7674     shlibpath_var=LD_LIBRARY_PATH
7675   fi
7676   ;;
7677
7678 uts4*)
7679   version_type=linux
7680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7681   soname_spec='${libname}${release}${shared_ext}$major'
7682   shlibpath_var=LD_LIBRARY_PATH
7683   ;;
7684
7685 *)
7686   dynamic_linker=no
7687   ;;
7688 esac
7689 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7690 echo "${ECHO_T}$dynamic_linker" >&6
7691 test "$dynamic_linker" = no && can_build_shared=no
7692
7693 if test "x$enable_dlopen" != xyes; then
7694   enable_dlopen=unknown
7695   enable_dlopen_self=unknown
7696   enable_dlopen_self_static=unknown
7697 else
7698   lt_cv_dlopen=no
7699   lt_cv_dlopen_libs=
7700
7701   case $host_os in
7702   beos*)
7703     lt_cv_dlopen="load_add_on"
7704     lt_cv_dlopen_libs=
7705     lt_cv_dlopen_self=yes
7706     ;;
7707
7708   mingw* | pw32*)
7709     lt_cv_dlopen="LoadLibrary"
7710     lt_cv_dlopen_libs=
7711    ;;
7712
7713   cygwin*)
7714     lt_cv_dlopen="dlopen"
7715     lt_cv_dlopen_libs=
7716    ;;
7717
7718   darwin*)
7719   # if libdl is installed we need to link against it
7720     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7721 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7722 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7723   echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725   ac_check_lib_save_LIBS=$LIBS
7726 LIBS="-ldl  $LIBS"
7727 cat >conftest.$ac_ext <<_ACEOF
7728 #line $LINENO "configure"
7729 /* confdefs.h.  */
7730 _ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h.  */
7734
7735 /* Override any gcc2 internal prototype to avoid an error.  */
7736 #ifdef __cplusplus
7737 extern "C"
7738 #endif
7739 /* We use char because int might match the return type of a gcc2
7740    builtin and then its argument prototype would still apply.  */
7741 char dlopen ();
7742 int
7743 main ()
7744 {
7745 dlopen ();
7746   ;
7747   return 0;
7748 }
7749 _ACEOF
7750 rm -f conftest.$ac_objext conftest$ac_exeext
7751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7752   (eval $ac_link) 2>&5
7753   ac_status=$?
7754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755   (exit $ac_status); } &&
7756          { ac_try='test -s conftest$ac_exeext'
7757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758   (eval $ac_try) 2>&5
7759   ac_status=$?
7760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761   (exit $ac_status); }; }; then
7762   ac_cv_lib_dl_dlopen=yes
7763 else
7764   echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.$ac_ext >&5
7766
7767 ac_cv_lib_dl_dlopen=no
7768 fi
7769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7770 LIBS=$ac_check_lib_save_LIBS
7771 fi
7772 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7773 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7774 if test $ac_cv_lib_dl_dlopen = yes; then
7775   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7776 else
7777
7778     lt_cv_dlopen="dyld"
7779     lt_cv_dlopen_libs=
7780     lt_cv_dlopen_self=yes
7781
7782 fi
7783
7784    ;;
7785
7786   *)
7787     echo "$as_me:$LINENO: checking for shl_load" >&5
7788 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7789 if test "${ac_cv_func_shl_load+set}" = set; then
7790   echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792   cat >conftest.$ac_ext <<_ACEOF
7793 #line $LINENO "configure"
7794 /* confdefs.h.  */
7795 _ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h.  */
7799 /* System header to define __stub macros and hopefully few prototypes,
7800     which can conflict with char shl_load (); below.
7801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7802     <limits.h> exists even on freestanding compilers.  */
7803 #ifdef __STDC__
7804 # include <limits.h>
7805 #else
7806 # include <assert.h>
7807 #endif
7808 /* Override any gcc2 internal prototype to avoid an error.  */
7809 #ifdef __cplusplus
7810 extern "C"
7811 {
7812 #endif
7813 /* We use char because int might match the return type of a gcc2
7814    builtin and then its argument prototype would still apply.  */
7815 char shl_load ();
7816 /* The GNU C library defines this for functions which it implements
7817     to always fail with ENOSYS.  Some functions are actually named
7818     something starting with __ and the normal name is an alias.  */
7819 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7820 choke me
7821 #else
7822 char (*f) () = shl_load;
7823 #endif
7824 #ifdef __cplusplus
7825 }
7826 #endif
7827
7828 int
7829 main ()
7830 {
7831 return f != shl_load;
7832   ;
7833   return 0;
7834 }
7835 _ACEOF
7836 rm -f conftest.$ac_objext conftest$ac_exeext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838   (eval $ac_link) 2>&5
7839   ac_status=$?
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); } &&
7842          { ac_try='test -s conftest$ac_exeext'
7843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844   (eval $ac_try) 2>&5
7845   ac_status=$?
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); }; }; then
7848   ac_cv_func_shl_load=yes
7849 else
7850   echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7852
7853 ac_cv_func_shl_load=no
7854 fi
7855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7856 fi
7857 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7858 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7859 if test $ac_cv_func_shl_load = yes; then
7860   lt_cv_dlopen="shl_load"
7861 else
7862   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7863 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7864 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7865   echo $ECHO_N "(cached) $ECHO_C" >&6
7866 else
7867   ac_check_lib_save_LIBS=$LIBS
7868 LIBS="-ldld  $LIBS"
7869 cat >conftest.$ac_ext <<_ACEOF
7870 #line $LINENO "configure"
7871 /* confdefs.h.  */
7872 _ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h.  */
7876
7877 /* Override any gcc2 internal prototype to avoid an error.  */
7878 #ifdef __cplusplus
7879 extern "C"
7880 #endif
7881 /* We use char because int might match the return type of a gcc2
7882    builtin and then its argument prototype would still apply.  */
7883 char shl_load ();
7884 int
7885 main ()
7886 {
7887 shl_load ();
7888   ;
7889   return 0;
7890 }
7891 _ACEOF
7892 rm -f conftest.$ac_objext conftest$ac_exeext
7893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894   (eval $ac_link) 2>&5
7895   ac_status=$?
7896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897   (exit $ac_status); } &&
7898          { ac_try='test -s conftest$ac_exeext'
7899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900   (eval $ac_try) 2>&5
7901   ac_status=$?
7902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903   (exit $ac_status); }; }; then
7904   ac_cv_lib_dld_shl_load=yes
7905 else
7906   echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7908
7909 ac_cv_lib_dld_shl_load=no
7910 fi
7911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7912 LIBS=$ac_check_lib_save_LIBS
7913 fi
7914 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7915 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7916 if test $ac_cv_lib_dld_shl_load = yes; then
7917   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7918 else
7919   echo "$as_me:$LINENO: checking for dlopen" >&5
7920 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7921 if test "${ac_cv_func_dlopen+set}" = set; then
7922   echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924   cat >conftest.$ac_ext <<_ACEOF
7925 #line $LINENO "configure"
7926 /* confdefs.h.  */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h.  */
7931 /* System header to define __stub macros and hopefully few prototypes,
7932     which can conflict with char dlopen (); below.
7933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7934     <limits.h> exists even on freestanding compilers.  */
7935 #ifdef __STDC__
7936 # include <limits.h>
7937 #else
7938 # include <assert.h>
7939 #endif
7940 /* Override any gcc2 internal prototype to avoid an error.  */
7941 #ifdef __cplusplus
7942 extern "C"
7943 {
7944 #endif
7945 /* We use char because int might match the return type of a gcc2
7946    builtin and then its argument prototype would still apply.  */
7947 char dlopen ();
7948 /* The GNU C library defines this for functions which it implements
7949     to always fail with ENOSYS.  Some functions are actually named
7950     something starting with __ and the normal name is an alias.  */
7951 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7952 choke me
7953 #else
7954 char (*f) () = dlopen;
7955 #endif
7956 #ifdef __cplusplus
7957 }
7958 #endif
7959
7960 int
7961 main ()
7962 {
7963 return f != dlopen;
7964   ;
7965   return 0;
7966 }
7967 _ACEOF
7968 rm -f conftest.$ac_objext conftest$ac_exeext
7969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7970   (eval $ac_link) 2>&5
7971   ac_status=$?
7972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973   (exit $ac_status); } &&
7974          { ac_try='test -s conftest$ac_exeext'
7975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976   (eval $ac_try) 2>&5
7977   ac_status=$?
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); }; }; then
7980   ac_cv_func_dlopen=yes
7981 else
7982   echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7984
7985 ac_cv_func_dlopen=no
7986 fi
7987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7988 fi
7989 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7990 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7991 if test $ac_cv_func_dlopen = yes; then
7992   lt_cv_dlopen="dlopen"
7993 else
7994   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7995 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7996 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7997   echo $ECHO_N "(cached) $ECHO_C" >&6
7998 else
7999   ac_check_lib_save_LIBS=$LIBS
8000 LIBS="-ldl  $LIBS"
8001 cat >conftest.$ac_ext <<_ACEOF
8002 #line $LINENO "configure"
8003 /* confdefs.h.  */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h.  */
8008
8009 /* Override any gcc2 internal prototype to avoid an error.  */
8010 #ifdef __cplusplus
8011 extern "C"
8012 #endif
8013 /* We use char because int might match the return type of a gcc2
8014    builtin and then its argument prototype would still apply.  */
8015 char dlopen ();
8016 int
8017 main ()
8018 {
8019 dlopen ();
8020   ;
8021   return 0;
8022 }
8023 _ACEOF
8024 rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026   (eval $ac_link) 2>&5
8027   ac_status=$?
8028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029   (exit $ac_status); } &&
8030          { ac_try='test -s conftest$ac_exeext'
8031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032   (eval $ac_try) 2>&5
8033   ac_status=$?
8034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035   (exit $ac_status); }; }; then
8036   ac_cv_lib_dl_dlopen=yes
8037 else
8038   echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.$ac_ext >&5
8040
8041 ac_cv_lib_dl_dlopen=no
8042 fi
8043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8044 LIBS=$ac_check_lib_save_LIBS
8045 fi
8046 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8047 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8048 if test $ac_cv_lib_dl_dlopen = yes; then
8049   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8050 else
8051   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8052 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8053 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8054   echo $ECHO_N "(cached) $ECHO_C" >&6
8055 else
8056   ac_check_lib_save_LIBS=$LIBS
8057 LIBS="-lsvld  $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_svld_dlopen=yes
8094 else
8095   echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8097
8098 ac_cv_lib_svld_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_svld_dlopen" >&5
8104 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8105 if test $ac_cv_lib_svld_dlopen = yes; then
8106   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8107 else
8108   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8109 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8110 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8111   echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113   ac_check_lib_save_LIBS=$LIBS
8114 LIBS="-ldld  $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 dld_link ();
8130 int
8131 main ()
8132 {
8133 dld_link ();
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_dld_dld_link=yes
8151 else
8152   echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8154
8155 ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
8161 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8162 if test $ac_cv_lib_dld_dld_link = yes; then
8163   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8164 fi
8165
8166
8167 fi
8168
8169
8170 fi
8171
8172
8173 fi
8174
8175
8176 fi
8177
8178
8179 fi
8180
8181     ;;
8182   esac
8183
8184   if test "x$lt_cv_dlopen" != xno; then
8185     enable_dlopen=yes
8186   else
8187     enable_dlopen=no
8188   fi
8189
8190   case $lt_cv_dlopen in
8191   dlopen)
8192     save_CPPFLAGS="$CPPFLAGS"
8193     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8194
8195     save_LDFLAGS="$LDFLAGS"
8196     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8197
8198     save_LIBS="$LIBS"
8199     LIBS="$lt_cv_dlopen_libs $LIBS"
8200
8201     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8202 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8203 if test "${lt_cv_dlopen_self+set}" = set; then
8204   echo $ECHO_N "(cached) $ECHO_C" >&6
8205 else
8206           if test "$cross_compiling" = yes; then :
8207   lt_cv_dlopen_self=cross
8208 else
8209   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8210   lt_status=$lt_dlunknown
8211   cat > conftest.$ac_ext <<EOF
8212 #line 8212 "configure"
8213 #include "confdefs.h"
8214
8215 #if HAVE_DLFCN_H
8216 #include <dlfcn.h>
8217 #endif
8218
8219 #include <stdio.h>
8220
8221 #ifdef RTLD_GLOBAL
8222 #  define LT_DLGLOBAL           RTLD_GLOBAL
8223 #else
8224 #  ifdef DL_GLOBAL
8225 #    define LT_DLGLOBAL         DL_GLOBAL
8226 #  else
8227 #    define LT_DLGLOBAL         0
8228 #  endif
8229 #endif
8230
8231 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8232    find out it does not work in some platform. */
8233 #ifndef LT_DLLAZY_OR_NOW
8234 #  ifdef RTLD_LAZY
8235 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8236 #  else
8237 #    ifdef DL_LAZY
8238 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8239 #    else
8240 #      ifdef RTLD_NOW
8241 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8242 #      else
8243 #        ifdef DL_NOW
8244 #          define LT_DLLAZY_OR_NOW      DL_NOW
8245 #        else
8246 #          define LT_DLLAZY_OR_NOW      0
8247 #        endif
8248 #      endif
8249 #    endif
8250 #  endif
8251 #endif
8252
8253 #ifdef __cplusplus
8254 extern "C" void exit (int);
8255 #endif
8256
8257 void fnord() { int i=42;}
8258 int main ()
8259 {
8260   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8261   int status = $lt_dlunknown;
8262
8263   if (self)
8264     {
8265       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8266       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8267       /* dlclose (self); */
8268     }
8269
8270     exit (status);
8271 }
8272 EOF
8273   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8274   (eval $ac_link) 2>&5
8275   ac_status=$?
8276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8278     (./conftest; exit; ) 2>/dev/null
8279     lt_status=$?
8280     case x$lt_status in
8281       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8282       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8283       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8284     esac
8285   else :
8286     # compilation failed
8287     lt_cv_dlopen_self=no
8288   fi
8289 fi
8290 rm -fr conftest*
8291
8292
8293 fi
8294 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8295 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8296
8297     if test "x$lt_cv_dlopen_self" = xyes; then
8298       LDFLAGS="$LDFLAGS $link_static_flag"
8299       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8300 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8301 if test "${lt_cv_dlopen_self_static+set}" = set; then
8302   echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304           if test "$cross_compiling" = yes; then :
8305   lt_cv_dlopen_self_static=cross
8306 else
8307   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8308   lt_status=$lt_dlunknown
8309   cat > conftest.$ac_ext <<EOF
8310 #line 8310 "configure"
8311 #include "confdefs.h"
8312
8313 #if HAVE_DLFCN_H
8314 #include <dlfcn.h>
8315 #endif
8316
8317 #include <stdio.h>
8318
8319 #ifdef RTLD_GLOBAL
8320 #  define LT_DLGLOBAL           RTLD_GLOBAL
8321 #else
8322 #  ifdef DL_GLOBAL
8323 #    define LT_DLGLOBAL         DL_GLOBAL
8324 #  else
8325 #    define LT_DLGLOBAL         0
8326 #  endif
8327 #endif
8328
8329 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8330    find out it does not work in some platform. */
8331 #ifndef LT_DLLAZY_OR_NOW
8332 #  ifdef RTLD_LAZY
8333 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8334 #  else
8335 #    ifdef DL_LAZY
8336 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8337 #    else
8338 #      ifdef RTLD_NOW
8339 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8340 #      else
8341 #        ifdef DL_NOW
8342 #          define LT_DLLAZY_OR_NOW      DL_NOW
8343 #        else
8344 #          define LT_DLLAZY_OR_NOW      0
8345 #        endif
8346 #      endif
8347 #    endif
8348 #  endif
8349 #endif
8350
8351 #ifdef __cplusplus
8352 extern "C" void exit (int);
8353 #endif
8354
8355 void fnord() { int i=42;}
8356 int main ()
8357 {
8358   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8359   int status = $lt_dlunknown;
8360
8361   if (self)
8362     {
8363       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8364       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8365       /* dlclose (self); */
8366     }
8367
8368     exit (status);
8369 }
8370 EOF
8371   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372   (eval $ac_link) 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8376     (./conftest; exit; ) 2>/dev/null
8377     lt_status=$?
8378     case x$lt_status in
8379       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8380       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8381       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8382     esac
8383   else :
8384     # compilation failed
8385     lt_cv_dlopen_self_static=no
8386   fi
8387 fi
8388 rm -fr conftest*
8389
8390
8391 fi
8392 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8393 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8394     fi
8395
8396     CPPFLAGS="$save_CPPFLAGS"
8397     LDFLAGS="$save_LDFLAGS"
8398     LIBS="$save_LIBS"
8399     ;;
8400   esac
8401
8402   case $lt_cv_dlopen_self in
8403   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8404   *) enable_dlopen_self=unknown ;;
8405   esac
8406
8407   case $lt_cv_dlopen_self_static in
8408   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8409   *) enable_dlopen_self_static=unknown ;;
8410   esac
8411 fi
8412
8413
8414 # Report which librarie types wil actually be built
8415 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8416 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8417 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8418 echo "${ECHO_T}$can_build_shared" >&6
8419
8420 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8421 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8422 test "$can_build_shared" = "no" && enable_shared=no
8423
8424 # On AIX, shared libraries and static libraries use the same namespace, and
8425 # are all built from PIC.
8426 case "$host_os" in
8427 aix3*)
8428   test "$enable_shared" = yes && enable_static=no
8429   if test -n "$RANLIB"; then
8430     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8431     postinstall_cmds='$RANLIB $lib'
8432   fi
8433   ;;
8434
8435 aix4*)
8436   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8437     test "$enable_shared" = yes && enable_static=no
8438   fi
8439   ;;
8440   darwin* | rhapsody*)
8441   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8442     archive_cmds_need_lc=no
8443     case "$host_os" in
8444     rhapsody* | darwin1.[012])
8445       allow_undefined_flag='-undefined suppress'
8446       ;;
8447     *) # Darwin 1.3 on
8448       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8449       ;;
8450     esac
8451     # FIXME: Relying on posixy $() will cause problems for
8452     #        cross-compilation, but unfortunately the echo tests do not
8453     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8454     #          `"' quotes if we put them in here... so don't!
8455                 output_verbose_link_cmd='echo'
8456     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8457     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8458     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8459                   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}'
8460                   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}'
8461     hardcode_direct=no
8462     hardcode_automatic=yes
8463     hardcode_shlibpath_var=unsupported
8464     whole_archive_flag_spec='-all_load $convenience'
8465     link_all_deplibs=yes
8466     fi
8467     ;;
8468 esac
8469 echo "$as_me:$LINENO: result: $enable_shared" >&5
8470 echo "${ECHO_T}$enable_shared" >&6
8471
8472 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8473 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8474 # Make sure either enable_shared or enable_static is yes.
8475 test "$enable_shared" = yes || enable_static=yes
8476 echo "$as_me:$LINENO: result: $enable_static" >&5
8477 echo "${ECHO_T}$enable_static" >&6
8478
8479 # The else clause should only fire when bootstrapping the
8480 # libtool distribution, otherwise you forgot to ship ltmain.sh
8481 # with your package, and you will get complaints that there are
8482 # no rules to generate ltmain.sh.
8483 if test -f "$ltmain"; then
8484   # See if we are running on zsh, and set the options which allow our commands through
8485   # without removal of \ escapes.
8486   if test -n "${ZSH_VERSION+set}" ; then
8487     setopt NO_GLOB_SUBST
8488   fi
8489   # Now quote all the things that may contain metacharacters while being
8490   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8491   # variables and quote the copies for generation of the libtool script.
8492   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8493     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8494     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8495     deplibs_check_method reload_flag reload_cmds need_locks \
8496     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8497     lt_cv_sys_global_symbol_to_c_name_address \
8498     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8499     old_postinstall_cmds old_postuninstall_cmds \
8500     compiler \
8501     CC \
8502     LD \
8503     lt_prog_compiler_wl \
8504     lt_prog_compiler_pic \
8505     lt_prog_compiler_static \
8506     lt_prog_compiler_no_builtin_flag \
8507     export_dynamic_flag_spec \
8508     thread_safe_flag_spec \
8509     whole_archive_flag_spec \
8510     enable_shared_with_static_runtimes \
8511     old_archive_cmds \
8512     old_archive_from_new_cmds \
8513     predep_objects \
8514     postdep_objects \
8515     predeps \
8516     postdeps \
8517     compiler_lib_search_path \
8518     archive_cmds \
8519     archive_expsym_cmds \
8520     postinstall_cmds \
8521     postuninstall_cmds \
8522     old_archive_from_expsyms_cmds \
8523     allow_undefined_flag \
8524     no_undefined_flag \
8525     export_symbols_cmds \
8526     hardcode_libdir_flag_spec \
8527     hardcode_libdir_flag_spec_ld \
8528     hardcode_libdir_separator \
8529     hardcode_automatic \
8530     module_cmds \
8531     module_expsym_cmds \
8532     lt_cv_prog_compiler_c_o \
8533     exclude_expsyms \
8534     include_expsyms; do
8535
8536     case $var in
8537     old_archive_cmds | \
8538     old_archive_from_new_cmds | \
8539     archive_cmds | \
8540     archive_expsym_cmds | \
8541     module_cmds | \
8542     module_expsym_cmds | \
8543     old_archive_from_expsyms_cmds | \
8544     export_symbols_cmds | \
8545     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8546     postinstall_cmds | postuninstall_cmds | \
8547     old_postinstall_cmds | old_postuninstall_cmds | \
8548     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8549       # Double-quote double-evaled strings.
8550       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8551       ;;
8552     *)
8553       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8554       ;;
8555     esac
8556   done
8557
8558   case $lt_echo in
8559   *'\$0 --fallback-echo"')
8560     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8561     ;;
8562   esac
8563
8564 cfgfile="${ofile}T"
8565   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8566   $rm -f "$cfgfile"
8567   { echo "$as_me:$LINENO: creating $ofile" >&5
8568 echo "$as_me: creating $ofile" >&6;}
8569
8570   cat <<__EOF__ >> "$cfgfile"
8571 #! $SHELL
8572
8573 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8574 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8575 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8576 #
8577 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8578 # Free Software Foundation, Inc.
8579 #
8580 # This file is part of GNU Libtool:
8581 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8582 #
8583 # This program is free software; you can redistribute it and/or modify
8584 # it under the terms of the GNU General Public License as published by
8585 # the Free Software Foundation; either version 2 of the License, or
8586 # (at your option) any later version.
8587 #
8588 # This program is distributed in the hope that it will be useful, but
8589 # WITHOUT ANY WARRANTY; without even the implied warranty of
8590 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8591 # General Public License for more details.
8592 #
8593 # You should have received a copy of the GNU General Public License
8594 # along with this program; if not, write to the Free Software
8595 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8596 #
8597 # As a special exception to the GNU General Public License, if you
8598 # distribute this file as part of a program that contains a
8599 # configuration script generated by Autoconf, you may include it under
8600 # the same distribution terms that you use for the rest of that program.
8601
8602 # A sed program that does not truncate output.
8603 SED=$lt_SED
8604
8605 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8606 Xsed="$SED -e s/^X//"
8607
8608 # The HP-UX ksh and POSIX shell print the target directory to stdout
8609 # if CDPATH is set.
8610 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8611
8612 # The names of the tagged configurations supported by this script.
8613 available_tags=
8614
8615 # ### BEGIN LIBTOOL CONFIG
8616
8617 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8618
8619 # Shell to use when invoking shell scripts.
8620 SHELL=$lt_SHELL
8621
8622 # Whether or not to build shared libraries.
8623 build_libtool_libs=$enable_shared
8624
8625 # Whether or not to build static libraries.
8626 build_old_libs=$enable_static
8627
8628 # Whether or not to add -lc for building shared libraries.
8629 build_libtool_need_lc=$archive_cmds_need_lc
8630
8631 # Whether or not to disallow shared libs when runtime libs are static
8632 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8633
8634 # Whether or not to optimize for fast installation.
8635 fast_install=$enable_fast_install
8636
8637 # The host system.
8638 host_alias=$host_alias
8639 host=$host
8640
8641 # An echo program that does not interpret backslashes.
8642 echo=$lt_echo
8643
8644 # The archiver.
8645 AR=$lt_AR
8646 AR_FLAGS=$lt_AR_FLAGS
8647
8648 # A C compiler.
8649 LTCC=$lt_LTCC
8650
8651 # A language-specific compiler.
8652 CC=$lt_compiler
8653
8654 # Is the compiler the GNU C compiler?
8655 with_gcc=$GCC
8656
8657 # An ERE matcher.
8658 EGREP=$lt_EGREP
8659
8660 # The linker used to build libraries.
8661 LD=$lt_LD
8662
8663 # Whether we need hard or soft links.
8664 LN_S=$lt_LN_S
8665
8666 # A BSD-compatible nm program.
8667 NM=$lt_NM
8668
8669 # A symbol stripping program
8670 STRIP=$STRIP
8671
8672 # Used to examine libraries when file_magic_cmd begins "file"
8673 MAGIC_CMD=$MAGIC_CMD
8674
8675 # Used on cygwin: DLL creation program.
8676 DLLTOOL="$DLLTOOL"
8677
8678 # Used on cygwin: object dumper.
8679 OBJDUMP="$OBJDUMP"
8680
8681 # Used on cygwin: assembler.
8682 AS="$AS"
8683
8684 # The name of the directory that contains temporary libtool files.
8685 objdir=$objdir
8686
8687 # How to create reloadable object files.
8688 reload_flag=$lt_reload_flag
8689 reload_cmds=$lt_reload_cmds
8690
8691 # How to pass a linker flag through the compiler.
8692 wl=$lt_lt_prog_compiler_wl
8693
8694 # Object file suffix (normally "o").
8695 objext="$ac_objext"
8696
8697 # Old archive suffix (normally "a").
8698 libext="$libext"
8699
8700 # Shared library suffix (normally ".so").
8701 shrext='$shrext'
8702
8703 # Executable file suffix (normally "").
8704 exeext="$exeext"
8705
8706 # Additional compiler flags for building library objects.
8707 pic_flag=$lt_lt_prog_compiler_pic
8708 pic_mode=$pic_mode
8709
8710 # What is the maximum length of a command?
8711 max_cmd_len=$lt_cv_sys_max_cmd_len
8712
8713 # Does compiler simultaneously support -c and -o options?
8714 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8715
8716 # Must we lock files when doing compilation ?
8717 need_locks=$lt_need_locks
8718
8719 # Do we need the lib prefix for modules?
8720 need_lib_prefix=$need_lib_prefix
8721
8722 # Do we need a version for libraries?
8723 need_version=$need_version
8724
8725 # Whether dlopen is supported.
8726 dlopen_support=$enable_dlopen
8727
8728 # Whether dlopen of programs is supported.
8729 dlopen_self=$enable_dlopen_self
8730
8731 # Whether dlopen of statically linked programs is supported.
8732 dlopen_self_static=$enable_dlopen_self_static
8733
8734 # Compiler flag to prevent dynamic linking.
8735 link_static_flag=$lt_lt_prog_compiler_static
8736
8737 # Compiler flag to turn off builtin functions.
8738 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8739
8740 # Compiler flag to allow reflexive dlopens.
8741 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8742
8743 # Compiler flag to generate shared objects directly from archives.
8744 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8745
8746 # Compiler flag to generate thread-safe objects.
8747 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8748
8749 # Library versioning type.
8750 version_type=$version_type
8751
8752 # Format of library name prefix.
8753 libname_spec=$lt_libname_spec
8754
8755 # List of archive names.  First name is the real one, the rest are links.
8756 # The last name is the one that the linker finds with -lNAME.
8757 library_names_spec=$lt_library_names_spec
8758
8759 # The coded name of the library, if different from the real name.
8760 soname_spec=$lt_soname_spec
8761
8762 # Commands used to build and install an old-style archive.
8763 RANLIB=$lt_RANLIB
8764 old_archive_cmds=$lt_old_archive_cmds
8765 old_postinstall_cmds=$lt_old_postinstall_cmds
8766 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8767
8768 # Create an old-style archive from a shared archive.
8769 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8770
8771 # Create a temporary old-style archive to link instead of a shared archive.
8772 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8773
8774 # Commands used to build and install a shared archive.
8775 archive_cmds=$lt_archive_cmds
8776 archive_expsym_cmds=$lt_archive_expsym_cmds
8777 postinstall_cmds=$lt_postinstall_cmds
8778 postuninstall_cmds=$lt_postuninstall_cmds
8779
8780 # Commands used to build a loadable module (assumed same as above if empty)
8781 module_cmds=$lt_module_cmds
8782 module_expsym_cmds=$lt_module_expsym_cmds
8783
8784 # Commands to strip libraries.
8785 old_striplib=$lt_old_striplib
8786 striplib=$lt_striplib
8787
8788 # Dependencies to place before the objects being linked to create a
8789 # shared library.
8790 predep_objects=$lt_predep_objects
8791
8792 # Dependencies to place after the objects being linked to create a
8793 # shared library.
8794 postdep_objects=$lt_postdep_objects
8795
8796 # Dependencies to place before the objects being linked to create a
8797 # shared library.
8798 predeps=$lt_predeps
8799
8800 # Dependencies to place after the objects being linked to create a
8801 # shared library.
8802 postdeps=$lt_postdeps
8803
8804 # The library search path used internally by the compiler when linking
8805 # a shared library.
8806 compiler_lib_search_path=$lt_compiler_lib_search_path
8807
8808 # Method to check whether dependent libraries are shared objects.
8809 deplibs_check_method=$lt_deplibs_check_method
8810
8811 # Command to use when deplibs_check_method == file_magic.
8812 file_magic_cmd=$lt_file_magic_cmd
8813
8814 # Flag that allows shared libraries with undefined symbols to be built.
8815 allow_undefined_flag=$lt_allow_undefined_flag
8816
8817 # Flag that forces no undefined symbols.
8818 no_undefined_flag=$lt_no_undefined_flag
8819
8820 # Commands used to finish a libtool library installation in a directory.
8821 finish_cmds=$lt_finish_cmds
8822
8823 # Same as above, but a single script fragment to be evaled but not shown.
8824 finish_eval=$lt_finish_eval
8825
8826 # Take the output of nm and produce a listing of raw symbols and C names.
8827 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8828
8829 # Transform the output of nm in a proper C declaration
8830 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8831
8832 # Transform the output of nm in a C name address pair
8833 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8834
8835 # This is the shared library runtime path variable.
8836 runpath_var=$runpath_var
8837
8838 # This is the shared library path variable.
8839 shlibpath_var=$shlibpath_var
8840
8841 # Is shlibpath searched before the hard-coded library search path?
8842 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8843
8844 # How to hardcode a shared library path into an executable.
8845 hardcode_action=$hardcode_action
8846
8847 # Whether we should hardcode library paths into libraries.
8848 hardcode_into_libs=$hardcode_into_libs
8849
8850 # Flag to hardcode \$libdir into a binary during linking.
8851 # This must work even if \$libdir does not exist.
8852 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8853
8854 # If ld is used when linking, flag to hardcode \$libdir into
8855 # a binary during linking. This must work even if \$libdir does
8856 # not exist.
8857 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8858
8859 # Whether we need a single -rpath flag with a separated argument.
8860 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8861
8862 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8863 # resulting binary.
8864 hardcode_direct=$hardcode_direct
8865
8866 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8867 # resulting binary.
8868 hardcode_minus_L=$hardcode_minus_L
8869
8870 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8871 # the resulting binary.
8872 hardcode_shlibpath_var=$hardcode_shlibpath_var
8873
8874 # Set to yes if building a shared library automatically hardcodes DIR into the library
8875 # and all subsequent libraries and executables linked against it.
8876 hardcode_automatic=$hardcode_automatic
8877
8878 # Variables whose values should be saved in libtool wrapper scripts and
8879 # restored at relink time.
8880 variables_saved_for_relink="$variables_saved_for_relink"
8881
8882 # Whether libtool must link a program against all its dependency libraries.
8883 link_all_deplibs=$link_all_deplibs
8884
8885 # Compile-time system search path for libraries
8886 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8887
8888 # Run-time system search path for libraries
8889 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8890
8891 # Fix the shell variable \$srcfile for the compiler.
8892 fix_srcfile_path="$fix_srcfile_path"
8893
8894 # Set to yes if exported symbols are required.
8895 always_export_symbols=$always_export_symbols
8896
8897 # The commands to list exported symbols.
8898 export_symbols_cmds=$lt_export_symbols_cmds
8899
8900 # The commands to extract the exported symbol list from a shared archive.
8901 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8902
8903 # Symbols that should not be listed in the preloaded symbols.
8904 exclude_expsyms=$lt_exclude_expsyms
8905
8906 # Symbols that must always be exported.
8907 include_expsyms=$lt_include_expsyms
8908
8909 # ### END LIBTOOL CONFIG
8910
8911 __EOF__
8912
8913
8914   case $host_os in
8915   aix3*)
8916     cat <<\EOF >> "$cfgfile"
8917
8918 # AIX sometimes has problems with the GCC collect2 program.  For some
8919 # reason, if we set the COLLECT_NAMES environment variable, the problems
8920 # vanish in a puff of smoke.
8921 if test "X${COLLECT_NAMES+set}" != Xset; then
8922   COLLECT_NAMES=
8923   export COLLECT_NAMES
8924 fi
8925 EOF
8926     ;;
8927   esac
8928
8929   # We use sed instead of cat because bash on DJGPP gets confused if
8930   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8931   # text mode, it properly converts lines to CR/LF.  This bash problem
8932   # is reportedly fixed, but why not run on old versions too?
8933   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8934
8935   mv -f "$cfgfile" "$ofile" || \
8936     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8937   chmod +x "$ofile"
8938
8939 else
8940   # If there is no Makefile yet, we rely on a make rule to execute
8941   # `config.status --recheck' to rerun these tests and create the
8942   # libtool script then.
8943   test -f Makefile && make "$ltmain"
8944 fi
8945
8946
8947 ac_ext=c
8948 ac_cpp='$CPP $CPPFLAGS'
8949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8952
8953 CC="$lt_save_CC"
8954
8955
8956 # Check whether --with-tags or --without-tags was given.
8957 if test "${with_tags+set}" = set; then
8958   withval="$with_tags"
8959   tagnames="$withval"
8960 fi;
8961
8962 if test -f "$ltmain" && test -n "$tagnames"; then
8963   if test ! -f "${ofile}"; then
8964     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8965 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8966   fi
8967
8968   if test -z "$LTCC"; then
8969     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8970     if test -z "$LTCC"; then
8971       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8972 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8973     else
8974       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8975 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8976     fi
8977   fi
8978
8979   # Extract list of available tagged configurations in $ofile.
8980   # Note that this assumes the entire list is on one line.
8981   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8982
8983   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8984   for tagname in $tagnames; do
8985     IFS="$lt_save_ifs"
8986     # Check whether tagname contains only valid characters
8987     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8988     "") ;;
8989     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8990 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8991    { (exit 1); exit 1; }; }
8992         ;;
8993     esac
8994
8995     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8996     then
8997       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8998 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8999    { (exit 1); exit 1; }; }
9000     fi
9001
9002     # Update the list of available tags.
9003     if test -n "$tagname"; then
9004       echo appending configuration tag \"$tagname\" to $ofile
9005
9006       case $tagname in
9007       CXX)
9008         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9009           ac_ext=cc
9010 ac_cpp='$CXXCPP $CPPFLAGS'
9011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9014
9015
9016
9017
9018 archive_cmds_need_lc_CXX=no
9019 allow_undefined_flag_CXX=
9020 always_export_symbols_CXX=no
9021 archive_expsym_cmds_CXX=
9022 export_dynamic_flag_spec_CXX=
9023 hardcode_direct_CXX=no
9024 hardcode_libdir_flag_spec_CXX=
9025 hardcode_libdir_flag_spec_ld_CXX=
9026 hardcode_libdir_separator_CXX=
9027 hardcode_minus_L_CXX=no
9028 hardcode_automatic_CXX=no
9029 module_cmds_CXX=
9030 module_expsym_cmds_CXX=
9031 link_all_deplibs_CXX=unknown
9032 old_archive_cmds_CXX=$old_archive_cmds
9033 no_undefined_flag_CXX=
9034 whole_archive_flag_spec_CXX=
9035 enable_shared_with_static_runtimes_CXX=no
9036
9037 # Dependencies to place before and after the object being linked:
9038 predep_objects_CXX=
9039 postdep_objects_CXX=
9040 predeps_CXX=
9041 postdeps_CXX=
9042 compiler_lib_search_path_CXX=
9043
9044 # Source file extension for C++ test sources.
9045 ac_ext=cc
9046
9047 # Object file extension for compiled C++ test sources.
9048 objext=o
9049 objext_CXX=$objext
9050
9051 # Code to be used in simple compile tests
9052 lt_simple_compile_test_code="int some_variable = 0;\n"
9053
9054 # Code to be used in simple link tests
9055 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9056
9057 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9058
9059 # If no C compiler was specified, use CC.
9060 LTCC=${LTCC-"$CC"}
9061
9062 # Allow CC to be a program name with arguments.
9063 compiler=$CC
9064
9065
9066 # Allow CC to be a program name with arguments.
9067 lt_save_CC=$CC
9068 lt_save_LD=$LD
9069 lt_save_GCC=$GCC
9070 GCC=$GXX
9071 lt_save_with_gnu_ld=$with_gnu_ld
9072 lt_save_path_LD=$lt_cv_path_LD
9073 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9074   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9075 else
9076   unset lt_cv_prog_gnu_ld
9077 fi
9078 if test -n "${lt_cv_path_LDCXX+set}"; then
9079   lt_cv_path_LD=$lt_cv_path_LDCXX
9080 else
9081   unset lt_cv_path_LD
9082 fi
9083 test -z "${LDCXX+set}" || LD=$LDCXX
9084 CC=${CXX-"c++"}
9085 compiler=$CC
9086 compiler_CXX=$CC
9087 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9088
9089 # We don't want -fno-exception wen compiling C++ code, so set the
9090 # no_builtin_flag separately
9091 if test "$GXX" = yes; then
9092   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9093 else
9094   lt_prog_compiler_no_builtin_flag_CXX=
9095 fi
9096
9097 if test "$GXX" = yes; then
9098   # Set up default GNU C++ configuration
9099
9100
9101 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9102 if test "${with_gnu_ld+set}" = set; then
9103   withval="$with_gnu_ld"
9104   test "$withval" = no || with_gnu_ld=yes
9105 else
9106   with_gnu_ld=no
9107 fi;
9108 ac_prog=ld
9109 if test "$GCC" = yes; then
9110   # Check if gcc -print-prog-name=ld gives a path.
9111   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9112 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9113   case $host in
9114   *-*-mingw*)
9115     # gcc leaves a trailing carriage return which upsets mingw
9116     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9117   *)
9118     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9119   esac
9120   case $ac_prog in
9121     # Accept absolute paths.
9122     [\\/]* | ?:[\\/]*)
9123       re_direlt='/[^/][^/]*/\.\./'
9124       # Canonicalize the path of ld
9125       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9126       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9127         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9128       done
9129       test -z "$LD" && LD="$ac_prog"
9130       ;;
9131   "")
9132     # If it fails, then pretend we aren't using GCC.
9133     ac_prog=ld
9134     ;;
9135   *)
9136     # If it is relative, then search for the first ld in PATH.
9137     with_gnu_ld=unknown
9138     ;;
9139   esac
9140 elif test "$with_gnu_ld" = yes; then
9141   echo "$as_me:$LINENO: checking for GNU ld" >&5
9142 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9143 else
9144   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9145 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9146 fi
9147 if test "${lt_cv_path_LD+set}" = set; then
9148   echo $ECHO_N "(cached) $ECHO_C" >&6
9149 else
9150   if test -z "$LD"; then
9151   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9152   for ac_dir in $PATH; do
9153     IFS="$lt_save_ifs"
9154     test -z "$ac_dir" && ac_dir=.
9155     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9156       lt_cv_path_LD="$ac_dir/$ac_prog"
9157       # Check to see if the program is GNU ld.  I'd rather use --version,
9158       # but apparently some GNU ld's only accept -v.
9159       # Break only if it was the GNU/non-GNU ld that we prefer.
9160       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9161       *GNU* | *'with BFD'*)
9162         test "$with_gnu_ld" != no && break
9163         ;;
9164       *)
9165         test "$with_gnu_ld" != yes && break
9166         ;;
9167       esac
9168     fi
9169   done
9170   IFS="$lt_save_ifs"
9171 else
9172   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9173 fi
9174 fi
9175
9176 LD="$lt_cv_path_LD"
9177 if test -n "$LD"; then
9178   echo "$as_me:$LINENO: result: $LD" >&5
9179 echo "${ECHO_T}$LD" >&6
9180 else
9181   echo "$as_me:$LINENO: result: no" >&5
9182 echo "${ECHO_T}no" >&6
9183 fi
9184 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9185 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9186    { (exit 1); exit 1; }; }
9187 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9188 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9189 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9190   echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
9192   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9193 case `"$LD" -v 2>&1 </dev/null` in
9194 *GNU* | *'with BFD'*)
9195   lt_cv_prog_gnu_ld=yes
9196   ;;
9197 *)
9198   lt_cv_prog_gnu_ld=no
9199   ;;
9200 esac
9201 fi
9202 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9203 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9204 with_gnu_ld=$lt_cv_prog_gnu_ld
9205
9206
9207
9208   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9209   # archiving commands below assume that GNU ld is being used.
9210   if test "$with_gnu_ld" = yes; then
9211     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9212     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'
9213
9214     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9215     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9216
9217     # If archive_cmds runs LD, not CC, wlarc should be empty
9218     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9219     #     investigate it a little bit more. (MM)
9220     wlarc='${wl}'
9221
9222     # ancient GNU ld didn't support --whole-archive et. al.
9223     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9224         grep 'no-whole-archive' > /dev/null; then
9225       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9226     else
9227       whole_archive_flag_spec_CXX=
9228     fi
9229   else
9230     with_gnu_ld=no
9231     wlarc=
9232
9233     # A generic and very simple default shared library creation
9234     # command for GNU C++ for the case where it uses the native
9235     # linker, instead of GNU ld.  If possible, this setting should
9236     # overridden to take advantage of the native linker features on
9237     # the platform it is being used on.
9238     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9239   fi
9240
9241   # Commands to make compiler produce verbose output that lists
9242   # what "hidden" libraries, object files and flags are used when
9243   # linking a shared library.
9244   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9245
9246 else
9247   GXX=no
9248   with_gnu_ld=no
9249   wlarc=
9250 fi
9251
9252 # PORTME: fill in a description of your system's C++ link characteristics
9253 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9254 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9255 ld_shlibs_CXX=yes
9256 case $host_os in
9257   aix3*)
9258     # FIXME: insert proper C++ library support
9259     ld_shlibs_CXX=no
9260     ;;
9261   aix4* | aix5*)
9262     if test "$host_cpu" = ia64; then
9263       # On IA64, the linker does run time linking by default, so we don't
9264       # have to do anything special.
9265       aix_use_runtimelinking=no
9266       exp_sym_flag='-Bexport'
9267       no_entry_flag=""
9268     else
9269       aix_use_runtimelinking=no
9270
9271       # Test if we are trying to use run time linking or normal
9272       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9273       # need to do runtime linking.
9274       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9275         for ld_flag in $LDFLAGS; do
9276           case $ld_flag in
9277           *-brtl*)
9278             aix_use_runtimelinking=yes
9279             break
9280             ;;
9281           esac
9282         done
9283       esac
9284
9285       exp_sym_flag='-bexport'
9286       no_entry_flag='-bnoentry'
9287     fi
9288
9289     # When large executables or shared objects are built, AIX ld can
9290     # have problems creating the table of contents.  If linking a library
9291     # or program results in "error TOC overflow" add -mminimal-toc to
9292     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9293     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9294
9295     archive_cmds_CXX=''
9296     hardcode_direct_CXX=yes
9297     hardcode_libdir_separator_CXX=':'
9298     link_all_deplibs_CXX=yes
9299
9300     if test "$GXX" = yes; then
9301       case $host_os in aix4.012|aix4.012.*)
9302       # We only want to do this on AIX 4.2 and lower, the check
9303       # below for broken collect2 doesn't work under 4.3+
9304         collect2name=`${CC} -print-prog-name=collect2`
9305         if test -f "$collect2name" && \
9306            strings "$collect2name" | grep resolve_lib_name >/dev/null
9307         then
9308           # We have reworked collect2
9309           hardcode_direct_CXX=yes
9310         else
9311           # We have old collect2
9312           hardcode_direct_CXX=unsupported
9313           # It fails to find uninstalled libraries when the uninstalled
9314           # path is not listed in the libpath.  Setting hardcode_minus_L
9315           # to unsupported forces relinking
9316           hardcode_minus_L_CXX=yes
9317           hardcode_libdir_flag_spec_CXX='-L$libdir'
9318           hardcode_libdir_separator_CXX=
9319         fi
9320       esac
9321       shared_flag='-shared'
9322     else
9323       # not using gcc
9324       if test "$host_cpu" = ia64; then
9325         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9326         # chokes on -Wl,-G. The following line is correct:
9327         shared_flag='-G'
9328       else
9329         if test "$aix_use_runtimelinking" = yes; then
9330           shared_flag='${wl}-G'
9331         else
9332           shared_flag='${wl}-bM:SRE'
9333         fi
9334       fi
9335     fi
9336
9337     # It seems that -bexpall does not export symbols beginning with
9338     # underscore (_), so it is better to generate a list of symbols to export.
9339     always_export_symbols_CXX=yes
9340     if test "$aix_use_runtimelinking" = yes; then
9341       # Warning - without using the other runtime loading flags (-brtl),
9342       # -berok will link without error, but may produce a broken library.
9343       allow_undefined_flag_CXX='-berok'
9344       # Determine the default libpath from the value encoded in an empty executable.
9345       cat >conftest.$ac_ext <<_ACEOF
9346 #line $LINENO "configure"
9347 /* confdefs.h.  */
9348 _ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h.  */
9352
9353 int
9354 main ()
9355 {
9356
9357   ;
9358   return 0;
9359 }
9360 _ACEOF
9361 rm -f conftest.$ac_objext conftest$ac_exeext
9362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9363   (eval $ac_link) 2>&5
9364   ac_status=$?
9365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366   (exit $ac_status); } &&
9367          { ac_try='test -s conftest$ac_exeext'
9368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369   (eval $ac_try) 2>&5
9370   ac_status=$?
9371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372   (exit $ac_status); }; }; then
9373
9374 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9375 }'`
9376 # Check for a 64-bit object if we didn't find anything.
9377 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; }
9378 }'`; fi
9379 else
9380   echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9382
9383 fi
9384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9385 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9386
9387       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9388
9389       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"
9390      else
9391       if test "$host_cpu" = ia64; then
9392         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9393         allow_undefined_flag_CXX="-z nodefs"
9394         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"
9395       else
9396         # Determine the default libpath from the value encoded in an empty executable.
9397         cat >conftest.$ac_ext <<_ACEOF
9398 #line $LINENO "configure"
9399 /* confdefs.h.  */
9400 _ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h.  */
9404
9405 int
9406 main ()
9407 {
9408
9409   ;
9410   return 0;
9411 }
9412 _ACEOF
9413 rm -f conftest.$ac_objext conftest$ac_exeext
9414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9415   (eval $ac_link) 2>&5
9416   ac_status=$?
9417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418   (exit $ac_status); } &&
9419          { ac_try='test -s conftest$ac_exeext'
9420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421   (eval $ac_try) 2>&5
9422   ac_status=$?
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   (exit $ac_status); }; }; then
9425
9426 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9427 }'`
9428 # Check for a 64-bit object if we didn't find anything.
9429 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; }
9430 }'`; fi
9431 else
9432   echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.$ac_ext >&5
9434
9435 fi
9436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9437 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9438
9439         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9440         # Warning - without using the other run time loading flags,
9441         # -berok will link without error, but may produce a broken library.
9442         no_undefined_flag_CXX=' ${wl}-bernotok'
9443         allow_undefined_flag_CXX=' ${wl}-berok'
9444         # -bexpall does not export symbols beginning with underscore (_)
9445         always_export_symbols_CXX=yes
9446         # Exported symbols can be pulled into shared objects from archives
9447         whole_archive_flag_spec_CXX=' '
9448         archive_cmds_need_lc_CXX=yes
9449         # This is similar to how AIX traditionally builds it's shared libraries.
9450         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'
9451       fi
9452     fi
9453     ;;
9454   chorus*)
9455     case $cc_basename in
9456       *)
9457         # FIXME: insert proper C++ library support
9458         ld_shlibs_CXX=no
9459         ;;
9460     esac
9461     ;;
9462
9463   cygwin* | mingw* | pw32*)
9464     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9465     # as there is no search path for DLLs.
9466     hardcode_libdir_flag_spec_CXX='-L$libdir'
9467     allow_undefined_flag_CXX=unsupported
9468     always_export_symbols_CXX=no
9469     enable_shared_with_static_runtimes_CXX=yes
9470
9471     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9472       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'
9473       # If the export-symbols file already is a .def file (1st line
9474       # is EXPORTS), use it as is; otherwise, prepend...
9475       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9476         cp $export_symbols $output_objdir/$soname.def;
9477       else
9478         echo EXPORTS > $output_objdir/$soname.def;
9479         cat $export_symbols >> $output_objdir/$soname.def;
9480       fi~
9481       $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'
9482     else
9483       ld_shlibs_CXX=no
9484     fi
9485   ;;
9486
9487   darwin* | rhapsody*)
9488    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9489     archive_cmds_need_lc_CXX=no
9490     case "$host_os" in
9491     rhapsody* | darwin1.[012])
9492       allow_undefined_flag_CXX='-undefined suppress'
9493       ;;
9494     *) # Darwin 1.3 on
9495       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9496       ;;
9497     esac
9498         lt_int_apple_cc_single_mod=no
9499         output_verbose_link_cmd='echo'
9500         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9501           lt_int_apple_cc_single_mod=yes
9502         fi
9503         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9504           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9505         else
9506         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'
9507       fi
9508       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9509
9510     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9511       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9512         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}'
9513       else
9514         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}'
9515       fi
9516         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}'
9517     hardcode_direct_CXX=no
9518     hardcode_automatic_CXX=yes
9519     hardcode_shlibpath_var_CXX=unsupported
9520     whole_archive_flag_spec_CXX='-all_load $convenience'
9521     link_all_deplibs_CXX=yes
9522    fi
9523     ;;
9524
9525   dgux*)
9526     case $cc_basename in
9527       ec++)
9528         # FIXME: insert proper C++ library support
9529         ld_shlibs_CXX=no
9530         ;;
9531       ghcx)
9532         # Green Hills C++ Compiler
9533         # FIXME: insert proper C++ library support
9534         ld_shlibs_CXX=no
9535         ;;
9536       *)
9537         # FIXME: insert proper C++ library support
9538         ld_shlibs_CXX=no
9539         ;;
9540     esac
9541     ;;
9542   freebsd12*)
9543     # C++ shared libraries reported to be fairly broken before switch to ELF
9544     ld_shlibs_CXX=no
9545     ;;
9546   freebsd-elf*)
9547     archive_cmds_need_lc_CXX=no
9548     ;;
9549   freebsd*)
9550     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9551     # conventions
9552     ld_shlibs_CXX=yes
9553     ;;
9554   gnu*)
9555     ;;
9556   hpux9*)
9557     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9558     hardcode_libdir_separator_CXX=:
9559     export_dynamic_flag_spec_CXX='${wl}-E'
9560     hardcode_direct_CXX=yes
9561     hardcode_minus_L_CXX=yes # Not in the search PATH,
9562                                 # but as the default
9563                                 # location of the library.
9564
9565     case $cc_basename in
9566     CC)
9567       # FIXME: insert proper C++ library support
9568       ld_shlibs_CXX=no
9569       ;;
9570     aCC)
9571       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'
9572       # Commands to make compiler produce verbose output that lists
9573       # what "hidden" libraries, object files and flags are used when
9574       # linking a shared library.
9575       #
9576       # There doesn't appear to be a way to prevent this compiler from
9577       # explicitly linking system object files so we need to strip them
9578       # from the output so that they don't get included in the library
9579       # dependencies.
9580       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'
9581       ;;
9582     *)
9583       if test "$GXX" = yes; then
9584         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'
9585       else
9586         # FIXME: insert proper C++ library support
9587         ld_shlibs_CXX=no
9588       fi
9589       ;;
9590     esac
9591     ;;
9592   hpux10*|hpux11*)
9593     if test $with_gnu_ld = no; then
9594       case "$host_cpu" in
9595       hppa*64*)
9596         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9597         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9598         hardcode_libdir_separator_CXX=:
9599         ;;
9600       ia64*)
9601         hardcode_libdir_flag_spec_CXX='-L$libdir'
9602         ;;
9603       *)
9604         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9605         hardcode_libdir_separator_CXX=:
9606         export_dynamic_flag_spec_CXX='${wl}-E'
9607         ;;
9608       esac
9609     fi
9610     case "$host_cpu" in
9611     hppa*64*)
9612       hardcode_direct_CXX=no
9613       hardcode_shlibpath_var_CXX=no
9614       ;;
9615     ia64*)
9616       hardcode_direct_CXX=no
9617       hardcode_shlibpath_var_CXX=no
9618       hardcode_minus_L_CXX=yes # Not in the search PATH,
9619                                               # but as the default
9620                                               # location of the library.
9621       ;;
9622     *)
9623       hardcode_direct_CXX=yes
9624       hardcode_minus_L_CXX=yes # Not in the search PATH,
9625                                               # but as the default
9626                                               # location of the library.
9627       ;;
9628     esac
9629
9630     case $cc_basename in
9631       CC)
9632         # FIXME: insert proper C++ library support
9633         ld_shlibs_CXX=no
9634         ;;
9635       aCC)
9636         case "$host_cpu" in
9637         hppa*64*|ia64*)
9638           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9639           ;;
9640         *)
9641           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9642           ;;
9643         esac
9644         # Commands to make compiler produce verbose output that lists
9645         # what "hidden" libraries, object files and flags are used when
9646         # linking a shared library.
9647         #
9648         # There doesn't appear to be a way to prevent this compiler from
9649         # explicitly linking system object files so we need to strip them
9650         # from the output so that they don't get included in the library
9651         # dependencies.
9652         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'
9653         ;;
9654       *)
9655         if test "$GXX" = yes; then
9656           if test $with_gnu_ld = no; then
9657             case "$host_cpu" in
9658             ia64*|hppa*64*)
9659               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9660               ;;
9661             *)
9662               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'
9663               ;;
9664             esac
9665           fi
9666         else
9667           # FIXME: insert proper C++ library support
9668           ld_shlibs_CXX=no
9669         fi
9670         ;;
9671     esac
9672     ;;
9673   irix5* | irix6*)
9674     case $cc_basename in
9675       CC)
9676         # SGI C++
9677         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'
9678
9679         # Archives containing C++ object files must be created using
9680         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9681         # necessary to make sure instantiated templates are included
9682         # in the archive.
9683         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9684         ;;
9685       *)
9686         if test "$GXX" = yes; then
9687           if test "$with_gnu_ld" = no; then
9688             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'
9689           else
9690             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'
9691           fi
9692         fi
9693         link_all_deplibs_CXX=yes
9694         ;;
9695     esac
9696     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9697     hardcode_libdir_separator_CXX=:
9698     ;;
9699   linux*)
9700     case $cc_basename in
9701       KCC)
9702         # Kuck and Associates, Inc. (KAI) C++ Compiler
9703
9704         # KCC will only create a shared library if the output file
9705         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9706         # to its proper name (with version) after linking.
9707         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'
9708         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'
9709         # Commands to make compiler produce verbose output that lists
9710         # what "hidden" libraries, object files and flags are used when
9711         # linking a shared library.
9712         #
9713         # There doesn't appear to be a way to prevent this compiler from
9714         # explicitly linking system object files so we need to strip them
9715         # from the output so that they don't get included in the library
9716         # dependencies.
9717         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'
9718
9719         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9720         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9721
9722         # Archives containing C++ object files must be created using
9723         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9724         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9725         ;;
9726       icpc)
9727         # Intel C++
9728         with_gnu_ld=yes
9729         archive_cmds_need_lc_CXX=no
9730         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731         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'
9732         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9733         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9734         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9735         ;;
9736       cxx)
9737         # Compaq C++
9738         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9739         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'
9740
9741         runpath_var=LD_RUN_PATH
9742         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9743         hardcode_libdir_separator_CXX=:
9744
9745         # Commands to make compiler produce verbose output that lists
9746         # what "hidden" libraries, object files and flags are used when
9747         # linking a shared library.
9748         #
9749         # There doesn't appear to be a way to prevent this compiler from
9750         # explicitly linking system object files so we need to strip them
9751         # from the output so that they don't get included in the library
9752         # dependencies.
9753         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'
9754         ;;
9755     esac
9756     ;;
9757   lynxos*)
9758     # FIXME: insert proper C++ library support
9759     ld_shlibs_CXX=no
9760     ;;
9761   m88k*)
9762     # FIXME: insert proper C++ library support
9763     ld_shlibs_CXX=no
9764     ;;
9765   mvs*)
9766     case $cc_basename in
9767       cxx)
9768         # FIXME: insert proper C++ library support
9769         ld_shlibs_CXX=no
9770         ;;
9771       *)
9772         # FIXME: insert proper C++ library support
9773         ld_shlibs_CXX=no
9774         ;;
9775     esac
9776     ;;
9777   netbsd*)
9778     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9779       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9780       wlarc=
9781       hardcode_libdir_flag_spec_CXX='-R$libdir'
9782       hardcode_direct_CXX=yes
9783       hardcode_shlibpath_var_CXX=no
9784     fi
9785     # Workaround some broken pre-1.5 toolchains
9786     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9787     ;;
9788   osf3*)
9789     case $cc_basename in
9790       KCC)
9791         # Kuck and Associates, Inc. (KAI) C++ Compiler
9792
9793         # KCC will only create a shared library if the output file
9794         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9795         # to its proper name (with version) after linking.
9796         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'
9797
9798         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9799         hardcode_libdir_separator_CXX=:
9800
9801         # Archives containing C++ object files must be created using
9802         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9803         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9804
9805         ;;
9806       RCC)
9807         # Rational C++ 2.4.1
9808         # FIXME: insert proper C++ library support
9809         ld_shlibs_CXX=no
9810         ;;
9811       cxx)
9812         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9813         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'
9814
9815         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9816         hardcode_libdir_separator_CXX=:
9817
9818         # Commands to make compiler produce verbose output that lists
9819         # what "hidden" libraries, object files and flags are used when
9820         # linking a shared library.
9821         #
9822         # There doesn't appear to be a way to prevent this compiler from
9823         # explicitly linking system object files so we need to strip them
9824         # from the output so that they don't get included in the library
9825         # dependencies.
9826         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'
9827         ;;
9828       *)
9829         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9830           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9831           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'
9832
9833           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9834           hardcode_libdir_separator_CXX=:
9835
9836           # Commands to make compiler produce verbose output that lists
9837           # what "hidden" libraries, object files and flags are used when
9838           # linking a shared library.
9839           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9840
9841         else
9842           # FIXME: insert proper C++ library support
9843           ld_shlibs_CXX=no
9844         fi
9845         ;;
9846     esac
9847     ;;
9848   osf4* | osf5*)
9849     case $cc_basename in
9850       KCC)
9851         # Kuck and Associates, Inc. (KAI) C++ Compiler
9852
9853         # KCC will only create a shared library if the output file
9854         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9855         # to its proper name (with version) after linking.
9856         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'
9857
9858         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9859         hardcode_libdir_separator_CXX=:
9860
9861         # Archives containing C++ object files must be created using
9862         # the KAI C++ compiler.
9863         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9864         ;;
9865       RCC)
9866         # Rational C++ 2.4.1
9867         # FIXME: insert proper C++ library support
9868         ld_shlibs_CXX=no
9869         ;;
9870       cxx)
9871         allow_undefined_flag_CXX=' -expect_unresolved \*'
9872         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'
9873         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9874           echo "-hidden">> $lib.exp~
9875           $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~
9876           $rm $lib.exp'
9877
9878         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9879         hardcode_libdir_separator_CXX=:
9880
9881         # Commands to make compiler produce verbose output that lists
9882         # what "hidden" libraries, object files and flags are used when
9883         # linking a shared library.
9884         #
9885         # There doesn't appear to be a way to prevent this compiler from
9886         # explicitly linking system object files so we need to strip them
9887         # from the output so that they don't get included in the library
9888         # dependencies.
9889         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'
9890         ;;
9891       *)
9892         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9893           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9894          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'
9895
9896           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9897           hardcode_libdir_separator_CXX=:
9898
9899           # Commands to make compiler produce verbose output that lists
9900           # what "hidden" libraries, object files and flags are used when
9901           # linking a shared library.
9902           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9903
9904         else
9905           # FIXME: insert proper C++ library support
9906           ld_shlibs_CXX=no
9907         fi
9908         ;;
9909     esac
9910     ;;
9911   psos*)
9912     # FIXME: insert proper C++ library support
9913     ld_shlibs_CXX=no
9914     ;;
9915   sco*)
9916     archive_cmds_need_lc_CXX=no
9917     case $cc_basename in
9918       CC)
9919         # FIXME: insert proper C++ library support
9920         ld_shlibs_CXX=no
9921         ;;
9922       *)
9923         # FIXME: insert proper C++ library support
9924         ld_shlibs_CXX=no
9925         ;;
9926     esac
9927     ;;
9928   sunos4*)
9929     case $cc_basename in
9930       CC)
9931         # Sun C++ 4.x
9932         # FIXME: insert proper C++ library support
9933         ld_shlibs_CXX=no
9934         ;;
9935       lcc)
9936         # Lucid
9937         # FIXME: insert proper C++ library support
9938         ld_shlibs_CXX=no
9939         ;;
9940       *)
9941         # FIXME: insert proper C++ library support
9942         ld_shlibs_CXX=no
9943         ;;
9944     esac
9945     ;;
9946   solaris*)
9947     case $cc_basename in
9948       CC)
9949         # Sun C++ 4.2, 5.x and Centerline C++
9950         no_undefined_flag_CXX=' -zdefs'
9951         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9952         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9953         $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'
9954
9955         hardcode_libdir_flag_spec_CXX='-R$libdir'
9956         hardcode_shlibpath_var_CXX=no
9957         case $host_os in
9958           solaris2.0-5 | solaris2.0-5.*) ;;
9959           *)
9960             # The C++ compiler is used as linker so we must use $wl
9961             # flag to pass the commands to the underlying system
9962             # linker.
9963             # Supported since Solaris 2.6 (maybe 2.5.1?)
9964             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9965             ;;
9966         esac
9967         link_all_deplibs_CXX=yes
9968
9969         # Commands to make compiler produce verbose output that lists
9970         # what "hidden" libraries, object files and flags are used when
9971         # linking a shared library.
9972         #
9973         # There doesn't appear to be a way to prevent this compiler from
9974         # explicitly linking system object files so we need to strip them
9975         # from the output so that they don't get included in the library
9976         # dependencies.
9977         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'
9978
9979         # Archives containing C++ object files must be created using
9980         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9981         # necessary to make sure instantiated templates are included
9982         # in the archive.
9983         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9984         ;;
9985       gcx)
9986         # Green Hills C++ Compiler
9987         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9988
9989         # The C++ compiler must be used to create the archive.
9990         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9991         ;;
9992       *)
9993         # GNU C++ compiler with Solaris linker
9994         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9995           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9996           if $CC --version | grep -v '^2\.7' > /dev/null; then
9997             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9998             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9999                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10000
10001             # Commands to make compiler produce verbose output that lists
10002             # what "hidden" libraries, object files and flags are used when
10003             # linking a shared library.
10004             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10005           else
10006             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10007             # platform.
10008             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
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 -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10011
10012             # Commands to make compiler produce verbose output that lists
10013             # what "hidden" libraries, object files and flags are used when
10014             # linking a shared library.
10015             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10016           fi
10017
10018           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10019         fi
10020         ;;
10021     esac
10022     ;;
10023   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10024     archive_cmds_need_lc_CXX=no
10025     ;;
10026   tandem*)
10027     case $cc_basename in
10028       NCC)
10029         # NonStop-UX NCC 3.20
10030         # FIXME: insert proper C++ library support
10031         ld_shlibs_CXX=no
10032         ;;
10033       *)
10034         # FIXME: insert proper C++ library support
10035         ld_shlibs_CXX=no
10036         ;;
10037     esac
10038     ;;
10039   vxworks*)
10040     # FIXME: insert proper C++ library support
10041     ld_shlibs_CXX=no
10042     ;;
10043   *)
10044     # FIXME: insert proper C++ library support
10045     ld_shlibs_CXX=no
10046     ;;
10047 esac
10048 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10049 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10050 test "$ld_shlibs_CXX" = no && can_build_shared=no
10051
10052 GCC_CXX="$GXX"
10053 LD_CXX="$LD"
10054
10055
10056 cat > conftest.$ac_ext <<EOF
10057 class Foo
10058 {
10059 public:
10060   Foo (void) { a = 0; }
10061 private:
10062   int a;
10063 };
10064 EOF
10065
10066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10067   (eval $ac_compile) 2>&5
10068   ac_status=$?
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); }; then
10071   # Parse the compiler output and extract the necessary
10072   # objects, libraries and library flags.
10073
10074   # Sentinel used to keep track of whether or not we are before
10075   # the conftest object file.
10076   pre_test_object_deps_done=no
10077
10078   # The `*' in the case matches for architectures that use `case' in
10079   # $output_verbose_cmd can trigger glob expansion during the loop
10080   # eval without this substitution.
10081   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10082
10083   for p in `eval $output_verbose_link_cmd`; do
10084     case $p in
10085
10086     -L* | -R* | -l*)
10087        # Some compilers place space between "-{L,R}" and the path.
10088        # Remove the space.
10089        if test $p = "-L" \
10090           || test $p = "-R"; then
10091          prev=$p
10092          continue
10093        else
10094          prev=
10095        fi
10096
10097        if test "$pre_test_object_deps_done" = no; then
10098          case $p in
10099          -L* | -R*)
10100            # Internal compiler library paths should come after those
10101            # provided the user.  The postdeps already come after the
10102            # user supplied libs so there is no need to process them.
10103            if test -z "$compiler_lib_search_path_CXX"; then
10104              compiler_lib_search_path_CXX="${prev}${p}"
10105            else
10106              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10107            fi
10108            ;;
10109          # The "-l" case would never come before the object being
10110          # linked, so don't bother handling this case.
10111          esac
10112        else
10113          if test -z "$postdeps_CXX"; then
10114            postdeps_CXX="${prev}${p}"
10115          else
10116            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10117          fi
10118        fi
10119        ;;
10120
10121     *.$objext)
10122        # This assumes that the test object file only shows up
10123        # once in the compiler output.
10124        if test "$p" = "conftest.$objext"; then
10125          pre_test_object_deps_done=yes
10126          continue
10127        fi
10128
10129        if test "$pre_test_object_deps_done" = no; then
10130          if test -z "$predep_objects_CXX"; then
10131            predep_objects_CXX="$p"
10132          else
10133            predep_objects_CXX="$predep_objects_CXX $p"
10134          fi
10135        else
10136          if test -z "$postdep_objects_CXX"; then
10137            postdep_objects_CXX="$p"
10138          else
10139            postdep_objects_CXX="$postdep_objects_CXX $p"
10140          fi
10141        fi
10142        ;;
10143
10144     *) ;; # Ignore the rest.
10145
10146     esac
10147   done
10148
10149   # Clean up.
10150   rm -f a.out a.exe
10151 else
10152   echo "libtool.m4: error: problem compiling CXX test program"
10153 fi
10154
10155 $rm -f confest.$objext
10156
10157 case " $postdeps_CXX " in
10158 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10159 esac
10160
10161 lt_prog_compiler_wl_CXX=
10162 lt_prog_compiler_pic_CXX=
10163 lt_prog_compiler_static_CXX=
10164
10165 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10166 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10167
10168   # C++ specific cases for pic, static, wl, etc.
10169   if test "$GXX" = yes; then
10170     lt_prog_compiler_wl_CXX='-Wl,'
10171     lt_prog_compiler_static_CXX='-static'
10172
10173     case $host_os in
10174     aix*)
10175       # All AIX code is PIC.
10176       if test "$host_cpu" = ia64; then
10177         # AIX 5 now supports IA64 processor
10178         lt_prog_compiler_static_CXX='-Bstatic'
10179       fi
10180       ;;
10181     amigaos*)
10182       # FIXME: we need at least 68020 code to build shared libraries, but
10183       # adding the `-m68020' flag to GCC prevents building anything better,
10184       # like `-m68040'.
10185       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10186       ;;
10187     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10188       # PIC is the default for these OSes.
10189       ;;
10190     mingw* | os2* | pw32*)
10191       # This hack is so that the source file can tell whether it is being
10192       # built for inclusion in a dll (and should export symbols for example).
10193       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10194       ;;
10195     darwin* | rhapsody*)
10196       # PIC is the default on this platform
10197       # Common symbols not allowed in MH_DYLIB files
10198       lt_prog_compiler_pic_CXX='-fno-common'
10199       ;;
10200     *djgpp*)
10201       # DJGPP does not support shared libraries at all
10202       lt_prog_compiler_pic_CXX=
10203       ;;
10204     sysv4*MP*)
10205       if test -d /usr/nec; then
10206         lt_prog_compiler_pic_CXX=-Kconform_pic
10207       fi
10208       ;;
10209     hpux*)
10210       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10211       # not for PA HP-UX.
10212       case "$host_cpu" in
10213       hppa*64*|ia64*)
10214         ;;
10215       *)
10216         lt_prog_compiler_pic_CXX='-fPIC'
10217         ;;
10218       esac
10219       ;;
10220     *)
10221       lt_prog_compiler_pic_CXX='-fPIC'
10222       ;;
10223     esac
10224   else
10225     case $host_os in
10226       aix4* | aix5*)
10227         # All AIX code is PIC.
10228         if test "$host_cpu" = ia64; then
10229           # AIX 5 now supports IA64 processor
10230           lt_prog_compiler_static_CXX='-Bstatic'
10231         else
10232           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10233         fi
10234         ;;
10235       chorus*)
10236         case $cc_basename in
10237         cxch68)
10238           # Green Hills C++ Compiler
10239           # _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"
10240           ;;
10241         esac
10242         ;;
10243       dgux*)
10244         case $cc_basename in
10245           ec++)
10246             lt_prog_compiler_pic_CXX='-KPIC'
10247             ;;
10248           ghcx)
10249             # Green Hills C++ Compiler
10250             lt_prog_compiler_pic_CXX='-pic'
10251             ;;
10252           *)
10253             ;;
10254         esac
10255         ;;
10256       freebsd*)
10257         # FreeBSD uses GNU C++
10258         ;;
10259       hpux9* | hpux10* | hpux11*)
10260         case $cc_basename in
10261           CC)
10262             lt_prog_compiler_wl_CXX='-Wl,'
10263             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10264             if test "$host_cpu" != ia64; then
10265               lt_prog_compiler_pic_CXX='+Z'
10266             fi
10267             ;;
10268           aCC)
10269             lt_prog_compiler_wl_CXX='-Wl,'
10270             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10271             case "$host_cpu" in
10272             hppa*64*|ia64*)
10273               # +Z the default
10274               ;;
10275             *)
10276               lt_prog_compiler_pic_CXX='+Z'
10277               ;;
10278             esac
10279             ;;
10280           *)
10281             ;;
10282         esac
10283         ;;
10284       irix5* | irix6* | nonstopux*)
10285         case $cc_basename in
10286           CC)
10287             lt_prog_compiler_wl_CXX='-Wl,'
10288             lt_prog_compiler_static_CXX='-non_shared'
10289             # CC pic flag -KPIC is the default.
10290             ;;
10291           *)
10292             ;;
10293         esac
10294         ;;
10295       linux*)
10296         case $cc_basename in
10297           KCC)
10298             # KAI C++ Compiler
10299             lt_prog_compiler_wl_CXX='--backend -Wl,'
10300             lt_prog_compiler_pic_CXX='-fPIC'
10301             ;;
10302           icpc)
10303             # Intel C++
10304             lt_prog_compiler_wl_CXX='-Wl,'
10305             lt_prog_compiler_pic_CXX='-KPIC'
10306             lt_prog_compiler_static_CXX='-static'
10307             ;;
10308           cxx)
10309             # Compaq C++
10310             # Make sure the PIC flag is empty.  It appears that all Alpha
10311             # Linux and Compaq Tru64 Unix objects are PIC.
10312             lt_prog_compiler_pic_CXX=
10313             lt_prog_compiler_static_CXX='-non_shared'
10314             ;;
10315           *)
10316             ;;
10317         esac
10318         ;;
10319       lynxos*)
10320         ;;
10321       m88k*)
10322         ;;
10323       mvs*)
10324         case $cc_basename in
10325           cxx)
10326             lt_prog_compiler_pic_CXX='-W c,exportall'
10327             ;;
10328           *)
10329             ;;
10330         esac
10331         ;;
10332       netbsd*)
10333         ;;
10334       osf3* | osf4* | osf5*)
10335         case $cc_basename in
10336           KCC)
10337             lt_prog_compiler_wl_CXX='--backend -Wl,'
10338             ;;
10339           RCC)
10340             # Rational C++ 2.4.1
10341             lt_prog_compiler_pic_CXX='-pic'
10342             ;;
10343           cxx)
10344             # Digital/Compaq C++
10345             lt_prog_compiler_wl_CXX='-Wl,'
10346             # Make sure the PIC flag is empty.  It appears that all Alpha
10347             # Linux and Compaq Tru64 Unix objects are PIC.
10348             lt_prog_compiler_pic_CXX=
10349             lt_prog_compiler_static_CXX='-non_shared'
10350             ;;
10351           *)
10352             ;;
10353         esac
10354         ;;
10355       psos*)
10356         ;;
10357       sco*)
10358         case $cc_basename in
10359           CC)
10360             lt_prog_compiler_pic_CXX='-fPIC'
10361             ;;
10362           *)
10363             ;;
10364         esac
10365         ;;
10366       solaris*)
10367         case $cc_basename in
10368           CC)
10369             # Sun C++ 4.2, 5.x and Centerline C++
10370             lt_prog_compiler_pic_CXX='-KPIC'
10371             lt_prog_compiler_static_CXX='-Bstatic'
10372             lt_prog_compiler_wl_CXX='-Qoption ld '
10373             ;;
10374           gcx)
10375             # Green Hills C++ Compiler
10376             lt_prog_compiler_pic_CXX='-PIC'
10377             ;;
10378           *)
10379             ;;
10380         esac
10381         ;;
10382       sunos4*)
10383         case $cc_basename in
10384           CC)
10385             # Sun C++ 4.x
10386             lt_prog_compiler_pic_CXX='-pic'
10387             lt_prog_compiler_static_CXX='-Bstatic'
10388             ;;
10389           lcc)
10390             # Lucid
10391             lt_prog_compiler_pic_CXX='-pic'
10392             ;;
10393           *)
10394             ;;
10395         esac
10396         ;;
10397       tandem*)
10398         case $cc_basename in
10399           NCC)
10400             # NonStop-UX NCC 3.20
10401             lt_prog_compiler_pic_CXX='-KPIC'
10402             ;;
10403           *)
10404             ;;
10405         esac
10406         ;;
10407       unixware*)
10408         ;;
10409       vxworks*)
10410         ;;
10411       *)
10412         lt_prog_compiler_can_build_shared_CXX=no
10413         ;;
10414     esac
10415   fi
10416
10417 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10418 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10419
10420 #
10421 # Check to make sure the PIC flag actually works.
10422 #
10423 if test -n "$lt_prog_compiler_pic_CXX"; then
10424   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10425 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10426 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10427   echo $ECHO_N "(cached) $ECHO_C" >&6
10428 else
10429   lt_prog_compiler_pic_works_CXX=no
10430   ac_outfile=conftest.$ac_objext
10431    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10432    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10433    # Insert the option either (1) after the last *FLAGS variable, or
10434    # (2) before a word containing "conftest.", or (3) at the end.
10435    # Note that $ac_compile itself does not contain backslashes and begins
10436    # with a dollar sign (not a hyphen), so the echo should work correctly.
10437    # The option is referenced via a variable to avoid confusing sed.
10438    lt_compile=`echo "$ac_compile" | $SED \
10439    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10440    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10441    -e 's:$: $lt_compiler_flag:'`
10442    (eval echo "\"\$as_me:10442: $lt_compile\"" >&5)
10443    (eval "$lt_compile" 2>conftest.err)
10444    ac_status=$?
10445    cat conftest.err >&5
10446    echo "$as_me:10446: \$? = $ac_status" >&5
10447    if (exit $ac_status) && test -s "$ac_outfile"; then
10448      # The compiler can only warn and ignore the option if not recognized
10449      # So say no if there are warnings
10450      if test ! -s conftest.err; then
10451        lt_prog_compiler_pic_works_CXX=yes
10452      fi
10453    fi
10454    $rm conftest*
10455
10456 fi
10457 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10458 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10459
10460 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10461     case $lt_prog_compiler_pic_CXX in
10462      "" | " "*) ;;
10463      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10464      esac
10465 else
10466     lt_prog_compiler_pic_CXX=
10467      lt_prog_compiler_can_build_shared_CXX=no
10468 fi
10469
10470 fi
10471 case "$host_os" in
10472   # For platforms which do not support PIC, -DPIC is meaningless:
10473   *djgpp*)
10474     lt_prog_compiler_pic_CXX=
10475     ;;
10476   *)
10477     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10478     ;;
10479 esac
10480
10481 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10482 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10483 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10484   echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486   lt_cv_prog_compiler_c_o_CXX=no
10487    $rm -r conftest 2>/dev/null
10488    mkdir conftest
10489    cd conftest
10490    mkdir out
10491    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10492
10493    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10494    # that will create temporary files in the current directory regardless of
10495    # the output directory.  Thus, making CWD read-only will cause this test
10496    # to fail, enabling locking or at least warning the user not to do parallel
10497    # builds.
10498    chmod -w .
10499
10500    lt_compiler_flag="-o out/conftest2.$ac_objext"
10501    # Insert the option either (1) after the last *FLAGS variable, or
10502    # (2) before a word containing "conftest.", or (3) at the end.
10503    # Note that $ac_compile itself does not contain backslashes and begins
10504    # with a dollar sign (not a hyphen), so the echo should work correctly.
10505    lt_compile=`echo "$ac_compile" | $SED \
10506    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10507    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10508    -e 's:$: $lt_compiler_flag:'`
10509    (eval echo "\"\$as_me:10509: $lt_compile\"" >&5)
10510    (eval "$lt_compile" 2>out/conftest.err)
10511    ac_status=$?
10512    cat out/conftest.err >&5
10513    echo "$as_me:10513: \$? = $ac_status" >&5
10514    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10515    then
10516      # The compiler can only warn and ignore the option if not recognized
10517      # So say no if there are warnings
10518      if test ! -s out/conftest.err; then
10519        lt_cv_prog_compiler_c_o_CXX=yes
10520      fi
10521    fi
10522    chmod u+w .
10523    $rm conftest* out/*
10524    rmdir out
10525    cd ..
10526    rmdir conftest
10527    $rm conftest*
10528
10529 fi
10530 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10531 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10532
10533
10534 hard_links="nottested"
10535 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10536   # do not overwrite the value of need_locks provided by the user
10537   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10538 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10539   hard_links=yes
10540   $rm conftest*
10541   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10542   touch conftest.a
10543   ln conftest.a conftest.b 2>&5 || hard_links=no
10544   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10545   echo "$as_me:$LINENO: result: $hard_links" >&5
10546 echo "${ECHO_T}$hard_links" >&6
10547   if test "$hard_links" = no; then
10548     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10549 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10550     need_locks=warn
10551   fi
10552 else
10553   need_locks=no
10554 fi
10555
10556 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10557 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10558
10559   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10560   case $host_os in
10561   aix4* | aix5*)
10562     # If we're using GNU nm, then we don't want the "-C" option.
10563     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10564     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10565       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'
10566     else
10567       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'
10568     fi
10569     ;;
10570   pw32*)
10571     export_symbols_cmds_CXX="$ltdll_cmds"
10572   ;;
10573   cygwin* | mingw*)
10574     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10575   ;;
10576   *)
10577     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10578   ;;
10579   esac
10580
10581 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10582 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10583 test "$ld_shlibs_CXX" = no && can_build_shared=no
10584
10585 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10586 if test "$GCC" = yes; then
10587   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10588 fi
10589
10590 #
10591 # Do we need to explicitly link libc?
10592 #
10593 case "x$archive_cmds_need_lc_CXX" in
10594 x|xyes)
10595   # Assume -lc should be added
10596   archive_cmds_need_lc_CXX=yes
10597
10598   if test "$enable_shared" = yes && test "$GCC" = yes; then
10599     case $archive_cmds_CXX in
10600     *'~'*)
10601       # FIXME: we may have to deal with multi-command sequences.
10602       ;;
10603     '$CC '*)
10604       # Test whether the compiler implicitly links with -lc since on some
10605       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10606       # to ld, don't add -lc before -lgcc.
10607       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10608 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10609       $rm conftest*
10610       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10611
10612       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10613   (eval $ac_compile) 2>&5
10614   ac_status=$?
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); } 2>conftest.err; then
10617         soname=conftest
10618         lib=conftest
10619         libobjs=conftest.$ac_objext
10620         deplibs=
10621         wl=$lt_prog_compiler_wl_CXX
10622         compiler_flags=-v
10623         linker_flags=-v
10624         verstring=
10625         output_objdir=.
10626         libname=conftest
10627         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10628         allow_undefined_flag_CXX=
10629         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10630   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10631   ac_status=$?
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); }
10634         then
10635           archive_cmds_need_lc_CXX=no
10636         else
10637           archive_cmds_need_lc_CXX=yes
10638         fi
10639         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10640       else
10641         cat conftest.err 1>&5
10642       fi
10643       $rm conftest*
10644       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10645 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10646       ;;
10647     esac
10648   fi
10649   ;;
10650 esac
10651
10652 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10653 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10654 hardcode_action_CXX=
10655 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10656    test -n "$runpath_var CXX" || \
10657    test "X$hardcode_automatic_CXX"="Xyes" ; then
10658
10659   # We can hardcode non-existant directories.
10660   if test "$hardcode_direct_CXX" != no &&
10661      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10662      # have to relink, otherwise we might link with an installed library
10663      # when we should be linking with a yet-to-be-installed one
10664      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10665      test "$hardcode_minus_L_CXX" != no; then
10666     # Linking always hardcodes the temporary library directory.
10667     hardcode_action_CXX=relink
10668   else
10669     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10670     hardcode_action_CXX=immediate
10671   fi
10672 else
10673   # We cannot hardcode anything, or else we can only hardcode existing
10674   # directories.
10675   hardcode_action_CXX=unsupported
10676 fi
10677 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10678 echo "${ECHO_T}$hardcode_action_CXX" >&6
10679
10680 if test "$hardcode_action_CXX" = relink; then
10681   # Fast installation is not supported
10682   enable_fast_install=no
10683 elif test "$shlibpath_overrides_runpath" = yes ||
10684      test "$enable_shared" = no; then
10685   # Fast installation is not necessary
10686   enable_fast_install=needless
10687 fi
10688
10689 striplib=
10690 old_striplib=
10691 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10692 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10693 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10694   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10695   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10696   echo "$as_me:$LINENO: result: yes" >&5
10697 echo "${ECHO_T}yes" >&6
10698 else
10699 # FIXME - insert some real tests, host_os isn't really good enough
10700   case $host_os in
10701    darwin*)
10702        if test -n "$STRIP" ; then
10703          striplib="$STRIP -x"
10704          echo "$as_me:$LINENO: result: yes" >&5
10705 echo "${ECHO_T}yes" >&6
10706        else
10707   echo "$as_me:$LINENO: result: no" >&5
10708 echo "${ECHO_T}no" >&6
10709 fi
10710        ;;
10711    *)
10712   echo "$as_me:$LINENO: result: no" >&5
10713 echo "${ECHO_T}no" >&6
10714     ;;
10715   esac
10716 fi
10717
10718 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10719 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10720 library_names_spec=
10721 libname_spec='lib$name'
10722 soname_spec=
10723 shrext=".so"
10724 postinstall_cmds=
10725 postuninstall_cmds=
10726 finish_cmds=
10727 finish_eval=
10728 shlibpath_var=
10729 shlibpath_overrides_runpath=unknown
10730 version_type=none
10731 dynamic_linker="$host_os ld.so"
10732 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10733 if test "$GCC" = yes; then
10734   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10735   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10736     # if the path contains ";" then we assume it to be the separator
10737     # otherwise default to the standard path separator (i.e. ":") - it is
10738     # assumed that no part of a normal pathname contains ";" but that should
10739     # okay in the real world where ";" in dirpaths is itself problematic.
10740     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10741   else
10742     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10743   fi
10744 else
10745   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10746 fi
10747 need_lib_prefix=unknown
10748 hardcode_into_libs=no
10749
10750 # when you set need_version to no, make sure it does not cause -set_version
10751 # flags to be left without arguments
10752 need_version=unknown
10753
10754 case $host_os in
10755 aix3*)
10756   version_type=linux
10757   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10758   shlibpath_var=LIBPATH
10759
10760   # AIX 3 has no versioning support, so we append a major version to the name.
10761   soname_spec='${libname}${release}${shared_ext}$major'
10762   ;;
10763
10764 aix4* | aix5*)
10765   version_type=linux
10766   need_lib_prefix=no
10767   need_version=no
10768   hardcode_into_libs=yes
10769   if test "$host_cpu" = ia64; then
10770     # AIX 5 supports IA64
10771     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10772     shlibpath_var=LD_LIBRARY_PATH
10773   else
10774     # With GCC up to 2.95.x, collect2 would create an import file
10775     # for dependence libraries.  The import file would start with
10776     # the line `#! .'.  This would cause the generated library to
10777     # depend on `.', always an invalid library.  This was fixed in
10778     # development snapshots of GCC prior to 3.0.
10779     case $host_os in
10780       aix4 | aix4.[01] | aix4.[01].*)
10781       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10782            echo ' yes '
10783            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10784         :
10785       else
10786         can_build_shared=no
10787       fi
10788       ;;
10789     esac
10790     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10791     # soname into executable. Probably we can add versioning support to
10792     # collect2, so additional links can be useful in future.
10793     if test "$aix_use_runtimelinking" = yes; then
10794       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10795       # instead of lib<name>.a to let people know that these are not
10796       # typical AIX shared libraries.
10797       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798     else
10799       # We preserve .a as extension for shared libraries through AIX4.2
10800       # and later when we are not doing run time linking.
10801       library_names_spec='${libname}${release}.a $libname.a'
10802       soname_spec='${libname}${release}${shared_ext}$major'
10803     fi
10804     shlibpath_var=LIBPATH
10805   fi
10806   ;;
10807
10808 amigaos*)
10809   library_names_spec='$libname.ixlibrary $libname.a'
10810   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10811   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'
10812   ;;
10813
10814 beos*)
10815   library_names_spec='${libname}${shared_ext}'
10816   dynamic_linker="$host_os ld.so"
10817   shlibpath_var=LIBRARY_PATH
10818   ;;
10819
10820 bsdi4*)
10821   version_type=linux
10822   need_version=no
10823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824   soname_spec='${libname}${release}${shared_ext}$major'
10825   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10826   shlibpath_var=LD_LIBRARY_PATH
10827   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10828   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10829   # the default ld.so.conf also contains /usr/contrib/lib and
10830   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10831   # libtool to hard-code these into programs
10832   ;;
10833
10834 cygwin* | mingw* | pw32*)
10835   version_type=windows
10836   shrext=".dll"
10837   need_version=no
10838   need_lib_prefix=no
10839
10840   case $GCC,$host_os in
10841   yes,cygwin* | yes,mingw* | yes,pw32*)
10842     library_names_spec='$libname.dll.a'
10843     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10844     postinstall_cmds='base_file=`basename \${file}`~
10845       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10846       dldir=$destdir/`dirname \$dlpath`~
10847       test -d \$dldir || mkdir -p \$dldir~
10848       $install_prog $dir/$dlname \$dldir/$dlname'
10849     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10850       dlpath=$dir/\$dldll~
10851        $rm \$dlpath'
10852     shlibpath_overrides_runpath=yes
10853
10854     case $host_os in
10855     cygwin*)
10856       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10857       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10858       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10859       ;;
10860     mingw*)
10861       # MinGW DLLs use traditional 'lib' prefix
10862       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10863       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10864       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10865         # It is most probably a Windows format PATH printed by
10866         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10867         # path with ; separators, and with drive letters. We can handle the
10868         # drive letters (cygwin fileutils understands them), so leave them,
10869         # especially as we might pass files found there to a mingw objdump,
10870         # which wouldn't understand a cygwinified path. Ahh.
10871         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10872       else
10873         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10874       fi
10875       ;;
10876     pw32*)
10877       # pw32 DLLs use 'pw' prefix rather than 'lib'
10878       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10879       ;;
10880     esac
10881     ;;
10882
10883   *)
10884     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10885     ;;
10886   esac
10887   dynamic_linker='Win32 ld.exe'
10888   # FIXME: first we should search . and the directory the executable is in
10889   shlibpath_var=PATH
10890   ;;
10891
10892 darwin* | rhapsody*)
10893   dynamic_linker="$host_os dyld"
10894   version_type=darwin
10895   need_lib_prefix=no
10896   need_version=no
10897   # FIXME: Relying on posixy $() will cause problems for
10898   #        cross-compilation, but unfortunately the echo tests do not
10899   #        yet detect zsh echo's removal of \ escapes.
10900   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10901   soname_spec='${libname}${release}${major}$shared_ext'
10902   shlibpath_overrides_runpath=yes
10903   shlibpath_var=DYLD_LIBRARY_PATH
10904   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10905   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10906   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10907   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"`
10908   fi
10909   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10910   ;;
10911
10912 dgux*)
10913   version_type=linux
10914   need_lib_prefix=no
10915   need_version=no
10916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10917   soname_spec='${libname}${release}${shared_ext}$major'
10918   shlibpath_var=LD_LIBRARY_PATH
10919   ;;
10920
10921 freebsd1*)
10922   dynamic_linker=no
10923   ;;
10924
10925 freebsd*)
10926   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10927   version_type=freebsd-$objformat
10928   case $version_type in
10929     freebsd-elf*)
10930       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10931       need_version=no
10932       need_lib_prefix=no
10933       ;;
10934     freebsd-*)
10935       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10936       need_version=yes
10937       ;;
10938   esac
10939   shlibpath_var=LD_LIBRARY_PATH
10940   case $host_os in
10941   freebsd2*)
10942     shlibpath_overrides_runpath=yes
10943     ;;
10944   freebsd3.01* | freebsdelf3.01*)
10945     shlibpath_overrides_runpath=yes
10946     hardcode_into_libs=yes
10947     ;;
10948   *) # from 3.2 on
10949     shlibpath_overrides_runpath=no
10950     hardcode_into_libs=yes
10951     ;;
10952   esac
10953   ;;
10954
10955 gnu*)
10956   version_type=linux
10957   need_lib_prefix=no
10958   need_version=no
10959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10960   soname_spec='${libname}${release}${shared_ext}$major'
10961   shlibpath_var=LD_LIBRARY_PATH
10962   hardcode_into_libs=yes
10963   ;;
10964
10965 hpux9* | hpux10* | hpux11*)
10966   # Give a soname corresponding to the major version so that dld.sl refuses to
10967   # link against other versions.
10968   version_type=sunos
10969   need_lib_prefix=no
10970   need_version=no
10971   case "$host_cpu" in
10972   ia64*)
10973     shrext='.so'
10974     hardcode_into_libs=yes
10975     dynamic_linker="$host_os dld.so"
10976     shlibpath_var=LD_LIBRARY_PATH
10977     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10978     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10979     soname_spec='${libname}${release}${shared_ext}$major'
10980     if test "X$HPUX_IA64_MODE" = X32; then
10981       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10982     else
10983       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10984     fi
10985     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10986     ;;
10987    hppa*64*)
10988      shrext='.sl'
10989      hardcode_into_libs=yes
10990      dynamic_linker="$host_os dld.sl"
10991      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10992      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10993      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994      soname_spec='${libname}${release}${shared_ext}$major'
10995      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10996      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10997      ;;
10998    *)
10999     shrext='.sl'
11000     dynamic_linker="$host_os dld.sl"
11001     shlibpath_var=SHLIB_PATH
11002     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11003     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11004     soname_spec='${libname}${release}${shared_ext}$major'
11005     ;;
11006   esac
11007   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11008   postinstall_cmds='chmod 555 $lib'
11009   ;;
11010
11011 irix5* | irix6* | nonstopux*)
11012   case $host_os in
11013     nonstopux*) version_type=nonstopux ;;
11014     *)
11015         if test "$lt_cv_prog_gnu_ld" = yes; then
11016                 version_type=linux
11017         else
11018                 version_type=irix
11019         fi ;;
11020   esac
11021   need_lib_prefix=no
11022   need_version=no
11023   soname_spec='${libname}${release}${shared_ext}$major'
11024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11025   case $host_os in
11026   irix5* | nonstopux*)
11027     libsuff= shlibsuff=
11028     ;;
11029   *)
11030     case $LD in # libtool.m4 will add one of these switches to LD
11031     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11032       libsuff= shlibsuff= libmagic=32-bit;;
11033     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11034       libsuff=32 shlibsuff=N32 libmagic=N32;;
11035     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11036       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11037     *) libsuff= shlibsuff= libmagic=never-match;;
11038     esac
11039     ;;
11040   esac
11041   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11042   shlibpath_overrides_runpath=no
11043   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11044   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11045   hardcode_into_libs=yes
11046   ;;
11047
11048 # No shared lib support for Linux oldld, aout, or coff.
11049 linux*oldld* | linux*aout* | linux*coff*)
11050   dynamic_linker=no
11051   ;;
11052
11053 # This must be Linux ELF.
11054 linux*)
11055   version_type=linux
11056   need_lib_prefix=no
11057   need_version=no
11058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11059   soname_spec='${libname}${release}${shared_ext}$major'
11060   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11061   shlibpath_var=LD_LIBRARY_PATH
11062   shlibpath_overrides_runpath=no
11063   # This implies no fast_install, which is unacceptable.
11064   # Some rework will be needed to allow for fast_install
11065   # before this can be enabled.
11066   hardcode_into_libs=yes
11067
11068   # We used to test for /lib/ld.so.1 and disable shared libraries on
11069   # powerpc, because MkLinux only supported shared libraries with the
11070   # GNU dynamic linker.  Since this was broken with cross compilers,
11071   # most powerpc-linux boxes support dynamic linking these days and
11072   # people can always --disable-shared, the test was removed, and we
11073   # assume the GNU/Linux dynamic linker is in use.
11074   dynamic_linker='GNU/Linux ld.so'
11075   ;;
11076
11077 netbsd*)
11078   version_type=sunos
11079   need_lib_prefix=no
11080   need_version=no
11081   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11082     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11083     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11084     dynamic_linker='NetBSD (a.out) ld.so'
11085   else
11086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11087     soname_spec='${libname}${release}${shared_ext}$major'
11088     dynamic_linker='NetBSD ld.elf_so'
11089   fi
11090   shlibpath_var=LD_LIBRARY_PATH
11091   shlibpath_overrides_runpath=yes
11092   hardcode_into_libs=yes
11093   ;;
11094
11095 newsos6)
11096   version_type=linux
11097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098   shlibpath_var=LD_LIBRARY_PATH
11099   shlibpath_overrides_runpath=yes
11100   ;;
11101
11102 nto-qnx)
11103   version_type=linux
11104   need_lib_prefix=no
11105   need_version=no
11106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107   soname_spec='${libname}${release}${shared_ext}$major'
11108   shlibpath_var=LD_LIBRARY_PATH
11109   shlibpath_overrides_runpath=yes
11110   ;;
11111
11112 openbsd*)
11113   version_type=sunos
11114   need_lib_prefix=no
11115   need_version=no
11116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11117   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11118   shlibpath_var=LD_LIBRARY_PATH
11119   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11120     case $host_os in
11121       openbsd2.[89] | openbsd2.[89].*)
11122         shlibpath_overrides_runpath=no
11123         ;;
11124       *)
11125         shlibpath_overrides_runpath=yes
11126         ;;
11127       esac
11128   else
11129     shlibpath_overrides_runpath=yes
11130   fi
11131   ;;
11132
11133 os2*)
11134   libname_spec='$name'
11135   shrext=".dll"
11136   need_lib_prefix=no
11137   library_names_spec='$libname${shared_ext} $libname.a'
11138   dynamic_linker='OS/2 ld.exe'
11139   shlibpath_var=LIBPATH
11140   ;;
11141
11142 osf3* | osf4* | osf5*)
11143   version_type=osf
11144   need_lib_prefix=no
11145   need_version=no
11146   soname_spec='${libname}${release}${shared_ext}$major'
11147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11148   shlibpath_var=LD_LIBRARY_PATH
11149   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11150   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11151   ;;
11152
11153 sco3.2v5*)
11154   version_type=osf
11155   soname_spec='${libname}${release}${shared_ext}$major'
11156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157   shlibpath_var=LD_LIBRARY_PATH
11158   ;;
11159
11160 solaris*)
11161   version_type=linux
11162   need_lib_prefix=no
11163   need_version=no
11164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165   soname_spec='${libname}${release}${shared_ext}$major'
11166   shlibpath_var=LD_LIBRARY_PATH
11167   shlibpath_overrides_runpath=yes
11168   hardcode_into_libs=yes
11169   # ldd complains unless libraries are executable
11170   postinstall_cmds='chmod +x $lib'
11171   ;;
11172
11173 sunos4*)
11174   version_type=sunos
11175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11176   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11177   shlibpath_var=LD_LIBRARY_PATH
11178   shlibpath_overrides_runpath=yes
11179   if test "$with_gnu_ld" = yes; then
11180     need_lib_prefix=no
11181   fi
11182   need_version=yes
11183   ;;
11184
11185 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11186   version_type=linux
11187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188   soname_spec='${libname}${release}${shared_ext}$major'
11189   shlibpath_var=LD_LIBRARY_PATH
11190   case $host_vendor in
11191     sni)
11192       shlibpath_overrides_runpath=no
11193       need_lib_prefix=no
11194       export_dynamic_flag_spec='${wl}-Blargedynsym'
11195       runpath_var=LD_RUN_PATH
11196       ;;
11197     siemens)
11198       need_lib_prefix=no
11199       ;;
11200     motorola)
11201       need_lib_prefix=no
11202       need_version=no
11203       shlibpath_overrides_runpath=no
11204       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11205       ;;
11206   esac
11207   ;;
11208
11209 sysv4*MP*)
11210   if test -d /usr/nec ;then
11211     version_type=linux
11212     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11213     soname_spec='$libname${shared_ext}.$major'
11214     shlibpath_var=LD_LIBRARY_PATH
11215   fi
11216   ;;
11217
11218 uts4*)
11219   version_type=linux
11220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11221   soname_spec='${libname}${release}${shared_ext}$major'
11222   shlibpath_var=LD_LIBRARY_PATH
11223   ;;
11224
11225 *)
11226   dynamic_linker=no
11227   ;;
11228 esac
11229 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11230 echo "${ECHO_T}$dynamic_linker" >&6
11231 test "$dynamic_linker" = no && can_build_shared=no
11232
11233 if test "x$enable_dlopen" != xyes; then
11234   enable_dlopen=unknown
11235   enable_dlopen_self=unknown
11236   enable_dlopen_self_static=unknown
11237 else
11238   lt_cv_dlopen=no
11239   lt_cv_dlopen_libs=
11240
11241   case $host_os in
11242   beos*)
11243     lt_cv_dlopen="load_add_on"
11244     lt_cv_dlopen_libs=
11245     lt_cv_dlopen_self=yes
11246     ;;
11247
11248   mingw* | pw32*)
11249     lt_cv_dlopen="LoadLibrary"
11250     lt_cv_dlopen_libs=
11251    ;;
11252
11253   cygwin*)
11254     lt_cv_dlopen="dlopen"
11255     lt_cv_dlopen_libs=
11256    ;;
11257
11258   darwin*)
11259   # if libdl is installed we need to link against it
11260     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11261 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11262 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11263   echo $ECHO_N "(cached) $ECHO_C" >&6
11264 else
11265   ac_check_lib_save_LIBS=$LIBS
11266 LIBS="-ldl  $LIBS"
11267 cat >conftest.$ac_ext <<_ACEOF
11268 #line $LINENO "configure"
11269 /* confdefs.h.  */
11270 _ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h.  */
11274
11275 /* Override any gcc2 internal prototype to avoid an error.  */
11276 #ifdef __cplusplus
11277 extern "C"
11278 #endif
11279 /* We use char because int might match the return type of a gcc2
11280    builtin and then its argument prototype would still apply.  */
11281 char dlopen ();
11282 int
11283 main ()
11284 {
11285 dlopen ();
11286   ;
11287   return 0;
11288 }
11289 _ACEOF
11290 rm -f conftest.$ac_objext conftest$ac_exeext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292   (eval $ac_link) 2>&5
11293   ac_status=$?
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); } &&
11296          { ac_try='test -s conftest$ac_exeext'
11297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298   (eval $ac_try) 2>&5
11299   ac_status=$?
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); }; }; then
11302   ac_cv_lib_dl_dlopen=yes
11303 else
11304   echo "$as_me: failed program was:" >&5
11305 sed 's/^/| /' conftest.$ac_ext >&5
11306
11307 ac_cv_lib_dl_dlopen=no
11308 fi
11309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11310 LIBS=$ac_check_lib_save_LIBS
11311 fi
11312 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11313 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11314 if test $ac_cv_lib_dl_dlopen = yes; then
11315   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11316 else
11317
11318     lt_cv_dlopen="dyld"
11319     lt_cv_dlopen_libs=
11320     lt_cv_dlopen_self=yes
11321
11322 fi
11323
11324    ;;
11325
11326   *)
11327     echo "$as_me:$LINENO: checking for shl_load" >&5
11328 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11329 if test "${ac_cv_func_shl_load+set}" = set; then
11330   echo $ECHO_N "(cached) $ECHO_C" >&6
11331 else
11332   cat >conftest.$ac_ext <<_ACEOF
11333 #line $LINENO "configure"
11334 /* confdefs.h.  */
11335 _ACEOF
11336 cat confdefs.h >>conftest.$ac_ext
11337 cat >>conftest.$ac_ext <<_ACEOF
11338 /* end confdefs.h.  */
11339 /* System header to define __stub macros and hopefully few prototypes,
11340     which can conflict with char shl_load (); below.
11341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11342     <limits.h> exists even on freestanding compilers.  */
11343 #ifdef __STDC__
11344 # include <limits.h>
11345 #else
11346 # include <assert.h>
11347 #endif
11348 /* Override any gcc2 internal prototype to avoid an error.  */
11349 #ifdef __cplusplus
11350 extern "C"
11351 {
11352 #endif
11353 /* We use char because int might match the return type of a gcc2
11354    builtin and then its argument prototype would still apply.  */
11355 char shl_load ();
11356 /* The GNU C library defines this for functions which it implements
11357     to always fail with ENOSYS.  Some functions are actually named
11358     something starting with __ and the normal name is an alias.  */
11359 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11360 choke me
11361 #else
11362 char (*f) () = shl_load;
11363 #endif
11364 #ifdef __cplusplus
11365 }
11366 #endif
11367
11368 int
11369 main ()
11370 {
11371 return f != shl_load;
11372   ;
11373   return 0;
11374 }
11375 _ACEOF
11376 rm -f conftest.$ac_objext conftest$ac_exeext
11377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11378   (eval $ac_link) 2>&5
11379   ac_status=$?
11380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381   (exit $ac_status); } &&
11382          { ac_try='test -s conftest$ac_exeext'
11383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384   (eval $ac_try) 2>&5
11385   ac_status=$?
11386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387   (exit $ac_status); }; }; then
11388   ac_cv_func_shl_load=yes
11389 else
11390   echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11392
11393 ac_cv_func_shl_load=no
11394 fi
11395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11396 fi
11397 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11398 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11399 if test $ac_cv_func_shl_load = yes; then
11400   lt_cv_dlopen="shl_load"
11401 else
11402   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11403 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11404 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11405   echo $ECHO_N "(cached) $ECHO_C" >&6
11406 else
11407   ac_check_lib_save_LIBS=$LIBS
11408 LIBS="-ldld  $LIBS"
11409 cat >conftest.$ac_ext <<_ACEOF
11410 #line $LINENO "configure"
11411 /* confdefs.h.  */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h.  */
11416
11417 /* Override any gcc2 internal prototype to avoid an error.  */
11418 #ifdef __cplusplus
11419 extern "C"
11420 #endif
11421 /* We use char because int might match the return type of a gcc2
11422    builtin and then its argument prototype would still apply.  */
11423 char shl_load ();
11424 int
11425 main ()
11426 {
11427 shl_load ();
11428   ;
11429   return 0;
11430 }
11431 _ACEOF
11432 rm -f conftest.$ac_objext conftest$ac_exeext
11433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11434   (eval $ac_link) 2>&5
11435   ac_status=$?
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); } &&
11438          { ac_try='test -s conftest$ac_exeext'
11439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440   (eval $ac_try) 2>&5
11441   ac_status=$?
11442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443   (exit $ac_status); }; }; then
11444   ac_cv_lib_dld_shl_load=yes
11445 else
11446   echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11448
11449 ac_cv_lib_dld_shl_load=no
11450 fi
11451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11452 LIBS=$ac_check_lib_save_LIBS
11453 fi
11454 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11455 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11456 if test $ac_cv_lib_dld_shl_load = yes; then
11457   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11458 else
11459   echo "$as_me:$LINENO: checking for dlopen" >&5
11460 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11461 if test "${ac_cv_func_dlopen+set}" = set; then
11462   echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464   cat >conftest.$ac_ext <<_ACEOF
11465 #line $LINENO "configure"
11466 /* confdefs.h.  */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h.  */
11471 /* System header to define __stub macros and hopefully few prototypes,
11472     which can conflict with char dlopen (); below.
11473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11474     <limits.h> exists even on freestanding compilers.  */
11475 #ifdef __STDC__
11476 # include <limits.h>
11477 #else
11478 # include <assert.h>
11479 #endif
11480 /* Override any gcc2 internal prototype to avoid an error.  */
11481 #ifdef __cplusplus
11482 extern "C"
11483 {
11484 #endif
11485 /* We use char because int might match the return type of a gcc2
11486    builtin and then its argument prototype would still apply.  */
11487 char dlopen ();
11488 /* The GNU C library defines this for functions which it implements
11489     to always fail with ENOSYS.  Some functions are actually named
11490     something starting with __ and the normal name is an alias.  */
11491 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11492 choke me
11493 #else
11494 char (*f) () = dlopen;
11495 #endif
11496 #ifdef __cplusplus
11497 }
11498 #endif
11499
11500 int
11501 main ()
11502 {
11503 return f != dlopen;
11504   ;
11505   return 0;
11506 }
11507 _ACEOF
11508 rm -f conftest.$ac_objext conftest$ac_exeext
11509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11510   (eval $ac_link) 2>&5
11511   ac_status=$?
11512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513   (exit $ac_status); } &&
11514          { ac_try='test -s conftest$ac_exeext'
11515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516   (eval $ac_try) 2>&5
11517   ac_status=$?
11518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519   (exit $ac_status); }; }; then
11520   ac_cv_func_dlopen=yes
11521 else
11522   echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11524
11525 ac_cv_func_dlopen=no
11526 fi
11527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11528 fi
11529 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11530 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11531 if test $ac_cv_func_dlopen = yes; then
11532   lt_cv_dlopen="dlopen"
11533 else
11534   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11535 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11536 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11537   echo $ECHO_N "(cached) $ECHO_C" >&6
11538 else
11539   ac_check_lib_save_LIBS=$LIBS
11540 LIBS="-ldl  $LIBS"
11541 cat >conftest.$ac_ext <<_ACEOF
11542 #line $LINENO "configure"
11543 /* confdefs.h.  */
11544 _ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h.  */
11548
11549 /* Override any gcc2 internal prototype to avoid an error.  */
11550 #ifdef __cplusplus
11551 extern "C"
11552 #endif
11553 /* We use char because int might match the return type of a gcc2
11554    builtin and then its argument prototype would still apply.  */
11555 char dlopen ();
11556 int
11557 main ()
11558 {
11559 dlopen ();
11560   ;
11561   return 0;
11562 }
11563 _ACEOF
11564 rm -f conftest.$ac_objext conftest$ac_exeext
11565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11566   (eval $ac_link) 2>&5
11567   ac_status=$?
11568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569   (exit $ac_status); } &&
11570          { ac_try='test -s conftest$ac_exeext'
11571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572   (eval $ac_try) 2>&5
11573   ac_status=$?
11574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575   (exit $ac_status); }; }; then
11576   ac_cv_lib_dl_dlopen=yes
11577 else
11578   echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11580
11581 ac_cv_lib_dl_dlopen=no
11582 fi
11583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11584 LIBS=$ac_check_lib_save_LIBS
11585 fi
11586 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11587 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11588 if test $ac_cv_lib_dl_dlopen = yes; then
11589   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11590 else
11591   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11592 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11593 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11594   echo $ECHO_N "(cached) $ECHO_C" >&6
11595 else
11596   ac_check_lib_save_LIBS=$LIBS
11597 LIBS="-lsvld  $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_svld_dlopen=yes
11634 else
11635   echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.$ac_ext >&5
11637
11638 ac_cv_lib_svld_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_svld_dlopen" >&5
11644 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11645 if test $ac_cv_lib_svld_dlopen = yes; then
11646   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11647 else
11648   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11649 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11650 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11651   echo $ECHO_N "(cached) $ECHO_C" >&6
11652 else
11653   ac_check_lib_save_LIBS=$LIBS
11654 LIBS="-ldld  $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 dld_link ();
11670 int
11671 main ()
11672 {
11673 dld_link ();
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_dld_dld_link=yes
11691 else
11692   echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11694
11695 ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
11701 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11702 if test $ac_cv_lib_dld_dld_link = yes; then
11703   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11704 fi
11705
11706
11707 fi
11708
11709
11710 fi
11711
11712
11713 fi
11714
11715
11716 fi
11717
11718
11719 fi
11720
11721     ;;
11722   esac
11723
11724   if test "x$lt_cv_dlopen" != xno; then
11725     enable_dlopen=yes
11726   else
11727     enable_dlopen=no
11728   fi
11729
11730   case $lt_cv_dlopen in
11731   dlopen)
11732     save_CPPFLAGS="$CPPFLAGS"
11733     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11734
11735     save_LDFLAGS="$LDFLAGS"
11736     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11737
11738     save_LIBS="$LIBS"
11739     LIBS="$lt_cv_dlopen_libs $LIBS"
11740
11741     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11742 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11743 if test "${lt_cv_dlopen_self+set}" = set; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746           if test "$cross_compiling" = yes; then :
11747   lt_cv_dlopen_self=cross
11748 else
11749   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11750   lt_status=$lt_dlunknown
11751   cat > conftest.$ac_ext <<EOF
11752 #line 11752 "configure"
11753 #include "confdefs.h"
11754
11755 #if HAVE_DLFCN_H
11756 #include <dlfcn.h>
11757 #endif
11758
11759 #include <stdio.h>
11760
11761 #ifdef RTLD_GLOBAL
11762 #  define LT_DLGLOBAL           RTLD_GLOBAL
11763 #else
11764 #  ifdef DL_GLOBAL
11765 #    define LT_DLGLOBAL         DL_GLOBAL
11766 #  else
11767 #    define LT_DLGLOBAL         0
11768 #  endif
11769 #endif
11770
11771 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11772    find out it does not work in some platform. */
11773 #ifndef LT_DLLAZY_OR_NOW
11774 #  ifdef RTLD_LAZY
11775 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11776 #  else
11777 #    ifdef DL_LAZY
11778 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11779 #    else
11780 #      ifdef RTLD_NOW
11781 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11782 #      else
11783 #        ifdef DL_NOW
11784 #          define LT_DLLAZY_OR_NOW      DL_NOW
11785 #        else
11786 #          define LT_DLLAZY_OR_NOW      0
11787 #        endif
11788 #      endif
11789 #    endif
11790 #  endif
11791 #endif
11792
11793 #ifdef __cplusplus
11794 extern "C" void exit (int);
11795 #endif
11796
11797 void fnord() { int i=42;}
11798 int main ()
11799 {
11800   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11801   int status = $lt_dlunknown;
11802
11803   if (self)
11804     {
11805       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11806       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11807       /* dlclose (self); */
11808     }
11809
11810     exit (status);
11811 }
11812 EOF
11813   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11814   (eval $ac_link) 2>&5
11815   ac_status=$?
11816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11818     (./conftest; exit; ) 2>/dev/null
11819     lt_status=$?
11820     case x$lt_status in
11821       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11822       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11823       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11824     esac
11825   else :
11826     # compilation failed
11827     lt_cv_dlopen_self=no
11828   fi
11829 fi
11830 rm -fr conftest*
11831
11832
11833 fi
11834 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11835 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11836
11837     if test "x$lt_cv_dlopen_self" = xyes; then
11838       LDFLAGS="$LDFLAGS $link_static_flag"
11839       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11840 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11841 if test "${lt_cv_dlopen_self_static+set}" = set; then
11842   echo $ECHO_N "(cached) $ECHO_C" >&6
11843 else
11844           if test "$cross_compiling" = yes; then :
11845   lt_cv_dlopen_self_static=cross
11846 else
11847   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11848   lt_status=$lt_dlunknown
11849   cat > conftest.$ac_ext <<EOF
11850 #line 11850 "configure"
11851 #include "confdefs.h"
11852
11853 #if HAVE_DLFCN_H
11854 #include <dlfcn.h>
11855 #endif
11856
11857 #include <stdio.h>
11858
11859 #ifdef RTLD_GLOBAL
11860 #  define LT_DLGLOBAL           RTLD_GLOBAL
11861 #else
11862 #  ifdef DL_GLOBAL
11863 #    define LT_DLGLOBAL         DL_GLOBAL
11864 #  else
11865 #    define LT_DLGLOBAL         0
11866 #  endif
11867 #endif
11868
11869 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11870    find out it does not work in some platform. */
11871 #ifndef LT_DLLAZY_OR_NOW
11872 #  ifdef RTLD_LAZY
11873 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11874 #  else
11875 #    ifdef DL_LAZY
11876 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11877 #    else
11878 #      ifdef RTLD_NOW
11879 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11880 #      else
11881 #        ifdef DL_NOW
11882 #          define LT_DLLAZY_OR_NOW      DL_NOW
11883 #        else
11884 #          define LT_DLLAZY_OR_NOW      0
11885 #        endif
11886 #      endif
11887 #    endif
11888 #  endif
11889 #endif
11890
11891 #ifdef __cplusplus
11892 extern "C" void exit (int);
11893 #endif
11894
11895 void fnord() { int i=42;}
11896 int main ()
11897 {
11898   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11899   int status = $lt_dlunknown;
11900
11901   if (self)
11902     {
11903       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11904       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11905       /* dlclose (self); */
11906     }
11907
11908     exit (status);
11909 }
11910 EOF
11911   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11912   (eval $ac_link) 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11916     (./conftest; exit; ) 2>/dev/null
11917     lt_status=$?
11918     case x$lt_status in
11919       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11920       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11921       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11922     esac
11923   else :
11924     # compilation failed
11925     lt_cv_dlopen_self_static=no
11926   fi
11927 fi
11928 rm -fr conftest*
11929
11930
11931 fi
11932 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11933 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11934     fi
11935
11936     CPPFLAGS="$save_CPPFLAGS"
11937     LDFLAGS="$save_LDFLAGS"
11938     LIBS="$save_LIBS"
11939     ;;
11940   esac
11941
11942   case $lt_cv_dlopen_self in
11943   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11944   *) enable_dlopen_self=unknown ;;
11945   esac
11946
11947   case $lt_cv_dlopen_self_static in
11948   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11949   *) enable_dlopen_self_static=unknown ;;
11950   esac
11951 fi
11952
11953
11954 # The else clause should only fire when bootstrapping the
11955 # libtool distribution, otherwise you forgot to ship ltmain.sh
11956 # with your package, and you will get complaints that there are
11957 # no rules to generate ltmain.sh.
11958 if test -f "$ltmain"; then
11959   # See if we are running on zsh, and set the options which allow our commands through
11960   # without removal of \ escapes.
11961   if test -n "${ZSH_VERSION+set}" ; then
11962     setopt NO_GLOB_SUBST
11963   fi
11964   # Now quote all the things that may contain metacharacters while being
11965   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11966   # variables and quote the copies for generation of the libtool script.
11967   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11968     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11969     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11970     deplibs_check_method reload_flag reload_cmds need_locks \
11971     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11972     lt_cv_sys_global_symbol_to_c_name_address \
11973     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11974     old_postinstall_cmds old_postuninstall_cmds \
11975     compiler_CXX \
11976     CC_CXX \
11977     LD_CXX \
11978     lt_prog_compiler_wl_CXX \
11979     lt_prog_compiler_pic_CXX \
11980     lt_prog_compiler_static_CXX \
11981     lt_prog_compiler_no_builtin_flag_CXX \
11982     export_dynamic_flag_spec_CXX \
11983     thread_safe_flag_spec_CXX \
11984     whole_archive_flag_spec_CXX \
11985     enable_shared_with_static_runtimes_CXX \
11986     old_archive_cmds_CXX \
11987     old_archive_from_new_cmds_CXX \
11988     predep_objects_CXX \
11989     postdep_objects_CXX \
11990     predeps_CXX \
11991     postdeps_CXX \
11992     compiler_lib_search_path_CXX \
11993     archive_cmds_CXX \
11994     archive_expsym_cmds_CXX \
11995     postinstall_cmds_CXX \
11996     postuninstall_cmds_CXX \
11997     old_archive_from_expsyms_cmds_CXX \
11998     allow_undefined_flag_CXX \
11999     no_undefined_flag_CXX \
12000     export_symbols_cmds_CXX \
12001     hardcode_libdir_flag_spec_CXX \
12002     hardcode_libdir_flag_spec_ld_CXX \
12003     hardcode_libdir_separator_CXX \
12004     hardcode_automatic_CXX \
12005     module_cmds_CXX \
12006     module_expsym_cmds_CXX \
12007     lt_cv_prog_compiler_c_o_CXX \
12008     exclude_expsyms_CXX \
12009     include_expsyms_CXX; do
12010
12011     case $var in
12012     old_archive_cmds_CXX | \
12013     old_archive_from_new_cmds_CXX | \
12014     archive_cmds_CXX | \
12015     archive_expsym_cmds_CXX | \
12016     module_cmds_CXX | \
12017     module_expsym_cmds_CXX | \
12018     old_archive_from_expsyms_cmds_CXX | \
12019     export_symbols_cmds_CXX | \
12020     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12021     postinstall_cmds | postuninstall_cmds | \
12022     old_postinstall_cmds | old_postuninstall_cmds | \
12023     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12024       # Double-quote double-evaled strings.
12025       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12026       ;;
12027     *)
12028       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12029       ;;
12030     esac
12031   done
12032
12033   case $lt_echo in
12034   *'\$0 --fallback-echo"')
12035     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12036     ;;
12037   esac
12038
12039 cfgfile="$ofile"
12040
12041   cat <<__EOF__ >> "$cfgfile"
12042 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12043
12044 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12045
12046 # Shell to use when invoking shell scripts.
12047 SHELL=$lt_SHELL
12048
12049 # Whether or not to build shared libraries.
12050 build_libtool_libs=$enable_shared
12051
12052 # Whether or not to build static libraries.
12053 build_old_libs=$enable_static
12054
12055 # Whether or not to add -lc for building shared libraries.
12056 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12057
12058 # Whether or not to disallow shared libs when runtime libs are static
12059 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12060
12061 # Whether or not to optimize for fast installation.
12062 fast_install=$enable_fast_install
12063
12064 # The host system.
12065 host_alias=$host_alias
12066 host=$host
12067
12068 # An echo program that does not interpret backslashes.
12069 echo=$lt_echo
12070
12071 # The archiver.
12072 AR=$lt_AR
12073 AR_FLAGS=$lt_AR_FLAGS
12074
12075 # A C compiler.
12076 LTCC=$lt_LTCC
12077
12078 # A language-specific compiler.
12079 CC=$lt_compiler_CXX
12080
12081 # Is the compiler the GNU C compiler?
12082 with_gcc=$GCC_CXX
12083
12084 # An ERE matcher.
12085 EGREP=$lt_EGREP
12086
12087 # The linker used to build libraries.
12088 LD=$lt_LD_CXX
12089
12090 # Whether we need hard or soft links.
12091 LN_S=$lt_LN_S
12092
12093 # A BSD-compatible nm program.
12094 NM=$lt_NM
12095
12096 # A symbol stripping program
12097 STRIP=$STRIP
12098
12099 # Used to examine libraries when file_magic_cmd begins "file"
12100 MAGIC_CMD=$MAGIC_CMD
12101
12102 # Used on cygwin: DLL creation program.
12103 DLLTOOL="$DLLTOOL"
12104
12105 # Used on cygwin: object dumper.
12106 OBJDUMP="$OBJDUMP"
12107
12108 # Used on cygwin: assembler.
12109 AS="$AS"
12110
12111 # The name of the directory that contains temporary libtool files.
12112 objdir=$objdir
12113
12114 # How to create reloadable object files.
12115 reload_flag=$lt_reload_flag
12116 reload_cmds=$lt_reload_cmds
12117
12118 # How to pass a linker flag through the compiler.
12119 wl=$lt_lt_prog_compiler_wl_CXX
12120
12121 # Object file suffix (normally "o").
12122 objext="$ac_objext"
12123
12124 # Old archive suffix (normally "a").
12125 libext="$libext"
12126
12127 # Shared library suffix (normally ".so").
12128 shrext='$shrext'
12129
12130 # Executable file suffix (normally "").
12131 exeext="$exeext"
12132
12133 # Additional compiler flags for building library objects.
12134 pic_flag=$lt_lt_prog_compiler_pic_CXX
12135 pic_mode=$pic_mode
12136
12137 # What is the maximum length of a command?
12138 max_cmd_len=$lt_cv_sys_max_cmd_len
12139
12140 # Does compiler simultaneously support -c and -o options?
12141 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12142
12143 # Must we lock files when doing compilation ?
12144 need_locks=$lt_need_locks
12145
12146 # Do we need the lib prefix for modules?
12147 need_lib_prefix=$need_lib_prefix
12148
12149 # Do we need a version for libraries?
12150 need_version=$need_version
12151
12152 # Whether dlopen is supported.
12153 dlopen_support=$enable_dlopen
12154
12155 # Whether dlopen of programs is supported.
12156 dlopen_self=$enable_dlopen_self
12157
12158 # Whether dlopen of statically linked programs is supported.
12159 dlopen_self_static=$enable_dlopen_self_static
12160
12161 # Compiler flag to prevent dynamic linking.
12162 link_static_flag=$lt_lt_prog_compiler_static_CXX
12163
12164 # Compiler flag to turn off builtin functions.
12165 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12166
12167 # Compiler flag to allow reflexive dlopens.
12168 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12169
12170 # Compiler flag to generate shared objects directly from archives.
12171 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12172
12173 # Compiler flag to generate thread-safe objects.
12174 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12175
12176 # Library versioning type.
12177 version_type=$version_type
12178
12179 # Format of library name prefix.
12180 libname_spec=$lt_libname_spec
12181
12182 # List of archive names.  First name is the real one, the rest are links.
12183 # The last name is the one that the linker finds with -lNAME.
12184 library_names_spec=$lt_library_names_spec
12185
12186 # The coded name of the library, if different from the real name.
12187 soname_spec=$lt_soname_spec
12188
12189 # Commands used to build and install an old-style archive.
12190 RANLIB=$lt_RANLIB
12191 old_archive_cmds=$lt_old_archive_cmds_CXX
12192 old_postinstall_cmds=$lt_old_postinstall_cmds
12193 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12194
12195 # Create an old-style archive from a shared archive.
12196 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12197
12198 # Create a temporary old-style archive to link instead of a shared archive.
12199 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12200
12201 # Commands used to build and install a shared archive.
12202 archive_cmds=$lt_archive_cmds_CXX
12203 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12204 postinstall_cmds=$lt_postinstall_cmds
12205 postuninstall_cmds=$lt_postuninstall_cmds
12206
12207 # Commands used to build a loadable module (assumed same as above if empty)
12208 module_cmds=$lt_module_cmds_CXX
12209 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12210
12211 # Commands to strip libraries.
12212 old_striplib=$lt_old_striplib
12213 striplib=$lt_striplib
12214
12215 # Dependencies to place before the objects being linked to create a
12216 # shared library.
12217 predep_objects=$lt_predep_objects_CXX
12218
12219 # Dependencies to place after the objects being linked to create a
12220 # shared library.
12221 postdep_objects=$lt_postdep_objects_CXX
12222
12223 # Dependencies to place before the objects being linked to create a
12224 # shared library.
12225 predeps=$lt_predeps_CXX
12226
12227 # Dependencies to place after the objects being linked to create a
12228 # shared library.
12229 postdeps=$lt_postdeps_CXX
12230
12231 # The library search path used internally by the compiler when linking
12232 # a shared library.
12233 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12234
12235 # Method to check whether dependent libraries are shared objects.
12236 deplibs_check_method=$lt_deplibs_check_method
12237
12238 # Command to use when deplibs_check_method == file_magic.
12239 file_magic_cmd=$lt_file_magic_cmd
12240
12241 # Flag that allows shared libraries with undefined symbols to be built.
12242 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12243
12244 # Flag that forces no undefined symbols.
12245 no_undefined_flag=$lt_no_undefined_flag_CXX
12246
12247 # Commands used to finish a libtool library installation in a directory.
12248 finish_cmds=$lt_finish_cmds
12249
12250 # Same as above, but a single script fragment to be evaled but not shown.
12251 finish_eval=$lt_finish_eval
12252
12253 # Take the output of nm and produce a listing of raw symbols and C names.
12254 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12255
12256 # Transform the output of nm in a proper C declaration
12257 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12258
12259 # Transform the output of nm in a C name address pair
12260 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12261
12262 # This is the shared library runtime path variable.
12263 runpath_var=$runpath_var
12264
12265 # This is the shared library path variable.
12266 shlibpath_var=$shlibpath_var
12267
12268 # Is shlibpath searched before the hard-coded library search path?
12269 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12270
12271 # How to hardcode a shared library path into an executable.
12272 hardcode_action=$hardcode_action_CXX
12273
12274 # Whether we should hardcode library paths into libraries.
12275 hardcode_into_libs=$hardcode_into_libs
12276
12277 # Flag to hardcode \$libdir into a binary during linking.
12278 # This must work even if \$libdir does not exist.
12279 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12280
12281 # If ld is used when linking, flag to hardcode \$libdir into
12282 # a binary during linking. This must work even if \$libdir does
12283 # not exist.
12284 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12285
12286 # Whether we need a single -rpath flag with a separated argument.
12287 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12288
12289 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12290 # resulting binary.
12291 hardcode_direct=$hardcode_direct_CXX
12292
12293 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12294 # resulting binary.
12295 hardcode_minus_L=$hardcode_minus_L_CXX
12296
12297 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12298 # the resulting binary.
12299 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12300
12301 # Set to yes if building a shared library automatically hardcodes DIR into the library
12302 # and all subsequent libraries and executables linked against it.
12303 hardcode_automatic=$hardcode_automatic_CXX
12304
12305 # Variables whose values should be saved in libtool wrapper scripts and
12306 # restored at relink time.
12307 variables_saved_for_relink="$variables_saved_for_relink"
12308
12309 # Whether libtool must link a program against all its dependency libraries.
12310 link_all_deplibs=$link_all_deplibs_CXX
12311
12312 # Compile-time system search path for libraries
12313 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12314
12315 # Run-time system search path for libraries
12316 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12317
12318 # Fix the shell variable \$srcfile for the compiler.
12319 fix_srcfile_path="$fix_srcfile_path_CXX"
12320
12321 # Set to yes if exported symbols are required.
12322 always_export_symbols=$always_export_symbols_CXX
12323
12324 # The commands to list exported symbols.
12325 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12326
12327 # The commands to extract the exported symbol list from a shared archive.
12328 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12329
12330 # Symbols that should not be listed in the preloaded symbols.
12331 exclude_expsyms=$lt_exclude_expsyms_CXX
12332
12333 # Symbols that must always be exported.
12334 include_expsyms=$lt_include_expsyms_CXX
12335
12336 # ### END LIBTOOL TAG CONFIG: $tagname
12337
12338 __EOF__
12339
12340
12341 else
12342   # If there is no Makefile yet, we rely on a make rule to execute
12343   # `config.status --recheck' to rerun these tests and create the
12344   # libtool script then.
12345   test -f Makefile && make "$ltmain"
12346 fi
12347
12348
12349 ac_ext=c
12350 ac_cpp='$CPP $CPPFLAGS'
12351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12354
12355 CC=$lt_save_CC
12356 LDCXX=$LD
12357 LD=$lt_save_LD
12358 GCC=$lt_save_GCC
12359 with_gnu_ldcxx=$with_gnu_ld
12360 with_gnu_ld=$lt_save_with_gnu_ld
12361 lt_cv_path_LDCXX=$lt_cv_path_LD
12362 lt_cv_path_LD=$lt_save_path_LD
12363 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12364 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12365
12366         else
12367           tagname=""
12368         fi
12369         ;;
12370
12371       F77)
12372         if test -n "$F77" && test "X$F77" != "Xno"; then
12373
12374 ac_ext=f
12375 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12376 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12377 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12378
12379
12380 archive_cmds_need_lc_F77=no
12381 allow_undefined_flag_F77=
12382 always_export_symbols_F77=no
12383 archive_expsym_cmds_F77=
12384 export_dynamic_flag_spec_F77=
12385 hardcode_direct_F77=no
12386 hardcode_libdir_flag_spec_F77=
12387 hardcode_libdir_flag_spec_ld_F77=
12388 hardcode_libdir_separator_F77=
12389 hardcode_minus_L_F77=no
12390 hardcode_automatic_F77=no
12391 module_cmds_F77=
12392 module_expsym_cmds_F77=
12393 link_all_deplibs_F77=unknown
12394 old_archive_cmds_F77=$old_archive_cmds
12395 no_undefined_flag_F77=
12396 whole_archive_flag_spec_F77=
12397 enable_shared_with_static_runtimes_F77=no
12398
12399 # Source file extension for f77 test sources.
12400 ac_ext=f
12401
12402 # Object file extension for compiled f77 test sources.
12403 objext=o
12404 objext_F77=$objext
12405
12406 # Code to be used in simple compile tests
12407 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12408
12409 # Code to be used in simple link tests
12410 lt_simple_link_test_code="      program t\n      end\n"
12411
12412 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12413
12414 # If no C compiler was specified, use CC.
12415 LTCC=${LTCC-"$CC"}
12416
12417 # Allow CC to be a program name with arguments.
12418 compiler=$CC
12419
12420
12421 # Allow CC to be a program name with arguments.
12422 lt_save_CC="$CC"
12423 CC=${F77-"f77"}
12424 compiler=$CC
12425 compiler_F77=$CC
12426 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12427
12428 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12429 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12430 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12431 echo "${ECHO_T}$can_build_shared" >&6
12432
12433 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12434 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12435 test "$can_build_shared" = "no" && enable_shared=no
12436
12437 # On AIX, shared libraries and static libraries use the same namespace, and
12438 # are all built from PIC.
12439 case "$host_os" in
12440 aix3*)
12441   test "$enable_shared" = yes && enable_static=no
12442   if test -n "$RANLIB"; then
12443     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12444     postinstall_cmds='$RANLIB $lib'
12445   fi
12446   ;;
12447 aix4*)
12448   test "$enable_shared" = yes && enable_static=no
12449   ;;
12450 esac
12451 echo "$as_me:$LINENO: result: $enable_shared" >&5
12452 echo "${ECHO_T}$enable_shared" >&6
12453
12454 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12455 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12456 # Make sure either enable_shared or enable_static is yes.
12457 test "$enable_shared" = yes || enable_static=yes
12458 echo "$as_me:$LINENO: result: $enable_static" >&5
12459 echo "${ECHO_T}$enable_static" >&6
12460
12461 test "$ld_shlibs_F77" = no && can_build_shared=no
12462
12463 GCC_F77="$G77"
12464 LD_F77="$LD"
12465
12466 lt_prog_compiler_wl_F77=
12467 lt_prog_compiler_pic_F77=
12468 lt_prog_compiler_static_F77=
12469
12470 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12471 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12472
12473   if test "$GCC" = yes; then
12474     lt_prog_compiler_wl_F77='-Wl,'
12475     lt_prog_compiler_static_F77='-static'
12476
12477     case $host_os in
12478       aix*)
12479       # All AIX code is PIC.
12480       if test "$host_cpu" = ia64; then
12481         # AIX 5 now supports IA64 processor
12482         lt_prog_compiler_static_F77='-Bstatic'
12483       fi
12484       ;;
12485
12486     amigaos*)
12487       # FIXME: we need at least 68020 code to build shared libraries, but
12488       # adding the `-m68020' flag to GCC prevents building anything better,
12489       # like `-m68040'.
12490       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12491       ;;
12492
12493     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12494       # PIC is the default for these OSes.
12495       ;;
12496
12497     mingw* | pw32* | os2*)
12498       # This hack is so that the source file can tell whether it is being
12499       # built for inclusion in a dll (and should export symbols for example).
12500       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12501       ;;
12502
12503     darwin* | rhapsody*)
12504       # PIC is the default on this platform
12505       # Common symbols not allowed in MH_DYLIB files
12506       lt_prog_compiler_pic_F77='-fno-common'
12507       ;;
12508
12509     msdosdjgpp*)
12510       # Just because we use GCC doesn't mean we suddenly get shared libraries
12511       # on systems that don't support them.
12512       lt_prog_compiler_can_build_shared_F77=no
12513       enable_shared=no
12514       ;;
12515
12516     sysv4*MP*)
12517       if test -d /usr/nec; then
12518         lt_prog_compiler_pic_F77=-Kconform_pic
12519       fi
12520       ;;
12521
12522     hpux*)
12523       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12524       # not for PA HP-UX.
12525       case "$host_cpu" in
12526       hppa*64*|ia64*)
12527         # +Z the default
12528         ;;
12529       *)
12530         lt_prog_compiler_pic_F77='-fPIC'
12531         ;;
12532       esac
12533       ;;
12534
12535     *)
12536       lt_prog_compiler_pic_F77='-fPIC'
12537       ;;
12538     esac
12539   else
12540     # PORTME Check for flag to pass linker flags through the system compiler.
12541     case $host_os in
12542     aix*)
12543       lt_prog_compiler_wl_F77='-Wl,'
12544       if test "$host_cpu" = ia64; then
12545         # AIX 5 now supports IA64 processor
12546         lt_prog_compiler_static_F77='-Bstatic'
12547       else
12548         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12549       fi
12550       ;;
12551
12552     mingw* | pw32* | os2*)
12553       # This hack is so that the source file can tell whether it is being
12554       # built for inclusion in a dll (and should export symbols for example).
12555       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12556       ;;
12557
12558     hpux9* | hpux10* | hpux11*)
12559       lt_prog_compiler_wl_F77='-Wl,'
12560       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12561       # not for PA HP-UX.
12562       case "$host_cpu" in
12563       hppa*64*|ia64*)
12564         # +Z the default
12565         ;;
12566       *)
12567         lt_prog_compiler_pic_F77='+Z'
12568         ;;
12569       esac
12570       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12571       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12572       ;;
12573
12574     irix5* | irix6* | nonstopux*)
12575       lt_prog_compiler_wl_F77='-Wl,'
12576       # PIC (with -KPIC) is the default.
12577       lt_prog_compiler_static_F77='-non_shared'
12578       ;;
12579
12580     newsos6)
12581       lt_prog_compiler_pic_F77='-KPIC'
12582       lt_prog_compiler_static_F77='-Bstatic'
12583       ;;
12584
12585     linux*)
12586       case $CC in
12587       icc|ecc)
12588         lt_prog_compiler_wl_F77='-Wl,'
12589         lt_prog_compiler_pic_F77='-KPIC'
12590         lt_prog_compiler_static_F77='-static'
12591         ;;
12592       ccc)
12593         lt_prog_compiler_wl_F77='-Wl,'
12594         # All Alpha code is PIC.
12595         lt_prog_compiler_static_F77='-non_shared'
12596         ;;
12597       esac
12598       ;;
12599
12600     osf3* | osf4* | osf5*)
12601       lt_prog_compiler_wl_F77='-Wl,'
12602       # All OSF/1 code is PIC.
12603       lt_prog_compiler_static_F77='-non_shared'
12604       ;;
12605
12606     sco3.2v5*)
12607       lt_prog_compiler_pic_F77='-Kpic'
12608       lt_prog_compiler_static_F77='-dn'
12609       ;;
12610
12611     solaris*)
12612       lt_prog_compiler_wl_F77='-Wl,'
12613       lt_prog_compiler_pic_F77='-KPIC'
12614       lt_prog_compiler_static_F77='-Bstatic'
12615       ;;
12616
12617     sunos4*)
12618       lt_prog_compiler_wl_F77='-Qoption ld '
12619       lt_prog_compiler_pic_F77='-PIC'
12620       lt_prog_compiler_static_F77='-Bstatic'
12621       ;;
12622
12623     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12624       lt_prog_compiler_wl_F77='-Wl,'
12625       lt_prog_compiler_pic_F77='-KPIC'
12626       lt_prog_compiler_static_F77='-Bstatic'
12627       ;;
12628
12629     sysv4*MP*)
12630       if test -d /usr/nec ;then
12631         lt_prog_compiler_pic_F77='-Kconform_pic'
12632         lt_prog_compiler_static_F77='-Bstatic'
12633       fi
12634       ;;
12635
12636     uts4*)
12637       lt_prog_compiler_pic_F77='-pic'
12638       lt_prog_compiler_static_F77='-Bstatic'
12639       ;;
12640
12641     *)
12642       lt_prog_compiler_can_build_shared_F77=no
12643       ;;
12644     esac
12645   fi
12646
12647 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12648 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12649
12650 #
12651 # Check to make sure the PIC flag actually works.
12652 #
12653 if test -n "$lt_prog_compiler_pic_F77"; then
12654   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12655 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12656 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12657   echo $ECHO_N "(cached) $ECHO_C" >&6
12658 else
12659   lt_prog_compiler_pic_works_F77=no
12660   ac_outfile=conftest.$ac_objext
12661    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12662    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12663    # Insert the option either (1) after the last *FLAGS variable, or
12664    # (2) before a word containing "conftest.", or (3) at the end.
12665    # Note that $ac_compile itself does not contain backslashes and begins
12666    # with a dollar sign (not a hyphen), so the echo should work correctly.
12667    # The option is referenced via a variable to avoid confusing sed.
12668    lt_compile=`echo "$ac_compile" | $SED \
12669    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12670    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12671    -e 's:$: $lt_compiler_flag:'`
12672    (eval echo "\"\$as_me:12672: $lt_compile\"" >&5)
12673    (eval "$lt_compile" 2>conftest.err)
12674    ac_status=$?
12675    cat conftest.err >&5
12676    echo "$as_me:12676: \$? = $ac_status" >&5
12677    if (exit $ac_status) && test -s "$ac_outfile"; then
12678      # The compiler can only warn and ignore the option if not recognized
12679      # So say no if there are warnings
12680      if test ! -s conftest.err; then
12681        lt_prog_compiler_pic_works_F77=yes
12682      fi
12683    fi
12684    $rm conftest*
12685
12686 fi
12687 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12688 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12689
12690 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12691     case $lt_prog_compiler_pic_F77 in
12692      "" | " "*) ;;
12693      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12694      esac
12695 else
12696     lt_prog_compiler_pic_F77=
12697      lt_prog_compiler_can_build_shared_F77=no
12698 fi
12699
12700 fi
12701 case "$host_os" in
12702   # For platforms which do not support PIC, -DPIC is meaningless:
12703   *djgpp*)
12704     lt_prog_compiler_pic_F77=
12705     ;;
12706   *)
12707     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12708     ;;
12709 esac
12710
12711 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12712 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12713 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12714   echo $ECHO_N "(cached) $ECHO_C" >&6
12715 else
12716   lt_cv_prog_compiler_c_o_F77=no
12717    $rm -r conftest 2>/dev/null
12718    mkdir conftest
12719    cd conftest
12720    mkdir out
12721    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12722
12723    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12724    # that will create temporary files in the current directory regardless of
12725    # the output directory.  Thus, making CWD read-only will cause this test
12726    # to fail, enabling locking or at least warning the user not to do parallel
12727    # builds.
12728    chmod -w .
12729
12730    lt_compiler_flag="-o out/conftest2.$ac_objext"
12731    # Insert the option either (1) after the last *FLAGS variable, or
12732    # (2) before a word containing "conftest.", or (3) at the end.
12733    # Note that $ac_compile itself does not contain backslashes and begins
12734    # with a dollar sign (not a hyphen), so the echo should work correctly.
12735    lt_compile=`echo "$ac_compile" | $SED \
12736    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12737    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12738    -e 's:$: $lt_compiler_flag:'`
12739    (eval echo "\"\$as_me:12739: $lt_compile\"" >&5)
12740    (eval "$lt_compile" 2>out/conftest.err)
12741    ac_status=$?
12742    cat out/conftest.err >&5
12743    echo "$as_me:12743: \$? = $ac_status" >&5
12744    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12745    then
12746      # The compiler can only warn and ignore the option if not recognized
12747      # So say no if there are warnings
12748      if test ! -s out/conftest.err; then
12749        lt_cv_prog_compiler_c_o_F77=yes
12750      fi
12751    fi
12752    chmod u+w .
12753    $rm conftest* out/*
12754    rmdir out
12755    cd ..
12756    rmdir conftest
12757    $rm conftest*
12758
12759 fi
12760 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12761 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12762
12763
12764 hard_links="nottested"
12765 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12766   # do not overwrite the value of need_locks provided by the user
12767   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12768 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12769   hard_links=yes
12770   $rm conftest*
12771   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12772   touch conftest.a
12773   ln conftest.a conftest.b 2>&5 || hard_links=no
12774   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12775   echo "$as_me:$LINENO: result: $hard_links" >&5
12776 echo "${ECHO_T}$hard_links" >&6
12777   if test "$hard_links" = no; then
12778     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12779 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12780     need_locks=warn
12781   fi
12782 else
12783   need_locks=no
12784 fi
12785
12786 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12787 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12788
12789   runpath_var=
12790   allow_undefined_flag_F77=
12791   enable_shared_with_static_runtimes_F77=no
12792   archive_cmds_F77=
12793   archive_expsym_cmds_F77=
12794   old_archive_From_new_cmds_F77=
12795   old_archive_from_expsyms_cmds_F77=
12796   export_dynamic_flag_spec_F77=
12797   whole_archive_flag_spec_F77=
12798   thread_safe_flag_spec_F77=
12799   hardcode_libdir_flag_spec_F77=
12800   hardcode_libdir_flag_spec_ld_F77=
12801   hardcode_libdir_separator_F77=
12802   hardcode_direct_F77=no
12803   hardcode_minus_L_F77=no
12804   hardcode_shlibpath_var_F77=unsupported
12805   link_all_deplibs_F77=unknown
12806   hardcode_automatic_F77=no
12807   module_cmds_F77=
12808   module_expsym_cmds_F77=
12809   always_export_symbols_F77=no
12810   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12811   # include_expsyms should be a list of space-separated symbols to be *always*
12812   # included in the symbol list
12813   include_expsyms_F77=
12814   # exclude_expsyms can be an extended regexp of symbols to exclude
12815   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12816   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12817   # as well as any symbol that contains `d'.
12818   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12819   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12820   # platforms (ab)use it in PIC code, but their linkers get confused if
12821   # the symbol is explicitly referenced.  Since portable code cannot
12822   # rely on this symbol name, it's probably fine to never include it in
12823   # preloaded symbol tables.
12824   extract_expsyms_cmds=
12825
12826   case $host_os in
12827   cygwin* | mingw* | pw32*)
12828     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12829     # When not using gcc, we currently assume that we are using
12830     # Microsoft Visual C++.
12831     if test "$GCC" != yes; then
12832       with_gnu_ld=no
12833     fi
12834     ;;
12835   openbsd*)
12836     with_gnu_ld=no
12837     ;;
12838   esac
12839
12840   ld_shlibs_F77=yes
12841   if test "$with_gnu_ld" = yes; then
12842     # If archive_cmds runs LD, not CC, wlarc should be empty
12843     wlarc='${wl}'
12844
12845     # See if GNU ld supports shared libraries.
12846     case $host_os in
12847     aix3* | aix4* | aix5*)
12848       # On AIX/PPC, the GNU linker is very broken
12849       if test "$host_cpu" != ia64; then
12850         ld_shlibs_F77=no
12851         cat <<EOF 1>&2
12852
12853 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12854 *** to be unable to reliably create shared libraries on AIX.
12855 *** Therefore, libtool is disabling shared libraries support.  If you
12856 *** really care for shared libraries, you may want to modify your PATH
12857 *** so that a non-GNU linker is found, and then restart.
12858
12859 EOF
12860       fi
12861       ;;
12862
12863     amigaos*)
12864       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)'
12865       hardcode_libdir_flag_spec_F77='-L$libdir'
12866       hardcode_minus_L_F77=yes
12867
12868       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12869       # that the semantics of dynamic libraries on AmigaOS, at least up
12870       # to version 4, is to share data among multiple programs linked
12871       # with the same dynamic library.  Since this doesn't match the
12872       # behavior of shared libraries on other platforms, we can't use
12873       # them.
12874       ld_shlibs_F77=no
12875       ;;
12876
12877     beos*)
12878       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12879         allow_undefined_flag_F77=unsupported
12880         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12881         # support --undefined.  This deserves some investigation.  FIXME
12882         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12883       else
12884         ld_shlibs_F77=no
12885       fi
12886       ;;
12887
12888     cygwin* | mingw* | pw32*)
12889       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12890       # as there is no search path for DLLs.
12891       hardcode_libdir_flag_spec_F77='-L$libdir'
12892       allow_undefined_flag_F77=unsupported
12893       always_export_symbols_F77=no
12894       enable_shared_with_static_runtimes_F77=yes
12895       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12896
12897       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12898         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12899         # If the export-symbols file already is a .def file (1st line
12900         # is EXPORTS), use it as is; otherwise, prepend...
12901         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12902           cp $export_symbols $output_objdir/$soname.def;
12903         else
12904           echo EXPORTS > $output_objdir/$soname.def;
12905           cat $export_symbols >> $output_objdir/$soname.def;
12906         fi~
12907         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12908       else
12909         ld_shlibs=no
12910       fi
12911       ;;
12912
12913     netbsd*)
12914       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12915         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12916         wlarc=
12917       else
12918         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12919         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12920       fi
12921       ;;
12922
12923     solaris* | sysv5*)
12924       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12925         ld_shlibs_F77=no
12926         cat <<EOF 1>&2
12927
12928 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12929 *** create shared libraries on Solaris systems.  Therefore, libtool
12930 *** is disabling shared libraries support.  We urge you to upgrade GNU
12931 *** binutils to release 2.9.1 or newer.  Another option is to modify
12932 *** your PATH or compiler configuration so that the native linker is
12933 *** used, and then restart.
12934
12935 EOF
12936       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12937         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12938         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12939       else
12940         ld_shlibs_F77=no
12941       fi
12942       ;;
12943
12944     sunos4*)
12945       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12946       wlarc=
12947       hardcode_direct_F77=yes
12948       hardcode_shlibpath_var_F77=no
12949       ;;
12950
12951     *)
12952       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12953         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12954         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12955       else
12956         ld_shlibs_F77=no
12957       fi
12958       ;;
12959     esac
12960
12961     if test "$ld_shlibs_F77" = yes; then
12962       runpath_var=LD_RUN_PATH
12963       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12964       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12965       # ancient GNU ld didn't support --whole-archive et. al.
12966       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12967         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12968       else
12969         whole_archive_flag_spec_F77=
12970       fi
12971     fi
12972   else
12973     # PORTME fill in a description of your system's linker (not GNU ld)
12974     case $host_os in
12975     aix3*)
12976       allow_undefined_flag_F77=unsupported
12977       always_export_symbols_F77=yes
12978       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'
12979       # Note: this linker hardcodes the directories in LIBPATH if there
12980       # are no directories specified by -L.
12981       hardcode_minus_L_F77=yes
12982       if test "$GCC" = yes && test -z "$link_static_flag"; then
12983         # Neither direct hardcoding nor static linking is supported with a
12984         # broken collect2.
12985         hardcode_direct_F77=unsupported
12986       fi
12987       ;;
12988
12989     aix4* | aix5*)
12990       if test "$host_cpu" = ia64; then
12991         # On IA64, the linker does run time linking by default, so we don't
12992         # have to do anything special.
12993         aix_use_runtimelinking=no
12994         exp_sym_flag='-Bexport'
12995         no_entry_flag=""
12996       else
12997         # If we're using GNU nm, then we don't want the "-C" option.
12998         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12999         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13000           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'
13001         else
13002           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'
13003         fi
13004         aix_use_runtimelinking=no
13005
13006         # Test if we are trying to use run time linking or normal
13007         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13008         # need to do runtime linking.
13009         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13010           for ld_flag in $LDFLAGS; do
13011           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13012             aix_use_runtimelinking=yes
13013             break
13014           fi
13015           done
13016         esac
13017
13018         exp_sym_flag='-bexport'
13019         no_entry_flag='-bnoentry'
13020       fi
13021
13022       # When large executables or shared objects are built, AIX ld can
13023       # have problems creating the table of contents.  If linking a library
13024       # or program results in "error TOC overflow" add -mminimal-toc to
13025       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13026       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13027
13028       archive_cmds_F77=''
13029       hardcode_direct_F77=yes
13030       hardcode_libdir_separator_F77=':'
13031       link_all_deplibs_F77=yes
13032
13033       if test "$GCC" = yes; then
13034         case $host_os in aix4.012|aix4.012.*)
13035         # We only want to do this on AIX 4.2 and lower, the check
13036         # below for broken collect2 doesn't work under 4.3+
13037           collect2name=`${CC} -print-prog-name=collect2`
13038           if test -f "$collect2name" && \
13039            strings "$collect2name" | grep resolve_lib_name >/dev/null
13040           then
13041           # We have reworked collect2
13042           hardcode_direct_F77=yes
13043           else
13044           # We have old collect2
13045           hardcode_direct_F77=unsupported
13046           # It fails to find uninstalled libraries when the uninstalled
13047           # path is not listed in the libpath.  Setting hardcode_minus_L
13048           # to unsupported forces relinking
13049           hardcode_minus_L_F77=yes
13050           hardcode_libdir_flag_spec_F77='-L$libdir'
13051           hardcode_libdir_separator_F77=
13052           fi
13053         esac
13054         shared_flag='-shared'
13055       else
13056         # not using gcc
13057         if test "$host_cpu" = ia64; then
13058         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13059         # chokes on -Wl,-G. The following line is correct:
13060           shared_flag='-G'
13061         else
13062         if test "$aix_use_runtimelinking" = yes; then
13063             shared_flag='${wl}-G'
13064           else
13065             shared_flag='${wl}-bM:SRE'
13066         fi
13067         fi
13068       fi
13069
13070       # It seems that -bexpall does not export symbols beginning with
13071       # underscore (_), so it is better to generate a list of symbols to export.
13072       always_export_symbols_F77=yes
13073       if test "$aix_use_runtimelinking" = yes; then
13074         # Warning - without using the other runtime loading flags (-brtl),
13075         # -berok will link without error, but may produce a broken library.
13076         allow_undefined_flag_F77='-berok'
13077        # Determine the default libpath from the value encoded in an empty executable.
13078        cat >conftest.$ac_ext <<_ACEOF
13079       program main
13080
13081       end
13082 _ACEOF
13083 rm -f conftest.$ac_objext conftest$ac_exeext
13084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13085   (eval $ac_link) 2>&5
13086   ac_status=$?
13087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088   (exit $ac_status); } &&
13089          { ac_try='test -s conftest$ac_exeext'
13090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091   (eval $ac_try) 2>&5
13092   ac_status=$?
13093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094   (exit $ac_status); }; }; then
13095
13096 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13097 }'`
13098 # Check for a 64-bit object if we didn't find anything.
13099 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; }
13100 }'`; fi
13101 else
13102   echo "$as_me: failed program was:" >&5
13103 sed 's/^/| /' conftest.$ac_ext >&5
13104
13105 fi
13106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13107 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13108
13109        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13110         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"
13111        else
13112         if test "$host_cpu" = ia64; then
13113           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13114           allow_undefined_flag_F77="-z nodefs"
13115           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"
13116         else
13117          # Determine the default libpath from the value encoded in an empty executable.
13118          cat >conftest.$ac_ext <<_ACEOF
13119       program main
13120
13121       end
13122 _ACEOF
13123 rm -f conftest.$ac_objext conftest$ac_exeext
13124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13125   (eval $ac_link) 2>&5
13126   ac_status=$?
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); } &&
13129          { ac_try='test -s conftest$ac_exeext'
13130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131   (eval $ac_try) 2>&5
13132   ac_status=$?
13133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134   (exit $ac_status); }; }; then
13135
13136 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13137 }'`
13138 # Check for a 64-bit object if we didn't find anything.
13139 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; }
13140 }'`; fi
13141 else
13142   echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13144
13145 fi
13146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13147 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13148
13149          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13150           # Warning - without using the other run time loading flags,
13151           # -berok will link without error, but may produce a broken library.
13152           no_undefined_flag_F77=' ${wl}-bernotok'
13153           allow_undefined_flag_F77=' ${wl}-berok'
13154           # -bexpall does not export symbols beginning with underscore (_)
13155           always_export_symbols_F77=yes
13156           # Exported symbols can be pulled into shared objects from archives
13157           whole_archive_flag_spec_F77=' '
13158           archive_cmds_need_lc_F77=yes
13159           # This is similar to how AIX traditionally builds it's shared libraries.
13160           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'
13161         fi
13162       fi
13163       ;;
13164
13165     amigaos*)
13166       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)'
13167       hardcode_libdir_flag_spec_F77='-L$libdir'
13168       hardcode_minus_L_F77=yes
13169       # see comment about different semantics on the GNU ld section
13170       ld_shlibs_F77=no
13171       ;;
13172
13173     bsdi4*)
13174       export_dynamic_flag_spec_F77=-rdynamic
13175       ;;
13176
13177     cygwin* | mingw* | pw32*)
13178       # When not using gcc, we currently assume that we are using
13179       # Microsoft Visual C++.
13180       # hardcode_libdir_flag_spec is actually meaningless, as there is
13181       # no search path for DLLs.
13182       hardcode_libdir_flag_spec_F77=' '
13183       allow_undefined_flag_F77=unsupported
13184       # Tell ltmain to make .lib files, not .a files.
13185       libext=lib
13186       # Tell ltmain to make .dll files, not .so files.
13187       shrext=".dll"
13188       # FIXME: Setting linknames here is a bad hack.
13189       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13190       # The linker will automatically build a .lib file if we build a DLL.
13191       old_archive_From_new_cmds_F77='true'
13192       # FIXME: Should let the user specify the lib program.
13193       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13194       fix_srcfile_path='`cygpath -w "$srcfile"`'
13195       enable_shared_with_static_runtimes_F77=yes
13196       ;;
13197
13198     darwin* | rhapsody*)
13199     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13200       archive_cmds_need_lc_F77=no
13201       case "$host_os" in
13202       rhapsody* | darwin1.[012])
13203         allow_undefined_flag_F77='-undefined suppress'
13204         ;;
13205       *) # Darwin 1.3 on
13206         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13207         ;;
13208       esac
13209       # FIXME: Relying on posixy $() will cause problems for
13210       #        cross-compilation, but unfortunately the echo tests do not
13211       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13212       #        `"' quotes if we put them in here... so don't!
13213         lt_int_apple_cc_single_mod=no
13214         output_verbose_link_cmd='echo'
13215         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13216           lt_int_apple_cc_single_mod=yes
13217         fi
13218         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13219           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13220         else
13221         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'
13222       fi
13223       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13224       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13225         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13226           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}'
13227         else
13228           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}'
13229         fi
13230           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}'
13231       hardcode_direct_F77=no
13232       hardcode_automatic_F77=yes
13233       hardcode_shlibpath_var_F77=unsupported
13234       whole_archive_flag_spec_F77='-all_load $convenience'
13235       link_all_deplibs_F77=yes
13236     fi
13237       ;;
13238
13239     dgux*)
13240       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13241       hardcode_libdir_flag_spec_F77='-L$libdir'
13242       hardcode_shlibpath_var_F77=no
13243       ;;
13244
13245     freebsd1*)
13246       ld_shlibs_F77=no
13247       ;;
13248
13249     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13250     # support.  Future versions do this automatically, but an explicit c++rt0.o
13251     # does not break anything, and helps significantly (at the cost of a little
13252     # extra space).
13253     freebsd2.2*)
13254       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13255       hardcode_libdir_flag_spec_F77='-R$libdir'
13256       hardcode_direct_F77=yes
13257       hardcode_shlibpath_var_F77=no
13258       ;;
13259
13260     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13261     freebsd2*)
13262       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13263       hardcode_direct_F77=yes
13264       hardcode_minus_L_F77=yes
13265       hardcode_shlibpath_var_F77=no
13266       ;;
13267
13268     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13269     freebsd*)
13270       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13271       hardcode_libdir_flag_spec_F77='-R$libdir'
13272       hardcode_direct_F77=yes
13273       hardcode_shlibpath_var_F77=no
13274       ;;
13275
13276     hpux9*)
13277       if test "$GCC" = yes; then
13278         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'
13279       else
13280         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'
13281       fi
13282       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13283       hardcode_libdir_separator_F77=:
13284       hardcode_direct_F77=yes
13285
13286       # hardcode_minus_L: Not really in the search PATH,
13287       # but as the default location of the library.
13288       hardcode_minus_L_F77=yes
13289       export_dynamic_flag_spec_F77='${wl}-E'
13290       ;;
13291
13292     hpux10* | hpux11*)
13293       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13294         case "$host_cpu" in
13295         hppa*64*|ia64*)
13296           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13297           ;;
13298         *)
13299           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13300           ;;
13301         esac
13302       else
13303         case "$host_cpu" in
13304         hppa*64*|ia64*)
13305           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13306           ;;
13307         *)
13308           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13309           ;;
13310         esac
13311       fi
13312       if test "$with_gnu_ld" = no; then
13313         case "$host_cpu" in
13314         hppa*64*)
13315           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13316           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13317           hardcode_libdir_separator_F77=:
13318           hardcode_direct_F77=no
13319           hardcode_shlibpath_var_F77=no
13320           ;;
13321         ia64*)
13322           hardcode_libdir_flag_spec_F77='-L$libdir'
13323           hardcode_direct_F77=no
13324           hardcode_shlibpath_var_F77=no
13325
13326           # hardcode_minus_L: Not really in the search PATH,
13327           # but as the default location of the library.
13328           hardcode_minus_L_F77=yes
13329           ;;
13330         *)
13331           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13332           hardcode_libdir_separator_F77=:
13333           hardcode_direct_F77=yes
13334           export_dynamic_flag_spec_F77='${wl}-E'
13335
13336           # hardcode_minus_L: Not really in the search PATH,
13337           # but as the default location of the library.
13338           hardcode_minus_L_F77=yes
13339           ;;
13340         esac
13341       fi
13342       ;;
13343
13344     irix5* | irix6* | nonstopux*)
13345       if test "$GCC" = yes; then
13346         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'
13347       else
13348         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'
13349         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13350       fi
13351       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13352       hardcode_libdir_separator_F77=:
13353       link_all_deplibs_F77=yes
13354       ;;
13355
13356     netbsd*)
13357       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13358         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13359       else
13360         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13361       fi
13362       hardcode_libdir_flag_spec_F77='-R$libdir'
13363       hardcode_direct_F77=yes
13364       hardcode_shlibpath_var_F77=no
13365       ;;
13366
13367     newsos6)
13368       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13369       hardcode_direct_F77=yes
13370       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13371       hardcode_libdir_separator_F77=:
13372       hardcode_shlibpath_var_F77=no
13373       ;;
13374
13375     openbsd*)
13376       hardcode_direct_F77=yes
13377       hardcode_shlibpath_var_F77=no
13378       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13379         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13380         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13381         export_dynamic_flag_spec_F77='${wl}-E'
13382       else
13383        case $host_os in
13384          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13385            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13386            hardcode_libdir_flag_spec_F77='-R$libdir'
13387            ;;
13388          *)
13389            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13390            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13391            ;;
13392        esac
13393       fi
13394       ;;
13395
13396     os2*)
13397       hardcode_libdir_flag_spec_F77='-L$libdir'
13398       hardcode_minus_L_F77=yes
13399       allow_undefined_flag_F77=unsupported
13400       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'
13401       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13402       ;;
13403
13404     osf3*)
13405       if test "$GCC" = yes; then
13406         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13407         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'
13408       else
13409         allow_undefined_flag_F77=' -expect_unresolved \*'
13410         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'
13411       fi
13412       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13413       hardcode_libdir_separator_F77=:
13414       ;;
13415
13416     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13417       if test "$GCC" = yes; then
13418         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13419         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'
13420         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13421       else
13422         allow_undefined_flag_F77=' -expect_unresolved \*'
13423         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'
13424         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~
13425         $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'
13426
13427         # Both c and cxx compiler support -rpath directly
13428         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13429       fi
13430       hardcode_libdir_separator_F77=:
13431       ;;
13432
13433     sco3.2v5*)
13434       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13435       hardcode_shlibpath_var_F77=no
13436       export_dynamic_flag_spec_F77='${wl}-Bexport'
13437       runpath_var=LD_RUN_PATH
13438       hardcode_runpath_var=yes
13439       ;;
13440
13441     solaris*)
13442       no_undefined_flag_F77=' -z text'
13443       if test "$GCC" = yes; then
13444         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13445         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13446           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13447       else
13448         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13449         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13450         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13451       fi
13452       hardcode_libdir_flag_spec_F77='-R$libdir'
13453       hardcode_shlibpath_var_F77=no
13454       case $host_os in
13455       solaris2.[0-5] | solaris2.[0-5].*) ;;
13456       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13457         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13458       esac
13459       link_all_deplibs_F77=yes
13460       ;;
13461
13462     sunos4*)
13463       if test "x$host_vendor" = xsequent; then
13464         # Use $CC to link under sequent, because it throws in some extra .o
13465         # files that make .init and .fini sections work.
13466         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13467       else
13468         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13469       fi
13470       hardcode_libdir_flag_spec_F77='-L$libdir'
13471       hardcode_direct_F77=yes
13472       hardcode_minus_L_F77=yes
13473       hardcode_shlibpath_var_F77=no
13474       ;;
13475
13476     sysv4)
13477       case $host_vendor in
13478         sni)
13479           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13480           hardcode_direct_F77=yes # is this really true???
13481         ;;
13482         siemens)
13483           ## LD is ld it makes a PLAMLIB
13484           ## CC just makes a GrossModule.
13485           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13486           reload_cmds_F77='$CC -r -o $output$reload_objs'
13487           hardcode_direct_F77=no
13488         ;;
13489         motorola)
13490           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13491           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13492         ;;
13493       esac
13494       runpath_var='LD_RUN_PATH'
13495       hardcode_shlibpath_var_F77=no
13496       ;;
13497
13498     sysv4.3*)
13499       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13500       hardcode_shlibpath_var_F77=no
13501       export_dynamic_flag_spec_F77='-Bexport'
13502       ;;
13503
13504     sysv4*MP*)
13505       if test -d /usr/nec; then
13506         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13507         hardcode_shlibpath_var_F77=no
13508         runpath_var=LD_RUN_PATH
13509         hardcode_runpath_var=yes
13510         ld_shlibs_F77=yes
13511       fi
13512       ;;
13513
13514     sysv4.2uw2*)
13515       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13516       hardcode_direct_F77=yes
13517       hardcode_minus_L_F77=no
13518       hardcode_shlibpath_var_F77=no
13519       hardcode_runpath_var=yes
13520       runpath_var=LD_RUN_PATH
13521       ;;
13522
13523    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13524       no_undefined_flag_F77='${wl}-z ${wl}text'
13525       if test "$GCC" = yes; then
13526         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13527       else
13528         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13529       fi
13530       runpath_var='LD_RUN_PATH'
13531       hardcode_shlibpath_var_F77=no
13532       ;;
13533
13534     sysv5*)
13535       no_undefined_flag_F77=' -z text'
13536       # $CC -shared without GNU ld will not create a library from C++
13537       # object files and a static libstdc++, better avoid it by now
13538       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13539       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13540                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13541       hardcode_libdir_flag_spec_F77=
13542       hardcode_shlibpath_var_F77=no
13543       runpath_var='LD_RUN_PATH'
13544       ;;
13545
13546     uts4*)
13547       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13548       hardcode_libdir_flag_spec_F77='-L$libdir'
13549       hardcode_shlibpath_var_F77=no
13550       ;;
13551
13552     *)
13553       ld_shlibs_F77=no
13554       ;;
13555     esac
13556   fi
13557
13558 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13559 echo "${ECHO_T}$ld_shlibs_F77" >&6
13560 test "$ld_shlibs_F77" = no && can_build_shared=no
13561
13562 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13563 if test "$GCC" = yes; then
13564   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13565 fi
13566
13567 #
13568 # Do we need to explicitly link libc?
13569 #
13570 case "x$archive_cmds_need_lc_F77" in
13571 x|xyes)
13572   # Assume -lc should be added
13573   archive_cmds_need_lc_F77=yes
13574
13575   if test "$enable_shared" = yes && test "$GCC" = yes; then
13576     case $archive_cmds_F77 in
13577     *'~'*)
13578       # FIXME: we may have to deal with multi-command sequences.
13579       ;;
13580     '$CC '*)
13581       # Test whether the compiler implicitly links with -lc since on some
13582       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13583       # to ld, don't add -lc before -lgcc.
13584       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13585 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13586       $rm conftest*
13587       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13588
13589       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13590   (eval $ac_compile) 2>&5
13591   ac_status=$?
13592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593   (exit $ac_status); } 2>conftest.err; then
13594         soname=conftest
13595         lib=conftest
13596         libobjs=conftest.$ac_objext
13597         deplibs=
13598         wl=$lt_prog_compiler_wl_F77
13599         compiler_flags=-v
13600         linker_flags=-v
13601         verstring=
13602         output_objdir=.
13603         libname=conftest
13604         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13605         allow_undefined_flag_F77=
13606         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13607   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13608   ac_status=$?
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); }
13611         then
13612           archive_cmds_need_lc_F77=no
13613         else
13614           archive_cmds_need_lc_F77=yes
13615         fi
13616         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13617       else
13618         cat conftest.err 1>&5
13619       fi
13620       $rm conftest*
13621       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13622 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13623       ;;
13624     esac
13625   fi
13626   ;;
13627 esac
13628
13629 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13630 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13631 hardcode_action_F77=
13632 if test -n "$hardcode_libdir_flag_spec_F77" || \
13633    test -n "$runpath_var F77" || \
13634    test "X$hardcode_automatic_F77"="Xyes" ; then
13635
13636   # We can hardcode non-existant directories.
13637   if test "$hardcode_direct_F77" != no &&
13638      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13639      # have to relink, otherwise we might link with an installed library
13640      # when we should be linking with a yet-to-be-installed one
13641      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13642      test "$hardcode_minus_L_F77" != no; then
13643     # Linking always hardcodes the temporary library directory.
13644     hardcode_action_F77=relink
13645   else
13646     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13647     hardcode_action_F77=immediate
13648   fi
13649 else
13650   # We cannot hardcode anything, or else we can only hardcode existing
13651   # directories.
13652   hardcode_action_F77=unsupported
13653 fi
13654 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13655 echo "${ECHO_T}$hardcode_action_F77" >&6
13656
13657 if test "$hardcode_action_F77" = relink; then
13658   # Fast installation is not supported
13659   enable_fast_install=no
13660 elif test "$shlibpath_overrides_runpath" = yes ||
13661      test "$enable_shared" = no; then
13662   # Fast installation is not necessary
13663   enable_fast_install=needless
13664 fi
13665
13666 striplib=
13667 old_striplib=
13668 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13669 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13670 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13671   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13672   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13673   echo "$as_me:$LINENO: result: yes" >&5
13674 echo "${ECHO_T}yes" >&6
13675 else
13676 # FIXME - insert some real tests, host_os isn't really good enough
13677   case $host_os in
13678    darwin*)
13679        if test -n "$STRIP" ; then
13680          striplib="$STRIP -x"
13681          echo "$as_me:$LINENO: result: yes" >&5
13682 echo "${ECHO_T}yes" >&6
13683        else
13684   echo "$as_me:$LINENO: result: no" >&5
13685 echo "${ECHO_T}no" >&6
13686 fi
13687        ;;
13688    *)
13689   echo "$as_me:$LINENO: result: no" >&5
13690 echo "${ECHO_T}no" >&6
13691     ;;
13692   esac
13693 fi
13694
13695 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13696 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13697 library_names_spec=
13698 libname_spec='lib$name'
13699 soname_spec=
13700 shrext=".so"
13701 postinstall_cmds=
13702 postuninstall_cmds=
13703 finish_cmds=
13704 finish_eval=
13705 shlibpath_var=
13706 shlibpath_overrides_runpath=unknown
13707 version_type=none
13708 dynamic_linker="$host_os ld.so"
13709 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13710 if test "$GCC" = yes; then
13711   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13712   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13713     # if the path contains ";" then we assume it to be the separator
13714     # otherwise default to the standard path separator (i.e. ":") - it is
13715     # assumed that no part of a normal pathname contains ";" but that should
13716     # okay in the real world where ";" in dirpaths is itself problematic.
13717     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13718   else
13719     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13720   fi
13721 else
13722   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13723 fi
13724 need_lib_prefix=unknown
13725 hardcode_into_libs=no
13726
13727 # when you set need_version to no, make sure it does not cause -set_version
13728 # flags to be left without arguments
13729 need_version=unknown
13730
13731 case $host_os in
13732 aix3*)
13733   version_type=linux
13734   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13735   shlibpath_var=LIBPATH
13736
13737   # AIX 3 has no versioning support, so we append a major version to the name.
13738   soname_spec='${libname}${release}${shared_ext}$major'
13739   ;;
13740
13741 aix4* | aix5*)
13742   version_type=linux
13743   need_lib_prefix=no
13744   need_version=no
13745   hardcode_into_libs=yes
13746   if test "$host_cpu" = ia64; then
13747     # AIX 5 supports IA64
13748     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13749     shlibpath_var=LD_LIBRARY_PATH
13750   else
13751     # With GCC up to 2.95.x, collect2 would create an import file
13752     # for dependence libraries.  The import file would start with
13753     # the line `#! .'.  This would cause the generated library to
13754     # depend on `.', always an invalid library.  This was fixed in
13755     # development snapshots of GCC prior to 3.0.
13756     case $host_os in
13757       aix4 | aix4.[01] | aix4.[01].*)
13758       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13759            echo ' yes '
13760            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13761         :
13762       else
13763         can_build_shared=no
13764       fi
13765       ;;
13766     esac
13767     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13768     # soname into executable. Probably we can add versioning support to
13769     # collect2, so additional links can be useful in future.
13770     if test "$aix_use_runtimelinking" = yes; then
13771       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13772       # instead of lib<name>.a to let people know that these are not
13773       # typical AIX shared libraries.
13774       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13775     else
13776       # We preserve .a as extension for shared libraries through AIX4.2
13777       # and later when we are not doing run time linking.
13778       library_names_spec='${libname}${release}.a $libname.a'
13779       soname_spec='${libname}${release}${shared_ext}$major'
13780     fi
13781     shlibpath_var=LIBPATH
13782   fi
13783   ;;
13784
13785 amigaos*)
13786   library_names_spec='$libname.ixlibrary $libname.a'
13787   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13788   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'
13789   ;;
13790
13791 beos*)
13792   library_names_spec='${libname}${shared_ext}'
13793   dynamic_linker="$host_os ld.so"
13794   shlibpath_var=LIBRARY_PATH
13795   ;;
13796
13797 bsdi4*)
13798   version_type=linux
13799   need_version=no
13800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13801   soname_spec='${libname}${release}${shared_ext}$major'
13802   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13803   shlibpath_var=LD_LIBRARY_PATH
13804   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13805   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13806   # the default ld.so.conf also contains /usr/contrib/lib and
13807   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13808   # libtool to hard-code these into programs
13809   ;;
13810
13811 cygwin* | mingw* | pw32*)
13812   version_type=windows
13813   shrext=".dll"
13814   need_version=no
13815   need_lib_prefix=no
13816
13817   case $GCC,$host_os in
13818   yes,cygwin* | yes,mingw* | yes,pw32*)
13819     library_names_spec='$libname.dll.a'
13820     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13821     postinstall_cmds='base_file=`basename \${file}`~
13822       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13823       dldir=$destdir/`dirname \$dlpath`~
13824       test -d \$dldir || mkdir -p \$dldir~
13825       $install_prog $dir/$dlname \$dldir/$dlname'
13826     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13827       dlpath=$dir/\$dldll~
13828        $rm \$dlpath'
13829     shlibpath_overrides_runpath=yes
13830
13831     case $host_os in
13832     cygwin*)
13833       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13834       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13835       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13836       ;;
13837     mingw*)
13838       # MinGW DLLs use traditional 'lib' prefix
13839       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13840       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13841       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13842         # It is most probably a Windows format PATH printed by
13843         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13844         # path with ; separators, and with drive letters. We can handle the
13845         # drive letters (cygwin fileutils understands them), so leave them,
13846         # especially as we might pass files found there to a mingw objdump,
13847         # which wouldn't understand a cygwinified path. Ahh.
13848         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13849       else
13850         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13851       fi
13852       ;;
13853     pw32*)
13854       # pw32 DLLs use 'pw' prefix rather than 'lib'
13855       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13856       ;;
13857     esac
13858     ;;
13859
13860   *)
13861     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13862     ;;
13863   esac
13864   dynamic_linker='Win32 ld.exe'
13865   # FIXME: first we should search . and the directory the executable is in
13866   shlibpath_var=PATH
13867   ;;
13868
13869 darwin* | rhapsody*)
13870   dynamic_linker="$host_os dyld"
13871   version_type=darwin
13872   need_lib_prefix=no
13873   need_version=no
13874   # FIXME: Relying on posixy $() will cause problems for
13875   #        cross-compilation, but unfortunately the echo tests do not
13876   #        yet detect zsh echo's removal of \ escapes.
13877   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13878   soname_spec='${libname}${release}${major}$shared_ext'
13879   shlibpath_overrides_runpath=yes
13880   shlibpath_var=DYLD_LIBRARY_PATH
13881   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13882   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13883   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13884   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"`
13885   fi
13886   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13887   ;;
13888
13889 dgux*)
13890   version_type=linux
13891   need_lib_prefix=no
13892   need_version=no
13893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13894   soname_spec='${libname}${release}${shared_ext}$major'
13895   shlibpath_var=LD_LIBRARY_PATH
13896   ;;
13897
13898 freebsd1*)
13899   dynamic_linker=no
13900   ;;
13901
13902 freebsd*)
13903   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13904   version_type=freebsd-$objformat
13905   case $version_type in
13906     freebsd-elf*)
13907       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13908       need_version=no
13909       need_lib_prefix=no
13910       ;;
13911     freebsd-*)
13912       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13913       need_version=yes
13914       ;;
13915   esac
13916   shlibpath_var=LD_LIBRARY_PATH
13917   case $host_os in
13918   freebsd2*)
13919     shlibpath_overrides_runpath=yes
13920     ;;
13921   freebsd3.01* | freebsdelf3.01*)
13922     shlibpath_overrides_runpath=yes
13923     hardcode_into_libs=yes
13924     ;;
13925   *) # from 3.2 on
13926     shlibpath_overrides_runpath=no
13927     hardcode_into_libs=yes
13928     ;;
13929   esac
13930   ;;
13931
13932 gnu*)
13933   version_type=linux
13934   need_lib_prefix=no
13935   need_version=no
13936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13937   soname_spec='${libname}${release}${shared_ext}$major'
13938   shlibpath_var=LD_LIBRARY_PATH
13939   hardcode_into_libs=yes
13940   ;;
13941
13942 hpux9* | hpux10* | hpux11*)
13943   # Give a soname corresponding to the major version so that dld.sl refuses to
13944   # link against other versions.
13945   version_type=sunos
13946   need_lib_prefix=no
13947   need_version=no
13948   case "$host_cpu" in
13949   ia64*)
13950     shrext='.so'
13951     hardcode_into_libs=yes
13952     dynamic_linker="$host_os dld.so"
13953     shlibpath_var=LD_LIBRARY_PATH
13954     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13956     soname_spec='${libname}${release}${shared_ext}$major'
13957     if test "X$HPUX_IA64_MODE" = X32; then
13958       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13959     else
13960       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13961     fi
13962     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13963     ;;
13964    hppa*64*)
13965      shrext='.sl'
13966      hardcode_into_libs=yes
13967      dynamic_linker="$host_os dld.sl"
13968      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13969      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13970      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13971      soname_spec='${libname}${release}${shared_ext}$major'
13972      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13973      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13974      ;;
13975    *)
13976     shrext='.sl'
13977     dynamic_linker="$host_os dld.sl"
13978     shlibpath_var=SHLIB_PATH
13979     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13980     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13981     soname_spec='${libname}${release}${shared_ext}$major'
13982     ;;
13983   esac
13984   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13985   postinstall_cmds='chmod 555 $lib'
13986   ;;
13987
13988 irix5* | irix6* | nonstopux*)
13989   case $host_os in
13990     nonstopux*) version_type=nonstopux ;;
13991     *)
13992         if test "$lt_cv_prog_gnu_ld" = yes; then
13993                 version_type=linux
13994         else
13995                 version_type=irix
13996         fi ;;
13997   esac
13998   need_lib_prefix=no
13999   need_version=no
14000   soname_spec='${libname}${release}${shared_ext}$major'
14001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14002   case $host_os in
14003   irix5* | nonstopux*)
14004     libsuff= shlibsuff=
14005     ;;
14006   *)
14007     case $LD in # libtool.m4 will add one of these switches to LD
14008     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14009       libsuff= shlibsuff= libmagic=32-bit;;
14010     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14011       libsuff=32 shlibsuff=N32 libmagic=N32;;
14012     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14013       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14014     *) libsuff= shlibsuff= libmagic=never-match;;
14015     esac
14016     ;;
14017   esac
14018   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14019   shlibpath_overrides_runpath=no
14020   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14021   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14022   hardcode_into_libs=yes
14023   ;;
14024
14025 # No shared lib support for Linux oldld, aout, or coff.
14026 linux*oldld* | linux*aout* | linux*coff*)
14027   dynamic_linker=no
14028   ;;
14029
14030 # This must be Linux ELF.
14031 linux*)
14032   version_type=linux
14033   need_lib_prefix=no
14034   need_version=no
14035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14036   soname_spec='${libname}${release}${shared_ext}$major'
14037   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14038   shlibpath_var=LD_LIBRARY_PATH
14039   shlibpath_overrides_runpath=no
14040   # This implies no fast_install, which is unacceptable.
14041   # Some rework will be needed to allow for fast_install
14042   # before this can be enabled.
14043   hardcode_into_libs=yes
14044
14045   # We used to test for /lib/ld.so.1 and disable shared libraries on
14046   # powerpc, because MkLinux only supported shared libraries with the
14047   # GNU dynamic linker.  Since this was broken with cross compilers,
14048   # most powerpc-linux boxes support dynamic linking these days and
14049   # people can always --disable-shared, the test was removed, and we
14050   # assume the GNU/Linux dynamic linker is in use.
14051   dynamic_linker='GNU/Linux ld.so'
14052   ;;
14053
14054 netbsd*)
14055   version_type=sunos
14056   need_lib_prefix=no
14057   need_version=no
14058   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14059     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14060     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14061     dynamic_linker='NetBSD (a.out) ld.so'
14062   else
14063     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14064     soname_spec='${libname}${release}${shared_ext}$major'
14065     dynamic_linker='NetBSD ld.elf_so'
14066   fi
14067   shlibpath_var=LD_LIBRARY_PATH
14068   shlibpath_overrides_runpath=yes
14069   hardcode_into_libs=yes
14070   ;;
14071
14072 newsos6)
14073   version_type=linux
14074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14075   shlibpath_var=LD_LIBRARY_PATH
14076   shlibpath_overrides_runpath=yes
14077   ;;
14078
14079 nto-qnx)
14080   version_type=linux
14081   need_lib_prefix=no
14082   need_version=no
14083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14084   soname_spec='${libname}${release}${shared_ext}$major'
14085   shlibpath_var=LD_LIBRARY_PATH
14086   shlibpath_overrides_runpath=yes
14087   ;;
14088
14089 openbsd*)
14090   version_type=sunos
14091   need_lib_prefix=no
14092   need_version=no
14093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14094   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14095   shlibpath_var=LD_LIBRARY_PATH
14096   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14097     case $host_os in
14098       openbsd2.[89] | openbsd2.[89].*)
14099         shlibpath_overrides_runpath=no
14100         ;;
14101       *)
14102         shlibpath_overrides_runpath=yes
14103         ;;
14104       esac
14105   else
14106     shlibpath_overrides_runpath=yes
14107   fi
14108   ;;
14109
14110 os2*)
14111   libname_spec='$name'
14112   shrext=".dll"
14113   need_lib_prefix=no
14114   library_names_spec='$libname${shared_ext} $libname.a'
14115   dynamic_linker='OS/2 ld.exe'
14116   shlibpath_var=LIBPATH
14117   ;;
14118
14119 osf3* | osf4* | osf5*)
14120   version_type=osf
14121   need_lib_prefix=no
14122   need_version=no
14123   soname_spec='${libname}${release}${shared_ext}$major'
14124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14125   shlibpath_var=LD_LIBRARY_PATH
14126   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14127   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14128   ;;
14129
14130 sco3.2v5*)
14131   version_type=osf
14132   soname_spec='${libname}${release}${shared_ext}$major'
14133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14134   shlibpath_var=LD_LIBRARY_PATH
14135   ;;
14136
14137 solaris*)
14138   version_type=linux
14139   need_lib_prefix=no
14140   need_version=no
14141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14142   soname_spec='${libname}${release}${shared_ext}$major'
14143   shlibpath_var=LD_LIBRARY_PATH
14144   shlibpath_overrides_runpath=yes
14145   hardcode_into_libs=yes
14146   # ldd complains unless libraries are executable
14147   postinstall_cmds='chmod +x $lib'
14148   ;;
14149
14150 sunos4*)
14151   version_type=sunos
14152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14153   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14154   shlibpath_var=LD_LIBRARY_PATH
14155   shlibpath_overrides_runpath=yes
14156   if test "$with_gnu_ld" = yes; then
14157     need_lib_prefix=no
14158   fi
14159   need_version=yes
14160   ;;
14161
14162 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14163   version_type=linux
14164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14165   soname_spec='${libname}${release}${shared_ext}$major'
14166   shlibpath_var=LD_LIBRARY_PATH
14167   case $host_vendor in
14168     sni)
14169       shlibpath_overrides_runpath=no
14170       need_lib_prefix=no
14171       export_dynamic_flag_spec='${wl}-Blargedynsym'
14172       runpath_var=LD_RUN_PATH
14173       ;;
14174     siemens)
14175       need_lib_prefix=no
14176       ;;
14177     motorola)
14178       need_lib_prefix=no
14179       need_version=no
14180       shlibpath_overrides_runpath=no
14181       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14182       ;;
14183   esac
14184   ;;
14185
14186 sysv4*MP*)
14187   if test -d /usr/nec ;then
14188     version_type=linux
14189     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14190     soname_spec='$libname${shared_ext}.$major'
14191     shlibpath_var=LD_LIBRARY_PATH
14192   fi
14193   ;;
14194
14195 uts4*)
14196   version_type=linux
14197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14198   soname_spec='${libname}${release}${shared_ext}$major'
14199   shlibpath_var=LD_LIBRARY_PATH
14200   ;;
14201
14202 *)
14203   dynamic_linker=no
14204   ;;
14205 esac
14206 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14207 echo "${ECHO_T}$dynamic_linker" >&6
14208 test "$dynamic_linker" = no && can_build_shared=no
14209
14210
14211 # The else clause should only fire when bootstrapping the
14212 # libtool distribution, otherwise you forgot to ship ltmain.sh
14213 # with your package, and you will get complaints that there are
14214 # no rules to generate ltmain.sh.
14215 if test -f "$ltmain"; then
14216   # See if we are running on zsh, and set the options which allow our commands through
14217   # without removal of \ escapes.
14218   if test -n "${ZSH_VERSION+set}" ; then
14219     setopt NO_GLOB_SUBST
14220   fi
14221   # Now quote all the things that may contain metacharacters while being
14222   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14223   # variables and quote the copies for generation of the libtool script.
14224   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14225     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14226     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14227     deplibs_check_method reload_flag reload_cmds need_locks \
14228     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14229     lt_cv_sys_global_symbol_to_c_name_address \
14230     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14231     old_postinstall_cmds old_postuninstall_cmds \
14232     compiler_F77 \
14233     CC_F77 \
14234     LD_F77 \
14235     lt_prog_compiler_wl_F77 \
14236     lt_prog_compiler_pic_F77 \
14237     lt_prog_compiler_static_F77 \
14238     lt_prog_compiler_no_builtin_flag_F77 \
14239     export_dynamic_flag_spec_F77 \
14240     thread_safe_flag_spec_F77 \
14241     whole_archive_flag_spec_F77 \
14242     enable_shared_with_static_runtimes_F77 \
14243     old_archive_cmds_F77 \
14244     old_archive_from_new_cmds_F77 \
14245     predep_objects_F77 \
14246     postdep_objects_F77 \
14247     predeps_F77 \
14248     postdeps_F77 \
14249     compiler_lib_search_path_F77 \
14250     archive_cmds_F77 \
14251     archive_expsym_cmds_F77 \
14252     postinstall_cmds_F77 \
14253     postuninstall_cmds_F77 \
14254     old_archive_from_expsyms_cmds_F77 \
14255     allow_undefined_flag_F77 \
14256     no_undefined_flag_F77 \
14257     export_symbols_cmds_F77 \
14258     hardcode_libdir_flag_spec_F77 \
14259     hardcode_libdir_flag_spec_ld_F77 \
14260     hardcode_libdir_separator_F77 \
14261     hardcode_automatic_F77 \
14262     module_cmds_F77 \
14263     module_expsym_cmds_F77 \
14264     lt_cv_prog_compiler_c_o_F77 \
14265     exclude_expsyms_F77 \
14266     include_expsyms_F77; do
14267
14268     case $var in
14269     old_archive_cmds_F77 | \
14270     old_archive_from_new_cmds_F77 | \
14271     archive_cmds_F77 | \
14272     archive_expsym_cmds_F77 | \
14273     module_cmds_F77 | \
14274     module_expsym_cmds_F77 | \
14275     old_archive_from_expsyms_cmds_F77 | \
14276     export_symbols_cmds_F77 | \
14277     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14278     postinstall_cmds | postuninstall_cmds | \
14279     old_postinstall_cmds | old_postuninstall_cmds | \
14280     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14281       # Double-quote double-evaled strings.
14282       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14283       ;;
14284     *)
14285       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14286       ;;
14287     esac
14288   done
14289
14290   case $lt_echo in
14291   *'\$0 --fallback-echo"')
14292     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14293     ;;
14294   esac
14295
14296 cfgfile="$ofile"
14297
14298   cat <<__EOF__ >> "$cfgfile"
14299 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14300
14301 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14302
14303 # Shell to use when invoking shell scripts.
14304 SHELL=$lt_SHELL
14305
14306 # Whether or not to build shared libraries.
14307 build_libtool_libs=$enable_shared
14308
14309 # Whether or not to build static libraries.
14310 build_old_libs=$enable_static
14311
14312 # Whether or not to add -lc for building shared libraries.
14313 build_libtool_need_lc=$archive_cmds_need_lc_F77
14314
14315 # Whether or not to disallow shared libs when runtime libs are static
14316 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14317
14318 # Whether or not to optimize for fast installation.
14319 fast_install=$enable_fast_install
14320
14321 # The host system.
14322 host_alias=$host_alias
14323 host=$host
14324
14325 # An echo program that does not interpret backslashes.
14326 echo=$lt_echo
14327
14328 # The archiver.
14329 AR=$lt_AR
14330 AR_FLAGS=$lt_AR_FLAGS
14331
14332 # A C compiler.
14333 LTCC=$lt_LTCC
14334
14335 # A language-specific compiler.
14336 CC=$lt_compiler_F77
14337
14338 # Is the compiler the GNU C compiler?
14339 with_gcc=$GCC_F77
14340
14341 # An ERE matcher.
14342 EGREP=$lt_EGREP
14343
14344 # The linker used to build libraries.
14345 LD=$lt_LD_F77
14346
14347 # Whether we need hard or soft links.
14348 LN_S=$lt_LN_S
14349
14350 # A BSD-compatible nm program.
14351 NM=$lt_NM
14352
14353 # A symbol stripping program
14354 STRIP=$STRIP
14355
14356 # Used to examine libraries when file_magic_cmd begins "file"
14357 MAGIC_CMD=$MAGIC_CMD
14358
14359 # Used on cygwin: DLL creation program.
14360 DLLTOOL="$DLLTOOL"
14361
14362 # Used on cygwin: object dumper.
14363 OBJDUMP="$OBJDUMP"
14364
14365 # Used on cygwin: assembler.
14366 AS="$AS"
14367
14368 # The name of the directory that contains temporary libtool files.
14369 objdir=$objdir
14370
14371 # How to create reloadable object files.
14372 reload_flag=$lt_reload_flag
14373 reload_cmds=$lt_reload_cmds
14374
14375 # How to pass a linker flag through the compiler.
14376 wl=$lt_lt_prog_compiler_wl_F77
14377
14378 # Object file suffix (normally "o").
14379 objext="$ac_objext"
14380
14381 # Old archive suffix (normally "a").
14382 libext="$libext"
14383
14384 # Shared library suffix (normally ".so").
14385 shrext='$shrext'
14386
14387 # Executable file suffix (normally "").
14388 exeext="$exeext"
14389
14390 # Additional compiler flags for building library objects.
14391 pic_flag=$lt_lt_prog_compiler_pic_F77
14392 pic_mode=$pic_mode
14393
14394 # What is the maximum length of a command?
14395 max_cmd_len=$lt_cv_sys_max_cmd_len
14396
14397 # Does compiler simultaneously support -c and -o options?
14398 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14399
14400 # Must we lock files when doing compilation ?
14401 need_locks=$lt_need_locks
14402
14403 # Do we need the lib prefix for modules?
14404 need_lib_prefix=$need_lib_prefix
14405
14406 # Do we need a version for libraries?
14407 need_version=$need_version
14408
14409 # Whether dlopen is supported.
14410 dlopen_support=$enable_dlopen
14411
14412 # Whether dlopen of programs is supported.
14413 dlopen_self=$enable_dlopen_self
14414
14415 # Whether dlopen of statically linked programs is supported.
14416 dlopen_self_static=$enable_dlopen_self_static
14417
14418 # Compiler flag to prevent dynamic linking.
14419 link_static_flag=$lt_lt_prog_compiler_static_F77
14420
14421 # Compiler flag to turn off builtin functions.
14422 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14423
14424 # Compiler flag to allow reflexive dlopens.
14425 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14426
14427 # Compiler flag to generate shared objects directly from archives.
14428 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14429
14430 # Compiler flag to generate thread-safe objects.
14431 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14432
14433 # Library versioning type.
14434 version_type=$version_type
14435
14436 # Format of library name prefix.
14437 libname_spec=$lt_libname_spec
14438
14439 # List of archive names.  First name is the real one, the rest are links.
14440 # The last name is the one that the linker finds with -lNAME.
14441 library_names_spec=$lt_library_names_spec
14442
14443 # The coded name of the library, if different from the real name.
14444 soname_spec=$lt_soname_spec
14445
14446 # Commands used to build and install an old-style archive.
14447 RANLIB=$lt_RANLIB
14448 old_archive_cmds=$lt_old_archive_cmds_F77
14449 old_postinstall_cmds=$lt_old_postinstall_cmds
14450 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14451
14452 # Create an old-style archive from a shared archive.
14453 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14454
14455 # Create a temporary old-style archive to link instead of a shared archive.
14456 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14457
14458 # Commands used to build and install a shared archive.
14459 archive_cmds=$lt_archive_cmds_F77
14460 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14461 postinstall_cmds=$lt_postinstall_cmds
14462 postuninstall_cmds=$lt_postuninstall_cmds
14463
14464 # Commands used to build a loadable module (assumed same as above if empty)
14465 module_cmds=$lt_module_cmds_F77
14466 module_expsym_cmds=$lt_module_expsym_cmds_F77
14467
14468 # Commands to strip libraries.
14469 old_striplib=$lt_old_striplib
14470 striplib=$lt_striplib
14471
14472 # Dependencies to place before the objects being linked to create a
14473 # shared library.
14474 predep_objects=$lt_predep_objects_F77
14475
14476 # Dependencies to place after the objects being linked to create a
14477 # shared library.
14478 postdep_objects=$lt_postdep_objects_F77
14479
14480 # Dependencies to place before the objects being linked to create a
14481 # shared library.
14482 predeps=$lt_predeps_F77
14483
14484 # Dependencies to place after the objects being linked to create a
14485 # shared library.
14486 postdeps=$lt_postdeps_F77
14487
14488 # The library search path used internally by the compiler when linking
14489 # a shared library.
14490 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14491
14492 # Method to check whether dependent libraries are shared objects.
14493 deplibs_check_method=$lt_deplibs_check_method
14494
14495 # Command to use when deplibs_check_method == file_magic.
14496 file_magic_cmd=$lt_file_magic_cmd
14497
14498 # Flag that allows shared libraries with undefined symbols to be built.
14499 allow_undefined_flag=$lt_allow_undefined_flag_F77
14500
14501 # Flag that forces no undefined symbols.
14502 no_undefined_flag=$lt_no_undefined_flag_F77
14503
14504 # Commands used to finish a libtool library installation in a directory.
14505 finish_cmds=$lt_finish_cmds
14506
14507 # Same as above, but a single script fragment to be evaled but not shown.
14508 finish_eval=$lt_finish_eval
14509
14510 # Take the output of nm and produce a listing of raw symbols and C names.
14511 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14512
14513 # Transform the output of nm in a proper C declaration
14514 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14515
14516 # Transform the output of nm in a C name address pair
14517 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14518
14519 # This is the shared library runtime path variable.
14520 runpath_var=$runpath_var
14521
14522 # This is the shared library path variable.
14523 shlibpath_var=$shlibpath_var
14524
14525 # Is shlibpath searched before the hard-coded library search path?
14526 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14527
14528 # How to hardcode a shared library path into an executable.
14529 hardcode_action=$hardcode_action_F77
14530
14531 # Whether we should hardcode library paths into libraries.
14532 hardcode_into_libs=$hardcode_into_libs
14533
14534 # Flag to hardcode \$libdir into a binary during linking.
14535 # This must work even if \$libdir does not exist.
14536 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14537
14538 # If ld is used when linking, flag to hardcode \$libdir into
14539 # a binary during linking. This must work even if \$libdir does
14540 # not exist.
14541 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14542
14543 # Whether we need a single -rpath flag with a separated argument.
14544 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14545
14546 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14547 # resulting binary.
14548 hardcode_direct=$hardcode_direct_F77
14549
14550 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14551 # resulting binary.
14552 hardcode_minus_L=$hardcode_minus_L_F77
14553
14554 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14555 # the resulting binary.
14556 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14557
14558 # Set to yes if building a shared library automatically hardcodes DIR into the library
14559 # and all subsequent libraries and executables linked against it.
14560 hardcode_automatic=$hardcode_automatic_F77
14561
14562 # Variables whose values should be saved in libtool wrapper scripts and
14563 # restored at relink time.
14564 variables_saved_for_relink="$variables_saved_for_relink"
14565
14566 # Whether libtool must link a program against all its dependency libraries.
14567 link_all_deplibs=$link_all_deplibs_F77
14568
14569 # Compile-time system search path for libraries
14570 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14571
14572 # Run-time system search path for libraries
14573 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14574
14575 # Fix the shell variable \$srcfile for the compiler.
14576 fix_srcfile_path="$fix_srcfile_path_F77"
14577
14578 # Set to yes if exported symbols are required.
14579 always_export_symbols=$always_export_symbols_F77
14580
14581 # The commands to list exported symbols.
14582 export_symbols_cmds=$lt_export_symbols_cmds_F77
14583
14584 # The commands to extract the exported symbol list from a shared archive.
14585 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14586
14587 # Symbols that should not be listed in the preloaded symbols.
14588 exclude_expsyms=$lt_exclude_expsyms_F77
14589
14590 # Symbols that must always be exported.
14591 include_expsyms=$lt_include_expsyms_F77
14592
14593 # ### END LIBTOOL TAG CONFIG: $tagname
14594
14595 __EOF__
14596
14597
14598 else
14599   # If there is no Makefile yet, we rely on a make rule to execute
14600   # `config.status --recheck' to rerun these tests and create the
14601   # libtool script then.
14602   test -f Makefile && make "$ltmain"
14603 fi
14604
14605
14606 ac_ext=c
14607 ac_cpp='$CPP $CPPFLAGS'
14608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14611
14612 CC="$lt_save_CC"
14613
14614         else
14615           tagname=""
14616         fi
14617         ;;
14618
14619       GCJ)
14620         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14621
14622
14623
14624 # Source file extension for Java test sources.
14625 ac_ext=java
14626
14627 # Object file extension for compiled Java test sources.
14628 objext=o
14629 objext_GCJ=$objext
14630
14631 # Code to be used in simple compile tests
14632 lt_simple_compile_test_code="class foo {}\n"
14633
14634 # Code to be used in simple link tests
14635 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14636
14637 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14638
14639 # If no C compiler was specified, use CC.
14640 LTCC=${LTCC-"$CC"}
14641
14642 # Allow CC to be a program name with arguments.
14643 compiler=$CC
14644
14645
14646 # Allow CC to be a program name with arguments.
14647 lt_save_CC="$CC"
14648 CC=${GCJ-"gcj"}
14649 compiler=$CC
14650 compiler_GCJ=$CC
14651
14652 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14653 archive_cmds_need_lc_GCJ=no
14654
14655
14656 lt_prog_compiler_no_builtin_flag_GCJ=
14657
14658 if test "$GCC" = yes; then
14659   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14660
14661   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14662 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14663 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14664   echo $ECHO_N "(cached) $ECHO_C" >&6
14665 else
14666   lt_cv_prog_compiler_rtti_exceptions=no
14667   ac_outfile=conftest.$ac_objext
14668    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14669    lt_compiler_flag="-fno-rtti -fno-exceptions"
14670    # Insert the option either (1) after the last *FLAGS variable, or
14671    # (2) before a word containing "conftest.", or (3) at the end.
14672    # Note that $ac_compile itself does not contain backslashes and begins
14673    # with a dollar sign (not a hyphen), so the echo should work correctly.
14674    # The option is referenced via a variable to avoid confusing sed.
14675    lt_compile=`echo "$ac_compile" | $SED \
14676    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14677    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14678    -e 's:$: $lt_compiler_flag:'`
14679    (eval echo "\"\$as_me:14679: $lt_compile\"" >&5)
14680    (eval "$lt_compile" 2>conftest.err)
14681    ac_status=$?
14682    cat conftest.err >&5
14683    echo "$as_me:14683: \$? = $ac_status" >&5
14684    if (exit $ac_status) && test -s "$ac_outfile"; then
14685      # The compiler can only warn and ignore the option if not recognized
14686      # So say no if there are warnings
14687      if test ! -s conftest.err; then
14688        lt_cv_prog_compiler_rtti_exceptions=yes
14689      fi
14690    fi
14691    $rm conftest*
14692
14693 fi
14694 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14695 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14696
14697 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14698     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14699 else
14700     :
14701 fi
14702
14703 fi
14704
14705 lt_prog_compiler_wl_GCJ=
14706 lt_prog_compiler_pic_GCJ=
14707 lt_prog_compiler_static_GCJ=
14708
14709 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14710 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14711
14712   if test "$GCC" = yes; then
14713     lt_prog_compiler_wl_GCJ='-Wl,'
14714     lt_prog_compiler_static_GCJ='-static'
14715
14716     case $host_os in
14717       aix*)
14718       # All AIX code is PIC.
14719       if test "$host_cpu" = ia64; then
14720         # AIX 5 now supports IA64 processor
14721         lt_prog_compiler_static_GCJ='-Bstatic'
14722       fi
14723       ;;
14724
14725     amigaos*)
14726       # FIXME: we need at least 68020 code to build shared libraries, but
14727       # adding the `-m68020' flag to GCC prevents building anything better,
14728       # like `-m68040'.
14729       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14730       ;;
14731
14732     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14733       # PIC is the default for these OSes.
14734       ;;
14735
14736     mingw* | pw32* | os2*)
14737       # This hack is so that the source file can tell whether it is being
14738       # built for inclusion in a dll (and should export symbols for example).
14739       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14740       ;;
14741
14742     darwin* | rhapsody*)
14743       # PIC is the default on this platform
14744       # Common symbols not allowed in MH_DYLIB files
14745       lt_prog_compiler_pic_GCJ='-fno-common'
14746       ;;
14747
14748     msdosdjgpp*)
14749       # Just because we use GCC doesn't mean we suddenly get shared libraries
14750       # on systems that don't support them.
14751       lt_prog_compiler_can_build_shared_GCJ=no
14752       enable_shared=no
14753       ;;
14754
14755     sysv4*MP*)
14756       if test -d /usr/nec; then
14757         lt_prog_compiler_pic_GCJ=-Kconform_pic
14758       fi
14759       ;;
14760
14761     hpux*)
14762       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14763       # not for PA HP-UX.
14764       case "$host_cpu" in
14765       hppa*64*|ia64*)
14766         # +Z the default
14767         ;;
14768       *)
14769         lt_prog_compiler_pic_GCJ='-fPIC'
14770         ;;
14771       esac
14772       ;;
14773
14774     *)
14775       lt_prog_compiler_pic_GCJ='-fPIC'
14776       ;;
14777     esac
14778   else
14779     # PORTME Check for flag to pass linker flags through the system compiler.
14780     case $host_os in
14781     aix*)
14782       lt_prog_compiler_wl_GCJ='-Wl,'
14783       if test "$host_cpu" = ia64; then
14784         # AIX 5 now supports IA64 processor
14785         lt_prog_compiler_static_GCJ='-Bstatic'
14786       else
14787         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14788       fi
14789       ;;
14790
14791     mingw* | pw32* | os2*)
14792       # This hack is so that the source file can tell whether it is being
14793       # built for inclusion in a dll (and should export symbols for example).
14794       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14795       ;;
14796
14797     hpux9* | hpux10* | hpux11*)
14798       lt_prog_compiler_wl_GCJ='-Wl,'
14799       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14800       # not for PA HP-UX.
14801       case "$host_cpu" in
14802       hppa*64*|ia64*)
14803         # +Z the default
14804         ;;
14805       *)
14806         lt_prog_compiler_pic_GCJ='+Z'
14807         ;;
14808       esac
14809       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14810       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14811       ;;
14812
14813     irix5* | irix6* | nonstopux*)
14814       lt_prog_compiler_wl_GCJ='-Wl,'
14815       # PIC (with -KPIC) is the default.
14816       lt_prog_compiler_static_GCJ='-non_shared'
14817       ;;
14818
14819     newsos6)
14820       lt_prog_compiler_pic_GCJ='-KPIC'
14821       lt_prog_compiler_static_GCJ='-Bstatic'
14822       ;;
14823
14824     linux*)
14825       case $CC in
14826       icc|ecc)
14827         lt_prog_compiler_wl_GCJ='-Wl,'
14828         lt_prog_compiler_pic_GCJ='-KPIC'
14829         lt_prog_compiler_static_GCJ='-static'
14830         ;;
14831       ccc)
14832         lt_prog_compiler_wl_GCJ='-Wl,'
14833         # All Alpha code is PIC.
14834         lt_prog_compiler_static_GCJ='-non_shared'
14835         ;;
14836       esac
14837       ;;
14838
14839     osf3* | osf4* | osf5*)
14840       lt_prog_compiler_wl_GCJ='-Wl,'
14841       # All OSF/1 code is PIC.
14842       lt_prog_compiler_static_GCJ='-non_shared'
14843       ;;
14844
14845     sco3.2v5*)
14846       lt_prog_compiler_pic_GCJ='-Kpic'
14847       lt_prog_compiler_static_GCJ='-dn'
14848       ;;
14849
14850     solaris*)
14851       lt_prog_compiler_wl_GCJ='-Wl,'
14852       lt_prog_compiler_pic_GCJ='-KPIC'
14853       lt_prog_compiler_static_GCJ='-Bstatic'
14854       ;;
14855
14856     sunos4*)
14857       lt_prog_compiler_wl_GCJ='-Qoption ld '
14858       lt_prog_compiler_pic_GCJ='-PIC'
14859       lt_prog_compiler_static_GCJ='-Bstatic'
14860       ;;
14861
14862     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14863       lt_prog_compiler_wl_GCJ='-Wl,'
14864       lt_prog_compiler_pic_GCJ='-KPIC'
14865       lt_prog_compiler_static_GCJ='-Bstatic'
14866       ;;
14867
14868     sysv4*MP*)
14869       if test -d /usr/nec ;then
14870         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14871         lt_prog_compiler_static_GCJ='-Bstatic'
14872       fi
14873       ;;
14874
14875     uts4*)
14876       lt_prog_compiler_pic_GCJ='-pic'
14877       lt_prog_compiler_static_GCJ='-Bstatic'
14878       ;;
14879
14880     *)
14881       lt_prog_compiler_can_build_shared_GCJ=no
14882       ;;
14883     esac
14884   fi
14885
14886 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14887 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14888
14889 #
14890 # Check to make sure the PIC flag actually works.
14891 #
14892 if test -n "$lt_prog_compiler_pic_GCJ"; then
14893   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14894 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14895 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14896   echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898   lt_prog_compiler_pic_works_GCJ=no
14899   ac_outfile=conftest.$ac_objext
14900    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14901    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14902    # Insert the option either (1) after the last *FLAGS variable, or
14903    # (2) before a word containing "conftest.", or (3) at the end.
14904    # Note that $ac_compile itself does not contain backslashes and begins
14905    # with a dollar sign (not a hyphen), so the echo should work correctly.
14906    # The option is referenced via a variable to avoid confusing sed.
14907    lt_compile=`echo "$ac_compile" | $SED \
14908    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14909    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14910    -e 's:$: $lt_compiler_flag:'`
14911    (eval echo "\"\$as_me:14911: $lt_compile\"" >&5)
14912    (eval "$lt_compile" 2>conftest.err)
14913    ac_status=$?
14914    cat conftest.err >&5
14915    echo "$as_me:14915: \$? = $ac_status" >&5
14916    if (exit $ac_status) && test -s "$ac_outfile"; then
14917      # The compiler can only warn and ignore the option if not recognized
14918      # So say no if there are warnings
14919      if test ! -s conftest.err; then
14920        lt_prog_compiler_pic_works_GCJ=yes
14921      fi
14922    fi
14923    $rm conftest*
14924
14925 fi
14926 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14927 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14928
14929 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14930     case $lt_prog_compiler_pic_GCJ in
14931      "" | " "*) ;;
14932      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14933      esac
14934 else
14935     lt_prog_compiler_pic_GCJ=
14936      lt_prog_compiler_can_build_shared_GCJ=no
14937 fi
14938
14939 fi
14940 case "$host_os" in
14941   # For platforms which do not support PIC, -DPIC is meaningless:
14942   *djgpp*)
14943     lt_prog_compiler_pic_GCJ=
14944     ;;
14945   *)
14946     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14947     ;;
14948 esac
14949
14950 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14951 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14952 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14953   echo $ECHO_N "(cached) $ECHO_C" >&6
14954 else
14955   lt_cv_prog_compiler_c_o_GCJ=no
14956    $rm -r conftest 2>/dev/null
14957    mkdir conftest
14958    cd conftest
14959    mkdir out
14960    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14961
14962    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14963    # that will create temporary files in the current directory regardless of
14964    # the output directory.  Thus, making CWD read-only will cause this test
14965    # to fail, enabling locking or at least warning the user not to do parallel
14966    # builds.
14967    chmod -w .
14968
14969    lt_compiler_flag="-o out/conftest2.$ac_objext"
14970    # Insert the option either (1) after the last *FLAGS variable, or
14971    # (2) before a word containing "conftest.", or (3) at the end.
14972    # Note that $ac_compile itself does not contain backslashes and begins
14973    # with a dollar sign (not a hyphen), so the echo should work correctly.
14974    lt_compile=`echo "$ac_compile" | $SED \
14975    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14976    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14977    -e 's:$: $lt_compiler_flag:'`
14978    (eval echo "\"\$as_me:14978: $lt_compile\"" >&5)
14979    (eval "$lt_compile" 2>out/conftest.err)
14980    ac_status=$?
14981    cat out/conftest.err >&5
14982    echo "$as_me:14982: \$? = $ac_status" >&5
14983    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14984    then
14985      # The compiler can only warn and ignore the option if not recognized
14986      # So say no if there are warnings
14987      if test ! -s out/conftest.err; then
14988        lt_cv_prog_compiler_c_o_GCJ=yes
14989      fi
14990    fi
14991    chmod u+w .
14992    $rm conftest* out/*
14993    rmdir out
14994    cd ..
14995    rmdir conftest
14996    $rm conftest*
14997
14998 fi
14999 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15000 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15001
15002
15003 hard_links="nottested"
15004 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15005   # do not overwrite the value of need_locks provided by the user
15006   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15007 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15008   hard_links=yes
15009   $rm conftest*
15010   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15011   touch conftest.a
15012   ln conftest.a conftest.b 2>&5 || hard_links=no
15013   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15014   echo "$as_me:$LINENO: result: $hard_links" >&5
15015 echo "${ECHO_T}$hard_links" >&6
15016   if test "$hard_links" = no; then
15017     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15018 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15019     need_locks=warn
15020   fi
15021 else
15022   need_locks=no
15023 fi
15024
15025 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15026 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15027
15028   runpath_var=
15029   allow_undefined_flag_GCJ=
15030   enable_shared_with_static_runtimes_GCJ=no
15031   archive_cmds_GCJ=
15032   archive_expsym_cmds_GCJ=
15033   old_archive_From_new_cmds_GCJ=
15034   old_archive_from_expsyms_cmds_GCJ=
15035   export_dynamic_flag_spec_GCJ=
15036   whole_archive_flag_spec_GCJ=
15037   thread_safe_flag_spec_GCJ=
15038   hardcode_libdir_flag_spec_GCJ=
15039   hardcode_libdir_flag_spec_ld_GCJ=
15040   hardcode_libdir_separator_GCJ=
15041   hardcode_direct_GCJ=no
15042   hardcode_minus_L_GCJ=no
15043   hardcode_shlibpath_var_GCJ=unsupported
15044   link_all_deplibs_GCJ=unknown
15045   hardcode_automatic_GCJ=no
15046   module_cmds_GCJ=
15047   module_expsym_cmds_GCJ=
15048   always_export_symbols_GCJ=no
15049   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15050   # include_expsyms should be a list of space-separated symbols to be *always*
15051   # included in the symbol list
15052   include_expsyms_GCJ=
15053   # exclude_expsyms can be an extended regexp of symbols to exclude
15054   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15055   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15056   # as well as any symbol that contains `d'.
15057   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15058   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15059   # platforms (ab)use it in PIC code, but their linkers get confused if
15060   # the symbol is explicitly referenced.  Since portable code cannot
15061   # rely on this symbol name, it's probably fine to never include it in
15062   # preloaded symbol tables.
15063   extract_expsyms_cmds=
15064
15065   case $host_os in
15066   cygwin* | mingw* | pw32*)
15067     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15068     # When not using gcc, we currently assume that we are using
15069     # Microsoft Visual C++.
15070     if test "$GCC" != yes; then
15071       with_gnu_ld=no
15072     fi
15073     ;;
15074   openbsd*)
15075     with_gnu_ld=no
15076     ;;
15077   esac
15078
15079   ld_shlibs_GCJ=yes
15080   if test "$with_gnu_ld" = yes; then
15081     # If archive_cmds runs LD, not CC, wlarc should be empty
15082     wlarc='${wl}'
15083
15084     # See if GNU ld supports shared libraries.
15085     case $host_os in
15086     aix3* | aix4* | aix5*)
15087       # On AIX/PPC, the GNU linker is very broken
15088       if test "$host_cpu" != ia64; then
15089         ld_shlibs_GCJ=no
15090         cat <<EOF 1>&2
15091
15092 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15093 *** to be unable to reliably create shared libraries on AIX.
15094 *** Therefore, libtool is disabling shared libraries support.  If you
15095 *** really care for shared libraries, you may want to modify your PATH
15096 *** so that a non-GNU linker is found, and then restart.
15097
15098 EOF
15099       fi
15100       ;;
15101
15102     amigaos*)
15103       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)'
15104       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15105       hardcode_minus_L_GCJ=yes
15106
15107       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15108       # that the semantics of dynamic libraries on AmigaOS, at least up
15109       # to version 4, is to share data among multiple programs linked
15110       # with the same dynamic library.  Since this doesn't match the
15111       # behavior of shared libraries on other platforms, we can't use
15112       # them.
15113       ld_shlibs_GCJ=no
15114       ;;
15115
15116     beos*)
15117       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15118         allow_undefined_flag_GCJ=unsupported
15119         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15120         # support --undefined.  This deserves some investigation.  FIXME
15121         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15122       else
15123         ld_shlibs_GCJ=no
15124       fi
15125       ;;
15126
15127     cygwin* | mingw* | pw32*)
15128       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15129       # as there is no search path for DLLs.
15130       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15131       allow_undefined_flag_GCJ=unsupported
15132       always_export_symbols_GCJ=no
15133       enable_shared_with_static_runtimes_GCJ=yes
15134       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15135
15136       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15137         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15138         # If the export-symbols file already is a .def file (1st line
15139         # is EXPORTS), use it as is; otherwise, prepend...
15140         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15141           cp $export_symbols $output_objdir/$soname.def;
15142         else
15143           echo EXPORTS > $output_objdir/$soname.def;
15144           cat $export_symbols >> $output_objdir/$soname.def;
15145         fi~
15146         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15147       else
15148         ld_shlibs=no
15149       fi
15150       ;;
15151
15152     netbsd*)
15153       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15154         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15155         wlarc=
15156       else
15157         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15158         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15159       fi
15160       ;;
15161
15162     solaris* | sysv5*)
15163       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15164         ld_shlibs_GCJ=no
15165         cat <<EOF 1>&2
15166
15167 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15168 *** create shared libraries on Solaris systems.  Therefore, libtool
15169 *** is disabling shared libraries support.  We urge you to upgrade GNU
15170 *** binutils to release 2.9.1 or newer.  Another option is to modify
15171 *** your PATH or compiler configuration so that the native linker is
15172 *** used, and then restart.
15173
15174 EOF
15175       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15176         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15177         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15178       else
15179         ld_shlibs_GCJ=no
15180       fi
15181       ;;
15182
15183     sunos4*)
15184       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15185       wlarc=
15186       hardcode_direct_GCJ=yes
15187       hardcode_shlibpath_var_GCJ=no
15188       ;;
15189
15190     *)
15191       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15192         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15193         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15194       else
15195         ld_shlibs_GCJ=no
15196       fi
15197       ;;
15198     esac
15199
15200     if test "$ld_shlibs_GCJ" = yes; then
15201       runpath_var=LD_RUN_PATH
15202       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15203       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15204       # ancient GNU ld didn't support --whole-archive et. al.
15205       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15206         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15207       else
15208         whole_archive_flag_spec_GCJ=
15209       fi
15210     fi
15211   else
15212     # PORTME fill in a description of your system's linker (not GNU ld)
15213     case $host_os in
15214     aix3*)
15215       allow_undefined_flag_GCJ=unsupported
15216       always_export_symbols_GCJ=yes
15217       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'
15218       # Note: this linker hardcodes the directories in LIBPATH if there
15219       # are no directories specified by -L.
15220       hardcode_minus_L_GCJ=yes
15221       if test "$GCC" = yes && test -z "$link_static_flag"; then
15222         # Neither direct hardcoding nor static linking is supported with a
15223         # broken collect2.
15224         hardcode_direct_GCJ=unsupported
15225       fi
15226       ;;
15227
15228     aix4* | aix5*)
15229       if test "$host_cpu" = ia64; then
15230         # On IA64, the linker does run time linking by default, so we don't
15231         # have to do anything special.
15232         aix_use_runtimelinking=no
15233         exp_sym_flag='-Bexport'
15234         no_entry_flag=""
15235       else
15236         # If we're using GNU nm, then we don't want the "-C" option.
15237         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15238         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15239           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'
15240         else
15241           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'
15242         fi
15243         aix_use_runtimelinking=no
15244
15245         # Test if we are trying to use run time linking or normal
15246         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15247         # need to do runtime linking.
15248         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15249           for ld_flag in $LDFLAGS; do
15250           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15251             aix_use_runtimelinking=yes
15252             break
15253           fi
15254           done
15255         esac
15256
15257         exp_sym_flag='-bexport'
15258         no_entry_flag='-bnoentry'
15259       fi
15260
15261       # When large executables or shared objects are built, AIX ld can
15262       # have problems creating the table of contents.  If linking a library
15263       # or program results in "error TOC overflow" add -mminimal-toc to
15264       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15265       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15266
15267       archive_cmds_GCJ=''
15268       hardcode_direct_GCJ=yes
15269       hardcode_libdir_separator_GCJ=':'
15270       link_all_deplibs_GCJ=yes
15271
15272       if test "$GCC" = yes; then
15273         case $host_os in aix4.012|aix4.012.*)
15274         # We only want to do this on AIX 4.2 and lower, the check
15275         # below for broken collect2 doesn't work under 4.3+
15276           collect2name=`${CC} -print-prog-name=collect2`
15277           if test -f "$collect2name" && \
15278            strings "$collect2name" | grep resolve_lib_name >/dev/null
15279           then
15280           # We have reworked collect2
15281           hardcode_direct_GCJ=yes
15282           else
15283           # We have old collect2
15284           hardcode_direct_GCJ=unsupported
15285           # It fails to find uninstalled libraries when the uninstalled
15286           # path is not listed in the libpath.  Setting hardcode_minus_L
15287           # to unsupported forces relinking
15288           hardcode_minus_L_GCJ=yes
15289           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15290           hardcode_libdir_separator_GCJ=
15291           fi
15292         esac
15293         shared_flag='-shared'
15294       else
15295         # not using gcc
15296         if test "$host_cpu" = ia64; then
15297         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15298         # chokes on -Wl,-G. The following line is correct:
15299           shared_flag='-G'
15300         else
15301         if test "$aix_use_runtimelinking" = yes; then
15302             shared_flag='${wl}-G'
15303           else
15304             shared_flag='${wl}-bM:SRE'
15305         fi
15306         fi
15307       fi
15308
15309       # It seems that -bexpall does not export symbols beginning with
15310       # underscore (_), so it is better to generate a list of symbols to export.
15311       always_export_symbols_GCJ=yes
15312       if test "$aix_use_runtimelinking" = yes; then
15313         # Warning - without using the other runtime loading flags (-brtl),
15314         # -berok will link without error, but may produce a broken library.
15315         allow_undefined_flag_GCJ='-berok'
15316        # Determine the default libpath from the value encoded in an empty executable.
15317        cat >conftest.$ac_ext <<_ACEOF
15318 #line $LINENO "configure"
15319 /* confdefs.h.  */
15320 _ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h.  */
15324
15325 int
15326 main ()
15327 {
15328
15329   ;
15330   return 0;
15331 }
15332 _ACEOF
15333 rm -f conftest.$ac_objext conftest$ac_exeext
15334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15335   (eval $ac_link) 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); } &&
15339          { ac_try='test -s conftest$ac_exeext'
15340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341   (eval $ac_try) 2>&5
15342   ac_status=$?
15343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344   (exit $ac_status); }; }; then
15345
15346 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15347 }'`
15348 # Check for a 64-bit object if we didn't find anything.
15349 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; }
15350 }'`; fi
15351 else
15352   echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15354
15355 fi
15356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15357 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15358
15359        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15360         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"
15361        else
15362         if test "$host_cpu" = ia64; then
15363           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15364           allow_undefined_flag_GCJ="-z nodefs"
15365           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"
15366         else
15367          # Determine the default libpath from the value encoded in an empty executable.
15368          cat >conftest.$ac_ext <<_ACEOF
15369 #line $LINENO "configure"
15370 /* confdefs.h.  */
15371 _ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h.  */
15375
15376 int
15377 main ()
15378 {
15379
15380   ;
15381   return 0;
15382 }
15383 _ACEOF
15384 rm -f conftest.$ac_objext conftest$ac_exeext
15385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15386   (eval $ac_link) 2>&5
15387   ac_status=$?
15388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389   (exit $ac_status); } &&
15390          { ac_try='test -s conftest$ac_exeext'
15391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392   (eval $ac_try) 2>&5
15393   ac_status=$?
15394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395   (exit $ac_status); }; }; then
15396
15397 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15398 }'`
15399 # Check for a 64-bit object if we didn't find anything.
15400 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; }
15401 }'`; fi
15402 else
15403   echo "$as_me: failed program was:" >&5
15404 sed 's/^/| /' conftest.$ac_ext >&5
15405
15406 fi
15407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15408 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15409
15410          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15411           # Warning - without using the other run time loading flags,
15412           # -berok will link without error, but may produce a broken library.
15413           no_undefined_flag_GCJ=' ${wl}-bernotok'
15414           allow_undefined_flag_GCJ=' ${wl}-berok'
15415           # -bexpall does not export symbols beginning with underscore (_)
15416           always_export_symbols_GCJ=yes
15417           # Exported symbols can be pulled into shared objects from archives
15418           whole_archive_flag_spec_GCJ=' '
15419           archive_cmds_need_lc_GCJ=yes
15420           # This is similar to how AIX traditionally builds it's shared libraries.
15421           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'
15422         fi
15423       fi
15424       ;;
15425
15426     amigaos*)
15427       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)'
15428       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15429       hardcode_minus_L_GCJ=yes
15430       # see comment about different semantics on the GNU ld section
15431       ld_shlibs_GCJ=no
15432       ;;
15433
15434     bsdi4*)
15435       export_dynamic_flag_spec_GCJ=-rdynamic
15436       ;;
15437
15438     cygwin* | mingw* | pw32*)
15439       # When not using gcc, we currently assume that we are using
15440       # Microsoft Visual C++.
15441       # hardcode_libdir_flag_spec is actually meaningless, as there is
15442       # no search path for DLLs.
15443       hardcode_libdir_flag_spec_GCJ=' '
15444       allow_undefined_flag_GCJ=unsupported
15445       # Tell ltmain to make .lib files, not .a files.
15446       libext=lib
15447       # Tell ltmain to make .dll files, not .so files.
15448       shrext=".dll"
15449       # FIXME: Setting linknames here is a bad hack.
15450       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15451       # The linker will automatically build a .lib file if we build a DLL.
15452       old_archive_From_new_cmds_GCJ='true'
15453       # FIXME: Should let the user specify the lib program.
15454       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15455       fix_srcfile_path='`cygpath -w "$srcfile"`'
15456       enable_shared_with_static_runtimes_GCJ=yes
15457       ;;
15458
15459     darwin* | rhapsody*)
15460     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15461       archive_cmds_need_lc_GCJ=no
15462       case "$host_os" in
15463       rhapsody* | darwin1.[012])
15464         allow_undefined_flag_GCJ='-undefined suppress'
15465         ;;
15466       *) # Darwin 1.3 on
15467         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15468         ;;
15469       esac
15470       # FIXME: Relying on posixy $() will cause problems for
15471       #        cross-compilation, but unfortunately the echo tests do not
15472       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15473       #        `"' quotes if we put them in here... so don't!
15474         lt_int_apple_cc_single_mod=no
15475         output_verbose_link_cmd='echo'
15476         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15477           lt_int_apple_cc_single_mod=yes
15478         fi
15479         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15480           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15481         else
15482         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'
15483       fi
15484       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15485       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15486         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15487           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}'
15488         else
15489           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}'
15490         fi
15491           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}'
15492       hardcode_direct_GCJ=no
15493       hardcode_automatic_GCJ=yes
15494       hardcode_shlibpath_var_GCJ=unsupported
15495       whole_archive_flag_spec_GCJ='-all_load $convenience'
15496       link_all_deplibs_GCJ=yes
15497     fi
15498       ;;
15499
15500     dgux*)
15501       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15502       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15503       hardcode_shlibpath_var_GCJ=no
15504       ;;
15505
15506     freebsd1*)
15507       ld_shlibs_GCJ=no
15508       ;;
15509
15510     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15511     # support.  Future versions do this automatically, but an explicit c++rt0.o
15512     # does not break anything, and helps significantly (at the cost of a little
15513     # extra space).
15514     freebsd2.2*)
15515       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15516       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15517       hardcode_direct_GCJ=yes
15518       hardcode_shlibpath_var_GCJ=no
15519       ;;
15520
15521     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15522     freebsd2*)
15523       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15524       hardcode_direct_GCJ=yes
15525       hardcode_minus_L_GCJ=yes
15526       hardcode_shlibpath_var_GCJ=no
15527       ;;
15528
15529     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15530     freebsd*)
15531       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15532       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15533       hardcode_direct_GCJ=yes
15534       hardcode_shlibpath_var_GCJ=no
15535       ;;
15536
15537     hpux9*)
15538       if test "$GCC" = yes; then
15539         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'
15540       else
15541         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'
15542       fi
15543       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15544       hardcode_libdir_separator_GCJ=:
15545       hardcode_direct_GCJ=yes
15546
15547       # hardcode_minus_L: Not really in the search PATH,
15548       # but as the default location of the library.
15549       hardcode_minus_L_GCJ=yes
15550       export_dynamic_flag_spec_GCJ='${wl}-E'
15551       ;;
15552
15553     hpux10* | hpux11*)
15554       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15555         case "$host_cpu" in
15556         hppa*64*|ia64*)
15557           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15558           ;;
15559         *)
15560           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15561           ;;
15562         esac
15563       else
15564         case "$host_cpu" in
15565         hppa*64*|ia64*)
15566           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15567           ;;
15568         *)
15569           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15570           ;;
15571         esac
15572       fi
15573       if test "$with_gnu_ld" = no; then
15574         case "$host_cpu" in
15575         hppa*64*)
15576           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15577           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15578           hardcode_libdir_separator_GCJ=:
15579           hardcode_direct_GCJ=no
15580           hardcode_shlibpath_var_GCJ=no
15581           ;;
15582         ia64*)
15583           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15584           hardcode_direct_GCJ=no
15585           hardcode_shlibpath_var_GCJ=no
15586
15587           # hardcode_minus_L: Not really in the search PATH,
15588           # but as the default location of the library.
15589           hardcode_minus_L_GCJ=yes
15590           ;;
15591         *)
15592           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15593           hardcode_libdir_separator_GCJ=:
15594           hardcode_direct_GCJ=yes
15595           export_dynamic_flag_spec_GCJ='${wl}-E'
15596
15597           # hardcode_minus_L: Not really in the search PATH,
15598           # but as the default location of the library.
15599           hardcode_minus_L_GCJ=yes
15600           ;;
15601         esac
15602       fi
15603       ;;
15604
15605     irix5* | irix6* | nonstopux*)
15606       if test "$GCC" = yes; then
15607         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'
15608       else
15609         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'
15610         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15611       fi
15612       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15613       hardcode_libdir_separator_GCJ=:
15614       link_all_deplibs_GCJ=yes
15615       ;;
15616
15617     netbsd*)
15618       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15619         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15620       else
15621         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15622       fi
15623       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15624       hardcode_direct_GCJ=yes
15625       hardcode_shlibpath_var_GCJ=no
15626       ;;
15627
15628     newsos6)
15629       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15630       hardcode_direct_GCJ=yes
15631       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15632       hardcode_libdir_separator_GCJ=:
15633       hardcode_shlibpath_var_GCJ=no
15634       ;;
15635
15636     openbsd*)
15637       hardcode_direct_GCJ=yes
15638       hardcode_shlibpath_var_GCJ=no
15639       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15640         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15641         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15642         export_dynamic_flag_spec_GCJ='${wl}-E'
15643       else
15644        case $host_os in
15645          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15646            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15647            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15648            ;;
15649          *)
15650            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15651            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15652            ;;
15653        esac
15654       fi
15655       ;;
15656
15657     os2*)
15658       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15659       hardcode_minus_L_GCJ=yes
15660       allow_undefined_flag_GCJ=unsupported
15661       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'
15662       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15663       ;;
15664
15665     osf3*)
15666       if test "$GCC" = yes; then
15667         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15668         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'
15669       else
15670         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15671         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'
15672       fi
15673       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15674       hardcode_libdir_separator_GCJ=:
15675       ;;
15676
15677     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15678       if test "$GCC" = yes; then
15679         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15680         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'
15681         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15682       else
15683         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15684         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'
15685         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~
15686         $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'
15687
15688         # Both c and cxx compiler support -rpath directly
15689         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15690       fi
15691       hardcode_libdir_separator_GCJ=:
15692       ;;
15693
15694     sco3.2v5*)
15695       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15696       hardcode_shlibpath_var_GCJ=no
15697       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15698       runpath_var=LD_RUN_PATH
15699       hardcode_runpath_var=yes
15700       ;;
15701
15702     solaris*)
15703       no_undefined_flag_GCJ=' -z text'
15704       if test "$GCC" = yes; then
15705         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15706         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15707           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15708       else
15709         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15710         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15711         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15712       fi
15713       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15714       hardcode_shlibpath_var_GCJ=no
15715       case $host_os in
15716       solaris2.[0-5] | solaris2.[0-5].*) ;;
15717       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15718         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15719       esac
15720       link_all_deplibs_GCJ=yes
15721       ;;
15722
15723     sunos4*)
15724       if test "x$host_vendor" = xsequent; then
15725         # Use $CC to link under sequent, because it throws in some extra .o
15726         # files that make .init and .fini sections work.
15727         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15728       else
15729         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15730       fi
15731       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15732       hardcode_direct_GCJ=yes
15733       hardcode_minus_L_GCJ=yes
15734       hardcode_shlibpath_var_GCJ=no
15735       ;;
15736
15737     sysv4)
15738       case $host_vendor in
15739         sni)
15740           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741           hardcode_direct_GCJ=yes # is this really true???
15742         ;;
15743         siemens)
15744           ## LD is ld it makes a PLAMLIB
15745           ## CC just makes a GrossModule.
15746           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15747           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15748           hardcode_direct_GCJ=no
15749         ;;
15750         motorola)
15751           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15752           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15753         ;;
15754       esac
15755       runpath_var='LD_RUN_PATH'
15756       hardcode_shlibpath_var_GCJ=no
15757       ;;
15758
15759     sysv4.3*)
15760       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15761       hardcode_shlibpath_var_GCJ=no
15762       export_dynamic_flag_spec_GCJ='-Bexport'
15763       ;;
15764
15765     sysv4*MP*)
15766       if test -d /usr/nec; then
15767         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15768         hardcode_shlibpath_var_GCJ=no
15769         runpath_var=LD_RUN_PATH
15770         hardcode_runpath_var=yes
15771         ld_shlibs_GCJ=yes
15772       fi
15773       ;;
15774
15775     sysv4.2uw2*)
15776       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15777       hardcode_direct_GCJ=yes
15778       hardcode_minus_L_GCJ=no
15779       hardcode_shlibpath_var_GCJ=no
15780       hardcode_runpath_var=yes
15781       runpath_var=LD_RUN_PATH
15782       ;;
15783
15784    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15785       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15786       if test "$GCC" = yes; then
15787         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15788       else
15789         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15790       fi
15791       runpath_var='LD_RUN_PATH'
15792       hardcode_shlibpath_var_GCJ=no
15793       ;;
15794
15795     sysv5*)
15796       no_undefined_flag_GCJ=' -z text'
15797       # $CC -shared without GNU ld will not create a library from C++
15798       # object files and a static libstdc++, better avoid it by now
15799       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15800       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15801                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15802       hardcode_libdir_flag_spec_GCJ=
15803       hardcode_shlibpath_var_GCJ=no
15804       runpath_var='LD_RUN_PATH'
15805       ;;
15806
15807     uts4*)
15808       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15810       hardcode_shlibpath_var_GCJ=no
15811       ;;
15812
15813     *)
15814       ld_shlibs_GCJ=no
15815       ;;
15816     esac
15817   fi
15818
15819 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15820 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15821 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15822
15823 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15824 if test "$GCC" = yes; then
15825   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15826 fi
15827
15828 #
15829 # Do we need to explicitly link libc?
15830 #
15831 case "x$archive_cmds_need_lc_GCJ" in
15832 x|xyes)
15833   # Assume -lc should be added
15834   archive_cmds_need_lc_GCJ=yes
15835
15836   if test "$enable_shared" = yes && test "$GCC" = yes; then
15837     case $archive_cmds_GCJ in
15838     *'~'*)
15839       # FIXME: we may have to deal with multi-command sequences.
15840       ;;
15841     '$CC '*)
15842       # Test whether the compiler implicitly links with -lc since on some
15843       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15844       # to ld, don't add -lc before -lgcc.
15845       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15846 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15847       $rm conftest*
15848       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15849
15850       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15851   (eval $ac_compile) 2>&5
15852   ac_status=$?
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); } 2>conftest.err; then
15855         soname=conftest
15856         lib=conftest
15857         libobjs=conftest.$ac_objext
15858         deplibs=
15859         wl=$lt_prog_compiler_wl_GCJ
15860         compiler_flags=-v
15861         linker_flags=-v
15862         verstring=
15863         output_objdir=.
15864         libname=conftest
15865         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15866         allow_undefined_flag_GCJ=
15867         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15868   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15869   ac_status=$?
15870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871   (exit $ac_status); }
15872         then
15873           archive_cmds_need_lc_GCJ=no
15874         else
15875           archive_cmds_need_lc_GCJ=yes
15876         fi
15877         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15878       else
15879         cat conftest.err 1>&5
15880       fi
15881       $rm conftest*
15882       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15883 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15884       ;;
15885     esac
15886   fi
15887   ;;
15888 esac
15889
15890 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15891 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15892 hardcode_action_GCJ=
15893 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15894    test -n "$runpath_var GCJ" || \
15895    test "X$hardcode_automatic_GCJ"="Xyes" ; then
15896
15897   # We can hardcode non-existant directories.
15898   if test "$hardcode_direct_GCJ" != no &&
15899      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15900      # have to relink, otherwise we might link with an installed library
15901      # when we should be linking with a yet-to-be-installed one
15902      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15903      test "$hardcode_minus_L_GCJ" != no; then
15904     # Linking always hardcodes the temporary library directory.
15905     hardcode_action_GCJ=relink
15906   else
15907     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15908     hardcode_action_GCJ=immediate
15909   fi
15910 else
15911   # We cannot hardcode anything, or else we can only hardcode existing
15912   # directories.
15913   hardcode_action_GCJ=unsupported
15914 fi
15915 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15916 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15917
15918 if test "$hardcode_action_GCJ" = relink; then
15919   # Fast installation is not supported
15920   enable_fast_install=no
15921 elif test "$shlibpath_overrides_runpath" = yes ||
15922      test "$enable_shared" = no; then
15923   # Fast installation is not necessary
15924   enable_fast_install=needless
15925 fi
15926
15927 striplib=
15928 old_striplib=
15929 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15930 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15931 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15932   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15933   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15934   echo "$as_me:$LINENO: result: yes" >&5
15935 echo "${ECHO_T}yes" >&6
15936 else
15937 # FIXME - insert some real tests, host_os isn't really good enough
15938   case $host_os in
15939    darwin*)
15940        if test -n "$STRIP" ; then
15941          striplib="$STRIP -x"
15942          echo "$as_me:$LINENO: result: yes" >&5
15943 echo "${ECHO_T}yes" >&6
15944        else
15945   echo "$as_me:$LINENO: result: no" >&5
15946 echo "${ECHO_T}no" >&6
15947 fi
15948        ;;
15949    *)
15950   echo "$as_me:$LINENO: result: no" >&5
15951 echo "${ECHO_T}no" >&6
15952     ;;
15953   esac
15954 fi
15955
15956 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15957 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15958 library_names_spec=
15959 libname_spec='lib$name'
15960 soname_spec=
15961 shrext=".so"
15962 postinstall_cmds=
15963 postuninstall_cmds=
15964 finish_cmds=
15965 finish_eval=
15966 shlibpath_var=
15967 shlibpath_overrides_runpath=unknown
15968 version_type=none
15969 dynamic_linker="$host_os ld.so"
15970 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15971 if test "$GCC" = yes; then
15972   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15973   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15974     # if the path contains ";" then we assume it to be the separator
15975     # otherwise default to the standard path separator (i.e. ":") - it is
15976     # assumed that no part of a normal pathname contains ";" but that should
15977     # okay in the real world where ";" in dirpaths is itself problematic.
15978     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15979   else
15980     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15981   fi
15982 else
15983   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15984 fi
15985 need_lib_prefix=unknown
15986 hardcode_into_libs=no
15987
15988 # when you set need_version to no, make sure it does not cause -set_version
15989 # flags to be left without arguments
15990 need_version=unknown
15991
15992 case $host_os in
15993 aix3*)
15994   version_type=linux
15995   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15996   shlibpath_var=LIBPATH
15997
15998   # AIX 3 has no versioning support, so we append a major version to the name.
15999   soname_spec='${libname}${release}${shared_ext}$major'
16000   ;;
16001
16002 aix4* | aix5*)
16003   version_type=linux
16004   need_lib_prefix=no
16005   need_version=no
16006   hardcode_into_libs=yes
16007   if test "$host_cpu" = ia64; then
16008     # AIX 5 supports IA64
16009     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16010     shlibpath_var=LD_LIBRARY_PATH
16011   else
16012     # With GCC up to 2.95.x, collect2 would create an import file
16013     # for dependence libraries.  The import file would start with
16014     # the line `#! .'.  This would cause the generated library to
16015     # depend on `.', always an invalid library.  This was fixed in
16016     # development snapshots of GCC prior to 3.0.
16017     case $host_os in
16018       aix4 | aix4.[01] | aix4.[01].*)
16019       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16020            echo ' yes '
16021            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16022         :
16023       else
16024         can_build_shared=no
16025       fi
16026       ;;
16027     esac
16028     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16029     # soname into executable. Probably we can add versioning support to
16030     # collect2, so additional links can be useful in future.
16031     if test "$aix_use_runtimelinking" = yes; then
16032       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16033       # instead of lib<name>.a to let people know that these are not
16034       # typical AIX shared libraries.
16035       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16036     else
16037       # We preserve .a as extension for shared libraries through AIX4.2
16038       # and later when we are not doing run time linking.
16039       library_names_spec='${libname}${release}.a $libname.a'
16040       soname_spec='${libname}${release}${shared_ext}$major'
16041     fi
16042     shlibpath_var=LIBPATH
16043   fi
16044   ;;
16045
16046 amigaos*)
16047   library_names_spec='$libname.ixlibrary $libname.a'
16048   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16049   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'
16050   ;;
16051
16052 beos*)
16053   library_names_spec='${libname}${shared_ext}'
16054   dynamic_linker="$host_os ld.so"
16055   shlibpath_var=LIBRARY_PATH
16056   ;;
16057
16058 bsdi4*)
16059   version_type=linux
16060   need_version=no
16061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062   soname_spec='${libname}${release}${shared_ext}$major'
16063   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16064   shlibpath_var=LD_LIBRARY_PATH
16065   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16066   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16067   # the default ld.so.conf also contains /usr/contrib/lib and
16068   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16069   # libtool to hard-code these into programs
16070   ;;
16071
16072 cygwin* | mingw* | pw32*)
16073   version_type=windows
16074   shrext=".dll"
16075   need_version=no
16076   need_lib_prefix=no
16077
16078   case $GCC,$host_os in
16079   yes,cygwin* | yes,mingw* | yes,pw32*)
16080     library_names_spec='$libname.dll.a'
16081     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16082     postinstall_cmds='base_file=`basename \${file}`~
16083       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16084       dldir=$destdir/`dirname \$dlpath`~
16085       test -d \$dldir || mkdir -p \$dldir~
16086       $install_prog $dir/$dlname \$dldir/$dlname'
16087     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16088       dlpath=$dir/\$dldll~
16089        $rm \$dlpath'
16090     shlibpath_overrides_runpath=yes
16091
16092     case $host_os in
16093     cygwin*)
16094       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16095       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16096       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16097       ;;
16098     mingw*)
16099       # MinGW DLLs use traditional 'lib' prefix
16100       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16101       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16102       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16103         # It is most probably a Windows format PATH printed by
16104         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16105         # path with ; separators, and with drive letters. We can handle the
16106         # drive letters (cygwin fileutils understands them), so leave them,
16107         # especially as we might pass files found there to a mingw objdump,
16108         # which wouldn't understand a cygwinified path. Ahh.
16109         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16110       else
16111         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16112       fi
16113       ;;
16114     pw32*)
16115       # pw32 DLLs use 'pw' prefix rather than 'lib'
16116       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16117       ;;
16118     esac
16119     ;;
16120
16121   *)
16122     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16123     ;;
16124   esac
16125   dynamic_linker='Win32 ld.exe'
16126   # FIXME: first we should search . and the directory the executable is in
16127   shlibpath_var=PATH
16128   ;;
16129
16130 darwin* | rhapsody*)
16131   dynamic_linker="$host_os dyld"
16132   version_type=darwin
16133   need_lib_prefix=no
16134   need_version=no
16135   # FIXME: Relying on posixy $() will cause problems for
16136   #        cross-compilation, but unfortunately the echo tests do not
16137   #        yet detect zsh echo's removal of \ escapes.
16138   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16139   soname_spec='${libname}${release}${major}$shared_ext'
16140   shlibpath_overrides_runpath=yes
16141   shlibpath_var=DYLD_LIBRARY_PATH
16142   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16143   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16144   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16145   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"`
16146   fi
16147   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16148   ;;
16149
16150 dgux*)
16151   version_type=linux
16152   need_lib_prefix=no
16153   need_version=no
16154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16155   soname_spec='${libname}${release}${shared_ext}$major'
16156   shlibpath_var=LD_LIBRARY_PATH
16157   ;;
16158
16159 freebsd1*)
16160   dynamic_linker=no
16161   ;;
16162
16163 freebsd*)
16164   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16165   version_type=freebsd-$objformat
16166   case $version_type in
16167     freebsd-elf*)
16168       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16169       need_version=no
16170       need_lib_prefix=no
16171       ;;
16172     freebsd-*)
16173       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16174       need_version=yes
16175       ;;
16176   esac
16177   shlibpath_var=LD_LIBRARY_PATH
16178   case $host_os in
16179   freebsd2*)
16180     shlibpath_overrides_runpath=yes
16181     ;;
16182   freebsd3.01* | freebsdelf3.01*)
16183     shlibpath_overrides_runpath=yes
16184     hardcode_into_libs=yes
16185     ;;
16186   *) # from 3.2 on
16187     shlibpath_overrides_runpath=no
16188     hardcode_into_libs=yes
16189     ;;
16190   esac
16191   ;;
16192
16193 gnu*)
16194   version_type=linux
16195   need_lib_prefix=no
16196   need_version=no
16197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16198   soname_spec='${libname}${release}${shared_ext}$major'
16199   shlibpath_var=LD_LIBRARY_PATH
16200   hardcode_into_libs=yes
16201   ;;
16202
16203 hpux9* | hpux10* | hpux11*)
16204   # Give a soname corresponding to the major version so that dld.sl refuses to
16205   # link against other versions.
16206   version_type=sunos
16207   need_lib_prefix=no
16208   need_version=no
16209   case "$host_cpu" in
16210   ia64*)
16211     shrext='.so'
16212     hardcode_into_libs=yes
16213     dynamic_linker="$host_os dld.so"
16214     shlibpath_var=LD_LIBRARY_PATH
16215     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16216     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16217     soname_spec='${libname}${release}${shared_ext}$major'
16218     if test "X$HPUX_IA64_MODE" = X32; then
16219       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16220     else
16221       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16222     fi
16223     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16224     ;;
16225    hppa*64*)
16226      shrext='.sl'
16227      hardcode_into_libs=yes
16228      dynamic_linker="$host_os dld.sl"
16229      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16230      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16231      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232      soname_spec='${libname}${release}${shared_ext}$major'
16233      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16234      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16235      ;;
16236    *)
16237     shrext='.sl'
16238     dynamic_linker="$host_os dld.sl"
16239     shlibpath_var=SHLIB_PATH
16240     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16241     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16242     soname_spec='${libname}${release}${shared_ext}$major'
16243     ;;
16244   esac
16245   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16246   postinstall_cmds='chmod 555 $lib'
16247   ;;
16248
16249 irix5* | irix6* | nonstopux*)
16250   case $host_os in
16251     nonstopux*) version_type=nonstopux ;;
16252     *)
16253         if test "$lt_cv_prog_gnu_ld" = yes; then
16254                 version_type=linux
16255         else
16256                 version_type=irix
16257         fi ;;
16258   esac
16259   need_lib_prefix=no
16260   need_version=no
16261   soname_spec='${libname}${release}${shared_ext}$major'
16262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16263   case $host_os in
16264   irix5* | nonstopux*)
16265     libsuff= shlibsuff=
16266     ;;
16267   *)
16268     case $LD in # libtool.m4 will add one of these switches to LD
16269     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16270       libsuff= shlibsuff= libmagic=32-bit;;
16271     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16272       libsuff=32 shlibsuff=N32 libmagic=N32;;
16273     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16274       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16275     *) libsuff= shlibsuff= libmagic=never-match;;
16276     esac
16277     ;;
16278   esac
16279   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16280   shlibpath_overrides_runpath=no
16281   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16282   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16283   hardcode_into_libs=yes
16284   ;;
16285
16286 # No shared lib support for Linux oldld, aout, or coff.
16287 linux*oldld* | linux*aout* | linux*coff*)
16288   dynamic_linker=no
16289   ;;
16290
16291 # This must be Linux ELF.
16292 linux*)
16293   version_type=linux
16294   need_lib_prefix=no
16295   need_version=no
16296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16297   soname_spec='${libname}${release}${shared_ext}$major'
16298   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16299   shlibpath_var=LD_LIBRARY_PATH
16300   shlibpath_overrides_runpath=no
16301   # This implies no fast_install, which is unacceptable.
16302   # Some rework will be needed to allow for fast_install
16303   # before this can be enabled.
16304   hardcode_into_libs=yes
16305
16306   # We used to test for /lib/ld.so.1 and disable shared libraries on
16307   # powerpc, because MkLinux only supported shared libraries with the
16308   # GNU dynamic linker.  Since this was broken with cross compilers,
16309   # most powerpc-linux boxes support dynamic linking these days and
16310   # people can always --disable-shared, the test was removed, and we
16311   # assume the GNU/Linux dynamic linker is in use.
16312   dynamic_linker='GNU/Linux ld.so'
16313   ;;
16314
16315 netbsd*)
16316   version_type=sunos
16317   need_lib_prefix=no
16318   need_version=no
16319   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16321     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16322     dynamic_linker='NetBSD (a.out) ld.so'
16323   else
16324     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16325     soname_spec='${libname}${release}${shared_ext}$major'
16326     dynamic_linker='NetBSD ld.elf_so'
16327   fi
16328   shlibpath_var=LD_LIBRARY_PATH
16329   shlibpath_overrides_runpath=yes
16330   hardcode_into_libs=yes
16331   ;;
16332
16333 newsos6)
16334   version_type=linux
16335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16336   shlibpath_var=LD_LIBRARY_PATH
16337   shlibpath_overrides_runpath=yes
16338   ;;
16339
16340 nto-qnx)
16341   version_type=linux
16342   need_lib_prefix=no
16343   need_version=no
16344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345   soname_spec='${libname}${release}${shared_ext}$major'
16346   shlibpath_var=LD_LIBRARY_PATH
16347   shlibpath_overrides_runpath=yes
16348   ;;
16349
16350 openbsd*)
16351   version_type=sunos
16352   need_lib_prefix=no
16353   need_version=no
16354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16355   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16356   shlibpath_var=LD_LIBRARY_PATH
16357   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16358     case $host_os in
16359       openbsd2.[89] | openbsd2.[89].*)
16360         shlibpath_overrides_runpath=no
16361         ;;
16362       *)
16363         shlibpath_overrides_runpath=yes
16364         ;;
16365       esac
16366   else
16367     shlibpath_overrides_runpath=yes
16368   fi
16369   ;;
16370
16371 os2*)
16372   libname_spec='$name'
16373   shrext=".dll"
16374   need_lib_prefix=no
16375   library_names_spec='$libname${shared_ext} $libname.a'
16376   dynamic_linker='OS/2 ld.exe'
16377   shlibpath_var=LIBPATH
16378   ;;
16379
16380 osf3* | osf4* | osf5*)
16381   version_type=osf
16382   need_lib_prefix=no
16383   need_version=no
16384   soname_spec='${libname}${release}${shared_ext}$major'
16385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16386   shlibpath_var=LD_LIBRARY_PATH
16387   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16388   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16389   ;;
16390
16391 sco3.2v5*)
16392   version_type=osf
16393   soname_spec='${libname}${release}${shared_ext}$major'
16394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16395   shlibpath_var=LD_LIBRARY_PATH
16396   ;;
16397
16398 solaris*)
16399   version_type=linux
16400   need_lib_prefix=no
16401   need_version=no
16402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16403   soname_spec='${libname}${release}${shared_ext}$major'
16404   shlibpath_var=LD_LIBRARY_PATH
16405   shlibpath_overrides_runpath=yes
16406   hardcode_into_libs=yes
16407   # ldd complains unless libraries are executable
16408   postinstall_cmds='chmod +x $lib'
16409   ;;
16410
16411 sunos4*)
16412   version_type=sunos
16413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16414   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16415   shlibpath_var=LD_LIBRARY_PATH
16416   shlibpath_overrides_runpath=yes
16417   if test "$with_gnu_ld" = yes; then
16418     need_lib_prefix=no
16419   fi
16420   need_version=yes
16421   ;;
16422
16423 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16424   version_type=linux
16425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426   soname_spec='${libname}${release}${shared_ext}$major'
16427   shlibpath_var=LD_LIBRARY_PATH
16428   case $host_vendor in
16429     sni)
16430       shlibpath_overrides_runpath=no
16431       need_lib_prefix=no
16432       export_dynamic_flag_spec='${wl}-Blargedynsym'
16433       runpath_var=LD_RUN_PATH
16434       ;;
16435     siemens)
16436       need_lib_prefix=no
16437       ;;
16438     motorola)
16439       need_lib_prefix=no
16440       need_version=no
16441       shlibpath_overrides_runpath=no
16442       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16443       ;;
16444   esac
16445   ;;
16446
16447 sysv4*MP*)
16448   if test -d /usr/nec ;then
16449     version_type=linux
16450     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16451     soname_spec='$libname${shared_ext}.$major'
16452     shlibpath_var=LD_LIBRARY_PATH
16453   fi
16454   ;;
16455
16456 uts4*)
16457   version_type=linux
16458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16459   soname_spec='${libname}${release}${shared_ext}$major'
16460   shlibpath_var=LD_LIBRARY_PATH
16461   ;;
16462
16463 *)
16464   dynamic_linker=no
16465   ;;
16466 esac
16467 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16468 echo "${ECHO_T}$dynamic_linker" >&6
16469 test "$dynamic_linker" = no && can_build_shared=no
16470
16471 if test "x$enable_dlopen" != xyes; then
16472   enable_dlopen=unknown
16473   enable_dlopen_self=unknown
16474   enable_dlopen_self_static=unknown
16475 else
16476   lt_cv_dlopen=no
16477   lt_cv_dlopen_libs=
16478
16479   case $host_os in
16480   beos*)
16481     lt_cv_dlopen="load_add_on"
16482     lt_cv_dlopen_libs=
16483     lt_cv_dlopen_self=yes
16484     ;;
16485
16486   mingw* | pw32*)
16487     lt_cv_dlopen="LoadLibrary"
16488     lt_cv_dlopen_libs=
16489    ;;
16490
16491   cygwin*)
16492     lt_cv_dlopen="dlopen"
16493     lt_cv_dlopen_libs=
16494    ;;
16495
16496   darwin*)
16497   # if libdl is installed we need to link against it
16498     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16499 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16500 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16501   echo $ECHO_N "(cached) $ECHO_C" >&6
16502 else
16503   ac_check_lib_save_LIBS=$LIBS
16504 LIBS="-ldl  $LIBS"
16505 cat >conftest.$ac_ext <<_ACEOF
16506 #line $LINENO "configure"
16507 /* confdefs.h.  */
16508 _ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h.  */
16512
16513 /* Override any gcc2 internal prototype to avoid an error.  */
16514 #ifdef __cplusplus
16515 extern "C"
16516 #endif
16517 /* We use char because int might match the return type of a gcc2
16518    builtin and then its argument prototype would still apply.  */
16519 char dlopen ();
16520 int
16521 main ()
16522 {
16523 dlopen ();
16524   ;
16525   return 0;
16526 }
16527 _ACEOF
16528 rm -f conftest.$ac_objext conftest$ac_exeext
16529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16530   (eval $ac_link) 2>&5
16531   ac_status=$?
16532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533   (exit $ac_status); } &&
16534          { ac_try='test -s conftest$ac_exeext'
16535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536   (eval $ac_try) 2>&5
16537   ac_status=$?
16538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539   (exit $ac_status); }; }; then
16540   ac_cv_lib_dl_dlopen=yes
16541 else
16542   echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.$ac_ext >&5
16544
16545 ac_cv_lib_dl_dlopen=no
16546 fi
16547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16548 LIBS=$ac_check_lib_save_LIBS
16549 fi
16550 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16551 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16552 if test $ac_cv_lib_dl_dlopen = yes; then
16553   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16554 else
16555
16556     lt_cv_dlopen="dyld"
16557     lt_cv_dlopen_libs=
16558     lt_cv_dlopen_self=yes
16559
16560 fi
16561
16562    ;;
16563
16564   *)
16565     echo "$as_me:$LINENO: checking for shl_load" >&5
16566 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16567 if test "${ac_cv_func_shl_load+set}" = set; then
16568   echo $ECHO_N "(cached) $ECHO_C" >&6
16569 else
16570   cat >conftest.$ac_ext <<_ACEOF
16571 #line $LINENO "configure"
16572 /* confdefs.h.  */
16573 _ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h.  */
16577 /* System header to define __stub macros and hopefully few prototypes,
16578     which can conflict with char shl_load (); below.
16579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16580     <limits.h> exists even on freestanding compilers.  */
16581 #ifdef __STDC__
16582 # include <limits.h>
16583 #else
16584 # include <assert.h>
16585 #endif
16586 /* Override any gcc2 internal prototype to avoid an error.  */
16587 #ifdef __cplusplus
16588 extern "C"
16589 {
16590 #endif
16591 /* We use char because int might match the return type of a gcc2
16592    builtin and then its argument prototype would still apply.  */
16593 char shl_load ();
16594 /* The GNU C library defines this for functions which it implements
16595     to always fail with ENOSYS.  Some functions are actually named
16596     something starting with __ and the normal name is an alias.  */
16597 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16598 choke me
16599 #else
16600 char (*f) () = shl_load;
16601 #endif
16602 #ifdef __cplusplus
16603 }
16604 #endif
16605
16606 int
16607 main ()
16608 {
16609 return f != shl_load;
16610   ;
16611   return 0;
16612 }
16613 _ACEOF
16614 rm -f conftest.$ac_objext conftest$ac_exeext
16615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16616   (eval $ac_link) 2>&5
16617   ac_status=$?
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); } &&
16620          { ac_try='test -s conftest$ac_exeext'
16621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622   (eval $ac_try) 2>&5
16623   ac_status=$?
16624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625   (exit $ac_status); }; }; then
16626   ac_cv_func_shl_load=yes
16627 else
16628   echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16630
16631 ac_cv_func_shl_load=no
16632 fi
16633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16634 fi
16635 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16636 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16637 if test $ac_cv_func_shl_load = yes; then
16638   lt_cv_dlopen="shl_load"
16639 else
16640   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16641 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16642 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16643   echo $ECHO_N "(cached) $ECHO_C" >&6
16644 else
16645   ac_check_lib_save_LIBS=$LIBS
16646 LIBS="-ldld  $LIBS"
16647 cat >conftest.$ac_ext <<_ACEOF
16648 #line $LINENO "configure"
16649 /* confdefs.h.  */
16650 _ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h.  */
16654
16655 /* Override any gcc2 internal prototype to avoid an error.  */
16656 #ifdef __cplusplus
16657 extern "C"
16658 #endif
16659 /* We use char because int might match the return type of a gcc2
16660    builtin and then its argument prototype would still apply.  */
16661 char shl_load ();
16662 int
16663 main ()
16664 {
16665 shl_load ();
16666   ;
16667   return 0;
16668 }
16669 _ACEOF
16670 rm -f conftest.$ac_objext conftest$ac_exeext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672   (eval $ac_link) 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); } &&
16676          { ac_try='test -s conftest$ac_exeext'
16677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678   (eval $ac_try) 2>&5
16679   ac_status=$?
16680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681   (exit $ac_status); }; }; then
16682   ac_cv_lib_dld_shl_load=yes
16683 else
16684   echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16686
16687 ac_cv_lib_dld_shl_load=no
16688 fi
16689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16690 LIBS=$ac_check_lib_save_LIBS
16691 fi
16692 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16693 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16694 if test $ac_cv_lib_dld_shl_load = yes; then
16695   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16696 else
16697   echo "$as_me:$LINENO: checking for dlopen" >&5
16698 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16699 if test "${ac_cv_func_dlopen+set}" = set; then
16700   echo $ECHO_N "(cached) $ECHO_C" >&6
16701 else
16702   cat >conftest.$ac_ext <<_ACEOF
16703 #line $LINENO "configure"
16704 /* confdefs.h.  */
16705 _ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h.  */
16709 /* System header to define __stub macros and hopefully few prototypes,
16710     which can conflict with char dlopen (); below.
16711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16712     <limits.h> exists even on freestanding compilers.  */
16713 #ifdef __STDC__
16714 # include <limits.h>
16715 #else
16716 # include <assert.h>
16717 #endif
16718 /* Override any gcc2 internal prototype to avoid an error.  */
16719 #ifdef __cplusplus
16720 extern "C"
16721 {
16722 #endif
16723 /* We use char because int might match the return type of a gcc2
16724    builtin and then its argument prototype would still apply.  */
16725 char dlopen ();
16726 /* The GNU C library defines this for functions which it implements
16727     to always fail with ENOSYS.  Some functions are actually named
16728     something starting with __ and the normal name is an alias.  */
16729 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16730 choke me
16731 #else
16732 char (*f) () = dlopen;
16733 #endif
16734 #ifdef __cplusplus
16735 }
16736 #endif
16737
16738 int
16739 main ()
16740 {
16741 return f != dlopen;
16742   ;
16743   return 0;
16744 }
16745 _ACEOF
16746 rm -f conftest.$ac_objext conftest$ac_exeext
16747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16748   (eval $ac_link) 2>&5
16749   ac_status=$?
16750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751   (exit $ac_status); } &&
16752          { ac_try='test -s conftest$ac_exeext'
16753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754   (eval $ac_try) 2>&5
16755   ac_status=$?
16756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757   (exit $ac_status); }; }; then
16758   ac_cv_func_dlopen=yes
16759 else
16760   echo "$as_me: failed program was:" >&5
16761 sed 's/^/| /' conftest.$ac_ext >&5
16762
16763 ac_cv_func_dlopen=no
16764 fi
16765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16766 fi
16767 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16768 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16769 if test $ac_cv_func_dlopen = yes; then
16770   lt_cv_dlopen="dlopen"
16771 else
16772   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16773 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16774 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16775   echo $ECHO_N "(cached) $ECHO_C" >&6
16776 else
16777   ac_check_lib_save_LIBS=$LIBS
16778 LIBS="-ldl  $LIBS"
16779 cat >conftest.$ac_ext <<_ACEOF
16780 #line $LINENO "configure"
16781 /* confdefs.h.  */
16782 _ACEOF
16783 cat confdefs.h >>conftest.$ac_ext
16784 cat >>conftest.$ac_ext <<_ACEOF
16785 /* end confdefs.h.  */
16786
16787 /* Override any gcc2 internal prototype to avoid an error.  */
16788 #ifdef __cplusplus
16789 extern "C"
16790 #endif
16791 /* We use char because int might match the return type of a gcc2
16792    builtin and then its argument prototype would still apply.  */
16793 char dlopen ();
16794 int
16795 main ()
16796 {
16797 dlopen ();
16798   ;
16799   return 0;
16800 }
16801 _ACEOF
16802 rm -f conftest.$ac_objext conftest$ac_exeext
16803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16804   (eval $ac_link) 2>&5
16805   ac_status=$?
16806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807   (exit $ac_status); } &&
16808          { ac_try='test -s conftest$ac_exeext'
16809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810   (eval $ac_try) 2>&5
16811   ac_status=$?
16812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); }; }; then
16814   ac_cv_lib_dl_dlopen=yes
16815 else
16816   echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16818
16819 ac_cv_lib_dl_dlopen=no
16820 fi
16821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16822 LIBS=$ac_check_lib_save_LIBS
16823 fi
16824 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16825 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16826 if test $ac_cv_lib_dl_dlopen = yes; then
16827   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16828 else
16829   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16830 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16831 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16832   echo $ECHO_N "(cached) $ECHO_C" >&6
16833 else
16834   ac_check_lib_save_LIBS=$LIBS
16835 LIBS="-lsvld  $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_svld_dlopen=yes
16872 else
16873   echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16875
16876 ac_cv_lib_svld_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_svld_dlopen" >&5
16882 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16883 if test $ac_cv_lib_svld_dlopen = yes; then
16884   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16885 else
16886   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16887 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16888 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16889   echo $ECHO_N "(cached) $ECHO_C" >&6
16890 else
16891   ac_check_lib_save_LIBS=$LIBS
16892 LIBS="-ldld  $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 dld_link ();
16908 int
16909 main ()
16910 {
16911 dld_link ();
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_dld_dld_link=yes
16929 else
16930   echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16932
16933 ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
16939 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16940 if test $ac_cv_lib_dld_dld_link = yes; then
16941   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16942 fi
16943
16944
16945 fi
16946
16947
16948 fi
16949
16950
16951 fi
16952
16953
16954 fi
16955
16956
16957 fi
16958
16959     ;;
16960   esac
16961
16962   if test "x$lt_cv_dlopen" != xno; then
16963     enable_dlopen=yes
16964   else
16965     enable_dlopen=no
16966   fi
16967
16968   case $lt_cv_dlopen in
16969   dlopen)
16970     save_CPPFLAGS="$CPPFLAGS"
16971     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16972
16973     save_LDFLAGS="$LDFLAGS"
16974     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16975
16976     save_LIBS="$LIBS"
16977     LIBS="$lt_cv_dlopen_libs $LIBS"
16978
16979     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16980 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16981 if test "${lt_cv_dlopen_self+set}" = set; then
16982   echo $ECHO_N "(cached) $ECHO_C" >&6
16983 else
16984           if test "$cross_compiling" = yes; then :
16985   lt_cv_dlopen_self=cross
16986 else
16987   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16988   lt_status=$lt_dlunknown
16989   cat > conftest.$ac_ext <<EOF
16990 #line 16990 "configure"
16991 #include "confdefs.h"
16992
16993 #if HAVE_DLFCN_H
16994 #include <dlfcn.h>
16995 #endif
16996
16997 #include <stdio.h>
16998
16999 #ifdef RTLD_GLOBAL
17000 #  define LT_DLGLOBAL           RTLD_GLOBAL
17001 #else
17002 #  ifdef DL_GLOBAL
17003 #    define LT_DLGLOBAL         DL_GLOBAL
17004 #  else
17005 #    define LT_DLGLOBAL         0
17006 #  endif
17007 #endif
17008
17009 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17010    find out it does not work in some platform. */
17011 #ifndef LT_DLLAZY_OR_NOW
17012 #  ifdef RTLD_LAZY
17013 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17014 #  else
17015 #    ifdef DL_LAZY
17016 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17017 #    else
17018 #      ifdef RTLD_NOW
17019 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17020 #      else
17021 #        ifdef DL_NOW
17022 #          define LT_DLLAZY_OR_NOW      DL_NOW
17023 #        else
17024 #          define LT_DLLAZY_OR_NOW      0
17025 #        endif
17026 #      endif
17027 #    endif
17028 #  endif
17029 #endif
17030
17031 #ifdef __cplusplus
17032 extern "C" void exit (int);
17033 #endif
17034
17035 void fnord() { int i=42;}
17036 int main ()
17037 {
17038   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17039   int status = $lt_dlunknown;
17040
17041   if (self)
17042     {
17043       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17044       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17045       /* dlclose (self); */
17046     }
17047
17048     exit (status);
17049 }
17050 EOF
17051   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052   (eval $ac_link) 2>&5
17053   ac_status=$?
17054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17056     (./conftest; exit; ) 2>/dev/null
17057     lt_status=$?
17058     case x$lt_status in
17059       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17060       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17061       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17062     esac
17063   else :
17064     # compilation failed
17065     lt_cv_dlopen_self=no
17066   fi
17067 fi
17068 rm -fr conftest*
17069
17070
17071 fi
17072 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17073 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17074
17075     if test "x$lt_cv_dlopen_self" = xyes; then
17076       LDFLAGS="$LDFLAGS $link_static_flag"
17077       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17078 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17079 if test "${lt_cv_dlopen_self_static+set}" = set; then
17080   echo $ECHO_N "(cached) $ECHO_C" >&6
17081 else
17082           if test "$cross_compiling" = yes; then :
17083   lt_cv_dlopen_self_static=cross
17084 else
17085   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17086   lt_status=$lt_dlunknown
17087   cat > conftest.$ac_ext <<EOF
17088 #line 17088 "configure"
17089 #include "confdefs.h"
17090
17091 #if HAVE_DLFCN_H
17092 #include <dlfcn.h>
17093 #endif
17094
17095 #include <stdio.h>
17096
17097 #ifdef RTLD_GLOBAL
17098 #  define LT_DLGLOBAL           RTLD_GLOBAL
17099 #else
17100 #  ifdef DL_GLOBAL
17101 #    define LT_DLGLOBAL         DL_GLOBAL
17102 #  else
17103 #    define LT_DLGLOBAL         0
17104 #  endif
17105 #endif
17106
17107 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17108    find out it does not work in some platform. */
17109 #ifndef LT_DLLAZY_OR_NOW
17110 #  ifdef RTLD_LAZY
17111 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17112 #  else
17113 #    ifdef DL_LAZY
17114 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17115 #    else
17116 #      ifdef RTLD_NOW
17117 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17118 #      else
17119 #        ifdef DL_NOW
17120 #          define LT_DLLAZY_OR_NOW      DL_NOW
17121 #        else
17122 #          define LT_DLLAZY_OR_NOW      0
17123 #        endif
17124 #      endif
17125 #    endif
17126 #  endif
17127 #endif
17128
17129 #ifdef __cplusplus
17130 extern "C" void exit (int);
17131 #endif
17132
17133 void fnord() { int i=42;}
17134 int main ()
17135 {
17136   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17137   int status = $lt_dlunknown;
17138
17139   if (self)
17140     {
17141       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17142       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17143       /* dlclose (self); */
17144     }
17145
17146     exit (status);
17147 }
17148 EOF
17149   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17150   (eval $ac_link) 2>&5
17151   ac_status=$?
17152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17154     (./conftest; exit; ) 2>/dev/null
17155     lt_status=$?
17156     case x$lt_status in
17157       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17158       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17159       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17160     esac
17161   else :
17162     # compilation failed
17163     lt_cv_dlopen_self_static=no
17164   fi
17165 fi
17166 rm -fr conftest*
17167
17168
17169 fi
17170 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17171 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17172     fi
17173
17174     CPPFLAGS="$save_CPPFLAGS"
17175     LDFLAGS="$save_LDFLAGS"
17176     LIBS="$save_LIBS"
17177     ;;
17178   esac
17179
17180   case $lt_cv_dlopen_self in
17181   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17182   *) enable_dlopen_self=unknown ;;
17183   esac
17184
17185   case $lt_cv_dlopen_self_static in
17186   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17187   *) enable_dlopen_self_static=unknown ;;
17188   esac
17189 fi
17190
17191
17192 # The else clause should only fire when bootstrapping the
17193 # libtool distribution, otherwise you forgot to ship ltmain.sh
17194 # with your package, and you will get complaints that there are
17195 # no rules to generate ltmain.sh.
17196 if test -f "$ltmain"; then
17197   # See if we are running on zsh, and set the options which allow our commands through
17198   # without removal of \ escapes.
17199   if test -n "${ZSH_VERSION+set}" ; then
17200     setopt NO_GLOB_SUBST
17201   fi
17202   # Now quote all the things that may contain metacharacters while being
17203   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17204   # variables and quote the copies for generation of the libtool script.
17205   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17206     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17207     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17208     deplibs_check_method reload_flag reload_cmds need_locks \
17209     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17210     lt_cv_sys_global_symbol_to_c_name_address \
17211     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17212     old_postinstall_cmds old_postuninstall_cmds \
17213     compiler_GCJ \
17214     CC_GCJ \
17215     LD_GCJ \
17216     lt_prog_compiler_wl_GCJ \
17217     lt_prog_compiler_pic_GCJ \
17218     lt_prog_compiler_static_GCJ \
17219     lt_prog_compiler_no_builtin_flag_GCJ \
17220     export_dynamic_flag_spec_GCJ \
17221     thread_safe_flag_spec_GCJ \
17222     whole_archive_flag_spec_GCJ \
17223     enable_shared_with_static_runtimes_GCJ \
17224     old_archive_cmds_GCJ \
17225     old_archive_from_new_cmds_GCJ \
17226     predep_objects_GCJ \
17227     postdep_objects_GCJ \
17228     predeps_GCJ \
17229     postdeps_GCJ \
17230     compiler_lib_search_path_GCJ \
17231     archive_cmds_GCJ \
17232     archive_expsym_cmds_GCJ \
17233     postinstall_cmds_GCJ \
17234     postuninstall_cmds_GCJ \
17235     old_archive_from_expsyms_cmds_GCJ \
17236     allow_undefined_flag_GCJ \
17237     no_undefined_flag_GCJ \
17238     export_symbols_cmds_GCJ \
17239     hardcode_libdir_flag_spec_GCJ \
17240     hardcode_libdir_flag_spec_ld_GCJ \
17241     hardcode_libdir_separator_GCJ \
17242     hardcode_automatic_GCJ \
17243     module_cmds_GCJ \
17244     module_expsym_cmds_GCJ \
17245     lt_cv_prog_compiler_c_o_GCJ \
17246     exclude_expsyms_GCJ \
17247     include_expsyms_GCJ; do
17248
17249     case $var in
17250     old_archive_cmds_GCJ | \
17251     old_archive_from_new_cmds_GCJ | \
17252     archive_cmds_GCJ | \
17253     archive_expsym_cmds_GCJ | \
17254     module_cmds_GCJ | \
17255     module_expsym_cmds_GCJ | \
17256     old_archive_from_expsyms_cmds_GCJ | \
17257     export_symbols_cmds_GCJ | \
17258     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17259     postinstall_cmds | postuninstall_cmds | \
17260     old_postinstall_cmds | old_postuninstall_cmds | \
17261     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17262       # Double-quote double-evaled strings.
17263       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17264       ;;
17265     *)
17266       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17267       ;;
17268     esac
17269   done
17270
17271   case $lt_echo in
17272   *'\$0 --fallback-echo"')
17273     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17274     ;;
17275   esac
17276
17277 cfgfile="$ofile"
17278
17279   cat <<__EOF__ >> "$cfgfile"
17280 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17281
17282 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17283
17284 # Shell to use when invoking shell scripts.
17285 SHELL=$lt_SHELL
17286
17287 # Whether or not to build shared libraries.
17288 build_libtool_libs=$enable_shared
17289
17290 # Whether or not to build static libraries.
17291 build_old_libs=$enable_static
17292
17293 # Whether or not to add -lc for building shared libraries.
17294 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17295
17296 # Whether or not to disallow shared libs when runtime libs are static
17297 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17298
17299 # Whether or not to optimize for fast installation.
17300 fast_install=$enable_fast_install
17301
17302 # The host system.
17303 host_alias=$host_alias
17304 host=$host
17305
17306 # An echo program that does not interpret backslashes.
17307 echo=$lt_echo
17308
17309 # The archiver.
17310 AR=$lt_AR
17311 AR_FLAGS=$lt_AR_FLAGS
17312
17313 # A C compiler.
17314 LTCC=$lt_LTCC
17315
17316 # A language-specific compiler.
17317 CC=$lt_compiler_GCJ
17318
17319 # Is the compiler the GNU C compiler?
17320 with_gcc=$GCC_GCJ
17321
17322 # An ERE matcher.
17323 EGREP=$lt_EGREP
17324
17325 # The linker used to build libraries.
17326 LD=$lt_LD_GCJ
17327
17328 # Whether we need hard or soft links.
17329 LN_S=$lt_LN_S
17330
17331 # A BSD-compatible nm program.
17332 NM=$lt_NM
17333
17334 # A symbol stripping program
17335 STRIP=$STRIP
17336
17337 # Used to examine libraries when file_magic_cmd begins "file"
17338 MAGIC_CMD=$MAGIC_CMD
17339
17340 # Used on cygwin: DLL creation program.
17341 DLLTOOL="$DLLTOOL"
17342
17343 # Used on cygwin: object dumper.
17344 OBJDUMP="$OBJDUMP"
17345
17346 # Used on cygwin: assembler.
17347 AS="$AS"
17348
17349 # The name of the directory that contains temporary libtool files.
17350 objdir=$objdir
17351
17352 # How to create reloadable object files.
17353 reload_flag=$lt_reload_flag
17354 reload_cmds=$lt_reload_cmds
17355
17356 # How to pass a linker flag through the compiler.
17357 wl=$lt_lt_prog_compiler_wl_GCJ
17358
17359 # Object file suffix (normally "o").
17360 objext="$ac_objext"
17361
17362 # Old archive suffix (normally "a").
17363 libext="$libext"
17364
17365 # Shared library suffix (normally ".so").
17366 shrext='$shrext'
17367
17368 # Executable file suffix (normally "").
17369 exeext="$exeext"
17370
17371 # Additional compiler flags for building library objects.
17372 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17373 pic_mode=$pic_mode
17374
17375 # What is the maximum length of a command?
17376 max_cmd_len=$lt_cv_sys_max_cmd_len
17377
17378 # Does compiler simultaneously support -c and -o options?
17379 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17380
17381 # Must we lock files when doing compilation ?
17382 need_locks=$lt_need_locks
17383
17384 # Do we need the lib prefix for modules?
17385 need_lib_prefix=$need_lib_prefix
17386
17387 # Do we need a version for libraries?
17388 need_version=$need_version
17389
17390 # Whether dlopen is supported.
17391 dlopen_support=$enable_dlopen
17392
17393 # Whether dlopen of programs is supported.
17394 dlopen_self=$enable_dlopen_self
17395
17396 # Whether dlopen of statically linked programs is supported.
17397 dlopen_self_static=$enable_dlopen_self_static
17398
17399 # Compiler flag to prevent dynamic linking.
17400 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17401
17402 # Compiler flag to turn off builtin functions.
17403 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17404
17405 # Compiler flag to allow reflexive dlopens.
17406 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17407
17408 # Compiler flag to generate shared objects directly from archives.
17409 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17410
17411 # Compiler flag to generate thread-safe objects.
17412 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17413
17414 # Library versioning type.
17415 version_type=$version_type
17416
17417 # Format of library name prefix.
17418 libname_spec=$lt_libname_spec
17419
17420 # List of archive names.  First name is the real one, the rest are links.
17421 # The last name is the one that the linker finds with -lNAME.
17422 library_names_spec=$lt_library_names_spec
17423
17424 # The coded name of the library, if different from the real name.
17425 soname_spec=$lt_soname_spec
17426
17427 # Commands used to build and install an old-style archive.
17428 RANLIB=$lt_RANLIB
17429 old_archive_cmds=$lt_old_archive_cmds_GCJ
17430 old_postinstall_cmds=$lt_old_postinstall_cmds
17431 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17432
17433 # Create an old-style archive from a shared archive.
17434 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17435
17436 # Create a temporary old-style archive to link instead of a shared archive.
17437 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17438
17439 # Commands used to build and install a shared archive.
17440 archive_cmds=$lt_archive_cmds_GCJ
17441 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17442 postinstall_cmds=$lt_postinstall_cmds
17443 postuninstall_cmds=$lt_postuninstall_cmds
17444
17445 # Commands used to build a loadable module (assumed same as above if empty)
17446 module_cmds=$lt_module_cmds_GCJ
17447 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17448
17449 # Commands to strip libraries.
17450 old_striplib=$lt_old_striplib
17451 striplib=$lt_striplib
17452
17453 # Dependencies to place before the objects being linked to create a
17454 # shared library.
17455 predep_objects=$lt_predep_objects_GCJ
17456
17457 # Dependencies to place after the objects being linked to create a
17458 # shared library.
17459 postdep_objects=$lt_postdep_objects_GCJ
17460
17461 # Dependencies to place before the objects being linked to create a
17462 # shared library.
17463 predeps=$lt_predeps_GCJ
17464
17465 # Dependencies to place after the objects being linked to create a
17466 # shared library.
17467 postdeps=$lt_postdeps_GCJ
17468
17469 # The library search path used internally by the compiler when linking
17470 # a shared library.
17471 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17472
17473 # Method to check whether dependent libraries are shared objects.
17474 deplibs_check_method=$lt_deplibs_check_method
17475
17476 # Command to use when deplibs_check_method == file_magic.
17477 file_magic_cmd=$lt_file_magic_cmd
17478
17479 # Flag that allows shared libraries with undefined symbols to be built.
17480 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17481
17482 # Flag that forces no undefined symbols.
17483 no_undefined_flag=$lt_no_undefined_flag_GCJ
17484
17485 # Commands used to finish a libtool library installation in a directory.
17486 finish_cmds=$lt_finish_cmds
17487
17488 # Same as above, but a single script fragment to be evaled but not shown.
17489 finish_eval=$lt_finish_eval
17490
17491 # Take the output of nm and produce a listing of raw symbols and C names.
17492 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17493
17494 # Transform the output of nm in a proper C declaration
17495 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17496
17497 # Transform the output of nm in a C name address pair
17498 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17499
17500 # This is the shared library runtime path variable.
17501 runpath_var=$runpath_var
17502
17503 # This is the shared library path variable.
17504 shlibpath_var=$shlibpath_var
17505
17506 # Is shlibpath searched before the hard-coded library search path?
17507 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17508
17509 # How to hardcode a shared library path into an executable.
17510 hardcode_action=$hardcode_action_GCJ
17511
17512 # Whether we should hardcode library paths into libraries.
17513 hardcode_into_libs=$hardcode_into_libs
17514
17515 # Flag to hardcode \$libdir into a binary during linking.
17516 # This must work even if \$libdir does not exist.
17517 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17518
17519 # If ld is used when linking, flag to hardcode \$libdir into
17520 # a binary during linking. This must work even if \$libdir does
17521 # not exist.
17522 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17523
17524 # Whether we need a single -rpath flag with a separated argument.
17525 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17526
17527 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17528 # resulting binary.
17529 hardcode_direct=$hardcode_direct_GCJ
17530
17531 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17532 # resulting binary.
17533 hardcode_minus_L=$hardcode_minus_L_GCJ
17534
17535 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17536 # the resulting binary.
17537 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17538
17539 # Set to yes if building a shared library automatically hardcodes DIR into the library
17540 # and all subsequent libraries and executables linked against it.
17541 hardcode_automatic=$hardcode_automatic_GCJ
17542
17543 # Variables whose values should be saved in libtool wrapper scripts and
17544 # restored at relink time.
17545 variables_saved_for_relink="$variables_saved_for_relink"
17546
17547 # Whether libtool must link a program against all its dependency libraries.
17548 link_all_deplibs=$link_all_deplibs_GCJ
17549
17550 # Compile-time system search path for libraries
17551 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17552
17553 # Run-time system search path for libraries
17554 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17555
17556 # Fix the shell variable \$srcfile for the compiler.
17557 fix_srcfile_path="$fix_srcfile_path_GCJ"
17558
17559 # Set to yes if exported symbols are required.
17560 always_export_symbols=$always_export_symbols_GCJ
17561
17562 # The commands to list exported symbols.
17563 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17564
17565 # The commands to extract the exported symbol list from a shared archive.
17566 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17567
17568 # Symbols that should not be listed in the preloaded symbols.
17569 exclude_expsyms=$lt_exclude_expsyms_GCJ
17570
17571 # Symbols that must always be exported.
17572 include_expsyms=$lt_include_expsyms_GCJ
17573
17574 # ### END LIBTOOL TAG CONFIG: $tagname
17575
17576 __EOF__
17577
17578
17579 else
17580   # If there is no Makefile yet, we rely on a make rule to execute
17581   # `config.status --recheck' to rerun these tests and create the
17582   # libtool script then.
17583   test -f Makefile && make "$ltmain"
17584 fi
17585
17586
17587 ac_ext=c
17588 ac_cpp='$CPP $CPPFLAGS'
17589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17592
17593 CC="$lt_save_CC"
17594
17595         else
17596           tagname=""
17597         fi
17598         ;;
17599
17600       RC)
17601
17602
17603
17604 # Source file extension for RC test sources.
17605 ac_ext=rc
17606
17607 # Object file extension for compiled RC test sources.
17608 objext=o
17609 objext_RC=$objext
17610
17611 # Code to be used in simple compile tests
17612 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17613
17614 # Code to be used in simple link tests
17615 lt_simple_link_test_code="$lt_simple_compile_test_code"
17616
17617 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17618
17619 # If no C compiler was specified, use CC.
17620 LTCC=${LTCC-"$CC"}
17621
17622 # Allow CC to be a program name with arguments.
17623 compiler=$CC
17624
17625
17626 # Allow CC to be a program name with arguments.
17627 lt_save_CC="$CC"
17628 CC=${RC-"windres"}
17629 compiler=$CC
17630 compiler_RC=$CC
17631 lt_cv_prog_compiler_c_o_RC=yes
17632
17633 # The else clause should only fire when bootstrapping the
17634 # libtool distribution, otherwise you forgot to ship ltmain.sh
17635 # with your package, and you will get complaints that there are
17636 # no rules to generate ltmain.sh.
17637 if test -f "$ltmain"; then
17638   # See if we are running on zsh, and set the options which allow our commands through
17639   # without removal of \ escapes.
17640   if test -n "${ZSH_VERSION+set}" ; then
17641     setopt NO_GLOB_SUBST
17642   fi
17643   # Now quote all the things that may contain metacharacters while being
17644   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17645   # variables and quote the copies for generation of the libtool script.
17646   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17647     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17648     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17649     deplibs_check_method reload_flag reload_cmds need_locks \
17650     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17651     lt_cv_sys_global_symbol_to_c_name_address \
17652     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17653     old_postinstall_cmds old_postuninstall_cmds \
17654     compiler_RC \
17655     CC_RC \
17656     LD_RC \
17657     lt_prog_compiler_wl_RC \
17658     lt_prog_compiler_pic_RC \
17659     lt_prog_compiler_static_RC \
17660     lt_prog_compiler_no_builtin_flag_RC \
17661     export_dynamic_flag_spec_RC \
17662     thread_safe_flag_spec_RC \
17663     whole_archive_flag_spec_RC \
17664     enable_shared_with_static_runtimes_RC \
17665     old_archive_cmds_RC \
17666     old_archive_from_new_cmds_RC \
17667     predep_objects_RC \
17668     postdep_objects_RC \
17669     predeps_RC \
17670     postdeps_RC \
17671     compiler_lib_search_path_RC \
17672     archive_cmds_RC \
17673     archive_expsym_cmds_RC \
17674     postinstall_cmds_RC \
17675     postuninstall_cmds_RC \
17676     old_archive_from_expsyms_cmds_RC \
17677     allow_undefined_flag_RC \
17678     no_undefined_flag_RC \
17679     export_symbols_cmds_RC \
17680     hardcode_libdir_flag_spec_RC \
17681     hardcode_libdir_flag_spec_ld_RC \
17682     hardcode_libdir_separator_RC \
17683     hardcode_automatic_RC \
17684     module_cmds_RC \
17685     module_expsym_cmds_RC \
17686     lt_cv_prog_compiler_c_o_RC \
17687     exclude_expsyms_RC \
17688     include_expsyms_RC; do
17689
17690     case $var in
17691     old_archive_cmds_RC | \
17692     old_archive_from_new_cmds_RC | \
17693     archive_cmds_RC | \
17694     archive_expsym_cmds_RC | \
17695     module_cmds_RC | \
17696     module_expsym_cmds_RC | \
17697     old_archive_from_expsyms_cmds_RC | \
17698     export_symbols_cmds_RC | \
17699     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17700     postinstall_cmds | postuninstall_cmds | \
17701     old_postinstall_cmds | old_postuninstall_cmds | \
17702     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17703       # Double-quote double-evaled strings.
17704       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17705       ;;
17706     *)
17707       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17708       ;;
17709     esac
17710   done
17711
17712   case $lt_echo in
17713   *'\$0 --fallback-echo"')
17714     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17715     ;;
17716   esac
17717
17718 cfgfile="$ofile"
17719
17720   cat <<__EOF__ >> "$cfgfile"
17721 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17722
17723 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17724
17725 # Shell to use when invoking shell scripts.
17726 SHELL=$lt_SHELL
17727
17728 # Whether or not to build shared libraries.
17729 build_libtool_libs=$enable_shared
17730
17731 # Whether or not to build static libraries.
17732 build_old_libs=$enable_static
17733
17734 # Whether or not to add -lc for building shared libraries.
17735 build_libtool_need_lc=$archive_cmds_need_lc_RC
17736
17737 # Whether or not to disallow shared libs when runtime libs are static
17738 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17739
17740 # Whether or not to optimize for fast installation.
17741 fast_install=$enable_fast_install
17742
17743 # The host system.
17744 host_alias=$host_alias
17745 host=$host
17746
17747 # An echo program that does not interpret backslashes.
17748 echo=$lt_echo
17749
17750 # The archiver.
17751 AR=$lt_AR
17752 AR_FLAGS=$lt_AR_FLAGS
17753
17754 # A C compiler.
17755 LTCC=$lt_LTCC
17756
17757 # A language-specific compiler.
17758 CC=$lt_compiler_RC
17759
17760 # Is the compiler the GNU C compiler?
17761 with_gcc=$GCC_RC
17762
17763 # An ERE matcher.
17764 EGREP=$lt_EGREP
17765
17766 # The linker used to build libraries.
17767 LD=$lt_LD_RC
17768
17769 # Whether we need hard or soft links.
17770 LN_S=$lt_LN_S
17771
17772 # A BSD-compatible nm program.
17773 NM=$lt_NM
17774
17775 # A symbol stripping program
17776 STRIP=$STRIP
17777
17778 # Used to examine libraries when file_magic_cmd begins "file"
17779 MAGIC_CMD=$MAGIC_CMD
17780
17781 # Used on cygwin: DLL creation program.
17782 DLLTOOL="$DLLTOOL"
17783
17784 # Used on cygwin: object dumper.
17785 OBJDUMP="$OBJDUMP"
17786
17787 # Used on cygwin: assembler.
17788 AS="$AS"
17789
17790 # The name of the directory that contains temporary libtool files.
17791 objdir=$objdir
17792
17793 # How to create reloadable object files.
17794 reload_flag=$lt_reload_flag
17795 reload_cmds=$lt_reload_cmds
17796
17797 # How to pass a linker flag through the compiler.
17798 wl=$lt_lt_prog_compiler_wl_RC
17799
17800 # Object file suffix (normally "o").
17801 objext="$ac_objext"
17802
17803 # Old archive suffix (normally "a").
17804 libext="$libext"
17805
17806 # Shared library suffix (normally ".so").
17807 shrext='$shrext'
17808
17809 # Executable file suffix (normally "").
17810 exeext="$exeext"
17811
17812 # Additional compiler flags for building library objects.
17813 pic_flag=$lt_lt_prog_compiler_pic_RC
17814 pic_mode=$pic_mode
17815
17816 # What is the maximum length of a command?
17817 max_cmd_len=$lt_cv_sys_max_cmd_len
17818
17819 # Does compiler simultaneously support -c and -o options?
17820 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17821
17822 # Must we lock files when doing compilation ?
17823 need_locks=$lt_need_locks
17824
17825 # Do we need the lib prefix for modules?
17826 need_lib_prefix=$need_lib_prefix
17827
17828 # Do we need a version for libraries?
17829 need_version=$need_version
17830
17831 # Whether dlopen is supported.
17832 dlopen_support=$enable_dlopen
17833
17834 # Whether dlopen of programs is supported.
17835 dlopen_self=$enable_dlopen_self
17836
17837 # Whether dlopen of statically linked programs is supported.
17838 dlopen_self_static=$enable_dlopen_self_static
17839
17840 # Compiler flag to prevent dynamic linking.
17841 link_static_flag=$lt_lt_prog_compiler_static_RC
17842
17843 # Compiler flag to turn off builtin functions.
17844 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17845
17846 # Compiler flag to allow reflexive dlopens.
17847 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17848
17849 # Compiler flag to generate shared objects directly from archives.
17850 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17851
17852 # Compiler flag to generate thread-safe objects.
17853 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17854
17855 # Library versioning type.
17856 version_type=$version_type
17857
17858 # Format of library name prefix.
17859 libname_spec=$lt_libname_spec
17860
17861 # List of archive names.  First name is the real one, the rest are links.
17862 # The last name is the one that the linker finds with -lNAME.
17863 library_names_spec=$lt_library_names_spec
17864
17865 # The coded name of the library, if different from the real name.
17866 soname_spec=$lt_soname_spec
17867
17868 # Commands used to build and install an old-style archive.
17869 RANLIB=$lt_RANLIB
17870 old_archive_cmds=$lt_old_archive_cmds_RC
17871 old_postinstall_cmds=$lt_old_postinstall_cmds
17872 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17873
17874 # Create an old-style archive from a shared archive.
17875 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17876
17877 # Create a temporary old-style archive to link instead of a shared archive.
17878 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17879
17880 # Commands used to build and install a shared archive.
17881 archive_cmds=$lt_archive_cmds_RC
17882 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17883 postinstall_cmds=$lt_postinstall_cmds
17884 postuninstall_cmds=$lt_postuninstall_cmds
17885
17886 # Commands used to build a loadable module (assumed same as above if empty)
17887 module_cmds=$lt_module_cmds_RC
17888 module_expsym_cmds=$lt_module_expsym_cmds_RC
17889
17890 # Commands to strip libraries.
17891 old_striplib=$lt_old_striplib
17892 striplib=$lt_striplib
17893
17894 # Dependencies to place before the objects being linked to create a
17895 # shared library.
17896 predep_objects=$lt_predep_objects_RC
17897
17898 # Dependencies to place after the objects being linked to create a
17899 # shared library.
17900 postdep_objects=$lt_postdep_objects_RC
17901
17902 # Dependencies to place before the objects being linked to create a
17903 # shared library.
17904 predeps=$lt_predeps_RC
17905
17906 # Dependencies to place after the objects being linked to create a
17907 # shared library.
17908 postdeps=$lt_postdeps_RC
17909
17910 # The library search path used internally by the compiler when linking
17911 # a shared library.
17912 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17913
17914 # Method to check whether dependent libraries are shared objects.
17915 deplibs_check_method=$lt_deplibs_check_method
17916
17917 # Command to use when deplibs_check_method == file_magic.
17918 file_magic_cmd=$lt_file_magic_cmd
17919
17920 # Flag that allows shared libraries with undefined symbols to be built.
17921 allow_undefined_flag=$lt_allow_undefined_flag_RC
17922
17923 # Flag that forces no undefined symbols.
17924 no_undefined_flag=$lt_no_undefined_flag_RC
17925
17926 # Commands used to finish a libtool library installation in a directory.
17927 finish_cmds=$lt_finish_cmds
17928
17929 # Same as above, but a single script fragment to be evaled but not shown.
17930 finish_eval=$lt_finish_eval
17931
17932 # Take the output of nm and produce a listing of raw symbols and C names.
17933 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17934
17935 # Transform the output of nm in a proper C declaration
17936 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17937
17938 # Transform the output of nm in a C name address pair
17939 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17940
17941 # This is the shared library runtime path variable.
17942 runpath_var=$runpath_var
17943
17944 # This is the shared library path variable.
17945 shlibpath_var=$shlibpath_var
17946
17947 # Is shlibpath searched before the hard-coded library search path?
17948 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17949
17950 # How to hardcode a shared library path into an executable.
17951 hardcode_action=$hardcode_action_RC
17952
17953 # Whether we should hardcode library paths into libraries.
17954 hardcode_into_libs=$hardcode_into_libs
17955
17956 # Flag to hardcode \$libdir into a binary during linking.
17957 # This must work even if \$libdir does not exist.
17958 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17959
17960 # If ld is used when linking, flag to hardcode \$libdir into
17961 # a binary during linking. This must work even if \$libdir does
17962 # not exist.
17963 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17964
17965 # Whether we need a single -rpath flag with a separated argument.
17966 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17967
17968 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17969 # resulting binary.
17970 hardcode_direct=$hardcode_direct_RC
17971
17972 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17973 # resulting binary.
17974 hardcode_minus_L=$hardcode_minus_L_RC
17975
17976 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17977 # the resulting binary.
17978 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17979
17980 # Set to yes if building a shared library automatically hardcodes DIR into the library
17981 # and all subsequent libraries and executables linked against it.
17982 hardcode_automatic=$hardcode_automatic_RC
17983
17984 # Variables whose values should be saved in libtool wrapper scripts and
17985 # restored at relink time.
17986 variables_saved_for_relink="$variables_saved_for_relink"
17987
17988 # Whether libtool must link a program against all its dependency libraries.
17989 link_all_deplibs=$link_all_deplibs_RC
17990
17991 # Compile-time system search path for libraries
17992 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17993
17994 # Run-time system search path for libraries
17995 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17996
17997 # Fix the shell variable \$srcfile for the compiler.
17998 fix_srcfile_path="$fix_srcfile_path_RC"
17999
18000 # Set to yes if exported symbols are required.
18001 always_export_symbols=$always_export_symbols_RC
18002
18003 # The commands to list exported symbols.
18004 export_symbols_cmds=$lt_export_symbols_cmds_RC
18005
18006 # The commands to extract the exported symbol list from a shared archive.
18007 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18008
18009 # Symbols that should not be listed in the preloaded symbols.
18010 exclude_expsyms=$lt_exclude_expsyms_RC
18011
18012 # Symbols that must always be exported.
18013 include_expsyms=$lt_include_expsyms_RC
18014
18015 # ### END LIBTOOL TAG CONFIG: $tagname
18016
18017 __EOF__
18018
18019
18020 else
18021   # If there is no Makefile yet, we rely on a make rule to execute
18022   # `config.status --recheck' to rerun these tests and create the
18023   # libtool script then.
18024   test -f Makefile && make "$ltmain"
18025 fi
18026
18027
18028 ac_ext=c
18029 ac_cpp='$CPP $CPPFLAGS'
18030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18033
18034 CC="$lt_save_CC"
18035
18036         ;;
18037
18038       *)
18039         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18040 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18041    { (exit 1); exit 1; }; }
18042         ;;
18043       esac
18044
18045       # Append the new tag name to the list of available tags.
18046       if test -n "$tagname" ; then
18047       available_tags="$available_tags $tagname"
18048     fi
18049     fi
18050   done
18051   IFS="$lt_save_ifs"
18052
18053   # Now substitute the updated list of available tags.
18054   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18055     mv "${ofile}T" "$ofile"
18056     chmod +x "$ofile"
18057   else
18058     rm -f "${ofile}T"
18059     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18060 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18061    { (exit 1); exit 1; }; }
18062   fi
18063 fi
18064
18065
18066
18067 # This can be used to rebuild libtool when needed
18068 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18069
18070 # Always use our own libtool.
18071 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18072
18073 # Prevent multiple expansion
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095 # Extract the first word of "dot", so it can be a program name with args.
18096 set dummy dot; ac_word=$2
18097 echo "$as_me:$LINENO: checking for $ac_word" >&5
18098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18099 if test "${ac_cv_path_DOT+set}" = set; then
18100   echo $ECHO_N "(cached) $ECHO_C" >&6
18101 else
18102   case $DOT in
18103   [\\/]* | ?:[\\/]*)
18104   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18105   ;;
18106   *)
18107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18108 for as_dir in $PATH
18109 do
18110   IFS=$as_save_IFS
18111   test -z "$as_dir" && as_dir=.
18112   for ac_exec_ext in '' $ac_executable_extensions; do
18113   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18114     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18116     break 2
18117   fi
18118 done
18119 done
18120
18121   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18122   ;;
18123 esac
18124 fi
18125 DOT=$ac_cv_path_DOT
18126
18127 if test -n "$DOT"; then
18128   echo "$as_me:$LINENO: result: $DOT" >&5
18129 echo "${ECHO_T}$DOT" >&6
18130 else
18131   echo "$as_me:$LINENO: result: no" >&5
18132 echo "${ECHO_T}no" >&6
18133 fi
18134
18135 # Extract the first word of "etags", so it can be a program name with args.
18136 set dummy etags; ac_word=$2
18137 echo "$as_me:$LINENO: checking for $ac_word" >&5
18138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18139 if test "${ac_cv_path_ETAGS+set}" = set; then
18140   echo $ECHO_N "(cached) $ECHO_C" >&6
18141 else
18142   case $ETAGS in
18143   [\\/]* | ?:[\\/]*)
18144   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18145   ;;
18146   *)
18147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18148 for as_dir in $PATH
18149 do
18150   IFS=$as_save_IFS
18151   test -z "$as_dir" && as_dir=.
18152   for ac_exec_ext in '' $ac_executable_extensions; do
18153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18154     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18156     break 2
18157   fi
18158 done
18159 done
18160
18161   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18162   ;;
18163 esac
18164 fi
18165 ETAGS=$ac_cv_path_ETAGS
18166
18167 if test -n "$ETAGS"; then
18168   echo "$as_me:$LINENO: result: $ETAGS" >&5
18169 echo "${ECHO_T}$ETAGS" >&6
18170 else
18171   echo "$as_me:$LINENO: result: no" >&5
18172 echo "${ECHO_T}no" >&6
18173 fi
18174
18175 etags_version=`$ETAGS --version 2>&1`
18176 case "$etags_version" in
18177         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18178         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18179         *) ETAGSFLAGS="" ;;
18180 esac
18181 ETAGSFLAGS=$ETAGSFLAGS
18182
18183 # Extract the first word of "python", so it can be a program name with args.
18184 set dummy python; ac_word=$2
18185 echo "$as_me:$LINENO: checking for $ac_word" >&5
18186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18187 if test "${ac_cv_path_PYTHON+set}" = set; then
18188   echo $ECHO_N "(cached) $ECHO_C" >&6
18189 else
18190   case $PYTHON in
18191   [\\/]* | ?:[\\/]*)
18192   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18193   ;;
18194   *)
18195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18196 for as_dir in $PATH
18197 do
18198   IFS=$as_save_IFS
18199   test -z "$as_dir" && as_dir=.
18200   for ac_exec_ext in '' $ac_executable_extensions; do
18201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18202     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18204     break 2
18205   fi
18206 done
18207 done
18208
18209   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18210   ;;
18211 esac
18212 fi
18213 PYTHON=$ac_cv_path_PYTHON
18214
18215 if test -n "$PYTHON"; then
18216   echo "$as_me:$LINENO: result: $PYTHON" >&5
18217 echo "${ECHO_T}$PYTHON" >&6
18218 else
18219   echo "$as_me:$LINENO: result: no" >&5
18220 echo "${ECHO_T}no" >&6
18221 fi
18222
18223 if test "$PYTHON" = "false"
18224 then
18225         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18226 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18227 fi
18228 # Extract the first word of "qmtest", so it can be a program name with args.
18229 set dummy qmtest; ac_word=$2
18230 echo "$as_me:$LINENO: checking for $ac_word" >&5
18231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18232 if test "${ac_cv_path_QMTEST+set}" = set; then
18233   echo $ECHO_N "(cached) $ECHO_C" >&6
18234 else
18235   case $QMTEST in
18236   [\\/]* | ?:[\\/]*)
18237   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18238   ;;
18239   *)
18240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18241 for as_dir in $PATH
18242 do
18243   IFS=$as_save_IFS
18244   test -z "$as_dir" && as_dir=.
18245   for ac_exec_ext in '' $ac_executable_extensions; do
18246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18247     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18249     break 2
18250   fi
18251 done
18252 done
18253
18254   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18255   ;;
18256 esac
18257 fi
18258 QMTEST=$ac_cv_path_QMTEST
18259
18260 if test -n "$QMTEST"; then
18261   echo "$as_me:$LINENO: result: $QMTEST" >&5
18262 echo "${ECHO_T}$QMTEST" >&6
18263 else
18264   echo "$as_me:$LINENO: result: no" >&5
18265 echo "${ECHO_T}no" >&6
18266 fi
18267
18268 if test "$QMTEST" = "false"
18269 then
18270         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18271 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18272 fi
18273
18274 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18275 pymajor=`echo $pyversion | cut -d. -f1`
18276 pyminor=`echo $pyversion | cut -d. -f2`
18277
18278 if test "$pymajor" -ge "2"
18279 then
18280         if test "$pymajor" -eq "2"
18281         then
18282                 if test "$pyminor" -lt "2"
18283                 then
18284                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18285 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18286                 fi
18287         fi
18288 else
18289         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18290 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18291 fi
18292
18293
18294
18295
18296 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18297 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18298 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18299   echo $ECHO_N "(cached) $ECHO_C" >&6
18300 else
18301   ac_check_lib_save_LIBS=$LIBS
18302 LIBS="-lelf  $LIBS"
18303 cat >conftest.$ac_ext <<_ACEOF
18304 #line $LINENO "configure"
18305 /* confdefs.h.  */
18306 _ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h.  */
18310
18311 /* Override any gcc2 internal prototype to avoid an error.  */
18312 #ifdef __cplusplus
18313 extern "C"
18314 #endif
18315 /* We use char because int might match the return type of a gcc2
18316    builtin and then its argument prototype would still apply.  */
18317 char elf_begin ();
18318 int
18319 main ()
18320 {
18321 elf_begin ();
18322   ;
18323   return 0;
18324 }
18325 _ACEOF
18326 rm -f conftest.$ac_objext conftest$ac_exeext
18327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18328   (eval $ac_link) 2>&5
18329   ac_status=$?
18330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331   (exit $ac_status); } &&
18332          { ac_try='test -s conftest$ac_exeext'
18333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334   (eval $ac_try) 2>&5
18335   ac_status=$?
18336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337   (exit $ac_status); }; }; then
18338   ac_cv_lib_elf_elf_begin=yes
18339 else
18340   echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18342
18343 ac_cv_lib_elf_elf_begin=no
18344 fi
18345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18346 LIBS=$ac_check_lib_save_LIBS
18347 fi
18348 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18349 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18350 if test $ac_cv_lib_elf_elf_begin = yes; then
18351   cat >>confdefs.h <<_ACEOF
18352 #define HAVE_LIBELF 1
18353 _ACEOF
18354
18355   LIBS="-lelf $LIBS"
18356
18357 fi
18358
18359
18360 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18361 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18362 if test "${ac_cv_search_dlopen+set}" = set; then
18363   echo $ECHO_N "(cached) $ECHO_C" >&6
18364 else
18365   ac_func_search_save_LIBS=$LIBS
18366 ac_cv_search_dlopen=no
18367 cat >conftest.$ac_ext <<_ACEOF
18368 #line $LINENO "configure"
18369 /* confdefs.h.  */
18370 _ACEOF
18371 cat confdefs.h >>conftest.$ac_ext
18372 cat >>conftest.$ac_ext <<_ACEOF
18373 /* end confdefs.h.  */
18374
18375 /* Override any gcc2 internal prototype to avoid an error.  */
18376 #ifdef __cplusplus
18377 extern "C"
18378 #endif
18379 /* We use char because int might match the return type of a gcc2
18380    builtin and then its argument prototype would still apply.  */
18381 char dlopen ();
18382 int
18383 main ()
18384 {
18385 dlopen ();
18386   ;
18387   return 0;
18388 }
18389 _ACEOF
18390 rm -f conftest.$ac_objext conftest$ac_exeext
18391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18392   (eval $ac_link) 2>&5
18393   ac_status=$?
18394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395   (exit $ac_status); } &&
18396          { ac_try='test -s conftest$ac_exeext'
18397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398   (eval $ac_try) 2>&5
18399   ac_status=$?
18400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401   (exit $ac_status); }; }; then
18402   ac_cv_search_dlopen="none required"
18403 else
18404   echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18406
18407 fi
18408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18409 if test "$ac_cv_search_dlopen" = no; then
18410   for ac_lib in dl; do
18411     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18412     cat >conftest.$ac_ext <<_ACEOF
18413 #line $LINENO "configure"
18414 /* confdefs.h.  */
18415 _ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h.  */
18419
18420 /* Override any gcc2 internal prototype to avoid an error.  */
18421 #ifdef __cplusplus
18422 extern "C"
18423 #endif
18424 /* We use char because int might match the return type of a gcc2
18425    builtin and then its argument prototype would still apply.  */
18426 char dlopen ();
18427 int
18428 main ()
18429 {
18430 dlopen ();
18431   ;
18432   return 0;
18433 }
18434 _ACEOF
18435 rm -f conftest.$ac_objext conftest$ac_exeext
18436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18437   (eval $ac_link) 2>&5
18438   ac_status=$?
18439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); } &&
18441          { ac_try='test -s conftest$ac_exeext'
18442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443   (eval $ac_try) 2>&5
18444   ac_status=$?
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); }; }; then
18447   ac_cv_search_dlopen="-l$ac_lib"
18448 break
18449 else
18450   echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18452
18453 fi
18454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18455   done
18456 fi
18457 LIBS=$ac_func_search_save_LIBS
18458 fi
18459 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18460 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18461 if test "$ac_cv_search_dlopen" != no; then
18462   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18463
18464 cat >>confdefs.h <<\_ACEOF
18465 #define HAVE_DLOPEN 1
18466 _ACEOF
18467
18468 else
18469   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18470 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18471 fi
18472
18473
18474 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18475 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18476 if test "${ac_cv_search_mallinfo+set}" = set; then
18477   echo $ECHO_N "(cached) $ECHO_C" >&6
18478 else
18479   ac_func_search_save_LIBS=$LIBS
18480 ac_cv_search_mallinfo=no
18481 cat >conftest.$ac_ext <<_ACEOF
18482 #line $LINENO "configure"
18483 /* confdefs.h.  */
18484 _ACEOF
18485 cat confdefs.h >>conftest.$ac_ext
18486 cat >>conftest.$ac_ext <<_ACEOF
18487 /* end confdefs.h.  */
18488
18489 /* Override any gcc2 internal prototype to avoid an error.  */
18490 #ifdef __cplusplus
18491 extern "C"
18492 #endif
18493 /* We use char because int might match the return type of a gcc2
18494    builtin and then its argument prototype would still apply.  */
18495 char mallinfo ();
18496 int
18497 main ()
18498 {
18499 mallinfo ();
18500   ;
18501   return 0;
18502 }
18503 _ACEOF
18504 rm -f conftest.$ac_objext conftest$ac_exeext
18505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18506   (eval $ac_link) 2>&5
18507   ac_status=$?
18508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509   (exit $ac_status); } &&
18510          { ac_try='test -s conftest$ac_exeext'
18511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512   (eval $ac_try) 2>&5
18513   ac_status=$?
18514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515   (exit $ac_status); }; }; then
18516   ac_cv_search_mallinfo="none required"
18517 else
18518   echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.$ac_ext >&5
18520
18521 fi
18522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18523 if test "$ac_cv_search_mallinfo" = no; then
18524   for ac_lib in malloc; do
18525     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18526     cat >conftest.$ac_ext <<_ACEOF
18527 #line $LINENO "configure"
18528 /* confdefs.h.  */
18529 _ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h.  */
18533
18534 /* Override any gcc2 internal prototype to avoid an error.  */
18535 #ifdef __cplusplus
18536 extern "C"
18537 #endif
18538 /* We use char because int might match the return type of a gcc2
18539    builtin and then its argument prototype would still apply.  */
18540 char mallinfo ();
18541 int
18542 main ()
18543 {
18544 mallinfo ();
18545   ;
18546   return 0;
18547 }
18548 _ACEOF
18549 rm -f conftest.$ac_objext conftest$ac_exeext
18550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18551   (eval $ac_link) 2>&5
18552   ac_status=$?
18553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554   (exit $ac_status); } &&
18555          { ac_try='test -s conftest$ac_exeext'
18556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557   (eval $ac_try) 2>&5
18558   ac_status=$?
18559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560   (exit $ac_status); }; }; then
18561   ac_cv_search_mallinfo="-l$ac_lib"
18562 break
18563 else
18564   echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18566
18567 fi
18568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18569   done
18570 fi
18571 LIBS=$ac_func_search_save_LIBS
18572 fi
18573 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18574 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18575 if test "$ac_cv_search_mallinfo" != no; then
18576   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18577
18578 cat >>confdefs.h <<\_ACEOF
18579 #define HAVE_MALLINFO 1
18580 _ACEOF
18581
18582 fi
18583
18584
18585 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18586 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18587 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18588   echo $ECHO_N "(cached) $ECHO_C" >&6
18589 else
18590   ac_func_search_save_LIBS=$LIBS
18591 ac_cv_search_pthread_mutex_lock=no
18592 cat >conftest.$ac_ext <<_ACEOF
18593 #line $LINENO "configure"
18594 /* confdefs.h.  */
18595 _ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h.  */
18599
18600 /* Override any gcc2 internal prototype to avoid an error.  */
18601 #ifdef __cplusplus
18602 extern "C"
18603 #endif
18604 /* We use char because int might match the return type of a gcc2
18605    builtin and then its argument prototype would still apply.  */
18606 char pthread_mutex_lock ();
18607 int
18608 main ()
18609 {
18610 pthread_mutex_lock ();
18611   ;
18612   return 0;
18613 }
18614 _ACEOF
18615 rm -f conftest.$ac_objext conftest$ac_exeext
18616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18617   (eval $ac_link) 2>&5
18618   ac_status=$?
18619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620   (exit $ac_status); } &&
18621          { ac_try='test -s conftest$ac_exeext'
18622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623   (eval $ac_try) 2>&5
18624   ac_status=$?
18625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626   (exit $ac_status); }; }; then
18627   ac_cv_search_pthread_mutex_lock="none required"
18628 else
18629   echo "$as_me: failed program was:" >&5
18630 sed 's/^/| /' conftest.$ac_ext >&5
18631
18632 fi
18633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18634 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18635   for ac_lib in pthread; do
18636     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18637     cat >conftest.$ac_ext <<_ACEOF
18638 #line $LINENO "configure"
18639 /* confdefs.h.  */
18640 _ACEOF
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h.  */
18644
18645 /* Override any gcc2 internal prototype to avoid an error.  */
18646 #ifdef __cplusplus
18647 extern "C"
18648 #endif
18649 /* We use char because int might match the return type of a gcc2
18650    builtin and then its argument prototype would still apply.  */
18651 char pthread_mutex_lock ();
18652 int
18653 main ()
18654 {
18655 pthread_mutex_lock ();
18656   ;
18657   return 0;
18658 }
18659 _ACEOF
18660 rm -f conftest.$ac_objext conftest$ac_exeext
18661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18662   (eval $ac_link) 2>&5
18663   ac_status=$?
18664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665   (exit $ac_status); } &&
18666          { ac_try='test -s conftest$ac_exeext'
18667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668   (eval $ac_try) 2>&5
18669   ac_status=$?
18670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671   (exit $ac_status); }; }; then
18672   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18673 break
18674 else
18675   echo "$as_me: failed program was:" >&5
18676 sed 's/^/| /' conftest.$ac_ext >&5
18677
18678 fi
18679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18680   done
18681 fi
18682 LIBS=$ac_func_search_save_LIBS
18683 fi
18684 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18685 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18686 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18687   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18688   HAVE_PTHREAD_MUTEX_LOCK=1
18689 else
18690   HAVE_PTHREAD_MUTEX_LOCK=0
18691 fi
18692
18693
18694
18695 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18696 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18697 if test "${ac_cv_header_stdc+set}" = set; then
18698   echo $ECHO_N "(cached) $ECHO_C" >&6
18699 else
18700   cat >conftest.$ac_ext <<_ACEOF
18701 #line $LINENO "configure"
18702 /* confdefs.h.  */
18703 _ACEOF
18704 cat confdefs.h >>conftest.$ac_ext
18705 cat >>conftest.$ac_ext <<_ACEOF
18706 /* end confdefs.h.  */
18707 #include <stdlib.h>
18708 #include <stdarg.h>
18709 #include <string.h>
18710 #include <float.h>
18711
18712 int
18713 main ()
18714 {
18715
18716   ;
18717   return 0;
18718 }
18719 _ACEOF
18720 rm -f conftest.$ac_objext
18721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18722   (eval $ac_compile) 2>&5
18723   ac_status=$?
18724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725   (exit $ac_status); } &&
18726          { ac_try='test -s conftest.$ac_objext'
18727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728   (eval $ac_try) 2>&5
18729   ac_status=$?
18730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731   (exit $ac_status); }; }; then
18732   ac_cv_header_stdc=yes
18733 else
18734   echo "$as_me: failed program was:" >&5
18735 sed 's/^/| /' conftest.$ac_ext >&5
18736
18737 ac_cv_header_stdc=no
18738 fi
18739 rm -f conftest.$ac_objext conftest.$ac_ext
18740
18741 if test $ac_cv_header_stdc = yes; then
18742   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18743   cat >conftest.$ac_ext <<_ACEOF
18744 #line $LINENO "configure"
18745 /* confdefs.h.  */
18746 _ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h.  */
18750 #include <string.h>
18751
18752 _ACEOF
18753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18754   $EGREP "memchr" >/dev/null 2>&1; then
18755   :
18756 else
18757   ac_cv_header_stdc=no
18758 fi
18759 rm -f conftest*
18760
18761 fi
18762
18763 if test $ac_cv_header_stdc = yes; then
18764   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18765   cat >conftest.$ac_ext <<_ACEOF
18766 #line $LINENO "configure"
18767 /* confdefs.h.  */
18768 _ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h.  */
18772 #include <stdlib.h>
18773
18774 _ACEOF
18775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18776   $EGREP "free" >/dev/null 2>&1; then
18777   :
18778 else
18779   ac_cv_header_stdc=no
18780 fi
18781 rm -f conftest*
18782
18783 fi
18784
18785 if test $ac_cv_header_stdc = yes; then
18786   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18787   if test "$cross_compiling" = yes; then
18788   :
18789 else
18790   cat >conftest.$ac_ext <<_ACEOF
18791 #line $LINENO "configure"
18792 /* confdefs.h.  */
18793 _ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h.  */
18797 #include <ctype.h>
18798 #if ((' ' & 0x0FF) == 0x020)
18799 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18800 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18801 #else
18802 # define ISLOWER(c) \
18803                    (('a' <= (c) && (c) <= 'i') \
18804                      || ('j' <= (c) && (c) <= 'r') \
18805                      || ('s' <= (c) && (c) <= 'z'))
18806 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18807 #endif
18808
18809 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18810 int
18811 main ()
18812 {
18813   int i;
18814   for (i = 0; i < 256; i++)
18815     if (XOR (islower (i), ISLOWER (i))
18816         || toupper (i) != TOUPPER (i))
18817       exit(2);
18818   exit (0);
18819 }
18820 _ACEOF
18821 rm -f conftest$ac_exeext
18822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18823   (eval $ac_link) 2>&5
18824   ac_status=$?
18825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828   (eval $ac_try) 2>&5
18829   ac_status=$?
18830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831   (exit $ac_status); }; }; then
18832   :
18833 else
18834   echo "$as_me: program exited with status $ac_status" >&5
18835 echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18837
18838 ( exit $ac_status )
18839 ac_cv_header_stdc=no
18840 fi
18841 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18842 fi
18843 fi
18844 fi
18845 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18846 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18847 if test $ac_cv_header_stdc = yes; then
18848
18849 cat >>confdefs.h <<\_ACEOF
18850 #define STDC_HEADERS 1
18851 _ACEOF
18852
18853 fi
18854
18855 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18856 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18857 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18858   echo $ECHO_N "(cached) $ECHO_C" >&6
18859 else
18860   cat >conftest.$ac_ext <<_ACEOF
18861 #line $LINENO "configure"
18862 /* confdefs.h.  */
18863 _ACEOF
18864 cat confdefs.h >>conftest.$ac_ext
18865 cat >>conftest.$ac_ext <<_ACEOF
18866 /* end confdefs.h.  */
18867 #include <sys/types.h>
18868 #include <sys/wait.h>
18869 #ifndef WEXITSTATUS
18870 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18871 #endif
18872 #ifndef WIFEXITED
18873 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18874 #endif
18875
18876 int
18877 main ()
18878 {
18879   int s;
18880   wait (&s);
18881   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18882   ;
18883   return 0;
18884 }
18885 _ACEOF
18886 rm -f conftest.$ac_objext
18887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18888   (eval $ac_compile) 2>&5
18889   ac_status=$?
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); } &&
18892          { ac_try='test -s conftest.$ac_objext'
18893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894   (eval $ac_try) 2>&5
18895   ac_status=$?
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); }; }; then
18898   ac_cv_header_sys_wait_h=yes
18899 else
18900   echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18902
18903 ac_cv_header_sys_wait_h=no
18904 fi
18905 rm -f conftest.$ac_objext conftest.$ac_ext
18906 fi
18907 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18908 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18909 if test $ac_cv_header_sys_wait_h = yes; then
18910
18911 cat >>confdefs.h <<\_ACEOF
18912 #define HAVE_SYS_WAIT_H 1
18913 _ACEOF
18914
18915 fi
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929 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
18930 do
18931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18933   echo "$as_me:$LINENO: checking for $ac_header" >&5
18934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18936   echo $ECHO_N "(cached) $ECHO_C" >&6
18937 fi
18938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18940 else
18941   # Is the header compilable?
18942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18944 cat >conftest.$ac_ext <<_ACEOF
18945 #line $LINENO "configure"
18946 /* confdefs.h.  */
18947 _ACEOF
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h.  */
18951 $ac_includes_default
18952 #include <$ac_header>
18953 _ACEOF
18954 rm -f conftest.$ac_objext
18955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18956   (eval $ac_compile) 2>&5
18957   ac_status=$?
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); } &&
18960          { ac_try='test -s conftest.$ac_objext'
18961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962   (eval $ac_try) 2>&5
18963   ac_status=$?
18964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965   (exit $ac_status); }; }; then
18966   ac_header_compiler=yes
18967 else
18968   echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18970
18971 ac_header_compiler=no
18972 fi
18973 rm -f conftest.$ac_objext conftest.$ac_ext
18974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18975 echo "${ECHO_T}$ac_header_compiler" >&6
18976
18977 # Is the header present?
18978 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18980 cat >conftest.$ac_ext <<_ACEOF
18981 #line $LINENO "configure"
18982 /* confdefs.h.  */
18983 _ACEOF
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h.  */
18987 #include <$ac_header>
18988 _ACEOF
18989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18991   ac_status=$?
18992   grep -v '^ *+' conftest.er1 >conftest.err
18993   rm -f conftest.er1
18994   cat conftest.err >&5
18995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996   (exit $ac_status); } >/dev/null; then
18997   if test -s conftest.err; then
18998     ac_cpp_err=$ac_c_preproc_warn_flag
18999   else
19000     ac_cpp_err=
19001   fi
19002 else
19003   ac_cpp_err=yes
19004 fi
19005 if test -z "$ac_cpp_err"; then
19006   ac_header_preproc=yes
19007 else
19008   echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19010
19011   ac_header_preproc=no
19012 fi
19013 rm -f conftest.err conftest.$ac_ext
19014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19015 echo "${ECHO_T}$ac_header_preproc" >&6
19016
19017 # So?  What about this header?
19018 case $ac_header_compiler:$ac_header_preproc in
19019   yes:no )
19020     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19022     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19024     (
19025       cat <<\_ASBOX
19026 ## ------------------------------------ ##
19027 ## Report this to bug-autoconf@gnu.org. ##
19028 ## ------------------------------------ ##
19029 _ASBOX
19030     ) |
19031       sed "s/^/$as_me: WARNING:     /" >&2
19032     ;;
19033   no:yes )
19034     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19036     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19040     (
19041       cat <<\_ASBOX
19042 ## ------------------------------------ ##
19043 ## Report this to bug-autoconf@gnu.org. ##
19044 ## ------------------------------------ ##
19045 _ASBOX
19046     ) |
19047       sed "s/^/$as_me: WARNING:     /" >&2
19048     ;;
19049 esac
19050 echo "$as_me:$LINENO: checking for $ac_header" >&5
19051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19053   echo $ECHO_N "(cached) $ECHO_C" >&6
19054 else
19055   eval "$as_ac_Header=$ac_header_preproc"
19056 fi
19057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19059
19060 fi
19061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19062   cat >>confdefs.h <<_ACEOF
19063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19064 _ACEOF
19065
19066 fi
19067
19068 done
19069
19070
19071 if test "${ac_cv_header_sys_types_h+set}" = set; then
19072   echo "$as_me:$LINENO: checking for sys/types.h" >&5
19073 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19074 if test "${ac_cv_header_sys_types_h+set}" = set; then
19075   echo $ECHO_N "(cached) $ECHO_C" >&6
19076 fi
19077 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19078 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19079 else
19080   # Is the header compilable?
19081 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19082 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19083 cat >conftest.$ac_ext <<_ACEOF
19084 #line $LINENO "configure"
19085 /* confdefs.h.  */
19086 _ACEOF
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h.  */
19090 $ac_includes_default
19091 #include <sys/types.h>
19092 _ACEOF
19093 rm -f conftest.$ac_objext
19094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19095   (eval $ac_compile) 2>&5
19096   ac_status=$?
19097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098   (exit $ac_status); } &&
19099          { ac_try='test -s conftest.$ac_objext'
19100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19101   (eval $ac_try) 2>&5
19102   ac_status=$?
19103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104   (exit $ac_status); }; }; then
19105   ac_header_compiler=yes
19106 else
19107   echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19109
19110 ac_header_compiler=no
19111 fi
19112 rm -f conftest.$ac_objext conftest.$ac_ext
19113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19114 echo "${ECHO_T}$ac_header_compiler" >&6
19115
19116 # Is the header present?
19117 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19118 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19119 cat >conftest.$ac_ext <<_ACEOF
19120 #line $LINENO "configure"
19121 /* confdefs.h.  */
19122 _ACEOF
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h.  */
19126 #include <sys/types.h>
19127 _ACEOF
19128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19129   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19130   ac_status=$?
19131   grep -v '^ *+' conftest.er1 >conftest.err
19132   rm -f conftest.er1
19133   cat conftest.err >&5
19134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135   (exit $ac_status); } >/dev/null; then
19136   if test -s conftest.err; then
19137     ac_cpp_err=$ac_c_preproc_warn_flag
19138   else
19139     ac_cpp_err=
19140   fi
19141 else
19142   ac_cpp_err=yes
19143 fi
19144 if test -z "$ac_cpp_err"; then
19145   ac_header_preproc=yes
19146 else
19147   echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19149
19150   ac_header_preproc=no
19151 fi
19152 rm -f conftest.err conftest.$ac_ext
19153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19154 echo "${ECHO_T}$ac_header_preproc" >&6
19155
19156 # So?  What about this header?
19157 case $ac_header_compiler:$ac_header_preproc in
19158   yes:no )
19159     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19160 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19161     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19162 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19163     (
19164       cat <<\_ASBOX
19165 ## ------------------------------------ ##
19166 ## Report this to bug-autoconf@gnu.org. ##
19167 ## ------------------------------------ ##
19168 _ASBOX
19169     ) |
19170       sed "s/^/$as_me: WARNING:     /" >&2
19171     ;;
19172   no:yes )
19173     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19174 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19175     { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19176 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19177     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19178 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19179     (
19180       cat <<\_ASBOX
19181 ## ------------------------------------ ##
19182 ## Report this to bug-autoconf@gnu.org. ##
19183 ## ------------------------------------ ##
19184 _ASBOX
19185     ) |
19186       sed "s/^/$as_me: WARNING:     /" >&2
19187     ;;
19188 esac
19189 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19190 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19191 if test "${ac_cv_header_sys_types_h+set}" = set; then
19192   echo $ECHO_N "(cached) $ECHO_C" >&6
19193 else
19194   ac_cv_header_sys_types_h=$ac_header_preproc
19195 fi
19196 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19197 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19198
19199 fi
19200 if test $ac_cv_header_sys_types_h = yes; then
19201   INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19202 else
19203   INCLUDE_SYS_TYPES_H=''
19204 fi
19205
19206
19207
19208 if test "${ac_cv_header_inttypes_h+set}" = set; then
19209   echo "$as_me:$LINENO: checking for inttypes.h" >&5
19210 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19211 if test "${ac_cv_header_inttypes_h+set}" = set; then
19212   echo $ECHO_N "(cached) $ECHO_C" >&6
19213 fi
19214 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19215 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19216 else
19217   # Is the header compilable?
19218 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19219 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19220 cat >conftest.$ac_ext <<_ACEOF
19221 #line $LINENO "configure"
19222 /* confdefs.h.  */
19223 _ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h.  */
19227 $ac_includes_default
19228 #include <inttypes.h>
19229 _ACEOF
19230 rm -f conftest.$ac_objext
19231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19232   (eval $ac_compile) 2>&5
19233   ac_status=$?
19234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235   (exit $ac_status); } &&
19236          { ac_try='test -s conftest.$ac_objext'
19237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238   (eval $ac_try) 2>&5
19239   ac_status=$?
19240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241   (exit $ac_status); }; }; then
19242   ac_header_compiler=yes
19243 else
19244   echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19246
19247 ac_header_compiler=no
19248 fi
19249 rm -f conftest.$ac_objext conftest.$ac_ext
19250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19251 echo "${ECHO_T}$ac_header_compiler" >&6
19252
19253 # Is the header present?
19254 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19255 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19256 cat >conftest.$ac_ext <<_ACEOF
19257 #line $LINENO "configure"
19258 /* confdefs.h.  */
19259 _ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h.  */
19263 #include <inttypes.h>
19264 _ACEOF
19265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19267   ac_status=$?
19268   grep -v '^ *+' conftest.er1 >conftest.err
19269   rm -f conftest.er1
19270   cat conftest.err >&5
19271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272   (exit $ac_status); } >/dev/null; then
19273   if test -s conftest.err; then
19274     ac_cpp_err=$ac_c_preproc_warn_flag
19275   else
19276     ac_cpp_err=
19277   fi
19278 else
19279   ac_cpp_err=yes
19280 fi
19281 if test -z "$ac_cpp_err"; then
19282   ac_header_preproc=yes
19283 else
19284   echo "$as_me: failed program was:" >&5
19285 sed 's/^/| /' conftest.$ac_ext >&5
19286
19287   ac_header_preproc=no
19288 fi
19289 rm -f conftest.err conftest.$ac_ext
19290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19291 echo "${ECHO_T}$ac_header_preproc" >&6
19292
19293 # So?  What about this header?
19294 case $ac_header_compiler:$ac_header_preproc in
19295   yes:no )
19296     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19297 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19298     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19299 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19300     (
19301       cat <<\_ASBOX
19302 ## ------------------------------------ ##
19303 ## Report this to bug-autoconf@gnu.org. ##
19304 ## ------------------------------------ ##
19305 _ASBOX
19306     ) |
19307       sed "s/^/$as_me: WARNING:     /" >&2
19308     ;;
19309   no:yes )
19310     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19311 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19312     { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19313 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19314     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19315 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19316     (
19317       cat <<\_ASBOX
19318 ## ------------------------------------ ##
19319 ## Report this to bug-autoconf@gnu.org. ##
19320 ## ------------------------------------ ##
19321 _ASBOX
19322     ) |
19323       sed "s/^/$as_me: WARNING:     /" >&2
19324     ;;
19325 esac
19326 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19327 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19328 if test "${ac_cv_header_inttypes_h+set}" = set; then
19329   echo $ECHO_N "(cached) $ECHO_C" >&6
19330 else
19331   ac_cv_header_inttypes_h=$ac_header_preproc
19332 fi
19333 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19334 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19335
19336 fi
19337 if test $ac_cv_header_inttypes_h = yes; then
19338   INCLUDE_INTTYPES_H='#include <inttypes.h>'
19339 else
19340   INCLUDE_INTTYPES_H=''
19341 fi
19342
19343
19344
19345 if test "${ac_cv_header_stdint_h+set}" = set; then
19346   echo "$as_me:$LINENO: checking for stdint.h" >&5
19347 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19348 if test "${ac_cv_header_stdint_h+set}" = set; then
19349   echo $ECHO_N "(cached) $ECHO_C" >&6
19350 fi
19351 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19352 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19353 else
19354   # Is the header compilable?
19355 echo "$as_me:$LINENO: checking stdint.h usability" >&5
19356 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
19357 cat >conftest.$ac_ext <<_ACEOF
19358 #line $LINENO "configure"
19359 /* confdefs.h.  */
19360 _ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h.  */
19364 $ac_includes_default
19365 #include <stdint.h>
19366 _ACEOF
19367 rm -f conftest.$ac_objext
19368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19369   (eval $ac_compile) 2>&5
19370   ac_status=$?
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); } &&
19373          { ac_try='test -s conftest.$ac_objext'
19374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375   (eval $ac_try) 2>&5
19376   ac_status=$?
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); }; }; then
19379   ac_header_compiler=yes
19380 else
19381   echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384 ac_header_compiler=no
19385 fi
19386 rm -f conftest.$ac_objext conftest.$ac_ext
19387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19388 echo "${ECHO_T}$ac_header_compiler" >&6
19389
19390 # Is the header present?
19391 echo "$as_me:$LINENO: checking stdint.h presence" >&5
19392 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
19393 cat >conftest.$ac_ext <<_ACEOF
19394 #line $LINENO "configure"
19395 /* confdefs.h.  */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h.  */
19400 #include <stdint.h>
19401 _ACEOF
19402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19403   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19404   ac_status=$?
19405   grep -v '^ *+' conftest.er1 >conftest.err
19406   rm -f conftest.er1
19407   cat conftest.err >&5
19408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); } >/dev/null; then
19410   if test -s conftest.err; then
19411     ac_cpp_err=$ac_c_preproc_warn_flag
19412   else
19413     ac_cpp_err=
19414   fi
19415 else
19416   ac_cpp_err=yes
19417 fi
19418 if test -z "$ac_cpp_err"; then
19419   ac_header_preproc=yes
19420 else
19421   echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19423
19424   ac_header_preproc=no
19425 fi
19426 rm -f conftest.err conftest.$ac_ext
19427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19428 echo "${ECHO_T}$ac_header_preproc" >&6
19429
19430 # So?  What about this header?
19431 case $ac_header_compiler:$ac_header_preproc in
19432   yes:no )
19433     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
19434 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19435     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19436 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19437     (
19438       cat <<\_ASBOX
19439 ## ------------------------------------ ##
19440 ## Report this to bug-autoconf@gnu.org. ##
19441 ## ------------------------------------ ##
19442 _ASBOX
19443     ) |
19444       sed "s/^/$as_me: WARNING:     /" >&2
19445     ;;
19446   no:yes )
19447     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
19448 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
19449     { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
19450 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
19451     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19452 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19453     (
19454       cat <<\_ASBOX
19455 ## ------------------------------------ ##
19456 ## Report this to bug-autoconf@gnu.org. ##
19457 ## ------------------------------------ ##
19458 _ASBOX
19459     ) |
19460       sed "s/^/$as_me: WARNING:     /" >&2
19461     ;;
19462 esac
19463 echo "$as_me:$LINENO: checking for stdint.h" >&5
19464 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19465 if test "${ac_cv_header_stdint_h+set}" = set; then
19466   echo $ECHO_N "(cached) $ECHO_C" >&6
19467 else
19468   ac_cv_header_stdint_h=$ac_header_preproc
19469 fi
19470 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19471 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19472
19473 fi
19474 if test $ac_cv_header_stdint_h = yes; then
19475   INCLUDE_STDINT_H='#include <stdint.h>'
19476 else
19477   INCLUDE_STDINT_H=''
19478 fi
19479
19480
19481
19482
19483
19484 echo "$as_me:$LINENO: checking for pid_t" >&5
19485 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19486 if test "${ac_cv_type_pid_t+set}" = set; then
19487   echo $ECHO_N "(cached) $ECHO_C" >&6
19488 else
19489   cat >conftest.$ac_ext <<_ACEOF
19490 #line $LINENO "configure"
19491 /* confdefs.h.  */
19492 _ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h.  */
19496 $ac_includes_default
19497 int
19498 main ()
19499 {
19500 if ((pid_t *) 0)
19501   return 0;
19502 if (sizeof (pid_t))
19503   return 0;
19504   ;
19505   return 0;
19506 }
19507 _ACEOF
19508 rm -f conftest.$ac_objext
19509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19510   (eval $ac_compile) 2>&5
19511   ac_status=$?
19512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513   (exit $ac_status); } &&
19514          { ac_try='test -s conftest.$ac_objext'
19515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516   (eval $ac_try) 2>&5
19517   ac_status=$?
19518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519   (exit $ac_status); }; }; then
19520   ac_cv_type_pid_t=yes
19521 else
19522   echo "$as_me: failed program was:" >&5
19523 sed 's/^/| /' conftest.$ac_ext >&5
19524
19525 ac_cv_type_pid_t=no
19526 fi
19527 rm -f conftest.$ac_objext conftest.$ac_ext
19528 fi
19529 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19530 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19531 if test $ac_cv_type_pid_t = yes; then
19532   :
19533 else
19534
19535 cat >>confdefs.h <<_ACEOF
19536 #define pid_t int
19537 _ACEOF
19538
19539 fi
19540
19541 echo "$as_me:$LINENO: checking for size_t" >&5
19542 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19543 if test "${ac_cv_type_size_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 ((size_t *) 0)
19558   return 0;
19559 if (sizeof (size_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_size_t=yes
19578 else
19579   echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19581
19582 ac_cv_type_size_t=no
19583 fi
19584 rm -f conftest.$ac_objext conftest.$ac_ext
19585 fi
19586 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19587 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19588 if test $ac_cv_type_size_t = yes; then
19589   :
19590 else
19591
19592 cat >>confdefs.h <<_ACEOF
19593 #define size_t unsigned
19594 _ACEOF
19595
19596 fi
19597
19598 echo "$as_me:$LINENO: checking for int64_t" >&5
19599 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19600 if test "${ac_cv_type_int64_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 ((int64_t *) 0)
19615   return 0;
19616 if (sizeof (int64_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_int64_t=yes
19635 else
19636   echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19638
19639 ac_cv_type_int64_t=no
19640 fi
19641 rm -f conftest.$ac_objext conftest.$ac_ext
19642 fi
19643 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19644 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19645 if test $ac_cv_type_int64_t = yes; then
19646
19647 cat >>confdefs.h <<_ACEOF
19648 #define HAVE_INT64_T 1
19649 _ACEOF
19650
19651
19652 else
19653   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19654 echo "$as_me: error: Type int64_t required but not found" >&2;}
19655    { (exit 1); exit 1; }; }
19656 fi
19657
19658 echo "$as_me:$LINENO: checking for uint64_t" >&5
19659 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19660 if test "${ac_cv_type_uint64_t+set}" = set; then
19661   echo $ECHO_N "(cached) $ECHO_C" >&6
19662 else
19663   cat >conftest.$ac_ext <<_ACEOF
19664 #line $LINENO "configure"
19665 /* confdefs.h.  */
19666 _ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h.  */
19670 $ac_includes_default
19671 int
19672 main ()
19673 {
19674 if ((uint64_t *) 0)
19675   return 0;
19676 if (sizeof (uint64_t))
19677   return 0;
19678   ;
19679   return 0;
19680 }
19681 _ACEOF
19682 rm -f conftest.$ac_objext
19683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19684   (eval $ac_compile) 2>&5
19685   ac_status=$?
19686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687   (exit $ac_status); } &&
19688          { ac_try='test -s conftest.$ac_objext'
19689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690   (eval $ac_try) 2>&5
19691   ac_status=$?
19692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693   (exit $ac_status); }; }; then
19694   ac_cv_type_uint64_t=yes
19695 else
19696   echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19698
19699 ac_cv_type_uint64_t=no
19700 fi
19701 rm -f conftest.$ac_objext conftest.$ac_ext
19702 fi
19703 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19704 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19705 if test $ac_cv_type_uint64_t = yes; then
19706
19707 cat >>confdefs.h <<_ACEOF
19708 #define HAVE_UINT64_T 1
19709 _ACEOF
19710
19711
19712 else
19713   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19714 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19715    { (exit 1); exit 1; }; }
19716 fi
19717
19718 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19719 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19720 if test "${ac_cv_header_time+set}" = set; then
19721   echo $ECHO_N "(cached) $ECHO_C" >&6
19722 else
19723   cat >conftest.$ac_ext <<_ACEOF
19724 #line $LINENO "configure"
19725 /* confdefs.h.  */
19726 _ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h.  */
19730 #include <sys/types.h>
19731 #include <sys/time.h>
19732 #include <time.h>
19733
19734 int
19735 main ()
19736 {
19737 if ((struct tm *) 0)
19738 return 0;
19739   ;
19740   return 0;
19741 }
19742 _ACEOF
19743 rm -f conftest.$ac_objext
19744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19745   (eval $ac_compile) 2>&5
19746   ac_status=$?
19747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748   (exit $ac_status); } &&
19749          { ac_try='test -s conftest.$ac_objext'
19750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751   (eval $ac_try) 2>&5
19752   ac_status=$?
19753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754   (exit $ac_status); }; }; then
19755   ac_cv_header_time=yes
19756 else
19757   echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19759
19760 ac_cv_header_time=no
19761 fi
19762 rm -f conftest.$ac_objext conftest.$ac_ext
19763 fi
19764 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19765 echo "${ECHO_T}$ac_cv_header_time" >&6
19766 if test $ac_cv_header_time = yes; then
19767
19768 cat >>confdefs.h <<\_ACEOF
19769 #define TIME_WITH_SYS_TIME 1
19770 _ACEOF
19771
19772 fi
19773
19774 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19775 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19776 if test "${ac_cv_struct_tm+set}" = set; then
19777   echo $ECHO_N "(cached) $ECHO_C" >&6
19778 else
19779   cat >conftest.$ac_ext <<_ACEOF
19780 #line $LINENO "configure"
19781 /* confdefs.h.  */
19782 _ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h.  */
19786 #include <sys/types.h>
19787 #include <time.h>
19788
19789 int
19790 main ()
19791 {
19792 struct tm *tp; tp->tm_sec;
19793   ;
19794   return 0;
19795 }
19796 _ACEOF
19797 rm -f conftest.$ac_objext
19798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19799   (eval $ac_compile) 2>&5
19800   ac_status=$?
19801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802   (exit $ac_status); } &&
19803          { ac_try='test -s conftest.$ac_objext'
19804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805   (eval $ac_try) 2>&5
19806   ac_status=$?
19807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808   (exit $ac_status); }; }; then
19809   ac_cv_struct_tm=time.h
19810 else
19811   echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19813
19814 ac_cv_struct_tm=sys/time.h
19815 fi
19816 rm -f conftest.$ac_objext conftest.$ac_ext
19817 fi
19818 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19819 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19820 if test $ac_cv_struct_tm = sys/time.h; then
19821
19822 cat >>confdefs.h <<\_ACEOF
19823 #define TM_IN_SYS_TIME 1
19824 _ACEOF
19825
19826 fi
19827
19828
19829
19830         echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
19831 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
19832
19833
19834         ac_ext=c
19835 ac_cpp='$CPP $CPPFLAGS'
19836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19839
19840         if test "$cross_compiling" = yes; then
19841   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19842 See \`config.log' for more details." >&5
19843 echo "$as_me: error: cannot run test program while cross compiling
19844 See \`config.log' for more details." >&2;}
19845    { (exit 1); exit 1; }; }
19846 else
19847   cat >conftest.$ac_ext <<_ACEOF
19848 #line $LINENO "configure"
19849 /* confdefs.h.  */
19850 _ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h.  */
19854 #include <stdio.h>
19855                                  #include <stdlib.h>
19856 int
19857 main ()
19858 {
19859
19860                                  volatile double A, B;
19861                                  char Buffer[100];
19862                                  A = 1;
19863                                  A /= 10.0;
19864                                  sprintf(Buffer, "%a", A);
19865                                  B = atof(Buffer);
19866                                  if (A != B)
19867                                                          return (1);
19868                                  if (A != 0x1.999999999999ap-4)
19869                                                          return (1);
19870                                  return (0);
19871   ;
19872   return 0;
19873 }
19874 _ACEOF
19875 rm -f conftest$ac_exeext
19876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19877   (eval $ac_link) 2>&5
19878   ac_status=$?
19879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882   (eval $ac_try) 2>&5
19883   ac_status=$?
19884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885   (exit $ac_status); }; }; then
19886   ac_c_printf_a=yes
19887 else
19888   echo "$as_me: program exited with status $ac_status" >&5
19889 echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19891
19892 ( exit $ac_status )
19893 ac_c_printf_a=no
19894 fi
19895 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19896 fi
19897         ac_ext=c
19898 ac_cpp='$CPP $CPPFLAGS'
19899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19902
19903         echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
19904 echo "${ECHO_T}$ac_c_printf_a" >&6
19905         if test "$ac_c_printf_a" = "yes"; then
19906
19907 cat >>confdefs.h <<\_ACEOF
19908 #define HAVE_PRINTF_A 1
19909 _ACEOF
19910
19911         fi
19912
19913
19914 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19915 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19916 if test "${ac_cv_c_bigendian+set}" = set; then
19917   echo $ECHO_N "(cached) $ECHO_C" >&6
19918 else
19919   # See if sys/param.h defines the BYTE_ORDER macro.
19920 cat >conftest.$ac_ext <<_ACEOF
19921 #line $LINENO "configure"
19922 /* confdefs.h.  */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h.  */
19927 #include <sys/types.h>
19928 #include <sys/param.h>
19929
19930 int
19931 main ()
19932 {
19933 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19934  bogus endian macros
19935 #endif
19936
19937   ;
19938   return 0;
19939 }
19940 _ACEOF
19941 rm -f conftest.$ac_objext
19942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19943   (eval $ac_compile) 2>&5
19944   ac_status=$?
19945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946   (exit $ac_status); } &&
19947          { ac_try='test -s conftest.$ac_objext'
19948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949   (eval $ac_try) 2>&5
19950   ac_status=$?
19951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952   (exit $ac_status); }; }; then
19953   # It does; now see whether it defined to BIG_ENDIAN or not.
19954 cat >conftest.$ac_ext <<_ACEOF
19955 #line $LINENO "configure"
19956 /* confdefs.h.  */
19957 _ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h.  */
19961 #include <sys/types.h>
19962 #include <sys/param.h>
19963
19964 int
19965 main ()
19966 {
19967 #if BYTE_ORDER != BIG_ENDIAN
19968  not big endian
19969 #endif
19970
19971   ;
19972   return 0;
19973 }
19974 _ACEOF
19975 rm -f conftest.$ac_objext
19976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19977   (eval $ac_compile) 2>&5
19978   ac_status=$?
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); } &&
19981          { ac_try='test -s conftest.$ac_objext'
19982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983   (eval $ac_try) 2>&5
19984   ac_status=$?
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); }; }; then
19987   ac_cv_c_bigendian=yes
19988 else
19989   echo "$as_me: failed program was:" >&5
19990 sed 's/^/| /' conftest.$ac_ext >&5
19991
19992 ac_cv_c_bigendian=no
19993 fi
19994 rm -f conftest.$ac_objext conftest.$ac_ext
19995 else
19996   echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19998
19999 # It does not; compile a test program.
20000 if test "$cross_compiling" = yes; then
20001   # try to guess the endianness by grepping values into an object file
20002   ac_cv_c_bigendian=unknown
20003   cat >conftest.$ac_ext <<_ACEOF
20004 #line $LINENO "configure"
20005 /* confdefs.h.  */
20006 _ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h.  */
20010 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20011 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20012 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20013 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20014 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20015 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20016 int
20017 main ()
20018 {
20019  _ascii (); _ebcdic ();
20020   ;
20021   return 0;
20022 }
20023 _ACEOF
20024 rm -f conftest.$ac_objext
20025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20026   (eval $ac_compile) 2>&5
20027   ac_status=$?
20028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029   (exit $ac_status); } &&
20030          { ac_try='test -s conftest.$ac_objext'
20031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032   (eval $ac_try) 2>&5
20033   ac_status=$?
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); }; }; then
20036   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20037   ac_cv_c_bigendian=yes
20038 fi
20039 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20040   if test "$ac_cv_c_bigendian" = unknown; then
20041     ac_cv_c_bigendian=no
20042   else
20043     # finding both strings is unlikely to happen, but who knows?
20044     ac_cv_c_bigendian=unknown
20045   fi
20046 fi
20047 else
20048   echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20050
20051 fi
20052 rm -f conftest.$ac_objext conftest.$ac_ext
20053 else
20054   cat >conftest.$ac_ext <<_ACEOF
20055 #line $LINENO "configure"
20056 /* confdefs.h.  */
20057 _ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h.  */
20061 int
20062 main ()
20063 {
20064   /* Are we little or big endian?  From Harbison&Steele.  */
20065   union
20066   {
20067     long l;
20068     char c[sizeof (long)];
20069   } u;
20070   u.l = 1;
20071   exit (u.c[sizeof (long) - 1] == 1);
20072 }
20073 _ACEOF
20074 rm -f conftest$ac_exeext
20075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20076   (eval $ac_link) 2>&5
20077   ac_status=$?
20078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081   (eval $ac_try) 2>&5
20082   ac_status=$?
20083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084   (exit $ac_status); }; }; then
20085   ac_cv_c_bigendian=no
20086 else
20087   echo "$as_me: program exited with status $ac_status" >&5
20088 echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20090
20091 ( exit $ac_status )
20092 ac_cv_c_bigendian=yes
20093 fi
20094 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20095 fi
20096 fi
20097 rm -f conftest.$ac_objext conftest.$ac_ext
20098 fi
20099 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20100 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20101 case $ac_cv_c_bigendian in
20102   yes)
20103     ENDIAN=big
20104  ;;
20105   no)
20106     ENDIAN=little
20107  ;;
20108   *)
20109     { { echo "$as_me:$LINENO: error: unknown endianness
20110 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20111 echo "$as_me: error: unknown endianness
20112 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20113    { (exit 1); exit 1; }; } ;;
20114 esac
20115
20116
20117 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20118 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20119 if test "${ac_cv_cxx_namespaces+set}" = set; then
20120   echo $ECHO_N "(cached) $ECHO_C" >&6
20121 else
20122
20123
20124  ac_ext=cc
20125 ac_cpp='$CXXCPP $CPPFLAGS'
20126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20129
20130  cat >conftest.$ac_ext <<_ACEOF
20131 #line $LINENO "configure"
20132 /* confdefs.h.  */
20133 _ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h.  */
20137 namespace Outer { namespace Inner { int i = 0; }}
20138 int
20139 main ()
20140 {
20141 using namespace Outer::Inner; return i;
20142   ;
20143   return 0;
20144 }
20145 _ACEOF
20146 rm -f conftest.$ac_objext
20147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20148   (eval $ac_compile) 2>&5
20149   ac_status=$?
20150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151   (exit $ac_status); } &&
20152          { ac_try='test -s conftest.$ac_objext'
20153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154   (eval $ac_try) 2>&5
20155   ac_status=$?
20156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157   (exit $ac_status); }; }; then
20158   ac_cv_cxx_namespaces=yes
20159 else
20160   echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20162
20163 ac_cv_cxx_namespaces=no
20164 fi
20165 rm -f conftest.$ac_objext conftest.$ac_ext
20166  ac_ext=c
20167 ac_cpp='$CPP $CPPFLAGS'
20168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20171
20172
20173 fi
20174 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20175 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20176 if test "$ac_cv_cxx_namespaces" = yes; then
20177
20178 cat >>confdefs.h <<\_ACEOF
20179 #define HAVE_NAMESPACES
20180 _ACEOF
20181
20182 fi
20183
20184 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20185 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20186 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20187   echo $ECHO_N "(cached) $ECHO_C" >&6
20188 else
20189
20190
20191
20192   ac_ext=cc
20193 ac_cpp='$CXXCPP $CPPFLAGS'
20194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20197
20198   cat >conftest.$ac_ext <<_ACEOF
20199 #line $LINENO "configure"
20200 /* confdefs.h.  */
20201 _ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h.  */
20205 #include <ext/hash_map>
20206 #ifdef HAVE_NAMESPACES
20207 using namespace std;
20208 #endif
20209 int
20210 main ()
20211 {
20212 hash_map<int, int> t;
20213   ;
20214   return 0;
20215 }
20216 _ACEOF
20217 rm -f conftest.$ac_objext
20218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20219   (eval $ac_compile) 2>&5
20220   ac_status=$?
20221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222   (exit $ac_status); } &&
20223          { ac_try='test -s conftest.$ac_objext'
20224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225   (eval $ac_try) 2>&5
20226   ac_status=$?
20227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228   (exit $ac_status); }; }; then
20229   ac_cv_cxx_have_std_ext_hash_map=yes
20230 else
20231   echo "$as_me: failed program was:" >&5
20232 sed 's/^/| /' conftest.$ac_ext >&5
20233
20234 ac_cv_cxx_have_std_ext_hash_map=no
20235 fi
20236 rm -f conftest.$ac_objext conftest.$ac_ext
20237   ac_ext=c
20238 ac_cpp='$CPP $CPPFLAGS'
20239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20242
20243 fi
20244 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20245 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20246  HAVE_STD_EXT_HASH_MAP=0
20247  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20248  then
20249    HAVE_STD_EXT_HASH_MAP=1
20250  fi
20251
20252  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20253 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20254 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20255   echo $ECHO_N "(cached) $ECHO_C" >&6
20256 else
20257
20258
20259
20260   ac_ext=cc
20261 ac_cpp='$CXXCPP $CPPFLAGS'
20262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20265
20266   cat >conftest.$ac_ext <<_ACEOF
20267 #line $LINENO "configure"
20268 /* confdefs.h.  */
20269 _ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h.  */
20273 #include <ext/hash_map>
20274 #ifdef HAVE_NAMESPACES
20275 using namespace __gnu_cxx;
20276 #endif
20277 int
20278 main ()
20279 {
20280 hash_map<int,int> t;
20281   ;
20282   return 0;
20283 }
20284 _ACEOF
20285 rm -f conftest.$ac_objext
20286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20287   (eval $ac_compile) 2>&5
20288   ac_status=$?
20289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290   (exit $ac_status); } &&
20291          { ac_try='test -s conftest.$ac_objext'
20292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293   (eval $ac_try) 2>&5
20294   ac_status=$?
20295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296   (exit $ac_status); }; }; then
20297   ac_cv_cxx_have_gnu_ext_hash_map=yes
20298 else
20299   echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302 ac_cv_cxx_have_gnu_ext_hash_map=no
20303 fi
20304 rm -f conftest.$ac_objext conftest.$ac_ext
20305   ac_ext=c
20306 ac_cpp='$CPP $CPPFLAGS'
20307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20310
20311 fi
20312 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20313 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20314  HAVE_GNU_EXT_HASH_MAP=0
20315  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20316  then
20317    HAVE_GNU_EXT_HASH_MAP=1
20318  fi
20319
20320  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20321 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20322 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20323   echo $ECHO_N "(cached) $ECHO_C" >&6
20324 else
20325
20326
20327
20328   ac_ext=cc
20329 ac_cpp='$CXXCPP $CPPFLAGS'
20330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20333
20334   cat >conftest.$ac_ext <<_ACEOF
20335 #line $LINENO "configure"
20336 /* confdefs.h.  */
20337 _ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h.  */
20341 #include <hash_map>
20342 int
20343 main ()
20344 {
20345 hash_map<int,int> t;
20346   ;
20347   return 0;
20348 }
20349 _ACEOF
20350 rm -f conftest.$ac_objext
20351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20352   (eval $ac_compile) 2>&5
20353   ac_status=$?
20354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355   (exit $ac_status); } &&
20356          { ac_try='test -s conftest.$ac_objext'
20357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358   (eval $ac_try) 2>&5
20359   ac_status=$?
20360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361   (exit $ac_status); }; }; then
20362   ac_cv_cxx_have_global_hash_map=yes
20363 else
20364   echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20366
20367 ac_cv_cxx_have_global_hash_map=no
20368 fi
20369 rm -f conftest.$ac_objext conftest.$ac_ext
20370   ac_ext=c
20371 ac_cpp='$CPP $CPPFLAGS'
20372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20375
20376 fi
20377 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20378 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20379  HAVE_GLOBAL_HASH_MAP=0
20380  if test "$ac_cv_cxx_have_global_hash_map" = yes
20381  then
20382    HAVE_GLOBAL_HASH_MAP=1
20383  fi
20384
20385 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20386 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20387 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20388   echo $ECHO_N "(cached) $ECHO_C" >&6
20389 else
20390
20391
20392
20393   ac_ext=cc
20394 ac_cpp='$CXXCPP $CPPFLAGS'
20395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20398
20399   cat >conftest.$ac_ext <<_ACEOF
20400 #line $LINENO "configure"
20401 /* confdefs.h.  */
20402 _ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h.  */
20406 #include <ext/hash_set>
20407 #ifdef HAVE_NAMESPACES
20408 using namespace std;
20409 #endif
20410 int
20411 main ()
20412 {
20413 hash_set<int> t;
20414   ;
20415   return 0;
20416 }
20417 _ACEOF
20418 rm -f conftest.$ac_objext
20419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20420   (eval $ac_compile) 2>&5
20421   ac_status=$?
20422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423   (exit $ac_status); } &&
20424          { ac_try='test -s conftest.$ac_objext'
20425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426   (eval $ac_try) 2>&5
20427   ac_status=$?
20428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429   (exit $ac_status); }; }; then
20430   ac_cv_cxx_have_std_ext_hash_set=yes
20431 else
20432   echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20434
20435 ac_cv_cxx_have_std_ext_hash_set=no
20436 fi
20437 rm -f conftest.$ac_objext conftest.$ac_ext
20438   ac_ext=c
20439 ac_cpp='$CPP $CPPFLAGS'
20440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20443
20444 fi
20445 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20446 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20447  HAVE_STD_EXT_HASH_SET=0
20448  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20449  then
20450    HAVE_STD_EXT_HASH_SET=1
20451  fi
20452
20453  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20454 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20455 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20456   echo $ECHO_N "(cached) $ECHO_C" >&6
20457 else
20458
20459
20460
20461   ac_ext=cc
20462 ac_cpp='$CXXCPP $CPPFLAGS'
20463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20466
20467   cat >conftest.$ac_ext <<_ACEOF
20468 #line $LINENO "configure"
20469 /* confdefs.h.  */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h.  */
20474 #include <ext/hash_set>
20475 #ifdef HAVE_NAMESPACES
20476 using namespace __gnu_cxx;
20477 #endif
20478 int
20479 main ()
20480 {
20481 hash_set<int> t;
20482   ;
20483   return 0;
20484 }
20485 _ACEOF
20486 rm -f conftest.$ac_objext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20488   (eval $ac_compile) 2>&5
20489   ac_status=$?
20490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491   (exit $ac_status); } &&
20492          { ac_try='test -s conftest.$ac_objext'
20493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20494   (eval $ac_try) 2>&5
20495   ac_status=$?
20496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497   (exit $ac_status); }; }; then
20498   ac_cv_cxx_have_gnu_ext_hash_set=yes
20499 else
20500   echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20502
20503 ac_cv_cxx_have_gnu_ext_hash_set=no
20504 fi
20505 rm -f conftest.$ac_objext conftest.$ac_ext
20506   ac_ext=c
20507 ac_cpp='$CPP $CPPFLAGS'
20508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20511
20512 fi
20513 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20514 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20515  HAVE_GNU_EXT_HASH_SET=0
20516  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20517  then
20518    HAVE_GNU_EXT_HASH_SET=1
20519  fi
20520
20521  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20522 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20523 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20524   echo $ECHO_N "(cached) $ECHO_C" >&6
20525 else
20526
20527
20528
20529   ac_ext=cc
20530 ac_cpp='$CXXCPP $CPPFLAGS'
20531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20534
20535   cat >conftest.$ac_ext <<_ACEOF
20536 #line $LINENO "configure"
20537 /* confdefs.h.  */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h.  */
20542 #include <hash_set>
20543 int
20544 main ()
20545 {
20546 hash_set<int> t; return 0;
20547   ;
20548   return 0;
20549 }
20550 _ACEOF
20551 rm -f conftest.$ac_objext
20552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20553   (eval $ac_compile) 2>&5
20554   ac_status=$?
20555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556   (exit $ac_status); } &&
20557          { ac_try='test -s conftest.$ac_objext'
20558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559   (eval $ac_try) 2>&5
20560   ac_status=$?
20561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562   (exit $ac_status); }; }; then
20563   ac_cv_cxx_have_global_hash_set=yes
20564 else
20565   echo "$as_me: failed program was:" >&5
20566 sed 's/^/| /' conftest.$ac_ext >&5
20567
20568 ac_cv_cxx_have_global_hash_set=no
20569 fi
20570 rm -f conftest.$ac_objext conftest.$ac_ext
20571   ac_ext=c
20572 ac_cpp='$CPP $CPPFLAGS'
20573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20576
20577 fi
20578 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20579 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20580  HAVE_GLOBAL_HASH_SET=0
20581  if test "$ac_cv_cxx_have_global_hash_set" = yes
20582  then
20583    HAVE_GLOBAL_HASH_SET=1
20584  fi
20585
20586 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20587 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20588 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20589   echo $ECHO_N "(cached) $ECHO_C" >&6
20590 else
20591
20592
20593
20594   ac_ext=cc
20595 ac_cpp='$CXXCPP $CPPFLAGS'
20596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20599
20600   cat >conftest.$ac_ext <<_ACEOF
20601 #line $LINENO "configure"
20602 /* confdefs.h.  */
20603 _ACEOF
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h.  */
20607 #include <iterator>
20608 #ifdef HAVE_NAMESPACES
20609 using namespace std;
20610 #endif
20611 int
20612 main ()
20613 {
20614 iterator<int,int,int> t; return 0;
20615   ;
20616   return 0;
20617 }
20618 _ACEOF
20619 rm -f conftest.$ac_objext
20620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20621   (eval $ac_compile) 2>&5
20622   ac_status=$?
20623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624   (exit $ac_status); } &&
20625          { ac_try='test -s conftest.$ac_objext'
20626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627   (eval $ac_try) 2>&5
20628   ac_status=$?
20629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630   (exit $ac_status); }; }; then
20631   ac_cv_cxx_have_std_iterator=yes
20632 else
20633   echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20635
20636 ac_cv_cxx_have_std_iterator=no
20637 fi
20638 rm -f conftest.$ac_objext conftest.$ac_ext
20639   ac_ext=c
20640 ac_cpp='$CPP $CPPFLAGS'
20641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20644
20645
20646 fi
20647 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20648 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20649 HAVE_STD_ITERATOR=0
20650 if test "$ac_cv_cxx_have_std_iterator" = yes
20651 then
20652    HAVE_STD_ITERATOR=1
20653 fi
20654
20655 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20656 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20657 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20658   echo $ECHO_N "(cached) $ECHO_C" >&6
20659 else
20660
20661
20662
20663   ac_ext=cc
20664 ac_cpp='$CXXCPP $CPPFLAGS'
20665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20668
20669   cat >conftest.$ac_ext <<_ACEOF
20670 #line $LINENO "configure"
20671 /* confdefs.h.  */
20672 _ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h.  */
20676 #include <iterator>
20677 #ifdef HAVE_NAMESPACES
20678 using namespace std;
20679 #endif
20680 int
20681 main ()
20682 {
20683 bidirectional_iterator<int,int> t; return 0;
20684   ;
20685   return 0;
20686 }
20687 _ACEOF
20688 rm -f conftest.$ac_objext
20689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20690   (eval $ac_compile) 2>&5
20691   ac_status=$?
20692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693   (exit $ac_status); } &&
20694          { ac_try='test -s conftest.$ac_objext'
20695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696   (eval $ac_try) 2>&5
20697   ac_status=$?
20698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699   (exit $ac_status); }; }; then
20700   ac_cv_cxx_have_bi_iterator=yes
20701 else
20702   echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20704
20705 ac_cv_cxx_have_bi_iterator=no
20706 fi
20707 rm -f conftest.$ac_objext conftest.$ac_ext
20708   ac_ext=c
20709 ac_cpp='$CPP $CPPFLAGS'
20710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20713
20714
20715 fi
20716 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20717 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20718 HAVE_BI_ITERATOR=0
20719 if test "$ac_cv_cxx_have_bi_iterator" = yes
20720 then
20721    HAVE_BI_ITERATOR=1
20722 fi
20723
20724 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20725 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20726 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20727   echo $ECHO_N "(cached) $ECHO_C" >&6
20728 else
20729
20730
20731
20732   ac_ext=cc
20733 ac_cpp='$CXXCPP $CPPFLAGS'
20734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20737
20738   cat >conftest.$ac_ext <<_ACEOF
20739 #line $LINENO "configure"
20740 /* confdefs.h.  */
20741 _ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h.  */
20745 #include <iterator>
20746 #ifdef HAVE_NAMESPACES
20747 using namespace std;
20748 #endif
20749 int
20750 main ()
20751 {
20752 forward_iterator<int,int> t; return 0;
20753   ;
20754   return 0;
20755 }
20756 _ACEOF
20757 rm -f conftest.$ac_objext
20758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20759   (eval $ac_compile) 2>&5
20760   ac_status=$?
20761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762   (exit $ac_status); } &&
20763          { ac_try='test -s conftest.$ac_objext'
20764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20765   (eval $ac_try) 2>&5
20766   ac_status=$?
20767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768   (exit $ac_status); }; }; then
20769   ac_cv_cxx_have_fwd_iterator=yes
20770 else
20771   echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20773
20774 ac_cv_cxx_have_fwd_iterator=no
20775 fi
20776 rm -f conftest.$ac_objext conftest.$ac_ext
20777   ac_ext=c
20778 ac_cpp='$CPP $CPPFLAGS'
20779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20782
20783
20784 fi
20785 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20786 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20787 HAVE_FWD_ITERATOR=0
20788 if test "$ac_cv_cxx_have_fwd_iterator" = yes
20789 then
20790    HAVE_FWD_ITERATOR=1
20791 fi
20792
20793
20794
20795 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20796 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
20797 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20798   echo $ECHO_N "(cached) $ECHO_C" >&6
20799 else
20800   ac_ext=cc
20801 ac_cpp='$CXXCPP $CPPFLAGS'
20802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20805
20806   cat >conftest.$ac_ext <<_ACEOF
20807 #line $LINENO "configure"
20808 /* confdefs.h.  */
20809 _ACEOF
20810 cat confdefs.h >>conftest.$ac_ext
20811 cat >>conftest.$ac_ext <<_ACEOF
20812 /* end confdefs.h.  */
20813 #include <math.h>
20814                      int foo(float f) {return isnan(f);}
20815 _ACEOF
20816 rm -f conftest.$ac_objext
20817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20818   (eval $ac_compile) 2>&5
20819   ac_status=$?
20820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821   (exit $ac_status); } &&
20822          { ac_try='test -s conftest.$ac_objext'
20823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20824   (eval $ac_try) 2>&5
20825   ac_status=$?
20826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827   (exit $ac_status); }; }; then
20828   ac_cv_func_isnan_in_math_h=yes
20829 else
20830   echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20832
20833 ac_cv_func_isnan_in_math_h=no
20834 fi
20835 rm -f conftest.$ac_objext conftest.$ac_ext
20836  ac_ext=c
20837 ac_cpp='$CPP $CPPFLAGS'
20838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20841
20842 fi
20843 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20844 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
20845  if test "$ac_cv_func_isnan_in_math_h" = "yes"
20846  then
20847
20848 cat >>confdefs.h <<\_ACEOF
20849 #define HAVE_ISNAN_IN_MATH_H 1
20850 _ACEOF
20851
20852  fi
20853 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20854 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
20855 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20856   echo $ECHO_N "(cached) $ECHO_C" >&6
20857 else
20858   ac_ext=cc
20859 ac_cpp='$CXXCPP $CPPFLAGS'
20860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20863
20864   cat >conftest.$ac_ext <<_ACEOF
20865 #line $LINENO "configure"
20866 /* confdefs.h.  */
20867 _ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h.  */
20871 #include <cmath>
20872                      int foo(float f) {return isnan(f);}
20873 _ACEOF
20874 rm -f conftest.$ac_objext
20875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20876   (eval $ac_compile) 2>&5
20877   ac_status=$?
20878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879   (exit $ac_status); } &&
20880          { ac_try='test -s conftest.$ac_objext'
20881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882   (eval $ac_try) 2>&5
20883   ac_status=$?
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); }; }; then
20886   ac_cv_func_isnan_in_cmath=yes
20887 else
20888   echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20890
20891 ac_cv_func_isnan_in_cmath=no
20892 fi
20893 rm -f conftest.$ac_objext conftest.$ac_ext
20894  ac_ext=c
20895 ac_cpp='$CPP $CPPFLAGS'
20896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20899
20900 fi
20901 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20902 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
20903  if test "$ac_cv_func_isnan_in_cmath" = "yes"
20904  then
20905
20906 cat >>confdefs.h <<\_ACEOF
20907 #define HAVE_ISNAN_IN_CMATH 1
20908 _ACEOF
20909
20910  fi
20911 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20912 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
20913 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20914   echo $ECHO_N "(cached) $ECHO_C" >&6
20915 else
20916   ac_ext=cc
20917 ac_cpp='$CXXCPP $CPPFLAGS'
20918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20921
20922   cat >conftest.$ac_ext <<_ACEOF
20923 #line $LINENO "configure"
20924 /* confdefs.h.  */
20925 _ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h.  */
20929 #include <cmath>
20930                      using std::isnan; int foo(float f) {return isnan(f);}
20931 _ACEOF
20932 rm -f conftest.$ac_objext
20933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20934   (eval $ac_compile) 2>&5
20935   ac_status=$?
20936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937   (exit $ac_status); } &&
20938          { ac_try='test -s conftest.$ac_objext'
20939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940   (eval $ac_try) 2>&5
20941   ac_status=$?
20942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943   (exit $ac_status); }; }; then
20944   ac_cv_func_std_isnan_in_cmath=yes
20945 else
20946   echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20948
20949 ac_cv_func_std_isnan_in_cmath=no
20950 fi
20951 rm -f conftest.$ac_objext conftest.$ac_ext
20952  ac_ext=c
20953 ac_cpp='$CPP $CPPFLAGS'
20954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20957
20958 fi
20959 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20960 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
20961  if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
20962  then
20963
20964 cat >>confdefs.h <<\_ACEOF
20965 #define HAVE_STD_ISNAN_IN_CMATH 1
20966 _ACEOF
20967
20968  fi
20969
20970
20971 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20972 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
20973 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20974   echo $ECHO_N "(cached) $ECHO_C" >&6
20975 else
20976   ac_ext=cc
20977 ac_cpp='$CXXCPP $CPPFLAGS'
20978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20981
20982   cat >conftest.$ac_ext <<_ACEOF
20983 #line $LINENO "configure"
20984 /* confdefs.h.  */
20985 _ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h.  */
20989 #include <math.h>
20990                      int foo(float f) {return isinf(f);}
20991 _ACEOF
20992 rm -f conftest.$ac_objext
20993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20994   (eval $ac_compile) 2>&5
20995   ac_status=$?
20996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997   (exit $ac_status); } &&
20998          { ac_try='test -s conftest.$ac_objext'
20999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21000   (eval $ac_try) 2>&5
21001   ac_status=$?
21002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003   (exit $ac_status); }; }; then
21004   ac_cv_func_isinf_in_math_h=yes
21005 else
21006   echo "$as_me: failed program was:" >&5
21007 sed 's/^/| /' conftest.$ac_ext >&5
21008
21009 ac_cv_func_isinf_in_math_h=no
21010 fi
21011 rm -f conftest.$ac_objext conftest.$ac_ext
21012  ac_ext=c
21013 ac_cpp='$CPP $CPPFLAGS'
21014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21017
21018 fi
21019 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21020 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21021  if test "$ac_cv_func_isinf_in_math_h" = "yes"
21022  then
21023
21024 cat >>confdefs.h <<\_ACEOF
21025 #define HAVE_ISINF_IN_MATH_H 1
21026 _ACEOF
21027
21028  fi
21029 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21030 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21031 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21032   echo $ECHO_N "(cached) $ECHO_C" >&6
21033 else
21034   ac_ext=cc
21035 ac_cpp='$CXXCPP $CPPFLAGS'
21036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21039
21040   cat >conftest.$ac_ext <<_ACEOF
21041 #line $LINENO "configure"
21042 /* confdefs.h.  */
21043 _ACEOF
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h.  */
21047 #include <cmath>
21048                      int foo(float f) {return isinf(f);}
21049 _ACEOF
21050 rm -f conftest.$ac_objext
21051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21052   (eval $ac_compile) 2>&5
21053   ac_status=$?
21054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055   (exit $ac_status); } &&
21056          { ac_try='test -s conftest.$ac_objext'
21057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21058   (eval $ac_try) 2>&5
21059   ac_status=$?
21060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061   (exit $ac_status); }; }; then
21062   ac_cv_func_isinf_in_cmath=yes
21063 else
21064   echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21066
21067 ac_cv_func_isinf_in_cmath=no
21068 fi
21069 rm -f conftest.$ac_objext conftest.$ac_ext
21070  ac_ext=c
21071 ac_cpp='$CPP $CPPFLAGS'
21072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21075
21076 fi
21077 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21078 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
21079  if test "$ac_cv_func_isinf_in_cmath" = "yes"
21080  then
21081
21082 cat >>confdefs.h <<\_ACEOF
21083 #define HAVE_ISINF_IN_CMATH 1
21084 _ACEOF
21085
21086  fi
21087 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21088 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
21089 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21090   echo $ECHO_N "(cached) $ECHO_C" >&6
21091 else
21092   ac_ext=cc
21093 ac_cpp='$CXXCPP $CPPFLAGS'
21094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21097
21098   cat >conftest.$ac_ext <<_ACEOF
21099 #line $LINENO "configure"
21100 /* confdefs.h.  */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h.  */
21105 #include <cmath>
21106                      using std::isinf; int foo(float f) {return isinf(f);}
21107 _ACEOF
21108 rm -f conftest.$ac_objext
21109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21110   (eval $ac_compile) 2>&5
21111   ac_status=$?
21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); } &&
21114          { ac_try='test -s conftest.$ac_objext'
21115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116   (eval $ac_try) 2>&5
21117   ac_status=$?
21118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119   (exit $ac_status); }; }; then
21120   ac_cv_func_std_isinf_in_cmath=yes
21121 else
21122   echo "$as_me: failed program was:" >&5
21123 sed 's/^/| /' conftest.$ac_ext >&5
21124
21125 ac_cv_func_std_isinf_in_cmath=no
21126 fi
21127 rm -f conftest.$ac_objext conftest.$ac_ext
21128  ac_ext=c
21129 ac_cpp='$CPP $CPPFLAGS'
21130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21133
21134 fi
21135 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21136 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
21137  if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
21138  then
21139
21140 cat >>confdefs.h <<\_ACEOF
21141 #define HAVE_STD_ISINF_IN_CMATH 1
21142 _ACEOF
21143
21144  fi
21145 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21146 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
21147 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21148   echo $ECHO_N "(cached) $ECHO_C" >&6
21149 else
21150   ac_ext=cc
21151 ac_cpp='$CXXCPP $CPPFLAGS'
21152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21155
21156   cat >conftest.$ac_ext <<_ACEOF
21157 #line $LINENO "configure"
21158 /* confdefs.h.  */
21159 _ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h.  */
21163 #include <ieeefp.h>
21164                      int foo(float f) {return finite(f);}
21165 _ACEOF
21166 rm -f conftest.$ac_objext
21167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21168   (eval $ac_compile) 2>&5
21169   ac_status=$?
21170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171   (exit $ac_status); } &&
21172          { ac_try='test -s conftest.$ac_objext'
21173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21174   (eval $ac_try) 2>&5
21175   ac_status=$?
21176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177   (exit $ac_status); }; }; then
21178   ac_cv_func_finite_in_ieeefp_h=yes
21179 else
21180   echo "$as_me: failed program was:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21182
21183 ac_cv_func_finite_in_ieeefp_h=no
21184 fi
21185 rm -f conftest.$ac_objext conftest.$ac_ext
21186  ac_ext=c
21187 ac_cpp='$CPP $CPPFLAGS'
21188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21191
21192 fi
21193 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21194 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
21195  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
21196  then
21197
21198 cat >>confdefs.h <<\_ACEOF
21199 #define HAVE_FINITE_IN_IEEEFP_H 1
21200 _ACEOF
21201
21202  fi
21203
21204
21205 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21206 # for constant arguments.  Useless!
21207 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21208 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21209 if test "${ac_cv_working_alloca_h+set}" = set; then
21210   echo $ECHO_N "(cached) $ECHO_C" >&6
21211 else
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 <alloca.h>
21220 int
21221 main ()
21222 {
21223 char *p = (char *) alloca (2 * sizeof (int));
21224   ;
21225   return 0;
21226 }
21227 _ACEOF
21228 rm -f conftest.$ac_objext conftest$ac_exeext
21229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21230   (eval $ac_link) 2>&5
21231   ac_status=$?
21232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233   (exit $ac_status); } &&
21234          { ac_try='test -s conftest$ac_exeext'
21235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236   (eval $ac_try) 2>&5
21237   ac_status=$?
21238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239   (exit $ac_status); }; }; then
21240   ac_cv_working_alloca_h=yes
21241 else
21242   echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21244
21245 ac_cv_working_alloca_h=no
21246 fi
21247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21248 fi
21249 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21250 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21251 if test $ac_cv_working_alloca_h = yes; then
21252
21253 cat >>confdefs.h <<\_ACEOF
21254 #define HAVE_ALLOCA_H 1
21255 _ACEOF
21256
21257 fi
21258
21259 echo "$as_me:$LINENO: checking for alloca" >&5
21260 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21261 if test "${ac_cv_func_alloca_works+set}" = set; then
21262   echo $ECHO_N "(cached) $ECHO_C" >&6
21263 else
21264   cat >conftest.$ac_ext <<_ACEOF
21265 #line $LINENO "configure"
21266 /* confdefs.h.  */
21267 _ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h.  */
21271 #ifdef __GNUC__
21272 # define alloca __builtin_alloca
21273 #else
21274 # ifdef _MSC_VER
21275 #  include <malloc.h>
21276 #  define alloca _alloca
21277 # else
21278 #  if HAVE_ALLOCA_H
21279 #   include <alloca.h>
21280 #  else
21281 #   ifdef _AIX
21282  #pragma alloca
21283 #   else
21284 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21285 char *alloca ();
21286 #    endif
21287 #   endif
21288 #  endif
21289 # endif
21290 #endif
21291
21292 int
21293 main ()
21294 {
21295 char *p = (char *) alloca (1);
21296   ;
21297   return 0;
21298 }
21299 _ACEOF
21300 rm -f conftest.$ac_objext conftest$ac_exeext
21301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21302   (eval $ac_link) 2>&5
21303   ac_status=$?
21304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305   (exit $ac_status); } &&
21306          { ac_try='test -s conftest$ac_exeext'
21307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21308   (eval $ac_try) 2>&5
21309   ac_status=$?
21310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311   (exit $ac_status); }; }; then
21312   ac_cv_func_alloca_works=yes
21313 else
21314   echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21316
21317 ac_cv_func_alloca_works=no
21318 fi
21319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21320 fi
21321 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21322 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21323
21324 if test $ac_cv_func_alloca_works = yes; then
21325
21326 cat >>confdefs.h <<\_ACEOF
21327 #define HAVE_ALLOCA 1
21328 _ACEOF
21329
21330 else
21331   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21332 # that cause trouble.  Some versions do not even contain alloca or
21333 # contain a buggy version.  If you still want to use their alloca,
21334 # use ar to extract alloca.o from them instead of compiling alloca.c.
21335
21336 ALLOCA=alloca.$ac_objext
21337
21338 cat >>confdefs.h <<\_ACEOF
21339 #define C_ALLOCA 1
21340 _ACEOF
21341
21342
21343 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21344 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21345 if test "${ac_cv_os_cray+set}" = set; then
21346   echo $ECHO_N "(cached) $ECHO_C" >&6
21347 else
21348   cat >conftest.$ac_ext <<_ACEOF
21349 #line $LINENO "configure"
21350 /* confdefs.h.  */
21351 _ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h.  */
21355 #if defined(CRAY) && ! defined(CRAY2)
21356 webecray
21357 #else
21358 wenotbecray
21359 #endif
21360
21361 _ACEOF
21362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21363   $EGREP "webecray" >/dev/null 2>&1; then
21364   ac_cv_os_cray=yes
21365 else
21366   ac_cv_os_cray=no
21367 fi
21368 rm -f conftest*
21369
21370 fi
21371 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21372 echo "${ECHO_T}$ac_cv_os_cray" >&6
21373 if test $ac_cv_os_cray = yes; then
21374   for ac_func in _getb67 GETB67 getb67; do
21375     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21376 echo "$as_me:$LINENO: checking for $ac_func" >&5
21377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21378 if eval "test \"\${$as_ac_var+set}\" = set"; then
21379   echo $ECHO_N "(cached) $ECHO_C" >&6
21380 else
21381   cat >conftest.$ac_ext <<_ACEOF
21382 #line $LINENO "configure"
21383 /* confdefs.h.  */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h.  */
21388 /* System header to define __stub macros and hopefully few prototypes,
21389     which can conflict with char $ac_func (); below.
21390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21391     <limits.h> exists even on freestanding compilers.  */
21392 #ifdef __STDC__
21393 # include <limits.h>
21394 #else
21395 # include <assert.h>
21396 #endif
21397 /* Override any gcc2 internal prototype to avoid an error.  */
21398 #ifdef __cplusplus
21399 extern "C"
21400 {
21401 #endif
21402 /* We use char because int might match the return type of a gcc2
21403    builtin and then its argument prototype would still apply.  */
21404 char $ac_func ();
21405 /* The GNU C library defines this for functions which it implements
21406     to always fail with ENOSYS.  Some functions are actually named
21407     something starting with __ and the normal name is an alias.  */
21408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21409 choke me
21410 #else
21411 char (*f) () = $ac_func;
21412 #endif
21413 #ifdef __cplusplus
21414 }
21415 #endif
21416
21417 int
21418 main ()
21419 {
21420 return f != $ac_func;
21421   ;
21422   return 0;
21423 }
21424 _ACEOF
21425 rm -f conftest.$ac_objext conftest$ac_exeext
21426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21427   (eval $ac_link) 2>&5
21428   ac_status=$?
21429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430   (exit $ac_status); } &&
21431          { ac_try='test -s conftest$ac_exeext'
21432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21433   (eval $ac_try) 2>&5
21434   ac_status=$?
21435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436   (exit $ac_status); }; }; then
21437   eval "$as_ac_var=yes"
21438 else
21439   echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21441
21442 eval "$as_ac_var=no"
21443 fi
21444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21445 fi
21446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21448 if test `eval echo '${'$as_ac_var'}'` = yes; then
21449
21450 cat >>confdefs.h <<_ACEOF
21451 #define CRAY_STACKSEG_END $ac_func
21452 _ACEOF
21453
21454     break
21455 fi
21456
21457   done
21458 fi
21459
21460 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21461 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21462 if test "${ac_cv_c_stack_direction+set}" = set; then
21463   echo $ECHO_N "(cached) $ECHO_C" >&6
21464 else
21465   if test "$cross_compiling" = yes; then
21466   ac_cv_c_stack_direction=0
21467 else
21468   cat >conftest.$ac_ext <<_ACEOF
21469 #line $LINENO "configure"
21470 /* confdefs.h.  */
21471 _ACEOF
21472 cat confdefs.h >>conftest.$ac_ext
21473 cat >>conftest.$ac_ext <<_ACEOF
21474 /* end confdefs.h.  */
21475 int
21476 find_stack_direction ()
21477 {
21478   static char *addr = 0;
21479   auto char dummy;
21480   if (addr == 0)
21481     {
21482       addr = &dummy;
21483       return find_stack_direction ();
21484     }
21485   else
21486     return (&dummy > addr) ? 1 : -1;
21487 }
21488
21489 int
21490 main ()
21491 {
21492   exit (find_stack_direction () < 0);
21493 }
21494 _ACEOF
21495 rm -f conftest$ac_exeext
21496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21497   (eval $ac_link) 2>&5
21498   ac_status=$?
21499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502   (eval $ac_try) 2>&5
21503   ac_status=$?
21504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505   (exit $ac_status); }; }; then
21506   ac_cv_c_stack_direction=1
21507 else
21508   echo "$as_me: program exited with status $ac_status" >&5
21509 echo "$as_me: failed program was:" >&5
21510 sed 's/^/| /' conftest.$ac_ext >&5
21511
21512 ( exit $ac_status )
21513 ac_cv_c_stack_direction=-1
21514 fi
21515 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21516 fi
21517 fi
21518 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21519 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21520
21521 cat >>confdefs.h <<_ACEOF
21522 #define STACK_DIRECTION $ac_cv_c_stack_direction
21523 _ACEOF
21524
21525
21526 fi
21527
21528
21529
21530 for ac_header in stdlib.h unistd.h
21531 do
21532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21534   echo "$as_me:$LINENO: checking for $ac_header" >&5
21535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21537   echo $ECHO_N "(cached) $ECHO_C" >&6
21538 fi
21539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21541 else
21542   # Is the header compilable?
21543 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21545 cat >conftest.$ac_ext <<_ACEOF
21546 #line $LINENO "configure"
21547 /* confdefs.h.  */
21548 _ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h.  */
21552 $ac_includes_default
21553 #include <$ac_header>
21554 _ACEOF
21555 rm -f conftest.$ac_objext
21556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21557   (eval $ac_compile) 2>&5
21558   ac_status=$?
21559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560   (exit $ac_status); } &&
21561          { ac_try='test -s conftest.$ac_objext'
21562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563   (eval $ac_try) 2>&5
21564   ac_status=$?
21565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566   (exit $ac_status); }; }; then
21567   ac_header_compiler=yes
21568 else
21569   echo "$as_me: failed program was:" >&5
21570 sed 's/^/| /' conftest.$ac_ext >&5
21571
21572 ac_header_compiler=no
21573 fi
21574 rm -f conftest.$ac_objext conftest.$ac_ext
21575 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21576 echo "${ECHO_T}$ac_header_compiler" >&6
21577
21578 # Is the header present?
21579 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21581 cat >conftest.$ac_ext <<_ACEOF
21582 #line $LINENO "configure"
21583 /* confdefs.h.  */
21584 _ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h.  */
21588 #include <$ac_header>
21589 _ACEOF
21590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21591   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21592   ac_status=$?
21593   grep -v '^ *+' conftest.er1 >conftest.err
21594   rm -f conftest.er1
21595   cat conftest.err >&5
21596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597   (exit $ac_status); } >/dev/null; then
21598   if test -s conftest.err; then
21599     ac_cpp_err=$ac_c_preproc_warn_flag
21600   else
21601     ac_cpp_err=
21602   fi
21603 else
21604   ac_cpp_err=yes
21605 fi
21606 if test -z "$ac_cpp_err"; then
21607   ac_header_preproc=yes
21608 else
21609   echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21611
21612   ac_header_preproc=no
21613 fi
21614 rm -f conftest.err conftest.$ac_ext
21615 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21616 echo "${ECHO_T}$ac_header_preproc" >&6
21617
21618 # So?  What about this header?
21619 case $ac_header_compiler:$ac_header_preproc in
21620   yes:no )
21621     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21625     (
21626       cat <<\_ASBOX
21627 ## ------------------------------------ ##
21628 ## Report this to bug-autoconf@gnu.org. ##
21629 ## ------------------------------------ ##
21630 _ASBOX
21631     ) |
21632       sed "s/^/$as_me: WARNING:     /" >&2
21633     ;;
21634   no:yes )
21635     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21637     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21638 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21641     (
21642       cat <<\_ASBOX
21643 ## ------------------------------------ ##
21644 ## Report this to bug-autoconf@gnu.org. ##
21645 ## ------------------------------------ ##
21646 _ASBOX
21647     ) |
21648       sed "s/^/$as_me: WARNING:     /" >&2
21649     ;;
21650 esac
21651 echo "$as_me:$LINENO: checking for $ac_header" >&5
21652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21654   echo $ECHO_N "(cached) $ECHO_C" >&6
21655 else
21656   eval "$as_ac_Header=$ac_header_preproc"
21657 fi
21658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21660
21661 fi
21662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21663   cat >>confdefs.h <<_ACEOF
21664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21665 _ACEOF
21666
21667 fi
21668
21669 done
21670
21671
21672 for ac_func in getpagesize
21673 do
21674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21675 echo "$as_me:$LINENO: checking for $ac_func" >&5
21676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21677 if eval "test \"\${$as_ac_var+set}\" = set"; then
21678   echo $ECHO_N "(cached) $ECHO_C" >&6
21679 else
21680   cat >conftest.$ac_ext <<_ACEOF
21681 #line $LINENO "configure"
21682 /* confdefs.h.  */
21683 _ACEOF
21684 cat confdefs.h >>conftest.$ac_ext
21685 cat >>conftest.$ac_ext <<_ACEOF
21686 /* end confdefs.h.  */
21687 /* System header to define __stub macros and hopefully few prototypes,
21688     which can conflict with char $ac_func (); below.
21689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21690     <limits.h> exists even on freestanding compilers.  */
21691 #ifdef __STDC__
21692 # include <limits.h>
21693 #else
21694 # include <assert.h>
21695 #endif
21696 /* Override any gcc2 internal prototype to avoid an error.  */
21697 #ifdef __cplusplus
21698 extern "C"
21699 {
21700 #endif
21701 /* We use char because int might match the return type of a gcc2
21702    builtin and then its argument prototype would still apply.  */
21703 char $ac_func ();
21704 /* The GNU C library defines this for functions which it implements
21705     to always fail with ENOSYS.  Some functions are actually named
21706     something starting with __ and the normal name is an alias.  */
21707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21708 choke me
21709 #else
21710 char (*f) () = $ac_func;
21711 #endif
21712 #ifdef __cplusplus
21713 }
21714 #endif
21715
21716 int
21717 main ()
21718 {
21719 return f != $ac_func;
21720   ;
21721   return 0;
21722 }
21723 _ACEOF
21724 rm -f conftest.$ac_objext conftest$ac_exeext
21725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21726   (eval $ac_link) 2>&5
21727   ac_status=$?
21728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729   (exit $ac_status); } &&
21730          { ac_try='test -s conftest$ac_exeext'
21731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21732   (eval $ac_try) 2>&5
21733   ac_status=$?
21734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735   (exit $ac_status); }; }; then
21736   eval "$as_ac_var=yes"
21737 else
21738   echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.$ac_ext >&5
21740
21741 eval "$as_ac_var=no"
21742 fi
21743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21744 fi
21745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21747 if test `eval echo '${'$as_ac_var'}'` = yes; then
21748   cat >>confdefs.h <<_ACEOF
21749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21750 _ACEOF
21751
21752 fi
21753 done
21754
21755 echo "$as_me:$LINENO: checking for working mmap" >&5
21756 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21757 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21758   echo $ECHO_N "(cached) $ECHO_C" >&6
21759 else
21760   if test "$cross_compiling" = yes; then
21761   ac_cv_func_mmap_fixed_mapped=no
21762 else
21763   cat >conftest.$ac_ext <<_ACEOF
21764 #line $LINENO "configure"
21765 /* confdefs.h.  */
21766 _ACEOF
21767 cat confdefs.h >>conftest.$ac_ext
21768 cat >>conftest.$ac_ext <<_ACEOF
21769 /* end confdefs.h.  */
21770 $ac_includes_default
21771 /* malloc might have been renamed as rpl_malloc. */
21772 #undef malloc
21773
21774 /* Thanks to Mike Haertel and Jim Avera for this test.
21775    Here is a matrix of mmap possibilities:
21776         mmap private not fixed
21777         mmap private fixed at somewhere currently unmapped
21778         mmap private fixed at somewhere already mapped
21779         mmap shared not fixed
21780         mmap shared fixed at somewhere currently unmapped
21781         mmap shared fixed at somewhere already mapped
21782    For private mappings, we should verify that changes cannot be read()
21783    back from the file, nor mmap's back from the file at a different
21784    address.  (There have been systems where private was not correctly
21785    implemented like the infamous i386 svr4.0, and systems where the
21786    VM page cache was not coherent with the file system buffer cache
21787    like early versions of FreeBSD and possibly contemporary NetBSD.)
21788    For shared mappings, we should conversely verify that changes get
21789    propagated back to all the places they're supposed to be.
21790
21791    Grep wants private fixed already mapped.
21792    The main things grep needs to know about mmap are:
21793    * does it exist and is it safe to write into the mmap'd area
21794    * how to use it (BSD variants)  */
21795
21796 #include <fcntl.h>
21797 #include <sys/mman.h>
21798
21799 #if !STDC_HEADERS && !HAVE_STDLIB_H
21800 char *malloc ();
21801 #endif
21802
21803 /* This mess was copied from the GNU getpagesize.h.  */
21804 #if !HAVE_GETPAGESIZE
21805 /* Assume that all systems that can run configure have sys/param.h.  */
21806 # if !HAVE_SYS_PARAM_H
21807 #  define HAVE_SYS_PARAM_H 1
21808 # endif
21809
21810 # ifdef _SC_PAGESIZE
21811 #  define getpagesize() sysconf(_SC_PAGESIZE)
21812 # else /* no _SC_PAGESIZE */
21813 #  if HAVE_SYS_PARAM_H
21814 #   include <sys/param.h>
21815 #   ifdef EXEC_PAGESIZE
21816 #    define getpagesize() EXEC_PAGESIZE
21817 #   else /* no EXEC_PAGESIZE */
21818 #    ifdef NBPG
21819 #     define getpagesize() NBPG * CLSIZE
21820 #     ifndef CLSIZE
21821 #      define CLSIZE 1
21822 #     endif /* no CLSIZE */
21823 #    else /* no NBPG */
21824 #     ifdef NBPC
21825 #      define getpagesize() NBPC
21826 #     else /* no NBPC */
21827 #      ifdef PAGESIZE
21828 #       define getpagesize() PAGESIZE
21829 #      endif /* PAGESIZE */
21830 #     endif /* no NBPC */
21831 #    endif /* no NBPG */
21832 #   endif /* no EXEC_PAGESIZE */
21833 #  else /* no HAVE_SYS_PARAM_H */
21834 #   define getpagesize() 8192   /* punt totally */
21835 #  endif /* no HAVE_SYS_PARAM_H */
21836 # endif /* no _SC_PAGESIZE */
21837
21838 #endif /* no HAVE_GETPAGESIZE */
21839
21840 int
21841 main ()
21842 {
21843   char *data, *data2, *data3;
21844   int i, pagesize;
21845   int fd;
21846
21847   pagesize = getpagesize ();
21848
21849   /* First, make a file with some known garbage in it. */
21850   data = (char *) malloc (pagesize);
21851   if (!data)
21852     exit (1);
21853   for (i = 0; i < pagesize; ++i)
21854     *(data + i) = rand ();
21855   umask (0);
21856   fd = creat ("conftest.mmap", 0600);
21857   if (fd < 0)
21858     exit (1);
21859   if (write (fd, data, pagesize) != pagesize)
21860     exit (1);
21861   close (fd);
21862
21863   /* Next, try to mmap the file at a fixed address which already has
21864      something else allocated at it.  If we can, also make sure that
21865      we see the same garbage.  */
21866   fd = open ("conftest.mmap", O_RDWR);
21867   if (fd < 0)
21868     exit (1);
21869   data2 = (char *) malloc (2 * pagesize);
21870   if (!data2)
21871     exit (1);
21872   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21873   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21874                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21875     exit (1);
21876   for (i = 0; i < pagesize; ++i)
21877     if (*(data + i) != *(data2 + i))
21878       exit (1);
21879
21880   /* Finally, make sure that changes to the mapped area do not
21881      percolate back to the file as seen by read().  (This is a bug on
21882      some variants of i386 svr4.0.)  */
21883   for (i = 0; i < pagesize; ++i)
21884     *(data2 + i) = *(data2 + i) + 1;
21885   data3 = (char *) malloc (pagesize);
21886   if (!data3)
21887     exit (1);
21888   if (read (fd, data3, pagesize) != pagesize)
21889     exit (1);
21890   for (i = 0; i < pagesize; ++i)
21891     if (*(data + i) != *(data3 + i))
21892       exit (1);
21893   close (fd);
21894   exit (0);
21895 }
21896 _ACEOF
21897 rm -f conftest$ac_exeext
21898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21899   (eval $ac_link) 2>&5
21900   ac_status=$?
21901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904   (eval $ac_try) 2>&5
21905   ac_status=$?
21906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907   (exit $ac_status); }; }; then
21908   ac_cv_func_mmap_fixed_mapped=yes
21909 else
21910   echo "$as_me: program exited with status $ac_status" >&5
21911 echo "$as_me: failed program was:" >&5
21912 sed 's/^/| /' conftest.$ac_ext >&5
21913
21914 ( exit $ac_status )
21915 ac_cv_func_mmap_fixed_mapped=no
21916 fi
21917 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21918 fi
21919 fi
21920 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21921 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21922 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21923
21924 cat >>confdefs.h <<\_ACEOF
21925 #define HAVE_MMAP 1
21926 _ACEOF
21927
21928 fi
21929 rm -f conftest.mmap
21930
21931 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21932 then
21933         { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
21934 echo "$as_me: WARNING: mmap() required but not found" >&2;}
21935 fi
21936 echo "$as_me:$LINENO: checking for mmap of files" >&5
21937 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21938 if test "${ac_cv_func_mmap_file+set}" = set; then
21939   echo $ECHO_N "(cached) $ECHO_C" >&6
21940 else
21941
21942
21943   ac_ext=c
21944 ac_cpp='$CPP $CPPFLAGS'
21945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21948
21949   if test "$cross_compiling" = yes; then
21950   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21951 See \`config.log' for more details." >&5
21952 echo "$as_me: error: cannot run test program while cross compiling
21953 See \`config.log' for more details." >&2;}
21954    { (exit 1); exit 1; }; }
21955 else
21956   cat >conftest.$ac_ext <<_ACEOF
21957 #line $LINENO "configure"
21958 /* confdefs.h.  */
21959 _ACEOF
21960 cat confdefs.h >>conftest.$ac_ext
21961 cat >>conftest.$ac_ext <<_ACEOF
21962 /* end confdefs.h.  */
21963
21964 #ifdef HAVE_SYS_TYPES_H
21965 #include <sys/types.h>
21966 #endif
21967
21968 #ifdef HAVE_SYS_MMAN_H
21969 #include <sys/mman.h>
21970 #endif
21971
21972 #ifdef HAVE_FCNTL_H
21973 #include <fcntl.h>
21974 #endif
21975
21976   int fd;
21977   int main () {
21978   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
21979 _ACEOF
21980 rm -f conftest$ac_exeext
21981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21982   (eval $ac_link) 2>&5
21983   ac_status=$?
21984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21987   (eval $ac_try) 2>&5
21988   ac_status=$?
21989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990   (exit $ac_status); }; }; then
21991   ac_cv_func_mmap_file=yes
21992 else
21993   echo "$as_me: program exited with status $ac_status" >&5
21994 echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
21996
21997 ( exit $ac_status )
21998 ac_cv_func_mmap_file=no
21999 fi
22000 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22001 fi
22002   ac_ext=c
22003 ac_cpp='$CPP $CPPFLAGS'
22004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22007
22008
22009 fi
22010 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22011 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22012 if test "$ac_cv_func_mmap_file" = yes; then
22013
22014 cat >>confdefs.h <<\_ACEOF
22015 #define HAVE_MMAP_FILE
22016 _ACEOF
22017
22018    MMAP_FILE=yes
22019
22020 fi
22021
22022 if test "$ac_cv_func_mmap_file" = "no"
22023 then
22024         { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22025 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22026 fi
22027 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22028 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22029 if test "${ac_cv_header_mmap_anon+set}" = set; then
22030   echo $ECHO_N "(cached) $ECHO_C" >&6
22031 else
22032
22033
22034   ac_ext=c
22035 ac_cpp='$CPP $CPPFLAGS'
22036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22039
22040   cat >conftest.$ac_ext <<_ACEOF
22041 #line $LINENO "configure"
22042 /* confdefs.h.  */
22043 _ACEOF
22044 cat confdefs.h >>conftest.$ac_ext
22045 cat >>conftest.$ac_ext <<_ACEOF
22046 /* end confdefs.h.  */
22047 #include <sys/mman.h>
22048   #include <unistd.h>
22049   #include <fcntl.h>
22050 int
22051 main ()
22052 {
22053 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22054   ;
22055   return 0;
22056 }
22057 _ACEOF
22058 rm -f conftest.$ac_objext
22059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22060   (eval $ac_compile) 2>&5
22061   ac_status=$?
22062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063   (exit $ac_status); } &&
22064          { ac_try='test -s conftest.$ac_objext'
22065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22066   (eval $ac_try) 2>&5
22067   ac_status=$?
22068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069   (exit $ac_status); }; }; then
22070   ac_cv_header_mmap_anon=yes
22071 else
22072   echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22074
22075 ac_cv_header_mmap_anon=no
22076 fi
22077 rm -f conftest.$ac_objext conftest.$ac_ext
22078   ac_ext=c
22079 ac_cpp='$CPP $CPPFLAGS'
22080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22083
22084
22085 fi
22086 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22087 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22088 if test "$ac_cv_header_mmap_anon" = yes; then
22089
22090 cat >>confdefs.h <<\_ACEOF
22091 #define HAVE_MMAP_ANONYMOUS
22092 _ACEOF
22093
22094 fi
22095
22096 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22097 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22098 if test "${ac_cv_type_signal+set}" = set; then
22099   echo $ECHO_N "(cached) $ECHO_C" >&6
22100 else
22101   cat >conftest.$ac_ext <<_ACEOF
22102 #line $LINENO "configure"
22103 /* confdefs.h.  */
22104 _ACEOF
22105 cat confdefs.h >>conftest.$ac_ext
22106 cat >>conftest.$ac_ext <<_ACEOF
22107 /* end confdefs.h.  */
22108 #include <sys/types.h>
22109 #include <signal.h>
22110 #ifdef signal
22111 # undef signal
22112 #endif
22113 #ifdef __cplusplus
22114 extern "C" void (*signal (int, void (*)(int)))(int);
22115 #else
22116 void (*signal ()) ();
22117 #endif
22118
22119 int
22120 main ()
22121 {
22122 int i;
22123   ;
22124   return 0;
22125 }
22126 _ACEOF
22127 rm -f conftest.$ac_objext
22128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22129   (eval $ac_compile) 2>&5
22130   ac_status=$?
22131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132   (exit $ac_status); } &&
22133          { ac_try='test -s conftest.$ac_objext'
22134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22135   (eval $ac_try) 2>&5
22136   ac_status=$?
22137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138   (exit $ac_status); }; }; then
22139   ac_cv_type_signal=void
22140 else
22141   echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22143
22144 ac_cv_type_signal=int
22145 fi
22146 rm -f conftest.$ac_objext conftest.$ac_ext
22147 fi
22148 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22149 echo "${ECHO_T}$ac_cv_type_signal" >&6
22150
22151 cat >>confdefs.h <<_ACEOF
22152 #define RETSIGTYPE $ac_cv_type_signal
22153 _ACEOF
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
22166 do
22167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22168 echo "$as_me:$LINENO: checking for $ac_func" >&5
22169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22170 if eval "test \"\${$as_ac_var+set}\" = set"; then
22171   echo $ECHO_N "(cached) $ECHO_C" >&6
22172 else
22173   cat >conftest.$ac_ext <<_ACEOF
22174 #line $LINENO "configure"
22175 /* confdefs.h.  */
22176 _ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h.  */
22180 /* System header to define __stub macros and hopefully few prototypes,
22181     which can conflict with char $ac_func (); below.
22182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22183     <limits.h> exists even on freestanding compilers.  */
22184 #ifdef __STDC__
22185 # include <limits.h>
22186 #else
22187 # include <assert.h>
22188 #endif
22189 /* Override any gcc2 internal prototype to avoid an error.  */
22190 #ifdef __cplusplus
22191 extern "C"
22192 {
22193 #endif
22194 /* We use char because int might match the return type of a gcc2
22195    builtin and then its argument prototype would still apply.  */
22196 char $ac_func ();
22197 /* The GNU C library defines this for functions which it implements
22198     to always fail with ENOSYS.  Some functions are actually named
22199     something starting with __ and the normal name is an alias.  */
22200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22201 choke me
22202 #else
22203 char (*f) () = $ac_func;
22204 #endif
22205 #ifdef __cplusplus
22206 }
22207 #endif
22208
22209 int
22210 main ()
22211 {
22212 return f != $ac_func;
22213   ;
22214   return 0;
22215 }
22216 _ACEOF
22217 rm -f conftest.$ac_objext conftest$ac_exeext
22218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22219   (eval $ac_link) 2>&5
22220   ac_status=$?
22221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222   (exit $ac_status); } &&
22223          { ac_try='test -s conftest$ac_exeext'
22224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22225   (eval $ac_try) 2>&5
22226   ac_status=$?
22227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228   (exit $ac_status); }; }; then
22229   eval "$as_ac_var=yes"
22230 else
22231   echo "$as_me: failed program was:" >&5
22232 sed 's/^/| /' conftest.$ac_ext >&5
22233
22234 eval "$as_ac_var=no"
22235 fi
22236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22237 fi
22238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22240 if test `eval echo '${'$as_ac_var'}'` = yes; then
22241   cat >>confdefs.h <<_ACEOF
22242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22243 _ACEOF
22244
22245 fi
22246 done
22247
22248 echo "$as_me:$LINENO: checking for mprotect" >&5
22249 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22250 if test "${ac_cv_func_mprotect+set}" = set; then
22251   echo $ECHO_N "(cached) $ECHO_C" >&6
22252 else
22253   cat >conftest.$ac_ext <<_ACEOF
22254 #line $LINENO "configure"
22255 /* confdefs.h.  */
22256 _ACEOF
22257 cat confdefs.h >>conftest.$ac_ext
22258 cat >>conftest.$ac_ext <<_ACEOF
22259 /* end confdefs.h.  */
22260 /* System header to define __stub macros and hopefully few prototypes,
22261     which can conflict with char mprotect (); below.
22262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22263     <limits.h> exists even on freestanding compilers.  */
22264 #ifdef __STDC__
22265 # include <limits.h>
22266 #else
22267 # include <assert.h>
22268 #endif
22269 /* Override any gcc2 internal prototype to avoid an error.  */
22270 #ifdef __cplusplus
22271 extern "C"
22272 {
22273 #endif
22274 /* We use char because int might match the return type of a gcc2
22275    builtin and then its argument prototype would still apply.  */
22276 char mprotect ();
22277 /* The GNU C library defines this for functions which it implements
22278     to always fail with ENOSYS.  Some functions are actually named
22279     something starting with __ and the normal name is an alias.  */
22280 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22281 choke me
22282 #else
22283 char (*f) () = mprotect;
22284 #endif
22285 #ifdef __cplusplus
22286 }
22287 #endif
22288
22289 int
22290 main ()
22291 {
22292 return f != mprotect;
22293   ;
22294   return 0;
22295 }
22296 _ACEOF
22297 rm -f conftest.$ac_objext conftest$ac_exeext
22298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22299   (eval $ac_link) 2>&5
22300   ac_status=$?
22301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302   (exit $ac_status); } &&
22303          { ac_try='test -s conftest$ac_exeext'
22304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305   (eval $ac_try) 2>&5
22306   ac_status=$?
22307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308   (exit $ac_status); }; }; then
22309   ac_cv_func_mprotect=yes
22310 else
22311   echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22313
22314 ac_cv_func_mprotect=no
22315 fi
22316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22317 fi
22318 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22319 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22320 if test $ac_cv_func_mprotect = yes; then
22321   :
22322 else
22323   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22324 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22325    { (exit 1); exit 1; }; }
22326 fi
22327
22328
22329
22330   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
22331 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
22332
22333
22334   ac_ext=c
22335 ac_cpp='$CPP $CPPFLAGS'
22336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22339
22340   oldcflags="$CFLAGS"
22341   CFLAGS="$CFLAGS -Wl,-R."
22342   cat >conftest.$ac_ext <<_ACEOF
22343 int main() { return 0; }
22344 _ACEOF
22345 rm -f conftest.$ac_objext conftest$ac_exeext
22346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22347   (eval $ac_link) 2>&5
22348   ac_status=$?
22349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350   (exit $ac_status); } &&
22351          { ac_try='test -s conftest$ac_exeext'
22352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22353   (eval $ac_try) 2>&5
22354   ac_status=$?
22355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356   (exit $ac_status); }; }; then
22357   ac_cv_link_use_r=yes
22358 else
22359   echo "$as_me: failed program was:" >&5
22360 sed 's/^/| /' conftest.$ac_ext >&5
22361
22362 ac_cv_link_use_r=no
22363 fi
22364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22365   CFLAGS="$oldcflags"
22366   ac_ext=c
22367 ac_cpp='$CPP $CPPFLAGS'
22368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22371
22372   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
22373 echo "${ECHO_T}$ac_cv_link_use_r" >&6
22374   if test "$ac_cv_link_use_r" = yes
22375   then
22376
22377 cat >>confdefs.h <<\_ACEOF
22378 #define HAVE_LINK_R 1
22379 _ACEOF
22380
22381   fi
22382
22383
22384 # Check whether --enable-optimized or --disable-optimized was given.
22385 if test "${enable_optimized+set}" = set; then
22386   enableval="$enable_optimized"
22387
22388 else
22389   enableval=no
22390 fi;
22391 if test ${enableval} = "no"
22392 then
22393         ENABLE_OPTIMIZED=
22394
22395 else
22396         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22397
22398 fi
22399
22400
22401
22402
22403  # Check whether --enable-spec95 or --disable-spec95 was given.
22404 if test "${enable_spec95+set}" = set; then
22405   enableval="$enable_spec95"
22406   checkresult=$enableval
22407 else
22408   checkresult=auto
22409 fi;
22410 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
22411 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
22412 case "$checkresult" in
22413 auto|yes)
22414     defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
22415         if test -d "$defaultdir"
22416         then
22417                 SPEC95_ROOT=$defaultdir
22418
22419                 USE_SPEC95=USE_SPEC95=1
22420
22421         checkresult="yes, found in $defaultdir"
22422     else
22423         checkresult=no
22424     fi
22425     ;;
22426 no)
22427
22428
22429     checkresult=no
22430     ;;
22431 *)  if test -d "$checkresult"
22432     then
22433         SPEC95_ROOT="$checkresult"
22434
22435         USE_SPEC95=USE_SPEC95=1
22436
22437         checkresult="yes, in $checkresult"
22438     else
22439
22440
22441         checkresult="no, not found in $checkresult"
22442     fi
22443     ;;
22444 esac
22445 echo "$as_me:$LINENO: result: $checkresult" >&5
22446 echo "${ECHO_T}$checkresult" >&6
22447
22448
22449
22450  # Check whether --enable-spec2000 or --disable-spec2000 was given.
22451 if test "${enable_spec2000+set}" = set; then
22452   enableval="$enable_spec2000"
22453   checkresult=$enableval
22454 else
22455   checkresult=auto
22456 fi;
22457 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
22458 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
22459 case "$checkresult" in
22460 auto|yes)
22461     defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22462         if test -d "$defaultdir"
22463         then
22464                 SPEC2000_ROOT=$defaultdir
22465
22466                 USE_SPEC2000=USE_SPEC2000=1
22467
22468         checkresult="yes, found in $defaultdir"
22469     else
22470         checkresult=no
22471     fi
22472     ;;
22473 no)
22474
22475
22476     checkresult=no
22477     ;;
22478 *)  if test -d "$checkresult"
22479     then
22480         SPEC2000_ROOT="$checkresult"
22481
22482         USE_SPEC2000=USE_SPEC2000=1
22483
22484         checkresult="yes, in $checkresult"
22485     else
22486
22487
22488         checkresult="no, not found in $checkresult"
22489     fi
22490     ;;
22491 esac
22492 echo "$as_me:$LINENO: result: $checkresult" >&5
22493 echo "${ECHO_T}$checkresult" >&6
22494
22495
22496
22497  # Check whether --enable-povray or --disable-povray was given.
22498 if test "${enable_povray+set}" = set; then
22499   enableval="$enable_povray"
22500   checkresult=$enableval
22501 else
22502   checkresult=auto
22503 fi;
22504 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
22505 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
22506 case "$checkresult" in
22507 auto|yes)
22508     defaultdir=/home/vadve/shared/benchmarks/povray31
22509         if test -d "$defaultdir"
22510         then
22511                 POVRAY_ROOT=$defaultdir
22512
22513                 USE_POVRAY=USE_POVRAY=1
22514
22515         checkresult="yes, found in $defaultdir"
22516     else
22517         checkresult=no
22518     fi
22519     ;;
22520 no)
22521
22522
22523     checkresult=no
22524     ;;
22525 *)  if test -d "$checkresult"
22526     then
22527         POVRAY_ROOT="$checkresult"
22528
22529         USE_POVRAY=USE_POVRAY=1
22530
22531         checkresult="yes, in $checkresult"
22532     else
22533
22534
22535         checkresult="no, not found in $checkresult"
22536     fi
22537     ;;
22538 esac
22539 echo "$as_me:$LINENO: result: $checkresult" >&5
22540 echo "${ECHO_T}$checkresult" >&6
22541
22542
22543
22544 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22545 if test "${enable_precompiled_bytecode+set}" = set; then
22546   enableval="$enable_precompiled_bytecode"
22547
22548 else
22549   enableval=no
22550 fi;
22551 if test ${enableval} = "no"
22552 then
22553         UPB=
22554
22555 else
22556         UPB=USE_PRECOMPILED_BYTECODE=1
22557
22558 fi
22559
22560 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22561 if test "${enable_llc_diffs+set}" = set; then
22562   enableval="$enable_llc_diffs"
22563
22564 else
22565   enableval=yes
22566 fi;
22567 if test ${enableval} = "no"
22568 then
22569         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22570
22571 else
22572         DISABLE_LLC_DIFFS=
22573
22574 fi
22575
22576 # Check whether --enable-jit or --disable-jit was given.
22577 if test "${enable_jit+set}" = set; then
22578   enableval="$enable_jit"
22579
22580 else
22581   enableval=default
22582 fi;
22583 if test ${enableval} = "no"
22584 then
22585         JIT=
22586
22587 else
22588         case $target in
22589                 *i*86*)
22590                         JIT=TARGET_HAS_JIT=1
22591
22592                         ;;
22593                 *sparc*)
22594                         JIT=TARGET_HAS_JIT=1
22595
22596                         ;;
22597                 *)
22598                         JIT=
22599
22600                         ;;
22601         esac
22602 fi
22603
22604
22605 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22606 if test "${with_llvmgccdir+set}" = set; then
22607   withval="$with_llvmgccdir"
22608   LLVMGCCDIR=$withval
22609
22610 fi;
22611 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22612 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22613 LLVM_GCC_CHECK=no
22614 if test -d "$LLVMGCCDIR"
22615 then
22616         if test -x "$LLVMGCCDIR/bin/gcc"
22617         then
22618                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22619         fi
22620 fi
22621 llvmgccwarn=no
22622 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22623 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22624 if test "$LLVM_GCC_CHECK" = "no"
22625 then
22626     llvmgccwarn=yes
22627 fi
22628 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22629 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22630 LLVM_GCC_SANE=no
22631 if test -x "$LLVM_GCC_CHECK"
22632 then
22633         cp /dev/null conftest.c
22634     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22635         if test $? -eq 0
22636         then
22637                 LLVM_GCC_SANE=yes
22638         fi
22639         rm conftest.c
22640         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
22641         LLVMCC1=$llvmcc1path
22642
22643         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
22644         LLVMCC1PLUS=$llvmcc1pluspath
22645
22646 fi
22647 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22648 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22649 if test "$LLVM_GCC_SANE" = "no"
22650 then
22651         llvmgccwarn=yes
22652 fi
22653
22654
22655 # Check whether --with-bcrepos or --without-bcrepos was given.
22656 if test "${with_bcrepos+set}" = set; then
22657   withval="$with_bcrepos"
22658   BCR=$withval
22659
22660 else
22661   BCR=/home/vadve/lattner/LLVMPrograms
22662
22663 fi;
22664
22665
22666 # Check whether --with-papi or --without-papi was given.
22667 if test "${with_papi+set}" = set; then
22668   withval="$with_papi"
22669   PAPIDIR=$withval
22670
22671 else
22672   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22673
22674 fi;
22675
22676 echo "$as_me:$LINENO: checking for shared library suffix" >&5
22677 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22678 eval "SHLIBEXT=$shrext"
22679 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22680 echo "${ECHO_T}$SHLIBEXT" >&6
22681 SHLIBEXT=$SHLIBEXT
22682
22683
22684 cat >>confdefs.h <<_ACEOF
22685 #define SHLIBEXT "$SHLIBEXT"
22686 _ACEOF
22687
22688
22689                                                             ac_config_files="$ac_config_files Makefile.config include/Support/DataTypes.h include/Support/ThreadSupport.h include/Support/hash_map include/Support/hash_set include/Support/iterator"
22690 cat >confcache <<\_ACEOF
22691 # This file is a shell script that caches the results of configure
22692 # tests run on this system so they can be shared between configure
22693 # scripts and configure runs, see configure's option --config-cache.
22694 # It is not useful on other systems.  If it contains results you don't
22695 # want to keep, you may remove or edit it.
22696 #
22697 # config.status only pays attention to the cache file if you give it
22698 # the --recheck option to rerun configure.
22699 #
22700 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22701 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22702 # following values.
22703
22704 _ACEOF
22705
22706 # The following way of writing the cache mishandles newlines in values,
22707 # but we know of no workaround that is simple, portable, and efficient.
22708 # So, don't put newlines in cache variables' values.
22709 # Ultrix sh set writes to stderr and can't be redirected directly,
22710 # and sets the high bit in the cache file unless we assign to the vars.
22711 {
22712   (set) 2>&1 |
22713     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22714     *ac_space=\ *)
22715       # `set' does not quote correctly, so add quotes (double-quote
22716       # substitution turns \\\\ into \\, and sed turns \\ into \).
22717       sed -n \
22718         "s/'/'\\\\''/g;
22719           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22720       ;;
22721     *)
22722       # `set' quotes correctly as required by POSIX, so do not add quotes.
22723       sed -n \
22724         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22725       ;;
22726     esac;
22727 } |
22728   sed '
22729      t clear
22730      : clear
22731      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22732      t end
22733      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22734      : end' >>confcache
22735 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22736   if test -w $cache_file; then
22737     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22738     cat confcache >$cache_file
22739   else
22740     echo "not updating unwritable cache $cache_file"
22741   fi
22742 fi
22743 rm -f confcache
22744
22745 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22746 # Let make expand exec_prefix.
22747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22748
22749 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22750 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22751 # trailing colons and then remove the whole line if VPATH becomes empty
22752 # (actually we leave an empty line to preserve line numbers).
22753 if test "x$srcdir" = x.; then
22754   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22755 s/:*\$(srcdir):*/:/;
22756 s/:*\${srcdir}:*/:/;
22757 s/:*@srcdir@:*/:/;
22758 s/^\([^=]*=[    ]*\):*/\1/;
22759 s/:*$//;
22760 s/^[^=]*=[      ]*$//;
22761 }'
22762 fi
22763
22764 DEFS=-DHAVE_CONFIG_H
22765
22766 ac_libobjs=
22767 ac_ltlibobjs=
22768 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22769   # 1. Remove the extension, and $U if already installed.
22770   ac_i=`echo "$ac_i" |
22771          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22772   # 2. Add them.
22773   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22774   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22775 done
22776 LIBOBJS=$ac_libobjs
22777
22778 LTLIBOBJS=$ac_ltlibobjs
22779
22780
22781
22782 : ${CONFIG_STATUS=./config.status}
22783 ac_clean_files_save=$ac_clean_files
22784 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22785 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22786 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22787 cat >$CONFIG_STATUS <<_ACEOF
22788 #! $SHELL
22789 # Generated by $as_me.
22790 # Run this file to recreate the current configuration.
22791 # Compiler output produced by configure, useful for debugging
22792 # configure, is in config.log if it exists.
22793
22794 debug=false
22795 ac_cs_recheck=false
22796 ac_cs_silent=false
22797 SHELL=\${CONFIG_SHELL-$SHELL}
22798 _ACEOF
22799
22800 cat >>$CONFIG_STATUS <<\_ACEOF
22801 ## --------------------- ##
22802 ## M4sh Initialization.  ##
22803 ## --------------------- ##
22804
22805 # Be Bourne compatible
22806 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22807   emulate sh
22808   NULLCMD=:
22809   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22810   # is contrary to our usage.  Disable this feature.
22811   alias -g '${1+"$@"}'='"$@"'
22812 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22813   set -o posix
22814 fi
22815
22816 # Support unset when possible.
22817 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22818   as_unset=unset
22819 else
22820   as_unset=false
22821 fi
22822
22823
22824 # Work around bugs in pre-3.0 UWIN ksh.
22825 $as_unset ENV MAIL MAILPATH
22826 PS1='$ '
22827 PS2='> '
22828 PS4='+ '
22829
22830 # NLS nuisances.
22831 for as_var in \
22832   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22833   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22834   LC_TELEPHONE LC_TIME
22835 do
22836   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22837     eval $as_var=C; export $as_var
22838   else
22839     $as_unset $as_var
22840   fi
22841 done
22842
22843 # Required to use basename.
22844 if expr a : '\(a\)' >/dev/null 2>&1; then
22845   as_expr=expr
22846 else
22847   as_expr=false
22848 fi
22849
22850 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22851   as_basename=basename
22852 else
22853   as_basename=false
22854 fi
22855
22856
22857 # Name of the executable.
22858 as_me=`$as_basename "$0" ||
22859 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22860          X"$0" : 'X\(//\)$' \| \
22861          X"$0" : 'X\(/\)$' \| \
22862          .     : '\(.\)' 2>/dev/null ||
22863 echo X/"$0" |
22864     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22865           /^X\/\(\/\/\)$/{ s//\1/; q; }
22866           /^X\/\(\/\).*/{ s//\1/; q; }
22867           s/.*/./; q'`
22868
22869
22870 # PATH needs CR, and LINENO needs CR and PATH.
22871 # Avoid depending upon Character Ranges.
22872 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22873 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22874 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22875 as_cr_digits='0123456789'
22876 as_cr_alnum=$as_cr_Letters$as_cr_digits
22877
22878 # The user is always right.
22879 if test "${PATH_SEPARATOR+set}" != set; then
22880   echo "#! /bin/sh" >conf$$.sh
22881   echo  "exit 0"   >>conf$$.sh
22882   chmod +x conf$$.sh
22883   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22884     PATH_SEPARATOR=';'
22885   else
22886     PATH_SEPARATOR=:
22887   fi
22888   rm -f conf$$.sh
22889 fi
22890
22891
22892   as_lineno_1=$LINENO
22893   as_lineno_2=$LINENO
22894   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22895   test "x$as_lineno_1" != "x$as_lineno_2" &&
22896   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22897   # Find who we are.  Look in the path if we contain no path at all
22898   # relative or not.
22899   case $0 in
22900     *[\\/]* ) as_myself=$0 ;;
22901     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22902 for as_dir in $PATH
22903 do
22904   IFS=$as_save_IFS
22905   test -z "$as_dir" && as_dir=.
22906   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22907 done
22908
22909        ;;
22910   esac
22911   # We did not find ourselves, most probably we were run as `sh COMMAND'
22912   # in which case we are not to be found in the path.
22913   if test "x$as_myself" = x; then
22914     as_myself=$0
22915   fi
22916   if test ! -f "$as_myself"; then
22917     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22918 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22919    { (exit 1); exit 1; }; }
22920   fi
22921   case $CONFIG_SHELL in
22922   '')
22923     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22924 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22925 do
22926   IFS=$as_save_IFS
22927   test -z "$as_dir" && as_dir=.
22928   for as_base in sh bash ksh sh5; do
22929          case $as_dir in
22930          /*)
22931            if ("$as_dir/$as_base" -c '
22932   as_lineno_1=$LINENO
22933   as_lineno_2=$LINENO
22934   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22935   test "x$as_lineno_1" != "x$as_lineno_2" &&
22936   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22937              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22938              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22939              CONFIG_SHELL=$as_dir/$as_base
22940              export CONFIG_SHELL
22941              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22942            fi;;
22943          esac
22944        done
22945 done
22946 ;;
22947   esac
22948
22949   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22950   # uniformly replaced by the line number.  The first 'sed' inserts a
22951   # line-number line before each line; the second 'sed' does the real
22952   # work.  The second script uses 'N' to pair each line-number line
22953   # with the numbered line, and appends trailing '-' during
22954   # substitution so that $LINENO is not a special case at line end.
22955   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22956   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22957   sed '=' <$as_myself |
22958     sed '
22959       N
22960       s,$,-,
22961       : loop
22962       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22963       t loop
22964       s,-$,,
22965       s,^['$as_cr_digits']*\n,,
22966     ' >$as_me.lineno &&
22967   chmod +x $as_me.lineno ||
22968     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22969 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22970    { (exit 1); exit 1; }; }
22971
22972   # Don't try to exec as it changes $[0], causing all sort of problems
22973   # (the dirname of $[0] is not the place where we might find the
22974   # original and so on.  Autoconf is especially sensible to this).
22975   . ./$as_me.lineno
22976   # Exit status is that of the last command.
22977   exit
22978 }
22979
22980
22981 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22982   *c*,-n*) ECHO_N= ECHO_C='
22983 ' ECHO_T='      ' ;;
22984   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22985   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22986 esac
22987
22988 if expr a : '\(a\)' >/dev/null 2>&1; then
22989   as_expr=expr
22990 else
22991   as_expr=false
22992 fi
22993
22994 rm -f conf$$ conf$$.exe conf$$.file
22995 echo >conf$$.file
22996 if ln -s conf$$.file conf$$ 2>/dev/null; then
22997   # We could just check for DJGPP; but this test a) works b) is more generic
22998   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22999   if test -f conf$$.exe; then
23000     # Don't use ln at all; we don't have any links
23001     as_ln_s='cp -p'
23002   else
23003     as_ln_s='ln -s'
23004   fi
23005 elif ln conf$$.file conf$$ 2>/dev/null; then
23006   as_ln_s=ln
23007 else
23008   as_ln_s='cp -p'
23009 fi
23010 rm -f conf$$ conf$$.exe conf$$.file
23011
23012 if mkdir -p . 2>/dev/null; then
23013   as_mkdir_p=:
23014 else
23015   as_mkdir_p=false
23016 fi
23017
23018 as_executable_p="test -f"
23019
23020 # Sed expression to map a string onto a valid CPP name.
23021 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23022
23023 # Sed expression to map a string onto a valid variable name.
23024 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23025
23026
23027 # IFS
23028 # We need space, tab and new line, in precisely that order.
23029 as_nl='
23030 '
23031 IFS="   $as_nl"
23032
23033 # CDPATH.
23034 $as_unset CDPATH
23035
23036 exec 6>&1
23037
23038 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23039 # report actual input values of CONFIG_FILES etc. instead of their
23040 # values after options handling.  Logging --version etc. is OK.
23041 exec 5>>config.log
23042 {
23043   echo
23044   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23045 ## Running $as_me. ##
23046 _ASBOX
23047 } >&5
23048 cat >&5 <<_CSEOF
23049
23050 This file was extended by [LLVM] $as_me [1.3], which was
23051 generated by GNU Autoconf 2.57.  Invocation command line was
23052
23053   CONFIG_FILES    = $CONFIG_FILES
23054   CONFIG_HEADERS  = $CONFIG_HEADERS
23055   CONFIG_LINKS    = $CONFIG_LINKS
23056   CONFIG_COMMANDS = $CONFIG_COMMANDS
23057   $ $0 $@
23058
23059 _CSEOF
23060 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23061 echo >&5
23062 _ACEOF
23063
23064 # Files that config.status was made for.
23065 if test -n "$ac_config_files"; then
23066   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23067 fi
23068
23069 if test -n "$ac_config_headers"; then
23070   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23071 fi
23072
23073 if test -n "$ac_config_links"; then
23074   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23075 fi
23076
23077 if test -n "$ac_config_commands"; then
23078   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23079 fi
23080
23081 cat >>$CONFIG_STATUS <<\_ACEOF
23082
23083 ac_cs_usage="\
23084 \`$as_me' instantiates files from templates according to the
23085 current configuration.
23086
23087 Usage: $0 [OPTIONS] [FILE]...
23088
23089   -h, --help       print this help, then exit
23090   -V, --version    print version number, then exit
23091   -q, --quiet      do not print progress messages
23092   -d, --debug      don't remove temporary files
23093       --recheck    update $as_me by reconfiguring in the same conditions
23094   --file=FILE[:TEMPLATE]
23095                    instantiate the configuration file FILE
23096   --header=FILE[:TEMPLATE]
23097                    instantiate the configuration header FILE
23098
23099 Configuration files:
23100 $config_files
23101
23102 Configuration headers:
23103 $config_headers
23104
23105 Configuration commands:
23106 $config_commands
23107
23108 Report bugs to <bug-autoconf@gnu.org>."
23109 _ACEOF
23110
23111 cat >>$CONFIG_STATUS <<_ACEOF
23112 ac_cs_version="\\
23113 [LLVM] config.status [1.3]
23114 configured by $0, generated by GNU Autoconf 2.57,
23115   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23116
23117 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23118 Free Software Foundation, Inc.
23119 This config.status script is free software; the Free Software Foundation
23120 gives unlimited permission to copy, distribute and modify it."
23121 srcdir=$srcdir
23122 INSTALL="$INSTALL"
23123 _ACEOF
23124
23125 cat >>$CONFIG_STATUS <<\_ACEOF
23126 # If no file are specified by the user, then we need to provide default
23127 # value.  By we need to know if files were specified by the user.
23128 ac_need_defaults=:
23129 while test $# != 0
23130 do
23131   case $1 in
23132   --*=*)
23133     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23134     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23135     ac_shift=:
23136     ;;
23137   -*)
23138     ac_option=$1
23139     ac_optarg=$2
23140     ac_shift=shift
23141     ;;
23142   *) # This is not an option, so the user has probably given explicit
23143      # arguments.
23144      ac_option=$1
23145      ac_need_defaults=false;;
23146   esac
23147
23148   case $ac_option in
23149   # Handling of the options.
23150 _ACEOF
23151 cat >>$CONFIG_STATUS <<\_ACEOF
23152   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23153     ac_cs_recheck=: ;;
23154   --version | --vers* | -V )
23155     echo "$ac_cs_version"; exit 0 ;;
23156   --he | --h)
23157     # Conflict between --help and --header
23158     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23159 Try \`$0 --help' for more information." >&5
23160 echo "$as_me: error: ambiguous option: $1
23161 Try \`$0 --help' for more information." >&2;}
23162    { (exit 1); exit 1; }; };;
23163   --help | --hel | -h )
23164     echo "$ac_cs_usage"; exit 0 ;;
23165   --debug | --d* | -d )
23166     debug=: ;;
23167   --file | --fil | --fi | --f )
23168     $ac_shift
23169     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23170     ac_need_defaults=false;;
23171   --header | --heade | --head | --hea )
23172     $ac_shift
23173     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23174     ac_need_defaults=false;;
23175   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23176   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23177     ac_cs_silent=: ;;
23178
23179   # This is an error.
23180   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23181 Try \`$0 --help' for more information." >&5
23182 echo "$as_me: error: unrecognized option: $1
23183 Try \`$0 --help' for more information." >&2;}
23184    { (exit 1); exit 1; }; } ;;
23185
23186   *) ac_config_targets="$ac_config_targets $1" ;;
23187
23188   esac
23189   shift
23190 done
23191
23192 ac_configure_extra_args=
23193
23194 if $ac_cs_silent; then
23195   exec 6>/dev/null
23196   ac_configure_extra_args="$ac_configure_extra_args --silent"
23197 fi
23198
23199 _ACEOF
23200 cat >>$CONFIG_STATUS <<_ACEOF
23201 if \$ac_cs_recheck; then
23202   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23203   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23204 fi
23205
23206 _ACEOF
23207
23208 cat >>$CONFIG_STATUS <<_ACEOF
23209 #
23210 # INIT-COMMANDS section.
23211 #
23212
23213 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23214 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23215 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23216 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23217 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23218 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23219 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23220 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23221 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23222 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23223 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
23224 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23225 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23226 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23227 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23228 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23229 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23230 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23231 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23232 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23233 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23234 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23235 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23236 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
23237 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23238 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23239 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23240 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
23241 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
23242 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23243 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23244 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23245 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23246 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23247 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23248 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23249 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23250 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23251 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23252 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23253 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23254 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23255 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23256 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
23257 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23258 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23259 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23260 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23261 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23262 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23263
23264 _ACEOF
23265
23266
23267
23268 cat >>$CONFIG_STATUS <<\_ACEOF
23269 for ac_config_target in $ac_config_targets
23270 do
23271   case "$ac_config_target" in
23272   # Handling of arguments.
23273   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23274   "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
23275   "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
23276   "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
23277   "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
23278   "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
23279   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23280   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23281   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23282   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23283   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23284   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23285   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23286   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23287   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23288   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23289   "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
23290   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23291   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23292   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23293   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23294   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23295   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23296   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23297   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23298   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23299   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23300   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23301   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23302   "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
23303   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23304   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23305   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23306   "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
23307   "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
23308   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23309   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23310   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23311   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
23312   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
23313   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
23314   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
23315   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
23316   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
23317   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
23318   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
23319   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
23320   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
23321   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
23322   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
23323   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23324   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23325   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23326   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23327   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23328   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23329   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23330   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23331 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23332    { (exit 1); exit 1; }; };;
23333   esac
23334 done
23335
23336 # If the user did not use the arguments to specify the items to instantiate,
23337 # then the envvar interface is used.  Set only those that are not.
23338 # We use the long form for the default assignment because of an extremely
23339 # bizarre bug on SunOS 4.1.3.
23340 if $ac_need_defaults; then
23341   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23342   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23343   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23344 fi
23345
23346 # Have a temporary directory for convenience.  Make it in the build tree
23347 # simply because there is no reason to put it here, and in addition,
23348 # creating and moving files from /tmp can sometimes cause problems.
23349 # Create a temporary directory, and hook for its removal unless debugging.
23350 $debug ||
23351 {
23352   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23353   trap '{ (exit 1); exit 1; }' 1 2 13 15
23354 }
23355
23356 # Create a (secure) tmp directory for tmp files.
23357
23358 {
23359   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23360   test -n "$tmp" && test -d "$tmp"
23361 }  ||
23362 {
23363   tmp=./confstat$$-$RANDOM
23364   (umask 077 && mkdir $tmp)
23365 } ||
23366 {
23367    echo "$me: cannot create a temporary directory in ." >&2
23368    { (exit 1); exit 1; }
23369 }
23370
23371 _ACEOF
23372
23373 cat >>$CONFIG_STATUS <<_ACEOF
23374
23375 #
23376 # CONFIG_FILES section.
23377 #
23378
23379 # No need to generate the scripts if there are no CONFIG_FILES.
23380 # This happens for instance when ./config.status config.h
23381 if test -n "\$CONFIG_FILES"; then
23382   # Protect against being on the right side of a sed subst in config.status.
23383   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23384    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23385 s,@SHELL@,$SHELL,;t t
23386 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23387 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23388 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23389 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23390 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23391 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23392 s,@exec_prefix@,$exec_prefix,;t t
23393 s,@prefix@,$prefix,;t t
23394 s,@program_transform_name@,$program_transform_name,;t t
23395 s,@bindir@,$bindir,;t t
23396 s,@sbindir@,$sbindir,;t t
23397 s,@libexecdir@,$libexecdir,;t t
23398 s,@datadir@,$datadir,;t t
23399 s,@sysconfdir@,$sysconfdir,;t t
23400 s,@sharedstatedir@,$sharedstatedir,;t t
23401 s,@localstatedir@,$localstatedir,;t t
23402 s,@libdir@,$libdir,;t t
23403 s,@includedir@,$includedir,;t t
23404 s,@oldincludedir@,$oldincludedir,;t t
23405 s,@infodir@,$infodir,;t t
23406 s,@mandir@,$mandir,;t t
23407 s,@build_alias@,$build_alias,;t t
23408 s,@host_alias@,$host_alias,;t t
23409 s,@target_alias@,$target_alias,;t t
23410 s,@DEFS@,$DEFS,;t t
23411 s,@ECHO_C@,$ECHO_C,;t t
23412 s,@ECHO_N@,$ECHO_N,;t t
23413 s,@ECHO_T@,$ECHO_T,;t t
23414 s,@LIBS@,$LIBS,;t t
23415 s,@subdirs@,$subdirs,;t t
23416 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23417 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23418 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23419 s,@build@,$build,;t t
23420 s,@build_cpu@,$build_cpu,;t t
23421 s,@build_vendor@,$build_vendor,;t t
23422 s,@build_os@,$build_os,;t t
23423 s,@host@,$host,;t t
23424 s,@host_cpu@,$host_cpu,;t t
23425 s,@host_vendor@,$host_vendor,;t t
23426 s,@host_os@,$host_os,;t t
23427 s,@target@,$target,;t t
23428 s,@target_cpu@,$target_cpu,;t t
23429 s,@target_vendor@,$target_vendor,;t t
23430 s,@target_os@,$target_os,;t t
23431 s,@OS@,$OS,;t t
23432 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23433 s,@ARCH@,$ARCH,;t t
23434 s,@CXX@,$CXX,;t t
23435 s,@CXXFLAGS@,$CXXFLAGS,;t t
23436 s,@LDFLAGS@,$LDFLAGS,;t t
23437 s,@CPPFLAGS@,$CPPFLAGS,;t t
23438 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23439 s,@EXEEXT@,$EXEEXT,;t t
23440 s,@OBJEXT@,$OBJEXT,;t t
23441 s,@CC@,$CC,;t t
23442 s,@CFLAGS@,$CFLAGS,;t t
23443 s,@ac_ct_CC@,$ac_ct_CC,;t t
23444 s,@CPP@,$CPP,;t t
23445 s,@ifGNUmake@,$ifGNUmake,;t t
23446 s,@LEX@,$LEX,;t t
23447 s,@LEXLIB@,$LEXLIB,;t t
23448 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23449 s,@YACC@,$YACC,;t t
23450 s,@BISON@,$BISON,;t t
23451 s,@EGREP@,$EGREP,;t t
23452 s,@LN_S@,$LN_S,;t t
23453 s,@ECHO@,$ECHO,;t t
23454 s,@AR@,$AR,;t t
23455 s,@ac_ct_AR@,$ac_ct_AR,;t t
23456 s,@RANLIB@,$RANLIB,;t t
23457 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23458 s,@STRIP@,$STRIP,;t t
23459 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23460 s,@CXXCPP@,$CXXCPP,;t t
23461 s,@F77@,$F77,;t t
23462 s,@FFLAGS@,$FFLAGS,;t t
23463 s,@ac_ct_F77@,$ac_ct_F77,;t t
23464 s,@LIBTOOL@,$LIBTOOL,;t t
23465 s,@DOT@,$DOT,;t t
23466 s,@ETAGS@,$ETAGS,;t t
23467 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
23468 s,@PYTHON@,$PYTHON,;t t
23469 s,@QMTEST@,$QMTEST,;t t
23470 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
23471 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
23472 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
23473 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
23474 s,@ENDIAN@,$ENDIAN,;t t
23475 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
23476 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
23477 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
23478 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
23479 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
23480 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
23481 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
23482 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
23483 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
23484 s,@ALLOCA@,$ALLOCA,;t t
23485 s,@MMAP_FILE@,$MMAP_FILE,;t t
23486 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23487 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
23488 s,@USE_SPEC95@,$USE_SPEC95,;t t
23489 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
23490 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
23491 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
23492 s,@USE_POVRAY@,$USE_POVRAY,;t t
23493 s,@UPB@,$UPB,;t t
23494 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23495 s,@JIT@,$JIT,;t t
23496 s,@LLVMCC1@,$LLVMCC1,;t t
23497 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
23498 s,@BCR@,$BCR,;t t
23499 s,@PAPIDIR@,$PAPIDIR,;t t
23500 s,@SHLIBEXT@,$SHLIBEXT,;t t
23501 s,@LIBOBJS@,$LIBOBJS,;t t
23502 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23503 CEOF
23504
23505 _ACEOF
23506
23507   cat >>$CONFIG_STATUS <<\_ACEOF
23508   # Split the substitutions into bite-sized pieces for seds with
23509   # small command number limits, like on Digital OSF/1 and HP-UX.
23510   ac_max_sed_lines=48
23511   ac_sed_frag=1 # Number of current file.
23512   ac_beg=1 # First line for current file.
23513   ac_end=$ac_max_sed_lines # Line after last line for current file.
23514   ac_more_lines=:
23515   ac_sed_cmds=
23516   while $ac_more_lines; do
23517     if test $ac_beg -gt 1; then
23518       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23519     else
23520       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23521     fi
23522     if test ! -s $tmp/subs.frag; then
23523       ac_more_lines=false
23524     else
23525       # The purpose of the label and of the branching condition is to
23526       # speed up the sed processing (if there are no `@' at all, there
23527       # is no need to browse any of the substitutions).
23528       # These are the two extra sed commands mentioned above.
23529       (echo ':t
23530   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23531       if test -z "$ac_sed_cmds"; then
23532         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23533       else
23534         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23535       fi
23536       ac_sed_frag=`expr $ac_sed_frag + 1`
23537       ac_beg=$ac_end
23538       ac_end=`expr $ac_end + $ac_max_sed_lines`
23539     fi
23540   done
23541   if test -z "$ac_sed_cmds"; then
23542     ac_sed_cmds=cat
23543   fi
23544 fi # test -n "$CONFIG_FILES"
23545
23546 _ACEOF
23547 cat >>$CONFIG_STATUS <<\_ACEOF
23548 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23549   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23550   case $ac_file in
23551   - | *:- | *:-:* ) # input from stdin
23552         cat >$tmp/stdin
23553         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23554         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23555   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23556         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23557   * )   ac_file_in=$ac_file.in ;;
23558   esac
23559
23560   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23561   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23562 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23563          X"$ac_file" : 'X\(//\)[^/]' \| \
23564          X"$ac_file" : 'X\(//\)$' \| \
23565          X"$ac_file" : 'X\(/\)' \| \
23566          .     : '\(.\)' 2>/dev/null ||
23567 echo X"$ac_file" |
23568     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23569           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23570           /^X\(\/\/\)$/{ s//\1/; q; }
23571           /^X\(\/\).*/{ s//\1/; q; }
23572           s/.*/./; q'`
23573   { if $as_mkdir_p; then
23574     mkdir -p "$ac_dir"
23575   else
23576     as_dir="$ac_dir"
23577     as_dirs=
23578     while test ! -d "$as_dir"; do
23579       as_dirs="$as_dir $as_dirs"
23580       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23581 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23582          X"$as_dir" : 'X\(//\)[^/]' \| \
23583          X"$as_dir" : 'X\(//\)$' \| \
23584          X"$as_dir" : 'X\(/\)' \| \
23585          .     : '\(.\)' 2>/dev/null ||
23586 echo X"$as_dir" |
23587     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23588           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23589           /^X\(\/\/\)$/{ s//\1/; q; }
23590           /^X\(\/\).*/{ s//\1/; q; }
23591           s/.*/./; q'`
23592     done
23593     test ! -n "$as_dirs" || mkdir $as_dirs
23594   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23595 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23596    { (exit 1); exit 1; }; }; }
23597
23598   ac_builddir=.
23599
23600 if test "$ac_dir" != .; then
23601   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23602   # A "../" for each directory in $ac_dir_suffix.
23603   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23604 else
23605   ac_dir_suffix= ac_top_builddir=
23606 fi
23607
23608 case $srcdir in
23609   .)  # No --srcdir option.  We are building in place.
23610     ac_srcdir=.
23611     if test -z "$ac_top_builddir"; then
23612        ac_top_srcdir=.
23613     else
23614        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23615     fi ;;
23616   [\\/]* | ?:[\\/]* )  # Absolute path.
23617     ac_srcdir=$srcdir$ac_dir_suffix;
23618     ac_top_srcdir=$srcdir ;;
23619   *) # Relative path.
23620     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23621     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23622 esac
23623 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23624 # absolute.
23625 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23626 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23627 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23628 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23629
23630
23631   case $INSTALL in
23632   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23633   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23634   esac
23635
23636   if test x"$ac_file" != x-; then
23637     { echo "$as_me:$LINENO: creating $ac_file" >&5
23638 echo "$as_me: creating $ac_file" >&6;}
23639     rm -f "$ac_file"
23640   fi
23641   # Let's still pretend it is `configure' which instantiates (i.e., don't
23642   # use $as_me), people would be surprised to read:
23643   #    /* config.h.  Generated by config.status.  */
23644   if test x"$ac_file" = x-; then
23645     configure_input=
23646   else
23647     configure_input="$ac_file.  "
23648   fi
23649   configure_input=$configure_input"Generated from `echo $ac_file_in |
23650                                      sed 's,.*/,,'` by configure."
23651
23652   # First look for the input files in the build tree, otherwise in the
23653   # src tree.
23654   ac_file_inputs=`IFS=:
23655     for f in $ac_file_in; do
23656       case $f in
23657       -) echo $tmp/stdin ;;
23658       [\\/$]*)
23659          # Absolute (can't be DOS-style, as IFS=:)
23660          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23661 echo "$as_me: error: cannot find input file: $f" >&2;}
23662    { (exit 1); exit 1; }; }
23663          echo $f;;
23664       *) # Relative
23665          if test -f "$f"; then
23666            # Build tree
23667            echo $f
23668          elif test -f "$srcdir/$f"; then
23669            # Source tree
23670            echo $srcdir/$f
23671          else
23672            # /dev/null tree
23673            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23674 echo "$as_me: error: cannot find input file: $f" >&2;}
23675    { (exit 1); exit 1; }; }
23676          fi;;
23677       esac
23678     done` || { (exit 1); exit 1; }
23679 _ACEOF
23680 cat >>$CONFIG_STATUS <<_ACEOF
23681   sed "$ac_vpsub
23682 $extrasub
23683 _ACEOF
23684 cat >>$CONFIG_STATUS <<\_ACEOF
23685 :t
23686 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23687 s,@configure_input@,$configure_input,;t t
23688 s,@srcdir@,$ac_srcdir,;t t
23689 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23690 s,@top_srcdir@,$ac_top_srcdir,;t t
23691 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23692 s,@builddir@,$ac_builddir,;t t
23693 s,@abs_builddir@,$ac_abs_builddir,;t t
23694 s,@top_builddir@,$ac_top_builddir,;t t
23695 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23696 s,@INSTALL@,$ac_INSTALL,;t t
23697 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23698   rm -f $tmp/stdin
23699   if test x"$ac_file" != x-; then
23700     mv $tmp/out $ac_file
23701   else
23702     cat $tmp/out
23703     rm -f $tmp/out
23704   fi
23705
23706 done
23707 _ACEOF
23708 cat >>$CONFIG_STATUS <<\_ACEOF
23709
23710 #
23711 # CONFIG_HEADER section.
23712 #
23713
23714 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23715 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23716 #
23717 # ac_d sets the value in "#define NAME VALUE" lines.
23718 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
23719 ac_dB='[        ].*$,\1#\2'
23720 ac_dC=' '
23721 ac_dD=',;t'
23722 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23723 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23724 ac_uB='$,\1#\2define\3'
23725 ac_uC=' '
23726 ac_uD=',;t'
23727
23728 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23729   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23730   case $ac_file in
23731   - | *:- | *:-:* ) # input from stdin
23732         cat >$tmp/stdin
23733         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23734         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23735   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23736         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23737   * )   ac_file_in=$ac_file.in ;;
23738   esac
23739
23740   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23741 echo "$as_me: creating $ac_file" >&6;}
23742
23743   # First look for the input files in the build tree, otherwise in the
23744   # src tree.
23745   ac_file_inputs=`IFS=:
23746     for f in $ac_file_in; do
23747       case $f in
23748       -) echo $tmp/stdin ;;
23749       [\\/$]*)
23750          # Absolute (can't be DOS-style, as IFS=:)
23751          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23752 echo "$as_me: error: cannot find input file: $f" >&2;}
23753    { (exit 1); exit 1; }; }
23754          echo $f;;
23755       *) # Relative
23756          if test -f "$f"; then
23757            # Build tree
23758            echo $f
23759          elif test -f "$srcdir/$f"; then
23760            # Source tree
23761            echo $srcdir/$f
23762          else
23763            # /dev/null tree
23764            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23765 echo "$as_me: error: cannot find input file: $f" >&2;}
23766    { (exit 1); exit 1; }; }
23767          fi;;
23768       esac
23769     done` || { (exit 1); exit 1; }
23770   # Remove the trailing spaces.
23771   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
23772
23773 _ACEOF
23774
23775 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23776 # `conftest.undefs', that substitutes the proper values into
23777 # config.h.in to produce config.h.  The first handles `#define'
23778 # templates, and the second `#undef' templates.
23779 # And first: Protect against being on the right side of a sed subst in
23780 # config.status.  Protect against being in an unquoted here document
23781 # in config.status.
23782 rm -f conftest.defines conftest.undefs
23783 # Using a here document instead of a string reduces the quoting nightmare.
23784 # Putting comments in sed scripts is not portable.
23785 #
23786 # `end' is used to avoid that the second main sed command (meant for
23787 # 0-ary CPP macros) applies to n-ary macro definitions.
23788 # See the Autoconf documentation for `clear'.
23789 cat >confdef2sed.sed <<\_ACEOF
23790 s/[\\&,]/\\&/g
23791 s,[\\$`],\\&,g
23792 t clear
23793 : clear
23794 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23795 t end
23796 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23797 : end
23798 _ACEOF
23799 # If some macros were called several times there might be several times
23800 # the same #defines, which is useless.  Nevertheless, we may not want to
23801 # sort them, since we want the *last* AC-DEFINE to be honored.
23802 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23803 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23804 rm -f confdef2sed.sed
23805
23806 # This sed command replaces #undef with comments.  This is necessary, for
23807 # example, in the case of _POSIX_SOURCE, which is predefined and required
23808 # on some systems where configure will not decide to define it.
23809 cat >>conftest.undefs <<\_ACEOF
23810 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23811 _ACEOF
23812
23813 # Break up conftest.defines because some shells have a limit on the size
23814 # of here documents, and old seds have small limits too (100 cmds).
23815 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23816 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23817 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23818 echo '  :' >>$CONFIG_STATUS
23819 rm -f conftest.tail
23820 while grep . conftest.defines >/dev/null
23821 do
23822   # Write a limited-size here document to $tmp/defines.sed.
23823   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23824   # Speed up: don't consider the non `#define' lines.
23825   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
23826   # Work around the forget-to-reset-the-flag bug.
23827   echo 't clr' >>$CONFIG_STATUS
23828   echo ': clr' >>$CONFIG_STATUS
23829   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23830   echo 'CEOF
23831   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23832   rm -f $tmp/in
23833   mv $tmp/out $tmp/in
23834 ' >>$CONFIG_STATUS
23835   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23836   rm -f conftest.defines
23837   mv conftest.tail conftest.defines
23838 done
23839 rm -f conftest.defines
23840 echo '  fi # grep' >>$CONFIG_STATUS
23841 echo >>$CONFIG_STATUS
23842
23843 # Break up conftest.undefs because some shells have a limit on the size
23844 # of here documents, and old seds have small limits too (100 cmds).
23845 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23846 rm -f conftest.tail
23847 while grep . conftest.undefs >/dev/null
23848 do
23849   # Write a limited-size here document to $tmp/undefs.sed.
23850   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23851   # Speed up: don't consider the non `#undef'
23852   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23853   # Work around the forget-to-reset-the-flag bug.
23854   echo 't clr' >>$CONFIG_STATUS
23855   echo ': clr' >>$CONFIG_STATUS
23856   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23857   echo 'CEOF
23858   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23859   rm -f $tmp/in
23860   mv $tmp/out $tmp/in
23861 ' >>$CONFIG_STATUS
23862   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23863   rm -f conftest.undefs
23864   mv conftest.tail conftest.undefs
23865 done
23866 rm -f conftest.undefs
23867
23868 cat >>$CONFIG_STATUS <<\_ACEOF
23869   # Let's still pretend it is `configure' which instantiates (i.e., don't
23870   # use $as_me), people would be surprised to read:
23871   #    /* config.h.  Generated by config.status.  */
23872   if test x"$ac_file" = x-; then
23873     echo "/* Generated by configure.  */" >$tmp/config.h
23874   else
23875     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23876   fi
23877   cat $tmp/in >>$tmp/config.h
23878   rm -f $tmp/in
23879   if test x"$ac_file" != x-; then
23880     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23881       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23882 echo "$as_me: $ac_file is unchanged" >&6;}
23883     else
23884       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23886          X"$ac_file" : 'X\(//\)[^/]' \| \
23887          X"$ac_file" : 'X\(//\)$' \| \
23888          X"$ac_file" : 'X\(/\)' \| \
23889          .     : '\(.\)' 2>/dev/null ||
23890 echo X"$ac_file" |
23891     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23892           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23893           /^X\(\/\/\)$/{ s//\1/; q; }
23894           /^X\(\/\).*/{ s//\1/; q; }
23895           s/.*/./; q'`
23896       { if $as_mkdir_p; then
23897     mkdir -p "$ac_dir"
23898   else
23899     as_dir="$ac_dir"
23900     as_dirs=
23901     while test ! -d "$as_dir"; do
23902       as_dirs="$as_dir $as_dirs"
23903       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23904 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23905          X"$as_dir" : 'X\(//\)[^/]' \| \
23906          X"$as_dir" : 'X\(//\)$' \| \
23907          X"$as_dir" : 'X\(/\)' \| \
23908          .     : '\(.\)' 2>/dev/null ||
23909 echo X"$as_dir" |
23910     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23911           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23912           /^X\(\/\/\)$/{ s//\1/; q; }
23913           /^X\(\/\).*/{ s//\1/; q; }
23914           s/.*/./; q'`
23915     done
23916     test ! -n "$as_dirs" || mkdir $as_dirs
23917   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23918 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23919    { (exit 1); exit 1; }; }; }
23920
23921       rm -f $ac_file
23922       mv $tmp/config.h $ac_file
23923     fi
23924   else
23925     cat $tmp/config.h
23926     rm -f $tmp/config.h
23927   fi
23928 done
23929 _ACEOF
23930 cat >>$CONFIG_STATUS <<\_ACEOF
23931
23932 #
23933 # CONFIG_COMMANDS section.
23934 #
23935 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23936   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23937   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23938   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23939 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23940          X"$ac_dest" : 'X\(//\)[^/]' \| \
23941          X"$ac_dest" : 'X\(//\)$' \| \
23942          X"$ac_dest" : 'X\(/\)' \| \
23943          .     : '\(.\)' 2>/dev/null ||
23944 echo X"$ac_dest" |
23945     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23946           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23947           /^X\(\/\/\)$/{ s//\1/; q; }
23948           /^X\(\/\).*/{ s//\1/; q; }
23949           s/.*/./; q'`
23950   ac_builddir=.
23951
23952 if test "$ac_dir" != .; then
23953   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23954   # A "../" for each directory in $ac_dir_suffix.
23955   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23956 else
23957   ac_dir_suffix= ac_top_builddir=
23958 fi
23959
23960 case $srcdir in
23961   .)  # No --srcdir option.  We are building in place.
23962     ac_srcdir=.
23963     if test -z "$ac_top_builddir"; then
23964        ac_top_srcdir=.
23965     else
23966        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23967     fi ;;
23968   [\\/]* | ?:[\\/]* )  # Absolute path.
23969     ac_srcdir=$srcdir$ac_dir_suffix;
23970     ac_top_srcdir=$srcdir ;;
23971   *) # Relative path.
23972     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23973     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23974 esac
23975 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23976 # absolute.
23977 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23978 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23979 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23980 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23981
23982
23983   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23984 echo "$as_me: executing $ac_dest commands" >&6;}
23985   case $ac_dest in
23986     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23987     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
23988     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
23989     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23990     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23991     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23992     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23993     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
23994     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23995     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23996     test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
23997     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23998     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
23999     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24000     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24001     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24002     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24003     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24004     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24005     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24006     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24007     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24008     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24009     test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
24010     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24011     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24012     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 ;;
24013     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 ;;
24014     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 ;;
24015     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24016     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24017     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 ;;
24018     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 ;;
24019     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 ;;
24020     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 ;;
24021     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 ;;
24022     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 ;;
24023     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 ;;
24024     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 ;;
24025     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 ;;
24026     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 ;;
24027     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 ;;
24028     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 ;;
24029     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 ;;
24030     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24031     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24032     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 ;;
24033     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24034     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24035     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24036   esac
24037 done
24038 _ACEOF
24039
24040 cat >>$CONFIG_STATUS <<\_ACEOF
24041
24042 { (exit 0); exit 0; }
24043 _ACEOF
24044 chmod +x $CONFIG_STATUS
24045 ac_clean_files=$ac_clean_files_save
24046
24047
24048 # configure is writing to config.log, and then calls config.status.
24049 # config.status does its own redirection, appending to config.log.
24050 # Unfortunately, on DOS this fails, as config.log is still kept open
24051 # by configure, so config.status won't be able to write to it; its
24052 # output is simply discarded.  So we exec the FD to /dev/null,
24053 # effectively closing config.log, so it can be properly (re)opened and
24054 # appended to by config.status.  When coming back to configure, we
24055 # need to make the FD available again.
24056 if test "$no_create" != yes; then
24057   ac_cs_success=:
24058   ac_config_status_args=
24059   test "$silent" = yes &&
24060     ac_config_status_args="$ac_config_status_args --quiet"
24061   exec 5>/dev/null
24062   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24063   exec 5>>config.log
24064   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24065   # would make configure fail if this is the last instruction.
24066   $ac_cs_success || { (exit 1); exit 1; }
24067 fi
24068
24069 #
24070 # CONFIG_SUBDIRS section.
24071 #
24072 if test "$no_recursion" != yes; then
24073
24074   # Remove --cache-file and --srcdir arguments so they do not pile up.
24075   ac_sub_configure_args=
24076   ac_prev=
24077   for ac_arg in $ac_configure_args; do
24078     if test -n "$ac_prev"; then
24079       ac_prev=
24080       continue
24081     fi
24082     case $ac_arg in
24083     -cache-file | --cache-file | --cache-fil | --cache-fi \
24084     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24085       ac_prev=cache_file ;;
24086     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24087     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24088     | --c=*)
24089       ;;
24090     --config-cache | -C)
24091       ;;
24092     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24093       ac_prev=srcdir ;;
24094     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24095       ;;
24096     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24097       ac_prev=prefix ;;
24098     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24099       ;;
24100     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24101     esac
24102   done
24103
24104   # Always prepend --prefix to ensure using the same prefix
24105   # in subdir configurations.
24106   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24107
24108   ac_popdir=`pwd`
24109   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24110
24111     # Do not complain, so a configure script can configure whichever
24112     # parts of a large source tree are present.
24113     test -d $srcdir/$ac_dir || continue
24114
24115     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24116 echo "$as_me: configuring in $ac_dir" >&6;}
24117     { if $as_mkdir_p; then
24118     mkdir -p "$ac_dir"
24119   else
24120     as_dir="$ac_dir"
24121     as_dirs=
24122     while test ! -d "$as_dir"; do
24123       as_dirs="$as_dir $as_dirs"
24124       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24125 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24126          X"$as_dir" : 'X\(//\)[^/]' \| \
24127          X"$as_dir" : 'X\(//\)$' \| \
24128          X"$as_dir" : 'X\(/\)' \| \
24129          .     : '\(.\)' 2>/dev/null ||
24130 echo X"$as_dir" |
24131     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24132           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24133           /^X\(\/\/\)$/{ s//\1/; q; }
24134           /^X\(\/\).*/{ s//\1/; q; }
24135           s/.*/./; q'`
24136     done
24137     test ! -n "$as_dirs" || mkdir $as_dirs
24138   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24139 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24140    { (exit 1); exit 1; }; }; }
24141
24142     ac_builddir=.
24143
24144 if test "$ac_dir" != .; then
24145   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24146   # A "../" for each directory in $ac_dir_suffix.
24147   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24148 else
24149   ac_dir_suffix= ac_top_builddir=
24150 fi
24151
24152 case $srcdir in
24153   .)  # No --srcdir option.  We are building in place.
24154     ac_srcdir=.
24155     if test -z "$ac_top_builddir"; then
24156        ac_top_srcdir=.
24157     else
24158        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24159     fi ;;
24160   [\\/]* | ?:[\\/]* )  # Absolute path.
24161     ac_srcdir=$srcdir$ac_dir_suffix;
24162     ac_top_srcdir=$srcdir ;;
24163   *) # Relative path.
24164     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24165     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24166 esac
24167 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24168 # absolute.
24169 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24170 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24171 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24172 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24173
24174
24175     cd $ac_dir
24176
24177     # Check for guested configure; otherwise get Cygnus style configure.
24178     if test -f $ac_srcdir/configure.gnu; then
24179       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24180     elif test -f $ac_srcdir/configure; then
24181       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24182     elif test -f $ac_srcdir/configure.in; then
24183       ac_sub_configure=$ac_configure
24184     else
24185       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24186 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24187       ac_sub_configure=
24188     fi
24189
24190     # The recursion is here.
24191     if test -n "$ac_sub_configure"; then
24192       # Make the cache file name correct relative to the subdirectory.
24193       case $cache_file in
24194       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24195       *) # Relative path.
24196         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24197       esac
24198
24199       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24200 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24201       # The eval makes quoting arguments work.
24202       eval $ac_sub_configure $ac_sub_configure_args \
24203            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24204         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24205 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24206    { (exit 1); exit 1; }; }
24207     fi
24208
24209     cd $ac_popdir
24210   done
24211 fi
24212
24213
24214 if test $llvmgccwarn = yes
24215 then
24216         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
24217 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
24218         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
24219 echo "$as_me: WARNING: ***** appear to be working." >&2;}
24220         { echo "$as_me:$LINENO: WARNING: ***** " >&5
24221 echo "$as_me: WARNING: ***** " >&2;}
24222         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
24223 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
24224         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
24225 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
24226         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
24227 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
24228 fi
24229