Added checks for mkstemp and getrusage.
[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 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/TEST.aa.Makefile"
1569
1570
1571           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1572
1573
1574           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1575
1576
1577           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1578
1579
1580           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1584
1585
1586           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1587
1588
1589           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1590
1591
1592           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1593
1594
1595           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1596
1597
1598           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1599
1600
1601           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1602
1603
1604           ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1605
1606
1607           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1614
1615
1616           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1617
1618
1619           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1620
1621
1622           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1623
1624
1625           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1626
1627
1628           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1629
1630
1631           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1632
1633
1634           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1635
1636
1637           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1638
1639
1640           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1641
1642
1643           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1644
1645
1646           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1647
1648
1649           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1650
1651
1652           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1653
1654
1655           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1656
1657
1658           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1659
1660
1661           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1662
1663
1664           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1665
1666
1667           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1668
1669
1670           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1671
1672
1673           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1674
1675
1676           ac_config_commands="$ac_config_commands tools/Makefile"
1677
1678
1679           ac_config_commands="$ac_config_commands utils/Makefile"
1680
1681
1682           ac_config_commands="$ac_config_commands projects/Makefile"
1683
1684
1685
1686 # Find a good install program.  We prefer a C program (faster),
1687 # so one script is as good as another.  But avoid the broken or
1688 # incompatible versions:
1689 # SysV /etc/install, /usr/sbin/install
1690 # SunOS /usr/etc/install
1691 # IRIX /sbin/install
1692 # AIX /bin/install
1693 # AmigaOS /C/install, which installs bootblocks on floppy discs
1694 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1695 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1696 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1697 # ./install, which can be erroneously created by make from ./install.sh.
1698 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1699 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1700 if test -z "$INSTALL"; then
1701 if test "${ac_cv_path_install+set}" = set; then
1702   echo $ECHO_N "(cached) $ECHO_C" >&6
1703 else
1704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707   IFS=$as_save_IFS
1708   test -z "$as_dir" && as_dir=.
1709   # Account for people who put trailing slashes in PATH elements.
1710 case $as_dir/ in
1711   ./ | .// | /cC/* | \
1712   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1713   /usr/ucb/* ) ;;
1714   *)
1715     # OSF1 and SCO ODT 3.0 have their own names for install.
1716     # Don't use installbsd from OSF since it installs stuff as root
1717     # by default.
1718     for ac_prog in ginstall scoinst install; do
1719       for ac_exec_ext in '' $ac_executable_extensions; do
1720         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1721           if test $ac_prog = install &&
1722             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1723             # AIX install.  It has an incompatible calling convention.
1724             :
1725           elif test $ac_prog = install &&
1726             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1727             # program-specific install script used by HP pwplus--don't use.
1728             :
1729           else
1730             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1731             break 3
1732           fi
1733         fi
1734       done
1735     done
1736     ;;
1737 esac
1738 done
1739
1740
1741 fi
1742   if test "${ac_cv_path_install+set}" = set; then
1743     INSTALL=$ac_cv_path_install
1744   else
1745     # As a last resort, use the slow shell script.  We don't cache a
1746     # path for INSTALL within a source directory, because that will
1747     # break other packages using the cache if that directory is
1748     # removed, or if the path is relative.
1749     INSTALL=$ac_install_sh
1750   fi
1751 fi
1752 echo "$as_me:$LINENO: result: $INSTALL" >&5
1753 echo "${ECHO_T}$INSTALL" >&6
1754
1755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1756 # It thinks the first close brace ends the variable substitution.
1757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1758
1759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1760
1761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1762
1763
1764 # Make sure we can run config.sub.
1765 $ac_config_sub sun4 >/dev/null 2>&1 ||
1766   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1767 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1768    { (exit 1); exit 1; }; }
1769
1770 echo "$as_me:$LINENO: checking build system type" >&5
1771 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1772 if test "${ac_cv_build+set}" = set; then
1773   echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775   ac_cv_build_alias=$build_alias
1776 test -z "$ac_cv_build_alias" &&
1777   ac_cv_build_alias=`$ac_config_guess`
1778 test -z "$ac_cv_build_alias" &&
1779   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1780 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1781    { (exit 1); exit 1; }; }
1782 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1783   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1784 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1785    { (exit 1); exit 1; }; }
1786
1787 fi
1788 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1789 echo "${ECHO_T}$ac_cv_build" >&6
1790 build=$ac_cv_build
1791 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1792 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1793 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1794
1795
1796 echo "$as_me:$LINENO: checking host system type" >&5
1797 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1798 if test "${ac_cv_host+set}" = set; then
1799   echo $ECHO_N "(cached) $ECHO_C" >&6
1800 else
1801   ac_cv_host_alias=$host_alias
1802 test -z "$ac_cv_host_alias" &&
1803   ac_cv_host_alias=$ac_cv_build_alias
1804 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1805   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1806 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1807    { (exit 1); exit 1; }; }
1808
1809 fi
1810 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1811 echo "${ECHO_T}$ac_cv_host" >&6
1812 host=$ac_cv_host
1813 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1814 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1815 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1816
1817
1818 echo "$as_me:$LINENO: checking target system type" >&5
1819 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1820 if test "${ac_cv_target+set}" = set; then
1821   echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823   ac_cv_target_alias=$target_alias
1824 test "x$ac_cv_target_alias" = "x" &&
1825   ac_cv_target_alias=$ac_cv_host_alias
1826 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1827   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1828 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1829    { (exit 1); exit 1; }; }
1830
1831 fi
1832 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1833 echo "${ECHO_T}$ac_cv_target" >&6
1834 target=$ac_cv_target
1835 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1836 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1837 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1838
1839
1840 # The aliases save the names the user supplied, while $host etc.
1841 # will get canonicalized.
1842 test -n "$target_alias" &&
1843   test "$program_prefix$program_suffix$program_transform_name" = \
1844     NONENONEs,x,x, &&
1845   program_prefix=${target_alias}-
1846
1847 case $build in
1848         *-*-linux*)
1849              OS=Linux
1850
1851                          if test -d /home/vadve/lattner/local/x86/llvm-gcc
1852                          then
1853                            LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1854
1855                          fi
1856                  ;;
1857
1858         *-*-solaris*)
1859              OS=SunOS
1860
1861                          if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1862                          then
1863                    LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1864
1865                          fi
1866                  ;;
1867         *-*-cygwin*)
1868              OS=Cygwin
1869
1870                  ;;
1871
1872         *-*-darwin*)
1873              OS=Darwin
1874
1875                  ;;
1876
1877         *)       OS=Unknown
1878
1879                  ;;
1880 esac
1881
1882 case $target in
1883         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1884
1885                             ;;
1886 esac
1887
1888 case $target in
1889         i*86-*)           ARCH=x86
1890
1891                           ;;
1892         sparc*-*)         ARCH=Sparc
1893
1894                           ;;
1895         powerpc*-*)       ARCH=PowerPC
1896
1897                           ;;
1898         *)                ARCH=Unknown
1899
1900                           ;;
1901 esac
1902
1903 ac_ext=cc
1904 ac_cpp='$CXXCPP $CPPFLAGS'
1905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1908 if test -n "$ac_tool_prefix"; then
1909   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1910   do
1911     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_CXX+set}" = set; then
1916   echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918   if test -n "$CXX"; then
1919   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1920 else
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 for as_dir in $PATH
1923 do
1924   IFS=$as_save_IFS
1925   test -z "$as_dir" && as_dir=.
1926   for ac_exec_ext in '' $ac_executable_extensions; do
1927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930     break 2
1931   fi
1932 done
1933 done
1934
1935 fi
1936 fi
1937 CXX=$ac_cv_prog_CXX
1938 if test -n "$CXX"; then
1939   echo "$as_me:$LINENO: result: $CXX" >&5
1940 echo "${ECHO_T}$CXX" >&6
1941 else
1942   echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1944 fi
1945
1946     test -n "$CXX" && break
1947   done
1948 fi
1949 if test -z "$CXX"; then
1950   ac_ct_CXX=$CXX
1951   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1952 do
1953   # Extract the first word of "$ac_prog", so it can be a program name with args.
1954 set dummy $ac_prog; ac_word=$2
1955 echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   if test -n "$ac_ct_CXX"; then
1961   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1962 else
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966   IFS=$as_save_IFS
1967   test -z "$as_dir" && as_dir=.
1968   for ac_exec_ext in '' $ac_executable_extensions; do
1969   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970     ac_cv_prog_ac_ct_CXX="$ac_prog"
1971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972     break 2
1973   fi
1974 done
1975 done
1976
1977 fi
1978 fi
1979 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1980 if test -n "$ac_ct_CXX"; then
1981   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1982 echo "${ECHO_T}$ac_ct_CXX" >&6
1983 else
1984   echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6
1986 fi
1987
1988   test -n "$ac_ct_CXX" && break
1989 done
1990 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1991
1992   CXX=$ac_ct_CXX
1993 fi
1994
1995
1996 # Provide some information about the compiler.
1997 echo "$as_me:$LINENO:" \
1998      "checking for C++ compiler version" >&5
1999 ac_compiler=`set X $ac_compile; echo $2`
2000 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2001   (eval $ac_compiler --version </dev/null >&5) 2>&5
2002   ac_status=$?
2003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004   (exit $ac_status); }
2005 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2006   (eval $ac_compiler -v </dev/null >&5) 2>&5
2007   ac_status=$?
2008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009   (exit $ac_status); }
2010 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2011   (eval $ac_compiler -V </dev/null >&5) 2>&5
2012   ac_status=$?
2013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014   (exit $ac_status); }
2015
2016 cat >conftest.$ac_ext <<_ACEOF
2017 #line $LINENO "configure"
2018 /* confdefs.h.  */
2019 _ACEOF
2020 cat confdefs.h >>conftest.$ac_ext
2021 cat >>conftest.$ac_ext <<_ACEOF
2022 /* end confdefs.h.  */
2023
2024 int
2025 main ()
2026 {
2027
2028   ;
2029   return 0;
2030 }
2031 _ACEOF
2032 ac_clean_files_save=$ac_clean_files
2033 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2034 # Try to create an executable without -o first, disregard a.out.
2035 # It will help us diagnose broken compilers, and finding out an intuition
2036 # of exeext.
2037 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2038 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2039 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2040 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2041   (eval $ac_link_default) 2>&5
2042   ac_status=$?
2043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044   (exit $ac_status); }; then
2045   # Find the output, starting from the most likely.  This scheme is
2046 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2047 # resort.
2048
2049 # Be careful to initialize this variable, since it used to be cached.
2050 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2051 ac_cv_exeext=
2052 # b.out is created by i960 compilers.
2053 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2054 do
2055   test -f "$ac_file" || continue
2056   case $ac_file in
2057     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2058         ;;
2059     conftest.$ac_ext )
2060         # This is the source file.
2061         ;;
2062     [ab].out )
2063         # We found the default executable, but exeext='' is most
2064         # certainly right.
2065         break;;
2066     *.* )
2067         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2068         # FIXME: I believe we export ac_cv_exeext for Libtool,
2069         # but it would be cool to find out if it's true.  Does anybody
2070         # maintain Libtool? --akim.
2071         export ac_cv_exeext
2072         break;;
2073     * )
2074         break;;
2075   esac
2076 done
2077 else
2078   echo "$as_me: failed program was:" >&5
2079 sed 's/^/| /' conftest.$ac_ext >&5
2080
2081 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2082 See \`config.log' for more details." >&5
2083 echo "$as_me: error: C++ compiler cannot create executables
2084 See \`config.log' for more details." >&2;}
2085    { (exit 77); exit 77; }; }
2086 fi
2087
2088 ac_exeext=$ac_cv_exeext
2089 echo "$as_me:$LINENO: result: $ac_file" >&5
2090 echo "${ECHO_T}$ac_file" >&6
2091
2092 # Check the compiler produces executables we can run.  If not, either
2093 # the compiler is broken, or we cross compile.
2094 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2095 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2096 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2097 # If not cross compiling, check that we can run a simple program.
2098 if test "$cross_compiling" != yes; then
2099   if { ac_try='./$ac_file'
2100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101   (eval $ac_try) 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }; }; then
2105     cross_compiling=no
2106   else
2107     if test "$cross_compiling" = maybe; then
2108         cross_compiling=yes
2109     else
2110         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2111 If you meant to cross compile, use \`--host'.
2112 See \`config.log' for more details." >&5
2113 echo "$as_me: error: cannot run C++ compiled programs.
2114 If you meant to cross compile, use \`--host'.
2115 See \`config.log' for more details." >&2;}
2116    { (exit 1); exit 1; }; }
2117     fi
2118   fi
2119 fi
2120 echo "$as_me:$LINENO: result: yes" >&5
2121 echo "${ECHO_T}yes" >&6
2122
2123 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2124 ac_clean_files=$ac_clean_files_save
2125 # Check the compiler produces executables we can run.  If not, either
2126 # the compiler is broken, or we cross compile.
2127 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2128 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2129 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2130 echo "${ECHO_T}$cross_compiling" >&6
2131
2132 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2133 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2135   (eval $ac_link) 2>&5
2136   ac_status=$?
2137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138   (exit $ac_status); }; then
2139   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2140 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2141 # work properly (i.e., refer to `conftest.exe'), while it won't with
2142 # `rm'.
2143 for ac_file in conftest.exe conftest conftest.*; do
2144   test -f "$ac_file" || continue
2145   case $ac_file in
2146     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2147     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2148           export ac_cv_exeext
2149           break;;
2150     * ) break;;
2151   esac
2152 done
2153 else
2154   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2155 See \`config.log' for more details." >&5
2156 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2157 See \`config.log' for more details." >&2;}
2158    { (exit 1); exit 1; }; }
2159 fi
2160
2161 rm -f conftest$ac_cv_exeext
2162 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2163 echo "${ECHO_T}$ac_cv_exeext" >&6
2164
2165 rm -f conftest.$ac_ext
2166 EXEEXT=$ac_cv_exeext
2167 ac_exeext=$EXEEXT
2168 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2169 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2170 if test "${ac_cv_objext+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   cat >conftest.$ac_ext <<_ACEOF
2174 #line $LINENO "configure"
2175 /* confdefs.h.  */
2176 _ACEOF
2177 cat confdefs.h >>conftest.$ac_ext
2178 cat >>conftest.$ac_ext <<_ACEOF
2179 /* end confdefs.h.  */
2180
2181 int
2182 main ()
2183 {
2184
2185   ;
2186   return 0;
2187 }
2188 _ACEOF
2189 rm -f conftest.o conftest.obj
2190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191   (eval $ac_compile) 2>&5
2192   ac_status=$?
2193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194   (exit $ac_status); }; then
2195   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2196   case $ac_file in
2197     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2198     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2199        break;;
2200   esac
2201 done
2202 else
2203   echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2207 See \`config.log' for more details." >&5
2208 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2209 See \`config.log' for more details." >&2;}
2210    { (exit 1); exit 1; }; }
2211 fi
2212
2213 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2214 fi
2215 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2216 echo "${ECHO_T}$ac_cv_objext" >&6
2217 OBJEXT=$ac_cv_objext
2218 ac_objext=$OBJEXT
2219 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2220 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2221 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2222   echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224   cat >conftest.$ac_ext <<_ACEOF
2225 #line $LINENO "configure"
2226 /* confdefs.h.  */
2227 _ACEOF
2228 cat confdefs.h >>conftest.$ac_ext
2229 cat >>conftest.$ac_ext <<_ACEOF
2230 /* end confdefs.h.  */
2231
2232 int
2233 main ()
2234 {
2235 #ifndef __GNUC__
2236        choke me
2237 #endif
2238
2239   ;
2240   return 0;
2241 }
2242 _ACEOF
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245   (eval $ac_compile) 2>&5
2246   ac_status=$?
2247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248   (exit $ac_status); } &&
2249          { ac_try='test -s conftest.$ac_objext'
2250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251   (eval $ac_try) 2>&5
2252   ac_status=$?
2253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254   (exit $ac_status); }; }; then
2255   ac_compiler_gnu=yes
2256 else
2257   echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.$ac_ext >&5
2259
2260 ac_compiler_gnu=no
2261 fi
2262 rm -f conftest.$ac_objext conftest.$ac_ext
2263 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2264
2265 fi
2266 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2267 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2268 GXX=`test $ac_compiler_gnu = yes && echo yes`
2269 ac_test_CXXFLAGS=${CXXFLAGS+set}
2270 ac_save_CXXFLAGS=$CXXFLAGS
2271 CXXFLAGS="-g"
2272 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2273 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2274 if test "${ac_cv_prog_cxx_g+set}" = set; then
2275   echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277   cat >conftest.$ac_ext <<_ACEOF
2278 #line $LINENO "configure"
2279 /* confdefs.h.  */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h.  */
2284
2285 int
2286 main ()
2287 {
2288
2289   ;
2290   return 0;
2291 }
2292 _ACEOF
2293 rm -f conftest.$ac_objext
2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295   (eval $ac_compile) 2>&5
2296   ac_status=$?
2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); } &&
2299          { ac_try='test -s conftest.$ac_objext'
2300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301   (eval $ac_try) 2>&5
2302   ac_status=$?
2303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304   (exit $ac_status); }; }; then
2305   ac_cv_prog_cxx_g=yes
2306 else
2307   echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2309
2310 ac_cv_prog_cxx_g=no
2311 fi
2312 rm -f conftest.$ac_objext conftest.$ac_ext
2313 fi
2314 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2315 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2316 if test "$ac_test_CXXFLAGS" = set; then
2317   CXXFLAGS=$ac_save_CXXFLAGS
2318 elif test $ac_cv_prog_cxx_g = yes; then
2319   if test "$GXX" = yes; then
2320     CXXFLAGS="-g -O2"
2321   else
2322     CXXFLAGS="-g"
2323   fi
2324 else
2325   if test "$GXX" = yes; then
2326     CXXFLAGS="-O2"
2327   else
2328     CXXFLAGS=
2329   fi
2330 fi
2331 for ac_declaration in \
2332    ''\
2333    '#include <stdlib.h>' \
2334    'extern "C" void std::exit (int) throw (); using std::exit;' \
2335    'extern "C" void std::exit (int); using std::exit;' \
2336    'extern "C" void exit (int) throw ();' \
2337    'extern "C" void exit (int);' \
2338    'void exit (int);'
2339 do
2340   cat >conftest.$ac_ext <<_ACEOF
2341 #line $LINENO "configure"
2342 /* confdefs.h.  */
2343 _ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h.  */
2347 #include <stdlib.h>
2348 $ac_declaration
2349 int
2350 main ()
2351 {
2352 exit (42);
2353   ;
2354   return 0;
2355 }
2356 _ACEOF
2357 rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359   (eval $ac_compile) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); } &&
2363          { ac_try='test -s conftest.$ac_objext'
2364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365   (eval $ac_try) 2>&5
2366   ac_status=$?
2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368   (exit $ac_status); }; }; then
2369   :
2370 else
2371   echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2373
2374 continue
2375 fi
2376 rm -f conftest.$ac_objext conftest.$ac_ext
2377   cat >conftest.$ac_ext <<_ACEOF
2378 #line $LINENO "configure"
2379 /* confdefs.h.  */
2380 _ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h.  */
2384 $ac_declaration
2385 int
2386 main ()
2387 {
2388 exit (42);
2389   ;
2390   return 0;
2391 }
2392 _ACEOF
2393 rm -f conftest.$ac_objext
2394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395   (eval $ac_compile) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); } &&
2399          { ac_try='test -s conftest.$ac_objext'
2400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401   (eval $ac_try) 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); }; }; then
2405   break
2406 else
2407   echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2409
2410 fi
2411 rm -f conftest.$ac_objext conftest.$ac_ext
2412 done
2413 rm -f conftest*
2414 if test -n "$ac_declaration"; then
2415   echo '#ifdef __cplusplus' >>confdefs.h
2416   echo $ac_declaration      >>confdefs.h
2417   echo '#endif'             >>confdefs.h
2418 fi
2419
2420 ac_ext=c
2421 ac_cpp='$CPP $CPPFLAGS'
2422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2425
2426 ac_ext=c
2427 ac_cpp='$CPP $CPPFLAGS'
2428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2431 if test -n "$ac_tool_prefix"; then
2432   for ac_prog in gcc
2433   do
2434     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2436 echo "$as_me:$LINENO: checking for $ac_word" >&5
2437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2438 if test "${ac_cv_prog_CC+set}" = set; then
2439   echo $ECHO_N "(cached) $ECHO_C" >&6
2440 else
2441   if test -n "$CC"; then
2442   ac_cv_prog_CC="$CC" # Let the user override the test.
2443 else
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2446 do
2447   IFS=$as_save_IFS
2448   test -z "$as_dir" && as_dir=.
2449   for ac_exec_ext in '' $ac_executable_extensions; do
2450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2451     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453     break 2
2454   fi
2455 done
2456 done
2457
2458 fi
2459 fi
2460 CC=$ac_cv_prog_CC
2461 if test -n "$CC"; then
2462   echo "$as_me:$LINENO: result: $CC" >&5
2463 echo "${ECHO_T}$CC" >&6
2464 else
2465   echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6
2467 fi
2468
2469     test -n "$CC" && break
2470   done
2471 fi
2472 if test -z "$CC"; then
2473   ac_ct_CC=$CC
2474   for ac_prog in gcc
2475 do
2476   # Extract the first word of "$ac_prog", so it can be a program name with args.
2477 set dummy $ac_prog; ac_word=$2
2478 echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481   echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483   if test -n "$ac_ct_CC"; then
2484   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489   IFS=$as_save_IFS
2490   test -z "$as_dir" && as_dir=.
2491   for ac_exec_ext in '' $ac_executable_extensions; do
2492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2493     ac_cv_prog_ac_ct_CC="$ac_prog"
2494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495     break 2
2496   fi
2497 done
2498 done
2499
2500 fi
2501 fi
2502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503 if test -n "$ac_ct_CC"; then
2504   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505 echo "${ECHO_T}$ac_ct_CC" >&6
2506 else
2507   echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6
2509 fi
2510
2511   test -n "$ac_ct_CC" && break
2512 done
2513
2514   CC=$ac_ct_CC
2515 fi
2516
2517
2518 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2519 See \`config.log' for more details." >&5
2520 echo "$as_me: error: no acceptable C compiler found in \$PATH
2521 See \`config.log' for more details." >&2;}
2522    { (exit 1); exit 1; }; }
2523
2524 # Provide some information about the compiler.
2525 echo "$as_me:$LINENO:" \
2526      "checking for C compiler version" >&5
2527 ac_compiler=`set X $ac_compile; echo $2`
2528 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2529   (eval $ac_compiler --version </dev/null >&5) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); }
2533 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2534   (eval $ac_compiler -v </dev/null >&5) 2>&5
2535   ac_status=$?
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); }
2538 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2539   (eval $ac_compiler -V </dev/null >&5) 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); }
2543
2544 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2545 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2546 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2547   echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549   cat >conftest.$ac_ext <<_ACEOF
2550 #line $LINENO "configure"
2551 /* confdefs.h.  */
2552 _ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h.  */
2556
2557 int
2558 main ()
2559 {
2560 #ifndef __GNUC__
2561        choke me
2562 #endif
2563
2564   ;
2565   return 0;
2566 }
2567 _ACEOF
2568 rm -f conftest.$ac_objext
2569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570   (eval $ac_compile) 2>&5
2571   ac_status=$?
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); } &&
2574          { ac_try='test -s conftest.$ac_objext'
2575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576   (eval $ac_try) 2>&5
2577   ac_status=$?
2578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579   (exit $ac_status); }; }; then
2580   ac_compiler_gnu=yes
2581 else
2582   echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2584
2585 ac_compiler_gnu=no
2586 fi
2587 rm -f conftest.$ac_objext conftest.$ac_ext
2588 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2589
2590 fi
2591 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2592 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2593 GCC=`test $ac_compiler_gnu = yes && echo yes`
2594 ac_test_CFLAGS=${CFLAGS+set}
2595 ac_save_CFLAGS=$CFLAGS
2596 CFLAGS="-g"
2597 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2598 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2599 if test "${ac_cv_prog_cc_g+set}" = set; then
2600   echo $ECHO_N "(cached) $ECHO_C" >&6
2601 else
2602   cat >conftest.$ac_ext <<_ACEOF
2603 #line $LINENO "configure"
2604 /* confdefs.h.  */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h.  */
2609
2610 int
2611 main ()
2612 {
2613
2614   ;
2615   return 0;
2616 }
2617 _ACEOF
2618 rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620   (eval $ac_compile) 2>&5
2621   ac_status=$?
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); } &&
2624          { ac_try='test -s conftest.$ac_objext'
2625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626   (eval $ac_try) 2>&5
2627   ac_status=$?
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); }; }; then
2630   ac_cv_prog_cc_g=yes
2631 else
2632   echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2634
2635 ac_cv_prog_cc_g=no
2636 fi
2637 rm -f conftest.$ac_objext conftest.$ac_ext
2638 fi
2639 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2640 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2641 if test "$ac_test_CFLAGS" = set; then
2642   CFLAGS=$ac_save_CFLAGS
2643 elif test $ac_cv_prog_cc_g = yes; then
2644   if test "$GCC" = yes; then
2645     CFLAGS="-g -O2"
2646   else
2647     CFLAGS="-g"
2648   fi
2649 else
2650   if test "$GCC" = yes; then
2651     CFLAGS="-O2"
2652   else
2653     CFLAGS=
2654   fi
2655 fi
2656 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2657 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2658 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2659   echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661   ac_cv_prog_cc_stdc=no
2662 ac_save_CC=$CC
2663 cat >conftest.$ac_ext <<_ACEOF
2664 #line $LINENO "configure"
2665 /* confdefs.h.  */
2666 _ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h.  */
2670 #include <stdarg.h>
2671 #include <stdio.h>
2672 #include <sys/types.h>
2673 #include <sys/stat.h>
2674 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2675 struct buf { int x; };
2676 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2677 static char *e (p, i)
2678      char **p;
2679      int i;
2680 {
2681   return p[i];
2682 }
2683 static char *f (char * (*g) (char **, int), char **p, ...)
2684 {
2685   char *s;
2686   va_list v;
2687   va_start (v,p);
2688   s = g (p, va_arg (v,int));
2689   va_end (v);
2690   return s;
2691 }
2692 int test (int i, double x);
2693 struct s1 {int (*f) (int a);};
2694 struct s2 {int (*f) (double a);};
2695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2696 int argc;
2697 char **argv;
2698 int
2699 main ()
2700 {
2701 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 # Don't try gcc -ansi; that turns off useful extensions and
2707 # breaks some systems' header files.
2708 # AIX                   -qlanglvl=ansi
2709 # Ultrix and OSF/1      -std1
2710 # HP-UX 10.20 and later -Ae
2711 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2712 # SVR4                  -Xc -D__EXTENSIONS__
2713 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2714 do
2715   CC="$ac_save_CC $ac_arg"
2716   rm -f conftest.$ac_objext
2717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2718   (eval $ac_compile) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); } &&
2722          { ac_try='test -s conftest.$ac_objext'
2723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724   (eval $ac_try) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; }; then
2728   ac_cv_prog_cc_stdc=$ac_arg
2729 break
2730 else
2731   echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2733
2734 fi
2735 rm -f conftest.$ac_objext
2736 done
2737 rm -f conftest.$ac_ext conftest.$ac_objext
2738 CC=$ac_save_CC
2739
2740 fi
2741
2742 case "x$ac_cv_prog_cc_stdc" in
2743   x|xno)
2744     echo "$as_me:$LINENO: result: none needed" >&5
2745 echo "${ECHO_T}none needed" >&6 ;;
2746   *)
2747     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2748 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2749     CC="$CC $ac_cv_prog_cc_stdc" ;;
2750 esac
2751
2752 # Some people use a C++ compiler to compile C.  Since we use `exit',
2753 # in C++ we need to declare it.  In case someone uses the same compiler
2754 # for both compiling C and C++ we need to have the C++ compiler decide
2755 # the declaration of exit, since it's the most demanding environment.
2756 cat >conftest.$ac_ext <<_ACEOF
2757 #ifndef __cplusplus
2758   choke me
2759 #endif
2760 _ACEOF
2761 rm -f conftest.$ac_objext
2762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763   (eval $ac_compile) 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); } &&
2767          { ac_try='test -s conftest.$ac_objext'
2768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769   (eval $ac_try) 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); }; }; then
2773   for ac_declaration in \
2774    ''\
2775    '#include <stdlib.h>' \
2776    'extern "C" void std::exit (int) throw (); using std::exit;' \
2777    'extern "C" void std::exit (int); using std::exit;' \
2778    'extern "C" void exit (int) throw ();' \
2779    'extern "C" void exit (int);' \
2780    'void exit (int);'
2781 do
2782   cat >conftest.$ac_ext <<_ACEOF
2783 #line $LINENO "configure"
2784 /* confdefs.h.  */
2785 _ACEOF
2786 cat confdefs.h >>conftest.$ac_ext
2787 cat >>conftest.$ac_ext <<_ACEOF
2788 /* end confdefs.h.  */
2789 #include <stdlib.h>
2790 $ac_declaration
2791 int
2792 main ()
2793 {
2794 exit (42);
2795   ;
2796   return 0;
2797 }
2798 _ACEOF
2799 rm -f conftest.$ac_objext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801   (eval $ac_compile) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); } &&
2805          { ac_try='test -s conftest.$ac_objext'
2806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807   (eval $ac_try) 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); }; }; then
2811   :
2812 else
2813   echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2815
2816 continue
2817 fi
2818 rm -f conftest.$ac_objext conftest.$ac_ext
2819   cat >conftest.$ac_ext <<_ACEOF
2820 #line $LINENO "configure"
2821 /* confdefs.h.  */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h.  */
2826 $ac_declaration
2827 int
2828 main ()
2829 {
2830 exit (42);
2831   ;
2832   return 0;
2833 }
2834 _ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837   (eval $ac_compile) 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); } &&
2841          { ac_try='test -s conftest.$ac_objext'
2842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843   (eval $ac_try) 2>&5
2844   ac_status=$?
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); }; }; then
2847   break
2848 else
2849   echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2851
2852 fi
2853 rm -f conftest.$ac_objext conftest.$ac_ext
2854 done
2855 rm -f conftest*
2856 if test -n "$ac_declaration"; then
2857   echo '#ifdef __cplusplus' >>confdefs.h
2858   echo $ac_declaration      >>confdefs.h
2859   echo '#endif'             >>confdefs.h
2860 fi
2861
2862 else
2863   echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2865
2866 fi
2867 rm -f conftest.$ac_objext conftest.$ac_ext
2868 ac_ext=c
2869 ac_cpp='$CPP $CPPFLAGS'
2870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2873
2874 ac_ext=c
2875 ac_cpp='$CPP $CPPFLAGS'
2876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2880 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2881 # On Suns, sometimes $CPP names a directory.
2882 if test -n "$CPP" && test -d "$CPP"; then
2883   CPP=
2884 fi
2885 if test -z "$CPP"; then
2886   if test "${ac_cv_prog_CPP+set}" = set; then
2887   echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889       # Double quotes because CPP needs to be expanded
2890     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2891     do
2892       ac_preproc_ok=false
2893 for ac_c_preproc_warn_flag in '' yes
2894 do
2895   # Use a header file that comes with gcc, so configuring glibc
2896   # with a fresh cross-compiler works.
2897   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2898   # <limits.h> exists even on freestanding compilers.
2899   # On the NeXT, cc -E runs the code through the compiler's parser,
2900   # not just through cpp. "Syntax error" is here to catch this case.
2901   cat >conftest.$ac_ext <<_ACEOF
2902 #line $LINENO "configure"
2903 /* confdefs.h.  */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h.  */
2908 #ifdef __STDC__
2909 # include <limits.h>
2910 #else
2911 # include <assert.h>
2912 #endif
2913                      Syntax error
2914 _ACEOF
2915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2917   ac_status=$?
2918   grep -v '^ *+' conftest.er1 >conftest.err
2919   rm -f conftest.er1
2920   cat conftest.err >&5
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); } >/dev/null; then
2923   if test -s conftest.err; then
2924     ac_cpp_err=$ac_c_preproc_warn_flag
2925   else
2926     ac_cpp_err=
2927   fi
2928 else
2929   ac_cpp_err=yes
2930 fi
2931 if test -z "$ac_cpp_err"; then
2932   :
2933 else
2934   echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2936
2937   # Broken: fails on valid input.
2938 continue
2939 fi
2940 rm -f conftest.err conftest.$ac_ext
2941
2942   # OK, works on sane cases.  Now check whether non-existent headers
2943   # can be detected and how.
2944   cat >conftest.$ac_ext <<_ACEOF
2945 #line $LINENO "configure"
2946 /* confdefs.h.  */
2947 _ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h.  */
2951 #include <ac_nonexistent.h>
2952 _ACEOF
2953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2954   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2955   ac_status=$?
2956   grep -v '^ *+' conftest.er1 >conftest.err
2957   rm -f conftest.er1
2958   cat conftest.err >&5
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); } >/dev/null; then
2961   if test -s conftest.err; then
2962     ac_cpp_err=$ac_c_preproc_warn_flag
2963   else
2964     ac_cpp_err=
2965   fi
2966 else
2967   ac_cpp_err=yes
2968 fi
2969 if test -z "$ac_cpp_err"; then
2970   # Broken: success on invalid input.
2971 continue
2972 else
2973   echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2975
2976   # Passes both tests.
2977 ac_preproc_ok=:
2978 break
2979 fi
2980 rm -f conftest.err conftest.$ac_ext
2981
2982 done
2983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2984 rm -f conftest.err conftest.$ac_ext
2985 if $ac_preproc_ok; then
2986   break
2987 fi
2988
2989     done
2990     ac_cv_prog_CPP=$CPP
2991
2992 fi
2993   CPP=$ac_cv_prog_CPP
2994 else
2995   ac_cv_prog_CPP=$CPP
2996 fi
2997 echo "$as_me:$LINENO: result: $CPP" >&5
2998 echo "${ECHO_T}$CPP" >&6
2999 ac_preproc_ok=false
3000 for ac_c_preproc_warn_flag in '' yes
3001 do
3002   # Use a header file that comes with gcc, so configuring glibc
3003   # with a fresh cross-compiler works.
3004   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3005   # <limits.h> exists even on freestanding compilers.
3006   # On the NeXT, cc -E runs the code through the compiler's parser,
3007   # not just through cpp. "Syntax error" is here to catch this case.
3008   cat >conftest.$ac_ext <<_ACEOF
3009 #line $LINENO "configure"
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015 #ifdef __STDC__
3016 # include <limits.h>
3017 #else
3018 # include <assert.h>
3019 #endif
3020                      Syntax error
3021 _ACEOF
3022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3023   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3024   ac_status=$?
3025   grep -v '^ *+' conftest.er1 >conftest.err
3026   rm -f conftest.er1
3027   cat conftest.err >&5
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); } >/dev/null; then
3030   if test -s conftest.err; then
3031     ac_cpp_err=$ac_c_preproc_warn_flag
3032   else
3033     ac_cpp_err=
3034   fi
3035 else
3036   ac_cpp_err=yes
3037 fi
3038 if test -z "$ac_cpp_err"; then
3039   :
3040 else
3041   echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044   # Broken: fails on valid input.
3045 continue
3046 fi
3047 rm -f conftest.err conftest.$ac_ext
3048
3049   # OK, works on sane cases.  Now check whether non-existent headers
3050   # can be detected and how.
3051   cat >conftest.$ac_ext <<_ACEOF
3052 #line $LINENO "configure"
3053 /* confdefs.h.  */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h.  */
3058 #include <ac_nonexistent.h>
3059 _ACEOF
3060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3062   ac_status=$?
3063   grep -v '^ *+' conftest.er1 >conftest.err
3064   rm -f conftest.er1
3065   cat conftest.err >&5
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); } >/dev/null; then
3068   if test -s conftest.err; then
3069     ac_cpp_err=$ac_c_preproc_warn_flag
3070   else
3071     ac_cpp_err=
3072   fi
3073 else
3074   ac_cpp_err=yes
3075 fi
3076 if test -z "$ac_cpp_err"; then
3077   # Broken: success on invalid input.
3078 continue
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083   # Passes both tests.
3084 ac_preproc_ok=:
3085 break
3086 fi
3087 rm -f conftest.err conftest.$ac_ext
3088
3089 done
3090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3091 rm -f conftest.err conftest.$ac_ext
3092 if $ac_preproc_ok; then
3093   :
3094 else
3095   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3096 See \`config.log' for more details." >&5
3097 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&2;}
3099    { (exit 1); exit 1; }; }
3100 fi
3101
3102 ac_ext=c
3103 ac_cpp='$CPP $CPPFLAGS'
3104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3107
3108
3109 if test "$GCC" != "yes"
3110 then
3111         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3112 echo "$as_me: error: gcc required but not found" >&2;}
3113    { (exit 1); exit 1; }; }
3114 fi
3115 if test "$GXX" != "yes"
3116 then
3117         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3118 echo "$as_me: error: g++ required but not found" >&2;}
3119    { (exit 1); exit 1; }; }
3120 fi
3121
3122 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3123 if test "$gccmajor" -lt "3"
3124 then
3125         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3126 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3127    { (exit 1); exit 1; }; }
3128 fi
3129
3130  echo "$as_me:$LINENO: checking for GNU make" >&5
3131 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3132 if test "${_cv_gnu_make_command+set}" = set; then
3133   echo $ECHO_N "(cached) $ECHO_C" >&6
3134 else
3135   _cv_gnu_make_command='' ;
3136                 for a in "$MAKE" make gmake gnumake ; do
3137                         if test -z "$a" ; then continue ; fi ;
3138                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3139                                 _cv_gnu_make_command=$a ;
3140                                 break;
3141                         fi
3142                 done ;
3143
3144 fi
3145 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3146 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3147         if test  "x$_cv_gnu_make_command" != "x"  ; then
3148                 ifGNUmake='' ;
3149         else
3150                 ifGNUmake='#' ;
3151                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3152 echo "${ECHO_T}\"Not found\"" >&6;
3153         fi
3154
3155
3156 if test -z "$_cv_gnu_make_command"
3157 then
3158         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3159 echo "$as_me: error: GNU Make required but not found" >&2;}
3160    { (exit 1); exit 1; }; }
3161 fi
3162
3163
3164 echo "$as_me:$LINENO: checking " >&5
3165 echo $ECHO_N "checking ... $ECHO_C" >&6
3166 if test "${ac_cv_has_flex+set}" = set; then
3167   echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169   for ac_prog in flex lex
3170 do
3171   # Extract the first word of "$ac_prog", so it can be a program name with args.
3172 set dummy $ac_prog; ac_word=$2
3173 echo "$as_me:$LINENO: checking for $ac_word" >&5
3174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175 if test "${ac_cv_prog_LEX+set}" = set; then
3176   echo $ECHO_N "(cached) $ECHO_C" >&6
3177 else
3178   if test -n "$LEX"; then
3179   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184   IFS=$as_save_IFS
3185   test -z "$as_dir" && as_dir=.
3186   for ac_exec_ext in '' $ac_executable_extensions; do
3187   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188     ac_cv_prog_LEX="$ac_prog"
3189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190     break 2
3191   fi
3192 done
3193 done
3194
3195 fi
3196 fi
3197 LEX=$ac_cv_prog_LEX
3198 if test -n "$LEX"; then
3199   echo "$as_me:$LINENO: result: $LEX" >&5
3200 echo "${ECHO_T}$LEX" >&6
3201 else
3202   echo "$as_me:$LINENO: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3204 fi
3205
3206   test -n "$LEX" && break
3207 done
3208 test -n "$LEX" || LEX=":"
3209
3210 if test -z "$LEXLIB"
3211 then
3212   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3213 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3214 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3215   echo $ECHO_N "(cached) $ECHO_C" >&6
3216 else
3217   ac_check_lib_save_LIBS=$LIBS
3218 LIBS="-lfl  $LIBS"
3219 cat >conftest.$ac_ext <<_ACEOF
3220 #line $LINENO "configure"
3221 /* confdefs.h.  */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h.  */
3226
3227 /* Override any gcc2 internal prototype to avoid an error.  */
3228 #ifdef __cplusplus
3229 extern "C"
3230 #endif
3231 /* We use char because int might match the return type of a gcc2
3232    builtin and then its argument prototype would still apply.  */
3233 char yywrap ();
3234 int
3235 main ()
3236 {
3237 yywrap ();
3238   ;
3239   return 0;
3240 }
3241 _ACEOF
3242 rm -f conftest.$ac_objext conftest$ac_exeext
3243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3244   (eval $ac_link) 2>&5
3245   ac_status=$?
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); } &&
3248          { ac_try='test -s conftest$ac_exeext'
3249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250   (eval $ac_try) 2>&5
3251   ac_status=$?
3252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253   (exit $ac_status); }; }; then
3254   ac_cv_lib_fl_yywrap=yes
3255 else
3256   echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3258
3259 ac_cv_lib_fl_yywrap=no
3260 fi
3261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3262 LIBS=$ac_check_lib_save_LIBS
3263 fi
3264 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3265 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3266 if test $ac_cv_lib_fl_yywrap = yes; then
3267   LEXLIB="-lfl"
3268 else
3269   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3270 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3271 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3272   echo $ECHO_N "(cached) $ECHO_C" >&6
3273 else
3274   ac_check_lib_save_LIBS=$LIBS
3275 LIBS="-ll  $LIBS"
3276 cat >conftest.$ac_ext <<_ACEOF
3277 #line $LINENO "configure"
3278 /* confdefs.h.  */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h.  */
3283
3284 /* Override any gcc2 internal prototype to avoid an error.  */
3285 #ifdef __cplusplus
3286 extern "C"
3287 #endif
3288 /* We use char because int might match the return type of a gcc2
3289    builtin and then its argument prototype would still apply.  */
3290 char yywrap ();
3291 int
3292 main ()
3293 {
3294 yywrap ();
3295   ;
3296   return 0;
3297 }
3298 _ACEOF
3299 rm -f conftest.$ac_objext conftest$ac_exeext
3300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3301   (eval $ac_link) 2>&5
3302   ac_status=$?
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); } &&
3305          { ac_try='test -s conftest$ac_exeext'
3306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307   (eval $ac_try) 2>&5
3308   ac_status=$?
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); }; }; then
3311   ac_cv_lib_l_yywrap=yes
3312 else
3313   echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316 ac_cv_lib_l_yywrap=no
3317 fi
3318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3319 LIBS=$ac_check_lib_save_LIBS
3320 fi
3321 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3322 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3323 if test $ac_cv_lib_l_yywrap = yes; then
3324   LEXLIB="-ll"
3325 fi
3326
3327 fi
3328
3329 fi
3330
3331 if test "x$LEX" != "x:"; then
3332   echo "$as_me:$LINENO: checking lex output file root" >&5
3333 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3334 if test "${ac_cv_prog_lex_root+set}" = set; then
3335   echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337   # The minimal lex program is just a single line: %%.  But some broken lexes
3338 # (Solaris, I think it was) want two %% lines, so accommodate them.
3339 cat >conftest.l <<_ACEOF
3340 %%
3341 %%
3342 _ACEOF
3343 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3344   (eval $LEX conftest.l) 2>&5
3345   ac_status=$?
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); }
3348 if test -f lex.yy.c; then
3349   ac_cv_prog_lex_root=lex.yy
3350 elif test -f lexyy.c; then
3351   ac_cv_prog_lex_root=lexyy
3352 else
3353   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3354 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3355    { (exit 1); exit 1; }; }
3356 fi
3357 fi
3358 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3359 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3360 rm -f conftest.l
3361 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3362
3363 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3364 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3365 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3366   echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368   # POSIX says lex can declare yytext either as a pointer or an array; the
3369 # default is implementation-dependent. Figure out which it is, since
3370 # not all implementations provide the %pointer and %array declarations.
3371 ac_cv_prog_lex_yytext_pointer=no
3372 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3373 ac_save_LIBS=$LIBS
3374 LIBS="$LIBS $LEXLIB"
3375 cat >conftest.$ac_ext <<_ACEOF
3376 `cat $LEX_OUTPUT_ROOT.c`
3377 _ACEOF
3378 rm -f conftest.$ac_objext conftest$ac_exeext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3380   (eval $ac_link) 2>&5
3381   ac_status=$?
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); } &&
3384          { ac_try='test -s conftest$ac_exeext'
3385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386   (eval $ac_try) 2>&5
3387   ac_status=$?
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); }; }; then
3390   ac_cv_prog_lex_yytext_pointer=yes
3391 else
3392   echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3394
3395 fi
3396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3397 LIBS=$ac_save_LIBS
3398 rm -f "${LEX_OUTPUT_ROOT}.c"
3399
3400 fi
3401 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3402 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3403 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3404
3405 cat >>confdefs.h <<\_ACEOF
3406 #define YYTEXT_POINTER 1
3407 _ACEOF
3408
3409 fi
3410
3411 fi
3412
3413 fi
3414 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3415 echo "${ECHO_T}$ac_cv_has_flex" >&6
3416 if test "$LEX" != "flex"; then
3417   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3418 echo "$as_me: error: flex not found but required" >&2;}
3419    { (exit 1); exit 1; }; }
3420 fi
3421
3422 echo "$as_me:$LINENO: checking " >&5
3423 echo $ECHO_N "checking ... $ECHO_C" >&6
3424 if test "${ac_cv_has_bison+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   for ac_prog in 'bison -y' byacc
3428 do
3429   # Extract the first word of "$ac_prog", so it can be a program name with args.
3430 set dummy $ac_prog; ac_word=$2
3431 echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3433 if test "${ac_cv_prog_YACC+set}" = set; then
3434   echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436   if test -n "$YACC"; then
3437   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3438 else
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 for as_dir in $PATH
3441 do
3442   IFS=$as_save_IFS
3443   test -z "$as_dir" && as_dir=.
3444   for ac_exec_ext in '' $ac_executable_extensions; do
3445   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446     ac_cv_prog_YACC="$ac_prog"
3447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3448     break 2
3449   fi
3450 done
3451 done
3452
3453 fi
3454 fi
3455 YACC=$ac_cv_prog_YACC
3456 if test -n "$YACC"; then
3457   echo "$as_me:$LINENO: result: $YACC" >&5
3458 echo "${ECHO_T}$YACC" >&6
3459 else
3460   echo "$as_me:$LINENO: result: no" >&5
3461 echo "${ECHO_T}no" >&6
3462 fi
3463
3464   test -n "$YACC" && break
3465 done
3466 test -n "$YACC" || YACC="yacc"
3467
3468
3469 fi
3470 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3471 echo "${ECHO_T}$ac_cv_has_bison" >&6
3472 if test "$YACC" != "bison -y"; then
3473   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3474 echo "$as_me: error: bison not found but required" >&2;}
3475    { (exit 1); exit 1; }; }
3476 else
3477   BISON=bison
3478
3479 fi
3480
3481 # Check whether --enable-shared or --disable-shared was given.
3482 if test "${enable_shared+set}" = set; then
3483   enableval="$enable_shared"
3484   p=${PACKAGE-default}
3485     case $enableval in
3486     yes) enable_shared=yes ;;
3487     no) enable_shared=no ;;
3488     *)
3489       enable_shared=no
3490       # Look at the argument we got.  We use all the common list separators.
3491       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3492       for pkg in $enableval; do
3493         IFS="$lt_save_ifs"
3494         if test "X$pkg" = "X$p"; then
3495           enable_shared=yes
3496         fi
3497       done
3498       IFS="$lt_save_ifs"
3499       ;;
3500     esac
3501 else
3502   enable_shared=yes
3503 fi;
3504
3505 # Check whether --enable-static or --disable-static was given.
3506 if test "${enable_static+set}" = set; then
3507   enableval="$enable_static"
3508   p=${PACKAGE-default}
3509     case $enableval in
3510     yes) enable_static=yes ;;
3511     no) enable_static=no ;;
3512     *)
3513      enable_static=no
3514       # Look at the argument we got.  We use all the common list separators.
3515       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3516       for pkg in $enableval; do
3517         IFS="$lt_save_ifs"
3518         if test "X$pkg" = "X$p"; then
3519           enable_static=yes
3520         fi
3521       done
3522       IFS="$lt_save_ifs"
3523       ;;
3524     esac
3525 else
3526   enable_static=yes
3527 fi;
3528
3529 # Check whether --enable-fast-install or --disable-fast-install was given.
3530 if test "${enable_fast_install+set}" = set; then
3531   enableval="$enable_fast_install"
3532   p=${PACKAGE-default}
3533     case $enableval in
3534     yes) enable_fast_install=yes ;;
3535     no) enable_fast_install=no ;;
3536     *)
3537       enable_fast_install=no
3538       # Look at the argument we got.  We use all the common list separators.
3539       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3540       for pkg in $enableval; do
3541         IFS="$lt_save_ifs"
3542         if test "X$pkg" = "X$p"; then
3543           enable_fast_install=yes
3544         fi
3545       done
3546       IFS="$lt_save_ifs"
3547       ;;
3548     esac
3549 else
3550   enable_fast_install=yes
3551 fi;
3552
3553 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3554 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3555 if test "${lt_cv_path_SED+set}" = set; then
3556   echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558   # Loop through the user's path and test for sed and gsed.
3559 # Then use that list of sed's as ones to test for truncation.
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3562 do
3563   IFS=$as_save_IFS
3564   test -z "$as_dir" && as_dir=.
3565   for lt_ac_prog in sed gsed; do
3566     for ac_exec_ext in '' $ac_executable_extensions; do
3567       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3568         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3569       fi
3570     done
3571   done
3572 done
3573 lt_ac_max=0
3574 lt_ac_count=0
3575 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3576 # along with /bin/sed that truncates output.
3577 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3578   test ! -f $lt_ac_sed && break
3579   cat /dev/null > conftest.in
3580   lt_ac_count=0
3581   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3582   # Check for GNU sed and select it if it is found.
3583   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3584     lt_cv_path_SED=$lt_ac_sed
3585     break
3586   fi
3587   while true; do
3588     cat conftest.in conftest.in >conftest.tmp
3589     mv conftest.tmp conftest.in
3590     cp conftest.in conftest.nl
3591     echo >>conftest.nl
3592     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3593     cmp -s conftest.out conftest.nl || break
3594     # 10000 chars as input seems more than enough
3595     test $lt_ac_count -gt 10 && break
3596     lt_ac_count=`expr $lt_ac_count + 1`
3597     if test $lt_ac_count -gt $lt_ac_max; then
3598       lt_ac_max=$lt_ac_count
3599       lt_cv_path_SED=$lt_ac_sed
3600     fi
3601   done
3602 done
3603 SED=$lt_cv_path_SED
3604
3605 fi
3606
3607 echo "$as_me:$LINENO: result: $SED" >&5
3608 echo "${ECHO_T}$SED" >&6
3609
3610 echo "$as_me:$LINENO: checking for egrep" >&5
3611 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3612 if test "${ac_cv_prog_egrep+set}" = set; then
3613   echo $ECHO_N "(cached) $ECHO_C" >&6
3614 else
3615   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3616     then ac_cv_prog_egrep='grep -E'
3617     else ac_cv_prog_egrep='egrep'
3618     fi
3619 fi
3620 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3621 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3622  EGREP=$ac_cv_prog_egrep
3623
3624
3625
3626 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3627 if test "${with_gnu_ld+set}" = set; then
3628   withval="$with_gnu_ld"
3629   test "$withval" = no || with_gnu_ld=yes
3630 else
3631   with_gnu_ld=no
3632 fi;
3633 ac_prog=ld
3634 if test "$GCC" = yes; then
3635   # Check if gcc -print-prog-name=ld gives a path.
3636   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3637 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3638   case $host in
3639   *-*-mingw*)
3640     # gcc leaves a trailing carriage return which upsets mingw
3641     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3642   *)
3643     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3644   esac
3645   case $ac_prog in
3646     # Accept absolute paths.
3647     [\\/]* | ?:[\\/]*)
3648       re_direlt='/[^/][^/]*/\.\./'
3649       # Canonicalize the path of ld
3650       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3651       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3652         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3653       done
3654       test -z "$LD" && LD="$ac_prog"
3655       ;;
3656   "")
3657     # If it fails, then pretend we aren't using GCC.
3658     ac_prog=ld
3659     ;;
3660   *)
3661     # If it is relative, then search for the first ld in PATH.
3662     with_gnu_ld=unknown
3663     ;;
3664   esac
3665 elif test "$with_gnu_ld" = yes; then
3666   echo "$as_me:$LINENO: checking for GNU ld" >&5
3667 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3668 else
3669   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3670 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3671 fi
3672 if test "${lt_cv_path_LD+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   if test -z "$LD"; then
3676   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3677   for ac_dir in $PATH; do
3678     IFS="$lt_save_ifs"
3679     test -z "$ac_dir" && ac_dir=.
3680     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3681       lt_cv_path_LD="$ac_dir/$ac_prog"
3682       # Check to see if the program is GNU ld.  I'd rather use --version,
3683       # but apparently some GNU ld's only accept -v.
3684       # Break only if it was the GNU/non-GNU ld that we prefer.
3685       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3686       *GNU* | *'with BFD'*)
3687         test "$with_gnu_ld" != no && break
3688         ;;
3689       *)
3690         test "$with_gnu_ld" != yes && break
3691         ;;
3692       esac
3693     fi
3694   done
3695   IFS="$lt_save_ifs"
3696 else
3697   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3698 fi
3699 fi
3700
3701 LD="$lt_cv_path_LD"
3702 if test -n "$LD"; then
3703   echo "$as_me:$LINENO: result: $LD" >&5
3704 echo "${ECHO_T}$LD" >&6
3705 else
3706   echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3708 fi
3709 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3710 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3711    { (exit 1); exit 1; }; }
3712 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3713 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3714 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3718 case `"$LD" -v 2>&1 </dev/null` in
3719 *GNU* | *'with BFD'*)
3720   lt_cv_prog_gnu_ld=yes
3721   ;;
3722 *)
3723   lt_cv_prog_gnu_ld=no
3724   ;;
3725 esac
3726 fi
3727 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3728 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3729 with_gnu_ld=$lt_cv_prog_gnu_ld
3730
3731
3732 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3733 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3734 if test "${lt_cv_ld_reload_flag+set}" = set; then
3735   echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737   lt_cv_ld_reload_flag='-r'
3738 fi
3739 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3740 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3741 reload_flag=$lt_cv_ld_reload_flag
3742 case $reload_flag in
3743 "" | " "*) ;;
3744 *) reload_flag=" $reload_flag" ;;
3745 esac
3746 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3747
3748 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3749 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3750 if test "${lt_cv_path_NM+set}" = set; then
3751   echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753   if test -n "$NM"; then
3754   # Let the user override the test.
3755   lt_cv_path_NM="$NM"
3756 else
3757   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3758   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3759     IFS="$lt_save_ifs"
3760     test -z "$ac_dir" && ac_dir=.
3761     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3762     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3763       # Check to see if the nm accepts a BSD-compat flag.
3764       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3765       #   nm: unknown option "B" ignored
3766       # Tru64's nm complains that /dev/null is an invalid object file
3767       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3768       */dev/null* | *'Invalid file or object type'*)
3769         lt_cv_path_NM="$tmp_nm -B"
3770         break
3771         ;;
3772       *)
3773         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3774         */dev/null*)
3775           lt_cv_path_NM="$tmp_nm -p"
3776           break
3777           ;;
3778         *)
3779           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3780           continue # so that we can try to find one that supports BSD flags
3781           ;;
3782         esac
3783       esac
3784     fi
3785   done
3786   IFS="$lt_save_ifs"
3787   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3788 fi
3789 fi
3790 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3791 echo "${ECHO_T}$lt_cv_path_NM" >&6
3792 NM="$lt_cv_path_NM"
3793
3794 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3795 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3796 LN_S=$as_ln_s
3797 if test "$LN_S" = "ln -s"; then
3798   echo "$as_me:$LINENO: result: yes" >&5
3799 echo "${ECHO_T}yes" >&6
3800 else
3801   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3802 echo "${ECHO_T}no, using $LN_S" >&6
3803 fi
3804
3805 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3806 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3807 if test "${lt_cv_deplibs_check_method+set}" = set; then
3808   echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810   lt_cv_file_magic_cmd='$MAGIC_CMD'
3811 lt_cv_file_magic_test_file=
3812 lt_cv_deplibs_check_method='unknown'
3813 # Need to set the preceding variable on all platforms that support
3814 # interlibrary dependencies.
3815 # 'none' -- dependencies not supported.
3816 # `unknown' -- same as none, but documents that we really don't know.
3817 # 'pass_all' -- all dependencies passed with no checks.
3818 # 'test_compile' -- check by making test program.
3819 # 'file_magic [[regex]]' -- check by looking for files in library path
3820 # which responds to the $file_magic_cmd with a given extended regex.
3821 # If you have `file' or equivalent on your system and you're not sure
3822 # whether `pass_all' will *always* work, you probably want this one.
3823
3824 case $host_os in
3825 aix4* | aix5*)
3826   lt_cv_deplibs_check_method=pass_all
3827   ;;
3828
3829 beos*)
3830   lt_cv_deplibs_check_method=pass_all
3831   ;;
3832
3833 bsdi4*)
3834   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3835   lt_cv_file_magic_cmd='/usr/bin/file -L'
3836   lt_cv_file_magic_test_file=/shlib/libc.so
3837   ;;
3838
3839 cygwin* | mingw* | pw32*)
3840   # win32_libid is a shell function defined in ltmain.sh
3841   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3842   lt_cv_file_magic_cmd='win32_libid'
3843   ;;
3844
3845 darwin* | rhapsody*)
3846   # this will be overwritten by pass_all, but leave it in just in case
3847   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3848   lt_cv_file_magic_cmd='/usr/bin/file -L'
3849   case "$host_os" in
3850   rhapsody* | darwin1.[012])
3851     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3852     ;;
3853   *) # Darwin 1.3 on
3854     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3855     ;;
3856   esac
3857   lt_cv_deplibs_check_method=pass_all
3858   ;;
3859
3860 freebsd*)
3861   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3862     case $host_cpu in
3863     i*86 )
3864       # Not sure whether the presence of OpenBSD here was a mistake.
3865       # Let's accept both of them until this is cleared up.
3866       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3867       lt_cv_file_magic_cmd=/usr/bin/file
3868       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3869       ;;
3870     esac
3871   else
3872     lt_cv_deplibs_check_method=pass_all
3873   fi
3874   ;;
3875
3876 gnu*)
3877   lt_cv_deplibs_check_method=pass_all
3878   ;;
3879
3880 hpux10.20* | hpux11*)
3881   lt_cv_file_magic_cmd=/usr/bin/file
3882   case "$host_cpu" in
3883   ia64*)
3884     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3885     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3886     ;;
3887   hppa*64*)
3888     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]'
3889     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3890     ;;
3891   *)
3892     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3893     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3894     ;;
3895   esac
3896   ;;
3897
3898 irix5* | irix6* | nonstopux*)
3899   case $host_os in
3900   irix5* | nonstopux*)
3901     # this will be overridden with pass_all, but let us keep it just in case
3902     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3903     ;;
3904   *)
3905     case $LD in
3906     *-32|*"-32 ") libmagic=32-bit;;
3907     *-n32|*"-n32 ") libmagic=N32;;
3908     *-64|*"-64 ") libmagic=64-bit;;
3909     *) libmagic=never-match;;
3910     esac
3911     # this will be overridden with pass_all, but let us keep it just in case
3912     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3913     ;;
3914   esac
3915   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3916   lt_cv_deplibs_check_method=pass_all
3917   ;;
3918
3919 # This must be Linux ELF.
3920 linux*)
3921   case $host_cpu in
3922   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3923     lt_cv_deplibs_check_method=pass_all ;;
3924   *)
3925     # glibc up to 2.1.1 does not perform some relocations on ARM
3926     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3927   esac
3928   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3929   ;;
3930
3931 netbsd*)
3932   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3933     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3934   else
3935     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3936   fi
3937   ;;
3938
3939 newos6*)
3940   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3941   lt_cv_file_magic_cmd=/usr/bin/file
3942   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3943   ;;
3944
3945 nto-qnx)
3946   lt_cv_deplibs_check_method=unknown
3947   ;;
3948
3949 openbsd*)
3950   lt_cv_file_magic_cmd=/usr/bin/file
3951   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3952   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3953     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3954   else
3955     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3956   fi
3957   ;;
3958
3959 osf3* | osf4* | osf5*)
3960   # this will be overridden with pass_all, but let us keep it just in case
3961   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3962   lt_cv_file_magic_test_file=/shlib/libc.so
3963   lt_cv_deplibs_check_method=pass_all
3964   ;;
3965
3966 sco3.2v5*)
3967   lt_cv_deplibs_check_method=pass_all
3968   ;;
3969
3970 solaris*)
3971   lt_cv_deplibs_check_method=pass_all
3972   lt_cv_file_magic_test_file=/lib/libc.so
3973   ;;
3974
3975 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3976   case $host_vendor in
3977   motorola)
3978     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]'
3979     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3980     ;;
3981   ncr)
3982     lt_cv_deplibs_check_method=pass_all
3983     ;;
3984   sequent)
3985     lt_cv_file_magic_cmd='/bin/file'
3986     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3987     ;;
3988   sni)
3989     lt_cv_file_magic_cmd='/bin/file'
3990     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3991     lt_cv_file_magic_test_file=/lib/libc.so
3992     ;;
3993   siemens)
3994     lt_cv_deplibs_check_method=pass_all
3995     ;;
3996   esac
3997   ;;
3998
3999 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4000   lt_cv_deplibs_check_method=pass_all
4001   ;;
4002 esac
4003
4004 fi
4005 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4006 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4007 file_magic_cmd=$lt_cv_file_magic_cmd
4008 deplibs_check_method=$lt_cv_deplibs_check_method
4009 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4010
4011
4012
4013
4014 # If no C compiler was specified, use CC.
4015 LTCC=${LTCC-"$CC"}
4016
4017 # Allow CC to be a program name with arguments.
4018 compiler=$CC
4019
4020 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4021 if test "${enable_libtool_lock+set}" = set; then
4022   enableval="$enable_libtool_lock"
4023
4024 fi;
4025 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4026
4027 # Some flags need to be propagated to the compiler or linker for good
4028 # libtool support.
4029 case $host in
4030 ia64-*-hpux*)
4031   # Find out which ABI we are using.
4032   echo 'int i;' > conftest.$ac_ext
4033   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034   (eval $ac_compile) 2>&5
4035   ac_status=$?
4036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); }; then
4038     case `/usr/bin/file conftest.$ac_objext` in
4039     *ELF-32*)
4040       HPUX_IA64_MODE="32"
4041       ;;
4042     *ELF-64*)
4043       HPUX_IA64_MODE="64"
4044       ;;
4045     esac
4046   fi
4047   rm -rf conftest*
4048   ;;
4049 *-*-irix6*)
4050   # Find out which ABI we are using.
4051   echo '#line 4051 "configure"' > conftest.$ac_ext
4052   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4053   (eval $ac_compile) 2>&5
4054   ac_status=$?
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); }; then
4057    if test "$lt_cv_prog_gnu_ld" = yes; then
4058     case `/usr/bin/file conftest.$ac_objext` in
4059     *32-bit*)
4060       LD="${LD-ld} -melf32bsmip"
4061       ;;
4062     *N32*)
4063       LD="${LD-ld} -melf32bmipn32"
4064       ;;
4065     *64-bit*)
4066       LD="${LD-ld} -melf64bmip"
4067       ;;
4068     esac
4069    else
4070     case `/usr/bin/file conftest.$ac_objext` in
4071     *32-bit*)
4072       LD="${LD-ld} -32"
4073       ;;
4074     *N32*)
4075       LD="${LD-ld} -n32"
4076       ;;
4077     *64-bit*)
4078       LD="${LD-ld} -64"
4079       ;;
4080     esac
4081    fi
4082   fi
4083   rm -rf conftest*
4084   ;;
4085
4086 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4087   # Find out which ABI we are using.
4088   echo 'int i;' > conftest.$ac_ext
4089   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090   (eval $ac_compile) 2>&5
4091   ac_status=$?
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); }; then
4094     case "`/usr/bin/file conftest.o`" in
4095     *32-bit*)
4096       case $host in
4097         x86_64-*linux*)
4098           LD="${LD-ld} -m elf_i386"
4099           ;;
4100         ppc64-*linux*)
4101           LD="${LD-ld} -m elf32ppclinux"
4102           ;;
4103         s390x-*linux*)
4104           LD="${LD-ld} -m elf_s390"
4105           ;;
4106         sparc64-*linux*)
4107           LD="${LD-ld} -m elf32_sparc"
4108           ;;
4109       esac
4110       ;;
4111     *64-bit*)
4112       case $host in
4113         x86_64-*linux*)
4114           LD="${LD-ld} -m elf_x86_64"
4115           ;;
4116         ppc*-*linux*|powerpc*-*linux*)
4117           LD="${LD-ld} -m elf64ppc"
4118           ;;
4119         s390*-*linux*)
4120           LD="${LD-ld} -m elf64_s390"
4121           ;;
4122         sparc*-*linux*)
4123           LD="${LD-ld} -m elf64_sparc"
4124           ;;
4125       esac
4126       ;;
4127     esac
4128   fi
4129   rm -rf conftest*
4130   ;;
4131
4132 *-*-sco3.2v5*)
4133   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4134   SAVE_CFLAGS="$CFLAGS"
4135   CFLAGS="$CFLAGS -belf"
4136   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4137 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4138 if test "${lt_cv_cc_needs_belf+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141   ac_ext=c
4142 ac_cpp='$CPP $CPPFLAGS'
4143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146
4147      cat >conftest.$ac_ext <<_ACEOF
4148 #line $LINENO "configure"
4149 /* confdefs.h.  */
4150 _ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h.  */
4154
4155 int
4156 main ()
4157 {
4158
4159   ;
4160   return 0;
4161 }
4162 _ACEOF
4163 rm -f conftest.$ac_objext conftest$ac_exeext
4164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4165   (eval $ac_link) 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); } &&
4169          { ac_try='test -s conftest$ac_exeext'
4170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171   (eval $ac_try) 2>&5
4172   ac_status=$?
4173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174   (exit $ac_status); }; }; then
4175   lt_cv_cc_needs_belf=yes
4176 else
4177   echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4179
4180 lt_cv_cc_needs_belf=no
4181 fi
4182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4183      ac_ext=c
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188
4189 fi
4190 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4191 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4192   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4193     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4194     CFLAGS="$SAVE_CFLAGS"
4195   fi
4196   ;;
4197
4198 esac
4199
4200 need_locks="$enable_libtool_lock"
4201
4202
4203
4204 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4205 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4206 if test "${ac_cv_header_stdc+set}" = set; then
4207   echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209   cat >conftest.$ac_ext <<_ACEOF
4210 #line $LINENO "configure"
4211 /* confdefs.h.  */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h.  */
4216 #include <stdlib.h>
4217 #include <stdarg.h>
4218 #include <string.h>
4219 #include <float.h>
4220
4221 int
4222 main ()
4223 {
4224
4225   ;
4226   return 0;
4227 }
4228 _ACEOF
4229 rm -f conftest.$ac_objext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4231   (eval $ac_compile) 2>&5
4232   ac_status=$?
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); } &&
4235          { ac_try='test -s conftest.$ac_objext'
4236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237   (eval $ac_try) 2>&5
4238   ac_status=$?
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); }; }; then
4241   ac_cv_header_stdc=yes
4242 else
4243   echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4245
4246 ac_cv_header_stdc=no
4247 fi
4248 rm -f conftest.$ac_objext conftest.$ac_ext
4249
4250 if test $ac_cv_header_stdc = yes; then
4251   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4252   cat >conftest.$ac_ext <<_ACEOF
4253 #line $LINENO "configure"
4254 /* confdefs.h.  */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h.  */
4259 #include <string.h>
4260
4261 _ACEOF
4262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4263   $EGREP "memchr" >/dev/null 2>&1; then
4264   :
4265 else
4266   ac_cv_header_stdc=no
4267 fi
4268 rm -f conftest*
4269
4270 fi
4271
4272 if test $ac_cv_header_stdc = yes; then
4273   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4274   cat >conftest.$ac_ext <<_ACEOF
4275 #line $LINENO "configure"
4276 /* confdefs.h.  */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h.  */
4281 #include <stdlib.h>
4282
4283 _ACEOF
4284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4285   $EGREP "free" >/dev/null 2>&1; then
4286   :
4287 else
4288   ac_cv_header_stdc=no
4289 fi
4290 rm -f conftest*
4291
4292 fi
4293
4294 if test $ac_cv_header_stdc = yes; then
4295   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4296   if test "$cross_compiling" = yes; then
4297   :
4298 else
4299   cat >conftest.$ac_ext <<_ACEOF
4300 #line $LINENO "configure"
4301 /* confdefs.h.  */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h.  */
4306 #include <ctype.h>
4307 #if ((' ' & 0x0FF) == 0x020)
4308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4310 #else
4311 # define ISLOWER(c) \
4312                    (('a' <= (c) && (c) <= 'i') \
4313                      || ('j' <= (c) && (c) <= 'r') \
4314                      || ('s' <= (c) && (c) <= 'z'))
4315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4316 #endif
4317
4318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4319 int
4320 main ()
4321 {
4322   int i;
4323   for (i = 0; i < 256; i++)
4324     if (XOR (islower (i), ISLOWER (i))
4325         || toupper (i) != TOUPPER (i))
4326       exit(2);
4327   exit (0);
4328 }
4329 _ACEOF
4330 rm -f conftest$ac_exeext
4331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4332   (eval $ac_link) 2>&5
4333   ac_status=$?
4334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337   (eval $ac_try) 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }; }; then
4341   :
4342 else
4343   echo "$as_me: program exited with status $ac_status" >&5
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4346
4347 ( exit $ac_status )
4348 ac_cv_header_stdc=no
4349 fi
4350 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4351 fi
4352 fi
4353 fi
4354 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4355 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4356 if test $ac_cv_header_stdc = yes; then
4357
4358 cat >>confdefs.h <<\_ACEOF
4359 #define STDC_HEADERS 1
4360 _ACEOF
4361
4362 fi
4363
4364 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4375                   inttypes.h stdint.h unistd.h
4376 do
4377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4378 echo "$as_me:$LINENO: checking for $ac_header" >&5
4379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4381   echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383   cat >conftest.$ac_ext <<_ACEOF
4384 #line $LINENO "configure"
4385 /* confdefs.h.  */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h.  */
4390 $ac_includes_default
4391
4392 #include <$ac_header>
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396   (eval $ac_compile) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); } &&
4400          { ac_try='test -s conftest.$ac_objext'
4401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402   (eval $ac_try) 2>&5
4403   ac_status=$?
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); }; }; then
4406   eval "$as_ac_Header=yes"
4407 else
4408   echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4410
4411 eval "$as_ac_Header=no"
4412 fi
4413 rm -f conftest.$ac_objext conftest.$ac_ext
4414 fi
4415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4418   cat >>confdefs.h <<_ACEOF
4419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4420 _ACEOF
4421
4422 fi
4423
4424 done
4425
4426
4427
4428 for ac_header in dlfcn.h
4429 do
4430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4432   echo "$as_me:$LINENO: checking for $ac_header" >&5
4433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4435   echo $ECHO_N "(cached) $ECHO_C" >&6
4436 fi
4437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4439 else
4440   # Is the header compilable?
4441 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4443 cat >conftest.$ac_ext <<_ACEOF
4444 #line $LINENO "configure"
4445 /* confdefs.h.  */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h.  */
4450 $ac_includes_default
4451 #include <$ac_header>
4452 _ACEOF
4453 rm -f conftest.$ac_objext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455   (eval $ac_compile) 2>&5
4456   ac_status=$?
4457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458   (exit $ac_status); } &&
4459          { ac_try='test -s conftest.$ac_objext'
4460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461   (eval $ac_try) 2>&5
4462   ac_status=$?
4463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464   (exit $ac_status); }; }; then
4465   ac_header_compiler=yes
4466 else
4467   echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4469
4470 ac_header_compiler=no
4471 fi
4472 rm -f conftest.$ac_objext conftest.$ac_ext
4473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4474 echo "${ECHO_T}$ac_header_compiler" >&6
4475
4476 # Is the header present?
4477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4479 cat >conftest.$ac_ext <<_ACEOF
4480 #line $LINENO "configure"
4481 /* confdefs.h.  */
4482 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h.  */
4486 #include <$ac_header>
4487 _ACEOF
4488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4489   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4490   ac_status=$?
4491   grep -v '^ *+' conftest.er1 >conftest.err
4492   rm -f conftest.er1
4493   cat conftest.err >&5
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); } >/dev/null; then
4496   if test -s conftest.err; then
4497     ac_cpp_err=$ac_c_preproc_warn_flag
4498   else
4499     ac_cpp_err=
4500   fi
4501 else
4502   ac_cpp_err=yes
4503 fi
4504 if test -z "$ac_cpp_err"; then
4505   ac_header_preproc=yes
4506 else
4507   echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.$ac_ext >&5
4509
4510   ac_header_preproc=no
4511 fi
4512 rm -f conftest.err conftest.$ac_ext
4513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4514 echo "${ECHO_T}$ac_header_preproc" >&6
4515
4516 # So?  What about this header?
4517 case $ac_header_compiler:$ac_header_preproc in
4518   yes:no )
4519     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4523     (
4524       cat <<\_ASBOX
4525 ## ------------------------------------ ##
4526 ## Report this to bug-autoconf@gnu.org. ##
4527 ## ------------------------------------ ##
4528 _ASBOX
4529     ) |
4530       sed "s/^/$as_me: WARNING:     /" >&2
4531     ;;
4532   no:yes )
4533     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4535     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4537     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4539     (
4540       cat <<\_ASBOX
4541 ## ------------------------------------ ##
4542 ## Report this to bug-autoconf@gnu.org. ##
4543 ## ------------------------------------ ##
4544 _ASBOX
4545     ) |
4546       sed "s/^/$as_me: WARNING:     /" >&2
4547     ;;
4548 esac
4549 echo "$as_me:$LINENO: checking for $ac_header" >&5
4550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   eval "$as_ac_Header=$ac_header_preproc"
4555 fi
4556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4558
4559 fi
4560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4561   cat >>confdefs.h <<_ACEOF
4562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4563 _ACEOF
4564
4565 fi
4566
4567 done
4568
4569 ac_ext=cc
4570 ac_cpp='$CXXCPP $CPPFLAGS'
4571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4574 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4575 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4576 if test -z "$CXXCPP"; then
4577   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4578   echo $ECHO_N "(cached) $ECHO_C" >&6
4579 else
4580       # Double quotes because CXXCPP needs to be expanded
4581     for CXXCPP in "$CXX -E" "/lib/cpp"
4582     do
4583       ac_preproc_ok=false
4584 for ac_cxx_preproc_warn_flag in '' yes
4585 do
4586   # Use a header file that comes with gcc, so configuring glibc
4587   # with a fresh cross-compiler works.
4588   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4589   # <limits.h> exists even on freestanding compilers.
4590   # On the NeXT, cc -E runs the code through the compiler's parser,
4591   # not just through cpp. "Syntax error" is here to catch this case.
4592   cat >conftest.$ac_ext <<_ACEOF
4593 #line $LINENO "configure"
4594 /* confdefs.h.  */
4595 _ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h.  */
4599 #ifdef __STDC__
4600 # include <limits.h>
4601 #else
4602 # include <assert.h>
4603 #endif
4604                      Syntax error
4605 _ACEOF
4606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4607   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4608   ac_status=$?
4609   grep -v '^ *+' conftest.er1 >conftest.err
4610   rm -f conftest.er1
4611   cat conftest.err >&5
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); } >/dev/null; then
4614   if test -s conftest.err; then
4615     ac_cpp_err=$ac_cxx_preproc_warn_flag
4616   else
4617     ac_cpp_err=
4618   fi
4619 else
4620   ac_cpp_err=yes
4621 fi
4622 if test -z "$ac_cpp_err"; then
4623   :
4624 else
4625   echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4627
4628   # Broken: fails on valid input.
4629 continue
4630 fi
4631 rm -f conftest.err conftest.$ac_ext
4632
4633   # OK, works on sane cases.  Now check whether non-existent headers
4634   # can be detected and how.
4635   cat >conftest.$ac_ext <<_ACEOF
4636 #line $LINENO "configure"
4637 /* confdefs.h.  */
4638 _ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h.  */
4642 #include <ac_nonexistent.h>
4643 _ACEOF
4644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4645   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4646   ac_status=$?
4647   grep -v '^ *+' conftest.er1 >conftest.err
4648   rm -f conftest.er1
4649   cat conftest.err >&5
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); } >/dev/null; then
4652   if test -s conftest.err; then
4653     ac_cpp_err=$ac_cxx_preproc_warn_flag
4654   else
4655     ac_cpp_err=
4656   fi
4657 else
4658   ac_cpp_err=yes
4659 fi
4660 if test -z "$ac_cpp_err"; then
4661   # Broken: success on invalid input.
4662 continue
4663 else
4664   echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4666
4667   # Passes both tests.
4668 ac_preproc_ok=:
4669 break
4670 fi
4671 rm -f conftest.err conftest.$ac_ext
4672
4673 done
4674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4675 rm -f conftest.err conftest.$ac_ext
4676 if $ac_preproc_ok; then
4677   break
4678 fi
4679
4680     done
4681     ac_cv_prog_CXXCPP=$CXXCPP
4682
4683 fi
4684   CXXCPP=$ac_cv_prog_CXXCPP
4685 else
4686   ac_cv_prog_CXXCPP=$CXXCPP
4687 fi
4688 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4689 echo "${ECHO_T}$CXXCPP" >&6
4690 ac_preproc_ok=false
4691 for ac_cxx_preproc_warn_flag in '' yes
4692 do
4693   # Use a header file that comes with gcc, so configuring glibc
4694   # with a fresh cross-compiler works.
4695   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4696   # <limits.h> exists even on freestanding compilers.
4697   # On the NeXT, cc -E runs the code through the compiler's parser,
4698   # not just through cpp. "Syntax error" is here to catch this case.
4699   cat >conftest.$ac_ext <<_ACEOF
4700 #line $LINENO "configure"
4701 /* confdefs.h.  */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h.  */
4706 #ifdef __STDC__
4707 # include <limits.h>
4708 #else
4709 # include <assert.h>
4710 #endif
4711                      Syntax error
4712 _ACEOF
4713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4714   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4715   ac_status=$?
4716   grep -v '^ *+' conftest.er1 >conftest.err
4717   rm -f conftest.er1
4718   cat conftest.err >&5
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); } >/dev/null; then
4721   if test -s conftest.err; then
4722     ac_cpp_err=$ac_cxx_preproc_warn_flag
4723   else
4724     ac_cpp_err=
4725   fi
4726 else
4727   ac_cpp_err=yes
4728 fi
4729 if test -z "$ac_cpp_err"; then
4730   :
4731 else
4732   echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4734
4735   # Broken: fails on valid input.
4736 continue
4737 fi
4738 rm -f conftest.err conftest.$ac_ext
4739
4740   # OK, works on sane cases.  Now check whether non-existent headers
4741   # can be detected and how.
4742   cat >conftest.$ac_ext <<_ACEOF
4743 #line $LINENO "configure"
4744 /* confdefs.h.  */
4745 _ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h.  */
4749 #include <ac_nonexistent.h>
4750 _ACEOF
4751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4752   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4753   ac_status=$?
4754   grep -v '^ *+' conftest.er1 >conftest.err
4755   rm -f conftest.er1
4756   cat conftest.err >&5
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); } >/dev/null; then
4759   if test -s conftest.err; then
4760     ac_cpp_err=$ac_cxx_preproc_warn_flag
4761   else
4762     ac_cpp_err=
4763   fi
4764 else
4765   ac_cpp_err=yes
4766 fi
4767 if test -z "$ac_cpp_err"; then
4768   # Broken: success on invalid input.
4769 continue
4770 else
4771   echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4773
4774   # Passes both tests.
4775 ac_preproc_ok=:
4776 break
4777 fi
4778 rm -f conftest.err conftest.$ac_ext
4779
4780 done
4781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4782 rm -f conftest.err conftest.$ac_ext
4783 if $ac_preproc_ok; then
4784   :
4785 else
4786   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4787 See \`config.log' for more details." >&5
4788 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4789 See \`config.log' for more details." >&2;}
4790    { (exit 1); exit 1; }; }
4791 fi
4792
4793 ac_ext=cc
4794 ac_cpp='$CXXCPP $CPPFLAGS'
4795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4798
4799
4800 ac_ext=f
4801 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4802 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4804 if test -n "$ac_tool_prefix"; then
4805   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4806   do
4807     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4809 echo "$as_me:$LINENO: checking for $ac_word" >&5
4810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4811 if test "${ac_cv_prog_F77+set}" = set; then
4812   echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814   if test -n "$F77"; then
4815   ac_cv_prog_F77="$F77" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4819 do
4820   IFS=$as_save_IFS
4821   test -z "$as_dir" && as_dir=.
4822   for ac_exec_ext in '' $ac_executable_extensions; do
4823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4824     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826     break 2
4827   fi
4828 done
4829 done
4830
4831 fi
4832 fi
4833 F77=$ac_cv_prog_F77
4834 if test -n "$F77"; then
4835   echo "$as_me:$LINENO: result: $F77" >&5
4836 echo "${ECHO_T}$F77" >&6
4837 else
4838   echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6
4840 fi
4841
4842     test -n "$F77" && break
4843   done
4844 fi
4845 if test -z "$F77"; then
4846   ac_ct_F77=$F77
4847   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4848 do
4849   # Extract the first word of "$ac_prog", so it can be a program name with args.
4850 set dummy $ac_prog; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   if test -n "$ac_ct_F77"; then
4857   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862   IFS=$as_save_IFS
4863   test -z "$as_dir" && as_dir=.
4864   for ac_exec_ext in '' $ac_executable_extensions; do
4865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866     ac_cv_prog_ac_ct_F77="$ac_prog"
4867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868     break 2
4869   fi
4870 done
4871 done
4872
4873 fi
4874 fi
4875 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4876 if test -n "$ac_ct_F77"; then
4877   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4878 echo "${ECHO_T}$ac_ct_F77" >&6
4879 else
4880   echo "$as_me:$LINENO: result: no" >&5
4881 echo "${ECHO_T}no" >&6
4882 fi
4883
4884   test -n "$ac_ct_F77" && break
4885 done
4886
4887   F77=$ac_ct_F77
4888 fi
4889
4890
4891 # Provide some information about the compiler.
4892 echo "$as_me:4892:" \
4893      "checking for Fortran 77 compiler version" >&5
4894 ac_compiler=`set X $ac_compile; echo $2`
4895 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4896   (eval $ac_compiler --version </dev/null >&5) 2>&5
4897   ac_status=$?
4898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899   (exit $ac_status); }
4900 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4901   (eval $ac_compiler -v </dev/null >&5) 2>&5
4902   ac_status=$?
4903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904   (exit $ac_status); }
4905 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4906   (eval $ac_compiler -V </dev/null >&5) 2>&5
4907   ac_status=$?
4908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); }
4910
4911 # If we don't use `.F' as extension, the preprocessor is not run on the
4912 # input file.
4913 ac_save_ext=$ac_ext
4914 ac_ext=F
4915 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4916 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4917 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4918   echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920   cat >conftest.$ac_ext <<_ACEOF
4921       program main
4922 #ifndef __GNUC__
4923        choke me
4924 #endif
4925
4926       end
4927 _ACEOF
4928 rm -f conftest.$ac_objext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930   (eval $ac_compile) 2>&5
4931   ac_status=$?
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); } &&
4934          { ac_try='test -s conftest.$ac_objext'
4935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936   (eval $ac_try) 2>&5
4937   ac_status=$?
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); }; }; then
4940   ac_compiler_gnu=yes
4941 else
4942   echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4944
4945 ac_compiler_gnu=no
4946 fi
4947 rm -f conftest.$ac_objext conftest.$ac_ext
4948 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4949
4950 fi
4951 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4952 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4953 ac_ext=$ac_save_ext
4954 G77=`test $ac_compiler_gnu = yes && echo yes`
4955 ac_test_FFLAGS=${FFLAGS+set}
4956 ac_save_FFLAGS=$FFLAGS
4957 FFLAGS=
4958 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4959 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4960 if test "${ac_cv_prog_f77_g+set}" = set; then
4961   echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963   FFLAGS=-g
4964 cat >conftest.$ac_ext <<_ACEOF
4965       program main
4966
4967       end
4968 _ACEOF
4969 rm -f conftest.$ac_objext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4971   (eval $ac_compile) 2>&5
4972   ac_status=$?
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); } &&
4975          { ac_try='test -s conftest.$ac_objext'
4976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977   (eval $ac_try) 2>&5
4978   ac_status=$?
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); }; }; then
4981   ac_cv_prog_f77_g=yes
4982 else
4983   echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4985
4986 ac_cv_prog_f77_g=no
4987 fi
4988 rm -f conftest.$ac_objext conftest.$ac_ext
4989
4990 fi
4991 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4992 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4993 if test "$ac_test_FFLAGS" = set; then
4994   FFLAGS=$ac_save_FFLAGS
4995 elif test $ac_cv_prog_f77_g = yes; then
4996   if test "$G77" = yes; then
4997     FFLAGS="-g -O2"
4998   else
4999     FFLAGS="-g"
5000   fi
5001 else
5002   if test "$G77" = yes; then
5003     FFLAGS="-O2"
5004   else
5005     FFLAGS=
5006   fi
5007 fi
5008 ac_ext=c
5009 ac_cpp='$CPP $CPPFLAGS'
5010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013
5014
5015
5016 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5017
5018 # find the maximum length of command line arguments
5019 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5020 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5021 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5022   echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024     i=0
5025   testring="ABCD"
5026
5027   case $build_os in
5028   msdosdjgpp*)
5029     # On DJGPP, this test can blow up pretty badly due to problems in libc
5030     # (any single argument exceeding 2000 bytes causes a buffer overrun
5031     # during glob expansion).  Even if it were fixed, the result of this
5032     # check would be larger than it should be.
5033     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5034     ;;
5035
5036   gnu*)
5037     # Under GNU Hurd, this test is not required because there is
5038     # no limit to the length of command line arguments.
5039     # Libtool will interpret -1 as no limit whatsoever
5040     lt_cv_sys_max_cmd_len=-1;
5041     ;;
5042
5043   cygwin* | mingw*)
5044     # On Win9x/ME, this test blows up -- it succeeds, but takes
5045     # about 5 minutes as the teststring grows exponentially.
5046     # Worse, since 9x/ME are not pre-emptively multitasking,
5047     # you end up with a "frozen" computer, even though with patience
5048     # the test eventually succeeds (with a max line length of 256k).
5049     # Instead, let's just punt: use the minimum linelength reported by
5050     # all of the supported platforms: 8192 (on NT/2K/XP).
5051     lt_cv_sys_max_cmd_len=8192;
5052     ;;
5053
5054  *)
5055     # If test is not a shell built-in, we'll probably end up computing a
5056     # maximum length that is only half of the actual maximum length, but
5057     # we can't tell.
5058     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5059                = "XX$testring") >/dev/null 2>&1 &&
5060             new_result=`expr "X$testring" : ".*" 2>&1` &&
5061             lt_cv_sys_max_cmd_len=$new_result &&
5062             test $i != 17 # 1/2 MB should be enough
5063     do
5064       i=`expr $i + 1`
5065       testring=$testring$testring
5066     done
5067     testring=
5068     # Add a significant safety factor because C++ compilers can tack on massive
5069     # amounts of additional arguments before passing them to the linker.
5070     # It appears as though 1/2 is a usable value.
5071     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5072     ;;
5073   esac
5074
5075 fi
5076
5077 if test -n $lt_cv_sys_max_cmd_len ; then
5078   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5079 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5080 else
5081   echo "$as_me:$LINENO: result: none" >&5
5082 echo "${ECHO_T}none" >&6
5083 fi
5084
5085
5086
5087
5088 # Check for command to grab the raw symbol name followed by C symbol from nm.
5089 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5090 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5091 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5092   echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094
5095 # These are sane defaults that work on at least a few old systems.
5096 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5097
5098 # Character class describing NM global symbol codes.
5099 symcode='[BCDEGRST]'
5100
5101 # Regexp to match symbols that can be accessed directly from C.
5102 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5103
5104 # Transform the above into a raw symbol and a C symbol.
5105 symxfrm='\1 \2\3 \3'
5106
5107 # Transform an extracted symbol line into a proper C declaration
5108 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5109
5110 # Transform an extracted symbol line into symbol name and symbol address
5111 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'"
5112
5113 # Define system-specific variables.
5114 case $host_os in
5115 aix*)
5116   symcode='[BCDT]'
5117   ;;
5118 cygwin* | mingw* | pw32*)
5119   symcode='[ABCDGISTW]'
5120   ;;
5121 hpux*) # Its linker distinguishes data from code symbols
5122   if test "$host_cpu" = ia64; then
5123     symcode='[ABCDEGRST]'
5124   fi
5125   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5126   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'"
5127   ;;
5128 irix* | nonstopux*)
5129   symcode='[BCDEGRST]'
5130   ;;
5131 osf*)
5132   symcode='[BCDEGQRST]'
5133   ;;
5134 solaris* | sysv5*)
5135   symcode='[BDT]'
5136   ;;
5137 sysv4)
5138   symcode='[DFNSTU]'
5139   ;;
5140 esac
5141
5142 # Handle CRLF in mingw tool chain
5143 opt_cr=
5144 case $build_os in
5145 mingw*)
5146   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5147   ;;
5148 esac
5149
5150 # If we're using GNU nm, then use its standard symbol codes.
5151 case `$NM -V 2>&1` in
5152 *GNU* | *'with BFD'*)
5153   symcode='[ABCDGISTW]' ;;
5154 esac
5155
5156 # Try without a prefix undercore, then with it.
5157 for ac_symprfx in "" "_"; do
5158
5159   # Write the raw and C identifiers.
5160   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5161
5162   # Check to see that the pipe works correctly.
5163   pipe_works=no
5164
5165   rm -f conftest*
5166   cat > conftest.$ac_ext <<EOF
5167 #ifdef __cplusplus
5168 extern "C" {
5169 #endif
5170 char nm_test_var;
5171 void nm_test_func(){}
5172 #ifdef __cplusplus
5173 }
5174 #endif
5175 int main(){nm_test_var='a';nm_test_func();return(0);}
5176 EOF
5177
5178   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5179   (eval $ac_compile) 2>&5
5180   ac_status=$?
5181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182   (exit $ac_status); }; then
5183     # Now try to grab the symbols.
5184     nlist=conftest.nm
5185     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5186   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5187   ac_status=$?
5188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189   (exit $ac_status); } && test -s "$nlist"; then
5190       # Try sorting and uniquifying the output.
5191       if sort "$nlist" | uniq > "$nlist"T; then
5192         mv -f "$nlist"T "$nlist"
5193       else
5194         rm -f "$nlist"T
5195       fi
5196
5197       # Make sure that we snagged all the symbols we need.
5198       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5199         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5200           cat <<EOF > conftest.$ac_ext
5201 #ifdef __cplusplus
5202 extern "C" {
5203 #endif
5204
5205 EOF
5206           # Now generate the symbol file.
5207           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5208
5209           cat <<EOF >> conftest.$ac_ext
5210 #if defined (__STDC__) && __STDC__
5211 # define lt_ptr_t void *
5212 #else
5213 # define lt_ptr_t char *
5214 # define const
5215 #endif
5216
5217 /* The mapping between symbol names and symbols. */
5218 const struct {
5219   const char *name;
5220   lt_ptr_t address;
5221 }
5222 lt_preloaded_symbols[] =
5223 {
5224 EOF
5225           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5226           cat <<\EOF >> conftest.$ac_ext
5227   {0, (lt_ptr_t) 0}
5228 };
5229
5230 #ifdef __cplusplus
5231 }
5232 #endif
5233 EOF
5234           # Now try linking the two files.
5235           mv conftest.$ac_objext conftstm.$ac_objext
5236           lt_save_LIBS="$LIBS"
5237           lt_save_CFLAGS="$CFLAGS"
5238           LIBS="conftstm.$ac_objext"
5239           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5240           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5241   (eval $ac_link) 2>&5
5242   ac_status=$?
5243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5245             pipe_works=yes
5246           fi
5247           LIBS="$lt_save_LIBS"
5248           CFLAGS="$lt_save_CFLAGS"
5249         else
5250           echo "cannot find nm_test_func in $nlist" >&5
5251         fi
5252       else
5253         echo "cannot find nm_test_var in $nlist" >&5
5254       fi
5255     else
5256       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5257     fi
5258   else
5259     echo "$progname: failed program was:" >&5
5260     cat conftest.$ac_ext >&5
5261   fi
5262   rm -f conftest* conftst*
5263
5264   # Do not use the global_symbol_pipe unless it works.
5265   if test "$pipe_works" = yes; then
5266     break
5267   else
5268     lt_cv_sys_global_symbol_pipe=
5269   fi
5270 done
5271
5272 fi
5273
5274 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5275   lt_cv_sys_global_symbol_to_cdecl=
5276 fi
5277 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5278   echo "$as_me:$LINENO: result: failed" >&5
5279 echo "${ECHO_T}failed" >&6
5280 else
5281   echo "$as_me:$LINENO: result: ok" >&5
5282 echo "${ECHO_T}ok" >&6
5283 fi
5284
5285 echo "$as_me:$LINENO: checking for objdir" >&5
5286 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5287 if test "${lt_cv_objdir+set}" = set; then
5288   echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290   rm -f .libs 2>/dev/null
5291 mkdir .libs 2>/dev/null
5292 if test -d .libs; then
5293   lt_cv_objdir=.libs
5294 else
5295   # MS-DOS does not allow filenames that begin with a dot.
5296   lt_cv_objdir=_libs
5297 fi
5298 rmdir .libs 2>/dev/null
5299 fi
5300 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5301 echo "${ECHO_T}$lt_cv_objdir" >&6
5302 objdir=$lt_cv_objdir
5303
5304
5305
5306
5307
5308 case $host_os in
5309 aix3*)
5310   # AIX sometimes has problems with the GCC collect2 program.  For some
5311   # reason, if we set the COLLECT_NAMES environment variable, the problems
5312   # vanish in a puff of smoke.
5313   if test "X${COLLECT_NAMES+set}" != Xset; then
5314     COLLECT_NAMES=
5315     export COLLECT_NAMES
5316   fi
5317   ;;
5318 esac
5319
5320 # Sed substitution that helps us do robust quoting.  It backslashifies
5321 # metacharacters that are still active within double-quoted strings.
5322 Xsed='sed -e s/^X//'
5323 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5324
5325 # Same as above, but do not quote variable references.
5326 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5327
5328 # Sed substitution to delay expansion of an escaped shell variable in a
5329 # double_quote_subst'ed string.
5330 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5331
5332 # Sed substitution to avoid accidental globbing in evaled expressions
5333 no_glob_subst='s/\*/\\\*/g'
5334
5335 # Constants:
5336 rm="rm -f"
5337
5338 # Global variables:
5339 default_ofile=mklib
5340 can_build_shared=yes
5341
5342 # All known linkers require a `.a' archive for static linking (except M$VC,
5343 # which needs '.lib').
5344 libext=a
5345 ltmain="$ac_aux_dir/ltmain.sh"
5346 ofile="$default_ofile"
5347 with_gnu_ld="$lt_cv_prog_gnu_ld"
5348
5349 if test -n "$ac_tool_prefix"; then
5350   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5351 set dummy ${ac_tool_prefix}ar; ac_word=$2
5352 echo "$as_me:$LINENO: checking for $ac_word" >&5
5353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5354 if test "${ac_cv_prog_AR+set}" = set; then
5355   echo $ECHO_N "(cached) $ECHO_C" >&6
5356 else
5357   if test -n "$AR"; then
5358   ac_cv_prog_AR="$AR" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363   IFS=$as_save_IFS
5364   test -z "$as_dir" && as_dir=.
5365   for ac_exec_ext in '' $ac_executable_extensions; do
5366   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367     ac_cv_prog_AR="${ac_tool_prefix}ar"
5368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369     break 2
5370   fi
5371 done
5372 done
5373
5374 fi
5375 fi
5376 AR=$ac_cv_prog_AR
5377 if test -n "$AR"; then
5378   echo "$as_me:$LINENO: result: $AR" >&5
5379 echo "${ECHO_T}$AR" >&6
5380 else
5381   echo "$as_me:$LINENO: result: no" >&5
5382 echo "${ECHO_T}no" >&6
5383 fi
5384
5385 fi
5386 if test -z "$ac_cv_prog_AR"; then
5387   ac_ct_AR=$AR
5388   # Extract the first word of "ar", so it can be a program name with args.
5389 set dummy ar; ac_word=$2
5390 echo "$as_me:$LINENO: checking for $ac_word" >&5
5391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5392 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5393   echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395   if test -n "$ac_ct_AR"; then
5396   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5397 else
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5400 do
5401   IFS=$as_save_IFS
5402   test -z "$as_dir" && as_dir=.
5403   for ac_exec_ext in '' $ac_executable_extensions; do
5404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405     ac_cv_prog_ac_ct_AR="ar"
5406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5407     break 2
5408   fi
5409 done
5410 done
5411
5412   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5413 fi
5414 fi
5415 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5416 if test -n "$ac_ct_AR"; then
5417   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5418 echo "${ECHO_T}$ac_ct_AR" >&6
5419 else
5420   echo "$as_me:$LINENO: result: no" >&5
5421 echo "${ECHO_T}no" >&6
5422 fi
5423
5424   AR=$ac_ct_AR
5425 else
5426   AR="$ac_cv_prog_AR"
5427 fi
5428
5429 if test -n "$ac_tool_prefix"; then
5430   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5431 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5432 echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434 if test "${ac_cv_prog_RANLIB+set}" = set; then
5435   echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437   if test -n "$RANLIB"; then
5438   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5439 else
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5442 do
5443   IFS=$as_save_IFS
5444   test -z "$as_dir" && as_dir=.
5445   for ac_exec_ext in '' $ac_executable_extensions; do
5446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449     break 2
5450   fi
5451 done
5452 done
5453
5454 fi
5455 fi
5456 RANLIB=$ac_cv_prog_RANLIB
5457 if test -n "$RANLIB"; then
5458   echo "$as_me:$LINENO: result: $RANLIB" >&5
5459 echo "${ECHO_T}$RANLIB" >&6
5460 else
5461   echo "$as_me:$LINENO: result: no" >&5
5462 echo "${ECHO_T}no" >&6
5463 fi
5464
5465 fi
5466 if test -z "$ac_cv_prog_RANLIB"; then
5467   ac_ct_RANLIB=$RANLIB
5468   # Extract the first word of "ranlib", so it can be a program name with args.
5469 set dummy ranlib; ac_word=$2
5470 echo "$as_me:$LINENO: checking for $ac_word" >&5
5471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475   if test -n "$ac_ct_RANLIB"; then
5476   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5477 else
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5480 do
5481   IFS=$as_save_IFS
5482   test -z "$as_dir" && as_dir=.
5483   for ac_exec_ext in '' $ac_executable_extensions; do
5484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485     ac_cv_prog_ac_ct_RANLIB="ranlib"
5486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487     break 2
5488   fi
5489 done
5490 done
5491
5492   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5493 fi
5494 fi
5495 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5496 if test -n "$ac_ct_RANLIB"; then
5497   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5498 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5499 else
5500   echo "$as_me:$LINENO: result: no" >&5
5501 echo "${ECHO_T}no" >&6
5502 fi
5503
5504   RANLIB=$ac_ct_RANLIB
5505 else
5506   RANLIB="$ac_cv_prog_RANLIB"
5507 fi
5508
5509 if test -n "$ac_tool_prefix"; then
5510   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5511 set dummy ${ac_tool_prefix}strip; ac_word=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_prog_STRIP+set}" = set; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517   if test -n "$STRIP"; then
5518   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5519 else
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5522 do
5523   IFS=$as_save_IFS
5524   test -z "$as_dir" && as_dir=.
5525   for ac_exec_ext in '' $ac_executable_extensions; do
5526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5529     break 2
5530   fi
5531 done
5532 done
5533
5534 fi
5535 fi
5536 STRIP=$ac_cv_prog_STRIP
5537 if test -n "$STRIP"; then
5538   echo "$as_me:$LINENO: result: $STRIP" >&5
5539 echo "${ECHO_T}$STRIP" >&6
5540 else
5541   echo "$as_me:$LINENO: result: no" >&5
5542 echo "${ECHO_T}no" >&6
5543 fi
5544
5545 fi
5546 if test -z "$ac_cv_prog_STRIP"; then
5547   ac_ct_STRIP=$STRIP
5548   # Extract the first word of "strip", so it can be a program name with args.
5549 set dummy strip; ac_word=$2
5550 echo "$as_me:$LINENO: checking for $ac_word" >&5
5551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5552 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5553   echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555   if test -n "$ac_ct_STRIP"; then
5556   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5557 else
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH
5560 do
5561   IFS=$as_save_IFS
5562   test -z "$as_dir" && as_dir=.
5563   for ac_exec_ext in '' $ac_executable_extensions; do
5564   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5565     ac_cv_prog_ac_ct_STRIP="strip"
5566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5567     break 2
5568   fi
5569 done
5570 done
5571
5572   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5573 fi
5574 fi
5575 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5576 if test -n "$ac_ct_STRIP"; then
5577   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5578 echo "${ECHO_T}$ac_ct_STRIP" >&6
5579 else
5580   echo "$as_me:$LINENO: result: no" >&5
5581 echo "${ECHO_T}no" >&6
5582 fi
5583
5584   STRIP=$ac_ct_STRIP
5585 else
5586   STRIP="$ac_cv_prog_STRIP"
5587 fi
5588
5589
5590 old_CC="$CC"
5591 old_CFLAGS="$CFLAGS"
5592
5593 # Set sane defaults for various variables
5594 test -z "$AR" && AR=ar
5595 test -z "$AR_FLAGS" && AR_FLAGS=cru
5596 test -z "$AS" && AS=as
5597 test -z "$CC" && CC=cc
5598 test -z "$LTCC" && LTCC=$CC
5599 test -z "$DLLTOOL" && DLLTOOL=dlltool
5600 test -z "$LD" && LD=ld
5601 test -z "$LN_S" && LN_S="ln -s"
5602 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5603 test -z "$NM" && NM=nm
5604 test -z "$SED" && SED=sed
5605 test -z "$OBJDUMP" && OBJDUMP=objdump
5606 test -z "$RANLIB" && RANLIB=:
5607 test -z "$STRIP" && STRIP=:
5608 test -z "$ac_objext" && ac_objext=o
5609
5610 # Determine commands to create old-style static archives.
5611 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5612 old_postinstall_cmds='chmod 644 $oldlib'
5613 old_postuninstall_cmds=
5614
5615 if test -n "$RANLIB"; then
5616   case $host_os in
5617   openbsd*)
5618     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5619     ;;
5620   *)
5621     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5622     ;;
5623   esac
5624   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5625 fi
5626
5627 # Only perform the check for file, if the check method requires it
5628 case $deplibs_check_method in
5629 file_magic*)
5630   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5631     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5632 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5633 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5634   echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636   case $MAGIC_CMD in
5637 [\\/*] |  ?:[\\/]*)
5638   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5639   ;;
5640 *)
5641   lt_save_MAGIC_CMD="$MAGIC_CMD"
5642   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5643   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5644   for ac_dir in $ac_dummy; do
5645     IFS="$lt_save_ifs"
5646     test -z "$ac_dir" && ac_dir=.
5647     if test -f $ac_dir/${ac_tool_prefix}file; then
5648       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5649       if test -n "$file_magic_test_file"; then
5650         case $deplibs_check_method in
5651         "file_magic "*)
5652           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5653           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5654           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5655             $EGREP "$file_magic_regex" > /dev/null; then
5656             :
5657           else
5658             cat <<EOF 1>&2
5659
5660 *** Warning: the command libtool uses to detect shared libraries,
5661 *** $file_magic_cmd, produces output that libtool cannot recognize.
5662 *** The result is that libtool may fail to recognize shared libraries
5663 *** as such.  This will affect the creation of libtool libraries that
5664 *** depend on shared libraries, but programs linked with such libtool
5665 *** libraries will work regardless of this problem.  Nevertheless, you
5666 *** may want to report the problem to your system manager and/or to
5667 *** bug-libtool@gnu.org
5668
5669 EOF
5670           fi ;;
5671         esac
5672       fi
5673       break
5674     fi
5675   done
5676   IFS="$lt_save_ifs"
5677   MAGIC_CMD="$lt_save_MAGIC_CMD"
5678   ;;
5679 esac
5680 fi
5681
5682 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5683 if test -n "$MAGIC_CMD"; then
5684   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5685 echo "${ECHO_T}$MAGIC_CMD" >&6
5686 else
5687   echo "$as_me:$LINENO: result: no" >&5
5688 echo "${ECHO_T}no" >&6
5689 fi
5690
5691 if test -z "$lt_cv_path_MAGIC_CMD"; then
5692   if test -n "$ac_tool_prefix"; then
5693     echo "$as_me:$LINENO: checking for file" >&5
5694 echo $ECHO_N "checking for file... $ECHO_C" >&6
5695 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5696   echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698   case $MAGIC_CMD in
5699 [\\/*] |  ?:[\\/]*)
5700   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5701   ;;
5702 *)
5703   lt_save_MAGIC_CMD="$MAGIC_CMD"
5704   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5705   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5706   for ac_dir in $ac_dummy; do
5707     IFS="$lt_save_ifs"
5708     test -z "$ac_dir" && ac_dir=.
5709     if test -f $ac_dir/file; then
5710       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5711       if test -n "$file_magic_test_file"; then
5712         case $deplibs_check_method in
5713         "file_magic "*)
5714           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5715           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5716           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5717             $EGREP "$file_magic_regex" > /dev/null; then
5718             :
5719           else
5720             cat <<EOF 1>&2
5721
5722 *** Warning: the command libtool uses to detect shared libraries,
5723 *** $file_magic_cmd, produces output that libtool cannot recognize.
5724 *** The result is that libtool may fail to recognize shared libraries
5725 *** as such.  This will affect the creation of libtool libraries that
5726 *** depend on shared libraries, but programs linked with such libtool
5727 *** libraries will work regardless of this problem.  Nevertheless, you
5728 *** may want to report the problem to your system manager and/or to
5729 *** bug-libtool@gnu.org
5730
5731 EOF
5732           fi ;;
5733         esac
5734       fi
5735       break
5736     fi
5737   done
5738   IFS="$lt_save_ifs"
5739   MAGIC_CMD="$lt_save_MAGIC_CMD"
5740   ;;
5741 esac
5742 fi
5743
5744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5745 if test -n "$MAGIC_CMD"; then
5746   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5747 echo "${ECHO_T}$MAGIC_CMD" >&6
5748 else
5749   echo "$as_me:$LINENO: result: no" >&5
5750 echo "${ECHO_T}no" >&6
5751 fi
5752
5753   else
5754     MAGIC_CMD=:
5755   fi
5756 fi
5757
5758   fi
5759   ;;
5760 esac
5761
5762 enable_dlopen=no
5763 enable_win32_dll=no
5764
5765 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5766 if test "${enable_libtool_lock+set}" = set; then
5767   enableval="$enable_libtool_lock"
5768
5769 fi;
5770 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5771
5772
5773 # Check whether --with-pic or --without-pic was given.
5774 if test "${with_pic+set}" = set; then
5775   withval="$with_pic"
5776   pic_mode="$withval"
5777 else
5778   pic_mode=default
5779 fi;
5780 test -z "$pic_mode" && pic_mode=default
5781
5782 # Use C for the default configuration in the libtool script
5783 tagname=
5784 lt_save_CC="$CC"
5785 ac_ext=c
5786 ac_cpp='$CPP $CPPFLAGS'
5787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5790
5791
5792 # Source file extension for C test sources.
5793 ac_ext=c
5794
5795 # Object file extension for compiled C test sources.
5796 objext=o
5797 objext=$objext
5798
5799 # Code to be used in simple compile tests
5800 lt_simple_compile_test_code="int some_variable = 0;\n"
5801
5802 # Code to be used in simple link tests
5803 lt_simple_link_test_code='int main(){return(0);}\n'
5804
5805
5806 # If no C compiler was specified, use CC.
5807 LTCC=${LTCC-"$CC"}
5808
5809 # Allow CC to be a program name with arguments.
5810 compiler=$CC
5811
5812
5813 #
5814 # Check for any special shared library compilation flags.
5815 #
5816 lt_prog_cc_shlib=
5817 if test "$GCC" = no; then
5818   case $host_os in
5819   sco3.2v5*)
5820     lt_prog_cc_shlib='-belf'
5821     ;;
5822   esac
5823 fi
5824 if test -n "$lt_prog_cc_shlib"; then
5825   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5826 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5827   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5828   else
5829     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5830 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5831     lt_cv_prog_cc_can_build_shared=no
5832   fi
5833 fi
5834
5835
5836 #
5837 # Check to make sure the static flag actually works.
5838 #
5839 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5840 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5841 if test "${lt_prog_compiler_static_works+set}" = set; then
5842   echo $ECHO_N "(cached) $ECHO_C" >&6
5843 else
5844   lt_prog_compiler_static_works=no
5845    save_LDFLAGS="$LDFLAGS"
5846    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5847    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5848    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5849      # The compiler can only warn and ignore the option if not recognized
5850      # So say no if there are warnings
5851      if test -s conftest.err; then
5852        # Append any errors to the config.log.
5853        cat conftest.err 1>&5
5854      else
5855        lt_prog_compiler_static_works=yes
5856      fi
5857    fi
5858    $rm conftest*
5859    LDFLAGS="$save_LDFLAGS"
5860
5861 fi
5862 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5863 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5864
5865 if test x"$lt_prog_compiler_static_works" = xyes; then
5866     :
5867 else
5868     lt_prog_compiler_static=
5869 fi
5870
5871
5872
5873
5874 lt_prog_compiler_no_builtin_flag=
5875
5876 if test "$GCC" = yes; then
5877   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5878
5879   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5880 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5881 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5882   echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884   lt_cv_prog_compiler_rtti_exceptions=no
5885   ac_outfile=conftest.$ac_objext
5886    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5887    lt_compiler_flag="-fno-rtti -fno-exceptions"
5888    # Insert the option either (1) after the last *FLAGS variable, or
5889    # (2) before a word containing "conftest.", or (3) at the end.
5890    # Note that $ac_compile itself does not contain backslashes and begins
5891    # with a dollar sign (not a hyphen), so the echo should work correctly.
5892    # The option is referenced via a variable to avoid confusing sed.
5893    lt_compile=`echo "$ac_compile" | $SED \
5894    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5895    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5896    -e 's:$: $lt_compiler_flag:'`
5897    (eval echo "\"\$as_me:5897: $lt_compile\"" >&5)
5898    (eval "$lt_compile" 2>conftest.err)
5899    ac_status=$?
5900    cat conftest.err >&5
5901    echo "$as_me:5901: \$? = $ac_status" >&5
5902    if (exit $ac_status) && test -s "$ac_outfile"; then
5903      # The compiler can only warn and ignore the option if not recognized
5904      # So say no if there are warnings
5905      if test ! -s conftest.err; then
5906        lt_cv_prog_compiler_rtti_exceptions=yes
5907      fi
5908    fi
5909    $rm conftest*
5910
5911 fi
5912 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5913 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5914
5915 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5916     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5917 else
5918     :
5919 fi
5920
5921 fi
5922
5923 lt_prog_compiler_wl=
5924 lt_prog_compiler_pic=
5925 lt_prog_compiler_static=
5926
5927 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5928 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5929
5930   if test "$GCC" = yes; then
5931     lt_prog_compiler_wl='-Wl,'
5932     lt_prog_compiler_static='-static'
5933
5934     case $host_os in
5935       aix*)
5936       # All AIX code is PIC.
5937       if test "$host_cpu" = ia64; then
5938         # AIX 5 now supports IA64 processor
5939         lt_prog_compiler_static='-Bstatic'
5940       fi
5941       ;;
5942
5943     amigaos*)
5944       # FIXME: we need at least 68020 code to build shared libraries, but
5945       # adding the `-m68020' flag to GCC prevents building anything better,
5946       # like `-m68040'.
5947       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5948       ;;
5949
5950     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5951       # PIC is the default for these OSes.
5952       ;;
5953
5954     mingw* | pw32* | os2*)
5955       # This hack is so that the source file can tell whether it is being
5956       # built for inclusion in a dll (and should export symbols for example).
5957       lt_prog_compiler_pic='-DDLL_EXPORT'
5958       ;;
5959
5960     darwin* | rhapsody*)
5961       # PIC is the default on this platform
5962       # Common symbols not allowed in MH_DYLIB files
5963       lt_prog_compiler_pic='-fno-common'
5964       ;;
5965
5966     msdosdjgpp*)
5967       # Just because we use GCC doesn't mean we suddenly get shared libraries
5968       # on systems that don't support them.
5969       lt_prog_compiler_can_build_shared=no
5970       enable_shared=no
5971       ;;
5972
5973     sysv4*MP*)
5974       if test -d /usr/nec; then
5975         lt_prog_compiler_pic=-Kconform_pic
5976       fi
5977       ;;
5978
5979     hpux*)
5980       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5981       # not for PA HP-UX.
5982       case "$host_cpu" in
5983       hppa*64*|ia64*)
5984         # +Z the default
5985         ;;
5986       *)
5987         lt_prog_compiler_pic='-fPIC'
5988         ;;
5989       esac
5990       ;;
5991
5992     *)
5993       lt_prog_compiler_pic='-fPIC'
5994       ;;
5995     esac
5996   else
5997     # PORTME Check for flag to pass linker flags through the system compiler.
5998     case $host_os in
5999     aix*)
6000       lt_prog_compiler_wl='-Wl,'
6001       if test "$host_cpu" = ia64; then
6002         # AIX 5 now supports IA64 processor
6003         lt_prog_compiler_static='-Bstatic'
6004       else
6005         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6006       fi
6007       ;;
6008
6009     mingw* | pw32* | os2*)
6010       # This hack is so that the source file can tell whether it is being
6011       # built for inclusion in a dll (and should export symbols for example).
6012       lt_prog_compiler_pic='-DDLL_EXPORT'
6013       ;;
6014
6015     hpux9* | hpux10* | hpux11*)
6016       lt_prog_compiler_wl='-Wl,'
6017       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6018       # not for PA HP-UX.
6019       case "$host_cpu" in
6020       hppa*64*|ia64*)
6021         # +Z the default
6022         ;;
6023       *)
6024         lt_prog_compiler_pic='+Z'
6025         ;;
6026       esac
6027       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6028       lt_prog_compiler_static='${wl}-a ${wl}archive'
6029       ;;
6030
6031     irix5* | irix6* | nonstopux*)
6032       lt_prog_compiler_wl='-Wl,'
6033       # PIC (with -KPIC) is the default.
6034       lt_prog_compiler_static='-non_shared'
6035       ;;
6036
6037     newsos6)
6038       lt_prog_compiler_pic='-KPIC'
6039       lt_prog_compiler_static='-Bstatic'
6040       ;;
6041
6042     linux*)
6043       case $CC in
6044       icc|ecc)
6045         lt_prog_compiler_wl='-Wl,'
6046         lt_prog_compiler_pic='-KPIC'
6047         lt_prog_compiler_static='-static'
6048         ;;
6049       ccc)
6050         lt_prog_compiler_wl='-Wl,'
6051         # All Alpha code is PIC.
6052         lt_prog_compiler_static='-non_shared'
6053         ;;
6054       esac
6055       ;;
6056
6057     osf3* | osf4* | osf5*)
6058       lt_prog_compiler_wl='-Wl,'
6059       # All OSF/1 code is PIC.
6060       lt_prog_compiler_static='-non_shared'
6061       ;;
6062
6063     sco3.2v5*)
6064       lt_prog_compiler_pic='-Kpic'
6065       lt_prog_compiler_static='-dn'
6066       ;;
6067
6068     solaris*)
6069       lt_prog_compiler_wl='-Wl,'
6070       lt_prog_compiler_pic='-KPIC'
6071       lt_prog_compiler_static='-Bstatic'
6072       ;;
6073
6074     sunos4*)
6075       lt_prog_compiler_wl='-Qoption ld '
6076       lt_prog_compiler_pic='-PIC'
6077       lt_prog_compiler_static='-Bstatic'
6078       ;;
6079
6080     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6081       lt_prog_compiler_wl='-Wl,'
6082       lt_prog_compiler_pic='-KPIC'
6083       lt_prog_compiler_static='-Bstatic'
6084       ;;
6085
6086     sysv4*MP*)
6087       if test -d /usr/nec ;then
6088         lt_prog_compiler_pic='-Kconform_pic'
6089         lt_prog_compiler_static='-Bstatic'
6090       fi
6091       ;;
6092
6093     uts4*)
6094       lt_prog_compiler_pic='-pic'
6095       lt_prog_compiler_static='-Bstatic'
6096       ;;
6097
6098     *)
6099       lt_prog_compiler_can_build_shared=no
6100       ;;
6101     esac
6102   fi
6103
6104 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6105 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6106
6107 #
6108 # Check to make sure the PIC flag actually works.
6109 #
6110 if test -n "$lt_prog_compiler_pic"; then
6111   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6112 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6113 if test "${lt_prog_compiler_pic_works+set}" = set; then
6114   echo $ECHO_N "(cached) $ECHO_C" >&6
6115 else
6116   lt_prog_compiler_pic_works=no
6117   ac_outfile=conftest.$ac_objext
6118    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6119    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6120    # Insert the option either (1) after the last *FLAGS variable, or
6121    # (2) before a word containing "conftest.", or (3) at the end.
6122    # Note that $ac_compile itself does not contain backslashes and begins
6123    # with a dollar sign (not a hyphen), so the echo should work correctly.
6124    # The option is referenced via a variable to avoid confusing sed.
6125    lt_compile=`echo "$ac_compile" | $SED \
6126    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6127    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6128    -e 's:$: $lt_compiler_flag:'`
6129    (eval echo "\"\$as_me:6129: $lt_compile\"" >&5)
6130    (eval "$lt_compile" 2>conftest.err)
6131    ac_status=$?
6132    cat conftest.err >&5
6133    echo "$as_me:6133: \$? = $ac_status" >&5
6134    if (exit $ac_status) && test -s "$ac_outfile"; then
6135      # The compiler can only warn and ignore the option if not recognized
6136      # So say no if there are warnings
6137      if test ! -s conftest.err; then
6138        lt_prog_compiler_pic_works=yes
6139      fi
6140    fi
6141    $rm conftest*
6142
6143 fi
6144 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6145 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6146
6147 if test x"$lt_prog_compiler_pic_works" = xyes; then
6148     case $lt_prog_compiler_pic in
6149      "" | " "*) ;;
6150      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6151      esac
6152 else
6153     lt_prog_compiler_pic=
6154      lt_prog_compiler_can_build_shared=no
6155 fi
6156
6157 fi
6158 case "$host_os" in
6159   # For platforms which do not support PIC, -DPIC is meaningless:
6160   *djgpp*)
6161     lt_prog_compiler_pic=
6162     ;;
6163   *)
6164     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6165     ;;
6166 esac
6167
6168 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6169 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6170 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6171   echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173   lt_cv_prog_compiler_c_o=no
6174    $rm -r conftest 2>/dev/null
6175    mkdir conftest
6176    cd conftest
6177    mkdir out
6178    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6179
6180    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6181    # that will create temporary files in the current directory regardless of
6182    # the output directory.  Thus, making CWD read-only will cause this test
6183    # to fail, enabling locking or at least warning the user not to do parallel
6184    # builds.
6185    chmod -w .
6186
6187    lt_compiler_flag="-o out/conftest2.$ac_objext"
6188    # Insert the option either (1) after the last *FLAGS variable, or
6189    # (2) before a word containing "conftest.", or (3) at the end.
6190    # Note that $ac_compile itself does not contain backslashes and begins
6191    # with a dollar sign (not a hyphen), so the echo should work correctly.
6192    lt_compile=`echo "$ac_compile" | $SED \
6193    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6194    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6195    -e 's:$: $lt_compiler_flag:'`
6196    (eval echo "\"\$as_me:6196: $lt_compile\"" >&5)
6197    (eval "$lt_compile" 2>out/conftest.err)
6198    ac_status=$?
6199    cat out/conftest.err >&5
6200    echo "$as_me:6200: \$? = $ac_status" >&5
6201    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6202    then
6203      # The compiler can only warn and ignore the option if not recognized
6204      # So say no if there are warnings
6205      if test ! -s out/conftest.err; then
6206        lt_cv_prog_compiler_c_o=yes
6207      fi
6208    fi
6209    chmod u+w .
6210    $rm conftest* out/*
6211    rmdir out
6212    cd ..
6213    rmdir conftest
6214    $rm conftest*
6215
6216 fi
6217 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6218 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6219
6220
6221 hard_links="nottested"
6222 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6223   # do not overwrite the value of need_locks provided by the user
6224   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6225 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6226   hard_links=yes
6227   $rm conftest*
6228   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6229   touch conftest.a
6230   ln conftest.a conftest.b 2>&5 || hard_links=no
6231   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6232   echo "$as_me:$LINENO: result: $hard_links" >&5
6233 echo "${ECHO_T}$hard_links" >&6
6234   if test "$hard_links" = no; then
6235     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6236 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6237     need_locks=warn
6238   fi
6239 else
6240   need_locks=no
6241 fi
6242
6243 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6244 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6245
6246   runpath_var=
6247   allow_undefined_flag=
6248   enable_shared_with_static_runtimes=no
6249   archive_cmds=
6250   archive_expsym_cmds=
6251   old_archive_From_new_cmds=
6252   old_archive_from_expsyms_cmds=
6253   export_dynamic_flag_spec=
6254   whole_archive_flag_spec=
6255   thread_safe_flag_spec=
6256   hardcode_libdir_flag_spec=
6257   hardcode_libdir_flag_spec_ld=
6258   hardcode_libdir_separator=
6259   hardcode_direct=no
6260   hardcode_minus_L=no
6261   hardcode_shlibpath_var=unsupported
6262   link_all_deplibs=unknown
6263   hardcode_automatic=no
6264   module_cmds=
6265   module_expsym_cmds=
6266   always_export_symbols=no
6267   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6268   # include_expsyms should be a list of space-separated symbols to be *always*
6269   # included in the symbol list
6270   include_expsyms=
6271   # exclude_expsyms can be an extended regexp of symbols to exclude
6272   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6273   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6274   # as well as any symbol that contains `d'.
6275   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6276   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6277   # platforms (ab)use it in PIC code, but their linkers get confused if
6278   # the symbol is explicitly referenced.  Since portable code cannot
6279   # rely on this symbol name, it's probably fine to never include it in
6280   # preloaded symbol tables.
6281   extract_expsyms_cmds=
6282
6283   case $host_os in
6284   cygwin* | mingw* | pw32*)
6285     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6286     # When not using gcc, we currently assume that we are using
6287     # Microsoft Visual C++.
6288     if test "$GCC" != yes; then
6289       with_gnu_ld=no
6290     fi
6291     ;;
6292   openbsd*)
6293     with_gnu_ld=no
6294     ;;
6295   esac
6296
6297   ld_shlibs=yes
6298   if test "$with_gnu_ld" = yes; then
6299     # If archive_cmds runs LD, not CC, wlarc should be empty
6300     wlarc='${wl}'
6301
6302     # See if GNU ld supports shared libraries.
6303     case $host_os in
6304     aix3* | aix4* | aix5*)
6305       # On AIX/PPC, the GNU linker is very broken
6306       if test "$host_cpu" != ia64; then
6307         ld_shlibs=no
6308         cat <<EOF 1>&2
6309
6310 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6311 *** to be unable to reliably create shared libraries on AIX.
6312 *** Therefore, libtool is disabling shared libraries support.  If you
6313 *** really care for shared libraries, you may want to modify your PATH
6314 *** so that a non-GNU linker is found, and then restart.
6315
6316 EOF
6317       fi
6318       ;;
6319
6320     amigaos*)
6321       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)'
6322       hardcode_libdir_flag_spec='-L$libdir'
6323       hardcode_minus_L=yes
6324
6325       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6326       # that the semantics of dynamic libraries on AmigaOS, at least up
6327       # to version 4, is to share data among multiple programs linked
6328       # with the same dynamic library.  Since this doesn't match the
6329       # behavior of shared libraries on other platforms, we can't use
6330       # them.
6331       ld_shlibs=no
6332       ;;
6333
6334     beos*)
6335       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6336         allow_undefined_flag=unsupported
6337         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6338         # support --undefined.  This deserves some investigation.  FIXME
6339         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6340       else
6341         ld_shlibs=no
6342       fi
6343       ;;
6344
6345     cygwin* | mingw* | pw32*)
6346       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6347       # as there is no search path for DLLs.
6348       hardcode_libdir_flag_spec='-L$libdir'
6349       allow_undefined_flag=unsupported
6350       always_export_symbols=no
6351       enable_shared_with_static_runtimes=yes
6352       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6353
6354       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6355         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6356         # If the export-symbols file already is a .def file (1st line
6357         # is EXPORTS), use it as is; otherwise, prepend...
6358         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6359           cp $export_symbols $output_objdir/$soname.def;
6360         else
6361           echo EXPORTS > $output_objdir/$soname.def;
6362           cat $export_symbols >> $output_objdir/$soname.def;
6363         fi~
6364         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6365       else
6366         ld_shlibs=no
6367       fi
6368       ;;
6369
6370     netbsd*)
6371       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6372         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6373         wlarc=
6374       else
6375         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6376         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6377       fi
6378       ;;
6379
6380     solaris* | sysv5*)
6381       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6382         ld_shlibs=no
6383         cat <<EOF 1>&2
6384
6385 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6386 *** create shared libraries on Solaris systems.  Therefore, libtool
6387 *** is disabling shared libraries support.  We urge you to upgrade GNU
6388 *** binutils to release 2.9.1 or newer.  Another option is to modify
6389 *** your PATH or compiler configuration so that the native linker is
6390 *** used, and then restart.
6391
6392 EOF
6393       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6394         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6395         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6396       else
6397         ld_shlibs=no
6398       fi
6399       ;;
6400
6401     sunos4*)
6402       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6403       wlarc=
6404       hardcode_direct=yes
6405       hardcode_shlibpath_var=no
6406       ;;
6407
6408     *)
6409       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6410         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6411         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6412       else
6413         ld_shlibs=no
6414       fi
6415       ;;
6416     esac
6417
6418     if test "$ld_shlibs" = yes; then
6419       runpath_var=LD_RUN_PATH
6420       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6421       export_dynamic_flag_spec='${wl}--export-dynamic'
6422       # ancient GNU ld didn't support --whole-archive et. al.
6423       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6424         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6425       else
6426         whole_archive_flag_spec=
6427       fi
6428     fi
6429   else
6430     # PORTME fill in a description of your system's linker (not GNU ld)
6431     case $host_os in
6432     aix3*)
6433       allow_undefined_flag=unsupported
6434       always_export_symbols=yes
6435       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'
6436       # Note: this linker hardcodes the directories in LIBPATH if there
6437       # are no directories specified by -L.
6438       hardcode_minus_L=yes
6439       if test "$GCC" = yes && test -z "$link_static_flag"; then
6440         # Neither direct hardcoding nor static linking is supported with a
6441         # broken collect2.
6442         hardcode_direct=unsupported
6443       fi
6444       ;;
6445
6446     aix4* | aix5*)
6447       if test "$host_cpu" = ia64; then
6448         # On IA64, the linker does run time linking by default, so we don't
6449         # have to do anything special.
6450         aix_use_runtimelinking=no
6451         exp_sym_flag='-Bexport'
6452         no_entry_flag=""
6453       else
6454         # If we're using GNU nm, then we don't want the "-C" option.
6455         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6456         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6457           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'
6458         else
6459           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'
6460         fi
6461         aix_use_runtimelinking=no
6462
6463         # Test if we are trying to use run time linking or normal
6464         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6465         # need to do runtime linking.
6466         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6467           for ld_flag in $LDFLAGS; do
6468           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6469             aix_use_runtimelinking=yes
6470             break
6471           fi
6472           done
6473         esac
6474
6475         exp_sym_flag='-bexport'
6476         no_entry_flag='-bnoentry'
6477       fi
6478
6479       # When large executables or shared objects are built, AIX ld can
6480       # have problems creating the table of contents.  If linking a library
6481       # or program results in "error TOC overflow" add -mminimal-toc to
6482       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6483       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6484
6485       archive_cmds=''
6486       hardcode_direct=yes
6487       hardcode_libdir_separator=':'
6488       link_all_deplibs=yes
6489
6490       if test "$GCC" = yes; then
6491         case $host_os in aix4.012|aix4.012.*)
6492         # We only want to do this on AIX 4.2 and lower, the check
6493         # below for broken collect2 doesn't work under 4.3+
6494           collect2name=`${CC} -print-prog-name=collect2`
6495           if test -f "$collect2name" && \
6496            strings "$collect2name" | grep resolve_lib_name >/dev/null
6497           then
6498           # We have reworked collect2
6499           hardcode_direct=yes
6500           else
6501           # We have old collect2
6502           hardcode_direct=unsupported
6503           # It fails to find uninstalled libraries when the uninstalled
6504           # path is not listed in the libpath.  Setting hardcode_minus_L
6505           # to unsupported forces relinking
6506           hardcode_minus_L=yes
6507           hardcode_libdir_flag_spec='-L$libdir'
6508           hardcode_libdir_separator=
6509           fi
6510         esac
6511         shared_flag='-shared'
6512       else
6513         # not using gcc
6514         if test "$host_cpu" = ia64; then
6515         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6516         # chokes on -Wl,-G. The following line is correct:
6517           shared_flag='-G'
6518         else
6519         if test "$aix_use_runtimelinking" = yes; then
6520             shared_flag='${wl}-G'
6521           else
6522             shared_flag='${wl}-bM:SRE'
6523         fi
6524         fi
6525       fi
6526
6527       # It seems that -bexpall does not export symbols beginning with
6528       # underscore (_), so it is better to generate a list of symbols to export.
6529       always_export_symbols=yes
6530       if test "$aix_use_runtimelinking" = yes; then
6531         # Warning - without using the other runtime loading flags (-brtl),
6532         # -berok will link without error, but may produce a broken library.
6533         allow_undefined_flag='-berok'
6534        # Determine the default libpath from the value encoded in an empty executable.
6535        cat >conftest.$ac_ext <<_ACEOF
6536 #line $LINENO "configure"
6537 /* confdefs.h.  */
6538 _ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h.  */
6542
6543 int
6544 main ()
6545 {
6546
6547   ;
6548   return 0;
6549 }
6550 _ACEOF
6551 rm -f conftest.$ac_objext conftest$ac_exeext
6552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6553   (eval $ac_link) 2>&5
6554   ac_status=$?
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); } &&
6557          { ac_try='test -s conftest$ac_exeext'
6558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559   (eval $ac_try) 2>&5
6560   ac_status=$?
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); }; }; then
6563
6564 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6565 }'`
6566 # Check for a 64-bit object if we didn't find anything.
6567 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; }
6568 }'`; fi
6569 else
6570   echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6572
6573 fi
6574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6575 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6576
6577        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6578         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"
6579        else
6580         if test "$host_cpu" = ia64; then
6581           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6582           allow_undefined_flag="-z nodefs"
6583           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"
6584         else
6585          # Determine the default libpath from the value encoded in an empty executable.
6586          cat >conftest.$ac_ext <<_ACEOF
6587 #line $LINENO "configure"
6588 /* confdefs.h.  */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h.  */
6593
6594 int
6595 main ()
6596 {
6597
6598   ;
6599   return 0;
6600 }
6601 _ACEOF
6602 rm -f conftest.$ac_objext conftest$ac_exeext
6603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6604   (eval $ac_link) 2>&5
6605   ac_status=$?
6606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607   (exit $ac_status); } &&
6608          { ac_try='test -s conftest$ac_exeext'
6609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610   (eval $ac_try) 2>&5
6611   ac_status=$?
6612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613   (exit $ac_status); }; }; then
6614
6615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6616 }'`
6617 # Check for a 64-bit object if we didn't find anything.
6618 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; }
6619 }'`; fi
6620 else
6621   echo "$as_me: failed program was:" >&5
6622 sed 's/^/| /' conftest.$ac_ext >&5
6623
6624 fi
6625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6626 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6627
6628          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6629           # Warning - without using the other run time loading flags,
6630           # -berok will link without error, but may produce a broken library.
6631           no_undefined_flag=' ${wl}-bernotok'
6632           allow_undefined_flag=' ${wl}-berok'
6633           # -bexpall does not export symbols beginning with underscore (_)
6634           always_export_symbols=yes
6635           # Exported symbols can be pulled into shared objects from archives
6636           whole_archive_flag_spec=' '
6637           archive_cmds_need_lc=yes
6638           # This is similar to how AIX traditionally builds it's shared libraries.
6639           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'
6640         fi
6641       fi
6642       ;;
6643
6644     amigaos*)
6645       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)'
6646       hardcode_libdir_flag_spec='-L$libdir'
6647       hardcode_minus_L=yes
6648       # see comment about different semantics on the GNU ld section
6649       ld_shlibs=no
6650       ;;
6651
6652     bsdi4*)
6653       export_dynamic_flag_spec=-rdynamic
6654       ;;
6655
6656     cygwin* | mingw* | pw32*)
6657       # When not using gcc, we currently assume that we are using
6658       # Microsoft Visual C++.
6659       # hardcode_libdir_flag_spec is actually meaningless, as there is
6660       # no search path for DLLs.
6661       hardcode_libdir_flag_spec=' '
6662       allow_undefined_flag=unsupported
6663       # Tell ltmain to make .lib files, not .a files.
6664       libext=lib
6665       # Tell ltmain to make .dll files, not .so files.
6666       shrext=".dll"
6667       # FIXME: Setting linknames here is a bad hack.
6668       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6669       # The linker will automatically build a .lib file if we build a DLL.
6670       old_archive_From_new_cmds='true'
6671       # FIXME: Should let the user specify the lib program.
6672       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6673       fix_srcfile_path='`cygpath -w "$srcfile"`'
6674       enable_shared_with_static_runtimes=yes
6675       ;;
6676
6677     darwin* | rhapsody*)
6678     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6679       archive_cmds_need_lc=no
6680       case "$host_os" in
6681       rhapsody* | darwin1.[012])
6682         allow_undefined_flag='-undefined suppress'
6683         ;;
6684       *) # Darwin 1.3 on
6685         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6686         ;;
6687       esac
6688       # FIXME: Relying on posixy $() will cause problems for
6689       #        cross-compilation, but unfortunately the echo tests do not
6690       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6691       #        `"' quotes if we put them in here... so don't!
6692         lt_int_apple_cc_single_mod=no
6693         output_verbose_link_cmd='echo'
6694         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6695           lt_int_apple_cc_single_mod=yes
6696         fi
6697         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6698           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6699         else
6700         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'
6701       fi
6702       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6703       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6704         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6705           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}'
6706         else
6707           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}'
6708         fi
6709           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}'
6710       hardcode_direct=no
6711       hardcode_automatic=yes
6712       hardcode_shlibpath_var=unsupported
6713       whole_archive_flag_spec='-all_load $convenience'
6714       link_all_deplibs=yes
6715     fi
6716       ;;
6717
6718     dgux*)
6719       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6720       hardcode_libdir_flag_spec='-L$libdir'
6721       hardcode_shlibpath_var=no
6722       ;;
6723
6724     freebsd1*)
6725       ld_shlibs=no
6726       ;;
6727
6728     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6729     # support.  Future versions do this automatically, but an explicit c++rt0.o
6730     # does not break anything, and helps significantly (at the cost of a little
6731     # extra space).
6732     freebsd2.2*)
6733       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6734       hardcode_libdir_flag_spec='-R$libdir'
6735       hardcode_direct=yes
6736       hardcode_shlibpath_var=no
6737       ;;
6738
6739     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6740     freebsd2*)
6741       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6742       hardcode_direct=yes
6743       hardcode_minus_L=yes
6744       hardcode_shlibpath_var=no
6745       ;;
6746
6747     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6748     freebsd*)
6749       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6750       hardcode_libdir_flag_spec='-R$libdir'
6751       hardcode_direct=yes
6752       hardcode_shlibpath_var=no
6753       ;;
6754
6755     hpux9*)
6756       if test "$GCC" = yes; then
6757         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'
6758       else
6759         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'
6760       fi
6761       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6762       hardcode_libdir_separator=:
6763       hardcode_direct=yes
6764
6765       # hardcode_minus_L: Not really in the search PATH,
6766       # but as the default location of the library.
6767       hardcode_minus_L=yes
6768       export_dynamic_flag_spec='${wl}-E'
6769       ;;
6770
6771     hpux10* | hpux11*)
6772       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6773         case "$host_cpu" in
6774         hppa*64*|ia64*)
6775           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6776           ;;
6777         *)
6778           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6779           ;;
6780         esac
6781       else
6782         case "$host_cpu" in
6783         hppa*64*|ia64*)
6784           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6785           ;;
6786         *)
6787           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6788           ;;
6789         esac
6790       fi
6791       if test "$with_gnu_ld" = no; then
6792         case "$host_cpu" in
6793         hppa*64*)
6794           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6795           hardcode_libdir_flag_spec_ld='+b $libdir'
6796           hardcode_libdir_separator=:
6797           hardcode_direct=no
6798           hardcode_shlibpath_var=no
6799           ;;
6800         ia64*)
6801           hardcode_libdir_flag_spec='-L$libdir'
6802           hardcode_direct=no
6803           hardcode_shlibpath_var=no
6804
6805           # hardcode_minus_L: Not really in the search PATH,
6806           # but as the default location of the library.
6807           hardcode_minus_L=yes
6808           ;;
6809         *)
6810           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6811           hardcode_libdir_separator=:
6812           hardcode_direct=yes
6813           export_dynamic_flag_spec='${wl}-E'
6814
6815           # hardcode_minus_L: Not really in the search PATH,
6816           # but as the default location of the library.
6817           hardcode_minus_L=yes
6818           ;;
6819         esac
6820       fi
6821       ;;
6822
6823     irix5* | irix6* | nonstopux*)
6824       if test "$GCC" = yes; then
6825         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'
6826       else
6827         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'
6828         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6829       fi
6830       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6831       hardcode_libdir_separator=:
6832       link_all_deplibs=yes
6833       ;;
6834
6835     netbsd*)
6836       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6837         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6838       else
6839         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6840       fi
6841       hardcode_libdir_flag_spec='-R$libdir'
6842       hardcode_direct=yes
6843       hardcode_shlibpath_var=no
6844       ;;
6845
6846     newsos6)
6847       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6848       hardcode_direct=yes
6849       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6850       hardcode_libdir_separator=:
6851       hardcode_shlibpath_var=no
6852       ;;
6853
6854     openbsd*)
6855       hardcode_direct=yes
6856       hardcode_shlibpath_var=no
6857       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6858         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6859         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6860         export_dynamic_flag_spec='${wl}-E'
6861       else
6862        case $host_os in
6863          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6864            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6865            hardcode_libdir_flag_spec='-R$libdir'
6866            ;;
6867          *)
6868            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6869            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6870            ;;
6871        esac
6872       fi
6873       ;;
6874
6875     os2*)
6876       hardcode_libdir_flag_spec='-L$libdir'
6877       hardcode_minus_L=yes
6878       allow_undefined_flag=unsupported
6879       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'
6880       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6881       ;;
6882
6883     osf3*)
6884       if test "$GCC" = yes; then
6885         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6886         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'
6887       else
6888         allow_undefined_flag=' -expect_unresolved \*'
6889         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'
6890       fi
6891       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6892       hardcode_libdir_separator=:
6893       ;;
6894
6895     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6896       if test "$GCC" = yes; then
6897         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6898         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'
6899         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6900       else
6901         allow_undefined_flag=' -expect_unresolved \*'
6902         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'
6903         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6904         $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'
6905
6906         # Both c and cxx compiler support -rpath directly
6907         hardcode_libdir_flag_spec='-rpath $libdir'
6908       fi
6909       hardcode_libdir_separator=:
6910       ;;
6911
6912     sco3.2v5*)
6913       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6914       hardcode_shlibpath_var=no
6915       export_dynamic_flag_spec='${wl}-Bexport'
6916       runpath_var=LD_RUN_PATH
6917       hardcode_runpath_var=yes
6918       ;;
6919
6920     solaris*)
6921       no_undefined_flag=' -z text'
6922       if test "$GCC" = yes; then
6923         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6924         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6925           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6926       else
6927         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6928         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6929         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6930       fi
6931       hardcode_libdir_flag_spec='-R$libdir'
6932       hardcode_shlibpath_var=no
6933       case $host_os in
6934       solaris2.[0-5] | solaris2.[0-5].*) ;;
6935       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6936         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6937       esac
6938       link_all_deplibs=yes
6939       ;;
6940
6941     sunos4*)
6942       if test "x$host_vendor" = xsequent; then
6943         # Use $CC to link under sequent, because it throws in some extra .o
6944         # files that make .init and .fini sections work.
6945         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6946       else
6947         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6948       fi
6949       hardcode_libdir_flag_spec='-L$libdir'
6950       hardcode_direct=yes
6951       hardcode_minus_L=yes
6952       hardcode_shlibpath_var=no
6953       ;;
6954
6955     sysv4)
6956       case $host_vendor in
6957         sni)
6958           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6959           hardcode_direct=yes # is this really true???
6960         ;;
6961         siemens)
6962           ## LD is ld it makes a PLAMLIB
6963           ## CC just makes a GrossModule.
6964           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6965           reload_cmds='$CC -r -o $output$reload_objs'
6966           hardcode_direct=no
6967         ;;
6968         motorola)
6969           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6970           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6971         ;;
6972       esac
6973       runpath_var='LD_RUN_PATH'
6974       hardcode_shlibpath_var=no
6975       ;;
6976
6977     sysv4.3*)
6978       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6979       hardcode_shlibpath_var=no
6980       export_dynamic_flag_spec='-Bexport'
6981       ;;
6982
6983     sysv4*MP*)
6984       if test -d /usr/nec; then
6985         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6986         hardcode_shlibpath_var=no
6987         runpath_var=LD_RUN_PATH
6988         hardcode_runpath_var=yes
6989         ld_shlibs=yes
6990       fi
6991       ;;
6992
6993     sysv4.2uw2*)
6994       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6995       hardcode_direct=yes
6996       hardcode_minus_L=no
6997       hardcode_shlibpath_var=no
6998       hardcode_runpath_var=yes
6999       runpath_var=LD_RUN_PATH
7000       ;;
7001
7002    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7003       no_undefined_flag='${wl}-z ${wl}text'
7004       if test "$GCC" = yes; then
7005         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7006       else
7007         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7008       fi
7009       runpath_var='LD_RUN_PATH'
7010       hardcode_shlibpath_var=no
7011       ;;
7012
7013     sysv5*)
7014       no_undefined_flag=' -z text'
7015       # $CC -shared without GNU ld will not create a library from C++
7016       # object files and a static libstdc++, better avoid it by now
7017       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7018       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7019                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7020       hardcode_libdir_flag_spec=
7021       hardcode_shlibpath_var=no
7022       runpath_var='LD_RUN_PATH'
7023       ;;
7024
7025     uts4*)
7026       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7027       hardcode_libdir_flag_spec='-L$libdir'
7028       hardcode_shlibpath_var=no
7029       ;;
7030
7031     *)
7032       ld_shlibs=no
7033       ;;
7034     esac
7035   fi
7036
7037 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7038 echo "${ECHO_T}$ld_shlibs" >&6
7039 test "$ld_shlibs" = no && can_build_shared=no
7040
7041 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7042 if test "$GCC" = yes; then
7043   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7044 fi
7045
7046 #
7047 # Do we need to explicitly link libc?
7048 #
7049 case "x$archive_cmds_need_lc" in
7050 x|xyes)
7051   # Assume -lc should be added
7052   archive_cmds_need_lc=yes
7053
7054   if test "$enable_shared" = yes && test "$GCC" = yes; then
7055     case $archive_cmds in
7056     *'~'*)
7057       # FIXME: we may have to deal with multi-command sequences.
7058       ;;
7059     '$CC '*)
7060       # Test whether the compiler implicitly links with -lc since on some
7061       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7062       # to ld, don't add -lc before -lgcc.
7063       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7064 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7065       $rm conftest*
7066       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7067
7068       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069   (eval $ac_compile) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); } 2>conftest.err; then
7073         soname=conftest
7074         lib=conftest
7075         libobjs=conftest.$ac_objext
7076         deplibs=
7077         wl=$lt_prog_compiler_wl
7078         compiler_flags=-v
7079         linker_flags=-v
7080         verstring=
7081         output_objdir=.
7082         libname=conftest
7083         lt_save_allow_undefined_flag=$allow_undefined_flag
7084         allow_undefined_flag=
7085         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7086   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7087   ac_status=$?
7088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089   (exit $ac_status); }
7090         then
7091           archive_cmds_need_lc=no
7092         else
7093           archive_cmds_need_lc=yes
7094         fi
7095         allow_undefined_flag=$lt_save_allow_undefined_flag
7096       else
7097         cat conftest.err 1>&5
7098       fi
7099       $rm conftest*
7100       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7101 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7102       ;;
7103     esac
7104   fi
7105   ;;
7106 esac
7107
7108 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7109 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7110 hardcode_action=
7111 if test -n "$hardcode_libdir_flag_spec" || \
7112    test -n "$runpath_var " || \
7113    test "X$hardcode_automatic"="Xyes" ; then
7114
7115   # We can hardcode non-existant directories.
7116   if test "$hardcode_direct" != no &&
7117      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7118      # have to relink, otherwise we might link with an installed library
7119      # when we should be linking with a yet-to-be-installed one
7120      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7121      test "$hardcode_minus_L" != no; then
7122     # Linking always hardcodes the temporary library directory.
7123     hardcode_action=relink
7124   else
7125     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7126     hardcode_action=immediate
7127   fi
7128 else
7129   # We cannot hardcode anything, or else we can only hardcode existing
7130   # directories.
7131   hardcode_action=unsupported
7132 fi
7133 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7134 echo "${ECHO_T}$hardcode_action" >&6
7135
7136 if test "$hardcode_action" = relink; then
7137   # Fast installation is not supported
7138   enable_fast_install=no
7139 elif test "$shlibpath_overrides_runpath" = yes ||
7140      test "$enable_shared" = no; then
7141   # Fast installation is not necessary
7142   enable_fast_install=needless
7143 fi
7144
7145 striplib=
7146 old_striplib=
7147 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7148 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7149 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7150   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7151   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7152   echo "$as_me:$LINENO: result: yes" >&5
7153 echo "${ECHO_T}yes" >&6
7154 else
7155 # FIXME - insert some real tests, host_os isn't really good enough
7156   case $host_os in
7157    darwin*)
7158        if test -n "$STRIP" ; then
7159          striplib="$STRIP -x"
7160          echo "$as_me:$LINENO: result: yes" >&5
7161 echo "${ECHO_T}yes" >&6
7162        else
7163   echo "$as_me:$LINENO: result: no" >&5
7164 echo "${ECHO_T}no" >&6
7165 fi
7166        ;;
7167    *)
7168   echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6
7170     ;;
7171   esac
7172 fi
7173
7174 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7175 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7176 library_names_spec=
7177 libname_spec='lib$name'
7178 soname_spec=
7179 shrext=".so"
7180 postinstall_cmds=
7181 postuninstall_cmds=
7182 finish_cmds=
7183 finish_eval=
7184 shlibpath_var=
7185 shlibpath_overrides_runpath=unknown
7186 version_type=none
7187 dynamic_linker="$host_os ld.so"
7188 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7189 if test "$GCC" = yes; then
7190   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7191   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7192     # if the path contains ";" then we assume it to be the separator
7193     # otherwise default to the standard path separator (i.e. ":") - it is
7194     # assumed that no part of a normal pathname contains ";" but that should
7195     # okay in the real world where ";" in dirpaths is itself problematic.
7196     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7197   else
7198     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7199   fi
7200 else
7201   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7202 fi
7203 need_lib_prefix=unknown
7204 hardcode_into_libs=no
7205
7206 # when you set need_version to no, make sure it does not cause -set_version
7207 # flags to be left without arguments
7208 need_version=unknown
7209
7210 case $host_os in
7211 aix3*)
7212   version_type=linux
7213   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7214   shlibpath_var=LIBPATH
7215
7216   # AIX 3 has no versioning support, so we append a major version to the name.
7217   soname_spec='${libname}${release}${shared_ext}$major'
7218   ;;
7219
7220 aix4* | aix5*)
7221   version_type=linux
7222   need_lib_prefix=no
7223   need_version=no
7224   hardcode_into_libs=yes
7225   if test "$host_cpu" = ia64; then
7226     # AIX 5 supports IA64
7227     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7228     shlibpath_var=LD_LIBRARY_PATH
7229   else
7230     # With GCC up to 2.95.x, collect2 would create an import file
7231     # for dependence libraries.  The import file would start with
7232     # the line `#! .'.  This would cause the generated library to
7233     # depend on `.', always an invalid library.  This was fixed in
7234     # development snapshots of GCC prior to 3.0.
7235     case $host_os in
7236       aix4 | aix4.[01] | aix4.[01].*)
7237       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7238            echo ' yes '
7239            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7240         :
7241       else
7242         can_build_shared=no
7243       fi
7244       ;;
7245     esac
7246     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7247     # soname into executable. Probably we can add versioning support to
7248     # collect2, so additional links can be useful in future.
7249     if test "$aix_use_runtimelinking" = yes; then
7250       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7251       # instead of lib<name>.a to let people know that these are not
7252       # typical AIX shared libraries.
7253       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7254     else
7255       # We preserve .a as extension for shared libraries through AIX4.2
7256       # and later when we are not doing run time linking.
7257       library_names_spec='${libname}${release}.a $libname.a'
7258       soname_spec='${libname}${release}${shared_ext}$major'
7259     fi
7260     shlibpath_var=LIBPATH
7261   fi
7262   ;;
7263
7264 amigaos*)
7265   library_names_spec='$libname.ixlibrary $libname.a'
7266   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7267   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'
7268   ;;
7269
7270 beos*)
7271   library_names_spec='${libname}${shared_ext}'
7272   dynamic_linker="$host_os ld.so"
7273   shlibpath_var=LIBRARY_PATH
7274   ;;
7275
7276 bsdi4*)
7277   version_type=linux
7278   need_version=no
7279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7280   soname_spec='${libname}${release}${shared_ext}$major'
7281   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7282   shlibpath_var=LD_LIBRARY_PATH
7283   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7284   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7285   # the default ld.so.conf also contains /usr/contrib/lib and
7286   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7287   # libtool to hard-code these into programs
7288   ;;
7289
7290 cygwin* | mingw* | pw32*)
7291   version_type=windows
7292   shrext=".dll"
7293   need_version=no
7294   need_lib_prefix=no
7295
7296   case $GCC,$host_os in
7297   yes,cygwin* | yes,mingw* | yes,pw32*)
7298     library_names_spec='$libname.dll.a'
7299     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7300     postinstall_cmds='base_file=`basename \${file}`~
7301       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7302       dldir=$destdir/`dirname \$dlpath`~
7303       test -d \$dldir || mkdir -p \$dldir~
7304       $install_prog $dir/$dlname \$dldir/$dlname'
7305     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7306       dlpath=$dir/\$dldll~
7307        $rm \$dlpath'
7308     shlibpath_overrides_runpath=yes
7309
7310     case $host_os in
7311     cygwin*)
7312       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7313       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7314       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7315       ;;
7316     mingw*)
7317       # MinGW DLLs use traditional 'lib' prefix
7318       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7319       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7320       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7321         # It is most probably a Windows format PATH printed by
7322         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7323         # path with ; separators, and with drive letters. We can handle the
7324         # drive letters (cygwin fileutils understands them), so leave them,
7325         # especially as we might pass files found there to a mingw objdump,
7326         # which wouldn't understand a cygwinified path. Ahh.
7327         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7328       else
7329         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7330       fi
7331       ;;
7332     pw32*)
7333       # pw32 DLLs use 'pw' prefix rather than 'lib'
7334       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7335       ;;
7336     esac
7337     ;;
7338
7339   *)
7340     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7341     ;;
7342   esac
7343   dynamic_linker='Win32 ld.exe'
7344   # FIXME: first we should search . and the directory the executable is in
7345   shlibpath_var=PATH
7346   ;;
7347
7348 darwin* | rhapsody*)
7349   dynamic_linker="$host_os dyld"
7350   version_type=darwin
7351   need_lib_prefix=no
7352   need_version=no
7353   # FIXME: Relying on posixy $() will cause problems for
7354   #        cross-compilation, but unfortunately the echo tests do not
7355   #        yet detect zsh echo's removal of \ escapes.
7356   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7357   soname_spec='${libname}${release}${major}$shared_ext'
7358   shlibpath_overrides_runpath=yes
7359   shlibpath_var=DYLD_LIBRARY_PATH
7360   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7361   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7362   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7363   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"`
7364   fi
7365   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7366   ;;
7367
7368 dgux*)
7369   version_type=linux
7370   need_lib_prefix=no
7371   need_version=no
7372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7373   soname_spec='${libname}${release}${shared_ext}$major'
7374   shlibpath_var=LD_LIBRARY_PATH
7375   ;;
7376
7377 freebsd1*)
7378   dynamic_linker=no
7379   ;;
7380
7381 freebsd*)
7382   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7383   version_type=freebsd-$objformat
7384   case $version_type in
7385     freebsd-elf*)
7386       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7387       need_version=no
7388       need_lib_prefix=no
7389       ;;
7390     freebsd-*)
7391       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7392       need_version=yes
7393       ;;
7394   esac
7395   shlibpath_var=LD_LIBRARY_PATH
7396   case $host_os in
7397   freebsd2*)
7398     shlibpath_overrides_runpath=yes
7399     ;;
7400   freebsd3.01* | freebsdelf3.01*)
7401     shlibpath_overrides_runpath=yes
7402     hardcode_into_libs=yes
7403     ;;
7404   *) # from 3.2 on
7405     shlibpath_overrides_runpath=no
7406     hardcode_into_libs=yes
7407     ;;
7408   esac
7409   ;;
7410
7411 gnu*)
7412   version_type=linux
7413   need_lib_prefix=no
7414   need_version=no
7415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7416   soname_spec='${libname}${release}${shared_ext}$major'
7417   shlibpath_var=LD_LIBRARY_PATH
7418   hardcode_into_libs=yes
7419   ;;
7420
7421 hpux9* | hpux10* | hpux11*)
7422   # Give a soname corresponding to the major version so that dld.sl refuses to
7423   # link against other versions.
7424   version_type=sunos
7425   need_lib_prefix=no
7426   need_version=no
7427   case "$host_cpu" in
7428   ia64*)
7429     shrext='.so'
7430     hardcode_into_libs=yes
7431     dynamic_linker="$host_os dld.so"
7432     shlibpath_var=LD_LIBRARY_PATH
7433     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7435     soname_spec='${libname}${release}${shared_ext}$major'
7436     if test "X$HPUX_IA64_MODE" = X32; then
7437       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7438     else
7439       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7440     fi
7441     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7442     ;;
7443    hppa*64*)
7444      shrext='.sl'
7445      hardcode_into_libs=yes
7446      dynamic_linker="$host_os dld.sl"
7447      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7448      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7449      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7450      soname_spec='${libname}${release}${shared_ext}$major'
7451      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7452      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7453      ;;
7454    *)
7455     shrext='.sl'
7456     dynamic_linker="$host_os dld.sl"
7457     shlibpath_var=SHLIB_PATH
7458     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7459     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7460     soname_spec='${libname}${release}${shared_ext}$major'
7461     ;;
7462   esac
7463   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7464   postinstall_cmds='chmod 555 $lib'
7465   ;;
7466
7467 irix5* | irix6* | nonstopux*)
7468   case $host_os in
7469     nonstopux*) version_type=nonstopux ;;
7470     *)
7471         if test "$lt_cv_prog_gnu_ld" = yes; then
7472                 version_type=linux
7473         else
7474                 version_type=irix
7475         fi ;;
7476   esac
7477   need_lib_prefix=no
7478   need_version=no
7479   soname_spec='${libname}${release}${shared_ext}$major'
7480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7481   case $host_os in
7482   irix5* | nonstopux*)
7483     libsuff= shlibsuff=
7484     ;;
7485   *)
7486     case $LD in # libtool.m4 will add one of these switches to LD
7487     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7488       libsuff= shlibsuff= libmagic=32-bit;;
7489     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7490       libsuff=32 shlibsuff=N32 libmagic=N32;;
7491     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7492       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7493     *) libsuff= shlibsuff= libmagic=never-match;;
7494     esac
7495     ;;
7496   esac
7497   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7498   shlibpath_overrides_runpath=no
7499   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7500   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7501   hardcode_into_libs=yes
7502   ;;
7503
7504 # No shared lib support for Linux oldld, aout, or coff.
7505 linux*oldld* | linux*aout* | linux*coff*)
7506   dynamic_linker=no
7507   ;;
7508
7509 # This must be Linux ELF.
7510 linux*)
7511   version_type=linux
7512   need_lib_prefix=no
7513   need_version=no
7514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7515   soname_spec='${libname}${release}${shared_ext}$major'
7516   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7517   shlibpath_var=LD_LIBRARY_PATH
7518   shlibpath_overrides_runpath=no
7519   # This implies no fast_install, which is unacceptable.
7520   # Some rework will be needed to allow for fast_install
7521   # before this can be enabled.
7522   hardcode_into_libs=yes
7523
7524   # We used to test for /lib/ld.so.1 and disable shared libraries on
7525   # powerpc, because MkLinux only supported shared libraries with the
7526   # GNU dynamic linker.  Since this was broken with cross compilers,
7527   # most powerpc-linux boxes support dynamic linking these days and
7528   # people can always --disable-shared, the test was removed, and we
7529   # assume the GNU/Linux dynamic linker is in use.
7530   dynamic_linker='GNU/Linux ld.so'
7531   ;;
7532
7533 netbsd*)
7534   version_type=sunos
7535   need_lib_prefix=no
7536   need_version=no
7537   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7538     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7539     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7540     dynamic_linker='NetBSD (a.out) ld.so'
7541   else
7542     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7543     soname_spec='${libname}${release}${shared_ext}$major'
7544     dynamic_linker='NetBSD ld.elf_so'
7545   fi
7546   shlibpath_var=LD_LIBRARY_PATH
7547   shlibpath_overrides_runpath=yes
7548   hardcode_into_libs=yes
7549   ;;
7550
7551 newsos6)
7552   version_type=linux
7553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7554   shlibpath_var=LD_LIBRARY_PATH
7555   shlibpath_overrides_runpath=yes
7556   ;;
7557
7558 nto-qnx)
7559   version_type=linux
7560   need_lib_prefix=no
7561   need_version=no
7562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7563   soname_spec='${libname}${release}${shared_ext}$major'
7564   shlibpath_var=LD_LIBRARY_PATH
7565   shlibpath_overrides_runpath=yes
7566   ;;
7567
7568 openbsd*)
7569   version_type=sunos
7570   need_lib_prefix=no
7571   need_version=no
7572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7573   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7574   shlibpath_var=LD_LIBRARY_PATH
7575   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7576     case $host_os in
7577       openbsd2.[89] | openbsd2.[89].*)
7578         shlibpath_overrides_runpath=no
7579         ;;
7580       *)
7581         shlibpath_overrides_runpath=yes
7582         ;;
7583       esac
7584   else
7585     shlibpath_overrides_runpath=yes
7586   fi
7587   ;;
7588
7589 os2*)
7590   libname_spec='$name'
7591   shrext=".dll"
7592   need_lib_prefix=no
7593   library_names_spec='$libname${shared_ext} $libname.a'
7594   dynamic_linker='OS/2 ld.exe'
7595   shlibpath_var=LIBPATH
7596   ;;
7597
7598 osf3* | osf4* | osf5*)
7599   version_type=osf
7600   need_lib_prefix=no
7601   need_version=no
7602   soname_spec='${libname}${release}${shared_ext}$major'
7603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7604   shlibpath_var=LD_LIBRARY_PATH
7605   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7606   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7607   ;;
7608
7609 sco3.2v5*)
7610   version_type=osf
7611   soname_spec='${libname}${release}${shared_ext}$major'
7612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7613   shlibpath_var=LD_LIBRARY_PATH
7614   ;;
7615
7616 solaris*)
7617   version_type=linux
7618   need_lib_prefix=no
7619   need_version=no
7620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7621   soname_spec='${libname}${release}${shared_ext}$major'
7622   shlibpath_var=LD_LIBRARY_PATH
7623   shlibpath_overrides_runpath=yes
7624   hardcode_into_libs=yes
7625   # ldd complains unless libraries are executable
7626   postinstall_cmds='chmod +x $lib'
7627   ;;
7628
7629 sunos4*)
7630   version_type=sunos
7631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7632   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7633   shlibpath_var=LD_LIBRARY_PATH
7634   shlibpath_overrides_runpath=yes
7635   if test "$with_gnu_ld" = yes; then
7636     need_lib_prefix=no
7637   fi
7638   need_version=yes
7639   ;;
7640
7641 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7642   version_type=linux
7643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7644   soname_spec='${libname}${release}${shared_ext}$major'
7645   shlibpath_var=LD_LIBRARY_PATH
7646   case $host_vendor in
7647     sni)
7648       shlibpath_overrides_runpath=no
7649       need_lib_prefix=no
7650       export_dynamic_flag_spec='${wl}-Blargedynsym'
7651       runpath_var=LD_RUN_PATH
7652       ;;
7653     siemens)
7654       need_lib_prefix=no
7655       ;;
7656     motorola)
7657       need_lib_prefix=no
7658       need_version=no
7659       shlibpath_overrides_runpath=no
7660       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7661       ;;
7662   esac
7663   ;;
7664
7665 sysv4*MP*)
7666   if test -d /usr/nec ;then
7667     version_type=linux
7668     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7669     soname_spec='$libname${shared_ext}.$major'
7670     shlibpath_var=LD_LIBRARY_PATH
7671   fi
7672   ;;
7673
7674 uts4*)
7675   version_type=linux
7676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7677   soname_spec='${libname}${release}${shared_ext}$major'
7678   shlibpath_var=LD_LIBRARY_PATH
7679   ;;
7680
7681 *)
7682   dynamic_linker=no
7683   ;;
7684 esac
7685 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7686 echo "${ECHO_T}$dynamic_linker" >&6
7687 test "$dynamic_linker" = no && can_build_shared=no
7688
7689 if test "x$enable_dlopen" != xyes; then
7690   enable_dlopen=unknown
7691   enable_dlopen_self=unknown
7692   enable_dlopen_self_static=unknown
7693 else
7694   lt_cv_dlopen=no
7695   lt_cv_dlopen_libs=
7696
7697   case $host_os in
7698   beos*)
7699     lt_cv_dlopen="load_add_on"
7700     lt_cv_dlopen_libs=
7701     lt_cv_dlopen_self=yes
7702     ;;
7703
7704   mingw* | pw32*)
7705     lt_cv_dlopen="LoadLibrary"
7706     lt_cv_dlopen_libs=
7707    ;;
7708
7709   cygwin*)
7710     lt_cv_dlopen="dlopen"
7711     lt_cv_dlopen_libs=
7712    ;;
7713
7714   darwin*)
7715   # if libdl is installed we need to link against it
7716     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7717 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7718 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7719   echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
7721   ac_check_lib_save_LIBS=$LIBS
7722 LIBS="-ldl  $LIBS"
7723 cat >conftest.$ac_ext <<_ACEOF
7724 #line $LINENO "configure"
7725 /* confdefs.h.  */
7726 _ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h.  */
7730
7731 /* Override any gcc2 internal prototype to avoid an error.  */
7732 #ifdef __cplusplus
7733 extern "C"
7734 #endif
7735 /* We use char because int might match the return type of a gcc2
7736    builtin and then its argument prototype would still apply.  */
7737 char dlopen ();
7738 int
7739 main ()
7740 {
7741 dlopen ();
7742   ;
7743   return 0;
7744 }
7745 _ACEOF
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748   (eval $ac_link) 2>&5
7749   ac_status=$?
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); } &&
7752          { ac_try='test -s conftest$ac_exeext'
7753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754   (eval $ac_try) 2>&5
7755   ac_status=$?
7756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757   (exit $ac_status); }; }; then
7758   ac_cv_lib_dl_dlopen=yes
7759 else
7760   echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7762
7763 ac_cv_lib_dl_dlopen=no
7764 fi
7765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7766 LIBS=$ac_check_lib_save_LIBS
7767 fi
7768 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7769 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7770 if test $ac_cv_lib_dl_dlopen = yes; then
7771   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7772 else
7773
7774     lt_cv_dlopen="dyld"
7775     lt_cv_dlopen_libs=
7776     lt_cv_dlopen_self=yes
7777
7778 fi
7779
7780    ;;
7781
7782   *)
7783     echo "$as_me:$LINENO: checking for shl_load" >&5
7784 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7785 if test "${ac_cv_func_shl_load+set}" = set; then
7786   echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788   cat >conftest.$ac_ext <<_ACEOF
7789 #line $LINENO "configure"
7790 /* confdefs.h.  */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h.  */
7795 /* System header to define __stub macros and hopefully few prototypes,
7796     which can conflict with char shl_load (); below.
7797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7798     <limits.h> exists even on freestanding compilers.  */
7799 #ifdef __STDC__
7800 # include <limits.h>
7801 #else
7802 # include <assert.h>
7803 #endif
7804 /* Override any gcc2 internal prototype to avoid an error.  */
7805 #ifdef __cplusplus
7806 extern "C"
7807 {
7808 #endif
7809 /* We use char because int might match the return type of a gcc2
7810    builtin and then its argument prototype would still apply.  */
7811 char shl_load ();
7812 /* The GNU C library defines this for functions which it implements
7813     to always fail with ENOSYS.  Some functions are actually named
7814     something starting with __ and the normal name is an alias.  */
7815 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7816 choke me
7817 #else
7818 char (*f) () = shl_load;
7819 #endif
7820 #ifdef __cplusplus
7821 }
7822 #endif
7823
7824 int
7825 main ()
7826 {
7827 return f != shl_load;
7828   ;
7829   return 0;
7830 }
7831 _ACEOF
7832 rm -f conftest.$ac_objext conftest$ac_exeext
7833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7834   (eval $ac_link) 2>&5
7835   ac_status=$?
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); } &&
7838          { ac_try='test -s conftest$ac_exeext'
7839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840   (eval $ac_try) 2>&5
7841   ac_status=$?
7842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843   (exit $ac_status); }; }; then
7844   ac_cv_func_shl_load=yes
7845 else
7846   echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7848
7849 ac_cv_func_shl_load=no
7850 fi
7851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7852 fi
7853 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7854 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7855 if test $ac_cv_func_shl_load = yes; then
7856   lt_cv_dlopen="shl_load"
7857 else
7858   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7859 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7860 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7861   echo $ECHO_N "(cached) $ECHO_C" >&6
7862 else
7863   ac_check_lib_save_LIBS=$LIBS
7864 LIBS="-ldld  $LIBS"
7865 cat >conftest.$ac_ext <<_ACEOF
7866 #line $LINENO "configure"
7867 /* confdefs.h.  */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h.  */
7872
7873 /* Override any gcc2 internal prototype to avoid an error.  */
7874 #ifdef __cplusplus
7875 extern "C"
7876 #endif
7877 /* We use char because int might match the return type of a gcc2
7878    builtin and then its argument prototype would still apply.  */
7879 char shl_load ();
7880 int
7881 main ()
7882 {
7883 shl_load ();
7884   ;
7885   return 0;
7886 }
7887 _ACEOF
7888 rm -f conftest.$ac_objext conftest$ac_exeext
7889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7890   (eval $ac_link) 2>&5
7891   ac_status=$?
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   (exit $ac_status); } &&
7894          { ac_try='test -s conftest$ac_exeext'
7895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896   (eval $ac_try) 2>&5
7897   ac_status=$?
7898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899   (exit $ac_status); }; }; then
7900   ac_cv_lib_dld_shl_load=yes
7901 else
7902   echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.$ac_ext >&5
7904
7905 ac_cv_lib_dld_shl_load=no
7906 fi
7907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7908 LIBS=$ac_check_lib_save_LIBS
7909 fi
7910 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7911 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7912 if test $ac_cv_lib_dld_shl_load = yes; then
7913   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7914 else
7915   echo "$as_me:$LINENO: checking for dlopen" >&5
7916 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7917 if test "${ac_cv_func_dlopen+set}" = set; then
7918   echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920   cat >conftest.$ac_ext <<_ACEOF
7921 #line $LINENO "configure"
7922 /* confdefs.h.  */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h.  */
7927 /* System header to define __stub macros and hopefully few prototypes,
7928     which can conflict with char dlopen (); below.
7929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7930     <limits.h> exists even on freestanding compilers.  */
7931 #ifdef __STDC__
7932 # include <limits.h>
7933 #else
7934 # include <assert.h>
7935 #endif
7936 /* Override any gcc2 internal prototype to avoid an error.  */
7937 #ifdef __cplusplus
7938 extern "C"
7939 {
7940 #endif
7941 /* We use char because int might match the return type of a gcc2
7942    builtin and then its argument prototype would still apply.  */
7943 char dlopen ();
7944 /* The GNU C library defines this for functions which it implements
7945     to always fail with ENOSYS.  Some functions are actually named
7946     something starting with __ and the normal name is an alias.  */
7947 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7948 choke me
7949 #else
7950 char (*f) () = dlopen;
7951 #endif
7952 #ifdef __cplusplus
7953 }
7954 #endif
7955
7956 int
7957 main ()
7958 {
7959 return f != dlopen;
7960   ;
7961   return 0;
7962 }
7963 _ACEOF
7964 rm -f conftest.$ac_objext conftest$ac_exeext
7965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7966   (eval $ac_link) 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); } &&
7970          { ac_try='test -s conftest$ac_exeext'
7971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972   (eval $ac_try) 2>&5
7973   ac_status=$?
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); }; }; then
7976   ac_cv_func_dlopen=yes
7977 else
7978   echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7980
7981 ac_cv_func_dlopen=no
7982 fi
7983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7984 fi
7985 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7986 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7987 if test $ac_cv_func_dlopen = yes; then
7988   lt_cv_dlopen="dlopen"
7989 else
7990   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7991 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7992 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7993   echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995   ac_check_lib_save_LIBS=$LIBS
7996 LIBS="-ldl  $LIBS"
7997 cat >conftest.$ac_ext <<_ACEOF
7998 #line $LINENO "configure"
7999 /* confdefs.h.  */
8000 _ACEOF
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h.  */
8004
8005 /* Override any gcc2 internal prototype to avoid an error.  */
8006 #ifdef __cplusplus
8007 extern "C"
8008 #endif
8009 /* We use char because int might match the return type of a gcc2
8010    builtin and then its argument prototype would still apply.  */
8011 char dlopen ();
8012 int
8013 main ()
8014 {
8015 dlopen ();
8016   ;
8017   return 0;
8018 }
8019 _ACEOF
8020 rm -f conftest.$ac_objext conftest$ac_exeext
8021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8022   (eval $ac_link) 2>&5
8023   ac_status=$?
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); } &&
8026          { ac_try='test -s conftest$ac_exeext'
8027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028   (eval $ac_try) 2>&5
8029   ac_status=$?
8030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031   (exit $ac_status); }; }; then
8032   ac_cv_lib_dl_dlopen=yes
8033 else
8034   echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8036
8037 ac_cv_lib_dl_dlopen=no
8038 fi
8039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8040 LIBS=$ac_check_lib_save_LIBS
8041 fi
8042 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8043 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8044 if test $ac_cv_lib_dl_dlopen = yes; then
8045   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8046 else
8047   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8048 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8049 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8050   echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052   ac_check_lib_save_LIBS=$LIBS
8053 LIBS="-lsvld  $LIBS"
8054 cat >conftest.$ac_ext <<_ACEOF
8055 #line $LINENO "configure"
8056 /* confdefs.h.  */
8057 _ACEOF
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h.  */
8061
8062 /* Override any gcc2 internal prototype to avoid an error.  */
8063 #ifdef __cplusplus
8064 extern "C"
8065 #endif
8066 /* We use char because int might match the return type of a gcc2
8067    builtin and then its argument prototype would still apply.  */
8068 char dlopen ();
8069 int
8070 main ()
8071 {
8072 dlopen ();
8073   ;
8074   return 0;
8075 }
8076 _ACEOF
8077 rm -f conftest.$ac_objext conftest$ac_exeext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8079   (eval $ac_link) 2>&5
8080   ac_status=$?
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); } &&
8083          { ac_try='test -s conftest$ac_exeext'
8084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085   (eval $ac_try) 2>&5
8086   ac_status=$?
8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); }; }; then
8089   ac_cv_lib_svld_dlopen=yes
8090 else
8091   echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8093
8094 ac_cv_lib_svld_dlopen=no
8095 fi
8096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8097 LIBS=$ac_check_lib_save_LIBS
8098 fi
8099 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8100 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8101 if test $ac_cv_lib_svld_dlopen = yes; then
8102   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8103 else
8104   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8105 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8106 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8107   echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109   ac_check_lib_save_LIBS=$LIBS
8110 LIBS="-ldld  $LIBS"
8111 cat >conftest.$ac_ext <<_ACEOF
8112 #line $LINENO "configure"
8113 /* confdefs.h.  */
8114 _ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h.  */
8118
8119 /* Override any gcc2 internal prototype to avoid an error.  */
8120 #ifdef __cplusplus
8121 extern "C"
8122 #endif
8123 /* We use char because int might match the return type of a gcc2
8124    builtin and then its argument prototype would still apply.  */
8125 char dld_link ();
8126 int
8127 main ()
8128 {
8129 dld_link ();
8130   ;
8131   return 0;
8132 }
8133 _ACEOF
8134 rm -f conftest.$ac_objext conftest$ac_exeext
8135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8136   (eval $ac_link) 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); } &&
8140          { ac_try='test -s conftest$ac_exeext'
8141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142   (eval $ac_try) 2>&5
8143   ac_status=$?
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); }; }; then
8146   ac_cv_lib_dld_dld_link=yes
8147 else
8148   echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8150
8151 ac_cv_lib_dld_dld_link=no
8152 fi
8153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8154 LIBS=$ac_check_lib_save_LIBS
8155 fi
8156 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8157 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8158 if test $ac_cv_lib_dld_dld_link = yes; then
8159   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8160 fi
8161
8162
8163 fi
8164
8165
8166 fi
8167
8168
8169 fi
8170
8171
8172 fi
8173
8174
8175 fi
8176
8177     ;;
8178   esac
8179
8180   if test "x$lt_cv_dlopen" != xno; then
8181     enable_dlopen=yes
8182   else
8183     enable_dlopen=no
8184   fi
8185
8186   case $lt_cv_dlopen in
8187   dlopen)
8188     save_CPPFLAGS="$CPPFLAGS"
8189     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8190
8191     save_LDFLAGS="$LDFLAGS"
8192     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8193
8194     save_LIBS="$LIBS"
8195     LIBS="$lt_cv_dlopen_libs $LIBS"
8196
8197     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8198 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8199 if test "${lt_cv_dlopen_self+set}" = set; then
8200   echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202           if test "$cross_compiling" = yes; then :
8203   lt_cv_dlopen_self=cross
8204 else
8205   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8206   lt_status=$lt_dlunknown
8207   cat > conftest.$ac_ext <<EOF
8208 #line 8208 "configure"
8209 #include "confdefs.h"
8210
8211 #if HAVE_DLFCN_H
8212 #include <dlfcn.h>
8213 #endif
8214
8215 #include <stdio.h>
8216
8217 #ifdef RTLD_GLOBAL
8218 #  define LT_DLGLOBAL           RTLD_GLOBAL
8219 #else
8220 #  ifdef DL_GLOBAL
8221 #    define LT_DLGLOBAL         DL_GLOBAL
8222 #  else
8223 #    define LT_DLGLOBAL         0
8224 #  endif
8225 #endif
8226
8227 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8228    find out it does not work in some platform. */
8229 #ifndef LT_DLLAZY_OR_NOW
8230 #  ifdef RTLD_LAZY
8231 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8232 #  else
8233 #    ifdef DL_LAZY
8234 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8235 #    else
8236 #      ifdef RTLD_NOW
8237 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8238 #      else
8239 #        ifdef DL_NOW
8240 #          define LT_DLLAZY_OR_NOW      DL_NOW
8241 #        else
8242 #          define LT_DLLAZY_OR_NOW      0
8243 #        endif
8244 #      endif
8245 #    endif
8246 #  endif
8247 #endif
8248
8249 #ifdef __cplusplus
8250 extern "C" void exit (int);
8251 #endif
8252
8253 void fnord() { int i=42;}
8254 int main ()
8255 {
8256   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8257   int status = $lt_dlunknown;
8258
8259   if (self)
8260     {
8261       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8262       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8263       /* dlclose (self); */
8264     }
8265
8266     exit (status);
8267 }
8268 EOF
8269   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8270   (eval $ac_link) 2>&5
8271   ac_status=$?
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8274     (./conftest; exit; ) 2>/dev/null
8275     lt_status=$?
8276     case x$lt_status in
8277       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8278       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8279       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8280     esac
8281   else :
8282     # compilation failed
8283     lt_cv_dlopen_self=no
8284   fi
8285 fi
8286 rm -fr conftest*
8287
8288
8289 fi
8290 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8291 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8292
8293     if test "x$lt_cv_dlopen_self" = xyes; then
8294       LDFLAGS="$LDFLAGS $link_static_flag"
8295       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8296 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8297 if test "${lt_cv_dlopen_self_static+set}" = set; then
8298   echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300           if test "$cross_compiling" = yes; then :
8301   lt_cv_dlopen_self_static=cross
8302 else
8303   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8304   lt_status=$lt_dlunknown
8305   cat > conftest.$ac_ext <<EOF
8306 #line 8306 "configure"
8307 #include "confdefs.h"
8308
8309 #if HAVE_DLFCN_H
8310 #include <dlfcn.h>
8311 #endif
8312
8313 #include <stdio.h>
8314
8315 #ifdef RTLD_GLOBAL
8316 #  define LT_DLGLOBAL           RTLD_GLOBAL
8317 #else
8318 #  ifdef DL_GLOBAL
8319 #    define LT_DLGLOBAL         DL_GLOBAL
8320 #  else
8321 #    define LT_DLGLOBAL         0
8322 #  endif
8323 #endif
8324
8325 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8326    find out it does not work in some platform. */
8327 #ifndef LT_DLLAZY_OR_NOW
8328 #  ifdef RTLD_LAZY
8329 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8330 #  else
8331 #    ifdef DL_LAZY
8332 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8333 #    else
8334 #      ifdef RTLD_NOW
8335 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8336 #      else
8337 #        ifdef DL_NOW
8338 #          define LT_DLLAZY_OR_NOW      DL_NOW
8339 #        else
8340 #          define LT_DLLAZY_OR_NOW      0
8341 #        endif
8342 #      endif
8343 #    endif
8344 #  endif
8345 #endif
8346
8347 #ifdef __cplusplus
8348 extern "C" void exit (int);
8349 #endif
8350
8351 void fnord() { int i=42;}
8352 int main ()
8353 {
8354   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8355   int status = $lt_dlunknown;
8356
8357   if (self)
8358     {
8359       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8360       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8361       /* dlclose (self); */
8362     }
8363
8364     exit (status);
8365 }
8366 EOF
8367   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368   (eval $ac_link) 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8372     (./conftest; exit; ) 2>/dev/null
8373     lt_status=$?
8374     case x$lt_status in
8375       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8376       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8377       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8378     esac
8379   else :
8380     # compilation failed
8381     lt_cv_dlopen_self_static=no
8382   fi
8383 fi
8384 rm -fr conftest*
8385
8386
8387 fi
8388 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8389 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8390     fi
8391
8392     CPPFLAGS="$save_CPPFLAGS"
8393     LDFLAGS="$save_LDFLAGS"
8394     LIBS="$save_LIBS"
8395     ;;
8396   esac
8397
8398   case $lt_cv_dlopen_self in
8399   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8400   *) enable_dlopen_self=unknown ;;
8401   esac
8402
8403   case $lt_cv_dlopen_self_static in
8404   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8405   *) enable_dlopen_self_static=unknown ;;
8406   esac
8407 fi
8408
8409
8410 # Report which librarie types wil actually be built
8411 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8412 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8413 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8414 echo "${ECHO_T}$can_build_shared" >&6
8415
8416 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8417 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8418 test "$can_build_shared" = "no" && enable_shared=no
8419
8420 # On AIX, shared libraries and static libraries use the same namespace, and
8421 # are all built from PIC.
8422 case "$host_os" in
8423 aix3*)
8424   test "$enable_shared" = yes && enable_static=no
8425   if test -n "$RANLIB"; then
8426     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8427     postinstall_cmds='$RANLIB $lib'
8428   fi
8429   ;;
8430
8431 aix4*)
8432   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8433     test "$enable_shared" = yes && enable_static=no
8434   fi
8435   ;;
8436   darwin* | rhapsody*)
8437   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8438     archive_cmds_need_lc=no
8439     case "$host_os" in
8440     rhapsody* | darwin1.[012])
8441       allow_undefined_flag='-undefined suppress'
8442       ;;
8443     *) # Darwin 1.3 on
8444       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8445       ;;
8446     esac
8447     # FIXME: Relying on posixy $() will cause problems for
8448     #        cross-compilation, but unfortunately the echo tests do not
8449     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8450     #          `"' quotes if we put them in here... so don't!
8451                 output_verbose_link_cmd='echo'
8452     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8453     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8454     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8455                   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}'
8456                   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}'
8457     hardcode_direct=no
8458     hardcode_automatic=yes
8459     hardcode_shlibpath_var=unsupported
8460     whole_archive_flag_spec='-all_load $convenience'
8461     link_all_deplibs=yes
8462     fi
8463     ;;
8464 esac
8465 echo "$as_me:$LINENO: result: $enable_shared" >&5
8466 echo "${ECHO_T}$enable_shared" >&6
8467
8468 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8469 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8470 # Make sure either enable_shared or enable_static is yes.
8471 test "$enable_shared" = yes || enable_static=yes
8472 echo "$as_me:$LINENO: result: $enable_static" >&5
8473 echo "${ECHO_T}$enable_static" >&6
8474
8475 # The else clause should only fire when bootstrapping the
8476 # libtool distribution, otherwise you forgot to ship ltmain.sh
8477 # with your package, and you will get complaints that there are
8478 # no rules to generate ltmain.sh.
8479 if test -f "$ltmain"; then
8480   # See if we are running on zsh, and set the options which allow our commands through
8481   # without removal of \ escapes.
8482   if test -n "${ZSH_VERSION+set}" ; then
8483     setopt NO_GLOB_SUBST
8484   fi
8485   # Now quote all the things that may contain metacharacters while being
8486   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8487   # variables and quote the copies for generation of the libtool script.
8488   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8489     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8490     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8491     deplibs_check_method reload_flag reload_cmds need_locks \
8492     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8493     lt_cv_sys_global_symbol_to_c_name_address \
8494     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8495     old_postinstall_cmds old_postuninstall_cmds \
8496     compiler \
8497     CC \
8498     LD \
8499     lt_prog_compiler_wl \
8500     lt_prog_compiler_pic \
8501     lt_prog_compiler_static \
8502     lt_prog_compiler_no_builtin_flag \
8503     export_dynamic_flag_spec \
8504     thread_safe_flag_spec \
8505     whole_archive_flag_spec \
8506     enable_shared_with_static_runtimes \
8507     old_archive_cmds \
8508     old_archive_from_new_cmds \
8509     predep_objects \
8510     postdep_objects \
8511     predeps \
8512     postdeps \
8513     compiler_lib_search_path \
8514     archive_cmds \
8515     archive_expsym_cmds \
8516     postinstall_cmds \
8517     postuninstall_cmds \
8518     old_archive_from_expsyms_cmds \
8519     allow_undefined_flag \
8520     no_undefined_flag \
8521     export_symbols_cmds \
8522     hardcode_libdir_flag_spec \
8523     hardcode_libdir_flag_spec_ld \
8524     hardcode_libdir_separator \
8525     hardcode_automatic \
8526     module_cmds \
8527     module_expsym_cmds \
8528     lt_cv_prog_compiler_c_o \
8529     exclude_expsyms \
8530     include_expsyms; do
8531
8532     case $var in
8533     old_archive_cmds | \
8534     old_archive_from_new_cmds | \
8535     archive_cmds | \
8536     archive_expsym_cmds | \
8537     module_cmds | \
8538     module_expsym_cmds | \
8539     old_archive_from_expsyms_cmds | \
8540     export_symbols_cmds | \
8541     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8542     postinstall_cmds | postuninstall_cmds | \
8543     old_postinstall_cmds | old_postuninstall_cmds | \
8544     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8545       # Double-quote double-evaled strings.
8546       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8547       ;;
8548     *)
8549       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8550       ;;
8551     esac
8552   done
8553
8554   case $lt_echo in
8555   *'\$0 --fallback-echo"')
8556     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8557     ;;
8558   esac
8559
8560 cfgfile="${ofile}T"
8561   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8562   $rm -f "$cfgfile"
8563   { echo "$as_me:$LINENO: creating $ofile" >&5
8564 echo "$as_me: creating $ofile" >&6;}
8565
8566   cat <<__EOF__ >> "$cfgfile"
8567 #! $SHELL
8568
8569 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8570 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8571 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8572 #
8573 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8574 # Free Software Foundation, Inc.
8575 #
8576 # This file is part of GNU Libtool:
8577 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8578 #
8579 # This program is free software; you can redistribute it and/or modify
8580 # it under the terms of the GNU General Public License as published by
8581 # the Free Software Foundation; either version 2 of the License, or
8582 # (at your option) any later version.
8583 #
8584 # This program is distributed in the hope that it will be useful, but
8585 # WITHOUT ANY WARRANTY; without even the implied warranty of
8586 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8587 # General Public License for more details.
8588 #
8589 # You should have received a copy of the GNU General Public License
8590 # along with this program; if not, write to the Free Software
8591 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8592 #
8593 # As a special exception to the GNU General Public License, if you
8594 # distribute this file as part of a program that contains a
8595 # configuration script generated by Autoconf, you may include it under
8596 # the same distribution terms that you use for the rest of that program.
8597
8598 # A sed program that does not truncate output.
8599 SED=$lt_SED
8600
8601 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8602 Xsed="$SED -e s/^X//"
8603
8604 # The HP-UX ksh and POSIX shell print the target directory to stdout
8605 # if CDPATH is set.
8606 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8607
8608 # The names of the tagged configurations supported by this script.
8609 available_tags=
8610
8611 # ### BEGIN LIBTOOL CONFIG
8612
8613 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8614
8615 # Shell to use when invoking shell scripts.
8616 SHELL=$lt_SHELL
8617
8618 # Whether or not to build shared libraries.
8619 build_libtool_libs=$enable_shared
8620
8621 # Whether or not to build static libraries.
8622 build_old_libs=$enable_static
8623
8624 # Whether or not to add -lc for building shared libraries.
8625 build_libtool_need_lc=$archive_cmds_need_lc
8626
8627 # Whether or not to disallow shared libs when runtime libs are static
8628 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8629
8630 # Whether or not to optimize for fast installation.
8631 fast_install=$enable_fast_install
8632
8633 # The host system.
8634 host_alias=$host_alias
8635 host=$host
8636
8637 # An echo program that does not interpret backslashes.
8638 echo=$lt_echo
8639
8640 # The archiver.
8641 AR=$lt_AR
8642 AR_FLAGS=$lt_AR_FLAGS
8643
8644 # A C compiler.
8645 LTCC=$lt_LTCC
8646
8647 # A language-specific compiler.
8648 CC=$lt_compiler
8649
8650 # Is the compiler the GNU C compiler?
8651 with_gcc=$GCC
8652
8653 # An ERE matcher.
8654 EGREP=$lt_EGREP
8655
8656 # The linker used to build libraries.
8657 LD=$lt_LD
8658
8659 # Whether we need hard or soft links.
8660 LN_S=$lt_LN_S
8661
8662 # A BSD-compatible nm program.
8663 NM=$lt_NM
8664
8665 # A symbol stripping program
8666 STRIP=$STRIP
8667
8668 # Used to examine libraries when file_magic_cmd begins "file"
8669 MAGIC_CMD=$MAGIC_CMD
8670
8671 # Used on cygwin: DLL creation program.
8672 DLLTOOL="$DLLTOOL"
8673
8674 # Used on cygwin: object dumper.
8675 OBJDUMP="$OBJDUMP"
8676
8677 # Used on cygwin: assembler.
8678 AS="$AS"
8679
8680 # The name of the directory that contains temporary libtool files.
8681 objdir=$objdir
8682
8683 # How to create reloadable object files.
8684 reload_flag=$lt_reload_flag
8685 reload_cmds=$lt_reload_cmds
8686
8687 # How to pass a linker flag through the compiler.
8688 wl=$lt_lt_prog_compiler_wl
8689
8690 # Object file suffix (normally "o").
8691 objext="$ac_objext"
8692
8693 # Old archive suffix (normally "a").
8694 libext="$libext"
8695
8696 # Shared library suffix (normally ".so").
8697 shrext='$shrext'
8698
8699 # Executable file suffix (normally "").
8700 exeext="$exeext"
8701
8702 # Additional compiler flags for building library objects.
8703 pic_flag=$lt_lt_prog_compiler_pic
8704 pic_mode=$pic_mode
8705
8706 # What is the maximum length of a command?
8707 max_cmd_len=$lt_cv_sys_max_cmd_len
8708
8709 # Does compiler simultaneously support -c and -o options?
8710 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8711
8712 # Must we lock files when doing compilation ?
8713 need_locks=$lt_need_locks
8714
8715 # Do we need the lib prefix for modules?
8716 need_lib_prefix=$need_lib_prefix
8717
8718 # Do we need a version for libraries?
8719 need_version=$need_version
8720
8721 # Whether dlopen is supported.
8722 dlopen_support=$enable_dlopen
8723
8724 # Whether dlopen of programs is supported.
8725 dlopen_self=$enable_dlopen_self
8726
8727 # Whether dlopen of statically linked programs is supported.
8728 dlopen_self_static=$enable_dlopen_self_static
8729
8730 # Compiler flag to prevent dynamic linking.
8731 link_static_flag=$lt_lt_prog_compiler_static
8732
8733 # Compiler flag to turn off builtin functions.
8734 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8735
8736 # Compiler flag to allow reflexive dlopens.
8737 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8738
8739 # Compiler flag to generate shared objects directly from archives.
8740 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8741
8742 # Compiler flag to generate thread-safe objects.
8743 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8744
8745 # Library versioning type.
8746 version_type=$version_type
8747
8748 # Format of library name prefix.
8749 libname_spec=$lt_libname_spec
8750
8751 # List of archive names.  First name is the real one, the rest are links.
8752 # The last name is the one that the linker finds with -lNAME.
8753 library_names_spec=$lt_library_names_spec
8754
8755 # The coded name of the library, if different from the real name.
8756 soname_spec=$lt_soname_spec
8757
8758 # Commands used to build and install an old-style archive.
8759 RANLIB=$lt_RANLIB
8760 old_archive_cmds=$lt_old_archive_cmds
8761 old_postinstall_cmds=$lt_old_postinstall_cmds
8762 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8763
8764 # Create an old-style archive from a shared archive.
8765 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8766
8767 # Create a temporary old-style archive to link instead of a shared archive.
8768 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8769
8770 # Commands used to build and install a shared archive.
8771 archive_cmds=$lt_archive_cmds
8772 archive_expsym_cmds=$lt_archive_expsym_cmds
8773 postinstall_cmds=$lt_postinstall_cmds
8774 postuninstall_cmds=$lt_postuninstall_cmds
8775
8776 # Commands used to build a loadable module (assumed same as above if empty)
8777 module_cmds=$lt_module_cmds
8778 module_expsym_cmds=$lt_module_expsym_cmds
8779
8780 # Commands to strip libraries.
8781 old_striplib=$lt_old_striplib
8782 striplib=$lt_striplib
8783
8784 # Dependencies to place before the objects being linked to create a
8785 # shared library.
8786 predep_objects=$lt_predep_objects
8787
8788 # Dependencies to place after the objects being linked to create a
8789 # shared library.
8790 postdep_objects=$lt_postdep_objects
8791
8792 # Dependencies to place before the objects being linked to create a
8793 # shared library.
8794 predeps=$lt_predeps
8795
8796 # Dependencies to place after the objects being linked to create a
8797 # shared library.
8798 postdeps=$lt_postdeps
8799
8800 # The library search path used internally by the compiler when linking
8801 # a shared library.
8802 compiler_lib_search_path=$lt_compiler_lib_search_path
8803
8804 # Method to check whether dependent libraries are shared objects.
8805 deplibs_check_method=$lt_deplibs_check_method
8806
8807 # Command to use when deplibs_check_method == file_magic.
8808 file_magic_cmd=$lt_file_magic_cmd
8809
8810 # Flag that allows shared libraries with undefined symbols to be built.
8811 allow_undefined_flag=$lt_allow_undefined_flag
8812
8813 # Flag that forces no undefined symbols.
8814 no_undefined_flag=$lt_no_undefined_flag
8815
8816 # Commands used to finish a libtool library installation in a directory.
8817 finish_cmds=$lt_finish_cmds
8818
8819 # Same as above, but a single script fragment to be evaled but not shown.
8820 finish_eval=$lt_finish_eval
8821
8822 # Take the output of nm and produce a listing of raw symbols and C names.
8823 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8824
8825 # Transform the output of nm in a proper C declaration
8826 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8827
8828 # Transform the output of nm in a C name address pair
8829 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8830
8831 # This is the shared library runtime path variable.
8832 runpath_var=$runpath_var
8833
8834 # This is the shared library path variable.
8835 shlibpath_var=$shlibpath_var
8836
8837 # Is shlibpath searched before the hard-coded library search path?
8838 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8839
8840 # How to hardcode a shared library path into an executable.
8841 hardcode_action=$hardcode_action
8842
8843 # Whether we should hardcode library paths into libraries.
8844 hardcode_into_libs=$hardcode_into_libs
8845
8846 # Flag to hardcode \$libdir into a binary during linking.
8847 # This must work even if \$libdir does not exist.
8848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8849
8850 # If ld is used when linking, flag to hardcode \$libdir into
8851 # a binary during linking. This must work even if \$libdir does
8852 # not exist.
8853 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8854
8855 # Whether we need a single -rpath flag with a separated argument.
8856 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8857
8858 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8859 # resulting binary.
8860 hardcode_direct=$hardcode_direct
8861
8862 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8863 # resulting binary.
8864 hardcode_minus_L=$hardcode_minus_L
8865
8866 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8867 # the resulting binary.
8868 hardcode_shlibpath_var=$hardcode_shlibpath_var
8869
8870 # Set to yes if building a shared library automatically hardcodes DIR into the library
8871 # and all subsequent libraries and executables linked against it.
8872 hardcode_automatic=$hardcode_automatic
8873
8874 # Variables whose values should be saved in libtool wrapper scripts and
8875 # restored at relink time.
8876 variables_saved_for_relink="$variables_saved_for_relink"
8877
8878 # Whether libtool must link a program against all its dependency libraries.
8879 link_all_deplibs=$link_all_deplibs
8880
8881 # Compile-time system search path for libraries
8882 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8883
8884 # Run-time system search path for libraries
8885 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8886
8887 # Fix the shell variable \$srcfile for the compiler.
8888 fix_srcfile_path="$fix_srcfile_path"
8889
8890 # Set to yes if exported symbols are required.
8891 always_export_symbols=$always_export_symbols
8892
8893 # The commands to list exported symbols.
8894 export_symbols_cmds=$lt_export_symbols_cmds
8895
8896 # The commands to extract the exported symbol list from a shared archive.
8897 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8898
8899 # Symbols that should not be listed in the preloaded symbols.
8900 exclude_expsyms=$lt_exclude_expsyms
8901
8902 # Symbols that must always be exported.
8903 include_expsyms=$lt_include_expsyms
8904
8905 # ### END LIBTOOL CONFIG
8906
8907 __EOF__
8908
8909
8910   case $host_os in
8911   aix3*)
8912     cat <<\EOF >> "$cfgfile"
8913
8914 # AIX sometimes has problems with the GCC collect2 program.  For some
8915 # reason, if we set the COLLECT_NAMES environment variable, the problems
8916 # vanish in a puff of smoke.
8917 if test "X${COLLECT_NAMES+set}" != Xset; then
8918   COLLECT_NAMES=
8919   export COLLECT_NAMES
8920 fi
8921 EOF
8922     ;;
8923   esac
8924
8925   # We use sed instead of cat because bash on DJGPP gets confused if
8926   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8927   # text mode, it properly converts lines to CR/LF.  This bash problem
8928   # is reportedly fixed, but why not run on old versions too?
8929   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8930
8931   mv -f "$cfgfile" "$ofile" || \
8932     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8933   chmod +x "$ofile"
8934
8935 else
8936   # If there is no Makefile yet, we rely on a make rule to execute
8937   # `config.status --recheck' to rerun these tests and create the
8938   # libtool script then.
8939   test -f Makefile && make "$ltmain"
8940 fi
8941
8942
8943 ac_ext=c
8944 ac_cpp='$CPP $CPPFLAGS'
8945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8948
8949 CC="$lt_save_CC"
8950
8951
8952 # Check whether --with-tags or --without-tags was given.
8953 if test "${with_tags+set}" = set; then
8954   withval="$with_tags"
8955   tagnames="$withval"
8956 fi;
8957
8958 if test -f "$ltmain" && test -n "$tagnames"; then
8959   if test ! -f "${ofile}"; then
8960     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8961 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8962   fi
8963
8964   if test -z "$LTCC"; then
8965     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8966     if test -z "$LTCC"; then
8967       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8968 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8969     else
8970       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8971 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8972     fi
8973   fi
8974
8975   # Extract list of available tagged configurations in $ofile.
8976   # Note that this assumes the entire list is on one line.
8977   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8978
8979   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8980   for tagname in $tagnames; do
8981     IFS="$lt_save_ifs"
8982     # Check whether tagname contains only valid characters
8983     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8984     "") ;;
8985     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8986 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8987    { (exit 1); exit 1; }; }
8988         ;;
8989     esac
8990
8991     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8992     then
8993       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8994 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8995    { (exit 1); exit 1; }; }
8996     fi
8997
8998     # Update the list of available tags.
8999     if test -n "$tagname"; then
9000       echo appending configuration tag \"$tagname\" to $ofile
9001
9002       case $tagname in
9003       CXX)
9004         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9005           ac_ext=cc
9006 ac_cpp='$CXXCPP $CPPFLAGS'
9007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9010
9011
9012
9013
9014 archive_cmds_need_lc_CXX=no
9015 allow_undefined_flag_CXX=
9016 always_export_symbols_CXX=no
9017 archive_expsym_cmds_CXX=
9018 export_dynamic_flag_spec_CXX=
9019 hardcode_direct_CXX=no
9020 hardcode_libdir_flag_spec_CXX=
9021 hardcode_libdir_flag_spec_ld_CXX=
9022 hardcode_libdir_separator_CXX=
9023 hardcode_minus_L_CXX=no
9024 hardcode_automatic_CXX=no
9025 module_cmds_CXX=
9026 module_expsym_cmds_CXX=
9027 link_all_deplibs_CXX=unknown
9028 old_archive_cmds_CXX=$old_archive_cmds
9029 no_undefined_flag_CXX=
9030 whole_archive_flag_spec_CXX=
9031 enable_shared_with_static_runtimes_CXX=no
9032
9033 # Dependencies to place before and after the object being linked:
9034 predep_objects_CXX=
9035 postdep_objects_CXX=
9036 predeps_CXX=
9037 postdeps_CXX=
9038 compiler_lib_search_path_CXX=
9039
9040 # Source file extension for C++ test sources.
9041 ac_ext=cc
9042
9043 # Object file extension for compiled C++ test sources.
9044 objext=o
9045 objext_CXX=$objext
9046
9047 # Code to be used in simple compile tests
9048 lt_simple_compile_test_code="int some_variable = 0;\n"
9049
9050 # Code to be used in simple link tests
9051 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9052
9053 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9054
9055 # If no C compiler was specified, use CC.
9056 LTCC=${LTCC-"$CC"}
9057
9058 # Allow CC to be a program name with arguments.
9059 compiler=$CC
9060
9061
9062 # Allow CC to be a program name with arguments.
9063 lt_save_CC=$CC
9064 lt_save_LD=$LD
9065 lt_save_GCC=$GCC
9066 GCC=$GXX
9067 lt_save_with_gnu_ld=$with_gnu_ld
9068 lt_save_path_LD=$lt_cv_path_LD
9069 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9070   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9071 else
9072   unset lt_cv_prog_gnu_ld
9073 fi
9074 if test -n "${lt_cv_path_LDCXX+set}"; then
9075   lt_cv_path_LD=$lt_cv_path_LDCXX
9076 else
9077   unset lt_cv_path_LD
9078 fi
9079 test -z "${LDCXX+set}" || LD=$LDCXX
9080 CC=${CXX-"c++"}
9081 compiler=$CC
9082 compiler_CXX=$CC
9083 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9084
9085 # We don't want -fno-exception wen compiling C++ code, so set the
9086 # no_builtin_flag separately
9087 if test "$GXX" = yes; then
9088   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9089 else
9090   lt_prog_compiler_no_builtin_flag_CXX=
9091 fi
9092
9093 if test "$GXX" = yes; then
9094   # Set up default GNU C++ configuration
9095
9096
9097 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9098 if test "${with_gnu_ld+set}" = set; then
9099   withval="$with_gnu_ld"
9100   test "$withval" = no || with_gnu_ld=yes
9101 else
9102   with_gnu_ld=no
9103 fi;
9104 ac_prog=ld
9105 if test "$GCC" = yes; then
9106   # Check if gcc -print-prog-name=ld gives a path.
9107   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9108 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9109   case $host in
9110   *-*-mingw*)
9111     # gcc leaves a trailing carriage return which upsets mingw
9112     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9113   *)
9114     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9115   esac
9116   case $ac_prog in
9117     # Accept absolute paths.
9118     [\\/]* | ?:[\\/]*)
9119       re_direlt='/[^/][^/]*/\.\./'
9120       # Canonicalize the path of ld
9121       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9122       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9123         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9124       done
9125       test -z "$LD" && LD="$ac_prog"
9126       ;;
9127   "")
9128     # If it fails, then pretend we aren't using GCC.
9129     ac_prog=ld
9130     ;;
9131   *)
9132     # If it is relative, then search for the first ld in PATH.
9133     with_gnu_ld=unknown
9134     ;;
9135   esac
9136 elif test "$with_gnu_ld" = yes; then
9137   echo "$as_me:$LINENO: checking for GNU ld" >&5
9138 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9139 else
9140   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9141 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9142 fi
9143 if test "${lt_cv_path_LD+set}" = set; then
9144   echo $ECHO_N "(cached) $ECHO_C" >&6
9145 else
9146   if test -z "$LD"; then
9147   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9148   for ac_dir in $PATH; do
9149     IFS="$lt_save_ifs"
9150     test -z "$ac_dir" && ac_dir=.
9151     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9152       lt_cv_path_LD="$ac_dir/$ac_prog"
9153       # Check to see if the program is GNU ld.  I'd rather use --version,
9154       # but apparently some GNU ld's only accept -v.
9155       # Break only if it was the GNU/non-GNU ld that we prefer.
9156       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9157       *GNU* | *'with BFD'*)
9158         test "$with_gnu_ld" != no && break
9159         ;;
9160       *)
9161         test "$with_gnu_ld" != yes && break
9162         ;;
9163       esac
9164     fi
9165   done
9166   IFS="$lt_save_ifs"
9167 else
9168   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9169 fi
9170 fi
9171
9172 LD="$lt_cv_path_LD"
9173 if test -n "$LD"; then
9174   echo "$as_me:$LINENO: result: $LD" >&5
9175 echo "${ECHO_T}$LD" >&6
9176 else
9177   echo "$as_me:$LINENO: result: no" >&5
9178 echo "${ECHO_T}no" >&6
9179 fi
9180 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9181 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9182    { (exit 1); exit 1; }; }
9183 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9184 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9185 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9186   echo $ECHO_N "(cached) $ECHO_C" >&6
9187 else
9188   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9189 case `"$LD" -v 2>&1 </dev/null` in
9190 *GNU* | *'with BFD'*)
9191   lt_cv_prog_gnu_ld=yes
9192   ;;
9193 *)
9194   lt_cv_prog_gnu_ld=no
9195   ;;
9196 esac
9197 fi
9198 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9199 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9200 with_gnu_ld=$lt_cv_prog_gnu_ld
9201
9202
9203
9204   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9205   # archiving commands below assume that GNU ld is being used.
9206   if test "$with_gnu_ld" = yes; then
9207     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9208     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'
9209
9210     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9211     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9212
9213     # If archive_cmds runs LD, not CC, wlarc should be empty
9214     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9215     #     investigate it a little bit more. (MM)
9216     wlarc='${wl}'
9217
9218     # ancient GNU ld didn't support --whole-archive et. al.
9219     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9220         grep 'no-whole-archive' > /dev/null; then
9221       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9222     else
9223       whole_archive_flag_spec_CXX=
9224     fi
9225   else
9226     with_gnu_ld=no
9227     wlarc=
9228
9229     # A generic and very simple default shared library creation
9230     # command for GNU C++ for the case where it uses the native
9231     # linker, instead of GNU ld.  If possible, this setting should
9232     # overridden to take advantage of the native linker features on
9233     # the platform it is being used on.
9234     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9235   fi
9236
9237   # Commands to make compiler produce verbose output that lists
9238   # what "hidden" libraries, object files and flags are used when
9239   # linking a shared library.
9240   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9241
9242 else
9243   GXX=no
9244   with_gnu_ld=no
9245   wlarc=
9246 fi
9247
9248 # PORTME: fill in a description of your system's C++ link characteristics
9249 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9250 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9251 ld_shlibs_CXX=yes
9252 case $host_os in
9253   aix3*)
9254     # FIXME: insert proper C++ library support
9255     ld_shlibs_CXX=no
9256     ;;
9257   aix4* | aix5*)
9258     if test "$host_cpu" = ia64; then
9259       # On IA64, the linker does run time linking by default, so we don't
9260       # have to do anything special.
9261       aix_use_runtimelinking=no
9262       exp_sym_flag='-Bexport'
9263       no_entry_flag=""
9264     else
9265       aix_use_runtimelinking=no
9266
9267       # Test if we are trying to use run time linking or normal
9268       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9269       # need to do runtime linking.
9270       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9271         for ld_flag in $LDFLAGS; do
9272           case $ld_flag in
9273           *-brtl*)
9274             aix_use_runtimelinking=yes
9275             break
9276             ;;
9277           esac
9278         done
9279       esac
9280
9281       exp_sym_flag='-bexport'
9282       no_entry_flag='-bnoentry'
9283     fi
9284
9285     # When large executables or shared objects are built, AIX ld can
9286     # have problems creating the table of contents.  If linking a library
9287     # or program results in "error TOC overflow" add -mminimal-toc to
9288     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9289     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9290
9291     archive_cmds_CXX=''
9292     hardcode_direct_CXX=yes
9293     hardcode_libdir_separator_CXX=':'
9294     link_all_deplibs_CXX=yes
9295
9296     if test "$GXX" = yes; then
9297       case $host_os in aix4.012|aix4.012.*)
9298       # We only want to do this on AIX 4.2 and lower, the check
9299       # below for broken collect2 doesn't work under 4.3+
9300         collect2name=`${CC} -print-prog-name=collect2`
9301         if test -f "$collect2name" && \
9302            strings "$collect2name" | grep resolve_lib_name >/dev/null
9303         then
9304           # We have reworked collect2
9305           hardcode_direct_CXX=yes
9306         else
9307           # We have old collect2
9308           hardcode_direct_CXX=unsupported
9309           # It fails to find uninstalled libraries when the uninstalled
9310           # path is not listed in the libpath.  Setting hardcode_minus_L
9311           # to unsupported forces relinking
9312           hardcode_minus_L_CXX=yes
9313           hardcode_libdir_flag_spec_CXX='-L$libdir'
9314           hardcode_libdir_separator_CXX=
9315         fi
9316       esac
9317       shared_flag='-shared'
9318     else
9319       # not using gcc
9320       if test "$host_cpu" = ia64; then
9321         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9322         # chokes on -Wl,-G. The following line is correct:
9323         shared_flag='-G'
9324       else
9325         if test "$aix_use_runtimelinking" = yes; then
9326           shared_flag='${wl}-G'
9327         else
9328           shared_flag='${wl}-bM:SRE'
9329         fi
9330       fi
9331     fi
9332
9333     # It seems that -bexpall does not export symbols beginning with
9334     # underscore (_), so it is better to generate a list of symbols to export.
9335     always_export_symbols_CXX=yes
9336     if test "$aix_use_runtimelinking" = yes; then
9337       # Warning - without using the other runtime loading flags (-brtl),
9338       # -berok will link without error, but may produce a broken library.
9339       allow_undefined_flag_CXX='-berok'
9340       # Determine the default libpath from the value encoded in an empty executable.
9341       cat >conftest.$ac_ext <<_ACEOF
9342 #line $LINENO "configure"
9343 /* confdefs.h.  */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h.  */
9348
9349 int
9350 main ()
9351 {
9352
9353   ;
9354   return 0;
9355 }
9356 _ACEOF
9357 rm -f conftest.$ac_objext conftest$ac_exeext
9358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359   (eval $ac_link) 2>&5
9360   ac_status=$?
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); } &&
9363          { ac_try='test -s conftest$ac_exeext'
9364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365   (eval $ac_try) 2>&5
9366   ac_status=$?
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   (exit $ac_status); }; }; then
9369
9370 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9371 }'`
9372 # Check for a 64-bit object if we didn't find anything.
9373 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; }
9374 }'`; fi
9375 else
9376   echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9378
9379 fi
9380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9381 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9382
9383       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9384
9385       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"
9386      else
9387       if test "$host_cpu" = ia64; then
9388         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9389         allow_undefined_flag_CXX="-z nodefs"
9390         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"
9391       else
9392         # Determine the default libpath from the value encoded in an empty executable.
9393         cat >conftest.$ac_ext <<_ACEOF
9394 #line $LINENO "configure"
9395 /* confdefs.h.  */
9396 _ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h.  */
9400
9401 int
9402 main ()
9403 {
9404
9405   ;
9406   return 0;
9407 }
9408 _ACEOF
9409 rm -f conftest.$ac_objext conftest$ac_exeext
9410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9411   (eval $ac_link) 2>&5
9412   ac_status=$?
9413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); } &&
9415          { ac_try='test -s conftest$ac_exeext'
9416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417   (eval $ac_try) 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); }; }; then
9421
9422 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9423 }'`
9424 # Check for a 64-bit object if we didn't find anything.
9425 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; }
9426 }'`; fi
9427 else
9428   echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9430
9431 fi
9432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9434
9435         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9436         # Warning - without using the other run time loading flags,
9437         # -berok will link without error, but may produce a broken library.
9438         no_undefined_flag_CXX=' ${wl}-bernotok'
9439         allow_undefined_flag_CXX=' ${wl}-berok'
9440         # -bexpall does not export symbols beginning with underscore (_)
9441         always_export_symbols_CXX=yes
9442         # Exported symbols can be pulled into shared objects from archives
9443         whole_archive_flag_spec_CXX=' '
9444         archive_cmds_need_lc_CXX=yes
9445         # This is similar to how AIX traditionally builds it's shared libraries.
9446         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'
9447       fi
9448     fi
9449     ;;
9450   chorus*)
9451     case $cc_basename in
9452       *)
9453         # FIXME: insert proper C++ library support
9454         ld_shlibs_CXX=no
9455         ;;
9456     esac
9457     ;;
9458
9459   cygwin* | mingw* | pw32*)
9460     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9461     # as there is no search path for DLLs.
9462     hardcode_libdir_flag_spec_CXX='-L$libdir'
9463     allow_undefined_flag_CXX=unsupported
9464     always_export_symbols_CXX=no
9465     enable_shared_with_static_runtimes_CXX=yes
9466
9467     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9468       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'
9469       # If the export-symbols file already is a .def file (1st line
9470       # is EXPORTS), use it as is; otherwise, prepend...
9471       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9472         cp $export_symbols $output_objdir/$soname.def;
9473       else
9474         echo EXPORTS > $output_objdir/$soname.def;
9475         cat $export_symbols >> $output_objdir/$soname.def;
9476       fi~
9477       $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'
9478     else
9479       ld_shlibs_CXX=no
9480     fi
9481   ;;
9482
9483   darwin* | rhapsody*)
9484    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9485     archive_cmds_need_lc_CXX=no
9486     case "$host_os" in
9487     rhapsody* | darwin1.[012])
9488       allow_undefined_flag_CXX='-undefined suppress'
9489       ;;
9490     *) # Darwin 1.3 on
9491       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9492       ;;
9493     esac
9494         lt_int_apple_cc_single_mod=no
9495         output_verbose_link_cmd='echo'
9496         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9497           lt_int_apple_cc_single_mod=yes
9498         fi
9499         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9500           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9501         else
9502         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'
9503       fi
9504       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9505
9506     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9507       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9508         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}'
9509       else
9510         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}'
9511       fi
9512         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}'
9513     hardcode_direct_CXX=no
9514     hardcode_automatic_CXX=yes
9515     hardcode_shlibpath_var_CXX=unsupported
9516     whole_archive_flag_spec_CXX='-all_load $convenience'
9517     link_all_deplibs_CXX=yes
9518    fi
9519     ;;
9520
9521   dgux*)
9522     case $cc_basename in
9523       ec++)
9524         # FIXME: insert proper C++ library support
9525         ld_shlibs_CXX=no
9526         ;;
9527       ghcx)
9528         # Green Hills C++ Compiler
9529         # FIXME: insert proper C++ library support
9530         ld_shlibs_CXX=no
9531         ;;
9532       *)
9533         # FIXME: insert proper C++ library support
9534         ld_shlibs_CXX=no
9535         ;;
9536     esac
9537     ;;
9538   freebsd12*)
9539     # C++ shared libraries reported to be fairly broken before switch to ELF
9540     ld_shlibs_CXX=no
9541     ;;
9542   freebsd-elf*)
9543     archive_cmds_need_lc_CXX=no
9544     ;;
9545   freebsd*)
9546     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9547     # conventions
9548     ld_shlibs_CXX=yes
9549     ;;
9550   gnu*)
9551     ;;
9552   hpux9*)
9553     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9554     hardcode_libdir_separator_CXX=:
9555     export_dynamic_flag_spec_CXX='${wl}-E'
9556     hardcode_direct_CXX=yes
9557     hardcode_minus_L_CXX=yes # Not in the search PATH,
9558                                 # but as the default
9559                                 # location of the library.
9560
9561     case $cc_basename in
9562     CC)
9563       # FIXME: insert proper C++ library support
9564       ld_shlibs_CXX=no
9565       ;;
9566     aCC)
9567       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'
9568       # Commands to make compiler produce verbose output that lists
9569       # what "hidden" libraries, object files and flags are used when
9570       # linking a shared library.
9571       #
9572       # There doesn't appear to be a way to prevent this compiler from
9573       # explicitly linking system object files so we need to strip them
9574       # from the output so that they don't get included in the library
9575       # dependencies.
9576       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'
9577       ;;
9578     *)
9579       if test "$GXX" = yes; then
9580         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'
9581       else
9582         # FIXME: insert proper C++ library support
9583         ld_shlibs_CXX=no
9584       fi
9585       ;;
9586     esac
9587     ;;
9588   hpux10*|hpux11*)
9589     if test $with_gnu_ld = no; then
9590       case "$host_cpu" in
9591       hppa*64*)
9592         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9593         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9594         hardcode_libdir_separator_CXX=:
9595         ;;
9596       ia64*)
9597         hardcode_libdir_flag_spec_CXX='-L$libdir'
9598         ;;
9599       *)
9600         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9601         hardcode_libdir_separator_CXX=:
9602         export_dynamic_flag_spec_CXX='${wl}-E'
9603         ;;
9604       esac
9605     fi
9606     case "$host_cpu" in
9607     hppa*64*)
9608       hardcode_direct_CXX=no
9609       hardcode_shlibpath_var_CXX=no
9610       ;;
9611     ia64*)
9612       hardcode_direct_CXX=no
9613       hardcode_shlibpath_var_CXX=no
9614       hardcode_minus_L_CXX=yes # Not in the search PATH,
9615                                               # but as the default
9616                                               # location of the library.
9617       ;;
9618     *)
9619       hardcode_direct_CXX=yes
9620       hardcode_minus_L_CXX=yes # Not in the search PATH,
9621                                               # but as the default
9622                                               # location of the library.
9623       ;;
9624     esac
9625
9626     case $cc_basename in
9627       CC)
9628         # FIXME: insert proper C++ library support
9629         ld_shlibs_CXX=no
9630         ;;
9631       aCC)
9632         case "$host_cpu" in
9633         hppa*64*|ia64*)
9634           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9635           ;;
9636         *)
9637           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9638           ;;
9639         esac
9640         # Commands to make compiler produce verbose output that lists
9641         # what "hidden" libraries, object files and flags are used when
9642         # linking a shared library.
9643         #
9644         # There doesn't appear to be a way to prevent this compiler from
9645         # explicitly linking system object files so we need to strip them
9646         # from the output so that they don't get included in the library
9647         # dependencies.
9648         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'
9649         ;;
9650       *)
9651         if test "$GXX" = yes; then
9652           if test $with_gnu_ld = no; then
9653             case "$host_cpu" in
9654             ia64*|hppa*64*)
9655               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9656               ;;
9657             *)
9658               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'
9659               ;;
9660             esac
9661           fi
9662         else
9663           # FIXME: insert proper C++ library support
9664           ld_shlibs_CXX=no
9665         fi
9666         ;;
9667     esac
9668     ;;
9669   irix5* | irix6*)
9670     case $cc_basename in
9671       CC)
9672         # SGI C++
9673         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'
9674
9675         # Archives containing C++ object files must be created using
9676         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9677         # necessary to make sure instantiated templates are included
9678         # in the archive.
9679         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9680         ;;
9681       *)
9682         if test "$GXX" = yes; then
9683           if test "$with_gnu_ld" = no; then
9684             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'
9685           else
9686             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'
9687           fi
9688         fi
9689         link_all_deplibs_CXX=yes
9690         ;;
9691     esac
9692     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9693     hardcode_libdir_separator_CXX=:
9694     ;;
9695   linux*)
9696     case $cc_basename in
9697       KCC)
9698         # Kuck and Associates, Inc. (KAI) C++ Compiler
9699
9700         # KCC will only create a shared library if the output file
9701         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9702         # to its proper name (with version) after linking.
9703         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'
9704         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'
9705         # Commands to make compiler produce verbose output that lists
9706         # what "hidden" libraries, object files and flags are used when
9707         # linking a shared library.
9708         #
9709         # There doesn't appear to be a way to prevent this compiler from
9710         # explicitly linking system object files so we need to strip them
9711         # from the output so that they don't get included in the library
9712         # dependencies.
9713         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'
9714
9715         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9716         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9717
9718         # Archives containing C++ object files must be created using
9719         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9720         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9721         ;;
9722       icpc)
9723         # Intel C++
9724         with_gnu_ld=yes
9725         archive_cmds_need_lc_CXX=no
9726         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9727         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'
9728         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9729         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9730         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9731         ;;
9732       cxx)
9733         # Compaq C++
9734         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9735         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'
9736
9737         runpath_var=LD_RUN_PATH
9738         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9739         hardcode_libdir_separator_CXX=:
9740
9741         # Commands to make compiler produce verbose output that lists
9742         # what "hidden" libraries, object files and flags are used when
9743         # linking a shared library.
9744         #
9745         # There doesn't appear to be a way to prevent this compiler from
9746         # explicitly linking system object files so we need to strip them
9747         # from the output so that they don't get included in the library
9748         # dependencies.
9749         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'
9750         ;;
9751     esac
9752     ;;
9753   lynxos*)
9754     # FIXME: insert proper C++ library support
9755     ld_shlibs_CXX=no
9756     ;;
9757   m88k*)
9758     # FIXME: insert proper C++ library support
9759     ld_shlibs_CXX=no
9760     ;;
9761   mvs*)
9762     case $cc_basename in
9763       cxx)
9764         # FIXME: insert proper C++ library support
9765         ld_shlibs_CXX=no
9766         ;;
9767       *)
9768         # FIXME: insert proper C++ library support
9769         ld_shlibs_CXX=no
9770         ;;
9771     esac
9772     ;;
9773   netbsd*)
9774     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9775       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9776       wlarc=
9777       hardcode_libdir_flag_spec_CXX='-R$libdir'
9778       hardcode_direct_CXX=yes
9779       hardcode_shlibpath_var_CXX=no
9780     fi
9781     # Workaround some broken pre-1.5 toolchains
9782     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9783     ;;
9784   osf3*)
9785     case $cc_basename in
9786       KCC)
9787         # Kuck and Associates, Inc. (KAI) C++ Compiler
9788
9789         # KCC will only create a shared library if the output file
9790         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9791         # to its proper name (with version) after linking.
9792         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'
9793
9794         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9795         hardcode_libdir_separator_CXX=:
9796
9797         # Archives containing C++ object files must be created using
9798         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9799         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9800
9801         ;;
9802       RCC)
9803         # Rational C++ 2.4.1
9804         # FIXME: insert proper C++ library support
9805         ld_shlibs_CXX=no
9806         ;;
9807       cxx)
9808         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9809         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'
9810
9811         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9812         hardcode_libdir_separator_CXX=:
9813
9814         # Commands to make compiler produce verbose output that lists
9815         # what "hidden" libraries, object files and flags are used when
9816         # linking a shared library.
9817         #
9818         # There doesn't appear to be a way to prevent this compiler from
9819         # explicitly linking system object files so we need to strip them
9820         # from the output so that they don't get included in the library
9821         # dependencies.
9822         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'
9823         ;;
9824       *)
9825         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9826           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9827           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'
9828
9829           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9830           hardcode_libdir_separator_CXX=:
9831
9832           # Commands to make compiler produce verbose output that lists
9833           # what "hidden" libraries, object files and flags are used when
9834           # linking a shared library.
9835           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9836
9837         else
9838           # FIXME: insert proper C++ library support
9839           ld_shlibs_CXX=no
9840         fi
9841         ;;
9842     esac
9843     ;;
9844   osf4* | osf5*)
9845     case $cc_basename in
9846       KCC)
9847         # Kuck and Associates, Inc. (KAI) C++ Compiler
9848
9849         # KCC will only create a shared library if the output file
9850         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9851         # to its proper name (with version) after linking.
9852         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'
9853
9854         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9855         hardcode_libdir_separator_CXX=:
9856
9857         # Archives containing C++ object files must be created using
9858         # the KAI C++ compiler.
9859         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9860         ;;
9861       RCC)
9862         # Rational C++ 2.4.1
9863         # FIXME: insert proper C++ library support
9864         ld_shlibs_CXX=no
9865         ;;
9866       cxx)
9867         allow_undefined_flag_CXX=' -expect_unresolved \*'
9868         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'
9869         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9870           echo "-hidden">> $lib.exp~
9871           $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~
9872           $rm $lib.exp'
9873
9874         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9875         hardcode_libdir_separator_CXX=:
9876
9877         # Commands to make compiler produce verbose output that lists
9878         # what "hidden" libraries, object files and flags are used when
9879         # linking a shared library.
9880         #
9881         # There doesn't appear to be a way to prevent this compiler from
9882         # explicitly linking system object files so we need to strip them
9883         # from the output so that they don't get included in the library
9884         # dependencies.
9885         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'
9886         ;;
9887       *)
9888         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9889           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9890          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'
9891
9892           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9893           hardcode_libdir_separator_CXX=:
9894
9895           # Commands to make compiler produce verbose output that lists
9896           # what "hidden" libraries, object files and flags are used when
9897           # linking a shared library.
9898           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9899
9900         else
9901           # FIXME: insert proper C++ library support
9902           ld_shlibs_CXX=no
9903         fi
9904         ;;
9905     esac
9906     ;;
9907   psos*)
9908     # FIXME: insert proper C++ library support
9909     ld_shlibs_CXX=no
9910     ;;
9911   sco*)
9912     archive_cmds_need_lc_CXX=no
9913     case $cc_basename in
9914       CC)
9915         # FIXME: insert proper C++ library support
9916         ld_shlibs_CXX=no
9917         ;;
9918       *)
9919         # FIXME: insert proper C++ library support
9920         ld_shlibs_CXX=no
9921         ;;
9922     esac
9923     ;;
9924   sunos4*)
9925     case $cc_basename in
9926       CC)
9927         # Sun C++ 4.x
9928         # FIXME: insert proper C++ library support
9929         ld_shlibs_CXX=no
9930         ;;
9931       lcc)
9932         # Lucid
9933         # FIXME: insert proper C++ library support
9934         ld_shlibs_CXX=no
9935         ;;
9936       *)
9937         # FIXME: insert proper C++ library support
9938         ld_shlibs_CXX=no
9939         ;;
9940     esac
9941     ;;
9942   solaris*)
9943     case $cc_basename in
9944       CC)
9945         # Sun C++ 4.2, 5.x and Centerline C++
9946         no_undefined_flag_CXX=' -zdefs'
9947         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9948         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9949         $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'
9950
9951         hardcode_libdir_flag_spec_CXX='-R$libdir'
9952         hardcode_shlibpath_var_CXX=no
9953         case $host_os in
9954           solaris2.0-5 | solaris2.0-5.*) ;;
9955           *)
9956             # The C++ compiler is used as linker so we must use $wl
9957             # flag to pass the commands to the underlying system
9958             # linker.
9959             # Supported since Solaris 2.6 (maybe 2.5.1?)
9960             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9961             ;;
9962         esac
9963         link_all_deplibs_CXX=yes
9964
9965         # Commands to make compiler produce verbose output that lists
9966         # what "hidden" libraries, object files and flags are used when
9967         # linking a shared library.
9968         #
9969         # There doesn't appear to be a way to prevent this compiler from
9970         # explicitly linking system object files so we need to strip them
9971         # from the output so that they don't get included in the library
9972         # dependencies.
9973         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'
9974
9975         # Archives containing C++ object files must be created using
9976         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9977         # necessary to make sure instantiated templates are included
9978         # in the archive.
9979         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9980         ;;
9981       gcx)
9982         # Green Hills C++ Compiler
9983         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9984
9985         # The C++ compiler must be used to create the archive.
9986         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9987         ;;
9988       *)
9989         # GNU C++ compiler with Solaris linker
9990         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9991           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9992           if $CC --version | grep -v '^2\.7' > /dev/null; then
9993             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9994             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9995                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9996
9997             # Commands to make compiler produce verbose output that lists
9998             # what "hidden" libraries, object files and flags are used when
9999             # linking a shared library.
10000             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10001           else
10002             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10003             # platform.
10004             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10005             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10006                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10007
10008             # Commands to make compiler produce verbose output that lists
10009             # what "hidden" libraries, object files and flags are used when
10010             # linking a shared library.
10011             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10012           fi
10013
10014           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10015         fi
10016         ;;
10017     esac
10018     ;;
10019   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10020     archive_cmds_need_lc_CXX=no
10021     ;;
10022   tandem*)
10023     case $cc_basename in
10024       NCC)
10025         # NonStop-UX NCC 3.20
10026         # FIXME: insert proper C++ library support
10027         ld_shlibs_CXX=no
10028         ;;
10029       *)
10030         # FIXME: insert proper C++ library support
10031         ld_shlibs_CXX=no
10032         ;;
10033     esac
10034     ;;
10035   vxworks*)
10036     # FIXME: insert proper C++ library support
10037     ld_shlibs_CXX=no
10038     ;;
10039   *)
10040     # FIXME: insert proper C++ library support
10041     ld_shlibs_CXX=no
10042     ;;
10043 esac
10044 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10045 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10046 test "$ld_shlibs_CXX" = no && can_build_shared=no
10047
10048 GCC_CXX="$GXX"
10049 LD_CXX="$LD"
10050
10051
10052 cat > conftest.$ac_ext <<EOF
10053 class Foo
10054 {
10055 public:
10056   Foo (void) { a = 0; }
10057 private:
10058   int a;
10059 };
10060 EOF
10061
10062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10063   (eval $ac_compile) 2>&5
10064   ac_status=$?
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); }; then
10067   # Parse the compiler output and extract the necessary
10068   # objects, libraries and library flags.
10069
10070   # Sentinel used to keep track of whether or not we are before
10071   # the conftest object file.
10072   pre_test_object_deps_done=no
10073
10074   # The `*' in the case matches for architectures that use `case' in
10075   # $output_verbose_cmd can trigger glob expansion during the loop
10076   # eval without this substitution.
10077   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10078
10079   for p in `eval $output_verbose_link_cmd`; do
10080     case $p in
10081
10082     -L* | -R* | -l*)
10083        # Some compilers place space between "-{L,R}" and the path.
10084        # Remove the space.
10085        if test $p = "-L" \
10086           || test $p = "-R"; then
10087          prev=$p
10088          continue
10089        else
10090          prev=
10091        fi
10092
10093        if test "$pre_test_object_deps_done" = no; then
10094          case $p in
10095          -L* | -R*)
10096            # Internal compiler library paths should come after those
10097            # provided the user.  The postdeps already come after the
10098            # user supplied libs so there is no need to process them.
10099            if test -z "$compiler_lib_search_path_CXX"; then
10100              compiler_lib_search_path_CXX="${prev}${p}"
10101            else
10102              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10103            fi
10104            ;;
10105          # The "-l" case would never come before the object being
10106          # linked, so don't bother handling this case.
10107          esac
10108        else
10109          if test -z "$postdeps_CXX"; then
10110            postdeps_CXX="${prev}${p}"
10111          else
10112            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10113          fi
10114        fi
10115        ;;
10116
10117     *.$objext)
10118        # This assumes that the test object file only shows up
10119        # once in the compiler output.
10120        if test "$p" = "conftest.$objext"; then
10121          pre_test_object_deps_done=yes
10122          continue
10123        fi
10124
10125        if test "$pre_test_object_deps_done" = no; then
10126          if test -z "$predep_objects_CXX"; then
10127            predep_objects_CXX="$p"
10128          else
10129            predep_objects_CXX="$predep_objects_CXX $p"
10130          fi
10131        else
10132          if test -z "$postdep_objects_CXX"; then
10133            postdep_objects_CXX="$p"
10134          else
10135            postdep_objects_CXX="$postdep_objects_CXX $p"
10136          fi
10137        fi
10138        ;;
10139
10140     *) ;; # Ignore the rest.
10141
10142     esac
10143   done
10144
10145   # Clean up.
10146   rm -f a.out a.exe
10147 else
10148   echo "libtool.m4: error: problem compiling CXX test program"
10149 fi
10150
10151 $rm -f confest.$objext
10152
10153 case " $postdeps_CXX " in
10154 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10155 esac
10156
10157 lt_prog_compiler_wl_CXX=
10158 lt_prog_compiler_pic_CXX=
10159 lt_prog_compiler_static_CXX=
10160
10161 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10162 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10163
10164   # C++ specific cases for pic, static, wl, etc.
10165   if test "$GXX" = yes; then
10166     lt_prog_compiler_wl_CXX='-Wl,'
10167     lt_prog_compiler_static_CXX='-static'
10168
10169     case $host_os in
10170     aix*)
10171       # All AIX code is PIC.
10172       if test "$host_cpu" = ia64; then
10173         # AIX 5 now supports IA64 processor
10174         lt_prog_compiler_static_CXX='-Bstatic'
10175       fi
10176       ;;
10177     amigaos*)
10178       # FIXME: we need at least 68020 code to build shared libraries, but
10179       # adding the `-m68020' flag to GCC prevents building anything better,
10180       # like `-m68040'.
10181       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10182       ;;
10183     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10184       # PIC is the default for these OSes.
10185       ;;
10186     mingw* | os2* | pw32*)
10187       # This hack is so that the source file can tell whether it is being
10188       # built for inclusion in a dll (and should export symbols for example).
10189       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10190       ;;
10191     darwin* | rhapsody*)
10192       # PIC is the default on this platform
10193       # Common symbols not allowed in MH_DYLIB files
10194       lt_prog_compiler_pic_CXX='-fno-common'
10195       ;;
10196     *djgpp*)
10197       # DJGPP does not support shared libraries at all
10198       lt_prog_compiler_pic_CXX=
10199       ;;
10200     sysv4*MP*)
10201       if test -d /usr/nec; then
10202         lt_prog_compiler_pic_CXX=-Kconform_pic
10203       fi
10204       ;;
10205     hpux*)
10206       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10207       # not for PA HP-UX.
10208       case "$host_cpu" in
10209       hppa*64*|ia64*)
10210         ;;
10211       *)
10212         lt_prog_compiler_pic_CXX='-fPIC'
10213         ;;
10214       esac
10215       ;;
10216     *)
10217       lt_prog_compiler_pic_CXX='-fPIC'
10218       ;;
10219     esac
10220   else
10221     case $host_os in
10222       aix4* | aix5*)
10223         # All AIX code is PIC.
10224         if test "$host_cpu" = ia64; then
10225           # AIX 5 now supports IA64 processor
10226           lt_prog_compiler_static_CXX='-Bstatic'
10227         else
10228           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10229         fi
10230         ;;
10231       chorus*)
10232         case $cc_basename in
10233         cxch68)
10234           # Green Hills C++ Compiler
10235           # _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"
10236           ;;
10237         esac
10238         ;;
10239       dgux*)
10240         case $cc_basename in
10241           ec++)
10242             lt_prog_compiler_pic_CXX='-KPIC'
10243             ;;
10244           ghcx)
10245             # Green Hills C++ Compiler
10246             lt_prog_compiler_pic_CXX='-pic'
10247             ;;
10248           *)
10249             ;;
10250         esac
10251         ;;
10252       freebsd*)
10253         # FreeBSD uses GNU C++
10254         ;;
10255       hpux9* | hpux10* | hpux11*)
10256         case $cc_basename in
10257           CC)
10258             lt_prog_compiler_wl_CXX='-Wl,'
10259             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10260             if test "$host_cpu" != ia64; then
10261               lt_prog_compiler_pic_CXX='+Z'
10262             fi
10263             ;;
10264           aCC)
10265             lt_prog_compiler_wl_CXX='-Wl,'
10266             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10267             case "$host_cpu" in
10268             hppa*64*|ia64*)
10269               # +Z the default
10270               ;;
10271             *)
10272               lt_prog_compiler_pic_CXX='+Z'
10273               ;;
10274             esac
10275             ;;
10276           *)
10277             ;;
10278         esac
10279         ;;
10280       irix5* | irix6* | nonstopux*)
10281         case $cc_basename in
10282           CC)
10283             lt_prog_compiler_wl_CXX='-Wl,'
10284             lt_prog_compiler_static_CXX='-non_shared'
10285             # CC pic flag -KPIC is the default.
10286             ;;
10287           *)
10288             ;;
10289         esac
10290         ;;
10291       linux*)
10292         case $cc_basename in
10293           KCC)
10294             # KAI C++ Compiler
10295             lt_prog_compiler_wl_CXX='--backend -Wl,'
10296             lt_prog_compiler_pic_CXX='-fPIC'
10297             ;;
10298           icpc)
10299             # Intel C++
10300             lt_prog_compiler_wl_CXX='-Wl,'
10301             lt_prog_compiler_pic_CXX='-KPIC'
10302             lt_prog_compiler_static_CXX='-static'
10303             ;;
10304           cxx)
10305             # Compaq C++
10306             # Make sure the PIC flag is empty.  It appears that all Alpha
10307             # Linux and Compaq Tru64 Unix objects are PIC.
10308             lt_prog_compiler_pic_CXX=
10309             lt_prog_compiler_static_CXX='-non_shared'
10310             ;;
10311           *)
10312             ;;
10313         esac
10314         ;;
10315       lynxos*)
10316         ;;
10317       m88k*)
10318         ;;
10319       mvs*)
10320         case $cc_basename in
10321           cxx)
10322             lt_prog_compiler_pic_CXX='-W c,exportall'
10323             ;;
10324           *)
10325             ;;
10326         esac
10327         ;;
10328       netbsd*)
10329         ;;
10330       osf3* | osf4* | osf5*)
10331         case $cc_basename in
10332           KCC)
10333             lt_prog_compiler_wl_CXX='--backend -Wl,'
10334             ;;
10335           RCC)
10336             # Rational C++ 2.4.1
10337             lt_prog_compiler_pic_CXX='-pic'
10338             ;;
10339           cxx)
10340             # Digital/Compaq C++
10341             lt_prog_compiler_wl_CXX='-Wl,'
10342             # Make sure the PIC flag is empty.  It appears that all Alpha
10343             # Linux and Compaq Tru64 Unix objects are PIC.
10344             lt_prog_compiler_pic_CXX=
10345             lt_prog_compiler_static_CXX='-non_shared'
10346             ;;
10347           *)
10348             ;;
10349         esac
10350         ;;
10351       psos*)
10352         ;;
10353       sco*)
10354         case $cc_basename in
10355           CC)
10356             lt_prog_compiler_pic_CXX='-fPIC'
10357             ;;
10358           *)
10359             ;;
10360         esac
10361         ;;
10362       solaris*)
10363         case $cc_basename in
10364           CC)
10365             # Sun C++ 4.2, 5.x and Centerline C++
10366             lt_prog_compiler_pic_CXX='-KPIC'
10367             lt_prog_compiler_static_CXX='-Bstatic'
10368             lt_prog_compiler_wl_CXX='-Qoption ld '
10369             ;;
10370           gcx)
10371             # Green Hills C++ Compiler
10372             lt_prog_compiler_pic_CXX='-PIC'
10373             ;;
10374           *)
10375             ;;
10376         esac
10377         ;;
10378       sunos4*)
10379         case $cc_basename in
10380           CC)
10381             # Sun C++ 4.x
10382             lt_prog_compiler_pic_CXX='-pic'
10383             lt_prog_compiler_static_CXX='-Bstatic'
10384             ;;
10385           lcc)
10386             # Lucid
10387             lt_prog_compiler_pic_CXX='-pic'
10388             ;;
10389           *)
10390             ;;
10391         esac
10392         ;;
10393       tandem*)
10394         case $cc_basename in
10395           NCC)
10396             # NonStop-UX NCC 3.20
10397             lt_prog_compiler_pic_CXX='-KPIC'
10398             ;;
10399           *)
10400             ;;
10401         esac
10402         ;;
10403       unixware*)
10404         ;;
10405       vxworks*)
10406         ;;
10407       *)
10408         lt_prog_compiler_can_build_shared_CXX=no
10409         ;;
10410     esac
10411   fi
10412
10413 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10414 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10415
10416 #
10417 # Check to make sure the PIC flag actually works.
10418 #
10419 if test -n "$lt_prog_compiler_pic_CXX"; then
10420   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10421 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10422 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10423   echo $ECHO_N "(cached) $ECHO_C" >&6
10424 else
10425   lt_prog_compiler_pic_works_CXX=no
10426   ac_outfile=conftest.$ac_objext
10427    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10428    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10429    # Insert the option either (1) after the last *FLAGS variable, or
10430    # (2) before a word containing "conftest.", or (3) at the end.
10431    # Note that $ac_compile itself does not contain backslashes and begins
10432    # with a dollar sign (not a hyphen), so the echo should work correctly.
10433    # The option is referenced via a variable to avoid confusing sed.
10434    lt_compile=`echo "$ac_compile" | $SED \
10435    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10436    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10437    -e 's:$: $lt_compiler_flag:'`
10438    (eval echo "\"\$as_me:10438: $lt_compile\"" >&5)
10439    (eval "$lt_compile" 2>conftest.err)
10440    ac_status=$?
10441    cat conftest.err >&5
10442    echo "$as_me:10442: \$? = $ac_status" >&5
10443    if (exit $ac_status) && test -s "$ac_outfile"; then
10444      # The compiler can only warn and ignore the option if not recognized
10445      # So say no if there are warnings
10446      if test ! -s conftest.err; then
10447        lt_prog_compiler_pic_works_CXX=yes
10448      fi
10449    fi
10450    $rm conftest*
10451
10452 fi
10453 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10454 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10455
10456 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10457     case $lt_prog_compiler_pic_CXX in
10458      "" | " "*) ;;
10459      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10460      esac
10461 else
10462     lt_prog_compiler_pic_CXX=
10463      lt_prog_compiler_can_build_shared_CXX=no
10464 fi
10465
10466 fi
10467 case "$host_os" in
10468   # For platforms which do not support PIC, -DPIC is meaningless:
10469   *djgpp*)
10470     lt_prog_compiler_pic_CXX=
10471     ;;
10472   *)
10473     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10474     ;;
10475 esac
10476
10477 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10478 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10479 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10480   echo $ECHO_N "(cached) $ECHO_C" >&6
10481 else
10482   lt_cv_prog_compiler_c_o_CXX=no
10483    $rm -r conftest 2>/dev/null
10484    mkdir conftest
10485    cd conftest
10486    mkdir out
10487    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10488
10489    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10490    # that will create temporary files in the current directory regardless of
10491    # the output directory.  Thus, making CWD read-only will cause this test
10492    # to fail, enabling locking or at least warning the user not to do parallel
10493    # builds.
10494    chmod -w .
10495
10496    lt_compiler_flag="-o out/conftest2.$ac_objext"
10497    # Insert the option either (1) after the last *FLAGS variable, or
10498    # (2) before a word containing "conftest.", or (3) at the end.
10499    # Note that $ac_compile itself does not contain backslashes and begins
10500    # with a dollar sign (not a hyphen), so the echo should work correctly.
10501    lt_compile=`echo "$ac_compile" | $SED \
10502    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10503    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10504    -e 's:$: $lt_compiler_flag:'`
10505    (eval echo "\"\$as_me:10505: $lt_compile\"" >&5)
10506    (eval "$lt_compile" 2>out/conftest.err)
10507    ac_status=$?
10508    cat out/conftest.err >&5
10509    echo "$as_me:10509: \$? = $ac_status" >&5
10510    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10511    then
10512      # The compiler can only warn and ignore the option if not recognized
10513      # So say no if there are warnings
10514      if test ! -s out/conftest.err; then
10515        lt_cv_prog_compiler_c_o_CXX=yes
10516      fi
10517    fi
10518    chmod u+w .
10519    $rm conftest* out/*
10520    rmdir out
10521    cd ..
10522    rmdir conftest
10523    $rm conftest*
10524
10525 fi
10526 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10527 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10528
10529
10530 hard_links="nottested"
10531 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10532   # do not overwrite the value of need_locks provided by the user
10533   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10534 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10535   hard_links=yes
10536   $rm conftest*
10537   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10538   touch conftest.a
10539   ln conftest.a conftest.b 2>&5 || hard_links=no
10540   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10541   echo "$as_me:$LINENO: result: $hard_links" >&5
10542 echo "${ECHO_T}$hard_links" >&6
10543   if test "$hard_links" = no; then
10544     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10545 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10546     need_locks=warn
10547   fi
10548 else
10549   need_locks=no
10550 fi
10551
10552 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10553 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10554
10555   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10556   case $host_os in
10557   aix4* | aix5*)
10558     # If we're using GNU nm, then we don't want the "-C" option.
10559     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10560     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10561       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'
10562     else
10563       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'
10564     fi
10565     ;;
10566   pw32*)
10567     export_symbols_cmds_CXX="$ltdll_cmds"
10568   ;;
10569   cygwin* | mingw*)
10570     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10571   ;;
10572   *)
10573     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10574   ;;
10575   esac
10576
10577 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10578 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10579 test "$ld_shlibs_CXX" = no && can_build_shared=no
10580
10581 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10582 if test "$GCC" = yes; then
10583   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10584 fi
10585
10586 #
10587 # Do we need to explicitly link libc?
10588 #
10589 case "x$archive_cmds_need_lc_CXX" in
10590 x|xyes)
10591   # Assume -lc should be added
10592   archive_cmds_need_lc_CXX=yes
10593
10594   if test "$enable_shared" = yes && test "$GCC" = yes; then
10595     case $archive_cmds_CXX in
10596     *'~'*)
10597       # FIXME: we may have to deal with multi-command sequences.
10598       ;;
10599     '$CC '*)
10600       # Test whether the compiler implicitly links with -lc since on some
10601       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10602       # to ld, don't add -lc before -lgcc.
10603       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10604 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10605       $rm conftest*
10606       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10607
10608       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10609   (eval $ac_compile) 2>&5
10610   ac_status=$?
10611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612   (exit $ac_status); } 2>conftest.err; then
10613         soname=conftest
10614         lib=conftest
10615         libobjs=conftest.$ac_objext
10616         deplibs=
10617         wl=$lt_prog_compiler_wl_CXX
10618         compiler_flags=-v
10619         linker_flags=-v
10620         verstring=
10621         output_objdir=.
10622         libname=conftest
10623         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10624         allow_undefined_flag_CXX=
10625         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10626   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10627   ac_status=$?
10628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629   (exit $ac_status); }
10630         then
10631           archive_cmds_need_lc_CXX=no
10632         else
10633           archive_cmds_need_lc_CXX=yes
10634         fi
10635         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10636       else
10637         cat conftest.err 1>&5
10638       fi
10639       $rm conftest*
10640       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10641 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10642       ;;
10643     esac
10644   fi
10645   ;;
10646 esac
10647
10648 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10649 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10650 hardcode_action_CXX=
10651 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10652    test -n "$runpath_var CXX" || \
10653    test "X$hardcode_automatic_CXX"="Xyes" ; then
10654
10655   # We can hardcode non-existant directories.
10656   if test "$hardcode_direct_CXX" != no &&
10657      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10658      # have to relink, otherwise we might link with an installed library
10659      # when we should be linking with a yet-to-be-installed one
10660      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10661      test "$hardcode_minus_L_CXX" != no; then
10662     # Linking always hardcodes the temporary library directory.
10663     hardcode_action_CXX=relink
10664   else
10665     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10666     hardcode_action_CXX=immediate
10667   fi
10668 else
10669   # We cannot hardcode anything, or else we can only hardcode existing
10670   # directories.
10671   hardcode_action_CXX=unsupported
10672 fi
10673 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10674 echo "${ECHO_T}$hardcode_action_CXX" >&6
10675
10676 if test "$hardcode_action_CXX" = relink; then
10677   # Fast installation is not supported
10678   enable_fast_install=no
10679 elif test "$shlibpath_overrides_runpath" = yes ||
10680      test "$enable_shared" = no; then
10681   # Fast installation is not necessary
10682   enable_fast_install=needless
10683 fi
10684
10685 striplib=
10686 old_striplib=
10687 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10688 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10689 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10690   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10691   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10692   echo "$as_me:$LINENO: result: yes" >&5
10693 echo "${ECHO_T}yes" >&6
10694 else
10695 # FIXME - insert some real tests, host_os isn't really good enough
10696   case $host_os in
10697    darwin*)
10698        if test -n "$STRIP" ; then
10699          striplib="$STRIP -x"
10700          echo "$as_me:$LINENO: result: yes" >&5
10701 echo "${ECHO_T}yes" >&6
10702        else
10703   echo "$as_me:$LINENO: result: no" >&5
10704 echo "${ECHO_T}no" >&6
10705 fi
10706        ;;
10707    *)
10708   echo "$as_me:$LINENO: result: no" >&5
10709 echo "${ECHO_T}no" >&6
10710     ;;
10711   esac
10712 fi
10713
10714 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10715 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10716 library_names_spec=
10717 libname_spec='lib$name'
10718 soname_spec=
10719 shrext=".so"
10720 postinstall_cmds=
10721 postuninstall_cmds=
10722 finish_cmds=
10723 finish_eval=
10724 shlibpath_var=
10725 shlibpath_overrides_runpath=unknown
10726 version_type=none
10727 dynamic_linker="$host_os ld.so"
10728 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10729 if test "$GCC" = yes; then
10730   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10731   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10732     # if the path contains ";" then we assume it to be the separator
10733     # otherwise default to the standard path separator (i.e. ":") - it is
10734     # assumed that no part of a normal pathname contains ";" but that should
10735     # okay in the real world where ";" in dirpaths is itself problematic.
10736     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10737   else
10738     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10739   fi
10740 else
10741   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10742 fi
10743 need_lib_prefix=unknown
10744 hardcode_into_libs=no
10745
10746 # when you set need_version to no, make sure it does not cause -set_version
10747 # flags to be left without arguments
10748 need_version=unknown
10749
10750 case $host_os in
10751 aix3*)
10752   version_type=linux
10753   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10754   shlibpath_var=LIBPATH
10755
10756   # AIX 3 has no versioning support, so we append a major version to the name.
10757   soname_spec='${libname}${release}${shared_ext}$major'
10758   ;;
10759
10760 aix4* | aix5*)
10761   version_type=linux
10762   need_lib_prefix=no
10763   need_version=no
10764   hardcode_into_libs=yes
10765   if test "$host_cpu" = ia64; then
10766     # AIX 5 supports IA64
10767     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10768     shlibpath_var=LD_LIBRARY_PATH
10769   else
10770     # With GCC up to 2.95.x, collect2 would create an import file
10771     # for dependence libraries.  The import file would start with
10772     # the line `#! .'.  This would cause the generated library to
10773     # depend on `.', always an invalid library.  This was fixed in
10774     # development snapshots of GCC prior to 3.0.
10775     case $host_os in
10776       aix4 | aix4.[01] | aix4.[01].*)
10777       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10778            echo ' yes '
10779            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10780         :
10781       else
10782         can_build_shared=no
10783       fi
10784       ;;
10785     esac
10786     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10787     # soname into executable. Probably we can add versioning support to
10788     # collect2, so additional links can be useful in future.
10789     if test "$aix_use_runtimelinking" = yes; then
10790       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10791       # instead of lib<name>.a to let people know that these are not
10792       # typical AIX shared libraries.
10793       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794     else
10795       # We preserve .a as extension for shared libraries through AIX4.2
10796       # and later when we are not doing run time linking.
10797       library_names_spec='${libname}${release}.a $libname.a'
10798       soname_spec='${libname}${release}${shared_ext}$major'
10799     fi
10800     shlibpath_var=LIBPATH
10801   fi
10802   ;;
10803
10804 amigaos*)
10805   library_names_spec='$libname.ixlibrary $libname.a'
10806   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10807   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'
10808   ;;
10809
10810 beos*)
10811   library_names_spec='${libname}${shared_ext}'
10812   dynamic_linker="$host_os ld.so"
10813   shlibpath_var=LIBRARY_PATH
10814   ;;
10815
10816 bsdi4*)
10817   version_type=linux
10818   need_version=no
10819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820   soname_spec='${libname}${release}${shared_ext}$major'
10821   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10822   shlibpath_var=LD_LIBRARY_PATH
10823   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10824   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10825   # the default ld.so.conf also contains /usr/contrib/lib and
10826   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10827   # libtool to hard-code these into programs
10828   ;;
10829
10830 cygwin* | mingw* | pw32*)
10831   version_type=windows
10832   shrext=".dll"
10833   need_version=no
10834   need_lib_prefix=no
10835
10836   case $GCC,$host_os in
10837   yes,cygwin* | yes,mingw* | yes,pw32*)
10838     library_names_spec='$libname.dll.a'
10839     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10840     postinstall_cmds='base_file=`basename \${file}`~
10841       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10842       dldir=$destdir/`dirname \$dlpath`~
10843       test -d \$dldir || mkdir -p \$dldir~
10844       $install_prog $dir/$dlname \$dldir/$dlname'
10845     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10846       dlpath=$dir/\$dldll~
10847        $rm \$dlpath'
10848     shlibpath_overrides_runpath=yes
10849
10850     case $host_os in
10851     cygwin*)
10852       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10853       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10854       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10855       ;;
10856     mingw*)
10857       # MinGW DLLs use traditional 'lib' prefix
10858       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10859       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10860       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10861         # It is most probably a Windows format PATH printed by
10862         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10863         # path with ; separators, and with drive letters. We can handle the
10864         # drive letters (cygwin fileutils understands them), so leave them,
10865         # especially as we might pass files found there to a mingw objdump,
10866         # which wouldn't understand a cygwinified path. Ahh.
10867         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10868       else
10869         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10870       fi
10871       ;;
10872     pw32*)
10873       # pw32 DLLs use 'pw' prefix rather than 'lib'
10874       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10875       ;;
10876     esac
10877     ;;
10878
10879   *)
10880     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10881     ;;
10882   esac
10883   dynamic_linker='Win32 ld.exe'
10884   # FIXME: first we should search . and the directory the executable is in
10885   shlibpath_var=PATH
10886   ;;
10887
10888 darwin* | rhapsody*)
10889   dynamic_linker="$host_os dyld"
10890   version_type=darwin
10891   need_lib_prefix=no
10892   need_version=no
10893   # FIXME: Relying on posixy $() will cause problems for
10894   #        cross-compilation, but unfortunately the echo tests do not
10895   #        yet detect zsh echo's removal of \ escapes.
10896   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10897   soname_spec='${libname}${release}${major}$shared_ext'
10898   shlibpath_overrides_runpath=yes
10899   shlibpath_var=DYLD_LIBRARY_PATH
10900   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10901   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10902   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10903   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"`
10904   fi
10905   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10906   ;;
10907
10908 dgux*)
10909   version_type=linux
10910   need_lib_prefix=no
10911   need_version=no
10912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10913   soname_spec='${libname}${release}${shared_ext}$major'
10914   shlibpath_var=LD_LIBRARY_PATH
10915   ;;
10916
10917 freebsd1*)
10918   dynamic_linker=no
10919   ;;
10920
10921 freebsd*)
10922   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10923   version_type=freebsd-$objformat
10924   case $version_type in
10925     freebsd-elf*)
10926       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10927       need_version=no
10928       need_lib_prefix=no
10929       ;;
10930     freebsd-*)
10931       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10932       need_version=yes
10933       ;;
10934   esac
10935   shlibpath_var=LD_LIBRARY_PATH
10936   case $host_os in
10937   freebsd2*)
10938     shlibpath_overrides_runpath=yes
10939     ;;
10940   freebsd3.01* | freebsdelf3.01*)
10941     shlibpath_overrides_runpath=yes
10942     hardcode_into_libs=yes
10943     ;;
10944   *) # from 3.2 on
10945     shlibpath_overrides_runpath=no
10946     hardcode_into_libs=yes
10947     ;;
10948   esac
10949   ;;
10950
10951 gnu*)
10952   version_type=linux
10953   need_lib_prefix=no
10954   need_version=no
10955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10956   soname_spec='${libname}${release}${shared_ext}$major'
10957   shlibpath_var=LD_LIBRARY_PATH
10958   hardcode_into_libs=yes
10959   ;;
10960
10961 hpux9* | hpux10* | hpux11*)
10962   # Give a soname corresponding to the major version so that dld.sl refuses to
10963   # link against other versions.
10964   version_type=sunos
10965   need_lib_prefix=no
10966   need_version=no
10967   case "$host_cpu" in
10968   ia64*)
10969     shrext='.so'
10970     hardcode_into_libs=yes
10971     dynamic_linker="$host_os dld.so"
10972     shlibpath_var=LD_LIBRARY_PATH
10973     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10974     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975     soname_spec='${libname}${release}${shared_ext}$major'
10976     if test "X$HPUX_IA64_MODE" = X32; then
10977       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10978     else
10979       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10980     fi
10981     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10982     ;;
10983    hppa*64*)
10984      shrext='.sl'
10985      hardcode_into_libs=yes
10986      dynamic_linker="$host_os dld.sl"
10987      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10988      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10989      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990      soname_spec='${libname}${release}${shared_ext}$major'
10991      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10992      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10993      ;;
10994    *)
10995     shrext='.sl'
10996     dynamic_linker="$host_os dld.sl"
10997     shlibpath_var=SHLIB_PATH
10998     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10999     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11000     soname_spec='${libname}${release}${shared_ext}$major'
11001     ;;
11002   esac
11003   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11004   postinstall_cmds='chmod 555 $lib'
11005   ;;
11006
11007 irix5* | irix6* | nonstopux*)
11008   case $host_os in
11009     nonstopux*) version_type=nonstopux ;;
11010     *)
11011         if test "$lt_cv_prog_gnu_ld" = yes; then
11012                 version_type=linux
11013         else
11014                 version_type=irix
11015         fi ;;
11016   esac
11017   need_lib_prefix=no
11018   need_version=no
11019   soname_spec='${libname}${release}${shared_ext}$major'
11020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11021   case $host_os in
11022   irix5* | nonstopux*)
11023     libsuff= shlibsuff=
11024     ;;
11025   *)
11026     case $LD in # libtool.m4 will add one of these switches to LD
11027     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11028       libsuff= shlibsuff= libmagic=32-bit;;
11029     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11030       libsuff=32 shlibsuff=N32 libmagic=N32;;
11031     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11032       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11033     *) libsuff= shlibsuff= libmagic=never-match;;
11034     esac
11035     ;;
11036   esac
11037   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11038   shlibpath_overrides_runpath=no
11039   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11040   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11041   hardcode_into_libs=yes
11042   ;;
11043
11044 # No shared lib support for Linux oldld, aout, or coff.
11045 linux*oldld* | linux*aout* | linux*coff*)
11046   dynamic_linker=no
11047   ;;
11048
11049 # This must be Linux ELF.
11050 linux*)
11051   version_type=linux
11052   need_lib_prefix=no
11053   need_version=no
11054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11055   soname_spec='${libname}${release}${shared_ext}$major'
11056   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11057   shlibpath_var=LD_LIBRARY_PATH
11058   shlibpath_overrides_runpath=no
11059   # This implies no fast_install, which is unacceptable.
11060   # Some rework will be needed to allow for fast_install
11061   # before this can be enabled.
11062   hardcode_into_libs=yes
11063
11064   # We used to test for /lib/ld.so.1 and disable shared libraries on
11065   # powerpc, because MkLinux only supported shared libraries with the
11066   # GNU dynamic linker.  Since this was broken with cross compilers,
11067   # most powerpc-linux boxes support dynamic linking these days and
11068   # people can always --disable-shared, the test was removed, and we
11069   # assume the GNU/Linux dynamic linker is in use.
11070   dynamic_linker='GNU/Linux ld.so'
11071   ;;
11072
11073 netbsd*)
11074   version_type=sunos
11075   need_lib_prefix=no
11076   need_version=no
11077   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11078     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11079     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11080     dynamic_linker='NetBSD (a.out) ld.so'
11081   else
11082     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11083     soname_spec='${libname}${release}${shared_ext}$major'
11084     dynamic_linker='NetBSD ld.elf_so'
11085   fi
11086   shlibpath_var=LD_LIBRARY_PATH
11087   shlibpath_overrides_runpath=yes
11088   hardcode_into_libs=yes
11089   ;;
11090
11091 newsos6)
11092   version_type=linux
11093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094   shlibpath_var=LD_LIBRARY_PATH
11095   shlibpath_overrides_runpath=yes
11096   ;;
11097
11098 nto-qnx)
11099   version_type=linux
11100   need_lib_prefix=no
11101   need_version=no
11102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103   soname_spec='${libname}${release}${shared_ext}$major'
11104   shlibpath_var=LD_LIBRARY_PATH
11105   shlibpath_overrides_runpath=yes
11106   ;;
11107
11108 openbsd*)
11109   version_type=sunos
11110   need_lib_prefix=no
11111   need_version=no
11112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11113   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11114   shlibpath_var=LD_LIBRARY_PATH
11115   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11116     case $host_os in
11117       openbsd2.[89] | openbsd2.[89].*)
11118         shlibpath_overrides_runpath=no
11119         ;;
11120       *)
11121         shlibpath_overrides_runpath=yes
11122         ;;
11123       esac
11124   else
11125     shlibpath_overrides_runpath=yes
11126   fi
11127   ;;
11128
11129 os2*)
11130   libname_spec='$name'
11131   shrext=".dll"
11132   need_lib_prefix=no
11133   library_names_spec='$libname${shared_ext} $libname.a'
11134   dynamic_linker='OS/2 ld.exe'
11135   shlibpath_var=LIBPATH
11136   ;;
11137
11138 osf3* | osf4* | osf5*)
11139   version_type=osf
11140   need_lib_prefix=no
11141   need_version=no
11142   soname_spec='${libname}${release}${shared_ext}$major'
11143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11144   shlibpath_var=LD_LIBRARY_PATH
11145   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11146   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11147   ;;
11148
11149 sco3.2v5*)
11150   version_type=osf
11151   soname_spec='${libname}${release}${shared_ext}$major'
11152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153   shlibpath_var=LD_LIBRARY_PATH
11154   ;;
11155
11156 solaris*)
11157   version_type=linux
11158   need_lib_prefix=no
11159   need_version=no
11160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161   soname_spec='${libname}${release}${shared_ext}$major'
11162   shlibpath_var=LD_LIBRARY_PATH
11163   shlibpath_overrides_runpath=yes
11164   hardcode_into_libs=yes
11165   # ldd complains unless libraries are executable
11166   postinstall_cmds='chmod +x $lib'
11167   ;;
11168
11169 sunos4*)
11170   version_type=sunos
11171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11172   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11173   shlibpath_var=LD_LIBRARY_PATH
11174   shlibpath_overrides_runpath=yes
11175   if test "$with_gnu_ld" = yes; then
11176     need_lib_prefix=no
11177   fi
11178   need_version=yes
11179   ;;
11180
11181 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11182   version_type=linux
11183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184   soname_spec='${libname}${release}${shared_ext}$major'
11185   shlibpath_var=LD_LIBRARY_PATH
11186   case $host_vendor in
11187     sni)
11188       shlibpath_overrides_runpath=no
11189       need_lib_prefix=no
11190       export_dynamic_flag_spec='${wl}-Blargedynsym'
11191       runpath_var=LD_RUN_PATH
11192       ;;
11193     siemens)
11194       need_lib_prefix=no
11195       ;;
11196     motorola)
11197       need_lib_prefix=no
11198       need_version=no
11199       shlibpath_overrides_runpath=no
11200       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11201       ;;
11202   esac
11203   ;;
11204
11205 sysv4*MP*)
11206   if test -d /usr/nec ;then
11207     version_type=linux
11208     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11209     soname_spec='$libname${shared_ext}.$major'
11210     shlibpath_var=LD_LIBRARY_PATH
11211   fi
11212   ;;
11213
11214 uts4*)
11215   version_type=linux
11216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11217   soname_spec='${libname}${release}${shared_ext}$major'
11218   shlibpath_var=LD_LIBRARY_PATH
11219   ;;
11220
11221 *)
11222   dynamic_linker=no
11223   ;;
11224 esac
11225 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11226 echo "${ECHO_T}$dynamic_linker" >&6
11227 test "$dynamic_linker" = no && can_build_shared=no
11228
11229 if test "x$enable_dlopen" != xyes; then
11230   enable_dlopen=unknown
11231   enable_dlopen_self=unknown
11232   enable_dlopen_self_static=unknown
11233 else
11234   lt_cv_dlopen=no
11235   lt_cv_dlopen_libs=
11236
11237   case $host_os in
11238   beos*)
11239     lt_cv_dlopen="load_add_on"
11240     lt_cv_dlopen_libs=
11241     lt_cv_dlopen_self=yes
11242     ;;
11243
11244   mingw* | pw32*)
11245     lt_cv_dlopen="LoadLibrary"
11246     lt_cv_dlopen_libs=
11247    ;;
11248
11249   cygwin*)
11250     lt_cv_dlopen="dlopen"
11251     lt_cv_dlopen_libs=
11252    ;;
11253
11254   darwin*)
11255   # if libdl is installed we need to link against it
11256     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11257 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11258 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11259   echo $ECHO_N "(cached) $ECHO_C" >&6
11260 else
11261   ac_check_lib_save_LIBS=$LIBS
11262 LIBS="-ldl  $LIBS"
11263 cat >conftest.$ac_ext <<_ACEOF
11264 #line $LINENO "configure"
11265 /* confdefs.h.  */
11266 _ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h.  */
11270
11271 /* Override any gcc2 internal prototype to avoid an error.  */
11272 #ifdef __cplusplus
11273 extern "C"
11274 #endif
11275 /* We use char because int might match the return type of a gcc2
11276    builtin and then its argument prototype would still apply.  */
11277 char dlopen ();
11278 int
11279 main ()
11280 {
11281 dlopen ();
11282   ;
11283   return 0;
11284 }
11285 _ACEOF
11286 rm -f conftest.$ac_objext conftest$ac_exeext
11287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11288   (eval $ac_link) 2>&5
11289   ac_status=$?
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); } &&
11292          { ac_try='test -s conftest$ac_exeext'
11293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294   (eval $ac_try) 2>&5
11295   ac_status=$?
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); }; }; then
11298   ac_cv_lib_dl_dlopen=yes
11299 else
11300   echo "$as_me: failed program was:" >&5
11301 sed 's/^/| /' conftest.$ac_ext >&5
11302
11303 ac_cv_lib_dl_dlopen=no
11304 fi
11305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11306 LIBS=$ac_check_lib_save_LIBS
11307 fi
11308 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11309 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11310 if test $ac_cv_lib_dl_dlopen = yes; then
11311   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11312 else
11313
11314     lt_cv_dlopen="dyld"
11315     lt_cv_dlopen_libs=
11316     lt_cv_dlopen_self=yes
11317
11318 fi
11319
11320    ;;
11321
11322   *)
11323     echo "$as_me:$LINENO: checking for shl_load" >&5
11324 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11325 if test "${ac_cv_func_shl_load+set}" = set; then
11326   echo $ECHO_N "(cached) $ECHO_C" >&6
11327 else
11328   cat >conftest.$ac_ext <<_ACEOF
11329 #line $LINENO "configure"
11330 /* confdefs.h.  */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h.  */
11335 /* System header to define __stub macros and hopefully few prototypes,
11336     which can conflict with char shl_load (); below.
11337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11338     <limits.h> exists even on freestanding compilers.  */
11339 #ifdef __STDC__
11340 # include <limits.h>
11341 #else
11342 # include <assert.h>
11343 #endif
11344 /* Override any gcc2 internal prototype to avoid an error.  */
11345 #ifdef __cplusplus
11346 extern "C"
11347 {
11348 #endif
11349 /* We use char because int might match the return type of a gcc2
11350    builtin and then its argument prototype would still apply.  */
11351 char shl_load ();
11352 /* The GNU C library defines this for functions which it implements
11353     to always fail with ENOSYS.  Some functions are actually named
11354     something starting with __ and the normal name is an alias.  */
11355 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11356 choke me
11357 #else
11358 char (*f) () = shl_load;
11359 #endif
11360 #ifdef __cplusplus
11361 }
11362 #endif
11363
11364 int
11365 main ()
11366 {
11367 return f != shl_load;
11368   ;
11369   return 0;
11370 }
11371 _ACEOF
11372 rm -f conftest.$ac_objext conftest$ac_exeext
11373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11374   (eval $ac_link) 2>&5
11375   ac_status=$?
11376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377   (exit $ac_status); } &&
11378          { ac_try='test -s conftest$ac_exeext'
11379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380   (eval $ac_try) 2>&5
11381   ac_status=$?
11382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383   (exit $ac_status); }; }; then
11384   ac_cv_func_shl_load=yes
11385 else
11386   echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11388
11389 ac_cv_func_shl_load=no
11390 fi
11391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11392 fi
11393 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11394 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11395 if test $ac_cv_func_shl_load = yes; then
11396   lt_cv_dlopen="shl_load"
11397 else
11398   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11399 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11400 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11401   echo $ECHO_N "(cached) $ECHO_C" >&6
11402 else
11403   ac_check_lib_save_LIBS=$LIBS
11404 LIBS="-ldld  $LIBS"
11405 cat >conftest.$ac_ext <<_ACEOF
11406 #line $LINENO "configure"
11407 /* confdefs.h.  */
11408 _ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h.  */
11412
11413 /* Override any gcc2 internal prototype to avoid an error.  */
11414 #ifdef __cplusplus
11415 extern "C"
11416 #endif
11417 /* We use char because int might match the return type of a gcc2
11418    builtin and then its argument prototype would still apply.  */
11419 char shl_load ();
11420 int
11421 main ()
11422 {
11423 shl_load ();
11424   ;
11425   return 0;
11426 }
11427 _ACEOF
11428 rm -f conftest.$ac_objext conftest$ac_exeext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11430   (eval $ac_link) 2>&5
11431   ac_status=$?
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); } &&
11434          { ac_try='test -s conftest$ac_exeext'
11435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436   (eval $ac_try) 2>&5
11437   ac_status=$?
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   (exit $ac_status); }; }; then
11440   ac_cv_lib_dld_shl_load=yes
11441 else
11442   echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11444
11445 ac_cv_lib_dld_shl_load=no
11446 fi
11447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11448 LIBS=$ac_check_lib_save_LIBS
11449 fi
11450 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11451 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11452 if test $ac_cv_lib_dld_shl_load = yes; then
11453   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11454 else
11455   echo "$as_me:$LINENO: checking for dlopen" >&5
11456 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11457 if test "${ac_cv_func_dlopen+set}" = set; then
11458   echo $ECHO_N "(cached) $ECHO_C" >&6
11459 else
11460   cat >conftest.$ac_ext <<_ACEOF
11461 #line $LINENO "configure"
11462 /* confdefs.h.  */
11463 _ACEOF
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h.  */
11467 /* System header to define __stub macros and hopefully few prototypes,
11468     which can conflict with char dlopen (); below.
11469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11470     <limits.h> exists even on freestanding compilers.  */
11471 #ifdef __STDC__
11472 # include <limits.h>
11473 #else
11474 # include <assert.h>
11475 #endif
11476 /* Override any gcc2 internal prototype to avoid an error.  */
11477 #ifdef __cplusplus
11478 extern "C"
11479 {
11480 #endif
11481 /* We use char because int might match the return type of a gcc2
11482    builtin and then its argument prototype would still apply.  */
11483 char dlopen ();
11484 /* The GNU C library defines this for functions which it implements
11485     to always fail with ENOSYS.  Some functions are actually named
11486     something starting with __ and the normal name is an alias.  */
11487 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11488 choke me
11489 #else
11490 char (*f) () = dlopen;
11491 #endif
11492 #ifdef __cplusplus
11493 }
11494 #endif
11495
11496 int
11497 main ()
11498 {
11499 return f != dlopen;
11500   ;
11501   return 0;
11502 }
11503 _ACEOF
11504 rm -f conftest.$ac_objext conftest$ac_exeext
11505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11506   (eval $ac_link) 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); } &&
11510          { ac_try='test -s conftest$ac_exeext'
11511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512   (eval $ac_try) 2>&5
11513   ac_status=$?
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); }; }; then
11516   ac_cv_func_dlopen=yes
11517 else
11518   echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11520
11521 ac_cv_func_dlopen=no
11522 fi
11523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11524 fi
11525 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11526 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11527 if test $ac_cv_func_dlopen = yes; then
11528   lt_cv_dlopen="dlopen"
11529 else
11530   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11531 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11532 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11533   echo $ECHO_N "(cached) $ECHO_C" >&6
11534 else
11535   ac_check_lib_save_LIBS=$LIBS
11536 LIBS="-ldl  $LIBS"
11537 cat >conftest.$ac_ext <<_ACEOF
11538 #line $LINENO "configure"
11539 /* confdefs.h.  */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h.  */
11544
11545 /* Override any gcc2 internal prototype to avoid an error.  */
11546 #ifdef __cplusplus
11547 extern "C"
11548 #endif
11549 /* We use char because int might match the return type of a gcc2
11550    builtin and then its argument prototype would still apply.  */
11551 char dlopen ();
11552 int
11553 main ()
11554 {
11555 dlopen ();
11556   ;
11557   return 0;
11558 }
11559 _ACEOF
11560 rm -f conftest.$ac_objext conftest$ac_exeext
11561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11562   (eval $ac_link) 2>&5
11563   ac_status=$?
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); } &&
11566          { ac_try='test -s conftest$ac_exeext'
11567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568   (eval $ac_try) 2>&5
11569   ac_status=$?
11570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); }; }; then
11572   ac_cv_lib_dl_dlopen=yes
11573 else
11574   echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11576
11577 ac_cv_lib_dl_dlopen=no
11578 fi
11579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11580 LIBS=$ac_check_lib_save_LIBS
11581 fi
11582 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11583 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11584 if test $ac_cv_lib_dl_dlopen = yes; then
11585   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11586 else
11587   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11588 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11589 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11590   echo $ECHO_N "(cached) $ECHO_C" >&6
11591 else
11592   ac_check_lib_save_LIBS=$LIBS
11593 LIBS="-lsvld  $LIBS"
11594 cat >conftest.$ac_ext <<_ACEOF
11595 #line $LINENO "configure"
11596 /* confdefs.h.  */
11597 _ACEOF
11598 cat confdefs.h >>conftest.$ac_ext
11599 cat >>conftest.$ac_ext <<_ACEOF
11600 /* end confdefs.h.  */
11601
11602 /* Override any gcc2 internal prototype to avoid an error.  */
11603 #ifdef __cplusplus
11604 extern "C"
11605 #endif
11606 /* We use char because int might match the return type of a gcc2
11607    builtin and then its argument prototype would still apply.  */
11608 char dlopen ();
11609 int
11610 main ()
11611 {
11612 dlopen ();
11613   ;
11614   return 0;
11615 }
11616 _ACEOF
11617 rm -f conftest.$ac_objext conftest$ac_exeext
11618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11619   (eval $ac_link) 2>&5
11620   ac_status=$?
11621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622   (exit $ac_status); } &&
11623          { ac_try='test -s conftest$ac_exeext'
11624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625   (eval $ac_try) 2>&5
11626   ac_status=$?
11627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628   (exit $ac_status); }; }; then
11629   ac_cv_lib_svld_dlopen=yes
11630 else
11631   echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11633
11634 ac_cv_lib_svld_dlopen=no
11635 fi
11636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11637 LIBS=$ac_check_lib_save_LIBS
11638 fi
11639 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11640 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11641 if test $ac_cv_lib_svld_dlopen = yes; then
11642   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11643 else
11644   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11645 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11646 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11647   echo $ECHO_N "(cached) $ECHO_C" >&6
11648 else
11649   ac_check_lib_save_LIBS=$LIBS
11650 LIBS="-ldld  $LIBS"
11651 cat >conftest.$ac_ext <<_ACEOF
11652 #line $LINENO "configure"
11653 /* confdefs.h.  */
11654 _ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h.  */
11658
11659 /* Override any gcc2 internal prototype to avoid an error.  */
11660 #ifdef __cplusplus
11661 extern "C"
11662 #endif
11663 /* We use char because int might match the return type of a gcc2
11664    builtin and then its argument prototype would still apply.  */
11665 char dld_link ();
11666 int
11667 main ()
11668 {
11669 dld_link ();
11670   ;
11671   return 0;
11672 }
11673 _ACEOF
11674 rm -f conftest.$ac_objext conftest$ac_exeext
11675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11676   (eval $ac_link) 2>&5
11677   ac_status=$?
11678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679   (exit $ac_status); } &&
11680          { ac_try='test -s conftest$ac_exeext'
11681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682   (eval $ac_try) 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }; }; then
11686   ac_cv_lib_dld_dld_link=yes
11687 else
11688   echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11690
11691 ac_cv_lib_dld_dld_link=no
11692 fi
11693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11694 LIBS=$ac_check_lib_save_LIBS
11695 fi
11696 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11697 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11698 if test $ac_cv_lib_dld_dld_link = yes; then
11699   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11700 fi
11701
11702
11703 fi
11704
11705
11706 fi
11707
11708
11709 fi
11710
11711
11712 fi
11713
11714
11715 fi
11716
11717     ;;
11718   esac
11719
11720   if test "x$lt_cv_dlopen" != xno; then
11721     enable_dlopen=yes
11722   else
11723     enable_dlopen=no
11724   fi
11725
11726   case $lt_cv_dlopen in
11727   dlopen)
11728     save_CPPFLAGS="$CPPFLAGS"
11729     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11730
11731     save_LDFLAGS="$LDFLAGS"
11732     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11733
11734     save_LIBS="$LIBS"
11735     LIBS="$lt_cv_dlopen_libs $LIBS"
11736
11737     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11738 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11739 if test "${lt_cv_dlopen_self+set}" = set; then
11740   echo $ECHO_N "(cached) $ECHO_C" >&6
11741 else
11742           if test "$cross_compiling" = yes; then :
11743   lt_cv_dlopen_self=cross
11744 else
11745   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11746   lt_status=$lt_dlunknown
11747   cat > conftest.$ac_ext <<EOF
11748 #line 11748 "configure"
11749 #include "confdefs.h"
11750
11751 #if HAVE_DLFCN_H
11752 #include <dlfcn.h>
11753 #endif
11754
11755 #include <stdio.h>
11756
11757 #ifdef RTLD_GLOBAL
11758 #  define LT_DLGLOBAL           RTLD_GLOBAL
11759 #else
11760 #  ifdef DL_GLOBAL
11761 #    define LT_DLGLOBAL         DL_GLOBAL
11762 #  else
11763 #    define LT_DLGLOBAL         0
11764 #  endif
11765 #endif
11766
11767 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11768    find out it does not work in some platform. */
11769 #ifndef LT_DLLAZY_OR_NOW
11770 #  ifdef RTLD_LAZY
11771 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11772 #  else
11773 #    ifdef DL_LAZY
11774 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11775 #    else
11776 #      ifdef RTLD_NOW
11777 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11778 #      else
11779 #        ifdef DL_NOW
11780 #          define LT_DLLAZY_OR_NOW      DL_NOW
11781 #        else
11782 #          define LT_DLLAZY_OR_NOW      0
11783 #        endif
11784 #      endif
11785 #    endif
11786 #  endif
11787 #endif
11788
11789 #ifdef __cplusplus
11790 extern "C" void exit (int);
11791 #endif
11792
11793 void fnord() { int i=42;}
11794 int main ()
11795 {
11796   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11797   int status = $lt_dlunknown;
11798
11799   if (self)
11800     {
11801       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11802       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11803       /* dlclose (self); */
11804     }
11805
11806     exit (status);
11807 }
11808 EOF
11809   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11810   (eval $ac_link) 2>&5
11811   ac_status=$?
11812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11814     (./conftest; exit; ) 2>/dev/null
11815     lt_status=$?
11816     case x$lt_status in
11817       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11818       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11819       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11820     esac
11821   else :
11822     # compilation failed
11823     lt_cv_dlopen_self=no
11824   fi
11825 fi
11826 rm -fr conftest*
11827
11828
11829 fi
11830 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11831 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11832
11833     if test "x$lt_cv_dlopen_self" = xyes; then
11834       LDFLAGS="$LDFLAGS $link_static_flag"
11835       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11836 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11837 if test "${lt_cv_dlopen_self_static+set}" = set; then
11838   echo $ECHO_N "(cached) $ECHO_C" >&6
11839 else
11840           if test "$cross_compiling" = yes; then :
11841   lt_cv_dlopen_self_static=cross
11842 else
11843   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11844   lt_status=$lt_dlunknown
11845   cat > conftest.$ac_ext <<EOF
11846 #line 11846 "configure"
11847 #include "confdefs.h"
11848
11849 #if HAVE_DLFCN_H
11850 #include <dlfcn.h>
11851 #endif
11852
11853 #include <stdio.h>
11854
11855 #ifdef RTLD_GLOBAL
11856 #  define LT_DLGLOBAL           RTLD_GLOBAL
11857 #else
11858 #  ifdef DL_GLOBAL
11859 #    define LT_DLGLOBAL         DL_GLOBAL
11860 #  else
11861 #    define LT_DLGLOBAL         0
11862 #  endif
11863 #endif
11864
11865 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11866    find out it does not work in some platform. */
11867 #ifndef LT_DLLAZY_OR_NOW
11868 #  ifdef RTLD_LAZY
11869 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11870 #  else
11871 #    ifdef DL_LAZY
11872 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11873 #    else
11874 #      ifdef RTLD_NOW
11875 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11876 #      else
11877 #        ifdef DL_NOW
11878 #          define LT_DLLAZY_OR_NOW      DL_NOW
11879 #        else
11880 #          define LT_DLLAZY_OR_NOW      0
11881 #        endif
11882 #      endif
11883 #    endif
11884 #  endif
11885 #endif
11886
11887 #ifdef __cplusplus
11888 extern "C" void exit (int);
11889 #endif
11890
11891 void fnord() { int i=42;}
11892 int main ()
11893 {
11894   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11895   int status = $lt_dlunknown;
11896
11897   if (self)
11898     {
11899       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11900       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11901       /* dlclose (self); */
11902     }
11903
11904     exit (status);
11905 }
11906 EOF
11907   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11908   (eval $ac_link) 2>&5
11909   ac_status=$?
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11912     (./conftest; exit; ) 2>/dev/null
11913     lt_status=$?
11914     case x$lt_status in
11915       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11916       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11917       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11918     esac
11919   else :
11920     # compilation failed
11921     lt_cv_dlopen_self_static=no
11922   fi
11923 fi
11924 rm -fr conftest*
11925
11926
11927 fi
11928 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11929 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11930     fi
11931
11932     CPPFLAGS="$save_CPPFLAGS"
11933     LDFLAGS="$save_LDFLAGS"
11934     LIBS="$save_LIBS"
11935     ;;
11936   esac
11937
11938   case $lt_cv_dlopen_self in
11939   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11940   *) enable_dlopen_self=unknown ;;
11941   esac
11942
11943   case $lt_cv_dlopen_self_static in
11944   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11945   *) enable_dlopen_self_static=unknown ;;
11946   esac
11947 fi
11948
11949
11950 # The else clause should only fire when bootstrapping the
11951 # libtool distribution, otherwise you forgot to ship ltmain.sh
11952 # with your package, and you will get complaints that there are
11953 # no rules to generate ltmain.sh.
11954 if test -f "$ltmain"; then
11955   # See if we are running on zsh, and set the options which allow our commands through
11956   # without removal of \ escapes.
11957   if test -n "${ZSH_VERSION+set}" ; then
11958     setopt NO_GLOB_SUBST
11959   fi
11960   # Now quote all the things that may contain metacharacters while being
11961   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11962   # variables and quote the copies for generation of the libtool script.
11963   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11964     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11965     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11966     deplibs_check_method reload_flag reload_cmds need_locks \
11967     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11968     lt_cv_sys_global_symbol_to_c_name_address \
11969     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11970     old_postinstall_cmds old_postuninstall_cmds \
11971     compiler_CXX \
11972     CC_CXX \
11973     LD_CXX \
11974     lt_prog_compiler_wl_CXX \
11975     lt_prog_compiler_pic_CXX \
11976     lt_prog_compiler_static_CXX \
11977     lt_prog_compiler_no_builtin_flag_CXX \
11978     export_dynamic_flag_spec_CXX \
11979     thread_safe_flag_spec_CXX \
11980     whole_archive_flag_spec_CXX \
11981     enable_shared_with_static_runtimes_CXX \
11982     old_archive_cmds_CXX \
11983     old_archive_from_new_cmds_CXX \
11984     predep_objects_CXX \
11985     postdep_objects_CXX \
11986     predeps_CXX \
11987     postdeps_CXX \
11988     compiler_lib_search_path_CXX \
11989     archive_cmds_CXX \
11990     archive_expsym_cmds_CXX \
11991     postinstall_cmds_CXX \
11992     postuninstall_cmds_CXX \
11993     old_archive_from_expsyms_cmds_CXX \
11994     allow_undefined_flag_CXX \
11995     no_undefined_flag_CXX \
11996     export_symbols_cmds_CXX \
11997     hardcode_libdir_flag_spec_CXX \
11998     hardcode_libdir_flag_spec_ld_CXX \
11999     hardcode_libdir_separator_CXX \
12000     hardcode_automatic_CXX \
12001     module_cmds_CXX \
12002     module_expsym_cmds_CXX \
12003     lt_cv_prog_compiler_c_o_CXX \
12004     exclude_expsyms_CXX \
12005     include_expsyms_CXX; do
12006
12007     case $var in
12008     old_archive_cmds_CXX | \
12009     old_archive_from_new_cmds_CXX | \
12010     archive_cmds_CXX | \
12011     archive_expsym_cmds_CXX | \
12012     module_cmds_CXX | \
12013     module_expsym_cmds_CXX | \
12014     old_archive_from_expsyms_cmds_CXX | \
12015     export_symbols_cmds_CXX | \
12016     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12017     postinstall_cmds | postuninstall_cmds | \
12018     old_postinstall_cmds | old_postuninstall_cmds | \
12019     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12020       # Double-quote double-evaled strings.
12021       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12022       ;;
12023     *)
12024       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12025       ;;
12026     esac
12027   done
12028
12029   case $lt_echo in
12030   *'\$0 --fallback-echo"')
12031     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12032     ;;
12033   esac
12034
12035 cfgfile="$ofile"
12036
12037   cat <<__EOF__ >> "$cfgfile"
12038 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12039
12040 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12041
12042 # Shell to use when invoking shell scripts.
12043 SHELL=$lt_SHELL
12044
12045 # Whether or not to build shared libraries.
12046 build_libtool_libs=$enable_shared
12047
12048 # Whether or not to build static libraries.
12049 build_old_libs=$enable_static
12050
12051 # Whether or not to add -lc for building shared libraries.
12052 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12053
12054 # Whether or not to disallow shared libs when runtime libs are static
12055 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12056
12057 # Whether or not to optimize for fast installation.
12058 fast_install=$enable_fast_install
12059
12060 # The host system.
12061 host_alias=$host_alias
12062 host=$host
12063
12064 # An echo program that does not interpret backslashes.
12065 echo=$lt_echo
12066
12067 # The archiver.
12068 AR=$lt_AR
12069 AR_FLAGS=$lt_AR_FLAGS
12070
12071 # A C compiler.
12072 LTCC=$lt_LTCC
12073
12074 # A language-specific compiler.
12075 CC=$lt_compiler_CXX
12076
12077 # Is the compiler the GNU C compiler?
12078 with_gcc=$GCC_CXX
12079
12080 # An ERE matcher.
12081 EGREP=$lt_EGREP
12082
12083 # The linker used to build libraries.
12084 LD=$lt_LD_CXX
12085
12086 # Whether we need hard or soft links.
12087 LN_S=$lt_LN_S
12088
12089 # A BSD-compatible nm program.
12090 NM=$lt_NM
12091
12092 # A symbol stripping program
12093 STRIP=$STRIP
12094
12095 # Used to examine libraries when file_magic_cmd begins "file"
12096 MAGIC_CMD=$MAGIC_CMD
12097
12098 # Used on cygwin: DLL creation program.
12099 DLLTOOL="$DLLTOOL"
12100
12101 # Used on cygwin: object dumper.
12102 OBJDUMP="$OBJDUMP"
12103
12104 # Used on cygwin: assembler.
12105 AS="$AS"
12106
12107 # The name of the directory that contains temporary libtool files.
12108 objdir=$objdir
12109
12110 # How to create reloadable object files.
12111 reload_flag=$lt_reload_flag
12112 reload_cmds=$lt_reload_cmds
12113
12114 # How to pass a linker flag through the compiler.
12115 wl=$lt_lt_prog_compiler_wl_CXX
12116
12117 # Object file suffix (normally "o").
12118 objext="$ac_objext"
12119
12120 # Old archive suffix (normally "a").
12121 libext="$libext"
12122
12123 # Shared library suffix (normally ".so").
12124 shrext='$shrext'
12125
12126 # Executable file suffix (normally "").
12127 exeext="$exeext"
12128
12129 # Additional compiler flags for building library objects.
12130 pic_flag=$lt_lt_prog_compiler_pic_CXX
12131 pic_mode=$pic_mode
12132
12133 # What is the maximum length of a command?
12134 max_cmd_len=$lt_cv_sys_max_cmd_len
12135
12136 # Does compiler simultaneously support -c and -o options?
12137 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12138
12139 # Must we lock files when doing compilation ?
12140 need_locks=$lt_need_locks
12141
12142 # Do we need the lib prefix for modules?
12143 need_lib_prefix=$need_lib_prefix
12144
12145 # Do we need a version for libraries?
12146 need_version=$need_version
12147
12148 # Whether dlopen is supported.
12149 dlopen_support=$enable_dlopen
12150
12151 # Whether dlopen of programs is supported.
12152 dlopen_self=$enable_dlopen_self
12153
12154 # Whether dlopen of statically linked programs is supported.
12155 dlopen_self_static=$enable_dlopen_self_static
12156
12157 # Compiler flag to prevent dynamic linking.
12158 link_static_flag=$lt_lt_prog_compiler_static_CXX
12159
12160 # Compiler flag to turn off builtin functions.
12161 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12162
12163 # Compiler flag to allow reflexive dlopens.
12164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12165
12166 # Compiler flag to generate shared objects directly from archives.
12167 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12168
12169 # Compiler flag to generate thread-safe objects.
12170 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12171
12172 # Library versioning type.
12173 version_type=$version_type
12174
12175 # Format of library name prefix.
12176 libname_spec=$lt_libname_spec
12177
12178 # List of archive names.  First name is the real one, the rest are links.
12179 # The last name is the one that the linker finds with -lNAME.
12180 library_names_spec=$lt_library_names_spec
12181
12182 # The coded name of the library, if different from the real name.
12183 soname_spec=$lt_soname_spec
12184
12185 # Commands used to build and install an old-style archive.
12186 RANLIB=$lt_RANLIB
12187 old_archive_cmds=$lt_old_archive_cmds_CXX
12188 old_postinstall_cmds=$lt_old_postinstall_cmds
12189 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12190
12191 # Create an old-style archive from a shared archive.
12192 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12193
12194 # Create a temporary old-style archive to link instead of a shared archive.
12195 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12196
12197 # Commands used to build and install a shared archive.
12198 archive_cmds=$lt_archive_cmds_CXX
12199 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12200 postinstall_cmds=$lt_postinstall_cmds
12201 postuninstall_cmds=$lt_postuninstall_cmds
12202
12203 # Commands used to build a loadable module (assumed same as above if empty)
12204 module_cmds=$lt_module_cmds_CXX
12205 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12206
12207 # Commands to strip libraries.
12208 old_striplib=$lt_old_striplib
12209 striplib=$lt_striplib
12210
12211 # Dependencies to place before the objects being linked to create a
12212 # shared library.
12213 predep_objects=$lt_predep_objects_CXX
12214
12215 # Dependencies to place after the objects being linked to create a
12216 # shared library.
12217 postdep_objects=$lt_postdep_objects_CXX
12218
12219 # Dependencies to place before the objects being linked to create a
12220 # shared library.
12221 predeps=$lt_predeps_CXX
12222
12223 # Dependencies to place after the objects being linked to create a
12224 # shared library.
12225 postdeps=$lt_postdeps_CXX
12226
12227 # The library search path used internally by the compiler when linking
12228 # a shared library.
12229 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12230
12231 # Method to check whether dependent libraries are shared objects.
12232 deplibs_check_method=$lt_deplibs_check_method
12233
12234 # Command to use when deplibs_check_method == file_magic.
12235 file_magic_cmd=$lt_file_magic_cmd
12236
12237 # Flag that allows shared libraries with undefined symbols to be built.
12238 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12239
12240 # Flag that forces no undefined symbols.
12241 no_undefined_flag=$lt_no_undefined_flag_CXX
12242
12243 # Commands used to finish a libtool library installation in a directory.
12244 finish_cmds=$lt_finish_cmds
12245
12246 # Same as above, but a single script fragment to be evaled but not shown.
12247 finish_eval=$lt_finish_eval
12248
12249 # Take the output of nm and produce a listing of raw symbols and C names.
12250 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12251
12252 # Transform the output of nm in a proper C declaration
12253 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12254
12255 # Transform the output of nm in a C name address pair
12256 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12257
12258 # This is the shared library runtime path variable.
12259 runpath_var=$runpath_var
12260
12261 # This is the shared library path variable.
12262 shlibpath_var=$shlibpath_var
12263
12264 # Is shlibpath searched before the hard-coded library search path?
12265 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12266
12267 # How to hardcode a shared library path into an executable.
12268 hardcode_action=$hardcode_action_CXX
12269
12270 # Whether we should hardcode library paths into libraries.
12271 hardcode_into_libs=$hardcode_into_libs
12272
12273 # Flag to hardcode \$libdir into a binary during linking.
12274 # This must work even if \$libdir does not exist.
12275 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12276
12277 # If ld is used when linking, flag to hardcode \$libdir into
12278 # a binary during linking. This must work even if \$libdir does
12279 # not exist.
12280 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12281
12282 # Whether we need a single -rpath flag with a separated argument.
12283 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12284
12285 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12286 # resulting binary.
12287 hardcode_direct=$hardcode_direct_CXX
12288
12289 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12290 # resulting binary.
12291 hardcode_minus_L=$hardcode_minus_L_CXX
12292
12293 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12294 # the resulting binary.
12295 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12296
12297 # Set to yes if building a shared library automatically hardcodes DIR into the library
12298 # and all subsequent libraries and executables linked against it.
12299 hardcode_automatic=$hardcode_automatic_CXX
12300
12301 # Variables whose values should be saved in libtool wrapper scripts and
12302 # restored at relink time.
12303 variables_saved_for_relink="$variables_saved_for_relink"
12304
12305 # Whether libtool must link a program against all its dependency libraries.
12306 link_all_deplibs=$link_all_deplibs_CXX
12307
12308 # Compile-time system search path for libraries
12309 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12310
12311 # Run-time system search path for libraries
12312 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12313
12314 # Fix the shell variable \$srcfile for the compiler.
12315 fix_srcfile_path="$fix_srcfile_path_CXX"
12316
12317 # Set to yes if exported symbols are required.
12318 always_export_symbols=$always_export_symbols_CXX
12319
12320 # The commands to list exported symbols.
12321 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12322
12323 # The commands to extract the exported symbol list from a shared archive.
12324 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12325
12326 # Symbols that should not be listed in the preloaded symbols.
12327 exclude_expsyms=$lt_exclude_expsyms_CXX
12328
12329 # Symbols that must always be exported.
12330 include_expsyms=$lt_include_expsyms_CXX
12331
12332 # ### END LIBTOOL TAG CONFIG: $tagname
12333
12334 __EOF__
12335
12336
12337 else
12338   # If there is no Makefile yet, we rely on a make rule to execute
12339   # `config.status --recheck' to rerun these tests and create the
12340   # libtool script then.
12341   test -f Makefile && make "$ltmain"
12342 fi
12343
12344
12345 ac_ext=c
12346 ac_cpp='$CPP $CPPFLAGS'
12347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12350
12351 CC=$lt_save_CC
12352 LDCXX=$LD
12353 LD=$lt_save_LD
12354 GCC=$lt_save_GCC
12355 with_gnu_ldcxx=$with_gnu_ld
12356 with_gnu_ld=$lt_save_with_gnu_ld
12357 lt_cv_path_LDCXX=$lt_cv_path_LD
12358 lt_cv_path_LD=$lt_save_path_LD
12359 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12360 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12361
12362         else
12363           tagname=""
12364         fi
12365         ;;
12366
12367       F77)
12368         if test -n "$F77" && test "X$F77" != "Xno"; then
12369
12370 ac_ext=f
12371 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12372 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12373 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12374
12375
12376 archive_cmds_need_lc_F77=no
12377 allow_undefined_flag_F77=
12378 always_export_symbols_F77=no
12379 archive_expsym_cmds_F77=
12380 export_dynamic_flag_spec_F77=
12381 hardcode_direct_F77=no
12382 hardcode_libdir_flag_spec_F77=
12383 hardcode_libdir_flag_spec_ld_F77=
12384 hardcode_libdir_separator_F77=
12385 hardcode_minus_L_F77=no
12386 hardcode_automatic_F77=no
12387 module_cmds_F77=
12388 module_expsym_cmds_F77=
12389 link_all_deplibs_F77=unknown
12390 old_archive_cmds_F77=$old_archive_cmds
12391 no_undefined_flag_F77=
12392 whole_archive_flag_spec_F77=
12393 enable_shared_with_static_runtimes_F77=no
12394
12395 # Source file extension for f77 test sources.
12396 ac_ext=f
12397
12398 # Object file extension for compiled f77 test sources.
12399 objext=o
12400 objext_F77=$objext
12401
12402 # Code to be used in simple compile tests
12403 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12404
12405 # Code to be used in simple link tests
12406 lt_simple_link_test_code="      program t\n      end\n"
12407
12408 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12409
12410 # If no C compiler was specified, use CC.
12411 LTCC=${LTCC-"$CC"}
12412
12413 # Allow CC to be a program name with arguments.
12414 compiler=$CC
12415
12416
12417 # Allow CC to be a program name with arguments.
12418 lt_save_CC="$CC"
12419 CC=${F77-"f77"}
12420 compiler=$CC
12421 compiler_F77=$CC
12422 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12423
12424 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12425 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12426 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12427 echo "${ECHO_T}$can_build_shared" >&6
12428
12429 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12430 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12431 test "$can_build_shared" = "no" && enable_shared=no
12432
12433 # On AIX, shared libraries and static libraries use the same namespace, and
12434 # are all built from PIC.
12435 case "$host_os" in
12436 aix3*)
12437   test "$enable_shared" = yes && enable_static=no
12438   if test -n "$RANLIB"; then
12439     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12440     postinstall_cmds='$RANLIB $lib'
12441   fi
12442   ;;
12443 aix4*)
12444   test "$enable_shared" = yes && enable_static=no
12445   ;;
12446 esac
12447 echo "$as_me:$LINENO: result: $enable_shared" >&5
12448 echo "${ECHO_T}$enable_shared" >&6
12449
12450 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12451 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12452 # Make sure either enable_shared or enable_static is yes.
12453 test "$enable_shared" = yes || enable_static=yes
12454 echo "$as_me:$LINENO: result: $enable_static" >&5
12455 echo "${ECHO_T}$enable_static" >&6
12456
12457 test "$ld_shlibs_F77" = no && can_build_shared=no
12458
12459 GCC_F77="$G77"
12460 LD_F77="$LD"
12461
12462 lt_prog_compiler_wl_F77=
12463 lt_prog_compiler_pic_F77=
12464 lt_prog_compiler_static_F77=
12465
12466 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12467 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12468
12469   if test "$GCC" = yes; then
12470     lt_prog_compiler_wl_F77='-Wl,'
12471     lt_prog_compiler_static_F77='-static'
12472
12473     case $host_os in
12474       aix*)
12475       # All AIX code is PIC.
12476       if test "$host_cpu" = ia64; then
12477         # AIX 5 now supports IA64 processor
12478         lt_prog_compiler_static_F77='-Bstatic'
12479       fi
12480       ;;
12481
12482     amigaos*)
12483       # FIXME: we need at least 68020 code to build shared libraries, but
12484       # adding the `-m68020' flag to GCC prevents building anything better,
12485       # like `-m68040'.
12486       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12487       ;;
12488
12489     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12490       # PIC is the default for these OSes.
12491       ;;
12492
12493     mingw* | pw32* | os2*)
12494       # This hack is so that the source file can tell whether it is being
12495       # built for inclusion in a dll (and should export symbols for example).
12496       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12497       ;;
12498
12499     darwin* | rhapsody*)
12500       # PIC is the default on this platform
12501       # Common symbols not allowed in MH_DYLIB files
12502       lt_prog_compiler_pic_F77='-fno-common'
12503       ;;
12504
12505     msdosdjgpp*)
12506       # Just because we use GCC doesn't mean we suddenly get shared libraries
12507       # on systems that don't support them.
12508       lt_prog_compiler_can_build_shared_F77=no
12509       enable_shared=no
12510       ;;
12511
12512     sysv4*MP*)
12513       if test -d /usr/nec; then
12514         lt_prog_compiler_pic_F77=-Kconform_pic
12515       fi
12516       ;;
12517
12518     hpux*)
12519       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12520       # not for PA HP-UX.
12521       case "$host_cpu" in
12522       hppa*64*|ia64*)
12523         # +Z the default
12524         ;;
12525       *)
12526         lt_prog_compiler_pic_F77='-fPIC'
12527         ;;
12528       esac
12529       ;;
12530
12531     *)
12532       lt_prog_compiler_pic_F77='-fPIC'
12533       ;;
12534     esac
12535   else
12536     # PORTME Check for flag to pass linker flags through the system compiler.
12537     case $host_os in
12538     aix*)
12539       lt_prog_compiler_wl_F77='-Wl,'
12540       if test "$host_cpu" = ia64; then
12541         # AIX 5 now supports IA64 processor
12542         lt_prog_compiler_static_F77='-Bstatic'
12543       else
12544         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12545       fi
12546       ;;
12547
12548     mingw* | pw32* | os2*)
12549       # This hack is so that the source file can tell whether it is being
12550       # built for inclusion in a dll (and should export symbols for example).
12551       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12552       ;;
12553
12554     hpux9* | hpux10* | hpux11*)
12555       lt_prog_compiler_wl_F77='-Wl,'
12556       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12557       # not for PA HP-UX.
12558       case "$host_cpu" in
12559       hppa*64*|ia64*)
12560         # +Z the default
12561         ;;
12562       *)
12563         lt_prog_compiler_pic_F77='+Z'
12564         ;;
12565       esac
12566       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12567       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12568       ;;
12569
12570     irix5* | irix6* | nonstopux*)
12571       lt_prog_compiler_wl_F77='-Wl,'
12572       # PIC (with -KPIC) is the default.
12573       lt_prog_compiler_static_F77='-non_shared'
12574       ;;
12575
12576     newsos6)
12577       lt_prog_compiler_pic_F77='-KPIC'
12578       lt_prog_compiler_static_F77='-Bstatic'
12579       ;;
12580
12581     linux*)
12582       case $CC in
12583       icc|ecc)
12584         lt_prog_compiler_wl_F77='-Wl,'
12585         lt_prog_compiler_pic_F77='-KPIC'
12586         lt_prog_compiler_static_F77='-static'
12587         ;;
12588       ccc)
12589         lt_prog_compiler_wl_F77='-Wl,'
12590         # All Alpha code is PIC.
12591         lt_prog_compiler_static_F77='-non_shared'
12592         ;;
12593       esac
12594       ;;
12595
12596     osf3* | osf4* | osf5*)
12597       lt_prog_compiler_wl_F77='-Wl,'
12598       # All OSF/1 code is PIC.
12599       lt_prog_compiler_static_F77='-non_shared'
12600       ;;
12601
12602     sco3.2v5*)
12603       lt_prog_compiler_pic_F77='-Kpic'
12604       lt_prog_compiler_static_F77='-dn'
12605       ;;
12606
12607     solaris*)
12608       lt_prog_compiler_wl_F77='-Wl,'
12609       lt_prog_compiler_pic_F77='-KPIC'
12610       lt_prog_compiler_static_F77='-Bstatic'
12611       ;;
12612
12613     sunos4*)
12614       lt_prog_compiler_wl_F77='-Qoption ld '
12615       lt_prog_compiler_pic_F77='-PIC'
12616       lt_prog_compiler_static_F77='-Bstatic'
12617       ;;
12618
12619     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12620       lt_prog_compiler_wl_F77='-Wl,'
12621       lt_prog_compiler_pic_F77='-KPIC'
12622       lt_prog_compiler_static_F77='-Bstatic'
12623       ;;
12624
12625     sysv4*MP*)
12626       if test -d /usr/nec ;then
12627         lt_prog_compiler_pic_F77='-Kconform_pic'
12628         lt_prog_compiler_static_F77='-Bstatic'
12629       fi
12630       ;;
12631
12632     uts4*)
12633       lt_prog_compiler_pic_F77='-pic'
12634       lt_prog_compiler_static_F77='-Bstatic'
12635       ;;
12636
12637     *)
12638       lt_prog_compiler_can_build_shared_F77=no
12639       ;;
12640     esac
12641   fi
12642
12643 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12644 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12645
12646 #
12647 # Check to make sure the PIC flag actually works.
12648 #
12649 if test -n "$lt_prog_compiler_pic_F77"; then
12650   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12651 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12652 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12653   echo $ECHO_N "(cached) $ECHO_C" >&6
12654 else
12655   lt_prog_compiler_pic_works_F77=no
12656   ac_outfile=conftest.$ac_objext
12657    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12658    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12659    # Insert the option either (1) after the last *FLAGS variable, or
12660    # (2) before a word containing "conftest.", or (3) at the end.
12661    # Note that $ac_compile itself does not contain backslashes and begins
12662    # with a dollar sign (not a hyphen), so the echo should work correctly.
12663    # The option is referenced via a variable to avoid confusing sed.
12664    lt_compile=`echo "$ac_compile" | $SED \
12665    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12666    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12667    -e 's:$: $lt_compiler_flag:'`
12668    (eval echo "\"\$as_me:12668: $lt_compile\"" >&5)
12669    (eval "$lt_compile" 2>conftest.err)
12670    ac_status=$?
12671    cat conftest.err >&5
12672    echo "$as_me:12672: \$? = $ac_status" >&5
12673    if (exit $ac_status) && test -s "$ac_outfile"; then
12674      # The compiler can only warn and ignore the option if not recognized
12675      # So say no if there are warnings
12676      if test ! -s conftest.err; then
12677        lt_prog_compiler_pic_works_F77=yes
12678      fi
12679    fi
12680    $rm conftest*
12681
12682 fi
12683 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12684 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12685
12686 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12687     case $lt_prog_compiler_pic_F77 in
12688      "" | " "*) ;;
12689      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12690      esac
12691 else
12692     lt_prog_compiler_pic_F77=
12693      lt_prog_compiler_can_build_shared_F77=no
12694 fi
12695
12696 fi
12697 case "$host_os" in
12698   # For platforms which do not support PIC, -DPIC is meaningless:
12699   *djgpp*)
12700     lt_prog_compiler_pic_F77=
12701     ;;
12702   *)
12703     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12704     ;;
12705 esac
12706
12707 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12708 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12709 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12710   echo $ECHO_N "(cached) $ECHO_C" >&6
12711 else
12712   lt_cv_prog_compiler_c_o_F77=no
12713    $rm -r conftest 2>/dev/null
12714    mkdir conftest
12715    cd conftest
12716    mkdir out
12717    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12718
12719    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12720    # that will create temporary files in the current directory regardless of
12721    # the output directory.  Thus, making CWD read-only will cause this test
12722    # to fail, enabling locking or at least warning the user not to do parallel
12723    # builds.
12724    chmod -w .
12725
12726    lt_compiler_flag="-o out/conftest2.$ac_objext"
12727    # Insert the option either (1) after the last *FLAGS variable, or
12728    # (2) before a word containing "conftest.", or (3) at the end.
12729    # Note that $ac_compile itself does not contain backslashes and begins
12730    # with a dollar sign (not a hyphen), so the echo should work correctly.
12731    lt_compile=`echo "$ac_compile" | $SED \
12732    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12733    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12734    -e 's:$: $lt_compiler_flag:'`
12735    (eval echo "\"\$as_me:12735: $lt_compile\"" >&5)
12736    (eval "$lt_compile" 2>out/conftest.err)
12737    ac_status=$?
12738    cat out/conftest.err >&5
12739    echo "$as_me:12739: \$? = $ac_status" >&5
12740    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12741    then
12742      # The compiler can only warn and ignore the option if not recognized
12743      # So say no if there are warnings
12744      if test ! -s out/conftest.err; then
12745        lt_cv_prog_compiler_c_o_F77=yes
12746      fi
12747    fi
12748    chmod u+w .
12749    $rm conftest* out/*
12750    rmdir out
12751    cd ..
12752    rmdir conftest
12753    $rm conftest*
12754
12755 fi
12756 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12757 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12758
12759
12760 hard_links="nottested"
12761 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12762   # do not overwrite the value of need_locks provided by the user
12763   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12764 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12765   hard_links=yes
12766   $rm conftest*
12767   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12768   touch conftest.a
12769   ln conftest.a conftest.b 2>&5 || hard_links=no
12770   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12771   echo "$as_me:$LINENO: result: $hard_links" >&5
12772 echo "${ECHO_T}$hard_links" >&6
12773   if test "$hard_links" = no; then
12774     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12775 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12776     need_locks=warn
12777   fi
12778 else
12779   need_locks=no
12780 fi
12781
12782 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12783 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12784
12785   runpath_var=
12786   allow_undefined_flag_F77=
12787   enable_shared_with_static_runtimes_F77=no
12788   archive_cmds_F77=
12789   archive_expsym_cmds_F77=
12790   old_archive_From_new_cmds_F77=
12791   old_archive_from_expsyms_cmds_F77=
12792   export_dynamic_flag_spec_F77=
12793   whole_archive_flag_spec_F77=
12794   thread_safe_flag_spec_F77=
12795   hardcode_libdir_flag_spec_F77=
12796   hardcode_libdir_flag_spec_ld_F77=
12797   hardcode_libdir_separator_F77=
12798   hardcode_direct_F77=no
12799   hardcode_minus_L_F77=no
12800   hardcode_shlibpath_var_F77=unsupported
12801   link_all_deplibs_F77=unknown
12802   hardcode_automatic_F77=no
12803   module_cmds_F77=
12804   module_expsym_cmds_F77=
12805   always_export_symbols_F77=no
12806   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12807   # include_expsyms should be a list of space-separated symbols to be *always*
12808   # included in the symbol list
12809   include_expsyms_F77=
12810   # exclude_expsyms can be an extended regexp of symbols to exclude
12811   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12812   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12813   # as well as any symbol that contains `d'.
12814   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12815   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12816   # platforms (ab)use it in PIC code, but their linkers get confused if
12817   # the symbol is explicitly referenced.  Since portable code cannot
12818   # rely on this symbol name, it's probably fine to never include it in
12819   # preloaded symbol tables.
12820   extract_expsyms_cmds=
12821
12822   case $host_os in
12823   cygwin* | mingw* | pw32*)
12824     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12825     # When not using gcc, we currently assume that we are using
12826     # Microsoft Visual C++.
12827     if test "$GCC" != yes; then
12828       with_gnu_ld=no
12829     fi
12830     ;;
12831   openbsd*)
12832     with_gnu_ld=no
12833     ;;
12834   esac
12835
12836   ld_shlibs_F77=yes
12837   if test "$with_gnu_ld" = yes; then
12838     # If archive_cmds runs LD, not CC, wlarc should be empty
12839     wlarc='${wl}'
12840
12841     # See if GNU ld supports shared libraries.
12842     case $host_os in
12843     aix3* | aix4* | aix5*)
12844       # On AIX/PPC, the GNU linker is very broken
12845       if test "$host_cpu" != ia64; then
12846         ld_shlibs_F77=no
12847         cat <<EOF 1>&2
12848
12849 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12850 *** to be unable to reliably create shared libraries on AIX.
12851 *** Therefore, libtool is disabling shared libraries support.  If you
12852 *** really care for shared libraries, you may want to modify your PATH
12853 *** so that a non-GNU linker is found, and then restart.
12854
12855 EOF
12856       fi
12857       ;;
12858
12859     amigaos*)
12860       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)'
12861       hardcode_libdir_flag_spec_F77='-L$libdir'
12862       hardcode_minus_L_F77=yes
12863
12864       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12865       # that the semantics of dynamic libraries on AmigaOS, at least up
12866       # to version 4, is to share data among multiple programs linked
12867       # with the same dynamic library.  Since this doesn't match the
12868       # behavior of shared libraries on other platforms, we can't use
12869       # them.
12870       ld_shlibs_F77=no
12871       ;;
12872
12873     beos*)
12874       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12875         allow_undefined_flag_F77=unsupported
12876         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12877         # support --undefined.  This deserves some investigation.  FIXME
12878         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12879       else
12880         ld_shlibs_F77=no
12881       fi
12882       ;;
12883
12884     cygwin* | mingw* | pw32*)
12885       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12886       # as there is no search path for DLLs.
12887       hardcode_libdir_flag_spec_F77='-L$libdir'
12888       allow_undefined_flag_F77=unsupported
12889       always_export_symbols_F77=no
12890       enable_shared_with_static_runtimes_F77=yes
12891       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12892
12893       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12894         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12895         # If the export-symbols file already is a .def file (1st line
12896         # is EXPORTS), use it as is; otherwise, prepend...
12897         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12898           cp $export_symbols $output_objdir/$soname.def;
12899         else
12900           echo EXPORTS > $output_objdir/$soname.def;
12901           cat $export_symbols >> $output_objdir/$soname.def;
12902         fi~
12903         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12904       else
12905         ld_shlibs=no
12906       fi
12907       ;;
12908
12909     netbsd*)
12910       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12911         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12912         wlarc=
12913       else
12914         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12915         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12916       fi
12917       ;;
12918
12919     solaris* | sysv5*)
12920       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12921         ld_shlibs_F77=no
12922         cat <<EOF 1>&2
12923
12924 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12925 *** create shared libraries on Solaris systems.  Therefore, libtool
12926 *** is disabling shared libraries support.  We urge you to upgrade GNU
12927 *** binutils to release 2.9.1 or newer.  Another option is to modify
12928 *** your PATH or compiler configuration so that the native linker is
12929 *** used, and then restart.
12930
12931 EOF
12932       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12933         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12934         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12935       else
12936         ld_shlibs_F77=no
12937       fi
12938       ;;
12939
12940     sunos4*)
12941       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12942       wlarc=
12943       hardcode_direct_F77=yes
12944       hardcode_shlibpath_var_F77=no
12945       ;;
12946
12947     *)
12948       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12949         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12950         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12951       else
12952         ld_shlibs_F77=no
12953       fi
12954       ;;
12955     esac
12956
12957     if test "$ld_shlibs_F77" = yes; then
12958       runpath_var=LD_RUN_PATH
12959       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12960       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12961       # ancient GNU ld didn't support --whole-archive et. al.
12962       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12963         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12964       else
12965         whole_archive_flag_spec_F77=
12966       fi
12967     fi
12968   else
12969     # PORTME fill in a description of your system's linker (not GNU ld)
12970     case $host_os in
12971     aix3*)
12972       allow_undefined_flag_F77=unsupported
12973       always_export_symbols_F77=yes
12974       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'
12975       # Note: this linker hardcodes the directories in LIBPATH if there
12976       # are no directories specified by -L.
12977       hardcode_minus_L_F77=yes
12978       if test "$GCC" = yes && test -z "$link_static_flag"; then
12979         # Neither direct hardcoding nor static linking is supported with a
12980         # broken collect2.
12981         hardcode_direct_F77=unsupported
12982       fi
12983       ;;
12984
12985     aix4* | aix5*)
12986       if test "$host_cpu" = ia64; then
12987         # On IA64, the linker does run time linking by default, so we don't
12988         # have to do anything special.
12989         aix_use_runtimelinking=no
12990         exp_sym_flag='-Bexport'
12991         no_entry_flag=""
12992       else
12993         # If we're using GNU nm, then we don't want the "-C" option.
12994         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12995         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12996           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'
12997         else
12998           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'
12999         fi
13000         aix_use_runtimelinking=no
13001
13002         # Test if we are trying to use run time linking or normal
13003         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13004         # need to do runtime linking.
13005         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13006           for ld_flag in $LDFLAGS; do
13007           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13008             aix_use_runtimelinking=yes
13009             break
13010           fi
13011           done
13012         esac
13013
13014         exp_sym_flag='-bexport'
13015         no_entry_flag='-bnoentry'
13016       fi
13017
13018       # When large executables or shared objects are built, AIX ld can
13019       # have problems creating the table of contents.  If linking a library
13020       # or program results in "error TOC overflow" add -mminimal-toc to
13021       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13022       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13023
13024       archive_cmds_F77=''
13025       hardcode_direct_F77=yes
13026       hardcode_libdir_separator_F77=':'
13027       link_all_deplibs_F77=yes
13028
13029       if test "$GCC" = yes; then
13030         case $host_os in aix4.012|aix4.012.*)
13031         # We only want to do this on AIX 4.2 and lower, the check
13032         # below for broken collect2 doesn't work under 4.3+
13033           collect2name=`${CC} -print-prog-name=collect2`
13034           if test -f "$collect2name" && \
13035            strings "$collect2name" | grep resolve_lib_name >/dev/null
13036           then
13037           # We have reworked collect2
13038           hardcode_direct_F77=yes
13039           else
13040           # We have old collect2
13041           hardcode_direct_F77=unsupported
13042           # It fails to find uninstalled libraries when the uninstalled
13043           # path is not listed in the libpath.  Setting hardcode_minus_L
13044           # to unsupported forces relinking
13045           hardcode_minus_L_F77=yes
13046           hardcode_libdir_flag_spec_F77='-L$libdir'
13047           hardcode_libdir_separator_F77=
13048           fi
13049         esac
13050         shared_flag='-shared'
13051       else
13052         # not using gcc
13053         if test "$host_cpu" = ia64; then
13054         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13055         # chokes on -Wl,-G. The following line is correct:
13056           shared_flag='-G'
13057         else
13058         if test "$aix_use_runtimelinking" = yes; then
13059             shared_flag='${wl}-G'
13060           else
13061             shared_flag='${wl}-bM:SRE'
13062         fi
13063         fi
13064       fi
13065
13066       # It seems that -bexpall does not export symbols beginning with
13067       # underscore (_), so it is better to generate a list of symbols to export.
13068       always_export_symbols_F77=yes
13069       if test "$aix_use_runtimelinking" = yes; then
13070         # Warning - without using the other runtime loading flags (-brtl),
13071         # -berok will link without error, but may produce a broken library.
13072         allow_undefined_flag_F77='-berok'
13073        # Determine the default libpath from the value encoded in an empty executable.
13074        cat >conftest.$ac_ext <<_ACEOF
13075       program main
13076
13077       end
13078 _ACEOF
13079 rm -f conftest.$ac_objext conftest$ac_exeext
13080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13081   (eval $ac_link) 2>&5
13082   ac_status=$?
13083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084   (exit $ac_status); } &&
13085          { ac_try='test -s conftest$ac_exeext'
13086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087   (eval $ac_try) 2>&5
13088   ac_status=$?
13089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090   (exit $ac_status); }; }; then
13091
13092 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13093 }'`
13094 # Check for a 64-bit object if we didn't find anything.
13095 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; }
13096 }'`; fi
13097 else
13098   echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13100
13101 fi
13102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13103 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13104
13105        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13106         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"
13107        else
13108         if test "$host_cpu" = ia64; then
13109           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13110           allow_undefined_flag_F77="-z nodefs"
13111           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"
13112         else
13113          # Determine the default libpath from the value encoded in an empty executable.
13114          cat >conftest.$ac_ext <<_ACEOF
13115       program main
13116
13117       end
13118 _ACEOF
13119 rm -f conftest.$ac_objext conftest$ac_exeext
13120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13121   (eval $ac_link) 2>&5
13122   ac_status=$?
13123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124   (exit $ac_status); } &&
13125          { ac_try='test -s conftest$ac_exeext'
13126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13127   (eval $ac_try) 2>&5
13128   ac_status=$?
13129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130   (exit $ac_status); }; }; then
13131
13132 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13133 }'`
13134 # Check for a 64-bit object if we didn't find anything.
13135 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; }
13136 }'`; fi
13137 else
13138   echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13140
13141 fi
13142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13143 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13144
13145          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13146           # Warning - without using the other run time loading flags,
13147           # -berok will link without error, but may produce a broken library.
13148           no_undefined_flag_F77=' ${wl}-bernotok'
13149           allow_undefined_flag_F77=' ${wl}-berok'
13150           # -bexpall does not export symbols beginning with underscore (_)
13151           always_export_symbols_F77=yes
13152           # Exported symbols can be pulled into shared objects from archives
13153           whole_archive_flag_spec_F77=' '
13154           archive_cmds_need_lc_F77=yes
13155           # This is similar to how AIX traditionally builds it's shared libraries.
13156           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'
13157         fi
13158       fi
13159       ;;
13160
13161     amigaos*)
13162       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)'
13163       hardcode_libdir_flag_spec_F77='-L$libdir'
13164       hardcode_minus_L_F77=yes
13165       # see comment about different semantics on the GNU ld section
13166       ld_shlibs_F77=no
13167       ;;
13168
13169     bsdi4*)
13170       export_dynamic_flag_spec_F77=-rdynamic
13171       ;;
13172
13173     cygwin* | mingw* | pw32*)
13174       # When not using gcc, we currently assume that we are using
13175       # Microsoft Visual C++.
13176       # hardcode_libdir_flag_spec is actually meaningless, as there is
13177       # no search path for DLLs.
13178       hardcode_libdir_flag_spec_F77=' '
13179       allow_undefined_flag_F77=unsupported
13180       # Tell ltmain to make .lib files, not .a files.
13181       libext=lib
13182       # Tell ltmain to make .dll files, not .so files.
13183       shrext=".dll"
13184       # FIXME: Setting linknames here is a bad hack.
13185       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13186       # The linker will automatically build a .lib file if we build a DLL.
13187       old_archive_From_new_cmds_F77='true'
13188       # FIXME: Should let the user specify the lib program.
13189       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13190       fix_srcfile_path='`cygpath -w "$srcfile"`'
13191       enable_shared_with_static_runtimes_F77=yes
13192       ;;
13193
13194     darwin* | rhapsody*)
13195     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13196       archive_cmds_need_lc_F77=no
13197       case "$host_os" in
13198       rhapsody* | darwin1.[012])
13199         allow_undefined_flag_F77='-undefined suppress'
13200         ;;
13201       *) # Darwin 1.3 on
13202         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13203         ;;
13204       esac
13205       # FIXME: Relying on posixy $() will cause problems for
13206       #        cross-compilation, but unfortunately the echo tests do not
13207       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13208       #        `"' quotes if we put them in here... so don't!
13209         lt_int_apple_cc_single_mod=no
13210         output_verbose_link_cmd='echo'
13211         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13212           lt_int_apple_cc_single_mod=yes
13213         fi
13214         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13215           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13216         else
13217         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'
13218       fi
13219       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13220       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13221         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13222           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}'
13223         else
13224           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}'
13225         fi
13226           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}'
13227       hardcode_direct_F77=no
13228       hardcode_automatic_F77=yes
13229       hardcode_shlibpath_var_F77=unsupported
13230       whole_archive_flag_spec_F77='-all_load $convenience'
13231       link_all_deplibs_F77=yes
13232     fi
13233       ;;
13234
13235     dgux*)
13236       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13237       hardcode_libdir_flag_spec_F77='-L$libdir'
13238       hardcode_shlibpath_var_F77=no
13239       ;;
13240
13241     freebsd1*)
13242       ld_shlibs_F77=no
13243       ;;
13244
13245     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13246     # support.  Future versions do this automatically, but an explicit c++rt0.o
13247     # does not break anything, and helps significantly (at the cost of a little
13248     # extra space).
13249     freebsd2.2*)
13250       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13251       hardcode_libdir_flag_spec_F77='-R$libdir'
13252       hardcode_direct_F77=yes
13253       hardcode_shlibpath_var_F77=no
13254       ;;
13255
13256     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13257     freebsd2*)
13258       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13259       hardcode_direct_F77=yes
13260       hardcode_minus_L_F77=yes
13261       hardcode_shlibpath_var_F77=no
13262       ;;
13263
13264     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13265     freebsd*)
13266       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13267       hardcode_libdir_flag_spec_F77='-R$libdir'
13268       hardcode_direct_F77=yes
13269       hardcode_shlibpath_var_F77=no
13270       ;;
13271
13272     hpux9*)
13273       if test "$GCC" = yes; then
13274         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'
13275       else
13276         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'
13277       fi
13278       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13279       hardcode_libdir_separator_F77=:
13280       hardcode_direct_F77=yes
13281
13282       # hardcode_minus_L: Not really in the search PATH,
13283       # but as the default location of the library.
13284       hardcode_minus_L_F77=yes
13285       export_dynamic_flag_spec_F77='${wl}-E'
13286       ;;
13287
13288     hpux10* | hpux11*)
13289       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13290         case "$host_cpu" in
13291         hppa*64*|ia64*)
13292           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13293           ;;
13294         *)
13295           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13296           ;;
13297         esac
13298       else
13299         case "$host_cpu" in
13300         hppa*64*|ia64*)
13301           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13302           ;;
13303         *)
13304           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13305           ;;
13306         esac
13307       fi
13308       if test "$with_gnu_ld" = no; then
13309         case "$host_cpu" in
13310         hppa*64*)
13311           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13312           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13313           hardcode_libdir_separator_F77=:
13314           hardcode_direct_F77=no
13315           hardcode_shlibpath_var_F77=no
13316           ;;
13317         ia64*)
13318           hardcode_libdir_flag_spec_F77='-L$libdir'
13319           hardcode_direct_F77=no
13320           hardcode_shlibpath_var_F77=no
13321
13322           # hardcode_minus_L: Not really in the search PATH,
13323           # but as the default location of the library.
13324           hardcode_minus_L_F77=yes
13325           ;;
13326         *)
13327           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13328           hardcode_libdir_separator_F77=:
13329           hardcode_direct_F77=yes
13330           export_dynamic_flag_spec_F77='${wl}-E'
13331
13332           # hardcode_minus_L: Not really in the search PATH,
13333           # but as the default location of the library.
13334           hardcode_minus_L_F77=yes
13335           ;;
13336         esac
13337       fi
13338       ;;
13339
13340     irix5* | irix6* | nonstopux*)
13341       if test "$GCC" = yes; then
13342         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'
13343       else
13344         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'
13345         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13346       fi
13347       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13348       hardcode_libdir_separator_F77=:
13349       link_all_deplibs_F77=yes
13350       ;;
13351
13352     netbsd*)
13353       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13354         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13355       else
13356         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13357       fi
13358       hardcode_libdir_flag_spec_F77='-R$libdir'
13359       hardcode_direct_F77=yes
13360       hardcode_shlibpath_var_F77=no
13361       ;;
13362
13363     newsos6)
13364       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13365       hardcode_direct_F77=yes
13366       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13367       hardcode_libdir_separator_F77=:
13368       hardcode_shlibpath_var_F77=no
13369       ;;
13370
13371     openbsd*)
13372       hardcode_direct_F77=yes
13373       hardcode_shlibpath_var_F77=no
13374       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13375         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13376         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13377         export_dynamic_flag_spec_F77='${wl}-E'
13378       else
13379        case $host_os in
13380          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13381            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13382            hardcode_libdir_flag_spec_F77='-R$libdir'
13383            ;;
13384          *)
13385            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13386            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13387            ;;
13388        esac
13389       fi
13390       ;;
13391
13392     os2*)
13393       hardcode_libdir_flag_spec_F77='-L$libdir'
13394       hardcode_minus_L_F77=yes
13395       allow_undefined_flag_F77=unsupported
13396       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'
13397       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13398       ;;
13399
13400     osf3*)
13401       if test "$GCC" = yes; then
13402         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13403         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'
13404       else
13405         allow_undefined_flag_F77=' -expect_unresolved \*'
13406         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'
13407       fi
13408       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13409       hardcode_libdir_separator_F77=:
13410       ;;
13411
13412     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13413       if test "$GCC" = yes; then
13414         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13415         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'
13416         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13417       else
13418         allow_undefined_flag_F77=' -expect_unresolved \*'
13419         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'
13420         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~
13421         $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'
13422
13423         # Both c and cxx compiler support -rpath directly
13424         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13425       fi
13426       hardcode_libdir_separator_F77=:
13427       ;;
13428
13429     sco3.2v5*)
13430       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13431       hardcode_shlibpath_var_F77=no
13432       export_dynamic_flag_spec_F77='${wl}-Bexport'
13433       runpath_var=LD_RUN_PATH
13434       hardcode_runpath_var=yes
13435       ;;
13436
13437     solaris*)
13438       no_undefined_flag_F77=' -z text'
13439       if test "$GCC" = yes; then
13440         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13441         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13442           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13443       else
13444         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13445         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13446         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13447       fi
13448       hardcode_libdir_flag_spec_F77='-R$libdir'
13449       hardcode_shlibpath_var_F77=no
13450       case $host_os in
13451       solaris2.[0-5] | solaris2.[0-5].*) ;;
13452       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13453         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13454       esac
13455       link_all_deplibs_F77=yes
13456       ;;
13457
13458     sunos4*)
13459       if test "x$host_vendor" = xsequent; then
13460         # Use $CC to link under sequent, because it throws in some extra .o
13461         # files that make .init and .fini sections work.
13462         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13463       else
13464         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13465       fi
13466       hardcode_libdir_flag_spec_F77='-L$libdir'
13467       hardcode_direct_F77=yes
13468       hardcode_minus_L_F77=yes
13469       hardcode_shlibpath_var_F77=no
13470       ;;
13471
13472     sysv4)
13473       case $host_vendor in
13474         sni)
13475           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13476           hardcode_direct_F77=yes # is this really true???
13477         ;;
13478         siemens)
13479           ## LD is ld it makes a PLAMLIB
13480           ## CC just makes a GrossModule.
13481           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13482           reload_cmds_F77='$CC -r -o $output$reload_objs'
13483           hardcode_direct_F77=no
13484         ;;
13485         motorola)
13486           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13487           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13488         ;;
13489       esac
13490       runpath_var='LD_RUN_PATH'
13491       hardcode_shlibpath_var_F77=no
13492       ;;
13493
13494     sysv4.3*)
13495       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13496       hardcode_shlibpath_var_F77=no
13497       export_dynamic_flag_spec_F77='-Bexport'
13498       ;;
13499
13500     sysv4*MP*)
13501       if test -d /usr/nec; then
13502         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13503         hardcode_shlibpath_var_F77=no
13504         runpath_var=LD_RUN_PATH
13505         hardcode_runpath_var=yes
13506         ld_shlibs_F77=yes
13507       fi
13508       ;;
13509
13510     sysv4.2uw2*)
13511       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13512       hardcode_direct_F77=yes
13513       hardcode_minus_L_F77=no
13514       hardcode_shlibpath_var_F77=no
13515       hardcode_runpath_var=yes
13516       runpath_var=LD_RUN_PATH
13517       ;;
13518
13519    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13520       no_undefined_flag_F77='${wl}-z ${wl}text'
13521       if test "$GCC" = yes; then
13522         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13523       else
13524         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13525       fi
13526       runpath_var='LD_RUN_PATH'
13527       hardcode_shlibpath_var_F77=no
13528       ;;
13529
13530     sysv5*)
13531       no_undefined_flag_F77=' -z text'
13532       # $CC -shared without GNU ld will not create a library from C++
13533       # object files and a static libstdc++, better avoid it by now
13534       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13535       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13536                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13537       hardcode_libdir_flag_spec_F77=
13538       hardcode_shlibpath_var_F77=no
13539       runpath_var='LD_RUN_PATH'
13540       ;;
13541
13542     uts4*)
13543       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13544       hardcode_libdir_flag_spec_F77='-L$libdir'
13545       hardcode_shlibpath_var_F77=no
13546       ;;
13547
13548     *)
13549       ld_shlibs_F77=no
13550       ;;
13551     esac
13552   fi
13553
13554 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13555 echo "${ECHO_T}$ld_shlibs_F77" >&6
13556 test "$ld_shlibs_F77" = no && can_build_shared=no
13557
13558 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13559 if test "$GCC" = yes; then
13560   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13561 fi
13562
13563 #
13564 # Do we need to explicitly link libc?
13565 #
13566 case "x$archive_cmds_need_lc_F77" in
13567 x|xyes)
13568   # Assume -lc should be added
13569   archive_cmds_need_lc_F77=yes
13570
13571   if test "$enable_shared" = yes && test "$GCC" = yes; then
13572     case $archive_cmds_F77 in
13573     *'~'*)
13574       # FIXME: we may have to deal with multi-command sequences.
13575       ;;
13576     '$CC '*)
13577       # Test whether the compiler implicitly links with -lc since on some
13578       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13579       # to ld, don't add -lc before -lgcc.
13580       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13581 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13582       $rm conftest*
13583       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13584
13585       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13586   (eval $ac_compile) 2>&5
13587   ac_status=$?
13588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589   (exit $ac_status); } 2>conftest.err; then
13590         soname=conftest
13591         lib=conftest
13592         libobjs=conftest.$ac_objext
13593         deplibs=
13594         wl=$lt_prog_compiler_wl_F77
13595         compiler_flags=-v
13596         linker_flags=-v
13597         verstring=
13598         output_objdir=.
13599         libname=conftest
13600         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13601         allow_undefined_flag_F77=
13602         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13603   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13604   ac_status=$?
13605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606   (exit $ac_status); }
13607         then
13608           archive_cmds_need_lc_F77=no
13609         else
13610           archive_cmds_need_lc_F77=yes
13611         fi
13612         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13613       else
13614         cat conftest.err 1>&5
13615       fi
13616       $rm conftest*
13617       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13618 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13619       ;;
13620     esac
13621   fi
13622   ;;
13623 esac
13624
13625 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13626 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13627 hardcode_action_F77=
13628 if test -n "$hardcode_libdir_flag_spec_F77" || \
13629    test -n "$runpath_var F77" || \
13630    test "X$hardcode_automatic_F77"="Xyes" ; then
13631
13632   # We can hardcode non-existant directories.
13633   if test "$hardcode_direct_F77" != no &&
13634      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13635      # have to relink, otherwise we might link with an installed library
13636      # when we should be linking with a yet-to-be-installed one
13637      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13638      test "$hardcode_minus_L_F77" != no; then
13639     # Linking always hardcodes the temporary library directory.
13640     hardcode_action_F77=relink
13641   else
13642     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13643     hardcode_action_F77=immediate
13644   fi
13645 else
13646   # We cannot hardcode anything, or else we can only hardcode existing
13647   # directories.
13648   hardcode_action_F77=unsupported
13649 fi
13650 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13651 echo "${ECHO_T}$hardcode_action_F77" >&6
13652
13653 if test "$hardcode_action_F77" = relink; then
13654   # Fast installation is not supported
13655   enable_fast_install=no
13656 elif test "$shlibpath_overrides_runpath" = yes ||
13657      test "$enable_shared" = no; then
13658   # Fast installation is not necessary
13659   enable_fast_install=needless
13660 fi
13661
13662 striplib=
13663 old_striplib=
13664 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13665 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13666 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13667   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13668   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13669   echo "$as_me:$LINENO: result: yes" >&5
13670 echo "${ECHO_T}yes" >&6
13671 else
13672 # FIXME - insert some real tests, host_os isn't really good enough
13673   case $host_os in
13674    darwin*)
13675        if test -n "$STRIP" ; then
13676          striplib="$STRIP -x"
13677          echo "$as_me:$LINENO: result: yes" >&5
13678 echo "${ECHO_T}yes" >&6
13679        else
13680   echo "$as_me:$LINENO: result: no" >&5
13681 echo "${ECHO_T}no" >&6
13682 fi
13683        ;;
13684    *)
13685   echo "$as_me:$LINENO: result: no" >&5
13686 echo "${ECHO_T}no" >&6
13687     ;;
13688   esac
13689 fi
13690
13691 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13692 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13693 library_names_spec=
13694 libname_spec='lib$name'
13695 soname_spec=
13696 shrext=".so"
13697 postinstall_cmds=
13698 postuninstall_cmds=
13699 finish_cmds=
13700 finish_eval=
13701 shlibpath_var=
13702 shlibpath_overrides_runpath=unknown
13703 version_type=none
13704 dynamic_linker="$host_os ld.so"
13705 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13706 if test "$GCC" = yes; then
13707   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13708   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13709     # if the path contains ";" then we assume it to be the separator
13710     # otherwise default to the standard path separator (i.e. ":") - it is
13711     # assumed that no part of a normal pathname contains ";" but that should
13712     # okay in the real world where ";" in dirpaths is itself problematic.
13713     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13714   else
13715     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13716   fi
13717 else
13718   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13719 fi
13720 need_lib_prefix=unknown
13721 hardcode_into_libs=no
13722
13723 # when you set need_version to no, make sure it does not cause -set_version
13724 # flags to be left without arguments
13725 need_version=unknown
13726
13727 case $host_os in
13728 aix3*)
13729   version_type=linux
13730   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13731   shlibpath_var=LIBPATH
13732
13733   # AIX 3 has no versioning support, so we append a major version to the name.
13734   soname_spec='${libname}${release}${shared_ext}$major'
13735   ;;
13736
13737 aix4* | aix5*)
13738   version_type=linux
13739   need_lib_prefix=no
13740   need_version=no
13741   hardcode_into_libs=yes
13742   if test "$host_cpu" = ia64; then
13743     # AIX 5 supports IA64
13744     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13745     shlibpath_var=LD_LIBRARY_PATH
13746   else
13747     # With GCC up to 2.95.x, collect2 would create an import file
13748     # for dependence libraries.  The import file would start with
13749     # the line `#! .'.  This would cause the generated library to
13750     # depend on `.', always an invalid library.  This was fixed in
13751     # development snapshots of GCC prior to 3.0.
13752     case $host_os in
13753       aix4 | aix4.[01] | aix4.[01].*)
13754       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13755            echo ' yes '
13756            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13757         :
13758       else
13759         can_build_shared=no
13760       fi
13761       ;;
13762     esac
13763     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13764     # soname into executable. Probably we can add versioning support to
13765     # collect2, so additional links can be useful in future.
13766     if test "$aix_use_runtimelinking" = yes; then
13767       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13768       # instead of lib<name>.a to let people know that these are not
13769       # typical AIX shared libraries.
13770       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13771     else
13772       # We preserve .a as extension for shared libraries through AIX4.2
13773       # and later when we are not doing run time linking.
13774       library_names_spec='${libname}${release}.a $libname.a'
13775       soname_spec='${libname}${release}${shared_ext}$major'
13776     fi
13777     shlibpath_var=LIBPATH
13778   fi
13779   ;;
13780
13781 amigaos*)
13782   library_names_spec='$libname.ixlibrary $libname.a'
13783   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13784   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'
13785   ;;
13786
13787 beos*)
13788   library_names_spec='${libname}${shared_ext}'
13789   dynamic_linker="$host_os ld.so"
13790   shlibpath_var=LIBRARY_PATH
13791   ;;
13792
13793 bsdi4*)
13794   version_type=linux
13795   need_version=no
13796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13797   soname_spec='${libname}${release}${shared_ext}$major'
13798   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13799   shlibpath_var=LD_LIBRARY_PATH
13800   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13801   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13802   # the default ld.so.conf also contains /usr/contrib/lib and
13803   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13804   # libtool to hard-code these into programs
13805   ;;
13806
13807 cygwin* | mingw* | pw32*)
13808   version_type=windows
13809   shrext=".dll"
13810   need_version=no
13811   need_lib_prefix=no
13812
13813   case $GCC,$host_os in
13814   yes,cygwin* | yes,mingw* | yes,pw32*)
13815     library_names_spec='$libname.dll.a'
13816     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13817     postinstall_cmds='base_file=`basename \${file}`~
13818       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13819       dldir=$destdir/`dirname \$dlpath`~
13820       test -d \$dldir || mkdir -p \$dldir~
13821       $install_prog $dir/$dlname \$dldir/$dlname'
13822     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13823       dlpath=$dir/\$dldll~
13824        $rm \$dlpath'
13825     shlibpath_overrides_runpath=yes
13826
13827     case $host_os in
13828     cygwin*)
13829       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13830       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13831       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13832       ;;
13833     mingw*)
13834       # MinGW DLLs use traditional 'lib' prefix
13835       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13836       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13837       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13838         # It is most probably a Windows format PATH printed by
13839         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13840         # path with ; separators, and with drive letters. We can handle the
13841         # drive letters (cygwin fileutils understands them), so leave them,
13842         # especially as we might pass files found there to a mingw objdump,
13843         # which wouldn't understand a cygwinified path. Ahh.
13844         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13845       else
13846         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13847       fi
13848       ;;
13849     pw32*)
13850       # pw32 DLLs use 'pw' prefix rather than 'lib'
13851       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13852       ;;
13853     esac
13854     ;;
13855
13856   *)
13857     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13858     ;;
13859   esac
13860   dynamic_linker='Win32 ld.exe'
13861   # FIXME: first we should search . and the directory the executable is in
13862   shlibpath_var=PATH
13863   ;;
13864
13865 darwin* | rhapsody*)
13866   dynamic_linker="$host_os dyld"
13867   version_type=darwin
13868   need_lib_prefix=no
13869   need_version=no
13870   # FIXME: Relying on posixy $() will cause problems for
13871   #        cross-compilation, but unfortunately the echo tests do not
13872   #        yet detect zsh echo's removal of \ escapes.
13873   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13874   soname_spec='${libname}${release}${major}$shared_ext'
13875   shlibpath_overrides_runpath=yes
13876   shlibpath_var=DYLD_LIBRARY_PATH
13877   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13878   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13879   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13880   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"`
13881   fi
13882   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13883   ;;
13884
13885 dgux*)
13886   version_type=linux
13887   need_lib_prefix=no
13888   need_version=no
13889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13890   soname_spec='${libname}${release}${shared_ext}$major'
13891   shlibpath_var=LD_LIBRARY_PATH
13892   ;;
13893
13894 freebsd1*)
13895   dynamic_linker=no
13896   ;;
13897
13898 freebsd*)
13899   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13900   version_type=freebsd-$objformat
13901   case $version_type in
13902     freebsd-elf*)
13903       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13904       need_version=no
13905       need_lib_prefix=no
13906       ;;
13907     freebsd-*)
13908       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13909       need_version=yes
13910       ;;
13911   esac
13912   shlibpath_var=LD_LIBRARY_PATH
13913   case $host_os in
13914   freebsd2*)
13915     shlibpath_overrides_runpath=yes
13916     ;;
13917   freebsd3.01* | freebsdelf3.01*)
13918     shlibpath_overrides_runpath=yes
13919     hardcode_into_libs=yes
13920     ;;
13921   *) # from 3.2 on
13922     shlibpath_overrides_runpath=no
13923     hardcode_into_libs=yes
13924     ;;
13925   esac
13926   ;;
13927
13928 gnu*)
13929   version_type=linux
13930   need_lib_prefix=no
13931   need_version=no
13932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13933   soname_spec='${libname}${release}${shared_ext}$major'
13934   shlibpath_var=LD_LIBRARY_PATH
13935   hardcode_into_libs=yes
13936   ;;
13937
13938 hpux9* | hpux10* | hpux11*)
13939   # Give a soname corresponding to the major version so that dld.sl refuses to
13940   # link against other versions.
13941   version_type=sunos
13942   need_lib_prefix=no
13943   need_version=no
13944   case "$host_cpu" in
13945   ia64*)
13946     shrext='.so'
13947     hardcode_into_libs=yes
13948     dynamic_linker="$host_os dld.so"
13949     shlibpath_var=LD_LIBRARY_PATH
13950     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13952     soname_spec='${libname}${release}${shared_ext}$major'
13953     if test "X$HPUX_IA64_MODE" = X32; then
13954       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13955     else
13956       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13957     fi
13958     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13959     ;;
13960    hppa*64*)
13961      shrext='.sl'
13962      hardcode_into_libs=yes
13963      dynamic_linker="$host_os dld.sl"
13964      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13965      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13966      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13967      soname_spec='${libname}${release}${shared_ext}$major'
13968      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13969      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13970      ;;
13971    *)
13972     shrext='.sl'
13973     dynamic_linker="$host_os dld.sl"
13974     shlibpath_var=SHLIB_PATH
13975     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13976     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13977     soname_spec='${libname}${release}${shared_ext}$major'
13978     ;;
13979   esac
13980   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13981   postinstall_cmds='chmod 555 $lib'
13982   ;;
13983
13984 irix5* | irix6* | nonstopux*)
13985   case $host_os in
13986     nonstopux*) version_type=nonstopux ;;
13987     *)
13988         if test "$lt_cv_prog_gnu_ld" = yes; then
13989                 version_type=linux
13990         else
13991                 version_type=irix
13992         fi ;;
13993   esac
13994   need_lib_prefix=no
13995   need_version=no
13996   soname_spec='${libname}${release}${shared_ext}$major'
13997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13998   case $host_os in
13999   irix5* | nonstopux*)
14000     libsuff= shlibsuff=
14001     ;;
14002   *)
14003     case $LD in # libtool.m4 will add one of these switches to LD
14004     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14005       libsuff= shlibsuff= libmagic=32-bit;;
14006     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14007       libsuff=32 shlibsuff=N32 libmagic=N32;;
14008     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14009       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14010     *) libsuff= shlibsuff= libmagic=never-match;;
14011     esac
14012     ;;
14013   esac
14014   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14015   shlibpath_overrides_runpath=no
14016   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14017   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14018   hardcode_into_libs=yes
14019   ;;
14020
14021 # No shared lib support for Linux oldld, aout, or coff.
14022 linux*oldld* | linux*aout* | linux*coff*)
14023   dynamic_linker=no
14024   ;;
14025
14026 # This must be Linux ELF.
14027 linux*)
14028   version_type=linux
14029   need_lib_prefix=no
14030   need_version=no
14031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14032   soname_spec='${libname}${release}${shared_ext}$major'
14033   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14034   shlibpath_var=LD_LIBRARY_PATH
14035   shlibpath_overrides_runpath=no
14036   # This implies no fast_install, which is unacceptable.
14037   # Some rework will be needed to allow for fast_install
14038   # before this can be enabled.
14039   hardcode_into_libs=yes
14040
14041   # We used to test for /lib/ld.so.1 and disable shared libraries on
14042   # powerpc, because MkLinux only supported shared libraries with the
14043   # GNU dynamic linker.  Since this was broken with cross compilers,
14044   # most powerpc-linux boxes support dynamic linking these days and
14045   # people can always --disable-shared, the test was removed, and we
14046   # assume the GNU/Linux dynamic linker is in use.
14047   dynamic_linker='GNU/Linux ld.so'
14048   ;;
14049
14050 netbsd*)
14051   version_type=sunos
14052   need_lib_prefix=no
14053   need_version=no
14054   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14055     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14056     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14057     dynamic_linker='NetBSD (a.out) ld.so'
14058   else
14059     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14060     soname_spec='${libname}${release}${shared_ext}$major'
14061     dynamic_linker='NetBSD ld.elf_so'
14062   fi
14063   shlibpath_var=LD_LIBRARY_PATH
14064   shlibpath_overrides_runpath=yes
14065   hardcode_into_libs=yes
14066   ;;
14067
14068 newsos6)
14069   version_type=linux
14070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14071   shlibpath_var=LD_LIBRARY_PATH
14072   shlibpath_overrides_runpath=yes
14073   ;;
14074
14075 nto-qnx)
14076   version_type=linux
14077   need_lib_prefix=no
14078   need_version=no
14079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14080   soname_spec='${libname}${release}${shared_ext}$major'
14081   shlibpath_var=LD_LIBRARY_PATH
14082   shlibpath_overrides_runpath=yes
14083   ;;
14084
14085 openbsd*)
14086   version_type=sunos
14087   need_lib_prefix=no
14088   need_version=no
14089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14090   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14091   shlibpath_var=LD_LIBRARY_PATH
14092   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14093     case $host_os in
14094       openbsd2.[89] | openbsd2.[89].*)
14095         shlibpath_overrides_runpath=no
14096         ;;
14097       *)
14098         shlibpath_overrides_runpath=yes
14099         ;;
14100       esac
14101   else
14102     shlibpath_overrides_runpath=yes
14103   fi
14104   ;;
14105
14106 os2*)
14107   libname_spec='$name'
14108   shrext=".dll"
14109   need_lib_prefix=no
14110   library_names_spec='$libname${shared_ext} $libname.a'
14111   dynamic_linker='OS/2 ld.exe'
14112   shlibpath_var=LIBPATH
14113   ;;
14114
14115 osf3* | osf4* | osf5*)
14116   version_type=osf
14117   need_lib_prefix=no
14118   need_version=no
14119   soname_spec='${libname}${release}${shared_ext}$major'
14120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121   shlibpath_var=LD_LIBRARY_PATH
14122   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14123   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14124   ;;
14125
14126 sco3.2v5*)
14127   version_type=osf
14128   soname_spec='${libname}${release}${shared_ext}$major'
14129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14130   shlibpath_var=LD_LIBRARY_PATH
14131   ;;
14132
14133 solaris*)
14134   version_type=linux
14135   need_lib_prefix=no
14136   need_version=no
14137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138   soname_spec='${libname}${release}${shared_ext}$major'
14139   shlibpath_var=LD_LIBRARY_PATH
14140   shlibpath_overrides_runpath=yes
14141   hardcode_into_libs=yes
14142   # ldd complains unless libraries are executable
14143   postinstall_cmds='chmod +x $lib'
14144   ;;
14145
14146 sunos4*)
14147   version_type=sunos
14148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14149   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14150   shlibpath_var=LD_LIBRARY_PATH
14151   shlibpath_overrides_runpath=yes
14152   if test "$with_gnu_ld" = yes; then
14153     need_lib_prefix=no
14154   fi
14155   need_version=yes
14156   ;;
14157
14158 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14159   version_type=linux
14160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14161   soname_spec='${libname}${release}${shared_ext}$major'
14162   shlibpath_var=LD_LIBRARY_PATH
14163   case $host_vendor in
14164     sni)
14165       shlibpath_overrides_runpath=no
14166       need_lib_prefix=no
14167       export_dynamic_flag_spec='${wl}-Blargedynsym'
14168       runpath_var=LD_RUN_PATH
14169       ;;
14170     siemens)
14171       need_lib_prefix=no
14172       ;;
14173     motorola)
14174       need_lib_prefix=no
14175       need_version=no
14176       shlibpath_overrides_runpath=no
14177       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14178       ;;
14179   esac
14180   ;;
14181
14182 sysv4*MP*)
14183   if test -d /usr/nec ;then
14184     version_type=linux
14185     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14186     soname_spec='$libname${shared_ext}.$major'
14187     shlibpath_var=LD_LIBRARY_PATH
14188   fi
14189   ;;
14190
14191 uts4*)
14192   version_type=linux
14193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14194   soname_spec='${libname}${release}${shared_ext}$major'
14195   shlibpath_var=LD_LIBRARY_PATH
14196   ;;
14197
14198 *)
14199   dynamic_linker=no
14200   ;;
14201 esac
14202 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14203 echo "${ECHO_T}$dynamic_linker" >&6
14204 test "$dynamic_linker" = no && can_build_shared=no
14205
14206
14207 # The else clause should only fire when bootstrapping the
14208 # libtool distribution, otherwise you forgot to ship ltmain.sh
14209 # with your package, and you will get complaints that there are
14210 # no rules to generate ltmain.sh.
14211 if test -f "$ltmain"; then
14212   # See if we are running on zsh, and set the options which allow our commands through
14213   # without removal of \ escapes.
14214   if test -n "${ZSH_VERSION+set}" ; then
14215     setopt NO_GLOB_SUBST
14216   fi
14217   # Now quote all the things that may contain metacharacters while being
14218   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14219   # variables and quote the copies for generation of the libtool script.
14220   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14221     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14222     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14223     deplibs_check_method reload_flag reload_cmds need_locks \
14224     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14225     lt_cv_sys_global_symbol_to_c_name_address \
14226     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14227     old_postinstall_cmds old_postuninstall_cmds \
14228     compiler_F77 \
14229     CC_F77 \
14230     LD_F77 \
14231     lt_prog_compiler_wl_F77 \
14232     lt_prog_compiler_pic_F77 \
14233     lt_prog_compiler_static_F77 \
14234     lt_prog_compiler_no_builtin_flag_F77 \
14235     export_dynamic_flag_spec_F77 \
14236     thread_safe_flag_spec_F77 \
14237     whole_archive_flag_spec_F77 \
14238     enable_shared_with_static_runtimes_F77 \
14239     old_archive_cmds_F77 \
14240     old_archive_from_new_cmds_F77 \
14241     predep_objects_F77 \
14242     postdep_objects_F77 \
14243     predeps_F77 \
14244     postdeps_F77 \
14245     compiler_lib_search_path_F77 \
14246     archive_cmds_F77 \
14247     archive_expsym_cmds_F77 \
14248     postinstall_cmds_F77 \
14249     postuninstall_cmds_F77 \
14250     old_archive_from_expsyms_cmds_F77 \
14251     allow_undefined_flag_F77 \
14252     no_undefined_flag_F77 \
14253     export_symbols_cmds_F77 \
14254     hardcode_libdir_flag_spec_F77 \
14255     hardcode_libdir_flag_spec_ld_F77 \
14256     hardcode_libdir_separator_F77 \
14257     hardcode_automatic_F77 \
14258     module_cmds_F77 \
14259     module_expsym_cmds_F77 \
14260     lt_cv_prog_compiler_c_o_F77 \
14261     exclude_expsyms_F77 \
14262     include_expsyms_F77; do
14263
14264     case $var in
14265     old_archive_cmds_F77 | \
14266     old_archive_from_new_cmds_F77 | \
14267     archive_cmds_F77 | \
14268     archive_expsym_cmds_F77 | \
14269     module_cmds_F77 | \
14270     module_expsym_cmds_F77 | \
14271     old_archive_from_expsyms_cmds_F77 | \
14272     export_symbols_cmds_F77 | \
14273     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14274     postinstall_cmds | postuninstall_cmds | \
14275     old_postinstall_cmds | old_postuninstall_cmds | \
14276     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14277       # Double-quote double-evaled strings.
14278       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14279       ;;
14280     *)
14281       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14282       ;;
14283     esac
14284   done
14285
14286   case $lt_echo in
14287   *'\$0 --fallback-echo"')
14288     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14289     ;;
14290   esac
14291
14292 cfgfile="$ofile"
14293
14294   cat <<__EOF__ >> "$cfgfile"
14295 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14296
14297 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14298
14299 # Shell to use when invoking shell scripts.
14300 SHELL=$lt_SHELL
14301
14302 # Whether or not to build shared libraries.
14303 build_libtool_libs=$enable_shared
14304
14305 # Whether or not to build static libraries.
14306 build_old_libs=$enable_static
14307
14308 # Whether or not to add -lc for building shared libraries.
14309 build_libtool_need_lc=$archive_cmds_need_lc_F77
14310
14311 # Whether or not to disallow shared libs when runtime libs are static
14312 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14313
14314 # Whether or not to optimize for fast installation.
14315 fast_install=$enable_fast_install
14316
14317 # The host system.
14318 host_alias=$host_alias
14319 host=$host
14320
14321 # An echo program that does not interpret backslashes.
14322 echo=$lt_echo
14323
14324 # The archiver.
14325 AR=$lt_AR
14326 AR_FLAGS=$lt_AR_FLAGS
14327
14328 # A C compiler.
14329 LTCC=$lt_LTCC
14330
14331 # A language-specific compiler.
14332 CC=$lt_compiler_F77
14333
14334 # Is the compiler the GNU C compiler?
14335 with_gcc=$GCC_F77
14336
14337 # An ERE matcher.
14338 EGREP=$lt_EGREP
14339
14340 # The linker used to build libraries.
14341 LD=$lt_LD_F77
14342
14343 # Whether we need hard or soft links.
14344 LN_S=$lt_LN_S
14345
14346 # A BSD-compatible nm program.
14347 NM=$lt_NM
14348
14349 # A symbol stripping program
14350 STRIP=$STRIP
14351
14352 # Used to examine libraries when file_magic_cmd begins "file"
14353 MAGIC_CMD=$MAGIC_CMD
14354
14355 # Used on cygwin: DLL creation program.
14356 DLLTOOL="$DLLTOOL"
14357
14358 # Used on cygwin: object dumper.
14359 OBJDUMP="$OBJDUMP"
14360
14361 # Used on cygwin: assembler.
14362 AS="$AS"
14363
14364 # The name of the directory that contains temporary libtool files.
14365 objdir=$objdir
14366
14367 # How to create reloadable object files.
14368 reload_flag=$lt_reload_flag
14369 reload_cmds=$lt_reload_cmds
14370
14371 # How to pass a linker flag through the compiler.
14372 wl=$lt_lt_prog_compiler_wl_F77
14373
14374 # Object file suffix (normally "o").
14375 objext="$ac_objext"
14376
14377 # Old archive suffix (normally "a").
14378 libext="$libext"
14379
14380 # Shared library suffix (normally ".so").
14381 shrext='$shrext'
14382
14383 # Executable file suffix (normally "").
14384 exeext="$exeext"
14385
14386 # Additional compiler flags for building library objects.
14387 pic_flag=$lt_lt_prog_compiler_pic_F77
14388 pic_mode=$pic_mode
14389
14390 # What is the maximum length of a command?
14391 max_cmd_len=$lt_cv_sys_max_cmd_len
14392
14393 # Does compiler simultaneously support -c and -o options?
14394 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14395
14396 # Must we lock files when doing compilation ?
14397 need_locks=$lt_need_locks
14398
14399 # Do we need the lib prefix for modules?
14400 need_lib_prefix=$need_lib_prefix
14401
14402 # Do we need a version for libraries?
14403 need_version=$need_version
14404
14405 # Whether dlopen is supported.
14406 dlopen_support=$enable_dlopen
14407
14408 # Whether dlopen of programs is supported.
14409 dlopen_self=$enable_dlopen_self
14410
14411 # Whether dlopen of statically linked programs is supported.
14412 dlopen_self_static=$enable_dlopen_self_static
14413
14414 # Compiler flag to prevent dynamic linking.
14415 link_static_flag=$lt_lt_prog_compiler_static_F77
14416
14417 # Compiler flag to turn off builtin functions.
14418 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14419
14420 # Compiler flag to allow reflexive dlopens.
14421 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14422
14423 # Compiler flag to generate shared objects directly from archives.
14424 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14425
14426 # Compiler flag to generate thread-safe objects.
14427 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14428
14429 # Library versioning type.
14430 version_type=$version_type
14431
14432 # Format of library name prefix.
14433 libname_spec=$lt_libname_spec
14434
14435 # List of archive names.  First name is the real one, the rest are links.
14436 # The last name is the one that the linker finds with -lNAME.
14437 library_names_spec=$lt_library_names_spec
14438
14439 # The coded name of the library, if different from the real name.
14440 soname_spec=$lt_soname_spec
14441
14442 # Commands used to build and install an old-style archive.
14443 RANLIB=$lt_RANLIB
14444 old_archive_cmds=$lt_old_archive_cmds_F77
14445 old_postinstall_cmds=$lt_old_postinstall_cmds
14446 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14447
14448 # Create an old-style archive from a shared archive.
14449 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14450
14451 # Create a temporary old-style archive to link instead of a shared archive.
14452 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14453
14454 # Commands used to build and install a shared archive.
14455 archive_cmds=$lt_archive_cmds_F77
14456 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14457 postinstall_cmds=$lt_postinstall_cmds
14458 postuninstall_cmds=$lt_postuninstall_cmds
14459
14460 # Commands used to build a loadable module (assumed same as above if empty)
14461 module_cmds=$lt_module_cmds_F77
14462 module_expsym_cmds=$lt_module_expsym_cmds_F77
14463
14464 # Commands to strip libraries.
14465 old_striplib=$lt_old_striplib
14466 striplib=$lt_striplib
14467
14468 # Dependencies to place before the objects being linked to create a
14469 # shared library.
14470 predep_objects=$lt_predep_objects_F77
14471
14472 # Dependencies to place after the objects being linked to create a
14473 # shared library.
14474 postdep_objects=$lt_postdep_objects_F77
14475
14476 # Dependencies to place before the objects being linked to create a
14477 # shared library.
14478 predeps=$lt_predeps_F77
14479
14480 # Dependencies to place after the objects being linked to create a
14481 # shared library.
14482 postdeps=$lt_postdeps_F77
14483
14484 # The library search path used internally by the compiler when linking
14485 # a shared library.
14486 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14487
14488 # Method to check whether dependent libraries are shared objects.
14489 deplibs_check_method=$lt_deplibs_check_method
14490
14491 # Command to use when deplibs_check_method == file_magic.
14492 file_magic_cmd=$lt_file_magic_cmd
14493
14494 # Flag that allows shared libraries with undefined symbols to be built.
14495 allow_undefined_flag=$lt_allow_undefined_flag_F77
14496
14497 # Flag that forces no undefined symbols.
14498 no_undefined_flag=$lt_no_undefined_flag_F77
14499
14500 # Commands used to finish a libtool library installation in a directory.
14501 finish_cmds=$lt_finish_cmds
14502
14503 # Same as above, but a single script fragment to be evaled but not shown.
14504 finish_eval=$lt_finish_eval
14505
14506 # Take the output of nm and produce a listing of raw symbols and C names.
14507 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14508
14509 # Transform the output of nm in a proper C declaration
14510 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14511
14512 # Transform the output of nm in a C name address pair
14513 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14514
14515 # This is the shared library runtime path variable.
14516 runpath_var=$runpath_var
14517
14518 # This is the shared library path variable.
14519 shlibpath_var=$shlibpath_var
14520
14521 # Is shlibpath searched before the hard-coded library search path?
14522 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14523
14524 # How to hardcode a shared library path into an executable.
14525 hardcode_action=$hardcode_action_F77
14526
14527 # Whether we should hardcode library paths into libraries.
14528 hardcode_into_libs=$hardcode_into_libs
14529
14530 # Flag to hardcode \$libdir into a binary during linking.
14531 # This must work even if \$libdir does not exist.
14532 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14533
14534 # If ld is used when linking, flag to hardcode \$libdir into
14535 # a binary during linking. This must work even if \$libdir does
14536 # not exist.
14537 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14538
14539 # Whether we need a single -rpath flag with a separated argument.
14540 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14541
14542 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14543 # resulting binary.
14544 hardcode_direct=$hardcode_direct_F77
14545
14546 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14547 # resulting binary.
14548 hardcode_minus_L=$hardcode_minus_L_F77
14549
14550 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14551 # the resulting binary.
14552 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14553
14554 # Set to yes if building a shared library automatically hardcodes DIR into the library
14555 # and all subsequent libraries and executables linked against it.
14556 hardcode_automatic=$hardcode_automatic_F77
14557
14558 # Variables whose values should be saved in libtool wrapper scripts and
14559 # restored at relink time.
14560 variables_saved_for_relink="$variables_saved_for_relink"
14561
14562 # Whether libtool must link a program against all its dependency libraries.
14563 link_all_deplibs=$link_all_deplibs_F77
14564
14565 # Compile-time system search path for libraries
14566 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14567
14568 # Run-time system search path for libraries
14569 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14570
14571 # Fix the shell variable \$srcfile for the compiler.
14572 fix_srcfile_path="$fix_srcfile_path_F77"
14573
14574 # Set to yes if exported symbols are required.
14575 always_export_symbols=$always_export_symbols_F77
14576
14577 # The commands to list exported symbols.
14578 export_symbols_cmds=$lt_export_symbols_cmds_F77
14579
14580 # The commands to extract the exported symbol list from a shared archive.
14581 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14582
14583 # Symbols that should not be listed in the preloaded symbols.
14584 exclude_expsyms=$lt_exclude_expsyms_F77
14585
14586 # Symbols that must always be exported.
14587 include_expsyms=$lt_include_expsyms_F77
14588
14589 # ### END LIBTOOL TAG CONFIG: $tagname
14590
14591 __EOF__
14592
14593
14594 else
14595   # If there is no Makefile yet, we rely on a make rule to execute
14596   # `config.status --recheck' to rerun these tests and create the
14597   # libtool script then.
14598   test -f Makefile && make "$ltmain"
14599 fi
14600
14601
14602 ac_ext=c
14603 ac_cpp='$CPP $CPPFLAGS'
14604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14607
14608 CC="$lt_save_CC"
14609
14610         else
14611           tagname=""
14612         fi
14613         ;;
14614
14615       GCJ)
14616         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14617
14618
14619
14620 # Source file extension for Java test sources.
14621 ac_ext=java
14622
14623 # Object file extension for compiled Java test sources.
14624 objext=o
14625 objext_GCJ=$objext
14626
14627 # Code to be used in simple compile tests
14628 lt_simple_compile_test_code="class foo {}\n"
14629
14630 # Code to be used in simple link tests
14631 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14632
14633 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14634
14635 # If no C compiler was specified, use CC.
14636 LTCC=${LTCC-"$CC"}
14637
14638 # Allow CC to be a program name with arguments.
14639 compiler=$CC
14640
14641
14642 # Allow CC to be a program name with arguments.
14643 lt_save_CC="$CC"
14644 CC=${GCJ-"gcj"}
14645 compiler=$CC
14646 compiler_GCJ=$CC
14647
14648 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14649 archive_cmds_need_lc_GCJ=no
14650
14651
14652 lt_prog_compiler_no_builtin_flag_GCJ=
14653
14654 if test "$GCC" = yes; then
14655   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14656
14657   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14658 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14659 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14660   echo $ECHO_N "(cached) $ECHO_C" >&6
14661 else
14662   lt_cv_prog_compiler_rtti_exceptions=no
14663   ac_outfile=conftest.$ac_objext
14664    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14665    lt_compiler_flag="-fno-rtti -fno-exceptions"
14666    # Insert the option either (1) after the last *FLAGS variable, or
14667    # (2) before a word containing "conftest.", or (3) at the end.
14668    # Note that $ac_compile itself does not contain backslashes and begins
14669    # with a dollar sign (not a hyphen), so the echo should work correctly.
14670    # The option is referenced via a variable to avoid confusing sed.
14671    lt_compile=`echo "$ac_compile" | $SED \
14672    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14673    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14674    -e 's:$: $lt_compiler_flag:'`
14675    (eval echo "\"\$as_me:14675: $lt_compile\"" >&5)
14676    (eval "$lt_compile" 2>conftest.err)
14677    ac_status=$?
14678    cat conftest.err >&5
14679    echo "$as_me:14679: \$? = $ac_status" >&5
14680    if (exit $ac_status) && test -s "$ac_outfile"; then
14681      # The compiler can only warn and ignore the option if not recognized
14682      # So say no if there are warnings
14683      if test ! -s conftest.err; then
14684        lt_cv_prog_compiler_rtti_exceptions=yes
14685      fi
14686    fi
14687    $rm conftest*
14688
14689 fi
14690 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14691 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14692
14693 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14694     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14695 else
14696     :
14697 fi
14698
14699 fi
14700
14701 lt_prog_compiler_wl_GCJ=
14702 lt_prog_compiler_pic_GCJ=
14703 lt_prog_compiler_static_GCJ=
14704
14705 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14706 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14707
14708   if test "$GCC" = yes; then
14709     lt_prog_compiler_wl_GCJ='-Wl,'
14710     lt_prog_compiler_static_GCJ='-static'
14711
14712     case $host_os in
14713       aix*)
14714       # All AIX code is PIC.
14715       if test "$host_cpu" = ia64; then
14716         # AIX 5 now supports IA64 processor
14717         lt_prog_compiler_static_GCJ='-Bstatic'
14718       fi
14719       ;;
14720
14721     amigaos*)
14722       # FIXME: we need at least 68020 code to build shared libraries, but
14723       # adding the `-m68020' flag to GCC prevents building anything better,
14724       # like `-m68040'.
14725       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14726       ;;
14727
14728     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14729       # PIC is the default for these OSes.
14730       ;;
14731
14732     mingw* | pw32* | os2*)
14733       # This hack is so that the source file can tell whether it is being
14734       # built for inclusion in a dll (and should export symbols for example).
14735       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14736       ;;
14737
14738     darwin* | rhapsody*)
14739       # PIC is the default on this platform
14740       # Common symbols not allowed in MH_DYLIB files
14741       lt_prog_compiler_pic_GCJ='-fno-common'
14742       ;;
14743
14744     msdosdjgpp*)
14745       # Just because we use GCC doesn't mean we suddenly get shared libraries
14746       # on systems that don't support them.
14747       lt_prog_compiler_can_build_shared_GCJ=no
14748       enable_shared=no
14749       ;;
14750
14751     sysv4*MP*)
14752       if test -d /usr/nec; then
14753         lt_prog_compiler_pic_GCJ=-Kconform_pic
14754       fi
14755       ;;
14756
14757     hpux*)
14758       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14759       # not for PA HP-UX.
14760       case "$host_cpu" in
14761       hppa*64*|ia64*)
14762         # +Z the default
14763         ;;
14764       *)
14765         lt_prog_compiler_pic_GCJ='-fPIC'
14766         ;;
14767       esac
14768       ;;
14769
14770     *)
14771       lt_prog_compiler_pic_GCJ='-fPIC'
14772       ;;
14773     esac
14774   else
14775     # PORTME Check for flag to pass linker flags through the system compiler.
14776     case $host_os in
14777     aix*)
14778       lt_prog_compiler_wl_GCJ='-Wl,'
14779       if test "$host_cpu" = ia64; then
14780         # AIX 5 now supports IA64 processor
14781         lt_prog_compiler_static_GCJ='-Bstatic'
14782       else
14783         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14784       fi
14785       ;;
14786
14787     mingw* | pw32* | os2*)
14788       # This hack is so that the source file can tell whether it is being
14789       # built for inclusion in a dll (and should export symbols for example).
14790       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14791       ;;
14792
14793     hpux9* | hpux10* | hpux11*)
14794       lt_prog_compiler_wl_GCJ='-Wl,'
14795       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14796       # not for PA HP-UX.
14797       case "$host_cpu" in
14798       hppa*64*|ia64*)
14799         # +Z the default
14800         ;;
14801       *)
14802         lt_prog_compiler_pic_GCJ='+Z'
14803         ;;
14804       esac
14805       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14806       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14807       ;;
14808
14809     irix5* | irix6* | nonstopux*)
14810       lt_prog_compiler_wl_GCJ='-Wl,'
14811       # PIC (with -KPIC) is the default.
14812       lt_prog_compiler_static_GCJ='-non_shared'
14813       ;;
14814
14815     newsos6)
14816       lt_prog_compiler_pic_GCJ='-KPIC'
14817       lt_prog_compiler_static_GCJ='-Bstatic'
14818       ;;
14819
14820     linux*)
14821       case $CC in
14822       icc|ecc)
14823         lt_prog_compiler_wl_GCJ='-Wl,'
14824         lt_prog_compiler_pic_GCJ='-KPIC'
14825         lt_prog_compiler_static_GCJ='-static'
14826         ;;
14827       ccc)
14828         lt_prog_compiler_wl_GCJ='-Wl,'
14829         # All Alpha code is PIC.
14830         lt_prog_compiler_static_GCJ='-non_shared'
14831         ;;
14832       esac
14833       ;;
14834
14835     osf3* | osf4* | osf5*)
14836       lt_prog_compiler_wl_GCJ='-Wl,'
14837       # All OSF/1 code is PIC.
14838       lt_prog_compiler_static_GCJ='-non_shared'
14839       ;;
14840
14841     sco3.2v5*)
14842       lt_prog_compiler_pic_GCJ='-Kpic'
14843       lt_prog_compiler_static_GCJ='-dn'
14844       ;;
14845
14846     solaris*)
14847       lt_prog_compiler_wl_GCJ='-Wl,'
14848       lt_prog_compiler_pic_GCJ='-KPIC'
14849       lt_prog_compiler_static_GCJ='-Bstatic'
14850       ;;
14851
14852     sunos4*)
14853       lt_prog_compiler_wl_GCJ='-Qoption ld '
14854       lt_prog_compiler_pic_GCJ='-PIC'
14855       lt_prog_compiler_static_GCJ='-Bstatic'
14856       ;;
14857
14858     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14859       lt_prog_compiler_wl_GCJ='-Wl,'
14860       lt_prog_compiler_pic_GCJ='-KPIC'
14861       lt_prog_compiler_static_GCJ='-Bstatic'
14862       ;;
14863
14864     sysv4*MP*)
14865       if test -d /usr/nec ;then
14866         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14867         lt_prog_compiler_static_GCJ='-Bstatic'
14868       fi
14869       ;;
14870
14871     uts4*)
14872       lt_prog_compiler_pic_GCJ='-pic'
14873       lt_prog_compiler_static_GCJ='-Bstatic'
14874       ;;
14875
14876     *)
14877       lt_prog_compiler_can_build_shared_GCJ=no
14878       ;;
14879     esac
14880   fi
14881
14882 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14883 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14884
14885 #
14886 # Check to make sure the PIC flag actually works.
14887 #
14888 if test -n "$lt_prog_compiler_pic_GCJ"; then
14889   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14890 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14891 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14892   echo $ECHO_N "(cached) $ECHO_C" >&6
14893 else
14894   lt_prog_compiler_pic_works_GCJ=no
14895   ac_outfile=conftest.$ac_objext
14896    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14897    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14898    # Insert the option either (1) after the last *FLAGS variable, or
14899    # (2) before a word containing "conftest.", or (3) at the end.
14900    # Note that $ac_compile itself does not contain backslashes and begins
14901    # with a dollar sign (not a hyphen), so the echo should work correctly.
14902    # The option is referenced via a variable to avoid confusing sed.
14903    lt_compile=`echo "$ac_compile" | $SED \
14904    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14905    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14906    -e 's:$: $lt_compiler_flag:'`
14907    (eval echo "\"\$as_me:14907: $lt_compile\"" >&5)
14908    (eval "$lt_compile" 2>conftest.err)
14909    ac_status=$?
14910    cat conftest.err >&5
14911    echo "$as_me:14911: \$? = $ac_status" >&5
14912    if (exit $ac_status) && test -s "$ac_outfile"; then
14913      # The compiler can only warn and ignore the option if not recognized
14914      # So say no if there are warnings
14915      if test ! -s conftest.err; then
14916        lt_prog_compiler_pic_works_GCJ=yes
14917      fi
14918    fi
14919    $rm conftest*
14920
14921 fi
14922 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14923 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14924
14925 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14926     case $lt_prog_compiler_pic_GCJ in
14927      "" | " "*) ;;
14928      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14929      esac
14930 else
14931     lt_prog_compiler_pic_GCJ=
14932      lt_prog_compiler_can_build_shared_GCJ=no
14933 fi
14934
14935 fi
14936 case "$host_os" in
14937   # For platforms which do not support PIC, -DPIC is meaningless:
14938   *djgpp*)
14939     lt_prog_compiler_pic_GCJ=
14940     ;;
14941   *)
14942     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14943     ;;
14944 esac
14945
14946 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14947 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14948 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14949   echo $ECHO_N "(cached) $ECHO_C" >&6
14950 else
14951   lt_cv_prog_compiler_c_o_GCJ=no
14952    $rm -r conftest 2>/dev/null
14953    mkdir conftest
14954    cd conftest
14955    mkdir out
14956    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14957
14958    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14959    # that will create temporary files in the current directory regardless of
14960    # the output directory.  Thus, making CWD read-only will cause this test
14961    # to fail, enabling locking or at least warning the user not to do parallel
14962    # builds.
14963    chmod -w .
14964
14965    lt_compiler_flag="-o out/conftest2.$ac_objext"
14966    # Insert the option either (1) after the last *FLAGS variable, or
14967    # (2) before a word containing "conftest.", or (3) at the end.
14968    # Note that $ac_compile itself does not contain backslashes and begins
14969    # with a dollar sign (not a hyphen), so the echo should work correctly.
14970    lt_compile=`echo "$ac_compile" | $SED \
14971    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14972    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14973    -e 's:$: $lt_compiler_flag:'`
14974    (eval echo "\"\$as_me:14974: $lt_compile\"" >&5)
14975    (eval "$lt_compile" 2>out/conftest.err)
14976    ac_status=$?
14977    cat out/conftest.err >&5
14978    echo "$as_me:14978: \$? = $ac_status" >&5
14979    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14980    then
14981      # The compiler can only warn and ignore the option if not recognized
14982      # So say no if there are warnings
14983      if test ! -s out/conftest.err; then
14984        lt_cv_prog_compiler_c_o_GCJ=yes
14985      fi
14986    fi
14987    chmod u+w .
14988    $rm conftest* out/*
14989    rmdir out
14990    cd ..
14991    rmdir conftest
14992    $rm conftest*
14993
14994 fi
14995 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14996 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14997
14998
14999 hard_links="nottested"
15000 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15001   # do not overwrite the value of need_locks provided by the user
15002   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15003 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15004   hard_links=yes
15005   $rm conftest*
15006   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15007   touch conftest.a
15008   ln conftest.a conftest.b 2>&5 || hard_links=no
15009   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15010   echo "$as_me:$LINENO: result: $hard_links" >&5
15011 echo "${ECHO_T}$hard_links" >&6
15012   if test "$hard_links" = no; then
15013     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15014 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15015     need_locks=warn
15016   fi
15017 else
15018   need_locks=no
15019 fi
15020
15021 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15022 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15023
15024   runpath_var=
15025   allow_undefined_flag_GCJ=
15026   enable_shared_with_static_runtimes_GCJ=no
15027   archive_cmds_GCJ=
15028   archive_expsym_cmds_GCJ=
15029   old_archive_From_new_cmds_GCJ=
15030   old_archive_from_expsyms_cmds_GCJ=
15031   export_dynamic_flag_spec_GCJ=
15032   whole_archive_flag_spec_GCJ=
15033   thread_safe_flag_spec_GCJ=
15034   hardcode_libdir_flag_spec_GCJ=
15035   hardcode_libdir_flag_spec_ld_GCJ=
15036   hardcode_libdir_separator_GCJ=
15037   hardcode_direct_GCJ=no
15038   hardcode_minus_L_GCJ=no
15039   hardcode_shlibpath_var_GCJ=unsupported
15040   link_all_deplibs_GCJ=unknown
15041   hardcode_automatic_GCJ=no
15042   module_cmds_GCJ=
15043   module_expsym_cmds_GCJ=
15044   always_export_symbols_GCJ=no
15045   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15046   # include_expsyms should be a list of space-separated symbols to be *always*
15047   # included in the symbol list
15048   include_expsyms_GCJ=
15049   # exclude_expsyms can be an extended regexp of symbols to exclude
15050   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15051   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15052   # as well as any symbol that contains `d'.
15053   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15054   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15055   # platforms (ab)use it in PIC code, but their linkers get confused if
15056   # the symbol is explicitly referenced.  Since portable code cannot
15057   # rely on this symbol name, it's probably fine to never include it in
15058   # preloaded symbol tables.
15059   extract_expsyms_cmds=
15060
15061   case $host_os in
15062   cygwin* | mingw* | pw32*)
15063     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15064     # When not using gcc, we currently assume that we are using
15065     # Microsoft Visual C++.
15066     if test "$GCC" != yes; then
15067       with_gnu_ld=no
15068     fi
15069     ;;
15070   openbsd*)
15071     with_gnu_ld=no
15072     ;;
15073   esac
15074
15075   ld_shlibs_GCJ=yes
15076   if test "$with_gnu_ld" = yes; then
15077     # If archive_cmds runs LD, not CC, wlarc should be empty
15078     wlarc='${wl}'
15079
15080     # See if GNU ld supports shared libraries.
15081     case $host_os in
15082     aix3* | aix4* | aix5*)
15083       # On AIX/PPC, the GNU linker is very broken
15084       if test "$host_cpu" != ia64; then
15085         ld_shlibs_GCJ=no
15086         cat <<EOF 1>&2
15087
15088 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15089 *** to be unable to reliably create shared libraries on AIX.
15090 *** Therefore, libtool is disabling shared libraries support.  If you
15091 *** really care for shared libraries, you may want to modify your PATH
15092 *** so that a non-GNU linker is found, and then restart.
15093
15094 EOF
15095       fi
15096       ;;
15097
15098     amigaos*)
15099       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)'
15100       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15101       hardcode_minus_L_GCJ=yes
15102
15103       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15104       # that the semantics of dynamic libraries on AmigaOS, at least up
15105       # to version 4, is to share data among multiple programs linked
15106       # with the same dynamic library.  Since this doesn't match the
15107       # behavior of shared libraries on other platforms, we can't use
15108       # them.
15109       ld_shlibs_GCJ=no
15110       ;;
15111
15112     beos*)
15113       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15114         allow_undefined_flag_GCJ=unsupported
15115         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15116         # support --undefined.  This deserves some investigation.  FIXME
15117         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15118       else
15119         ld_shlibs_GCJ=no
15120       fi
15121       ;;
15122
15123     cygwin* | mingw* | pw32*)
15124       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15125       # as there is no search path for DLLs.
15126       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15127       allow_undefined_flag_GCJ=unsupported
15128       always_export_symbols_GCJ=no
15129       enable_shared_with_static_runtimes_GCJ=yes
15130       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15131
15132       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15133         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15134         # If the export-symbols file already is a .def file (1st line
15135         # is EXPORTS), use it as is; otherwise, prepend...
15136         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15137           cp $export_symbols $output_objdir/$soname.def;
15138         else
15139           echo EXPORTS > $output_objdir/$soname.def;
15140           cat $export_symbols >> $output_objdir/$soname.def;
15141         fi~
15142         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15143       else
15144         ld_shlibs=no
15145       fi
15146       ;;
15147
15148     netbsd*)
15149       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15150         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15151         wlarc=
15152       else
15153         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15154         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15155       fi
15156       ;;
15157
15158     solaris* | sysv5*)
15159       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15160         ld_shlibs_GCJ=no
15161         cat <<EOF 1>&2
15162
15163 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15164 *** create shared libraries on Solaris systems.  Therefore, libtool
15165 *** is disabling shared libraries support.  We urge you to upgrade GNU
15166 *** binutils to release 2.9.1 or newer.  Another option is to modify
15167 *** your PATH or compiler configuration so that the native linker is
15168 *** used, and then restart.
15169
15170 EOF
15171       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15172         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15173         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15174       else
15175         ld_shlibs_GCJ=no
15176       fi
15177       ;;
15178
15179     sunos4*)
15180       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15181       wlarc=
15182       hardcode_direct_GCJ=yes
15183       hardcode_shlibpath_var_GCJ=no
15184       ;;
15185
15186     *)
15187       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15188         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15189         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15190       else
15191         ld_shlibs_GCJ=no
15192       fi
15193       ;;
15194     esac
15195
15196     if test "$ld_shlibs_GCJ" = yes; then
15197       runpath_var=LD_RUN_PATH
15198       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15199       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15200       # ancient GNU ld didn't support --whole-archive et. al.
15201       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15202         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15203       else
15204         whole_archive_flag_spec_GCJ=
15205       fi
15206     fi
15207   else
15208     # PORTME fill in a description of your system's linker (not GNU ld)
15209     case $host_os in
15210     aix3*)
15211       allow_undefined_flag_GCJ=unsupported
15212       always_export_symbols_GCJ=yes
15213       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'
15214       # Note: this linker hardcodes the directories in LIBPATH if there
15215       # are no directories specified by -L.
15216       hardcode_minus_L_GCJ=yes
15217       if test "$GCC" = yes && test -z "$link_static_flag"; then
15218         # Neither direct hardcoding nor static linking is supported with a
15219         # broken collect2.
15220         hardcode_direct_GCJ=unsupported
15221       fi
15222       ;;
15223
15224     aix4* | aix5*)
15225       if test "$host_cpu" = ia64; then
15226         # On IA64, the linker does run time linking by default, so we don't
15227         # have to do anything special.
15228         aix_use_runtimelinking=no
15229         exp_sym_flag='-Bexport'
15230         no_entry_flag=""
15231       else
15232         # If we're using GNU nm, then we don't want the "-C" option.
15233         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15234         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15235           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'
15236         else
15237           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'
15238         fi
15239         aix_use_runtimelinking=no
15240
15241         # Test if we are trying to use run time linking or normal
15242         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15243         # need to do runtime linking.
15244         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15245           for ld_flag in $LDFLAGS; do
15246           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15247             aix_use_runtimelinking=yes
15248             break
15249           fi
15250           done
15251         esac
15252
15253         exp_sym_flag='-bexport'
15254         no_entry_flag='-bnoentry'
15255       fi
15256
15257       # When large executables or shared objects are built, AIX ld can
15258       # have problems creating the table of contents.  If linking a library
15259       # or program results in "error TOC overflow" add -mminimal-toc to
15260       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15261       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15262
15263       archive_cmds_GCJ=''
15264       hardcode_direct_GCJ=yes
15265       hardcode_libdir_separator_GCJ=':'
15266       link_all_deplibs_GCJ=yes
15267
15268       if test "$GCC" = yes; then
15269         case $host_os in aix4.012|aix4.012.*)
15270         # We only want to do this on AIX 4.2 and lower, the check
15271         # below for broken collect2 doesn't work under 4.3+
15272           collect2name=`${CC} -print-prog-name=collect2`
15273           if test -f "$collect2name" && \
15274            strings "$collect2name" | grep resolve_lib_name >/dev/null
15275           then
15276           # We have reworked collect2
15277           hardcode_direct_GCJ=yes
15278           else
15279           # We have old collect2
15280           hardcode_direct_GCJ=unsupported
15281           # It fails to find uninstalled libraries when the uninstalled
15282           # path is not listed in the libpath.  Setting hardcode_minus_L
15283           # to unsupported forces relinking
15284           hardcode_minus_L_GCJ=yes
15285           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15286           hardcode_libdir_separator_GCJ=
15287           fi
15288         esac
15289         shared_flag='-shared'
15290       else
15291         # not using gcc
15292         if test "$host_cpu" = ia64; then
15293         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15294         # chokes on -Wl,-G. The following line is correct:
15295           shared_flag='-G'
15296         else
15297         if test "$aix_use_runtimelinking" = yes; then
15298             shared_flag='${wl}-G'
15299           else
15300             shared_flag='${wl}-bM:SRE'
15301         fi
15302         fi
15303       fi
15304
15305       # It seems that -bexpall does not export symbols beginning with
15306       # underscore (_), so it is better to generate a list of symbols to export.
15307       always_export_symbols_GCJ=yes
15308       if test "$aix_use_runtimelinking" = yes; then
15309         # Warning - without using the other runtime loading flags (-brtl),
15310         # -berok will link without error, but may produce a broken library.
15311         allow_undefined_flag_GCJ='-berok'
15312        # Determine the default libpath from the value encoded in an empty executable.
15313        cat >conftest.$ac_ext <<_ACEOF
15314 #line $LINENO "configure"
15315 /* confdefs.h.  */
15316 _ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h.  */
15320
15321 int
15322 main ()
15323 {
15324
15325   ;
15326   return 0;
15327 }
15328 _ACEOF
15329 rm -f conftest.$ac_objext conftest$ac_exeext
15330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15331   (eval $ac_link) 2>&5
15332   ac_status=$?
15333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334   (exit $ac_status); } &&
15335          { ac_try='test -s conftest$ac_exeext'
15336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337   (eval $ac_try) 2>&5
15338   ac_status=$?
15339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340   (exit $ac_status); }; }; then
15341
15342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15343 }'`
15344 # Check for a 64-bit object if we didn't find anything.
15345 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; }
15346 }'`; fi
15347 else
15348   echo "$as_me: failed program was:" >&5
15349 sed 's/^/| /' conftest.$ac_ext >&5
15350
15351 fi
15352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15353 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15354
15355        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15356         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"
15357        else
15358         if test "$host_cpu" = ia64; then
15359           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15360           allow_undefined_flag_GCJ="-z nodefs"
15361           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"
15362         else
15363          # Determine the default libpath from the value encoded in an empty executable.
15364          cat >conftest.$ac_ext <<_ACEOF
15365 #line $LINENO "configure"
15366 /* confdefs.h.  */
15367 _ACEOF
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h.  */
15371
15372 int
15373 main ()
15374 {
15375
15376   ;
15377   return 0;
15378 }
15379 _ACEOF
15380 rm -f conftest.$ac_objext conftest$ac_exeext
15381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15382   (eval $ac_link) 2>&5
15383   ac_status=$?
15384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385   (exit $ac_status); } &&
15386          { ac_try='test -s conftest$ac_exeext'
15387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388   (eval $ac_try) 2>&5
15389   ac_status=$?
15390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); }; }; then
15392
15393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15394 }'`
15395 # Check for a 64-bit object if we didn't find anything.
15396 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; }
15397 }'`; fi
15398 else
15399   echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15401
15402 fi
15403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15405
15406          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15407           # Warning - without using the other run time loading flags,
15408           # -berok will link without error, but may produce a broken library.
15409           no_undefined_flag_GCJ=' ${wl}-bernotok'
15410           allow_undefined_flag_GCJ=' ${wl}-berok'
15411           # -bexpall does not export symbols beginning with underscore (_)
15412           always_export_symbols_GCJ=yes
15413           # Exported symbols can be pulled into shared objects from archives
15414           whole_archive_flag_spec_GCJ=' '
15415           archive_cmds_need_lc_GCJ=yes
15416           # This is similar to how AIX traditionally builds it's shared libraries.
15417           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'
15418         fi
15419       fi
15420       ;;
15421
15422     amigaos*)
15423       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)'
15424       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15425       hardcode_minus_L_GCJ=yes
15426       # see comment about different semantics on the GNU ld section
15427       ld_shlibs_GCJ=no
15428       ;;
15429
15430     bsdi4*)
15431       export_dynamic_flag_spec_GCJ=-rdynamic
15432       ;;
15433
15434     cygwin* | mingw* | pw32*)
15435       # When not using gcc, we currently assume that we are using
15436       # Microsoft Visual C++.
15437       # hardcode_libdir_flag_spec is actually meaningless, as there is
15438       # no search path for DLLs.
15439       hardcode_libdir_flag_spec_GCJ=' '
15440       allow_undefined_flag_GCJ=unsupported
15441       # Tell ltmain to make .lib files, not .a files.
15442       libext=lib
15443       # Tell ltmain to make .dll files, not .so files.
15444       shrext=".dll"
15445       # FIXME: Setting linknames here is a bad hack.
15446       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15447       # The linker will automatically build a .lib file if we build a DLL.
15448       old_archive_From_new_cmds_GCJ='true'
15449       # FIXME: Should let the user specify the lib program.
15450       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15451       fix_srcfile_path='`cygpath -w "$srcfile"`'
15452       enable_shared_with_static_runtimes_GCJ=yes
15453       ;;
15454
15455     darwin* | rhapsody*)
15456     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15457       archive_cmds_need_lc_GCJ=no
15458       case "$host_os" in
15459       rhapsody* | darwin1.[012])
15460         allow_undefined_flag_GCJ='-undefined suppress'
15461         ;;
15462       *) # Darwin 1.3 on
15463         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15464         ;;
15465       esac
15466       # FIXME: Relying on posixy $() will cause problems for
15467       #        cross-compilation, but unfortunately the echo tests do not
15468       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15469       #        `"' quotes if we put them in here... so don't!
15470         lt_int_apple_cc_single_mod=no
15471         output_verbose_link_cmd='echo'
15472         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15473           lt_int_apple_cc_single_mod=yes
15474         fi
15475         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15476           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15477         else
15478         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'
15479       fi
15480       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15481       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15482         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15483           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}'
15484         else
15485           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}'
15486         fi
15487           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}'
15488       hardcode_direct_GCJ=no
15489       hardcode_automatic_GCJ=yes
15490       hardcode_shlibpath_var_GCJ=unsupported
15491       whole_archive_flag_spec_GCJ='-all_load $convenience'
15492       link_all_deplibs_GCJ=yes
15493     fi
15494       ;;
15495
15496     dgux*)
15497       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15498       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15499       hardcode_shlibpath_var_GCJ=no
15500       ;;
15501
15502     freebsd1*)
15503       ld_shlibs_GCJ=no
15504       ;;
15505
15506     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15507     # support.  Future versions do this automatically, but an explicit c++rt0.o
15508     # does not break anything, and helps significantly (at the cost of a little
15509     # extra space).
15510     freebsd2.2*)
15511       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15512       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15513       hardcode_direct_GCJ=yes
15514       hardcode_shlibpath_var_GCJ=no
15515       ;;
15516
15517     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15518     freebsd2*)
15519       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15520       hardcode_direct_GCJ=yes
15521       hardcode_minus_L_GCJ=yes
15522       hardcode_shlibpath_var_GCJ=no
15523       ;;
15524
15525     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15526     freebsd*)
15527       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15528       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15529       hardcode_direct_GCJ=yes
15530       hardcode_shlibpath_var_GCJ=no
15531       ;;
15532
15533     hpux9*)
15534       if test "$GCC" = yes; then
15535         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'
15536       else
15537         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'
15538       fi
15539       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15540       hardcode_libdir_separator_GCJ=:
15541       hardcode_direct_GCJ=yes
15542
15543       # hardcode_minus_L: Not really in the search PATH,
15544       # but as the default location of the library.
15545       hardcode_minus_L_GCJ=yes
15546       export_dynamic_flag_spec_GCJ='${wl}-E'
15547       ;;
15548
15549     hpux10* | hpux11*)
15550       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15551         case "$host_cpu" in
15552         hppa*64*|ia64*)
15553           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15554           ;;
15555         *)
15556           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15557           ;;
15558         esac
15559       else
15560         case "$host_cpu" in
15561         hppa*64*|ia64*)
15562           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15563           ;;
15564         *)
15565           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15566           ;;
15567         esac
15568       fi
15569       if test "$with_gnu_ld" = no; then
15570         case "$host_cpu" in
15571         hppa*64*)
15572           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15573           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15574           hardcode_libdir_separator_GCJ=:
15575           hardcode_direct_GCJ=no
15576           hardcode_shlibpath_var_GCJ=no
15577           ;;
15578         ia64*)
15579           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15580           hardcode_direct_GCJ=no
15581           hardcode_shlibpath_var_GCJ=no
15582
15583           # hardcode_minus_L: Not really in the search PATH,
15584           # but as the default location of the library.
15585           hardcode_minus_L_GCJ=yes
15586           ;;
15587         *)
15588           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15589           hardcode_libdir_separator_GCJ=:
15590           hardcode_direct_GCJ=yes
15591           export_dynamic_flag_spec_GCJ='${wl}-E'
15592
15593           # hardcode_minus_L: Not really in the search PATH,
15594           # but as the default location of the library.
15595           hardcode_minus_L_GCJ=yes
15596           ;;
15597         esac
15598       fi
15599       ;;
15600
15601     irix5* | irix6* | nonstopux*)
15602       if test "$GCC" = yes; then
15603         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'
15604       else
15605         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'
15606         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15607       fi
15608       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15609       hardcode_libdir_separator_GCJ=:
15610       link_all_deplibs_GCJ=yes
15611       ;;
15612
15613     netbsd*)
15614       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15615         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15616       else
15617         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15618       fi
15619       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15620       hardcode_direct_GCJ=yes
15621       hardcode_shlibpath_var_GCJ=no
15622       ;;
15623
15624     newsos6)
15625       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15626       hardcode_direct_GCJ=yes
15627       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15628       hardcode_libdir_separator_GCJ=:
15629       hardcode_shlibpath_var_GCJ=no
15630       ;;
15631
15632     openbsd*)
15633       hardcode_direct_GCJ=yes
15634       hardcode_shlibpath_var_GCJ=no
15635       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15636         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15637         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15638         export_dynamic_flag_spec_GCJ='${wl}-E'
15639       else
15640        case $host_os in
15641          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15642            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15643            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15644            ;;
15645          *)
15646            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15647            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15648            ;;
15649        esac
15650       fi
15651       ;;
15652
15653     os2*)
15654       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15655       hardcode_minus_L_GCJ=yes
15656       allow_undefined_flag_GCJ=unsupported
15657       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'
15658       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15659       ;;
15660
15661     osf3*)
15662       if test "$GCC" = yes; then
15663         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15664         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'
15665       else
15666         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15667         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'
15668       fi
15669       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15670       hardcode_libdir_separator_GCJ=:
15671       ;;
15672
15673     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15674       if test "$GCC" = yes; then
15675         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15676         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'
15677         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15678       else
15679         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15680         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'
15681         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~
15682         $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'
15683
15684         # Both c and cxx compiler support -rpath directly
15685         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15686       fi
15687       hardcode_libdir_separator_GCJ=:
15688       ;;
15689
15690     sco3.2v5*)
15691       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15692       hardcode_shlibpath_var_GCJ=no
15693       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15694       runpath_var=LD_RUN_PATH
15695       hardcode_runpath_var=yes
15696       ;;
15697
15698     solaris*)
15699       no_undefined_flag_GCJ=' -z text'
15700       if test "$GCC" = yes; then
15701         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15702         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15703           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15704       else
15705         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15706         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15707         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15708       fi
15709       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15710       hardcode_shlibpath_var_GCJ=no
15711       case $host_os in
15712       solaris2.[0-5] | solaris2.[0-5].*) ;;
15713       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15714         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15715       esac
15716       link_all_deplibs_GCJ=yes
15717       ;;
15718
15719     sunos4*)
15720       if test "x$host_vendor" = xsequent; then
15721         # Use $CC to link under sequent, because it throws in some extra .o
15722         # files that make .init and .fini sections work.
15723         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15724       else
15725         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15726       fi
15727       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15728       hardcode_direct_GCJ=yes
15729       hardcode_minus_L_GCJ=yes
15730       hardcode_shlibpath_var_GCJ=no
15731       ;;
15732
15733     sysv4)
15734       case $host_vendor in
15735         sni)
15736           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15737           hardcode_direct_GCJ=yes # is this really true???
15738         ;;
15739         siemens)
15740           ## LD is ld it makes a PLAMLIB
15741           ## CC just makes a GrossModule.
15742           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15743           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15744           hardcode_direct_GCJ=no
15745         ;;
15746         motorola)
15747           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15748           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15749         ;;
15750       esac
15751       runpath_var='LD_RUN_PATH'
15752       hardcode_shlibpath_var_GCJ=no
15753       ;;
15754
15755     sysv4.3*)
15756       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15757       hardcode_shlibpath_var_GCJ=no
15758       export_dynamic_flag_spec_GCJ='-Bexport'
15759       ;;
15760
15761     sysv4*MP*)
15762       if test -d /usr/nec; then
15763         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15764         hardcode_shlibpath_var_GCJ=no
15765         runpath_var=LD_RUN_PATH
15766         hardcode_runpath_var=yes
15767         ld_shlibs_GCJ=yes
15768       fi
15769       ;;
15770
15771     sysv4.2uw2*)
15772       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15773       hardcode_direct_GCJ=yes
15774       hardcode_minus_L_GCJ=no
15775       hardcode_shlibpath_var_GCJ=no
15776       hardcode_runpath_var=yes
15777       runpath_var=LD_RUN_PATH
15778       ;;
15779
15780    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15781       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15782       if test "$GCC" = yes; then
15783         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15784       else
15785         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15786       fi
15787       runpath_var='LD_RUN_PATH'
15788       hardcode_shlibpath_var_GCJ=no
15789       ;;
15790
15791     sysv5*)
15792       no_undefined_flag_GCJ=' -z text'
15793       # $CC -shared without GNU ld will not create a library from C++
15794       # object files and a static libstdc++, better avoid it by now
15795       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15796       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15797                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15798       hardcode_libdir_flag_spec_GCJ=
15799       hardcode_shlibpath_var_GCJ=no
15800       runpath_var='LD_RUN_PATH'
15801       ;;
15802
15803     uts4*)
15804       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15805       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15806       hardcode_shlibpath_var_GCJ=no
15807       ;;
15808
15809     *)
15810       ld_shlibs_GCJ=no
15811       ;;
15812     esac
15813   fi
15814
15815 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15816 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15817 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15818
15819 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15820 if test "$GCC" = yes; then
15821   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15822 fi
15823
15824 #
15825 # Do we need to explicitly link libc?
15826 #
15827 case "x$archive_cmds_need_lc_GCJ" in
15828 x|xyes)
15829   # Assume -lc should be added
15830   archive_cmds_need_lc_GCJ=yes
15831
15832   if test "$enable_shared" = yes && test "$GCC" = yes; then
15833     case $archive_cmds_GCJ in
15834     *'~'*)
15835       # FIXME: we may have to deal with multi-command sequences.
15836       ;;
15837     '$CC '*)
15838       # Test whether the compiler implicitly links with -lc since on some
15839       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15840       # to ld, don't add -lc before -lgcc.
15841       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15842 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15843       $rm conftest*
15844       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15845
15846       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15847   (eval $ac_compile) 2>&5
15848   ac_status=$?
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); } 2>conftest.err; then
15851         soname=conftest
15852         lib=conftest
15853         libobjs=conftest.$ac_objext
15854         deplibs=
15855         wl=$lt_prog_compiler_wl_GCJ
15856         compiler_flags=-v
15857         linker_flags=-v
15858         verstring=
15859         output_objdir=.
15860         libname=conftest
15861         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15862         allow_undefined_flag_GCJ=
15863         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15864   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15865   ac_status=$?
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); }
15868         then
15869           archive_cmds_need_lc_GCJ=no
15870         else
15871           archive_cmds_need_lc_GCJ=yes
15872         fi
15873         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15874       else
15875         cat conftest.err 1>&5
15876       fi
15877       $rm conftest*
15878       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15879 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15880       ;;
15881     esac
15882   fi
15883   ;;
15884 esac
15885
15886 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15887 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15888 hardcode_action_GCJ=
15889 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15890    test -n "$runpath_var GCJ" || \
15891    test "X$hardcode_automatic_GCJ"="Xyes" ; then
15892
15893   # We can hardcode non-existant directories.
15894   if test "$hardcode_direct_GCJ" != no &&
15895      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15896      # have to relink, otherwise we might link with an installed library
15897      # when we should be linking with a yet-to-be-installed one
15898      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15899      test "$hardcode_minus_L_GCJ" != no; then
15900     # Linking always hardcodes the temporary library directory.
15901     hardcode_action_GCJ=relink
15902   else
15903     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15904     hardcode_action_GCJ=immediate
15905   fi
15906 else
15907   # We cannot hardcode anything, or else we can only hardcode existing
15908   # directories.
15909   hardcode_action_GCJ=unsupported
15910 fi
15911 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15912 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15913
15914 if test "$hardcode_action_GCJ" = relink; then
15915   # Fast installation is not supported
15916   enable_fast_install=no
15917 elif test "$shlibpath_overrides_runpath" = yes ||
15918      test "$enable_shared" = no; then
15919   # Fast installation is not necessary
15920   enable_fast_install=needless
15921 fi
15922
15923 striplib=
15924 old_striplib=
15925 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15926 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15927 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15928   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15929   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15930   echo "$as_me:$LINENO: result: yes" >&5
15931 echo "${ECHO_T}yes" >&6
15932 else
15933 # FIXME - insert some real tests, host_os isn't really good enough
15934   case $host_os in
15935    darwin*)
15936        if test -n "$STRIP" ; then
15937          striplib="$STRIP -x"
15938          echo "$as_me:$LINENO: result: yes" >&5
15939 echo "${ECHO_T}yes" >&6
15940        else
15941   echo "$as_me:$LINENO: result: no" >&5
15942 echo "${ECHO_T}no" >&6
15943 fi
15944        ;;
15945    *)
15946   echo "$as_me:$LINENO: result: no" >&5
15947 echo "${ECHO_T}no" >&6
15948     ;;
15949   esac
15950 fi
15951
15952 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15953 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15954 library_names_spec=
15955 libname_spec='lib$name'
15956 soname_spec=
15957 shrext=".so"
15958 postinstall_cmds=
15959 postuninstall_cmds=
15960 finish_cmds=
15961 finish_eval=
15962 shlibpath_var=
15963 shlibpath_overrides_runpath=unknown
15964 version_type=none
15965 dynamic_linker="$host_os ld.so"
15966 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15967 if test "$GCC" = yes; then
15968   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15969   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15970     # if the path contains ";" then we assume it to be the separator
15971     # otherwise default to the standard path separator (i.e. ":") - it is
15972     # assumed that no part of a normal pathname contains ";" but that should
15973     # okay in the real world where ";" in dirpaths is itself problematic.
15974     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15975   else
15976     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15977   fi
15978 else
15979   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15980 fi
15981 need_lib_prefix=unknown
15982 hardcode_into_libs=no
15983
15984 # when you set need_version to no, make sure it does not cause -set_version
15985 # flags to be left without arguments
15986 need_version=unknown
15987
15988 case $host_os in
15989 aix3*)
15990   version_type=linux
15991   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15992   shlibpath_var=LIBPATH
15993
15994   # AIX 3 has no versioning support, so we append a major version to the name.
15995   soname_spec='${libname}${release}${shared_ext}$major'
15996   ;;
15997
15998 aix4* | aix5*)
15999   version_type=linux
16000   need_lib_prefix=no
16001   need_version=no
16002   hardcode_into_libs=yes
16003   if test "$host_cpu" = ia64; then
16004     # AIX 5 supports IA64
16005     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16006     shlibpath_var=LD_LIBRARY_PATH
16007   else
16008     # With GCC up to 2.95.x, collect2 would create an import file
16009     # for dependence libraries.  The import file would start with
16010     # the line `#! .'.  This would cause the generated library to
16011     # depend on `.', always an invalid library.  This was fixed in
16012     # development snapshots of GCC prior to 3.0.
16013     case $host_os in
16014       aix4 | aix4.[01] | aix4.[01].*)
16015       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16016            echo ' yes '
16017            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16018         :
16019       else
16020         can_build_shared=no
16021       fi
16022       ;;
16023     esac
16024     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16025     # soname into executable. Probably we can add versioning support to
16026     # collect2, so additional links can be useful in future.
16027     if test "$aix_use_runtimelinking" = yes; then
16028       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16029       # instead of lib<name>.a to let people know that these are not
16030       # typical AIX shared libraries.
16031       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16032     else
16033       # We preserve .a as extension for shared libraries through AIX4.2
16034       # and later when we are not doing run time linking.
16035       library_names_spec='${libname}${release}.a $libname.a'
16036       soname_spec='${libname}${release}${shared_ext}$major'
16037     fi
16038     shlibpath_var=LIBPATH
16039   fi
16040   ;;
16041
16042 amigaos*)
16043   library_names_spec='$libname.ixlibrary $libname.a'
16044   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16045   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'
16046   ;;
16047
16048 beos*)
16049   library_names_spec='${libname}${shared_ext}'
16050   dynamic_linker="$host_os ld.so"
16051   shlibpath_var=LIBRARY_PATH
16052   ;;
16053
16054 bsdi4*)
16055   version_type=linux
16056   need_version=no
16057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16058   soname_spec='${libname}${release}${shared_ext}$major'
16059   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16060   shlibpath_var=LD_LIBRARY_PATH
16061   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16062   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16063   # the default ld.so.conf also contains /usr/contrib/lib and
16064   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16065   # libtool to hard-code these into programs
16066   ;;
16067
16068 cygwin* | mingw* | pw32*)
16069   version_type=windows
16070   shrext=".dll"
16071   need_version=no
16072   need_lib_prefix=no
16073
16074   case $GCC,$host_os in
16075   yes,cygwin* | yes,mingw* | yes,pw32*)
16076     library_names_spec='$libname.dll.a'
16077     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16078     postinstall_cmds='base_file=`basename \${file}`~
16079       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16080       dldir=$destdir/`dirname \$dlpath`~
16081       test -d \$dldir || mkdir -p \$dldir~
16082       $install_prog $dir/$dlname \$dldir/$dlname'
16083     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16084       dlpath=$dir/\$dldll~
16085        $rm \$dlpath'
16086     shlibpath_overrides_runpath=yes
16087
16088     case $host_os in
16089     cygwin*)
16090       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16091       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16092       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16093       ;;
16094     mingw*)
16095       # MinGW DLLs use traditional 'lib' prefix
16096       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16097       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16098       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16099         # It is most probably a Windows format PATH printed by
16100         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16101         # path with ; separators, and with drive letters. We can handle the
16102         # drive letters (cygwin fileutils understands them), so leave them,
16103         # especially as we might pass files found there to a mingw objdump,
16104         # which wouldn't understand a cygwinified path. Ahh.
16105         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16106       else
16107         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16108       fi
16109       ;;
16110     pw32*)
16111       # pw32 DLLs use 'pw' prefix rather than 'lib'
16112       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16113       ;;
16114     esac
16115     ;;
16116
16117   *)
16118     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16119     ;;
16120   esac
16121   dynamic_linker='Win32 ld.exe'
16122   # FIXME: first we should search . and the directory the executable is in
16123   shlibpath_var=PATH
16124   ;;
16125
16126 darwin* | rhapsody*)
16127   dynamic_linker="$host_os dyld"
16128   version_type=darwin
16129   need_lib_prefix=no
16130   need_version=no
16131   # FIXME: Relying on posixy $() will cause problems for
16132   #        cross-compilation, but unfortunately the echo tests do not
16133   #        yet detect zsh echo's removal of \ escapes.
16134   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16135   soname_spec='${libname}${release}${major}$shared_ext'
16136   shlibpath_overrides_runpath=yes
16137   shlibpath_var=DYLD_LIBRARY_PATH
16138   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16139   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16140   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16141   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"`
16142   fi
16143   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16144   ;;
16145
16146 dgux*)
16147   version_type=linux
16148   need_lib_prefix=no
16149   need_version=no
16150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16151   soname_spec='${libname}${release}${shared_ext}$major'
16152   shlibpath_var=LD_LIBRARY_PATH
16153   ;;
16154
16155 freebsd1*)
16156   dynamic_linker=no
16157   ;;
16158
16159 freebsd*)
16160   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16161   version_type=freebsd-$objformat
16162   case $version_type in
16163     freebsd-elf*)
16164       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16165       need_version=no
16166       need_lib_prefix=no
16167       ;;
16168     freebsd-*)
16169       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16170       need_version=yes
16171       ;;
16172   esac
16173   shlibpath_var=LD_LIBRARY_PATH
16174   case $host_os in
16175   freebsd2*)
16176     shlibpath_overrides_runpath=yes
16177     ;;
16178   freebsd3.01* | freebsdelf3.01*)
16179     shlibpath_overrides_runpath=yes
16180     hardcode_into_libs=yes
16181     ;;
16182   *) # from 3.2 on
16183     shlibpath_overrides_runpath=no
16184     hardcode_into_libs=yes
16185     ;;
16186   esac
16187   ;;
16188
16189 gnu*)
16190   version_type=linux
16191   need_lib_prefix=no
16192   need_version=no
16193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16194   soname_spec='${libname}${release}${shared_ext}$major'
16195   shlibpath_var=LD_LIBRARY_PATH
16196   hardcode_into_libs=yes
16197   ;;
16198
16199 hpux9* | hpux10* | hpux11*)
16200   # Give a soname corresponding to the major version so that dld.sl refuses to
16201   # link against other versions.
16202   version_type=sunos
16203   need_lib_prefix=no
16204   need_version=no
16205   case "$host_cpu" in
16206   ia64*)
16207     shrext='.so'
16208     hardcode_into_libs=yes
16209     dynamic_linker="$host_os dld.so"
16210     shlibpath_var=LD_LIBRARY_PATH
16211     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16212     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16213     soname_spec='${libname}${release}${shared_ext}$major'
16214     if test "X$HPUX_IA64_MODE" = X32; then
16215       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16216     else
16217       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16218     fi
16219     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16220     ;;
16221    hppa*64*)
16222      shrext='.sl'
16223      hardcode_into_libs=yes
16224      dynamic_linker="$host_os dld.sl"
16225      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16226      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16227      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228      soname_spec='${libname}${release}${shared_ext}$major'
16229      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16230      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16231      ;;
16232    *)
16233     shrext='.sl'
16234     dynamic_linker="$host_os dld.sl"
16235     shlibpath_var=SHLIB_PATH
16236     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16237     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238     soname_spec='${libname}${release}${shared_ext}$major'
16239     ;;
16240   esac
16241   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16242   postinstall_cmds='chmod 555 $lib'
16243   ;;
16244
16245 irix5* | irix6* | nonstopux*)
16246   case $host_os in
16247     nonstopux*) version_type=nonstopux ;;
16248     *)
16249         if test "$lt_cv_prog_gnu_ld" = yes; then
16250                 version_type=linux
16251         else
16252                 version_type=irix
16253         fi ;;
16254   esac
16255   need_lib_prefix=no
16256   need_version=no
16257   soname_spec='${libname}${release}${shared_ext}$major'
16258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16259   case $host_os in
16260   irix5* | nonstopux*)
16261     libsuff= shlibsuff=
16262     ;;
16263   *)
16264     case $LD in # libtool.m4 will add one of these switches to LD
16265     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16266       libsuff= shlibsuff= libmagic=32-bit;;
16267     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16268       libsuff=32 shlibsuff=N32 libmagic=N32;;
16269     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16270       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16271     *) libsuff= shlibsuff= libmagic=never-match;;
16272     esac
16273     ;;
16274   esac
16275   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16276   shlibpath_overrides_runpath=no
16277   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16278   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16279   hardcode_into_libs=yes
16280   ;;
16281
16282 # No shared lib support for Linux oldld, aout, or coff.
16283 linux*oldld* | linux*aout* | linux*coff*)
16284   dynamic_linker=no
16285   ;;
16286
16287 # This must be Linux ELF.
16288 linux*)
16289   version_type=linux
16290   need_lib_prefix=no
16291   need_version=no
16292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16293   soname_spec='${libname}${release}${shared_ext}$major'
16294   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16295   shlibpath_var=LD_LIBRARY_PATH
16296   shlibpath_overrides_runpath=no
16297   # This implies no fast_install, which is unacceptable.
16298   # Some rework will be needed to allow for fast_install
16299   # before this can be enabled.
16300   hardcode_into_libs=yes
16301
16302   # We used to test for /lib/ld.so.1 and disable shared libraries on
16303   # powerpc, because MkLinux only supported shared libraries with the
16304   # GNU dynamic linker.  Since this was broken with cross compilers,
16305   # most powerpc-linux boxes support dynamic linking these days and
16306   # people can always --disable-shared, the test was removed, and we
16307   # assume the GNU/Linux dynamic linker is in use.
16308   dynamic_linker='GNU/Linux ld.so'
16309   ;;
16310
16311 netbsd*)
16312   version_type=sunos
16313   need_lib_prefix=no
16314   need_version=no
16315   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16316     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16317     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16318     dynamic_linker='NetBSD (a.out) ld.so'
16319   else
16320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16321     soname_spec='${libname}${release}${shared_ext}$major'
16322     dynamic_linker='NetBSD ld.elf_so'
16323   fi
16324   shlibpath_var=LD_LIBRARY_PATH
16325   shlibpath_overrides_runpath=yes
16326   hardcode_into_libs=yes
16327   ;;
16328
16329 newsos6)
16330   version_type=linux
16331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332   shlibpath_var=LD_LIBRARY_PATH
16333   shlibpath_overrides_runpath=yes
16334   ;;
16335
16336 nto-qnx)
16337   version_type=linux
16338   need_lib_prefix=no
16339   need_version=no
16340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16341   soname_spec='${libname}${release}${shared_ext}$major'
16342   shlibpath_var=LD_LIBRARY_PATH
16343   shlibpath_overrides_runpath=yes
16344   ;;
16345
16346 openbsd*)
16347   version_type=sunos
16348   need_lib_prefix=no
16349   need_version=no
16350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16351   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16352   shlibpath_var=LD_LIBRARY_PATH
16353   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16354     case $host_os in
16355       openbsd2.[89] | openbsd2.[89].*)
16356         shlibpath_overrides_runpath=no
16357         ;;
16358       *)
16359         shlibpath_overrides_runpath=yes
16360         ;;
16361       esac
16362   else
16363     shlibpath_overrides_runpath=yes
16364   fi
16365   ;;
16366
16367 os2*)
16368   libname_spec='$name'
16369   shrext=".dll"
16370   need_lib_prefix=no
16371   library_names_spec='$libname${shared_ext} $libname.a'
16372   dynamic_linker='OS/2 ld.exe'
16373   shlibpath_var=LIBPATH
16374   ;;
16375
16376 osf3* | osf4* | osf5*)
16377   version_type=osf
16378   need_lib_prefix=no
16379   need_version=no
16380   soname_spec='${libname}${release}${shared_ext}$major'
16381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16382   shlibpath_var=LD_LIBRARY_PATH
16383   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16384   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16385   ;;
16386
16387 sco3.2v5*)
16388   version_type=osf
16389   soname_spec='${libname}${release}${shared_ext}$major'
16390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391   shlibpath_var=LD_LIBRARY_PATH
16392   ;;
16393
16394 solaris*)
16395   version_type=linux
16396   need_lib_prefix=no
16397   need_version=no
16398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399   soname_spec='${libname}${release}${shared_ext}$major'
16400   shlibpath_var=LD_LIBRARY_PATH
16401   shlibpath_overrides_runpath=yes
16402   hardcode_into_libs=yes
16403   # ldd complains unless libraries are executable
16404   postinstall_cmds='chmod +x $lib'
16405   ;;
16406
16407 sunos4*)
16408   version_type=sunos
16409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16410   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16411   shlibpath_var=LD_LIBRARY_PATH
16412   shlibpath_overrides_runpath=yes
16413   if test "$with_gnu_ld" = yes; then
16414     need_lib_prefix=no
16415   fi
16416   need_version=yes
16417   ;;
16418
16419 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16420   version_type=linux
16421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16422   soname_spec='${libname}${release}${shared_ext}$major'
16423   shlibpath_var=LD_LIBRARY_PATH
16424   case $host_vendor in
16425     sni)
16426       shlibpath_overrides_runpath=no
16427       need_lib_prefix=no
16428       export_dynamic_flag_spec='${wl}-Blargedynsym'
16429       runpath_var=LD_RUN_PATH
16430       ;;
16431     siemens)
16432       need_lib_prefix=no
16433       ;;
16434     motorola)
16435       need_lib_prefix=no
16436       need_version=no
16437       shlibpath_overrides_runpath=no
16438       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16439       ;;
16440   esac
16441   ;;
16442
16443 sysv4*MP*)
16444   if test -d /usr/nec ;then
16445     version_type=linux
16446     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16447     soname_spec='$libname${shared_ext}.$major'
16448     shlibpath_var=LD_LIBRARY_PATH
16449   fi
16450   ;;
16451
16452 uts4*)
16453   version_type=linux
16454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16455   soname_spec='${libname}${release}${shared_ext}$major'
16456   shlibpath_var=LD_LIBRARY_PATH
16457   ;;
16458
16459 *)
16460   dynamic_linker=no
16461   ;;
16462 esac
16463 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16464 echo "${ECHO_T}$dynamic_linker" >&6
16465 test "$dynamic_linker" = no && can_build_shared=no
16466
16467 if test "x$enable_dlopen" != xyes; then
16468   enable_dlopen=unknown
16469   enable_dlopen_self=unknown
16470   enable_dlopen_self_static=unknown
16471 else
16472   lt_cv_dlopen=no
16473   lt_cv_dlopen_libs=
16474
16475   case $host_os in
16476   beos*)
16477     lt_cv_dlopen="load_add_on"
16478     lt_cv_dlopen_libs=
16479     lt_cv_dlopen_self=yes
16480     ;;
16481
16482   mingw* | pw32*)
16483     lt_cv_dlopen="LoadLibrary"
16484     lt_cv_dlopen_libs=
16485    ;;
16486
16487   cygwin*)
16488     lt_cv_dlopen="dlopen"
16489     lt_cv_dlopen_libs=
16490    ;;
16491
16492   darwin*)
16493   # if libdl is installed we need to link against it
16494     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16495 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16496 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16497   echo $ECHO_N "(cached) $ECHO_C" >&6
16498 else
16499   ac_check_lib_save_LIBS=$LIBS
16500 LIBS="-ldl  $LIBS"
16501 cat >conftest.$ac_ext <<_ACEOF
16502 #line $LINENO "configure"
16503 /* confdefs.h.  */
16504 _ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h.  */
16508
16509 /* Override any gcc2 internal prototype to avoid an error.  */
16510 #ifdef __cplusplus
16511 extern "C"
16512 #endif
16513 /* We use char because int might match the return type of a gcc2
16514    builtin and then its argument prototype would still apply.  */
16515 char dlopen ();
16516 int
16517 main ()
16518 {
16519 dlopen ();
16520   ;
16521   return 0;
16522 }
16523 _ACEOF
16524 rm -f conftest.$ac_objext conftest$ac_exeext
16525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16526   (eval $ac_link) 2>&5
16527   ac_status=$?
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); } &&
16530          { ac_try='test -s conftest$ac_exeext'
16531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532   (eval $ac_try) 2>&5
16533   ac_status=$?
16534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535   (exit $ac_status); }; }; then
16536   ac_cv_lib_dl_dlopen=yes
16537 else
16538   echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16540
16541 ac_cv_lib_dl_dlopen=no
16542 fi
16543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16544 LIBS=$ac_check_lib_save_LIBS
16545 fi
16546 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16547 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16548 if test $ac_cv_lib_dl_dlopen = yes; then
16549   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16550 else
16551
16552     lt_cv_dlopen="dyld"
16553     lt_cv_dlopen_libs=
16554     lt_cv_dlopen_self=yes
16555
16556 fi
16557
16558    ;;
16559
16560   *)
16561     echo "$as_me:$LINENO: checking for shl_load" >&5
16562 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16563 if test "${ac_cv_func_shl_load+set}" = set; then
16564   echo $ECHO_N "(cached) $ECHO_C" >&6
16565 else
16566   cat >conftest.$ac_ext <<_ACEOF
16567 #line $LINENO "configure"
16568 /* confdefs.h.  */
16569 _ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h.  */
16573 /* System header to define __stub macros and hopefully few prototypes,
16574     which can conflict with char shl_load (); below.
16575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16576     <limits.h> exists even on freestanding compilers.  */
16577 #ifdef __STDC__
16578 # include <limits.h>
16579 #else
16580 # include <assert.h>
16581 #endif
16582 /* Override any gcc2 internal prototype to avoid an error.  */
16583 #ifdef __cplusplus
16584 extern "C"
16585 {
16586 #endif
16587 /* We use char because int might match the return type of a gcc2
16588    builtin and then its argument prototype would still apply.  */
16589 char shl_load ();
16590 /* The GNU C library defines this for functions which it implements
16591     to always fail with ENOSYS.  Some functions are actually named
16592     something starting with __ and the normal name is an alias.  */
16593 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16594 choke me
16595 #else
16596 char (*f) () = shl_load;
16597 #endif
16598 #ifdef __cplusplus
16599 }
16600 #endif
16601
16602 int
16603 main ()
16604 {
16605 return f != shl_load;
16606   ;
16607   return 0;
16608 }
16609 _ACEOF
16610 rm -f conftest.$ac_objext conftest$ac_exeext
16611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16612   (eval $ac_link) 2>&5
16613   ac_status=$?
16614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615   (exit $ac_status); } &&
16616          { ac_try='test -s conftest$ac_exeext'
16617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618   (eval $ac_try) 2>&5
16619   ac_status=$?
16620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621   (exit $ac_status); }; }; then
16622   ac_cv_func_shl_load=yes
16623 else
16624   echo "$as_me: failed program was:" >&5
16625 sed 's/^/| /' conftest.$ac_ext >&5
16626
16627 ac_cv_func_shl_load=no
16628 fi
16629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16630 fi
16631 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16632 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16633 if test $ac_cv_func_shl_load = yes; then
16634   lt_cv_dlopen="shl_load"
16635 else
16636   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16637 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16638 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16639   echo $ECHO_N "(cached) $ECHO_C" >&6
16640 else
16641   ac_check_lib_save_LIBS=$LIBS
16642 LIBS="-ldld  $LIBS"
16643 cat >conftest.$ac_ext <<_ACEOF
16644 #line $LINENO "configure"
16645 /* confdefs.h.  */
16646 _ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h.  */
16650
16651 /* Override any gcc2 internal prototype to avoid an error.  */
16652 #ifdef __cplusplus
16653 extern "C"
16654 #endif
16655 /* We use char because int might match the return type of a gcc2
16656    builtin and then its argument prototype would still apply.  */
16657 char shl_load ();
16658 int
16659 main ()
16660 {
16661 shl_load ();
16662   ;
16663   return 0;
16664 }
16665 _ACEOF
16666 rm -f conftest.$ac_objext conftest$ac_exeext
16667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16668   (eval $ac_link) 2>&5
16669   ac_status=$?
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); } &&
16672          { ac_try='test -s conftest$ac_exeext'
16673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674   (eval $ac_try) 2>&5
16675   ac_status=$?
16676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677   (exit $ac_status); }; }; then
16678   ac_cv_lib_dld_shl_load=yes
16679 else
16680   echo "$as_me: failed program was:" >&5
16681 sed 's/^/| /' conftest.$ac_ext >&5
16682
16683 ac_cv_lib_dld_shl_load=no
16684 fi
16685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16686 LIBS=$ac_check_lib_save_LIBS
16687 fi
16688 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16689 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16690 if test $ac_cv_lib_dld_shl_load = yes; then
16691   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16692 else
16693   echo "$as_me:$LINENO: checking for dlopen" >&5
16694 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16695 if test "${ac_cv_func_dlopen+set}" = set; then
16696   echo $ECHO_N "(cached) $ECHO_C" >&6
16697 else
16698   cat >conftest.$ac_ext <<_ACEOF
16699 #line $LINENO "configure"
16700 /* confdefs.h.  */
16701 _ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h.  */
16705 /* System header to define __stub macros and hopefully few prototypes,
16706     which can conflict with char dlopen (); below.
16707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16708     <limits.h> exists even on freestanding compilers.  */
16709 #ifdef __STDC__
16710 # include <limits.h>
16711 #else
16712 # include <assert.h>
16713 #endif
16714 /* Override any gcc2 internal prototype to avoid an error.  */
16715 #ifdef __cplusplus
16716 extern "C"
16717 {
16718 #endif
16719 /* We use char because int might match the return type of a gcc2
16720    builtin and then its argument prototype would still apply.  */
16721 char dlopen ();
16722 /* The GNU C library defines this for functions which it implements
16723     to always fail with ENOSYS.  Some functions are actually named
16724     something starting with __ and the normal name is an alias.  */
16725 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16726 choke me
16727 #else
16728 char (*f) () = dlopen;
16729 #endif
16730 #ifdef __cplusplus
16731 }
16732 #endif
16733
16734 int
16735 main ()
16736 {
16737 return f != dlopen;
16738   ;
16739   return 0;
16740 }
16741 _ACEOF
16742 rm -f conftest.$ac_objext conftest$ac_exeext
16743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16744   (eval $ac_link) 2>&5
16745   ac_status=$?
16746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747   (exit $ac_status); } &&
16748          { ac_try='test -s conftest$ac_exeext'
16749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750   (eval $ac_try) 2>&5
16751   ac_status=$?
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); }; }; then
16754   ac_cv_func_dlopen=yes
16755 else
16756   echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16758
16759 ac_cv_func_dlopen=no
16760 fi
16761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16762 fi
16763 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16764 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16765 if test $ac_cv_func_dlopen = yes; then
16766   lt_cv_dlopen="dlopen"
16767 else
16768   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16769 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16770 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16771   echo $ECHO_N "(cached) $ECHO_C" >&6
16772 else
16773   ac_check_lib_save_LIBS=$LIBS
16774 LIBS="-ldl  $LIBS"
16775 cat >conftest.$ac_ext <<_ACEOF
16776 #line $LINENO "configure"
16777 /* confdefs.h.  */
16778 _ACEOF
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h.  */
16782
16783 /* Override any gcc2 internal prototype to avoid an error.  */
16784 #ifdef __cplusplus
16785 extern "C"
16786 #endif
16787 /* We use char because int might match the return type of a gcc2
16788    builtin and then its argument prototype would still apply.  */
16789 char dlopen ();
16790 int
16791 main ()
16792 {
16793 dlopen ();
16794   ;
16795   return 0;
16796 }
16797 _ACEOF
16798 rm -f conftest.$ac_objext conftest$ac_exeext
16799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16800   (eval $ac_link) 2>&5
16801   ac_status=$?
16802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803   (exit $ac_status); } &&
16804          { ac_try='test -s conftest$ac_exeext'
16805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806   (eval $ac_try) 2>&5
16807   ac_status=$?
16808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809   (exit $ac_status); }; }; then
16810   ac_cv_lib_dl_dlopen=yes
16811 else
16812   echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16814
16815 ac_cv_lib_dl_dlopen=no
16816 fi
16817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16818 LIBS=$ac_check_lib_save_LIBS
16819 fi
16820 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16821 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16822 if test $ac_cv_lib_dl_dlopen = yes; then
16823   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16824 else
16825   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16826 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16827 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16828   echo $ECHO_N "(cached) $ECHO_C" >&6
16829 else
16830   ac_check_lib_save_LIBS=$LIBS
16831 LIBS="-lsvld  $LIBS"
16832 cat >conftest.$ac_ext <<_ACEOF
16833 #line $LINENO "configure"
16834 /* confdefs.h.  */
16835 _ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h.  */
16839
16840 /* Override any gcc2 internal prototype to avoid an error.  */
16841 #ifdef __cplusplus
16842 extern "C"
16843 #endif
16844 /* We use char because int might match the return type of a gcc2
16845    builtin and then its argument prototype would still apply.  */
16846 char dlopen ();
16847 int
16848 main ()
16849 {
16850 dlopen ();
16851   ;
16852   return 0;
16853 }
16854 _ACEOF
16855 rm -f conftest.$ac_objext conftest$ac_exeext
16856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16857   (eval $ac_link) 2>&5
16858   ac_status=$?
16859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860   (exit $ac_status); } &&
16861          { ac_try='test -s conftest$ac_exeext'
16862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863   (eval $ac_try) 2>&5
16864   ac_status=$?
16865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866   (exit $ac_status); }; }; then
16867   ac_cv_lib_svld_dlopen=yes
16868 else
16869   echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16871
16872 ac_cv_lib_svld_dlopen=no
16873 fi
16874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16875 LIBS=$ac_check_lib_save_LIBS
16876 fi
16877 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16878 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16879 if test $ac_cv_lib_svld_dlopen = yes; then
16880   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16881 else
16882   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16883 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16884 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16885   echo $ECHO_N "(cached) $ECHO_C" >&6
16886 else
16887   ac_check_lib_save_LIBS=$LIBS
16888 LIBS="-ldld  $LIBS"
16889 cat >conftest.$ac_ext <<_ACEOF
16890 #line $LINENO "configure"
16891 /* confdefs.h.  */
16892 _ACEOF
16893 cat confdefs.h >>conftest.$ac_ext
16894 cat >>conftest.$ac_ext <<_ACEOF
16895 /* end confdefs.h.  */
16896
16897 /* Override any gcc2 internal prototype to avoid an error.  */
16898 #ifdef __cplusplus
16899 extern "C"
16900 #endif
16901 /* We use char because int might match the return type of a gcc2
16902    builtin and then its argument prototype would still apply.  */
16903 char dld_link ();
16904 int
16905 main ()
16906 {
16907 dld_link ();
16908   ;
16909   return 0;
16910 }
16911 _ACEOF
16912 rm -f conftest.$ac_objext conftest$ac_exeext
16913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16914   (eval $ac_link) 2>&5
16915   ac_status=$?
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); } &&
16918          { ac_try='test -s conftest$ac_exeext'
16919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920   (eval $ac_try) 2>&5
16921   ac_status=$?
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); }; }; then
16924   ac_cv_lib_dld_dld_link=yes
16925 else
16926   echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16928
16929 ac_cv_lib_dld_dld_link=no
16930 fi
16931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16932 LIBS=$ac_check_lib_save_LIBS
16933 fi
16934 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16935 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16936 if test $ac_cv_lib_dld_dld_link = yes; then
16937   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16938 fi
16939
16940
16941 fi
16942
16943
16944 fi
16945
16946
16947 fi
16948
16949
16950 fi
16951
16952
16953 fi
16954
16955     ;;
16956   esac
16957
16958   if test "x$lt_cv_dlopen" != xno; then
16959     enable_dlopen=yes
16960   else
16961     enable_dlopen=no
16962   fi
16963
16964   case $lt_cv_dlopen in
16965   dlopen)
16966     save_CPPFLAGS="$CPPFLAGS"
16967     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16968
16969     save_LDFLAGS="$LDFLAGS"
16970     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16971
16972     save_LIBS="$LIBS"
16973     LIBS="$lt_cv_dlopen_libs $LIBS"
16974
16975     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16976 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16977 if test "${lt_cv_dlopen_self+set}" = set; then
16978   echo $ECHO_N "(cached) $ECHO_C" >&6
16979 else
16980           if test "$cross_compiling" = yes; then :
16981   lt_cv_dlopen_self=cross
16982 else
16983   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16984   lt_status=$lt_dlunknown
16985   cat > conftest.$ac_ext <<EOF
16986 #line 16986 "configure"
16987 #include "confdefs.h"
16988
16989 #if HAVE_DLFCN_H
16990 #include <dlfcn.h>
16991 #endif
16992
16993 #include <stdio.h>
16994
16995 #ifdef RTLD_GLOBAL
16996 #  define LT_DLGLOBAL           RTLD_GLOBAL
16997 #else
16998 #  ifdef DL_GLOBAL
16999 #    define LT_DLGLOBAL         DL_GLOBAL
17000 #  else
17001 #    define LT_DLGLOBAL         0
17002 #  endif
17003 #endif
17004
17005 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17006    find out it does not work in some platform. */
17007 #ifndef LT_DLLAZY_OR_NOW
17008 #  ifdef RTLD_LAZY
17009 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17010 #  else
17011 #    ifdef DL_LAZY
17012 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17013 #    else
17014 #      ifdef RTLD_NOW
17015 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17016 #      else
17017 #        ifdef DL_NOW
17018 #          define LT_DLLAZY_OR_NOW      DL_NOW
17019 #        else
17020 #          define LT_DLLAZY_OR_NOW      0
17021 #        endif
17022 #      endif
17023 #    endif
17024 #  endif
17025 #endif
17026
17027 #ifdef __cplusplus
17028 extern "C" void exit (int);
17029 #endif
17030
17031 void fnord() { int i=42;}
17032 int main ()
17033 {
17034   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17035   int status = $lt_dlunknown;
17036
17037   if (self)
17038     {
17039       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17040       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17041       /* dlclose (self); */
17042     }
17043
17044     exit (status);
17045 }
17046 EOF
17047   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17048   (eval $ac_link) 2>&5
17049   ac_status=$?
17050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17052     (./conftest; exit; ) 2>/dev/null
17053     lt_status=$?
17054     case x$lt_status in
17055       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17056       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17057       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17058     esac
17059   else :
17060     # compilation failed
17061     lt_cv_dlopen_self=no
17062   fi
17063 fi
17064 rm -fr conftest*
17065
17066
17067 fi
17068 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17069 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17070
17071     if test "x$lt_cv_dlopen_self" = xyes; then
17072       LDFLAGS="$LDFLAGS $link_static_flag"
17073       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17074 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17075 if test "${lt_cv_dlopen_self_static+set}" = set; then
17076   echo $ECHO_N "(cached) $ECHO_C" >&6
17077 else
17078           if test "$cross_compiling" = yes; then :
17079   lt_cv_dlopen_self_static=cross
17080 else
17081   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17082   lt_status=$lt_dlunknown
17083   cat > conftest.$ac_ext <<EOF
17084 #line 17084 "configure"
17085 #include "confdefs.h"
17086
17087 #if HAVE_DLFCN_H
17088 #include <dlfcn.h>
17089 #endif
17090
17091 #include <stdio.h>
17092
17093 #ifdef RTLD_GLOBAL
17094 #  define LT_DLGLOBAL           RTLD_GLOBAL
17095 #else
17096 #  ifdef DL_GLOBAL
17097 #    define LT_DLGLOBAL         DL_GLOBAL
17098 #  else
17099 #    define LT_DLGLOBAL         0
17100 #  endif
17101 #endif
17102
17103 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17104    find out it does not work in some platform. */
17105 #ifndef LT_DLLAZY_OR_NOW
17106 #  ifdef RTLD_LAZY
17107 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17108 #  else
17109 #    ifdef DL_LAZY
17110 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17111 #    else
17112 #      ifdef RTLD_NOW
17113 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17114 #      else
17115 #        ifdef DL_NOW
17116 #          define LT_DLLAZY_OR_NOW      DL_NOW
17117 #        else
17118 #          define LT_DLLAZY_OR_NOW      0
17119 #        endif
17120 #      endif
17121 #    endif
17122 #  endif
17123 #endif
17124
17125 #ifdef __cplusplus
17126 extern "C" void exit (int);
17127 #endif
17128
17129 void fnord() { int i=42;}
17130 int main ()
17131 {
17132   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17133   int status = $lt_dlunknown;
17134
17135   if (self)
17136     {
17137       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17138       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17139       /* dlclose (self); */
17140     }
17141
17142     exit (status);
17143 }
17144 EOF
17145   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17146   (eval $ac_link) 2>&5
17147   ac_status=$?
17148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17150     (./conftest; exit; ) 2>/dev/null
17151     lt_status=$?
17152     case x$lt_status in
17153       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17154       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17155       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17156     esac
17157   else :
17158     # compilation failed
17159     lt_cv_dlopen_self_static=no
17160   fi
17161 fi
17162 rm -fr conftest*
17163
17164
17165 fi
17166 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17167 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17168     fi
17169
17170     CPPFLAGS="$save_CPPFLAGS"
17171     LDFLAGS="$save_LDFLAGS"
17172     LIBS="$save_LIBS"
17173     ;;
17174   esac
17175
17176   case $lt_cv_dlopen_self in
17177   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17178   *) enable_dlopen_self=unknown ;;
17179   esac
17180
17181   case $lt_cv_dlopen_self_static in
17182   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17183   *) enable_dlopen_self_static=unknown ;;
17184   esac
17185 fi
17186
17187
17188 # The else clause should only fire when bootstrapping the
17189 # libtool distribution, otherwise you forgot to ship ltmain.sh
17190 # with your package, and you will get complaints that there are
17191 # no rules to generate ltmain.sh.
17192 if test -f "$ltmain"; then
17193   # See if we are running on zsh, and set the options which allow our commands through
17194   # without removal of \ escapes.
17195   if test -n "${ZSH_VERSION+set}" ; then
17196     setopt NO_GLOB_SUBST
17197   fi
17198   # Now quote all the things that may contain metacharacters while being
17199   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17200   # variables and quote the copies for generation of the libtool script.
17201   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17202     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17203     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17204     deplibs_check_method reload_flag reload_cmds need_locks \
17205     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17206     lt_cv_sys_global_symbol_to_c_name_address \
17207     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17208     old_postinstall_cmds old_postuninstall_cmds \
17209     compiler_GCJ \
17210     CC_GCJ \
17211     LD_GCJ \
17212     lt_prog_compiler_wl_GCJ \
17213     lt_prog_compiler_pic_GCJ \
17214     lt_prog_compiler_static_GCJ \
17215     lt_prog_compiler_no_builtin_flag_GCJ \
17216     export_dynamic_flag_spec_GCJ \
17217     thread_safe_flag_spec_GCJ \
17218     whole_archive_flag_spec_GCJ \
17219     enable_shared_with_static_runtimes_GCJ \
17220     old_archive_cmds_GCJ \
17221     old_archive_from_new_cmds_GCJ \
17222     predep_objects_GCJ \
17223     postdep_objects_GCJ \
17224     predeps_GCJ \
17225     postdeps_GCJ \
17226     compiler_lib_search_path_GCJ \
17227     archive_cmds_GCJ \
17228     archive_expsym_cmds_GCJ \
17229     postinstall_cmds_GCJ \
17230     postuninstall_cmds_GCJ \
17231     old_archive_from_expsyms_cmds_GCJ \
17232     allow_undefined_flag_GCJ \
17233     no_undefined_flag_GCJ \
17234     export_symbols_cmds_GCJ \
17235     hardcode_libdir_flag_spec_GCJ \
17236     hardcode_libdir_flag_spec_ld_GCJ \
17237     hardcode_libdir_separator_GCJ \
17238     hardcode_automatic_GCJ \
17239     module_cmds_GCJ \
17240     module_expsym_cmds_GCJ \
17241     lt_cv_prog_compiler_c_o_GCJ \
17242     exclude_expsyms_GCJ \
17243     include_expsyms_GCJ; do
17244
17245     case $var in
17246     old_archive_cmds_GCJ | \
17247     old_archive_from_new_cmds_GCJ | \
17248     archive_cmds_GCJ | \
17249     archive_expsym_cmds_GCJ | \
17250     module_cmds_GCJ | \
17251     module_expsym_cmds_GCJ | \
17252     old_archive_from_expsyms_cmds_GCJ | \
17253     export_symbols_cmds_GCJ | \
17254     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17255     postinstall_cmds | postuninstall_cmds | \
17256     old_postinstall_cmds | old_postuninstall_cmds | \
17257     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17258       # Double-quote double-evaled strings.
17259       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17260       ;;
17261     *)
17262       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17263       ;;
17264     esac
17265   done
17266
17267   case $lt_echo in
17268   *'\$0 --fallback-echo"')
17269     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17270     ;;
17271   esac
17272
17273 cfgfile="$ofile"
17274
17275   cat <<__EOF__ >> "$cfgfile"
17276 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17277
17278 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17279
17280 # Shell to use when invoking shell scripts.
17281 SHELL=$lt_SHELL
17282
17283 # Whether or not to build shared libraries.
17284 build_libtool_libs=$enable_shared
17285
17286 # Whether or not to build static libraries.
17287 build_old_libs=$enable_static
17288
17289 # Whether or not to add -lc for building shared libraries.
17290 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17291
17292 # Whether or not to disallow shared libs when runtime libs are static
17293 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17294
17295 # Whether or not to optimize for fast installation.
17296 fast_install=$enable_fast_install
17297
17298 # The host system.
17299 host_alias=$host_alias
17300 host=$host
17301
17302 # An echo program that does not interpret backslashes.
17303 echo=$lt_echo
17304
17305 # The archiver.
17306 AR=$lt_AR
17307 AR_FLAGS=$lt_AR_FLAGS
17308
17309 # A C compiler.
17310 LTCC=$lt_LTCC
17311
17312 # A language-specific compiler.
17313 CC=$lt_compiler_GCJ
17314
17315 # Is the compiler the GNU C compiler?
17316 with_gcc=$GCC_GCJ
17317
17318 # An ERE matcher.
17319 EGREP=$lt_EGREP
17320
17321 # The linker used to build libraries.
17322 LD=$lt_LD_GCJ
17323
17324 # Whether we need hard or soft links.
17325 LN_S=$lt_LN_S
17326
17327 # A BSD-compatible nm program.
17328 NM=$lt_NM
17329
17330 # A symbol stripping program
17331 STRIP=$STRIP
17332
17333 # Used to examine libraries when file_magic_cmd begins "file"
17334 MAGIC_CMD=$MAGIC_CMD
17335
17336 # Used on cygwin: DLL creation program.
17337 DLLTOOL="$DLLTOOL"
17338
17339 # Used on cygwin: object dumper.
17340 OBJDUMP="$OBJDUMP"
17341
17342 # Used on cygwin: assembler.
17343 AS="$AS"
17344
17345 # The name of the directory that contains temporary libtool files.
17346 objdir=$objdir
17347
17348 # How to create reloadable object files.
17349 reload_flag=$lt_reload_flag
17350 reload_cmds=$lt_reload_cmds
17351
17352 # How to pass a linker flag through the compiler.
17353 wl=$lt_lt_prog_compiler_wl_GCJ
17354
17355 # Object file suffix (normally "o").
17356 objext="$ac_objext"
17357
17358 # Old archive suffix (normally "a").
17359 libext="$libext"
17360
17361 # Shared library suffix (normally ".so").
17362 shrext='$shrext'
17363
17364 # Executable file suffix (normally "").
17365 exeext="$exeext"
17366
17367 # Additional compiler flags for building library objects.
17368 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17369 pic_mode=$pic_mode
17370
17371 # What is the maximum length of a command?
17372 max_cmd_len=$lt_cv_sys_max_cmd_len
17373
17374 # Does compiler simultaneously support -c and -o options?
17375 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17376
17377 # Must we lock files when doing compilation ?
17378 need_locks=$lt_need_locks
17379
17380 # Do we need the lib prefix for modules?
17381 need_lib_prefix=$need_lib_prefix
17382
17383 # Do we need a version for libraries?
17384 need_version=$need_version
17385
17386 # Whether dlopen is supported.
17387 dlopen_support=$enable_dlopen
17388
17389 # Whether dlopen of programs is supported.
17390 dlopen_self=$enable_dlopen_self
17391
17392 # Whether dlopen of statically linked programs is supported.
17393 dlopen_self_static=$enable_dlopen_self_static
17394
17395 # Compiler flag to prevent dynamic linking.
17396 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17397
17398 # Compiler flag to turn off builtin functions.
17399 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17400
17401 # Compiler flag to allow reflexive dlopens.
17402 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17403
17404 # Compiler flag to generate shared objects directly from archives.
17405 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17406
17407 # Compiler flag to generate thread-safe objects.
17408 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17409
17410 # Library versioning type.
17411 version_type=$version_type
17412
17413 # Format of library name prefix.
17414 libname_spec=$lt_libname_spec
17415
17416 # List of archive names.  First name is the real one, the rest are links.
17417 # The last name is the one that the linker finds with -lNAME.
17418 library_names_spec=$lt_library_names_spec
17419
17420 # The coded name of the library, if different from the real name.
17421 soname_spec=$lt_soname_spec
17422
17423 # Commands used to build and install an old-style archive.
17424 RANLIB=$lt_RANLIB
17425 old_archive_cmds=$lt_old_archive_cmds_GCJ
17426 old_postinstall_cmds=$lt_old_postinstall_cmds
17427 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17428
17429 # Create an old-style archive from a shared archive.
17430 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17431
17432 # Create a temporary old-style archive to link instead of a shared archive.
17433 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17434
17435 # Commands used to build and install a shared archive.
17436 archive_cmds=$lt_archive_cmds_GCJ
17437 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17438 postinstall_cmds=$lt_postinstall_cmds
17439 postuninstall_cmds=$lt_postuninstall_cmds
17440
17441 # Commands used to build a loadable module (assumed same as above if empty)
17442 module_cmds=$lt_module_cmds_GCJ
17443 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17444
17445 # Commands to strip libraries.
17446 old_striplib=$lt_old_striplib
17447 striplib=$lt_striplib
17448
17449 # Dependencies to place before the objects being linked to create a
17450 # shared library.
17451 predep_objects=$lt_predep_objects_GCJ
17452
17453 # Dependencies to place after the objects being linked to create a
17454 # shared library.
17455 postdep_objects=$lt_postdep_objects_GCJ
17456
17457 # Dependencies to place before the objects being linked to create a
17458 # shared library.
17459 predeps=$lt_predeps_GCJ
17460
17461 # Dependencies to place after the objects being linked to create a
17462 # shared library.
17463 postdeps=$lt_postdeps_GCJ
17464
17465 # The library search path used internally by the compiler when linking
17466 # a shared library.
17467 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17468
17469 # Method to check whether dependent libraries are shared objects.
17470 deplibs_check_method=$lt_deplibs_check_method
17471
17472 # Command to use when deplibs_check_method == file_magic.
17473 file_magic_cmd=$lt_file_magic_cmd
17474
17475 # Flag that allows shared libraries with undefined symbols to be built.
17476 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17477
17478 # Flag that forces no undefined symbols.
17479 no_undefined_flag=$lt_no_undefined_flag_GCJ
17480
17481 # Commands used to finish a libtool library installation in a directory.
17482 finish_cmds=$lt_finish_cmds
17483
17484 # Same as above, but a single script fragment to be evaled but not shown.
17485 finish_eval=$lt_finish_eval
17486
17487 # Take the output of nm and produce a listing of raw symbols and C names.
17488 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17489
17490 # Transform the output of nm in a proper C declaration
17491 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17492
17493 # Transform the output of nm in a C name address pair
17494 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17495
17496 # This is the shared library runtime path variable.
17497 runpath_var=$runpath_var
17498
17499 # This is the shared library path variable.
17500 shlibpath_var=$shlibpath_var
17501
17502 # Is shlibpath searched before the hard-coded library search path?
17503 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17504
17505 # How to hardcode a shared library path into an executable.
17506 hardcode_action=$hardcode_action_GCJ
17507
17508 # Whether we should hardcode library paths into libraries.
17509 hardcode_into_libs=$hardcode_into_libs
17510
17511 # Flag to hardcode \$libdir into a binary during linking.
17512 # This must work even if \$libdir does not exist.
17513 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17514
17515 # If ld is used when linking, flag to hardcode \$libdir into
17516 # a binary during linking. This must work even if \$libdir does
17517 # not exist.
17518 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17519
17520 # Whether we need a single -rpath flag with a separated argument.
17521 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17522
17523 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17524 # resulting binary.
17525 hardcode_direct=$hardcode_direct_GCJ
17526
17527 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17528 # resulting binary.
17529 hardcode_minus_L=$hardcode_minus_L_GCJ
17530
17531 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17532 # the resulting binary.
17533 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17534
17535 # Set to yes if building a shared library automatically hardcodes DIR into the library
17536 # and all subsequent libraries and executables linked against it.
17537 hardcode_automatic=$hardcode_automatic_GCJ
17538
17539 # Variables whose values should be saved in libtool wrapper scripts and
17540 # restored at relink time.
17541 variables_saved_for_relink="$variables_saved_for_relink"
17542
17543 # Whether libtool must link a program against all its dependency libraries.
17544 link_all_deplibs=$link_all_deplibs_GCJ
17545
17546 # Compile-time system search path for libraries
17547 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17548
17549 # Run-time system search path for libraries
17550 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17551
17552 # Fix the shell variable \$srcfile for the compiler.
17553 fix_srcfile_path="$fix_srcfile_path_GCJ"
17554
17555 # Set to yes if exported symbols are required.
17556 always_export_symbols=$always_export_symbols_GCJ
17557
17558 # The commands to list exported symbols.
17559 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17560
17561 # The commands to extract the exported symbol list from a shared archive.
17562 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17563
17564 # Symbols that should not be listed in the preloaded symbols.
17565 exclude_expsyms=$lt_exclude_expsyms_GCJ
17566
17567 # Symbols that must always be exported.
17568 include_expsyms=$lt_include_expsyms_GCJ
17569
17570 # ### END LIBTOOL TAG CONFIG: $tagname
17571
17572 __EOF__
17573
17574
17575 else
17576   # If there is no Makefile yet, we rely on a make rule to execute
17577   # `config.status --recheck' to rerun these tests and create the
17578   # libtool script then.
17579   test -f Makefile && make "$ltmain"
17580 fi
17581
17582
17583 ac_ext=c
17584 ac_cpp='$CPP $CPPFLAGS'
17585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17588
17589 CC="$lt_save_CC"
17590
17591         else
17592           tagname=""
17593         fi
17594         ;;
17595
17596       RC)
17597
17598
17599
17600 # Source file extension for RC test sources.
17601 ac_ext=rc
17602
17603 # Object file extension for compiled RC test sources.
17604 objext=o
17605 objext_RC=$objext
17606
17607 # Code to be used in simple compile tests
17608 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17609
17610 # Code to be used in simple link tests
17611 lt_simple_link_test_code="$lt_simple_compile_test_code"
17612
17613 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17614
17615 # If no C compiler was specified, use CC.
17616 LTCC=${LTCC-"$CC"}
17617
17618 # Allow CC to be a program name with arguments.
17619 compiler=$CC
17620
17621
17622 # Allow CC to be a program name with arguments.
17623 lt_save_CC="$CC"
17624 CC=${RC-"windres"}
17625 compiler=$CC
17626 compiler_RC=$CC
17627 lt_cv_prog_compiler_c_o_RC=yes
17628
17629 # The else clause should only fire when bootstrapping the
17630 # libtool distribution, otherwise you forgot to ship ltmain.sh
17631 # with your package, and you will get complaints that there are
17632 # no rules to generate ltmain.sh.
17633 if test -f "$ltmain"; then
17634   # See if we are running on zsh, and set the options which allow our commands through
17635   # without removal of \ escapes.
17636   if test -n "${ZSH_VERSION+set}" ; then
17637     setopt NO_GLOB_SUBST
17638   fi
17639   # Now quote all the things that may contain metacharacters while being
17640   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17641   # variables and quote the copies for generation of the libtool script.
17642   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17643     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17644     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17645     deplibs_check_method reload_flag reload_cmds need_locks \
17646     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17647     lt_cv_sys_global_symbol_to_c_name_address \
17648     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17649     old_postinstall_cmds old_postuninstall_cmds \
17650     compiler_RC \
17651     CC_RC \
17652     LD_RC \
17653     lt_prog_compiler_wl_RC \
17654     lt_prog_compiler_pic_RC \
17655     lt_prog_compiler_static_RC \
17656     lt_prog_compiler_no_builtin_flag_RC \
17657     export_dynamic_flag_spec_RC \
17658     thread_safe_flag_spec_RC \
17659     whole_archive_flag_spec_RC \
17660     enable_shared_with_static_runtimes_RC \
17661     old_archive_cmds_RC \
17662     old_archive_from_new_cmds_RC \
17663     predep_objects_RC \
17664     postdep_objects_RC \
17665     predeps_RC \
17666     postdeps_RC \
17667     compiler_lib_search_path_RC \
17668     archive_cmds_RC \
17669     archive_expsym_cmds_RC \
17670     postinstall_cmds_RC \
17671     postuninstall_cmds_RC \
17672     old_archive_from_expsyms_cmds_RC \
17673     allow_undefined_flag_RC \
17674     no_undefined_flag_RC \
17675     export_symbols_cmds_RC \
17676     hardcode_libdir_flag_spec_RC \
17677     hardcode_libdir_flag_spec_ld_RC \
17678     hardcode_libdir_separator_RC \
17679     hardcode_automatic_RC \
17680     module_cmds_RC \
17681     module_expsym_cmds_RC \
17682     lt_cv_prog_compiler_c_o_RC \
17683     exclude_expsyms_RC \
17684     include_expsyms_RC; do
17685
17686     case $var in
17687     old_archive_cmds_RC | \
17688     old_archive_from_new_cmds_RC | \
17689     archive_cmds_RC | \
17690     archive_expsym_cmds_RC | \
17691     module_cmds_RC | \
17692     module_expsym_cmds_RC | \
17693     old_archive_from_expsyms_cmds_RC | \
17694     export_symbols_cmds_RC | \
17695     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17696     postinstall_cmds | postuninstall_cmds | \
17697     old_postinstall_cmds | old_postuninstall_cmds | \
17698     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17699       # Double-quote double-evaled strings.
17700       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17701       ;;
17702     *)
17703       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17704       ;;
17705     esac
17706   done
17707
17708   case $lt_echo in
17709   *'\$0 --fallback-echo"')
17710     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17711     ;;
17712   esac
17713
17714 cfgfile="$ofile"
17715
17716   cat <<__EOF__ >> "$cfgfile"
17717 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17718
17719 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17720
17721 # Shell to use when invoking shell scripts.
17722 SHELL=$lt_SHELL
17723
17724 # Whether or not to build shared libraries.
17725 build_libtool_libs=$enable_shared
17726
17727 # Whether or not to build static libraries.
17728 build_old_libs=$enable_static
17729
17730 # Whether or not to add -lc for building shared libraries.
17731 build_libtool_need_lc=$archive_cmds_need_lc_RC
17732
17733 # Whether or not to disallow shared libs when runtime libs are static
17734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17735
17736 # Whether or not to optimize for fast installation.
17737 fast_install=$enable_fast_install
17738
17739 # The host system.
17740 host_alias=$host_alias
17741 host=$host
17742
17743 # An echo program that does not interpret backslashes.
17744 echo=$lt_echo
17745
17746 # The archiver.
17747 AR=$lt_AR
17748 AR_FLAGS=$lt_AR_FLAGS
17749
17750 # A C compiler.
17751 LTCC=$lt_LTCC
17752
17753 # A language-specific compiler.
17754 CC=$lt_compiler_RC
17755
17756 # Is the compiler the GNU C compiler?
17757 with_gcc=$GCC_RC
17758
17759 # An ERE matcher.
17760 EGREP=$lt_EGREP
17761
17762 # The linker used to build libraries.
17763 LD=$lt_LD_RC
17764
17765 # Whether we need hard or soft links.
17766 LN_S=$lt_LN_S
17767
17768 # A BSD-compatible nm program.
17769 NM=$lt_NM
17770
17771 # A symbol stripping program
17772 STRIP=$STRIP
17773
17774 # Used to examine libraries when file_magic_cmd begins "file"
17775 MAGIC_CMD=$MAGIC_CMD
17776
17777 # Used on cygwin: DLL creation program.
17778 DLLTOOL="$DLLTOOL"
17779
17780 # Used on cygwin: object dumper.
17781 OBJDUMP="$OBJDUMP"
17782
17783 # Used on cygwin: assembler.
17784 AS="$AS"
17785
17786 # The name of the directory that contains temporary libtool files.
17787 objdir=$objdir
17788
17789 # How to create reloadable object files.
17790 reload_flag=$lt_reload_flag
17791 reload_cmds=$lt_reload_cmds
17792
17793 # How to pass a linker flag through the compiler.
17794 wl=$lt_lt_prog_compiler_wl_RC
17795
17796 # Object file suffix (normally "o").
17797 objext="$ac_objext"
17798
17799 # Old archive suffix (normally "a").
17800 libext="$libext"
17801
17802 # Shared library suffix (normally ".so").
17803 shrext='$shrext'
17804
17805 # Executable file suffix (normally "").
17806 exeext="$exeext"
17807
17808 # Additional compiler flags for building library objects.
17809 pic_flag=$lt_lt_prog_compiler_pic_RC
17810 pic_mode=$pic_mode
17811
17812 # What is the maximum length of a command?
17813 max_cmd_len=$lt_cv_sys_max_cmd_len
17814
17815 # Does compiler simultaneously support -c and -o options?
17816 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17817
17818 # Must we lock files when doing compilation ?
17819 need_locks=$lt_need_locks
17820
17821 # Do we need the lib prefix for modules?
17822 need_lib_prefix=$need_lib_prefix
17823
17824 # Do we need a version for libraries?
17825 need_version=$need_version
17826
17827 # Whether dlopen is supported.
17828 dlopen_support=$enable_dlopen
17829
17830 # Whether dlopen of programs is supported.
17831 dlopen_self=$enable_dlopen_self
17832
17833 # Whether dlopen of statically linked programs is supported.
17834 dlopen_self_static=$enable_dlopen_self_static
17835
17836 # Compiler flag to prevent dynamic linking.
17837 link_static_flag=$lt_lt_prog_compiler_static_RC
17838
17839 # Compiler flag to turn off builtin functions.
17840 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17841
17842 # Compiler flag to allow reflexive dlopens.
17843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17844
17845 # Compiler flag to generate shared objects directly from archives.
17846 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17847
17848 # Compiler flag to generate thread-safe objects.
17849 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17850
17851 # Library versioning type.
17852 version_type=$version_type
17853
17854 # Format of library name prefix.
17855 libname_spec=$lt_libname_spec
17856
17857 # List of archive names.  First name is the real one, the rest are links.
17858 # The last name is the one that the linker finds with -lNAME.
17859 library_names_spec=$lt_library_names_spec
17860
17861 # The coded name of the library, if different from the real name.
17862 soname_spec=$lt_soname_spec
17863
17864 # Commands used to build and install an old-style archive.
17865 RANLIB=$lt_RANLIB
17866 old_archive_cmds=$lt_old_archive_cmds_RC
17867 old_postinstall_cmds=$lt_old_postinstall_cmds
17868 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17869
17870 # Create an old-style archive from a shared archive.
17871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17872
17873 # Create a temporary old-style archive to link instead of a shared archive.
17874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17875
17876 # Commands used to build and install a shared archive.
17877 archive_cmds=$lt_archive_cmds_RC
17878 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17879 postinstall_cmds=$lt_postinstall_cmds
17880 postuninstall_cmds=$lt_postuninstall_cmds
17881
17882 # Commands used to build a loadable module (assumed same as above if empty)
17883 module_cmds=$lt_module_cmds_RC
17884 module_expsym_cmds=$lt_module_expsym_cmds_RC
17885
17886 # Commands to strip libraries.
17887 old_striplib=$lt_old_striplib
17888 striplib=$lt_striplib
17889
17890 # Dependencies to place before the objects being linked to create a
17891 # shared library.
17892 predep_objects=$lt_predep_objects_RC
17893
17894 # Dependencies to place after the objects being linked to create a
17895 # shared library.
17896 postdep_objects=$lt_postdep_objects_RC
17897
17898 # Dependencies to place before the objects being linked to create a
17899 # shared library.
17900 predeps=$lt_predeps_RC
17901
17902 # Dependencies to place after the objects being linked to create a
17903 # shared library.
17904 postdeps=$lt_postdeps_RC
17905
17906 # The library search path used internally by the compiler when linking
17907 # a shared library.
17908 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17909
17910 # Method to check whether dependent libraries are shared objects.
17911 deplibs_check_method=$lt_deplibs_check_method
17912
17913 # Command to use when deplibs_check_method == file_magic.
17914 file_magic_cmd=$lt_file_magic_cmd
17915
17916 # Flag that allows shared libraries with undefined symbols to be built.
17917 allow_undefined_flag=$lt_allow_undefined_flag_RC
17918
17919 # Flag that forces no undefined symbols.
17920 no_undefined_flag=$lt_no_undefined_flag_RC
17921
17922 # Commands used to finish a libtool library installation in a directory.
17923 finish_cmds=$lt_finish_cmds
17924
17925 # Same as above, but a single script fragment to be evaled but not shown.
17926 finish_eval=$lt_finish_eval
17927
17928 # Take the output of nm and produce a listing of raw symbols and C names.
17929 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17930
17931 # Transform the output of nm in a proper C declaration
17932 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17933
17934 # Transform the output of nm in a C name address pair
17935 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17936
17937 # This is the shared library runtime path variable.
17938 runpath_var=$runpath_var
17939
17940 # This is the shared library path variable.
17941 shlibpath_var=$shlibpath_var
17942
17943 # Is shlibpath searched before the hard-coded library search path?
17944 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17945
17946 # How to hardcode a shared library path into an executable.
17947 hardcode_action=$hardcode_action_RC
17948
17949 # Whether we should hardcode library paths into libraries.
17950 hardcode_into_libs=$hardcode_into_libs
17951
17952 # Flag to hardcode \$libdir into a binary during linking.
17953 # This must work even if \$libdir does not exist.
17954 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17955
17956 # If ld is used when linking, flag to hardcode \$libdir into
17957 # a binary during linking. This must work even if \$libdir does
17958 # not exist.
17959 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17960
17961 # Whether we need a single -rpath flag with a separated argument.
17962 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17963
17964 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17965 # resulting binary.
17966 hardcode_direct=$hardcode_direct_RC
17967
17968 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17969 # resulting binary.
17970 hardcode_minus_L=$hardcode_minus_L_RC
17971
17972 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17973 # the resulting binary.
17974 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17975
17976 # Set to yes if building a shared library automatically hardcodes DIR into the library
17977 # and all subsequent libraries and executables linked against it.
17978 hardcode_automatic=$hardcode_automatic_RC
17979
17980 # Variables whose values should be saved in libtool wrapper scripts and
17981 # restored at relink time.
17982 variables_saved_for_relink="$variables_saved_for_relink"
17983
17984 # Whether libtool must link a program against all its dependency libraries.
17985 link_all_deplibs=$link_all_deplibs_RC
17986
17987 # Compile-time system search path for libraries
17988 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17989
17990 # Run-time system search path for libraries
17991 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17992
17993 # Fix the shell variable \$srcfile for the compiler.
17994 fix_srcfile_path="$fix_srcfile_path_RC"
17995
17996 # Set to yes if exported symbols are required.
17997 always_export_symbols=$always_export_symbols_RC
17998
17999 # The commands to list exported symbols.
18000 export_symbols_cmds=$lt_export_symbols_cmds_RC
18001
18002 # The commands to extract the exported symbol list from a shared archive.
18003 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18004
18005 # Symbols that should not be listed in the preloaded symbols.
18006 exclude_expsyms=$lt_exclude_expsyms_RC
18007
18008 # Symbols that must always be exported.
18009 include_expsyms=$lt_include_expsyms_RC
18010
18011 # ### END LIBTOOL TAG CONFIG: $tagname
18012
18013 __EOF__
18014
18015
18016 else
18017   # If there is no Makefile yet, we rely on a make rule to execute
18018   # `config.status --recheck' to rerun these tests and create the
18019   # libtool script then.
18020   test -f Makefile && make "$ltmain"
18021 fi
18022
18023
18024 ac_ext=c
18025 ac_cpp='$CPP $CPPFLAGS'
18026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18029
18030 CC="$lt_save_CC"
18031
18032         ;;
18033
18034       *)
18035         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18036 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18037    { (exit 1); exit 1; }; }
18038         ;;
18039       esac
18040
18041       # Append the new tag name to the list of available tags.
18042       if test -n "$tagname" ; then
18043       available_tags="$available_tags $tagname"
18044     fi
18045     fi
18046   done
18047   IFS="$lt_save_ifs"
18048
18049   # Now substitute the updated list of available tags.
18050   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18051     mv "${ofile}T" "$ofile"
18052     chmod +x "$ofile"
18053   else
18054     rm -f "${ofile}T"
18055     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18056 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18057    { (exit 1); exit 1; }; }
18058   fi
18059 fi
18060
18061
18062
18063 # This can be used to rebuild libtool when needed
18064 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18065
18066 # Always use our own libtool.
18067 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18068
18069 # Prevent multiple expansion
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091 # Extract the first word of "dot", so it can be a program name with args.
18092 set dummy dot; ac_word=$2
18093 echo "$as_me:$LINENO: checking for $ac_word" >&5
18094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18095 if test "${ac_cv_path_DOT+set}" = set; then
18096   echo $ECHO_N "(cached) $ECHO_C" >&6
18097 else
18098   case $DOT in
18099   [\\/]* | ?:[\\/]*)
18100   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18101   ;;
18102   *)
18103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18104 for as_dir in $PATH
18105 do
18106   IFS=$as_save_IFS
18107   test -z "$as_dir" && as_dir=.
18108   for ac_exec_ext in '' $ac_executable_extensions; do
18109   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18110     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18112     break 2
18113   fi
18114 done
18115 done
18116
18117   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18118   ;;
18119 esac
18120 fi
18121 DOT=$ac_cv_path_DOT
18122
18123 if test -n "$DOT"; then
18124   echo "$as_me:$LINENO: result: $DOT" >&5
18125 echo "${ECHO_T}$DOT" >&6
18126 else
18127   echo "$as_me:$LINENO: result: no" >&5
18128 echo "${ECHO_T}no" >&6
18129 fi
18130
18131 # Extract the first word of "etags", so it can be a program name with args.
18132 set dummy etags; ac_word=$2
18133 echo "$as_me:$LINENO: checking for $ac_word" >&5
18134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18135 if test "${ac_cv_path_ETAGS+set}" = set; then
18136   echo $ECHO_N "(cached) $ECHO_C" >&6
18137 else
18138   case $ETAGS in
18139   [\\/]* | ?:[\\/]*)
18140   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18141   ;;
18142   *)
18143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18144 for as_dir in $PATH
18145 do
18146   IFS=$as_save_IFS
18147   test -z "$as_dir" && as_dir=.
18148   for ac_exec_ext in '' $ac_executable_extensions; do
18149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18150     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18152     break 2
18153   fi
18154 done
18155 done
18156
18157   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18158   ;;
18159 esac
18160 fi
18161 ETAGS=$ac_cv_path_ETAGS
18162
18163 if test -n "$ETAGS"; then
18164   echo "$as_me:$LINENO: result: $ETAGS" >&5
18165 echo "${ECHO_T}$ETAGS" >&6
18166 else
18167   echo "$as_me:$LINENO: result: no" >&5
18168 echo "${ECHO_T}no" >&6
18169 fi
18170
18171 etags_version=`$ETAGS --version 2>&1`
18172 case "$etags_version" in
18173         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18174         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18175         *) ETAGSFLAGS="" ;;
18176 esac
18177 ETAGSFLAGS=$ETAGSFLAGS
18178
18179 # Extract the first word of "python", so it can be a program name with args.
18180 set dummy python; ac_word=$2
18181 echo "$as_me:$LINENO: checking for $ac_word" >&5
18182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18183 if test "${ac_cv_path_PYTHON+set}" = set; then
18184   echo $ECHO_N "(cached) $ECHO_C" >&6
18185 else
18186   case $PYTHON in
18187   [\\/]* | ?:[\\/]*)
18188   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18189   ;;
18190   *)
18191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18192 for as_dir in $PATH
18193 do
18194   IFS=$as_save_IFS
18195   test -z "$as_dir" && as_dir=.
18196   for ac_exec_ext in '' $ac_executable_extensions; do
18197   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18198     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18200     break 2
18201   fi
18202 done
18203 done
18204
18205   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18206   ;;
18207 esac
18208 fi
18209 PYTHON=$ac_cv_path_PYTHON
18210
18211 if test -n "$PYTHON"; then
18212   echo "$as_me:$LINENO: result: $PYTHON" >&5
18213 echo "${ECHO_T}$PYTHON" >&6
18214 else
18215   echo "$as_me:$LINENO: result: no" >&5
18216 echo "${ECHO_T}no" >&6
18217 fi
18218
18219 if test "$PYTHON" = "false"
18220 then
18221         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18222 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18223 fi
18224 # Extract the first word of "qmtest", so it can be a program name with args.
18225 set dummy qmtest; ac_word=$2
18226 echo "$as_me:$LINENO: checking for $ac_word" >&5
18227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18228 if test "${ac_cv_path_QMTEST+set}" = set; then
18229   echo $ECHO_N "(cached) $ECHO_C" >&6
18230 else
18231   case $QMTEST in
18232   [\\/]* | ?:[\\/]*)
18233   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18234   ;;
18235   *)
18236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18237 for as_dir in $PATH
18238 do
18239   IFS=$as_save_IFS
18240   test -z "$as_dir" && as_dir=.
18241   for ac_exec_ext in '' $ac_executable_extensions; do
18242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18243     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18245     break 2
18246   fi
18247 done
18248 done
18249
18250   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18251   ;;
18252 esac
18253 fi
18254 QMTEST=$ac_cv_path_QMTEST
18255
18256 if test -n "$QMTEST"; then
18257   echo "$as_me:$LINENO: result: $QMTEST" >&5
18258 echo "${ECHO_T}$QMTEST" >&6
18259 else
18260   echo "$as_me:$LINENO: result: no" >&5
18261 echo "${ECHO_T}no" >&6
18262 fi
18263
18264 if test "$QMTEST" = "false"
18265 then
18266         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18267 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18268 fi
18269
18270 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18271 pymajor=`echo $pyversion | cut -d. -f1`
18272 pyminor=`echo $pyversion | cut -d. -f2`
18273
18274 if test "$pymajor" -ge "2"
18275 then
18276         if test "$pymajor" -eq "2"
18277         then
18278                 if test "$pyminor" -lt "2"
18279                 then
18280                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18281 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18282                 fi
18283         fi
18284 else
18285         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18286 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18287 fi
18288
18289
18290
18291
18292 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18293 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18294 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18295   echo $ECHO_N "(cached) $ECHO_C" >&6
18296 else
18297   ac_check_lib_save_LIBS=$LIBS
18298 LIBS="-lelf  $LIBS"
18299 cat >conftest.$ac_ext <<_ACEOF
18300 #line $LINENO "configure"
18301 /* confdefs.h.  */
18302 _ACEOF
18303 cat confdefs.h >>conftest.$ac_ext
18304 cat >>conftest.$ac_ext <<_ACEOF
18305 /* end confdefs.h.  */
18306
18307 /* Override any gcc2 internal prototype to avoid an error.  */
18308 #ifdef __cplusplus
18309 extern "C"
18310 #endif
18311 /* We use char because int might match the return type of a gcc2
18312    builtin and then its argument prototype would still apply.  */
18313 char elf_begin ();
18314 int
18315 main ()
18316 {
18317 elf_begin ();
18318   ;
18319   return 0;
18320 }
18321 _ACEOF
18322 rm -f conftest.$ac_objext conftest$ac_exeext
18323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18324   (eval $ac_link) 2>&5
18325   ac_status=$?
18326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327   (exit $ac_status); } &&
18328          { ac_try='test -s conftest$ac_exeext'
18329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330   (eval $ac_try) 2>&5
18331   ac_status=$?
18332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333   (exit $ac_status); }; }; then
18334   ac_cv_lib_elf_elf_begin=yes
18335 else
18336   echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18338
18339 ac_cv_lib_elf_elf_begin=no
18340 fi
18341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18342 LIBS=$ac_check_lib_save_LIBS
18343 fi
18344 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18345 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18346 if test $ac_cv_lib_elf_elf_begin = yes; then
18347   cat >>confdefs.h <<_ACEOF
18348 #define HAVE_LIBELF 1
18349 _ACEOF
18350
18351   LIBS="-lelf $LIBS"
18352
18353 fi
18354
18355
18356 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18357 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18358 if test "${ac_cv_search_dlopen+set}" = set; then
18359   echo $ECHO_N "(cached) $ECHO_C" >&6
18360 else
18361   ac_func_search_save_LIBS=$LIBS
18362 ac_cv_search_dlopen=no
18363 cat >conftest.$ac_ext <<_ACEOF
18364 #line $LINENO "configure"
18365 /* confdefs.h.  */
18366 _ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h.  */
18370
18371 /* Override any gcc2 internal prototype to avoid an error.  */
18372 #ifdef __cplusplus
18373 extern "C"
18374 #endif
18375 /* We use char because int might match the return type of a gcc2
18376    builtin and then its argument prototype would still apply.  */
18377 char dlopen ();
18378 int
18379 main ()
18380 {
18381 dlopen ();
18382   ;
18383   return 0;
18384 }
18385 _ACEOF
18386 rm -f conftest.$ac_objext conftest$ac_exeext
18387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18388   (eval $ac_link) 2>&5
18389   ac_status=$?
18390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391   (exit $ac_status); } &&
18392          { ac_try='test -s conftest$ac_exeext'
18393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394   (eval $ac_try) 2>&5
18395   ac_status=$?
18396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397   (exit $ac_status); }; }; then
18398   ac_cv_search_dlopen="none required"
18399 else
18400   echo "$as_me: failed program was:" >&5
18401 sed 's/^/| /' conftest.$ac_ext >&5
18402
18403 fi
18404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18405 if test "$ac_cv_search_dlopen" = no; then
18406   for ac_lib in dl; do
18407     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18408     cat >conftest.$ac_ext <<_ACEOF
18409 #line $LINENO "configure"
18410 /* confdefs.h.  */
18411 _ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h.  */
18415
18416 /* Override any gcc2 internal prototype to avoid an error.  */
18417 #ifdef __cplusplus
18418 extern "C"
18419 #endif
18420 /* We use char because int might match the return type of a gcc2
18421    builtin and then its argument prototype would still apply.  */
18422 char dlopen ();
18423 int
18424 main ()
18425 {
18426 dlopen ();
18427   ;
18428   return 0;
18429 }
18430 _ACEOF
18431 rm -f conftest.$ac_objext conftest$ac_exeext
18432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18433   (eval $ac_link) 2>&5
18434   ac_status=$?
18435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436   (exit $ac_status); } &&
18437          { ac_try='test -s conftest$ac_exeext'
18438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439   (eval $ac_try) 2>&5
18440   ac_status=$?
18441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442   (exit $ac_status); }; }; then
18443   ac_cv_search_dlopen="-l$ac_lib"
18444 break
18445 else
18446   echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18448
18449 fi
18450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18451   done
18452 fi
18453 LIBS=$ac_func_search_save_LIBS
18454 fi
18455 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18456 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18457 if test "$ac_cv_search_dlopen" != no; then
18458   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18459
18460 cat >>confdefs.h <<\_ACEOF
18461 #define HAVE_DLOPEN 1
18462 _ACEOF
18463
18464 else
18465   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18466 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18467 fi
18468
18469
18470 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18471 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18472 if test "${ac_cv_search_mallinfo+set}" = set; then
18473   echo $ECHO_N "(cached) $ECHO_C" >&6
18474 else
18475   ac_func_search_save_LIBS=$LIBS
18476 ac_cv_search_mallinfo=no
18477 cat >conftest.$ac_ext <<_ACEOF
18478 #line $LINENO "configure"
18479 /* confdefs.h.  */
18480 _ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h.  */
18484
18485 /* Override any gcc2 internal prototype to avoid an error.  */
18486 #ifdef __cplusplus
18487 extern "C"
18488 #endif
18489 /* We use char because int might match the return type of a gcc2
18490    builtin and then its argument prototype would still apply.  */
18491 char mallinfo ();
18492 int
18493 main ()
18494 {
18495 mallinfo ();
18496   ;
18497   return 0;
18498 }
18499 _ACEOF
18500 rm -f conftest.$ac_objext conftest$ac_exeext
18501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18502   (eval $ac_link) 2>&5
18503   ac_status=$?
18504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505   (exit $ac_status); } &&
18506          { ac_try='test -s conftest$ac_exeext'
18507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18508   (eval $ac_try) 2>&5
18509   ac_status=$?
18510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511   (exit $ac_status); }; }; then
18512   ac_cv_search_mallinfo="none required"
18513 else
18514   echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18516
18517 fi
18518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18519 if test "$ac_cv_search_mallinfo" = no; then
18520   for ac_lib in malloc; do
18521     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18522     cat >conftest.$ac_ext <<_ACEOF
18523 #line $LINENO "configure"
18524 /* confdefs.h.  */
18525 _ACEOF
18526 cat confdefs.h >>conftest.$ac_ext
18527 cat >>conftest.$ac_ext <<_ACEOF
18528 /* end confdefs.h.  */
18529
18530 /* Override any gcc2 internal prototype to avoid an error.  */
18531 #ifdef __cplusplus
18532 extern "C"
18533 #endif
18534 /* We use char because int might match the return type of a gcc2
18535    builtin and then its argument prototype would still apply.  */
18536 char mallinfo ();
18537 int
18538 main ()
18539 {
18540 mallinfo ();
18541   ;
18542   return 0;
18543 }
18544 _ACEOF
18545 rm -f conftest.$ac_objext conftest$ac_exeext
18546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18547   (eval $ac_link) 2>&5
18548   ac_status=$?
18549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550   (exit $ac_status); } &&
18551          { ac_try='test -s conftest$ac_exeext'
18552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553   (eval $ac_try) 2>&5
18554   ac_status=$?
18555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556   (exit $ac_status); }; }; then
18557   ac_cv_search_mallinfo="-l$ac_lib"
18558 break
18559 else
18560   echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18562
18563 fi
18564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18565   done
18566 fi
18567 LIBS=$ac_func_search_save_LIBS
18568 fi
18569 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18570 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18571 if test "$ac_cv_search_mallinfo" != no; then
18572   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18573
18574 cat >>confdefs.h <<\_ACEOF
18575 #define HAVE_MALLINFO 1
18576 _ACEOF
18577
18578 fi
18579
18580
18581 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18582 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18583 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18584   echo $ECHO_N "(cached) $ECHO_C" >&6
18585 else
18586   ac_func_search_save_LIBS=$LIBS
18587 ac_cv_search_pthread_mutex_lock=no
18588 cat >conftest.$ac_ext <<_ACEOF
18589 #line $LINENO "configure"
18590 /* confdefs.h.  */
18591 _ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h.  */
18595
18596 /* Override any gcc2 internal prototype to avoid an error.  */
18597 #ifdef __cplusplus
18598 extern "C"
18599 #endif
18600 /* We use char because int might match the return type of a gcc2
18601    builtin and then its argument prototype would still apply.  */
18602 char pthread_mutex_lock ();
18603 int
18604 main ()
18605 {
18606 pthread_mutex_lock ();
18607   ;
18608   return 0;
18609 }
18610 _ACEOF
18611 rm -f conftest.$ac_objext conftest$ac_exeext
18612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18613   (eval $ac_link) 2>&5
18614   ac_status=$?
18615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); } &&
18617          { ac_try='test -s conftest$ac_exeext'
18618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619   (eval $ac_try) 2>&5
18620   ac_status=$?
18621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622   (exit $ac_status); }; }; then
18623   ac_cv_search_pthread_mutex_lock="none required"
18624 else
18625   echo "$as_me: failed program was:" >&5
18626 sed 's/^/| /' conftest.$ac_ext >&5
18627
18628 fi
18629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18630 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18631   for ac_lib in pthread; do
18632     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18633     cat >conftest.$ac_ext <<_ACEOF
18634 #line $LINENO "configure"
18635 /* confdefs.h.  */
18636 _ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h.  */
18640
18641 /* Override any gcc2 internal prototype to avoid an error.  */
18642 #ifdef __cplusplus
18643 extern "C"
18644 #endif
18645 /* We use char because int might match the return type of a gcc2
18646    builtin and then its argument prototype would still apply.  */
18647 char pthread_mutex_lock ();
18648 int
18649 main ()
18650 {
18651 pthread_mutex_lock ();
18652   ;
18653   return 0;
18654 }
18655 _ACEOF
18656 rm -f conftest.$ac_objext conftest$ac_exeext
18657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18658   (eval $ac_link) 2>&5
18659   ac_status=$?
18660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661   (exit $ac_status); } &&
18662          { ac_try='test -s conftest$ac_exeext'
18663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664   (eval $ac_try) 2>&5
18665   ac_status=$?
18666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667   (exit $ac_status); }; }; then
18668   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18669 break
18670 else
18671   echo "$as_me: failed program was:" >&5
18672 sed 's/^/| /' conftest.$ac_ext >&5
18673
18674 fi
18675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18676   done
18677 fi
18678 LIBS=$ac_func_search_save_LIBS
18679 fi
18680 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18681 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18682 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18683   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18684   HAVE_PTHREAD_MUTEX_LOCK=1
18685 else
18686   HAVE_PTHREAD_MUTEX_LOCK=0
18687 fi
18688
18689
18690
18691 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18692 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18693 if test "${ac_cv_header_stdc+set}" = set; then
18694   echo $ECHO_N "(cached) $ECHO_C" >&6
18695 else
18696   cat >conftest.$ac_ext <<_ACEOF
18697 #line $LINENO "configure"
18698 /* confdefs.h.  */
18699 _ACEOF
18700 cat confdefs.h >>conftest.$ac_ext
18701 cat >>conftest.$ac_ext <<_ACEOF
18702 /* end confdefs.h.  */
18703 #include <stdlib.h>
18704 #include <stdarg.h>
18705 #include <string.h>
18706 #include <float.h>
18707
18708 int
18709 main ()
18710 {
18711
18712   ;
18713   return 0;
18714 }
18715 _ACEOF
18716 rm -f conftest.$ac_objext
18717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18718   (eval $ac_compile) 2>&5
18719   ac_status=$?
18720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721   (exit $ac_status); } &&
18722          { ac_try='test -s conftest.$ac_objext'
18723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724   (eval $ac_try) 2>&5
18725   ac_status=$?
18726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727   (exit $ac_status); }; }; then
18728   ac_cv_header_stdc=yes
18729 else
18730   echo "$as_me: failed program was:" >&5
18731 sed 's/^/| /' conftest.$ac_ext >&5
18732
18733 ac_cv_header_stdc=no
18734 fi
18735 rm -f conftest.$ac_objext conftest.$ac_ext
18736
18737 if test $ac_cv_header_stdc = yes; then
18738   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18739   cat >conftest.$ac_ext <<_ACEOF
18740 #line $LINENO "configure"
18741 /* confdefs.h.  */
18742 _ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h.  */
18746 #include <string.h>
18747
18748 _ACEOF
18749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18750   $EGREP "memchr" >/dev/null 2>&1; then
18751   :
18752 else
18753   ac_cv_header_stdc=no
18754 fi
18755 rm -f conftest*
18756
18757 fi
18758
18759 if test $ac_cv_header_stdc = yes; then
18760   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18761   cat >conftest.$ac_ext <<_ACEOF
18762 #line $LINENO "configure"
18763 /* confdefs.h.  */
18764 _ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h.  */
18768 #include <stdlib.h>
18769
18770 _ACEOF
18771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18772   $EGREP "free" >/dev/null 2>&1; then
18773   :
18774 else
18775   ac_cv_header_stdc=no
18776 fi
18777 rm -f conftest*
18778
18779 fi
18780
18781 if test $ac_cv_header_stdc = yes; then
18782   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18783   if test "$cross_compiling" = yes; then
18784   :
18785 else
18786   cat >conftest.$ac_ext <<_ACEOF
18787 #line $LINENO "configure"
18788 /* confdefs.h.  */
18789 _ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h.  */
18793 #include <ctype.h>
18794 #if ((' ' & 0x0FF) == 0x020)
18795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18797 #else
18798 # define ISLOWER(c) \
18799                    (('a' <= (c) && (c) <= 'i') \
18800                      || ('j' <= (c) && (c) <= 'r') \
18801                      || ('s' <= (c) && (c) <= 'z'))
18802 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18803 #endif
18804
18805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18806 int
18807 main ()
18808 {
18809   int i;
18810   for (i = 0; i < 256; i++)
18811     if (XOR (islower (i), ISLOWER (i))
18812         || toupper (i) != TOUPPER (i))
18813       exit(2);
18814   exit (0);
18815 }
18816 _ACEOF
18817 rm -f conftest$ac_exeext
18818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18819   (eval $ac_link) 2>&5
18820   ac_status=$?
18821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18824   (eval $ac_try) 2>&5
18825   ac_status=$?
18826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827   (exit $ac_status); }; }; then
18828   :
18829 else
18830   echo "$as_me: program exited with status $ac_status" >&5
18831 echo "$as_me: failed program was:" >&5
18832 sed 's/^/| /' conftest.$ac_ext >&5
18833
18834 ( exit $ac_status )
18835 ac_cv_header_stdc=no
18836 fi
18837 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18838 fi
18839 fi
18840 fi
18841 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18842 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18843 if test $ac_cv_header_stdc = yes; then
18844
18845 cat >>confdefs.h <<\_ACEOF
18846 #define STDC_HEADERS 1
18847 _ACEOF
18848
18849 fi
18850
18851 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18852 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18853 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18854   echo $ECHO_N "(cached) $ECHO_C" >&6
18855 else
18856   cat >conftest.$ac_ext <<_ACEOF
18857 #line $LINENO "configure"
18858 /* confdefs.h.  */
18859 _ACEOF
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h.  */
18863 #include <sys/types.h>
18864 #include <sys/wait.h>
18865 #ifndef WEXITSTATUS
18866 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18867 #endif
18868 #ifndef WIFEXITED
18869 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18870 #endif
18871
18872 int
18873 main ()
18874 {
18875   int s;
18876   wait (&s);
18877   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18878   ;
18879   return 0;
18880 }
18881 _ACEOF
18882 rm -f conftest.$ac_objext
18883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18884   (eval $ac_compile) 2>&5
18885   ac_status=$?
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); } &&
18888          { ac_try='test -s conftest.$ac_objext'
18889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890   (eval $ac_try) 2>&5
18891   ac_status=$?
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); }; }; then
18894   ac_cv_header_sys_wait_h=yes
18895 else
18896   echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18898
18899 ac_cv_header_sys_wait_h=no
18900 fi
18901 rm -f conftest.$ac_objext conftest.$ac_ext
18902 fi
18903 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18904 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18905 if test $ac_cv_header_sys_wait_h = yes; then
18906
18907 cat >>confdefs.h <<\_ACEOF
18908 #define HAVE_SYS_WAIT_H 1
18909 _ACEOF
18910
18911 fi
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925 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
18926 do
18927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18929   echo "$as_me:$LINENO: checking for $ac_header" >&5
18930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18932   echo $ECHO_N "(cached) $ECHO_C" >&6
18933 fi
18934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18936 else
18937   # Is the header compilable?
18938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18940 cat >conftest.$ac_ext <<_ACEOF
18941 #line $LINENO "configure"
18942 /* confdefs.h.  */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h.  */
18947 $ac_includes_default
18948 #include <$ac_header>
18949 _ACEOF
18950 rm -f conftest.$ac_objext
18951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18952   (eval $ac_compile) 2>&5
18953   ac_status=$?
18954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955   (exit $ac_status); } &&
18956          { ac_try='test -s conftest.$ac_objext'
18957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958   (eval $ac_try) 2>&5
18959   ac_status=$?
18960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961   (exit $ac_status); }; }; then
18962   ac_header_compiler=yes
18963 else
18964   echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18966
18967 ac_header_compiler=no
18968 fi
18969 rm -f conftest.$ac_objext conftest.$ac_ext
18970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18971 echo "${ECHO_T}$ac_header_compiler" >&6
18972
18973 # Is the header present?
18974 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18976 cat >conftest.$ac_ext <<_ACEOF
18977 #line $LINENO "configure"
18978 /* confdefs.h.  */
18979 _ACEOF
18980 cat confdefs.h >>conftest.$ac_ext
18981 cat >>conftest.$ac_ext <<_ACEOF
18982 /* end confdefs.h.  */
18983 #include <$ac_header>
18984 _ACEOF
18985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18986   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18987   ac_status=$?
18988   grep -v '^ *+' conftest.er1 >conftest.err
18989   rm -f conftest.er1
18990   cat conftest.err >&5
18991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992   (exit $ac_status); } >/dev/null; then
18993   if test -s conftest.err; then
18994     ac_cpp_err=$ac_c_preproc_warn_flag
18995   else
18996     ac_cpp_err=
18997   fi
18998 else
18999   ac_cpp_err=yes
19000 fi
19001 if test -z "$ac_cpp_err"; then
19002   ac_header_preproc=yes
19003 else
19004   echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19006
19007   ac_header_preproc=no
19008 fi
19009 rm -f conftest.err conftest.$ac_ext
19010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19011 echo "${ECHO_T}$ac_header_preproc" >&6
19012
19013 # So?  What about this header?
19014 case $ac_header_compiler:$ac_header_preproc in
19015   yes:no )
19016     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19018     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19020     (
19021       cat <<\_ASBOX
19022 ## ------------------------------------ ##
19023 ## Report this to bug-autoconf@gnu.org. ##
19024 ## ------------------------------------ ##
19025 _ASBOX
19026     ) |
19027       sed "s/^/$as_me: WARNING:     /" >&2
19028     ;;
19029   no:yes )
19030     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19032     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19036     (
19037       cat <<\_ASBOX
19038 ## ------------------------------------ ##
19039 ## Report this to bug-autoconf@gnu.org. ##
19040 ## ------------------------------------ ##
19041 _ASBOX
19042     ) |
19043       sed "s/^/$as_me: WARNING:     /" >&2
19044     ;;
19045 esac
19046 echo "$as_me:$LINENO: checking for $ac_header" >&5
19047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19049   echo $ECHO_N "(cached) $ECHO_C" >&6
19050 else
19051   eval "$as_ac_Header=$ac_header_preproc"
19052 fi
19053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19055
19056 fi
19057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19058   cat >>confdefs.h <<_ACEOF
19059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19060 _ACEOF
19061
19062 fi
19063
19064 done
19065
19066
19067 if test "${ac_cv_header_sys_types_h+set}" = set; then
19068   echo "$as_me:$LINENO: checking for sys/types.h" >&5
19069 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19070 if test "${ac_cv_header_sys_types_h+set}" = set; then
19071   echo $ECHO_N "(cached) $ECHO_C" >&6
19072 fi
19073 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19074 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19075 else
19076   # Is the header compilable?
19077 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19078 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19079 cat >conftest.$ac_ext <<_ACEOF
19080 #line $LINENO "configure"
19081 /* confdefs.h.  */
19082 _ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h.  */
19086 $ac_includes_default
19087 #include <sys/types.h>
19088 _ACEOF
19089 rm -f conftest.$ac_objext
19090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19091   (eval $ac_compile) 2>&5
19092   ac_status=$?
19093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094   (exit $ac_status); } &&
19095          { ac_try='test -s conftest.$ac_objext'
19096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097   (eval $ac_try) 2>&5
19098   ac_status=$?
19099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100   (exit $ac_status); }; }; then
19101   ac_header_compiler=yes
19102 else
19103   echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19105
19106 ac_header_compiler=no
19107 fi
19108 rm -f conftest.$ac_objext conftest.$ac_ext
19109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19110 echo "${ECHO_T}$ac_header_compiler" >&6
19111
19112 # Is the header present?
19113 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19114 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19115 cat >conftest.$ac_ext <<_ACEOF
19116 #line $LINENO "configure"
19117 /* confdefs.h.  */
19118 _ACEOF
19119 cat confdefs.h >>conftest.$ac_ext
19120 cat >>conftest.$ac_ext <<_ACEOF
19121 /* end confdefs.h.  */
19122 #include <sys/types.h>
19123 _ACEOF
19124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19126   ac_status=$?
19127   grep -v '^ *+' conftest.er1 >conftest.err
19128   rm -f conftest.er1
19129   cat conftest.err >&5
19130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131   (exit $ac_status); } >/dev/null; then
19132   if test -s conftest.err; then
19133     ac_cpp_err=$ac_c_preproc_warn_flag
19134   else
19135     ac_cpp_err=
19136   fi
19137 else
19138   ac_cpp_err=yes
19139 fi
19140 if test -z "$ac_cpp_err"; then
19141   ac_header_preproc=yes
19142 else
19143   echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19145
19146   ac_header_preproc=no
19147 fi
19148 rm -f conftest.err conftest.$ac_ext
19149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19150 echo "${ECHO_T}$ac_header_preproc" >&6
19151
19152 # So?  What about this header?
19153 case $ac_header_compiler:$ac_header_preproc in
19154   yes:no )
19155     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19156 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19157     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19158 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19159     (
19160       cat <<\_ASBOX
19161 ## ------------------------------------ ##
19162 ## Report this to bug-autoconf@gnu.org. ##
19163 ## ------------------------------------ ##
19164 _ASBOX
19165     ) |
19166       sed "s/^/$as_me: WARNING:     /" >&2
19167     ;;
19168   no:yes )
19169     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19170 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19171     { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19172 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19173     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19174 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19175     (
19176       cat <<\_ASBOX
19177 ## ------------------------------------ ##
19178 ## Report this to bug-autoconf@gnu.org. ##
19179 ## ------------------------------------ ##
19180 _ASBOX
19181     ) |
19182       sed "s/^/$as_me: WARNING:     /" >&2
19183     ;;
19184 esac
19185 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19186 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19187 if test "${ac_cv_header_sys_types_h+set}" = set; then
19188   echo $ECHO_N "(cached) $ECHO_C" >&6
19189 else
19190   ac_cv_header_sys_types_h=$ac_header_preproc
19191 fi
19192 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19193 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19194
19195 fi
19196 if test $ac_cv_header_sys_types_h = yes; then
19197   INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19198 else
19199   INCLUDE_SYS_TYPES_H=''
19200 fi
19201
19202
19203
19204 if test "${ac_cv_header_inttypes_h+set}" = set; then
19205   echo "$as_me:$LINENO: checking for inttypes.h" >&5
19206 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19207 if test "${ac_cv_header_inttypes_h+set}" = set; then
19208   echo $ECHO_N "(cached) $ECHO_C" >&6
19209 fi
19210 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19211 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19212 else
19213   # Is the header compilable?
19214 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19215 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19216 cat >conftest.$ac_ext <<_ACEOF
19217 #line $LINENO "configure"
19218 /* confdefs.h.  */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h.  */
19223 $ac_includes_default
19224 #include <inttypes.h>
19225 _ACEOF
19226 rm -f conftest.$ac_objext
19227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19228   (eval $ac_compile) 2>&5
19229   ac_status=$?
19230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231   (exit $ac_status); } &&
19232          { ac_try='test -s conftest.$ac_objext'
19233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234   (eval $ac_try) 2>&5
19235   ac_status=$?
19236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237   (exit $ac_status); }; }; then
19238   ac_header_compiler=yes
19239 else
19240   echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19242
19243 ac_header_compiler=no
19244 fi
19245 rm -f conftest.$ac_objext conftest.$ac_ext
19246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19247 echo "${ECHO_T}$ac_header_compiler" >&6
19248
19249 # Is the header present?
19250 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19251 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19252 cat >conftest.$ac_ext <<_ACEOF
19253 #line $LINENO "configure"
19254 /* confdefs.h.  */
19255 _ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h.  */
19259 #include <inttypes.h>
19260 _ACEOF
19261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19262   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19263   ac_status=$?
19264   grep -v '^ *+' conftest.er1 >conftest.err
19265   rm -f conftest.er1
19266   cat conftest.err >&5
19267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268   (exit $ac_status); } >/dev/null; then
19269   if test -s conftest.err; then
19270     ac_cpp_err=$ac_c_preproc_warn_flag
19271   else
19272     ac_cpp_err=
19273   fi
19274 else
19275   ac_cpp_err=yes
19276 fi
19277 if test -z "$ac_cpp_err"; then
19278   ac_header_preproc=yes
19279 else
19280   echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19282
19283   ac_header_preproc=no
19284 fi
19285 rm -f conftest.err conftest.$ac_ext
19286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19287 echo "${ECHO_T}$ac_header_preproc" >&6
19288
19289 # So?  What about this header?
19290 case $ac_header_compiler:$ac_header_preproc in
19291   yes:no )
19292     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19293 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19294     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19295 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19296     (
19297       cat <<\_ASBOX
19298 ## ------------------------------------ ##
19299 ## Report this to bug-autoconf@gnu.org. ##
19300 ## ------------------------------------ ##
19301 _ASBOX
19302     ) |
19303       sed "s/^/$as_me: WARNING:     /" >&2
19304     ;;
19305   no:yes )
19306     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19307 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19308     { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19309 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19310     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19311 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19312     (
19313       cat <<\_ASBOX
19314 ## ------------------------------------ ##
19315 ## Report this to bug-autoconf@gnu.org. ##
19316 ## ------------------------------------ ##
19317 _ASBOX
19318     ) |
19319       sed "s/^/$as_me: WARNING:     /" >&2
19320     ;;
19321 esac
19322 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19323 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19324 if test "${ac_cv_header_inttypes_h+set}" = set; then
19325   echo $ECHO_N "(cached) $ECHO_C" >&6
19326 else
19327   ac_cv_header_inttypes_h=$ac_header_preproc
19328 fi
19329 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19330 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19331
19332 fi
19333 if test $ac_cv_header_inttypes_h = yes; then
19334   INCLUDE_INTTYPES_H='#include <inttypes.h>'
19335 else
19336   INCLUDE_INTTYPES_H=''
19337 fi
19338
19339
19340
19341
19342 echo "$as_me:$LINENO: checking for pid_t" >&5
19343 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19344 if test "${ac_cv_type_pid_t+set}" = set; then
19345   echo $ECHO_N "(cached) $ECHO_C" >&6
19346 else
19347   cat >conftest.$ac_ext <<_ACEOF
19348 #line $LINENO "configure"
19349 /* confdefs.h.  */
19350 _ACEOF
19351 cat confdefs.h >>conftest.$ac_ext
19352 cat >>conftest.$ac_ext <<_ACEOF
19353 /* end confdefs.h.  */
19354 $ac_includes_default
19355 int
19356 main ()
19357 {
19358 if ((pid_t *) 0)
19359   return 0;
19360 if (sizeof (pid_t))
19361   return 0;
19362   ;
19363   return 0;
19364 }
19365 _ACEOF
19366 rm -f conftest.$ac_objext
19367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19368   (eval $ac_compile) 2>&5
19369   ac_status=$?
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); } &&
19372          { ac_try='test -s conftest.$ac_objext'
19373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374   (eval $ac_try) 2>&5
19375   ac_status=$?
19376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377   (exit $ac_status); }; }; then
19378   ac_cv_type_pid_t=yes
19379 else
19380   echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19382
19383 ac_cv_type_pid_t=no
19384 fi
19385 rm -f conftest.$ac_objext conftest.$ac_ext
19386 fi
19387 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19388 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19389 if test $ac_cv_type_pid_t = yes; then
19390   :
19391 else
19392
19393 cat >>confdefs.h <<_ACEOF
19394 #define pid_t int
19395 _ACEOF
19396
19397 fi
19398
19399 echo "$as_me:$LINENO: checking for size_t" >&5
19400 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19401 if test "${ac_cv_type_size_t+set}" = set; then
19402   echo $ECHO_N "(cached) $ECHO_C" >&6
19403 else
19404   cat >conftest.$ac_ext <<_ACEOF
19405 #line $LINENO "configure"
19406 /* confdefs.h.  */
19407 _ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h.  */
19411 $ac_includes_default
19412 int
19413 main ()
19414 {
19415 if ((size_t *) 0)
19416   return 0;
19417 if (sizeof (size_t))
19418   return 0;
19419   ;
19420   return 0;
19421 }
19422 _ACEOF
19423 rm -f conftest.$ac_objext
19424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19425   (eval $ac_compile) 2>&5
19426   ac_status=$?
19427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428   (exit $ac_status); } &&
19429          { ac_try='test -s conftest.$ac_objext'
19430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431   (eval $ac_try) 2>&5
19432   ac_status=$?
19433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434   (exit $ac_status); }; }; then
19435   ac_cv_type_size_t=yes
19436 else
19437   echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19439
19440 ac_cv_type_size_t=no
19441 fi
19442 rm -f conftest.$ac_objext conftest.$ac_ext
19443 fi
19444 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19445 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19446 if test $ac_cv_type_size_t = yes; then
19447   :
19448 else
19449
19450 cat >>confdefs.h <<_ACEOF
19451 #define size_t unsigned
19452 _ACEOF
19453
19454 fi
19455
19456 echo "$as_me:$LINENO: checking for int64_t" >&5
19457 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19458 if test "${ac_cv_type_int64_t+set}" = set; then
19459   echo $ECHO_N "(cached) $ECHO_C" >&6
19460 else
19461   cat >conftest.$ac_ext <<_ACEOF
19462 #line $LINENO "configure"
19463 /* confdefs.h.  */
19464 _ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h.  */
19468 $ac_includes_default
19469 int
19470 main ()
19471 {
19472 if ((int64_t *) 0)
19473   return 0;
19474 if (sizeof (int64_t))
19475   return 0;
19476   ;
19477   return 0;
19478 }
19479 _ACEOF
19480 rm -f conftest.$ac_objext
19481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19482   (eval $ac_compile) 2>&5
19483   ac_status=$?
19484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); } &&
19486          { ac_try='test -s conftest.$ac_objext'
19487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488   (eval $ac_try) 2>&5
19489   ac_status=$?
19490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491   (exit $ac_status); }; }; then
19492   ac_cv_type_int64_t=yes
19493 else
19494   echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19496
19497 ac_cv_type_int64_t=no
19498 fi
19499 rm -f conftest.$ac_objext conftest.$ac_ext
19500 fi
19501 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19502 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19503 if test $ac_cv_type_int64_t = yes; then
19504
19505 cat >>confdefs.h <<_ACEOF
19506 #define HAVE_INT64_T 1
19507 _ACEOF
19508
19509
19510 else
19511   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19512 echo "$as_me: error: Type int64_t required but not found" >&2;}
19513    { (exit 1); exit 1; }; }
19514 fi
19515
19516 echo "$as_me:$LINENO: checking for uint64_t" >&5
19517 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19518 if test "${ac_cv_type_uint64_t+set}" = set; then
19519   echo $ECHO_N "(cached) $ECHO_C" >&6
19520 else
19521   cat >conftest.$ac_ext <<_ACEOF
19522 #line $LINENO "configure"
19523 /* confdefs.h.  */
19524 _ACEOF
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h.  */
19528 $ac_includes_default
19529 int
19530 main ()
19531 {
19532 if ((uint64_t *) 0)
19533   return 0;
19534 if (sizeof (uint64_t))
19535   return 0;
19536   ;
19537   return 0;
19538 }
19539 _ACEOF
19540 rm -f conftest.$ac_objext
19541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19542   (eval $ac_compile) 2>&5
19543   ac_status=$?
19544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545   (exit $ac_status); } &&
19546          { ac_try='test -s conftest.$ac_objext'
19547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548   (eval $ac_try) 2>&5
19549   ac_status=$?
19550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); }; }; then
19552   ac_cv_type_uint64_t=yes
19553 else
19554   echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19556
19557 ac_cv_type_uint64_t=no
19558 fi
19559 rm -f conftest.$ac_objext conftest.$ac_ext
19560 fi
19561 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19562 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19563 if test $ac_cv_type_uint64_t = yes; then
19564
19565 cat >>confdefs.h <<_ACEOF
19566 #define HAVE_UINT64_T 1
19567 _ACEOF
19568
19569
19570 else
19571   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19572 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19573    { (exit 1); exit 1; }; }
19574 fi
19575
19576 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19577 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19578 if test "${ac_cv_header_time+set}" = set; then
19579   echo $ECHO_N "(cached) $ECHO_C" >&6
19580 else
19581   cat >conftest.$ac_ext <<_ACEOF
19582 #line $LINENO "configure"
19583 /* confdefs.h.  */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h.  */
19588 #include <sys/types.h>
19589 #include <sys/time.h>
19590 #include <time.h>
19591
19592 int
19593 main ()
19594 {
19595 if ((struct tm *) 0)
19596 return 0;
19597   ;
19598   return 0;
19599 }
19600 _ACEOF
19601 rm -f conftest.$ac_objext
19602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19603   (eval $ac_compile) 2>&5
19604   ac_status=$?
19605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606   (exit $ac_status); } &&
19607          { ac_try='test -s conftest.$ac_objext'
19608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609   (eval $ac_try) 2>&5
19610   ac_status=$?
19611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612   (exit $ac_status); }; }; then
19613   ac_cv_header_time=yes
19614 else
19615   echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19617
19618 ac_cv_header_time=no
19619 fi
19620 rm -f conftest.$ac_objext conftest.$ac_ext
19621 fi
19622 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19623 echo "${ECHO_T}$ac_cv_header_time" >&6
19624 if test $ac_cv_header_time = yes; then
19625
19626 cat >>confdefs.h <<\_ACEOF
19627 #define TIME_WITH_SYS_TIME 1
19628 _ACEOF
19629
19630 fi
19631
19632 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19633 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19634 if test "${ac_cv_struct_tm+set}" = set; then
19635   echo $ECHO_N "(cached) $ECHO_C" >&6
19636 else
19637   cat >conftest.$ac_ext <<_ACEOF
19638 #line $LINENO "configure"
19639 /* confdefs.h.  */
19640 _ACEOF
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h.  */
19644 #include <sys/types.h>
19645 #include <time.h>
19646
19647 int
19648 main ()
19649 {
19650 struct tm *tp; tp->tm_sec;
19651   ;
19652   return 0;
19653 }
19654 _ACEOF
19655 rm -f conftest.$ac_objext
19656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19657   (eval $ac_compile) 2>&5
19658   ac_status=$?
19659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660   (exit $ac_status); } &&
19661          { ac_try='test -s conftest.$ac_objext'
19662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663   (eval $ac_try) 2>&5
19664   ac_status=$?
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); }; }; then
19667   ac_cv_struct_tm=time.h
19668 else
19669   echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19671
19672 ac_cv_struct_tm=sys/time.h
19673 fi
19674 rm -f conftest.$ac_objext conftest.$ac_ext
19675 fi
19676 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19677 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19678 if test $ac_cv_struct_tm = sys/time.h; then
19679
19680 cat >>confdefs.h <<\_ACEOF
19681 #define TM_IN_SYS_TIME 1
19682 _ACEOF
19683
19684 fi
19685
19686
19687
19688
19689
19690         ac_ext=c
19691 ac_cpp='$CPP $CPPFLAGS'
19692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19695
19696         if test "$cross_compiling" = yes; then
19697   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19698 See \`config.log' for more details." >&5
19699 echo "$as_me: error: cannot run test program while cross compiling
19700 See \`config.log' for more details." >&2;}
19701    { (exit 1); exit 1; }; }
19702 else
19703   cat >conftest.$ac_ext <<_ACEOF
19704 #line $LINENO "configure"
19705 /* confdefs.h.  */
19706 _ACEOF
19707 cat confdefs.h >>conftest.$ac_ext
19708 cat >>conftest.$ac_ext <<_ACEOF
19709 /* end confdefs.h.  */
19710 #include <stdio.h>
19711                                  #include <stdlib.h>
19712 int
19713 main ()
19714 {
19715
19716                                  volatile double A, B;
19717                                  char Buffer[100];
19718                                  A = 1;
19719                                  A /= 10.0;
19720                                  sprintf(Buffer, "%a", A);
19721                                  B = atof(Buffer);
19722                                  if (A != B)
19723                                                          return (1);
19724                                  if (A != 0x1.999999999999ap-4)
19725                                                          return (1);
19726                                  return (0);
19727   ;
19728   return 0;
19729 }
19730 _ACEOF
19731 rm -f conftest$ac_exeext
19732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19733   (eval $ac_link) 2>&5
19734   ac_status=$?
19735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738   (eval $ac_try) 2>&5
19739   ac_status=$?
19740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741   (exit $ac_status); }; }; then
19742   ac_c_printf_a=yes
19743 else
19744   echo "$as_me: program exited with status $ac_status" >&5
19745 echo "$as_me: failed program was:" >&5
19746 sed 's/^/| /' conftest.$ac_ext >&5
19747
19748 ( exit $ac_status )
19749 ac_c_printf_a=no
19750 fi
19751 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19752 fi
19753         ac_ext=c
19754 ac_cpp='$CPP $CPPFLAGS'
19755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19758
19759         if test "$ac_c_printf_a" = "yes"; then
19760
19761 cat >>confdefs.h <<\_ACEOF
19762 #define HAVE_PRINTF_A 1
19763 _ACEOF
19764
19765         fi
19766
19767
19768 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19769 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19770 if test "${ac_cv_c_bigendian+set}" = set; then
19771   echo $ECHO_N "(cached) $ECHO_C" >&6
19772 else
19773   # See if sys/param.h defines the BYTE_ORDER macro.
19774 cat >conftest.$ac_ext <<_ACEOF
19775 #line $LINENO "configure"
19776 /* confdefs.h.  */
19777 _ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h.  */
19781 #include <sys/types.h>
19782 #include <sys/param.h>
19783
19784 int
19785 main ()
19786 {
19787 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19788  bogus endian macros
19789 #endif
19790
19791   ;
19792   return 0;
19793 }
19794 _ACEOF
19795 rm -f conftest.$ac_objext
19796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19797   (eval $ac_compile) 2>&5
19798   ac_status=$?
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); } &&
19801          { ac_try='test -s conftest.$ac_objext'
19802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803   (eval $ac_try) 2>&5
19804   ac_status=$?
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); }; }; then
19807   # It does; now see whether it defined to BIG_ENDIAN or not.
19808 cat >conftest.$ac_ext <<_ACEOF
19809 #line $LINENO "configure"
19810 /* confdefs.h.  */
19811 _ACEOF
19812 cat confdefs.h >>conftest.$ac_ext
19813 cat >>conftest.$ac_ext <<_ACEOF
19814 /* end confdefs.h.  */
19815 #include <sys/types.h>
19816 #include <sys/param.h>
19817
19818 int
19819 main ()
19820 {
19821 #if BYTE_ORDER != BIG_ENDIAN
19822  not big endian
19823 #endif
19824
19825   ;
19826   return 0;
19827 }
19828 _ACEOF
19829 rm -f conftest.$ac_objext
19830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19831   (eval $ac_compile) 2>&5
19832   ac_status=$?
19833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834   (exit $ac_status); } &&
19835          { ac_try='test -s conftest.$ac_objext'
19836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837   (eval $ac_try) 2>&5
19838   ac_status=$?
19839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840   (exit $ac_status); }; }; then
19841   ac_cv_c_bigendian=yes
19842 else
19843   echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19845
19846 ac_cv_c_bigendian=no
19847 fi
19848 rm -f conftest.$ac_objext conftest.$ac_ext
19849 else
19850   echo "$as_me: failed program was:" >&5
19851 sed 's/^/| /' conftest.$ac_ext >&5
19852
19853 # It does not; compile a test program.
19854 if test "$cross_compiling" = yes; then
19855   # try to guess the endianness by grepping values into an object file
19856   ac_cv_c_bigendian=unknown
19857   cat >conftest.$ac_ext <<_ACEOF
19858 #line $LINENO "configure"
19859 /* confdefs.h.  */
19860 _ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h.  */
19864 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19865 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19866 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19867 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19868 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19869 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19870 int
19871 main ()
19872 {
19873  _ascii (); _ebcdic ();
19874   ;
19875   return 0;
19876 }
19877 _ACEOF
19878 rm -f conftest.$ac_objext
19879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19880   (eval $ac_compile) 2>&5
19881   ac_status=$?
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); } &&
19884          { ac_try='test -s conftest.$ac_objext'
19885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886   (eval $ac_try) 2>&5
19887   ac_status=$?
19888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889   (exit $ac_status); }; }; then
19890   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19891   ac_cv_c_bigendian=yes
19892 fi
19893 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19894   if test "$ac_cv_c_bigendian" = unknown; then
19895     ac_cv_c_bigendian=no
19896   else
19897     # finding both strings is unlikely to happen, but who knows?
19898     ac_cv_c_bigendian=unknown
19899   fi
19900 fi
19901 else
19902   echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19904
19905 fi
19906 rm -f conftest.$ac_objext conftest.$ac_ext
19907 else
19908   cat >conftest.$ac_ext <<_ACEOF
19909 #line $LINENO "configure"
19910 /* confdefs.h.  */
19911 _ACEOF
19912 cat confdefs.h >>conftest.$ac_ext
19913 cat >>conftest.$ac_ext <<_ACEOF
19914 /* end confdefs.h.  */
19915 int
19916 main ()
19917 {
19918   /* Are we little or big endian?  From Harbison&Steele.  */
19919   union
19920   {
19921     long l;
19922     char c[sizeof (long)];
19923   } u;
19924   u.l = 1;
19925   exit (u.c[sizeof (long) - 1] == 1);
19926 }
19927 _ACEOF
19928 rm -f conftest$ac_exeext
19929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19930   (eval $ac_link) 2>&5
19931   ac_status=$?
19932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19935   (eval $ac_try) 2>&5
19936   ac_status=$?
19937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938   (exit $ac_status); }; }; then
19939   ac_cv_c_bigendian=no
19940 else
19941   echo "$as_me: program exited with status $ac_status" >&5
19942 echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.$ac_ext >&5
19944
19945 ( exit $ac_status )
19946 ac_cv_c_bigendian=yes
19947 fi
19948 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19949 fi
19950 fi
19951 rm -f conftest.$ac_objext conftest.$ac_ext
19952 fi
19953 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19954 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19955 case $ac_cv_c_bigendian in
19956   yes)
19957     ENDIAN=big
19958  ;;
19959   no)
19960     ENDIAN=little
19961  ;;
19962   *)
19963     { { echo "$as_me:$LINENO: error: unknown endianness
19964 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19965 echo "$as_me: error: unknown endianness
19966 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19967    { (exit 1); exit 1; }; } ;;
19968 esac
19969
19970
19971 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19972 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19973 if test "${ac_cv_cxx_namespaces+set}" = set; then
19974   echo $ECHO_N "(cached) $ECHO_C" >&6
19975 else
19976
19977
19978  ac_ext=cc
19979 ac_cpp='$CXXCPP $CPPFLAGS'
19980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19983
19984  cat >conftest.$ac_ext <<_ACEOF
19985 #line $LINENO "configure"
19986 /* confdefs.h.  */
19987 _ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h.  */
19991 namespace Outer { namespace Inner { int i = 0; }}
19992 int
19993 main ()
19994 {
19995 using namespace Outer::Inner; return i;
19996   ;
19997   return 0;
19998 }
19999 _ACEOF
20000 rm -f conftest.$ac_objext
20001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20002   (eval $ac_compile) 2>&5
20003   ac_status=$?
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); } &&
20006          { ac_try='test -s conftest.$ac_objext'
20007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008   (eval $ac_try) 2>&5
20009   ac_status=$?
20010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011   (exit $ac_status); }; }; then
20012   ac_cv_cxx_namespaces=yes
20013 else
20014   echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20016
20017 ac_cv_cxx_namespaces=no
20018 fi
20019 rm -f conftest.$ac_objext conftest.$ac_ext
20020  ac_ext=c
20021 ac_cpp='$CPP $CPPFLAGS'
20022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20025
20026
20027 fi
20028 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20029 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20030 if test "$ac_cv_cxx_namespaces" = yes; then
20031
20032 cat >>confdefs.h <<\_ACEOF
20033 #define HAVE_NAMESPACES
20034 _ACEOF
20035
20036 fi
20037
20038 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20039 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20040 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20041   echo $ECHO_N "(cached) $ECHO_C" >&6
20042 else
20043
20044
20045
20046   ac_ext=cc
20047 ac_cpp='$CXXCPP $CPPFLAGS'
20048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20051
20052   cat >conftest.$ac_ext <<_ACEOF
20053 #line $LINENO "configure"
20054 /* confdefs.h.  */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h.  */
20059 #include <ext/hash_map>
20060 #ifdef HAVE_NAMESPACES
20061 using namespace std;
20062 #endif
20063 int
20064 main ()
20065 {
20066 hash_map<int, int> t;
20067   ;
20068   return 0;
20069 }
20070 _ACEOF
20071 rm -f conftest.$ac_objext
20072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20073   (eval $ac_compile) 2>&5
20074   ac_status=$?
20075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076   (exit $ac_status); } &&
20077          { ac_try='test -s conftest.$ac_objext'
20078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079   (eval $ac_try) 2>&5
20080   ac_status=$?
20081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082   (exit $ac_status); }; }; then
20083   ac_cv_cxx_have_std_ext_hash_map=yes
20084 else
20085   echo "$as_me: failed program was:" >&5
20086 sed 's/^/| /' conftest.$ac_ext >&5
20087
20088 ac_cv_cxx_have_std_ext_hash_map=no
20089 fi
20090 rm -f conftest.$ac_objext conftest.$ac_ext
20091   ac_ext=c
20092 ac_cpp='$CPP $CPPFLAGS'
20093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20096
20097 fi
20098 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20099 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20100  HAVE_STD_EXT_HASH_MAP=0
20101  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20102  then
20103    HAVE_STD_EXT_HASH_MAP=1
20104  fi
20105
20106  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20107 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20108 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20109   echo $ECHO_N "(cached) $ECHO_C" >&6
20110 else
20111
20112
20113
20114   ac_ext=cc
20115 ac_cpp='$CXXCPP $CPPFLAGS'
20116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20119
20120   cat >conftest.$ac_ext <<_ACEOF
20121 #line $LINENO "configure"
20122 /* confdefs.h.  */
20123 _ACEOF
20124 cat confdefs.h >>conftest.$ac_ext
20125 cat >>conftest.$ac_ext <<_ACEOF
20126 /* end confdefs.h.  */
20127 #include <ext/hash_map>
20128 #ifdef HAVE_NAMESPACES
20129 using namespace __gnu_cxx;
20130 #endif
20131 int
20132 main ()
20133 {
20134 hash_map<int,int> t;
20135   ;
20136   return 0;
20137 }
20138 _ACEOF
20139 rm -f conftest.$ac_objext
20140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20141   (eval $ac_compile) 2>&5
20142   ac_status=$?
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); } &&
20145          { ac_try='test -s conftest.$ac_objext'
20146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147   (eval $ac_try) 2>&5
20148   ac_status=$?
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); }; }; then
20151   ac_cv_cxx_have_gnu_ext_hash_map=yes
20152 else
20153   echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20155
20156 ac_cv_cxx_have_gnu_ext_hash_map=no
20157 fi
20158 rm -f conftest.$ac_objext conftest.$ac_ext
20159   ac_ext=c
20160 ac_cpp='$CPP $CPPFLAGS'
20161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20164
20165 fi
20166 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20167 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20168  HAVE_GNU_EXT_HASH_MAP=0
20169  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20170  then
20171    HAVE_GNU_EXT_HASH_MAP=1
20172  fi
20173
20174  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20175 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20176 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20177   echo $ECHO_N "(cached) $ECHO_C" >&6
20178 else
20179
20180
20181
20182   ac_ext=cc
20183 ac_cpp='$CXXCPP $CPPFLAGS'
20184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20187
20188   cat >conftest.$ac_ext <<_ACEOF
20189 #line $LINENO "configure"
20190 /* confdefs.h.  */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h.  */
20195 #include <hash_map>
20196 int
20197 main ()
20198 {
20199 hash_map<int,int> t;
20200   ;
20201   return 0;
20202 }
20203 _ACEOF
20204 rm -f conftest.$ac_objext
20205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20206   (eval $ac_compile) 2>&5
20207   ac_status=$?
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); } &&
20210          { ac_try='test -s conftest.$ac_objext'
20211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212   (eval $ac_try) 2>&5
20213   ac_status=$?
20214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215   (exit $ac_status); }; }; then
20216   ac_cv_cxx_have_global_hash_map=yes
20217 else
20218   echo "$as_me: failed program was:" >&5
20219 sed 's/^/| /' conftest.$ac_ext >&5
20220
20221 ac_cv_cxx_have_global_hash_map=no
20222 fi
20223 rm -f conftest.$ac_objext conftest.$ac_ext
20224   ac_ext=c
20225 ac_cpp='$CPP $CPPFLAGS'
20226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20229
20230 fi
20231 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20232 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20233  HAVE_GLOBAL_HASH_MAP=0
20234  if test "$ac_cv_cxx_have_global_hash_map" = yes
20235  then
20236    HAVE_GLOBAL_HASH_MAP=1
20237  fi
20238
20239 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20240 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20241 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20242   echo $ECHO_N "(cached) $ECHO_C" >&6
20243 else
20244
20245
20246
20247   ac_ext=cc
20248 ac_cpp='$CXXCPP $CPPFLAGS'
20249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20252
20253   cat >conftest.$ac_ext <<_ACEOF
20254 #line $LINENO "configure"
20255 /* confdefs.h.  */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h.  */
20260 #include <ext/hash_set>
20261 #ifdef HAVE_NAMESPACES
20262 using namespace std;
20263 #endif
20264 int
20265 main ()
20266 {
20267 hash_set<int> t;
20268   ;
20269   return 0;
20270 }
20271 _ACEOF
20272 rm -f conftest.$ac_objext
20273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20274   (eval $ac_compile) 2>&5
20275   ac_status=$?
20276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277   (exit $ac_status); } &&
20278          { ac_try='test -s conftest.$ac_objext'
20279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280   (eval $ac_try) 2>&5
20281   ac_status=$?
20282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283   (exit $ac_status); }; }; then
20284   ac_cv_cxx_have_std_ext_hash_set=yes
20285 else
20286   echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20288
20289 ac_cv_cxx_have_std_ext_hash_set=no
20290 fi
20291 rm -f conftest.$ac_objext conftest.$ac_ext
20292   ac_ext=c
20293 ac_cpp='$CPP $CPPFLAGS'
20294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20297
20298 fi
20299 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20300 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20301  HAVE_STD_EXT_HASH_SET=0
20302  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20303  then
20304    HAVE_STD_EXT_HASH_SET=1
20305  fi
20306
20307  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20308 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20309 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20310   echo $ECHO_N "(cached) $ECHO_C" >&6
20311 else
20312
20313
20314
20315   ac_ext=cc
20316 ac_cpp='$CXXCPP $CPPFLAGS'
20317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20320
20321   cat >conftest.$ac_ext <<_ACEOF
20322 #line $LINENO "configure"
20323 /* confdefs.h.  */
20324 _ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h.  */
20328 #include <ext/hash_set>
20329 #ifdef HAVE_NAMESPACES
20330 using namespace __gnu_cxx;
20331 #endif
20332 int
20333 main ()
20334 {
20335 hash_set<int> t;
20336   ;
20337   return 0;
20338 }
20339 _ACEOF
20340 rm -f conftest.$ac_objext
20341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20342   (eval $ac_compile) 2>&5
20343   ac_status=$?
20344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345   (exit $ac_status); } &&
20346          { ac_try='test -s conftest.$ac_objext'
20347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20348   (eval $ac_try) 2>&5
20349   ac_status=$?
20350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351   (exit $ac_status); }; }; then
20352   ac_cv_cxx_have_gnu_ext_hash_set=yes
20353 else
20354   echo "$as_me: failed program was:" >&5
20355 sed 's/^/| /' conftest.$ac_ext >&5
20356
20357 ac_cv_cxx_have_gnu_ext_hash_set=no
20358 fi
20359 rm -f conftest.$ac_objext conftest.$ac_ext
20360   ac_ext=c
20361 ac_cpp='$CPP $CPPFLAGS'
20362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20365
20366 fi
20367 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20368 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20369  HAVE_GNU_EXT_HASH_SET=0
20370  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20371  then
20372    HAVE_GNU_EXT_HASH_SET=1
20373  fi
20374
20375  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20376 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20377 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20378   echo $ECHO_N "(cached) $ECHO_C" >&6
20379 else
20380
20381
20382
20383   ac_ext=cc
20384 ac_cpp='$CXXCPP $CPPFLAGS'
20385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20388
20389   cat >conftest.$ac_ext <<_ACEOF
20390 #line $LINENO "configure"
20391 /* confdefs.h.  */
20392 _ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h.  */
20396 #include <hash_set>
20397 int
20398 main ()
20399 {
20400 hash_set<int> t; return 0;
20401   ;
20402   return 0;
20403 }
20404 _ACEOF
20405 rm -f conftest.$ac_objext
20406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20407   (eval $ac_compile) 2>&5
20408   ac_status=$?
20409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410   (exit $ac_status); } &&
20411          { ac_try='test -s conftest.$ac_objext'
20412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413   (eval $ac_try) 2>&5
20414   ac_status=$?
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); }; }; then
20417   ac_cv_cxx_have_global_hash_set=yes
20418 else
20419   echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20421
20422 ac_cv_cxx_have_global_hash_set=no
20423 fi
20424 rm -f conftest.$ac_objext conftest.$ac_ext
20425   ac_ext=c
20426 ac_cpp='$CPP $CPPFLAGS'
20427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20430
20431 fi
20432 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20433 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20434  HAVE_GLOBAL_HASH_SET=0
20435  if test "$ac_cv_cxx_have_global_hash_set" = yes
20436  then
20437    HAVE_GLOBAL_HASH_SET=1
20438  fi
20439
20440 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20441 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20442 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20443   echo $ECHO_N "(cached) $ECHO_C" >&6
20444 else
20445
20446
20447
20448   ac_ext=cc
20449 ac_cpp='$CXXCPP $CPPFLAGS'
20450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20453
20454   cat >conftest.$ac_ext <<_ACEOF
20455 #line $LINENO "configure"
20456 /* confdefs.h.  */
20457 _ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h.  */
20461 #include <iterator>
20462 #ifdef HAVE_NAMESPACES
20463 using namespace std;
20464 #endif
20465 int
20466 main ()
20467 {
20468 iterator<int,int,int> t; return 0;
20469   ;
20470   return 0;
20471 }
20472 _ACEOF
20473 rm -f conftest.$ac_objext
20474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20475   (eval $ac_compile) 2>&5
20476   ac_status=$?
20477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478   (exit $ac_status); } &&
20479          { ac_try='test -s conftest.$ac_objext'
20480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481   (eval $ac_try) 2>&5
20482   ac_status=$?
20483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484   (exit $ac_status); }; }; then
20485   ac_cv_cxx_have_std_iterator=yes
20486 else
20487   echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20489
20490 ac_cv_cxx_have_std_iterator=no
20491 fi
20492 rm -f conftest.$ac_objext conftest.$ac_ext
20493   ac_ext=c
20494 ac_cpp='$CPP $CPPFLAGS'
20495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20498
20499
20500 fi
20501 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20502 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20503 HAVE_STD_ITERATOR=0
20504 if test "$ac_cv_cxx_have_std_iterator" = yes
20505 then
20506    HAVE_STD_ITERATOR=1
20507 fi
20508
20509 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20510 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20511 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20512   echo $ECHO_N "(cached) $ECHO_C" >&6
20513 else
20514
20515
20516
20517   ac_ext=cc
20518 ac_cpp='$CXXCPP $CPPFLAGS'
20519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20522
20523   cat >conftest.$ac_ext <<_ACEOF
20524 #line $LINENO "configure"
20525 /* confdefs.h.  */
20526 _ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h.  */
20530 #include <iterator>
20531 #ifdef HAVE_NAMESPACES
20532 using namespace std;
20533 #endif
20534 int
20535 main ()
20536 {
20537 bidirectional_iterator<int,int> t; return 0;
20538   ;
20539   return 0;
20540 }
20541 _ACEOF
20542 rm -f conftest.$ac_objext
20543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20544   (eval $ac_compile) 2>&5
20545   ac_status=$?
20546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547   (exit $ac_status); } &&
20548          { ac_try='test -s conftest.$ac_objext'
20549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550   (eval $ac_try) 2>&5
20551   ac_status=$?
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); }; }; then
20554   ac_cv_cxx_have_bi_iterator=yes
20555 else
20556   echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20558
20559 ac_cv_cxx_have_bi_iterator=no
20560 fi
20561 rm -f conftest.$ac_objext conftest.$ac_ext
20562   ac_ext=c
20563 ac_cpp='$CPP $CPPFLAGS'
20564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20567
20568
20569 fi
20570 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20571 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20572 HAVE_BI_ITERATOR=0
20573 if test "$ac_cv_cxx_have_bi_iterator" = yes
20574 then
20575    HAVE_BI_ITERATOR=1
20576 fi
20577
20578 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20579 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20580 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20581   echo $ECHO_N "(cached) $ECHO_C" >&6
20582 else
20583
20584
20585
20586   ac_ext=cc
20587 ac_cpp='$CXXCPP $CPPFLAGS'
20588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20591
20592   cat >conftest.$ac_ext <<_ACEOF
20593 #line $LINENO "configure"
20594 /* confdefs.h.  */
20595 _ACEOF
20596 cat confdefs.h >>conftest.$ac_ext
20597 cat >>conftest.$ac_ext <<_ACEOF
20598 /* end confdefs.h.  */
20599 #include <iterator>
20600 #ifdef HAVE_NAMESPACES
20601 using namespace std;
20602 #endif
20603 int
20604 main ()
20605 {
20606 forward_iterator<int,int> t; return 0;
20607   ;
20608   return 0;
20609 }
20610 _ACEOF
20611 rm -f conftest.$ac_objext
20612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20613   (eval $ac_compile) 2>&5
20614   ac_status=$?
20615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616   (exit $ac_status); } &&
20617          { ac_try='test -s conftest.$ac_objext'
20618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619   (eval $ac_try) 2>&5
20620   ac_status=$?
20621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622   (exit $ac_status); }; }; then
20623   ac_cv_cxx_have_fwd_iterator=yes
20624 else
20625   echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20627
20628 ac_cv_cxx_have_fwd_iterator=no
20629 fi
20630 rm -f conftest.$ac_objext conftest.$ac_ext
20631   ac_ext=c
20632 ac_cpp='$CPP $CPPFLAGS'
20633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20636
20637
20638 fi
20639 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20640 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20641 HAVE_FWD_ITERATOR=0
20642 if test "$ac_cv_cxx_have_fwd_iterator" = yes
20643 then
20644    HAVE_FWD_ITERATOR=1
20645 fi
20646
20647
20648 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20649 # for constant arguments.  Useless!
20650 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20651 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20652 if test "${ac_cv_working_alloca_h+set}" = set; then
20653   echo $ECHO_N "(cached) $ECHO_C" >&6
20654 else
20655   cat >conftest.$ac_ext <<_ACEOF
20656 #line $LINENO "configure"
20657 /* confdefs.h.  */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h.  */
20662 #include <alloca.h>
20663 int
20664 main ()
20665 {
20666 char *p = (char *) alloca (2 * sizeof (int));
20667   ;
20668   return 0;
20669 }
20670 _ACEOF
20671 rm -f conftest.$ac_objext conftest$ac_exeext
20672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20673   (eval $ac_link) 2>&5
20674   ac_status=$?
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); } &&
20677          { ac_try='test -s conftest$ac_exeext'
20678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679   (eval $ac_try) 2>&5
20680   ac_status=$?
20681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682   (exit $ac_status); }; }; then
20683   ac_cv_working_alloca_h=yes
20684 else
20685   echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20687
20688 ac_cv_working_alloca_h=no
20689 fi
20690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20691 fi
20692 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20693 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20694 if test $ac_cv_working_alloca_h = yes; then
20695
20696 cat >>confdefs.h <<\_ACEOF
20697 #define HAVE_ALLOCA_H 1
20698 _ACEOF
20699
20700 fi
20701
20702 echo "$as_me:$LINENO: checking for alloca" >&5
20703 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20704 if test "${ac_cv_func_alloca_works+set}" = set; then
20705   echo $ECHO_N "(cached) $ECHO_C" >&6
20706 else
20707   cat >conftest.$ac_ext <<_ACEOF
20708 #line $LINENO "configure"
20709 /* confdefs.h.  */
20710 _ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h.  */
20714 #ifdef __GNUC__
20715 # define alloca __builtin_alloca
20716 #else
20717 # ifdef _MSC_VER
20718 #  include <malloc.h>
20719 #  define alloca _alloca
20720 # else
20721 #  if HAVE_ALLOCA_H
20722 #   include <alloca.h>
20723 #  else
20724 #   ifdef _AIX
20725  #pragma alloca
20726 #   else
20727 #    ifndef alloca /* predefined by HP cc +Olibcalls */
20728 char *alloca ();
20729 #    endif
20730 #   endif
20731 #  endif
20732 # endif
20733 #endif
20734
20735 int
20736 main ()
20737 {
20738 char *p = (char *) alloca (1);
20739   ;
20740   return 0;
20741 }
20742 _ACEOF
20743 rm -f conftest.$ac_objext conftest$ac_exeext
20744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20745   (eval $ac_link) 2>&5
20746   ac_status=$?
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); } &&
20749          { ac_try='test -s conftest$ac_exeext'
20750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751   (eval $ac_try) 2>&5
20752   ac_status=$?
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); }; }; then
20755   ac_cv_func_alloca_works=yes
20756 else
20757   echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20759
20760 ac_cv_func_alloca_works=no
20761 fi
20762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20763 fi
20764 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20765 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20766
20767 if test $ac_cv_func_alloca_works = yes; then
20768
20769 cat >>confdefs.h <<\_ACEOF
20770 #define HAVE_ALLOCA 1
20771 _ACEOF
20772
20773 else
20774   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20775 # that cause trouble.  Some versions do not even contain alloca or
20776 # contain a buggy version.  If you still want to use their alloca,
20777 # use ar to extract alloca.o from them instead of compiling alloca.c.
20778
20779 ALLOCA=alloca.$ac_objext
20780
20781 cat >>confdefs.h <<\_ACEOF
20782 #define C_ALLOCA 1
20783 _ACEOF
20784
20785
20786 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20787 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20788 if test "${ac_cv_os_cray+set}" = set; then
20789   echo $ECHO_N "(cached) $ECHO_C" >&6
20790 else
20791   cat >conftest.$ac_ext <<_ACEOF
20792 #line $LINENO "configure"
20793 /* confdefs.h.  */
20794 _ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h.  */
20798 #if defined(CRAY) && ! defined(CRAY2)
20799 webecray
20800 #else
20801 wenotbecray
20802 #endif
20803
20804 _ACEOF
20805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20806   $EGREP "webecray" >/dev/null 2>&1; then
20807   ac_cv_os_cray=yes
20808 else
20809   ac_cv_os_cray=no
20810 fi
20811 rm -f conftest*
20812
20813 fi
20814 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20815 echo "${ECHO_T}$ac_cv_os_cray" >&6
20816 if test $ac_cv_os_cray = yes; then
20817   for ac_func in _getb67 GETB67 getb67; do
20818     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20819 echo "$as_me:$LINENO: checking for $ac_func" >&5
20820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20821 if eval "test \"\${$as_ac_var+set}\" = set"; then
20822   echo $ECHO_N "(cached) $ECHO_C" >&6
20823 else
20824   cat >conftest.$ac_ext <<_ACEOF
20825 #line $LINENO "configure"
20826 /* confdefs.h.  */
20827 _ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h.  */
20831 /* System header to define __stub macros and hopefully few prototypes,
20832     which can conflict with char $ac_func (); below.
20833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20834     <limits.h> exists even on freestanding compilers.  */
20835 #ifdef __STDC__
20836 # include <limits.h>
20837 #else
20838 # include <assert.h>
20839 #endif
20840 /* Override any gcc2 internal prototype to avoid an error.  */
20841 #ifdef __cplusplus
20842 extern "C"
20843 {
20844 #endif
20845 /* We use char because int might match the return type of a gcc2
20846    builtin and then its argument prototype would still apply.  */
20847 char $ac_func ();
20848 /* The GNU C library defines this for functions which it implements
20849     to always fail with ENOSYS.  Some functions are actually named
20850     something starting with __ and the normal name is an alias.  */
20851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20852 choke me
20853 #else
20854 char (*f) () = $ac_func;
20855 #endif
20856 #ifdef __cplusplus
20857 }
20858 #endif
20859
20860 int
20861 main ()
20862 {
20863 return f != $ac_func;
20864   ;
20865   return 0;
20866 }
20867 _ACEOF
20868 rm -f conftest.$ac_objext conftest$ac_exeext
20869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20870   (eval $ac_link) 2>&5
20871   ac_status=$?
20872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873   (exit $ac_status); } &&
20874          { ac_try='test -s conftest$ac_exeext'
20875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876   (eval $ac_try) 2>&5
20877   ac_status=$?
20878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879   (exit $ac_status); }; }; then
20880   eval "$as_ac_var=yes"
20881 else
20882   echo "$as_me: failed program was:" >&5
20883 sed 's/^/| /' conftest.$ac_ext >&5
20884
20885 eval "$as_ac_var=no"
20886 fi
20887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20888 fi
20889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20891 if test `eval echo '${'$as_ac_var'}'` = yes; then
20892
20893 cat >>confdefs.h <<_ACEOF
20894 #define CRAY_STACKSEG_END $ac_func
20895 _ACEOF
20896
20897     break
20898 fi
20899
20900   done
20901 fi
20902
20903 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20904 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20905 if test "${ac_cv_c_stack_direction+set}" = set; then
20906   echo $ECHO_N "(cached) $ECHO_C" >&6
20907 else
20908   if test "$cross_compiling" = yes; then
20909   ac_cv_c_stack_direction=0
20910 else
20911   cat >conftest.$ac_ext <<_ACEOF
20912 #line $LINENO "configure"
20913 /* confdefs.h.  */
20914 _ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h.  */
20918 int
20919 find_stack_direction ()
20920 {
20921   static char *addr = 0;
20922   auto char dummy;
20923   if (addr == 0)
20924     {
20925       addr = &dummy;
20926       return find_stack_direction ();
20927     }
20928   else
20929     return (&dummy > addr) ? 1 : -1;
20930 }
20931
20932 int
20933 main ()
20934 {
20935   exit (find_stack_direction () < 0);
20936 }
20937 _ACEOF
20938 rm -f conftest$ac_exeext
20939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20940   (eval $ac_link) 2>&5
20941   ac_status=$?
20942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945   (eval $ac_try) 2>&5
20946   ac_status=$?
20947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948   (exit $ac_status); }; }; then
20949   ac_cv_c_stack_direction=1
20950 else
20951   echo "$as_me: program exited with status $ac_status" >&5
20952 echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20954
20955 ( exit $ac_status )
20956 ac_cv_c_stack_direction=-1
20957 fi
20958 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20959 fi
20960 fi
20961 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20962 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20963
20964 cat >>confdefs.h <<_ACEOF
20965 #define STACK_DIRECTION $ac_cv_c_stack_direction
20966 _ACEOF
20967
20968
20969 fi
20970
20971
20972
20973 for ac_header in stdlib.h unistd.h
20974 do
20975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20977   echo "$as_me:$LINENO: checking for $ac_header" >&5
20978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20980   echo $ECHO_N "(cached) $ECHO_C" >&6
20981 fi
20982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20984 else
20985   # Is the header compilable?
20986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20988 cat >conftest.$ac_ext <<_ACEOF
20989 #line $LINENO "configure"
20990 /* confdefs.h.  */
20991 _ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h.  */
20995 $ac_includes_default
20996 #include <$ac_header>
20997 _ACEOF
20998 rm -f conftest.$ac_objext
20999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21000   (eval $ac_compile) 2>&5
21001   ac_status=$?
21002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003   (exit $ac_status); } &&
21004          { ac_try='test -s conftest.$ac_objext'
21005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006   (eval $ac_try) 2>&5
21007   ac_status=$?
21008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009   (exit $ac_status); }; }; then
21010   ac_header_compiler=yes
21011 else
21012   echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21014
21015 ac_header_compiler=no
21016 fi
21017 rm -f conftest.$ac_objext conftest.$ac_ext
21018 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21019 echo "${ECHO_T}$ac_header_compiler" >&6
21020
21021 # Is the header present?
21022 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21024 cat >conftest.$ac_ext <<_ACEOF
21025 #line $LINENO "configure"
21026 /* confdefs.h.  */
21027 _ACEOF
21028 cat confdefs.h >>conftest.$ac_ext
21029 cat >>conftest.$ac_ext <<_ACEOF
21030 /* end confdefs.h.  */
21031 #include <$ac_header>
21032 _ACEOF
21033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21034   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21035   ac_status=$?
21036   grep -v '^ *+' conftest.er1 >conftest.err
21037   rm -f conftest.er1
21038   cat conftest.err >&5
21039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040   (exit $ac_status); } >/dev/null; then
21041   if test -s conftest.err; then
21042     ac_cpp_err=$ac_c_preproc_warn_flag
21043   else
21044     ac_cpp_err=
21045   fi
21046 else
21047   ac_cpp_err=yes
21048 fi
21049 if test -z "$ac_cpp_err"; then
21050   ac_header_preproc=yes
21051 else
21052   echo "$as_me: failed program was:" >&5
21053 sed 's/^/| /' conftest.$ac_ext >&5
21054
21055   ac_header_preproc=no
21056 fi
21057 rm -f conftest.err conftest.$ac_ext
21058 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21059 echo "${ECHO_T}$ac_header_preproc" >&6
21060
21061 # So?  What about this header?
21062 case $ac_header_compiler:$ac_header_preproc in
21063   yes:no )
21064     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21068     (
21069       cat <<\_ASBOX
21070 ## ------------------------------------ ##
21071 ## Report this to bug-autoconf@gnu.org. ##
21072 ## ------------------------------------ ##
21073 _ASBOX
21074     ) |
21075       sed "s/^/$as_me: WARNING:     /" >&2
21076     ;;
21077   no:yes )
21078     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21080     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21081 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21084     (
21085       cat <<\_ASBOX
21086 ## ------------------------------------ ##
21087 ## Report this to bug-autoconf@gnu.org. ##
21088 ## ------------------------------------ ##
21089 _ASBOX
21090     ) |
21091       sed "s/^/$as_me: WARNING:     /" >&2
21092     ;;
21093 esac
21094 echo "$as_me:$LINENO: checking for $ac_header" >&5
21095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21097   echo $ECHO_N "(cached) $ECHO_C" >&6
21098 else
21099   eval "$as_ac_Header=$ac_header_preproc"
21100 fi
21101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21103
21104 fi
21105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21106   cat >>confdefs.h <<_ACEOF
21107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21108 _ACEOF
21109
21110 fi
21111
21112 done
21113
21114
21115 for ac_func in getpagesize
21116 do
21117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21118 echo "$as_me:$LINENO: checking for $ac_func" >&5
21119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21120 if eval "test \"\${$as_ac_var+set}\" = set"; then
21121   echo $ECHO_N "(cached) $ECHO_C" >&6
21122 else
21123   cat >conftest.$ac_ext <<_ACEOF
21124 #line $LINENO "configure"
21125 /* confdefs.h.  */
21126 _ACEOF
21127 cat confdefs.h >>conftest.$ac_ext
21128 cat >>conftest.$ac_ext <<_ACEOF
21129 /* end confdefs.h.  */
21130 /* System header to define __stub macros and hopefully few prototypes,
21131     which can conflict with char $ac_func (); below.
21132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21133     <limits.h> exists even on freestanding compilers.  */
21134 #ifdef __STDC__
21135 # include <limits.h>
21136 #else
21137 # include <assert.h>
21138 #endif
21139 /* Override any gcc2 internal prototype to avoid an error.  */
21140 #ifdef __cplusplus
21141 extern "C"
21142 {
21143 #endif
21144 /* We use char because int might match the return type of a gcc2
21145    builtin and then its argument prototype would still apply.  */
21146 char $ac_func ();
21147 /* The GNU C library defines this for functions which it implements
21148     to always fail with ENOSYS.  Some functions are actually named
21149     something starting with __ and the normal name is an alias.  */
21150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21151 choke me
21152 #else
21153 char (*f) () = $ac_func;
21154 #endif
21155 #ifdef __cplusplus
21156 }
21157 #endif
21158
21159 int
21160 main ()
21161 {
21162 return f != $ac_func;
21163   ;
21164   return 0;
21165 }
21166 _ACEOF
21167 rm -f conftest.$ac_objext conftest$ac_exeext
21168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21169   (eval $ac_link) 2>&5
21170   ac_status=$?
21171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172   (exit $ac_status); } &&
21173          { ac_try='test -s conftest$ac_exeext'
21174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175   (eval $ac_try) 2>&5
21176   ac_status=$?
21177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178   (exit $ac_status); }; }; then
21179   eval "$as_ac_var=yes"
21180 else
21181   echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21183
21184 eval "$as_ac_var=no"
21185 fi
21186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21187 fi
21188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21190 if test `eval echo '${'$as_ac_var'}'` = yes; then
21191   cat >>confdefs.h <<_ACEOF
21192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21193 _ACEOF
21194
21195 fi
21196 done
21197
21198 echo "$as_me:$LINENO: checking for working mmap" >&5
21199 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21200 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21201   echo $ECHO_N "(cached) $ECHO_C" >&6
21202 else
21203   if test "$cross_compiling" = yes; then
21204   ac_cv_func_mmap_fixed_mapped=no
21205 else
21206   cat >conftest.$ac_ext <<_ACEOF
21207 #line $LINENO "configure"
21208 /* confdefs.h.  */
21209 _ACEOF
21210 cat confdefs.h >>conftest.$ac_ext
21211 cat >>conftest.$ac_ext <<_ACEOF
21212 /* end confdefs.h.  */
21213 $ac_includes_default
21214 /* malloc might have been renamed as rpl_malloc. */
21215 #undef malloc
21216
21217 /* Thanks to Mike Haertel and Jim Avera for this test.
21218    Here is a matrix of mmap possibilities:
21219         mmap private not fixed
21220         mmap private fixed at somewhere currently unmapped
21221         mmap private fixed at somewhere already mapped
21222         mmap shared not fixed
21223         mmap shared fixed at somewhere currently unmapped
21224         mmap shared fixed at somewhere already mapped
21225    For private mappings, we should verify that changes cannot be read()
21226    back from the file, nor mmap's back from the file at a different
21227    address.  (There have been systems where private was not correctly
21228    implemented like the infamous i386 svr4.0, and systems where the
21229    VM page cache was not coherent with the file system buffer cache
21230    like early versions of FreeBSD and possibly contemporary NetBSD.)
21231    For shared mappings, we should conversely verify that changes get
21232    propagated back to all the places they're supposed to be.
21233
21234    Grep wants private fixed already mapped.
21235    The main things grep needs to know about mmap are:
21236    * does it exist and is it safe to write into the mmap'd area
21237    * how to use it (BSD variants)  */
21238
21239 #include <fcntl.h>
21240 #include <sys/mman.h>
21241
21242 #if !STDC_HEADERS && !HAVE_STDLIB_H
21243 char *malloc ();
21244 #endif
21245
21246 /* This mess was copied from the GNU getpagesize.h.  */
21247 #if !HAVE_GETPAGESIZE
21248 /* Assume that all systems that can run configure have sys/param.h.  */
21249 # if !HAVE_SYS_PARAM_H
21250 #  define HAVE_SYS_PARAM_H 1
21251 # endif
21252
21253 # ifdef _SC_PAGESIZE
21254 #  define getpagesize() sysconf(_SC_PAGESIZE)
21255 # else /* no _SC_PAGESIZE */
21256 #  if HAVE_SYS_PARAM_H
21257 #   include <sys/param.h>
21258 #   ifdef EXEC_PAGESIZE
21259 #    define getpagesize() EXEC_PAGESIZE
21260 #   else /* no EXEC_PAGESIZE */
21261 #    ifdef NBPG
21262 #     define getpagesize() NBPG * CLSIZE
21263 #     ifndef CLSIZE
21264 #      define CLSIZE 1
21265 #     endif /* no CLSIZE */
21266 #    else /* no NBPG */
21267 #     ifdef NBPC
21268 #      define getpagesize() NBPC
21269 #     else /* no NBPC */
21270 #      ifdef PAGESIZE
21271 #       define getpagesize() PAGESIZE
21272 #      endif /* PAGESIZE */
21273 #     endif /* no NBPC */
21274 #    endif /* no NBPG */
21275 #   endif /* no EXEC_PAGESIZE */
21276 #  else /* no HAVE_SYS_PARAM_H */
21277 #   define getpagesize() 8192   /* punt totally */
21278 #  endif /* no HAVE_SYS_PARAM_H */
21279 # endif /* no _SC_PAGESIZE */
21280
21281 #endif /* no HAVE_GETPAGESIZE */
21282
21283 int
21284 main ()
21285 {
21286   char *data, *data2, *data3;
21287   int i, pagesize;
21288   int fd;
21289
21290   pagesize = getpagesize ();
21291
21292   /* First, make a file with some known garbage in it. */
21293   data = (char *) malloc (pagesize);
21294   if (!data)
21295     exit (1);
21296   for (i = 0; i < pagesize; ++i)
21297     *(data + i) = rand ();
21298   umask (0);
21299   fd = creat ("conftest.mmap", 0600);
21300   if (fd < 0)
21301     exit (1);
21302   if (write (fd, data, pagesize) != pagesize)
21303     exit (1);
21304   close (fd);
21305
21306   /* Next, try to mmap the file at a fixed address which already has
21307      something else allocated at it.  If we can, also make sure that
21308      we see the same garbage.  */
21309   fd = open ("conftest.mmap", O_RDWR);
21310   if (fd < 0)
21311     exit (1);
21312   data2 = (char *) malloc (2 * pagesize);
21313   if (!data2)
21314     exit (1);
21315   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21316   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21317                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21318     exit (1);
21319   for (i = 0; i < pagesize; ++i)
21320     if (*(data + i) != *(data2 + i))
21321       exit (1);
21322
21323   /* Finally, make sure that changes to the mapped area do not
21324      percolate back to the file as seen by read().  (This is a bug on
21325      some variants of i386 svr4.0.)  */
21326   for (i = 0; i < pagesize; ++i)
21327     *(data2 + i) = *(data2 + i) + 1;
21328   data3 = (char *) malloc (pagesize);
21329   if (!data3)
21330     exit (1);
21331   if (read (fd, data3, pagesize) != pagesize)
21332     exit (1);
21333   for (i = 0; i < pagesize; ++i)
21334     if (*(data + i) != *(data3 + i))
21335       exit (1);
21336   close (fd);
21337   exit (0);
21338 }
21339 _ACEOF
21340 rm -f conftest$ac_exeext
21341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21342   (eval $ac_link) 2>&5
21343   ac_status=$?
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347   (eval $ac_try) 2>&5
21348   ac_status=$?
21349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350   (exit $ac_status); }; }; then
21351   ac_cv_func_mmap_fixed_mapped=yes
21352 else
21353   echo "$as_me: program exited with status $ac_status" >&5
21354 echo "$as_me: failed program was:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21356
21357 ( exit $ac_status )
21358 ac_cv_func_mmap_fixed_mapped=no
21359 fi
21360 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21361 fi
21362 fi
21363 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21364 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21365 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21366
21367 cat >>confdefs.h <<\_ACEOF
21368 #define HAVE_MMAP 1
21369 _ACEOF
21370
21371 fi
21372 rm -f conftest.mmap
21373
21374 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21375 then
21376         { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
21377 echo "$as_me: WARNING: mmap() required but not found" >&2;}
21378 fi
21379 echo "$as_me:$LINENO: checking for mmap of files" >&5
21380 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21381 if test "${ac_cv_func_mmap_file+set}" = set; then
21382   echo $ECHO_N "(cached) $ECHO_C" >&6
21383 else
21384
21385
21386   ac_ext=c
21387 ac_cpp='$CPP $CPPFLAGS'
21388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21391
21392   if test "$cross_compiling" = yes; then
21393   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21394 See \`config.log' for more details." >&5
21395 echo "$as_me: error: cannot run test program while cross compiling
21396 See \`config.log' for more details." >&2;}
21397    { (exit 1); exit 1; }; }
21398 else
21399   cat >conftest.$ac_ext <<_ACEOF
21400 #line $LINENO "configure"
21401 /* confdefs.h.  */
21402 _ACEOF
21403 cat confdefs.h >>conftest.$ac_ext
21404 cat >>conftest.$ac_ext <<_ACEOF
21405 /* end confdefs.h.  */
21406
21407 #ifdef HAVE_SYS_TYPES_H
21408 #include <sys/types.h>
21409 #endif
21410
21411 #ifdef HAVE_SYS_MMAN_H
21412 #include <sys/mman.h>
21413 #endif
21414
21415 #ifdef HAVE_FCNTL_H
21416 #include <fcntl.h>
21417 #endif
21418
21419   int fd;
21420   int main () {
21421   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
21422 _ACEOF
21423 rm -f conftest$ac_exeext
21424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21425   (eval $ac_link) 2>&5
21426   ac_status=$?
21427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21430   (eval $ac_try) 2>&5
21431   ac_status=$?
21432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433   (exit $ac_status); }; }; then
21434   ac_cv_func_mmap_file=yes
21435 else
21436   echo "$as_me: program exited with status $ac_status" >&5
21437 echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21439
21440 ( exit $ac_status )
21441 ac_cv_func_mmap_file=no
21442 fi
21443 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21444 fi
21445   ac_ext=c
21446 ac_cpp='$CPP $CPPFLAGS'
21447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21450
21451
21452 fi
21453 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21454 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21455 if test "$ac_cv_func_mmap_file" = yes; then
21456
21457 cat >>confdefs.h <<\_ACEOF
21458 #define HAVE_MMAP_FILE
21459 _ACEOF
21460
21461    MMAP_FILE=yes
21462
21463 fi
21464
21465 if test "$ac_cv_func_mmap_file" = "no"
21466 then
21467         { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21468 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21469 fi
21470 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21471 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21472 if test "${ac_cv_header_mmap_anon+set}" = set; then
21473   echo $ECHO_N "(cached) $ECHO_C" >&6
21474 else
21475
21476
21477   ac_ext=c
21478 ac_cpp='$CPP $CPPFLAGS'
21479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21482
21483   cat >conftest.$ac_ext <<_ACEOF
21484 #line $LINENO "configure"
21485 /* confdefs.h.  */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h.  */
21490 #include <sys/mman.h>
21491   #include <unistd.h>
21492   #include <fcntl.h>
21493 int
21494 main ()
21495 {
21496 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21497   ;
21498   return 0;
21499 }
21500 _ACEOF
21501 rm -f conftest.$ac_objext
21502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21503   (eval $ac_compile) 2>&5
21504   ac_status=$?
21505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506   (exit $ac_status); } &&
21507          { ac_try='test -s conftest.$ac_objext'
21508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21509   (eval $ac_try) 2>&5
21510   ac_status=$?
21511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512   (exit $ac_status); }; }; then
21513   ac_cv_header_mmap_anon=yes
21514 else
21515   echo "$as_me: failed program was:" >&5
21516 sed 's/^/| /' conftest.$ac_ext >&5
21517
21518 ac_cv_header_mmap_anon=no
21519 fi
21520 rm -f conftest.$ac_objext conftest.$ac_ext
21521   ac_ext=c
21522 ac_cpp='$CPP $CPPFLAGS'
21523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21526
21527
21528 fi
21529 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21530 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21531 if test "$ac_cv_header_mmap_anon" = yes; then
21532
21533 cat >>confdefs.h <<\_ACEOF
21534 #define HAVE_MMAP_ANONYMOUS
21535 _ACEOF
21536
21537 fi
21538
21539 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21540 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21541 if test "${ac_cv_type_signal+set}" = set; then
21542   echo $ECHO_N "(cached) $ECHO_C" >&6
21543 else
21544   cat >conftest.$ac_ext <<_ACEOF
21545 #line $LINENO "configure"
21546 /* confdefs.h.  */
21547 _ACEOF
21548 cat confdefs.h >>conftest.$ac_ext
21549 cat >>conftest.$ac_ext <<_ACEOF
21550 /* end confdefs.h.  */
21551 #include <sys/types.h>
21552 #include <signal.h>
21553 #ifdef signal
21554 # undef signal
21555 #endif
21556 #ifdef __cplusplus
21557 extern "C" void (*signal (int, void (*)(int)))(int);
21558 #else
21559 void (*signal ()) ();
21560 #endif
21561
21562 int
21563 main ()
21564 {
21565 int i;
21566   ;
21567   return 0;
21568 }
21569 _ACEOF
21570 rm -f conftest.$ac_objext
21571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21572   (eval $ac_compile) 2>&5
21573   ac_status=$?
21574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575   (exit $ac_status); } &&
21576          { ac_try='test -s conftest.$ac_objext'
21577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578   (eval $ac_try) 2>&5
21579   ac_status=$?
21580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581   (exit $ac_status); }; }; then
21582   ac_cv_type_signal=void
21583 else
21584   echo "$as_me: failed program was:" >&5
21585 sed 's/^/| /' conftest.$ac_ext >&5
21586
21587 ac_cv_type_signal=int
21588 fi
21589 rm -f conftest.$ac_objext conftest.$ac_ext
21590 fi
21591 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21592 echo "${ECHO_T}$ac_cv_type_signal" >&6
21593
21594 cat >>confdefs.h <<_ACEOF
21595 #define RETSIGTYPE $ac_cv_type_signal
21596 _ACEOF
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
21609 do
21610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21611 echo "$as_me:$LINENO: checking for $ac_func" >&5
21612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21613 if eval "test \"\${$as_ac_var+set}\" = set"; then
21614   echo $ECHO_N "(cached) $ECHO_C" >&6
21615 else
21616   cat >conftest.$ac_ext <<_ACEOF
21617 #line $LINENO "configure"
21618 /* confdefs.h.  */
21619 _ACEOF
21620 cat confdefs.h >>conftest.$ac_ext
21621 cat >>conftest.$ac_ext <<_ACEOF
21622 /* end confdefs.h.  */
21623 /* System header to define __stub macros and hopefully few prototypes,
21624     which can conflict with char $ac_func (); below.
21625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21626     <limits.h> exists even on freestanding compilers.  */
21627 #ifdef __STDC__
21628 # include <limits.h>
21629 #else
21630 # include <assert.h>
21631 #endif
21632 /* Override any gcc2 internal prototype to avoid an error.  */
21633 #ifdef __cplusplus
21634 extern "C"
21635 {
21636 #endif
21637 /* We use char because int might match the return type of a gcc2
21638    builtin and then its argument prototype would still apply.  */
21639 char $ac_func ();
21640 /* The GNU C library defines this for functions which it implements
21641     to always fail with ENOSYS.  Some functions are actually named
21642     something starting with __ and the normal name is an alias.  */
21643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21644 choke me
21645 #else
21646 char (*f) () = $ac_func;
21647 #endif
21648 #ifdef __cplusplus
21649 }
21650 #endif
21651
21652 int
21653 main ()
21654 {
21655 return f != $ac_func;
21656   ;
21657   return 0;
21658 }
21659 _ACEOF
21660 rm -f conftest.$ac_objext conftest$ac_exeext
21661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21662   (eval $ac_link) 2>&5
21663   ac_status=$?
21664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665   (exit $ac_status); } &&
21666          { ac_try='test -s conftest$ac_exeext'
21667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21668   (eval $ac_try) 2>&5
21669   ac_status=$?
21670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671   (exit $ac_status); }; }; then
21672   eval "$as_ac_var=yes"
21673 else
21674   echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21676
21677 eval "$as_ac_var=no"
21678 fi
21679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21680 fi
21681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21683 if test `eval echo '${'$as_ac_var'}'` = yes; then
21684   cat >>confdefs.h <<_ACEOF
21685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21686 _ACEOF
21687
21688 fi
21689 done
21690
21691 echo "$as_me:$LINENO: checking for mprotect" >&5
21692 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21693 if test "${ac_cv_func_mprotect+set}" = set; then
21694   echo $ECHO_N "(cached) $ECHO_C" >&6
21695 else
21696   cat >conftest.$ac_ext <<_ACEOF
21697 #line $LINENO "configure"
21698 /* confdefs.h.  */
21699 _ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h.  */
21703 /* System header to define __stub macros and hopefully few prototypes,
21704     which can conflict with char mprotect (); below.
21705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21706     <limits.h> exists even on freestanding compilers.  */
21707 #ifdef __STDC__
21708 # include <limits.h>
21709 #else
21710 # include <assert.h>
21711 #endif
21712 /* Override any gcc2 internal prototype to avoid an error.  */
21713 #ifdef __cplusplus
21714 extern "C"
21715 {
21716 #endif
21717 /* We use char because int might match the return type of a gcc2
21718    builtin and then its argument prototype would still apply.  */
21719 char mprotect ();
21720 /* The GNU C library defines this for functions which it implements
21721     to always fail with ENOSYS.  Some functions are actually named
21722     something starting with __ and the normal name is an alias.  */
21723 #if defined (__stub_mprotect) || defined (__stub___mprotect)
21724 choke me
21725 #else
21726 char (*f) () = mprotect;
21727 #endif
21728 #ifdef __cplusplus
21729 }
21730 #endif
21731
21732 int
21733 main ()
21734 {
21735 return f != mprotect;
21736   ;
21737   return 0;
21738 }
21739 _ACEOF
21740 rm -f conftest.$ac_objext conftest$ac_exeext
21741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21742   (eval $ac_link) 2>&5
21743   ac_status=$?
21744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745   (exit $ac_status); } &&
21746          { ac_try='test -s conftest$ac_exeext'
21747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748   (eval $ac_try) 2>&5
21749   ac_status=$?
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); }; }; then
21752   ac_cv_func_mprotect=yes
21753 else
21754   echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21756
21757 ac_cv_func_mprotect=no
21758 fi
21759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21760 fi
21761 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21762 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21763 if test $ac_cv_func_mprotect = yes; then
21764   :
21765 else
21766   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21767 echo "$as_me: error: Function mprotect() required but not found" >&2;}
21768    { (exit 1); exit 1; }; }
21769 fi
21770
21771
21772
21773
21774
21775   ac_ext=c
21776 ac_cpp='$CPP $CPPFLAGS'
21777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21780
21781   oldcflags="$CFLAGS"
21782   CFLAGS="$CFLAGS -Wl,-R."
21783   cat >conftest.$ac_ext <<_ACEOF
21784 int main() { return 0; }
21785 _ACEOF
21786 rm -f conftest.$ac_objext conftest$ac_exeext
21787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21788   (eval $ac_link) 2>&5
21789   ac_status=$?
21790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791   (exit $ac_status); } &&
21792          { ac_try='test -s conftest$ac_exeext'
21793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794   (eval $ac_try) 2>&5
21795   ac_status=$?
21796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797   (exit $ac_status); }; }; then
21798   ac_cv_link_use_r=yes
21799 else
21800   echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21802
21803 ac_cv_link_use_r=no
21804 fi
21805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21806   CFLAGS="$oldcflags"
21807   ac_ext=c
21808 ac_cpp='$CPP $CPPFLAGS'
21809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21812
21813   if test "$ac_cv_link_use_r" = yes
21814   then
21815
21816 cat >>confdefs.h <<\_ACEOF
21817 #define HAVE_LINK_R 1
21818 _ACEOF
21819
21820   fi
21821
21822
21823 # Check whether --enable-optimized or --disable-optimized was given.
21824 if test "${enable_optimized+set}" = set; then
21825   enableval="$enable_optimized"
21826
21827 else
21828   enableval=no
21829 fi;
21830 if test ${enableval} = "no"
21831 then
21832         ENABLE_OPTIMIZED=
21833
21834 else
21835         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21836
21837 fi
21838
21839
21840
21841
21842  # Check whether --enable-spec95 or --disable-spec95 was given.
21843 if test "${enable_spec95+set}" = set; then
21844   enableval="$enable_spec95"
21845   checkresult=$enableval
21846 else
21847   checkresult=auto
21848 fi;
21849 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
21850 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
21851 case "$checkresult" in
21852 auto|yes)
21853     defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
21854         if test -d "$defaultdir"
21855         then
21856                 SPEC95_ROOT=$defaultdir
21857
21858                 USE_SPEC95=USE_SPEC95=1
21859
21860         checkresult="yes, found in $defaultdir"
21861     else
21862         checkresult=no
21863     fi
21864     ;;
21865 no)
21866
21867
21868     checkresult=no
21869     ;;
21870 *)  if test -d "$checkresult"
21871     then
21872         SPEC95_ROOT="$checkresult"
21873
21874         USE_SPEC95=USE_SPEC95=1
21875
21876         checkresult="yes, in $checkresult"
21877     else
21878
21879
21880         checkresult="no, not found in $checkresult"
21881     fi
21882     ;;
21883 esac
21884 echo "$as_me:$LINENO: result: $checkresult" >&5
21885 echo "${ECHO_T}$checkresult" >&6
21886
21887
21888
21889  # Check whether --enable-spec2000 or --disable-spec2000 was given.
21890 if test "${enable_spec2000+set}" = set; then
21891   enableval="$enable_spec2000"
21892   checkresult=$enableval
21893 else
21894   checkresult=auto
21895 fi;
21896 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
21897 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
21898 case "$checkresult" in
21899 auto|yes)
21900     defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21901         if test -d "$defaultdir"
21902         then
21903                 SPEC2000_ROOT=$defaultdir
21904
21905                 USE_SPEC2000=USE_SPEC2000=1
21906
21907         checkresult="yes, found in $defaultdir"
21908     else
21909         checkresult=no
21910     fi
21911     ;;
21912 no)
21913
21914
21915     checkresult=no
21916     ;;
21917 *)  if test -d "$checkresult"
21918     then
21919         SPEC2000_ROOT="$checkresult"
21920
21921         USE_SPEC2000=USE_SPEC2000=1
21922
21923         checkresult="yes, in $checkresult"
21924     else
21925
21926
21927         checkresult="no, not found in $checkresult"
21928     fi
21929     ;;
21930 esac
21931 echo "$as_me:$LINENO: result: $checkresult" >&5
21932 echo "${ECHO_T}$checkresult" >&6
21933
21934
21935
21936  # Check whether --enable-povray or --disable-povray was given.
21937 if test "${enable_povray+set}" = set; then
21938   enableval="$enable_povray"
21939   checkresult=$enableval
21940 else
21941   checkresult=auto
21942 fi;
21943 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
21944 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
21945 case "$checkresult" in
21946 auto|yes)
21947     defaultdir=/home/vadve/shared/benchmarks/povray31
21948         if test -d "$defaultdir"
21949         then
21950                 POVRAY_ROOT=$defaultdir
21951
21952                 USE_POVRAY=USE_POVRAY=1
21953
21954         checkresult="yes, found in $defaultdir"
21955     else
21956         checkresult=no
21957     fi
21958     ;;
21959 no)
21960
21961
21962     checkresult=no
21963     ;;
21964 *)  if test -d "$checkresult"
21965     then
21966         POVRAY_ROOT="$checkresult"
21967
21968         USE_POVRAY=USE_POVRAY=1
21969
21970         checkresult="yes, in $checkresult"
21971     else
21972
21973
21974         checkresult="no, not found in $checkresult"
21975     fi
21976     ;;
21977 esac
21978 echo "$as_me:$LINENO: result: $checkresult" >&5
21979 echo "${ECHO_T}$checkresult" >&6
21980
21981
21982
21983 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21984 if test "${enable_precompiled_bytecode+set}" = set; then
21985   enableval="$enable_precompiled_bytecode"
21986
21987 else
21988   enableval=no
21989 fi;
21990 if test ${enableval} = "no"
21991 then
21992         UPB=
21993
21994 else
21995         UPB=USE_PRECOMPILED_BYTECODE=1
21996
21997 fi
21998
21999 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22000 if test "${enable_llc_diffs+set}" = set; then
22001   enableval="$enable_llc_diffs"
22002
22003 else
22004   enableval=yes
22005 fi;
22006 if test ${enableval} = "no"
22007 then
22008         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22009
22010 else
22011         DISABLE_LLC_DIFFS=
22012
22013 fi
22014
22015 # Check whether --enable-jit or --disable-jit was given.
22016 if test "${enable_jit+set}" = set; then
22017   enableval="$enable_jit"
22018
22019 else
22020   enableval=default
22021 fi;
22022 if test ${enableval} = "no"
22023 then
22024         JIT=
22025
22026 else
22027         case $target in
22028                 *i*86*)
22029                         JIT=TARGET_HAS_JIT=1
22030
22031                         ;;
22032                 *sparc*)
22033                         JIT=TARGET_HAS_JIT=1
22034
22035                         ;;
22036                 *)
22037                         JIT=
22038
22039                         ;;
22040         esac
22041 fi
22042
22043
22044 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22045 if test "${with_llvmgccdir+set}" = set; then
22046   withval="$with_llvmgccdir"
22047   LLVMGCCDIR=$withval
22048
22049 fi;
22050 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22051 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22052 LLVM_GCC_CHECK=no
22053 if test -d "$LLVMGCCDIR"
22054 then
22055         if test -x "$LLVMGCCDIR/bin/gcc"
22056         then
22057                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22058         fi
22059 fi
22060 llvmgccwarn=no
22061 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22062 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22063 if test "$LLVM_GCC_CHECK" = "no"
22064 then
22065     llvmgccwarn=yes
22066 fi
22067 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22068 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22069 LLVM_GCC_SANE=no
22070 if test -x "$LLVM_GCC_CHECK"
22071 then
22072         cp /dev/null conftest.c
22073     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22074         if test $? -eq 0
22075         then
22076                 LLVM_GCC_SANE=yes
22077         fi
22078         rm conftest.c
22079         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
22080         LLVMCC1=$llvmcc1path
22081
22082         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
22083         LLVMCC1PLUS=$llvmcc1pluspath
22084
22085 fi
22086 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22087 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22088 if test "$LLVM_GCC_SANE" = "no"
22089 then
22090         llvmgccwarn=yes
22091 fi
22092
22093
22094 # Check whether --with-bcrepos or --without-bcrepos was given.
22095 if test "${with_bcrepos+set}" = set; then
22096   withval="$with_bcrepos"
22097   BCR=$withval
22098
22099 else
22100   BCR=/home/vadve/lattner/LLVMPrograms
22101
22102 fi;
22103
22104
22105 # Check whether --with-papi or --without-papi was given.
22106 if test "${with_papi+set}" = set; then
22107   withval="$with_papi"
22108   PAPIDIR=$withval
22109
22110 else
22111   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22112
22113 fi;
22114
22115 echo "$as_me:$LINENO: checking for shared library suffix" >&5
22116 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22117 eval "SHLIBEXT=$shrext"
22118 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22119 echo "${ECHO_T}$SHLIBEXT" >&6
22120 SHLIBEXT=$SHLIBEXT
22121
22122
22123 cat >>confdefs.h <<_ACEOF
22124 #define SHLIBEXT "$SHLIBEXT"
22125 _ACEOF
22126
22127
22128                                                             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"
22129 cat >confcache <<\_ACEOF
22130 # This file is a shell script that caches the results of configure
22131 # tests run on this system so they can be shared between configure
22132 # scripts and configure runs, see configure's option --config-cache.
22133 # It is not useful on other systems.  If it contains results you don't
22134 # want to keep, you may remove or edit it.
22135 #
22136 # config.status only pays attention to the cache file if you give it
22137 # the --recheck option to rerun configure.
22138 #
22139 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22140 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22141 # following values.
22142
22143 _ACEOF
22144
22145 # The following way of writing the cache mishandles newlines in values,
22146 # but we know of no workaround that is simple, portable, and efficient.
22147 # So, don't put newlines in cache variables' values.
22148 # Ultrix sh set writes to stderr and can't be redirected directly,
22149 # and sets the high bit in the cache file unless we assign to the vars.
22150 {
22151   (set) 2>&1 |
22152     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22153     *ac_space=\ *)
22154       # `set' does not quote correctly, so add quotes (double-quote
22155       # substitution turns \\\\ into \\, and sed turns \\ into \).
22156       sed -n \
22157         "s/'/'\\\\''/g;
22158           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22159       ;;
22160     *)
22161       # `set' quotes correctly as required by POSIX, so do not add quotes.
22162       sed -n \
22163         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22164       ;;
22165     esac;
22166 } |
22167   sed '
22168      t clear
22169      : clear
22170      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22171      t end
22172      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22173      : end' >>confcache
22174 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22175   if test -w $cache_file; then
22176     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22177     cat confcache >$cache_file
22178   else
22179     echo "not updating unwritable cache $cache_file"
22180   fi
22181 fi
22182 rm -f confcache
22183
22184 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22185 # Let make expand exec_prefix.
22186 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22187
22188 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22189 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22190 # trailing colons and then remove the whole line if VPATH becomes empty
22191 # (actually we leave an empty line to preserve line numbers).
22192 if test "x$srcdir" = x.; then
22193   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22194 s/:*\$(srcdir):*/:/;
22195 s/:*\${srcdir}:*/:/;
22196 s/:*@srcdir@:*/:/;
22197 s/^\([^=]*=[    ]*\):*/\1/;
22198 s/:*$//;
22199 s/^[^=]*=[      ]*$//;
22200 }'
22201 fi
22202
22203 DEFS=-DHAVE_CONFIG_H
22204
22205 ac_libobjs=
22206 ac_ltlibobjs=
22207 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22208   # 1. Remove the extension, and $U if already installed.
22209   ac_i=`echo "$ac_i" |
22210          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22211   # 2. Add them.
22212   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22213   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22214 done
22215 LIBOBJS=$ac_libobjs
22216
22217 LTLIBOBJS=$ac_ltlibobjs
22218
22219
22220
22221 : ${CONFIG_STATUS=./config.status}
22222 ac_clean_files_save=$ac_clean_files
22223 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22224 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22225 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22226 cat >$CONFIG_STATUS <<_ACEOF
22227 #! $SHELL
22228 # Generated by $as_me.
22229 # Run this file to recreate the current configuration.
22230 # Compiler output produced by configure, useful for debugging
22231 # configure, is in config.log if it exists.
22232
22233 debug=false
22234 ac_cs_recheck=false
22235 ac_cs_silent=false
22236 SHELL=\${CONFIG_SHELL-$SHELL}
22237 _ACEOF
22238
22239 cat >>$CONFIG_STATUS <<\_ACEOF
22240 ## --------------------- ##
22241 ## M4sh Initialization.  ##
22242 ## --------------------- ##
22243
22244 # Be Bourne compatible
22245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22246   emulate sh
22247   NULLCMD=:
22248   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22249   # is contrary to our usage.  Disable this feature.
22250   alias -g '${1+"$@"}'='"$@"'
22251 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22252   set -o posix
22253 fi
22254
22255 # Support unset when possible.
22256 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22257   as_unset=unset
22258 else
22259   as_unset=false
22260 fi
22261
22262
22263 # Work around bugs in pre-3.0 UWIN ksh.
22264 $as_unset ENV MAIL MAILPATH
22265 PS1='$ '
22266 PS2='> '
22267 PS4='+ '
22268
22269 # NLS nuisances.
22270 for as_var in \
22271   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22272   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22273   LC_TELEPHONE LC_TIME
22274 do
22275   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22276     eval $as_var=C; export $as_var
22277   else
22278     $as_unset $as_var
22279   fi
22280 done
22281
22282 # Required to use basename.
22283 if expr a : '\(a\)' >/dev/null 2>&1; then
22284   as_expr=expr
22285 else
22286   as_expr=false
22287 fi
22288
22289 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22290   as_basename=basename
22291 else
22292   as_basename=false
22293 fi
22294
22295
22296 # Name of the executable.
22297 as_me=`$as_basename "$0" ||
22298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22299          X"$0" : 'X\(//\)$' \| \
22300          X"$0" : 'X\(/\)$' \| \
22301          .     : '\(.\)' 2>/dev/null ||
22302 echo X/"$0" |
22303     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22304           /^X\/\(\/\/\)$/{ s//\1/; q; }
22305           /^X\/\(\/\).*/{ s//\1/; q; }
22306           s/.*/./; q'`
22307
22308
22309 # PATH needs CR, and LINENO needs CR and PATH.
22310 # Avoid depending upon Character Ranges.
22311 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22312 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22313 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22314 as_cr_digits='0123456789'
22315 as_cr_alnum=$as_cr_Letters$as_cr_digits
22316
22317 # The user is always right.
22318 if test "${PATH_SEPARATOR+set}" != set; then
22319   echo "#! /bin/sh" >conf$$.sh
22320   echo  "exit 0"   >>conf$$.sh
22321   chmod +x conf$$.sh
22322   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22323     PATH_SEPARATOR=';'
22324   else
22325     PATH_SEPARATOR=:
22326   fi
22327   rm -f conf$$.sh
22328 fi
22329
22330
22331   as_lineno_1=$LINENO
22332   as_lineno_2=$LINENO
22333   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22334   test "x$as_lineno_1" != "x$as_lineno_2" &&
22335   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22336   # Find who we are.  Look in the path if we contain no path at all
22337   # relative or not.
22338   case $0 in
22339     *[\\/]* ) as_myself=$0 ;;
22340     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22341 for as_dir in $PATH
22342 do
22343   IFS=$as_save_IFS
22344   test -z "$as_dir" && as_dir=.
22345   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22346 done
22347
22348        ;;
22349   esac
22350   # We did not find ourselves, most probably we were run as `sh COMMAND'
22351   # in which case we are not to be found in the path.
22352   if test "x$as_myself" = x; then
22353     as_myself=$0
22354   fi
22355   if test ! -f "$as_myself"; then
22356     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22357 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22358    { (exit 1); exit 1; }; }
22359   fi
22360   case $CONFIG_SHELL in
22361   '')
22362     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22363 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22364 do
22365   IFS=$as_save_IFS
22366   test -z "$as_dir" && as_dir=.
22367   for as_base in sh bash ksh sh5; do
22368          case $as_dir in
22369          /*)
22370            if ("$as_dir/$as_base" -c '
22371   as_lineno_1=$LINENO
22372   as_lineno_2=$LINENO
22373   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22374   test "x$as_lineno_1" != "x$as_lineno_2" &&
22375   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22376              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22377              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22378              CONFIG_SHELL=$as_dir/$as_base
22379              export CONFIG_SHELL
22380              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22381            fi;;
22382          esac
22383        done
22384 done
22385 ;;
22386   esac
22387
22388   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22389   # uniformly replaced by the line number.  The first 'sed' inserts a
22390   # line-number line before each line; the second 'sed' does the real
22391   # work.  The second script uses 'N' to pair each line-number line
22392   # with the numbered line, and appends trailing '-' during
22393   # substitution so that $LINENO is not a special case at line end.
22394   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22395   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22396   sed '=' <$as_myself |
22397     sed '
22398       N
22399       s,$,-,
22400       : loop
22401       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22402       t loop
22403       s,-$,,
22404       s,^['$as_cr_digits']*\n,,
22405     ' >$as_me.lineno &&
22406   chmod +x $as_me.lineno ||
22407     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22408 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22409    { (exit 1); exit 1; }; }
22410
22411   # Don't try to exec as it changes $[0], causing all sort of problems
22412   # (the dirname of $[0] is not the place where we might find the
22413   # original and so on.  Autoconf is especially sensible to this).
22414   . ./$as_me.lineno
22415   # Exit status is that of the last command.
22416   exit
22417 }
22418
22419
22420 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22421   *c*,-n*) ECHO_N= ECHO_C='
22422 ' ECHO_T='      ' ;;
22423   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22424   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22425 esac
22426
22427 if expr a : '\(a\)' >/dev/null 2>&1; then
22428   as_expr=expr
22429 else
22430   as_expr=false
22431 fi
22432
22433 rm -f conf$$ conf$$.exe conf$$.file
22434 echo >conf$$.file
22435 if ln -s conf$$.file conf$$ 2>/dev/null; then
22436   # We could just check for DJGPP; but this test a) works b) is more generic
22437   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22438   if test -f conf$$.exe; then
22439     # Don't use ln at all; we don't have any links
22440     as_ln_s='cp -p'
22441   else
22442     as_ln_s='ln -s'
22443   fi
22444 elif ln conf$$.file conf$$ 2>/dev/null; then
22445   as_ln_s=ln
22446 else
22447   as_ln_s='cp -p'
22448 fi
22449 rm -f conf$$ conf$$.exe conf$$.file
22450
22451 if mkdir -p . 2>/dev/null; then
22452   as_mkdir_p=:
22453 else
22454   as_mkdir_p=false
22455 fi
22456
22457 as_executable_p="test -f"
22458
22459 # Sed expression to map a string onto a valid CPP name.
22460 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22461
22462 # Sed expression to map a string onto a valid variable name.
22463 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22464
22465
22466 # IFS
22467 # We need space, tab and new line, in precisely that order.
22468 as_nl='
22469 '
22470 IFS="   $as_nl"
22471
22472 # CDPATH.
22473 $as_unset CDPATH
22474
22475 exec 6>&1
22476
22477 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22478 # report actual input values of CONFIG_FILES etc. instead of their
22479 # values after options handling.  Logging --version etc. is OK.
22480 exec 5>>config.log
22481 {
22482   echo
22483   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22484 ## Running $as_me. ##
22485 _ASBOX
22486 } >&5
22487 cat >&5 <<_CSEOF
22488
22489 This file was extended by [LLVM] $as_me [1.3], which was
22490 generated by GNU Autoconf 2.57.  Invocation command line was
22491
22492   CONFIG_FILES    = $CONFIG_FILES
22493   CONFIG_HEADERS  = $CONFIG_HEADERS
22494   CONFIG_LINKS    = $CONFIG_LINKS
22495   CONFIG_COMMANDS = $CONFIG_COMMANDS
22496   $ $0 $@
22497
22498 _CSEOF
22499 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22500 echo >&5
22501 _ACEOF
22502
22503 # Files that config.status was made for.
22504 if test -n "$ac_config_files"; then
22505   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22506 fi
22507
22508 if test -n "$ac_config_headers"; then
22509   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22510 fi
22511
22512 if test -n "$ac_config_links"; then
22513   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22514 fi
22515
22516 if test -n "$ac_config_commands"; then
22517   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22518 fi
22519
22520 cat >>$CONFIG_STATUS <<\_ACEOF
22521
22522 ac_cs_usage="\
22523 \`$as_me' instantiates files from templates according to the
22524 current configuration.
22525
22526 Usage: $0 [OPTIONS] [FILE]...
22527
22528   -h, --help       print this help, then exit
22529   -V, --version    print version number, then exit
22530   -q, --quiet      do not print progress messages
22531   -d, --debug      don't remove temporary files
22532       --recheck    update $as_me by reconfiguring in the same conditions
22533   --file=FILE[:TEMPLATE]
22534                    instantiate the configuration file FILE
22535   --header=FILE[:TEMPLATE]
22536                    instantiate the configuration header FILE
22537
22538 Configuration files:
22539 $config_files
22540
22541 Configuration headers:
22542 $config_headers
22543
22544 Configuration commands:
22545 $config_commands
22546
22547 Report bugs to <bug-autoconf@gnu.org>."
22548 _ACEOF
22549
22550 cat >>$CONFIG_STATUS <<_ACEOF
22551 ac_cs_version="\\
22552 [LLVM] config.status [1.3]
22553 configured by $0, generated by GNU Autoconf 2.57,
22554   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22555
22556 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22557 Free Software Foundation, Inc.
22558 This config.status script is free software; the Free Software Foundation
22559 gives unlimited permission to copy, distribute and modify it."
22560 srcdir=$srcdir
22561 INSTALL="$INSTALL"
22562 _ACEOF
22563
22564 cat >>$CONFIG_STATUS <<\_ACEOF
22565 # If no file are specified by the user, then we need to provide default
22566 # value.  By we need to know if files were specified by the user.
22567 ac_need_defaults=:
22568 while test $# != 0
22569 do
22570   case $1 in
22571   --*=*)
22572     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22573     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22574     ac_shift=:
22575     ;;
22576   -*)
22577     ac_option=$1
22578     ac_optarg=$2
22579     ac_shift=shift
22580     ;;
22581   *) # This is not an option, so the user has probably given explicit
22582      # arguments.
22583      ac_option=$1
22584      ac_need_defaults=false;;
22585   esac
22586
22587   case $ac_option in
22588   # Handling of the options.
22589 _ACEOF
22590 cat >>$CONFIG_STATUS <<\_ACEOF
22591   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22592     ac_cs_recheck=: ;;
22593   --version | --vers* | -V )
22594     echo "$ac_cs_version"; exit 0 ;;
22595   --he | --h)
22596     # Conflict between --help and --header
22597     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22598 Try \`$0 --help' for more information." >&5
22599 echo "$as_me: error: ambiguous option: $1
22600 Try \`$0 --help' for more information." >&2;}
22601    { (exit 1); exit 1; }; };;
22602   --help | --hel | -h )
22603     echo "$ac_cs_usage"; exit 0 ;;
22604   --debug | --d* | -d )
22605     debug=: ;;
22606   --file | --fil | --fi | --f )
22607     $ac_shift
22608     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22609     ac_need_defaults=false;;
22610   --header | --heade | --head | --hea )
22611     $ac_shift
22612     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22613     ac_need_defaults=false;;
22614   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22615   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22616     ac_cs_silent=: ;;
22617
22618   # This is an error.
22619   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22620 Try \`$0 --help' for more information." >&5
22621 echo "$as_me: error: unrecognized option: $1
22622 Try \`$0 --help' for more information." >&2;}
22623    { (exit 1); exit 1; }; } ;;
22624
22625   *) ac_config_targets="$ac_config_targets $1" ;;
22626
22627   esac
22628   shift
22629 done
22630
22631 ac_configure_extra_args=
22632
22633 if $ac_cs_silent; then
22634   exec 6>/dev/null
22635   ac_configure_extra_args="$ac_configure_extra_args --silent"
22636 fi
22637
22638 _ACEOF
22639 cat >>$CONFIG_STATUS <<_ACEOF
22640 if \$ac_cs_recheck; then
22641   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22642   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22643 fi
22644
22645 _ACEOF
22646
22647 cat >>$CONFIG_STATUS <<_ACEOF
22648 #
22649 # INIT-COMMANDS section.
22650 #
22651
22652 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22653 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
22654 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22655 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22656 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22657 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22658 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22659 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
22660 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22661 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22662 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22663 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
22664 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22665 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22666 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22667 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22668 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22669 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22670 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22671 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22672 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22673 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
22674 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
22675 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22676 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
22677 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
22678 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
22679 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
22680 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22681 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
22682 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22683 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22684 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22685 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22686 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22687 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22688 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22689 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22690 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22691 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22692 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22693 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22694 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
22695 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22696 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
22697 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
22698 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22699 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
22700 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
22701
22702 _ACEOF
22703
22704
22705
22706 cat >>$CONFIG_STATUS <<\_ACEOF
22707 for ac_config_target in $ac_config_targets
22708 do
22709   case "$ac_config_target" in
22710   # Handling of arguments.
22711   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22712   "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
22713   "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
22714   "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
22715   "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
22716   "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
22717   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22718   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22719   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22720   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22721   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22722   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22723   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22724   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
22725   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22726   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22727   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22728   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
22729   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22730   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22731   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22732   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22733   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22734   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22735   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22736   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22737   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22738   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
22739   "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
22740   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22741   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
22742   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
22743   "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
22744   "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
22745   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22746   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
22747   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22748   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22749   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22750   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22751   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22752   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22753   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22754   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22755   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22756   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22757   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22758   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22759   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
22760   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22761   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
22762   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
22763   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22764   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22765   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22766   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22767   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22768 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22769    { (exit 1); exit 1; }; };;
22770   esac
22771 done
22772
22773 # If the user did not use the arguments to specify the items to instantiate,
22774 # then the envvar interface is used.  Set only those that are not.
22775 # We use the long form for the default assignment because of an extremely
22776 # bizarre bug on SunOS 4.1.3.
22777 if $ac_need_defaults; then
22778   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22779   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22780   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22781 fi
22782
22783 # Have a temporary directory for convenience.  Make it in the build tree
22784 # simply because there is no reason to put it here, and in addition,
22785 # creating and moving files from /tmp can sometimes cause problems.
22786 # Create a temporary directory, and hook for its removal unless debugging.
22787 $debug ||
22788 {
22789   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22790   trap '{ (exit 1); exit 1; }' 1 2 13 15
22791 }
22792
22793 # Create a (secure) tmp directory for tmp files.
22794
22795 {
22796   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22797   test -n "$tmp" && test -d "$tmp"
22798 }  ||
22799 {
22800   tmp=./confstat$$-$RANDOM
22801   (umask 077 && mkdir $tmp)
22802 } ||
22803 {
22804    echo "$me: cannot create a temporary directory in ." >&2
22805    { (exit 1); exit 1; }
22806 }
22807
22808 _ACEOF
22809
22810 cat >>$CONFIG_STATUS <<_ACEOF
22811
22812 #
22813 # CONFIG_FILES section.
22814 #
22815
22816 # No need to generate the scripts if there are no CONFIG_FILES.
22817 # This happens for instance when ./config.status config.h
22818 if test -n "\$CONFIG_FILES"; then
22819   # Protect against being on the right side of a sed subst in config.status.
22820   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22821    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22822 s,@SHELL@,$SHELL,;t t
22823 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22824 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22825 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22826 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22827 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22828 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22829 s,@exec_prefix@,$exec_prefix,;t t
22830 s,@prefix@,$prefix,;t t
22831 s,@program_transform_name@,$program_transform_name,;t t
22832 s,@bindir@,$bindir,;t t
22833 s,@sbindir@,$sbindir,;t t
22834 s,@libexecdir@,$libexecdir,;t t
22835 s,@datadir@,$datadir,;t t
22836 s,@sysconfdir@,$sysconfdir,;t t
22837 s,@sharedstatedir@,$sharedstatedir,;t t
22838 s,@localstatedir@,$localstatedir,;t t
22839 s,@libdir@,$libdir,;t t
22840 s,@includedir@,$includedir,;t t
22841 s,@oldincludedir@,$oldincludedir,;t t
22842 s,@infodir@,$infodir,;t t
22843 s,@mandir@,$mandir,;t t
22844 s,@build_alias@,$build_alias,;t t
22845 s,@host_alias@,$host_alias,;t t
22846 s,@target_alias@,$target_alias,;t t
22847 s,@DEFS@,$DEFS,;t t
22848 s,@ECHO_C@,$ECHO_C,;t t
22849 s,@ECHO_N@,$ECHO_N,;t t
22850 s,@ECHO_T@,$ECHO_T,;t t
22851 s,@LIBS@,$LIBS,;t t
22852 s,@subdirs@,$subdirs,;t t
22853 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22854 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22855 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22856 s,@build@,$build,;t t
22857 s,@build_cpu@,$build_cpu,;t t
22858 s,@build_vendor@,$build_vendor,;t t
22859 s,@build_os@,$build_os,;t t
22860 s,@host@,$host,;t t
22861 s,@host_cpu@,$host_cpu,;t t
22862 s,@host_vendor@,$host_vendor,;t t
22863 s,@host_os@,$host_os,;t t
22864 s,@target@,$target,;t t
22865 s,@target_cpu@,$target_cpu,;t t
22866 s,@target_vendor@,$target_vendor,;t t
22867 s,@target_os@,$target_os,;t t
22868 s,@OS@,$OS,;t t
22869 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22870 s,@ARCH@,$ARCH,;t t
22871 s,@CXX@,$CXX,;t t
22872 s,@CXXFLAGS@,$CXXFLAGS,;t t
22873 s,@LDFLAGS@,$LDFLAGS,;t t
22874 s,@CPPFLAGS@,$CPPFLAGS,;t t
22875 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22876 s,@EXEEXT@,$EXEEXT,;t t
22877 s,@OBJEXT@,$OBJEXT,;t t
22878 s,@CC@,$CC,;t t
22879 s,@CFLAGS@,$CFLAGS,;t t
22880 s,@ac_ct_CC@,$ac_ct_CC,;t t
22881 s,@CPP@,$CPP,;t t
22882 s,@ifGNUmake@,$ifGNUmake,;t t
22883 s,@LEX@,$LEX,;t t
22884 s,@LEXLIB@,$LEXLIB,;t t
22885 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22886 s,@YACC@,$YACC,;t t
22887 s,@BISON@,$BISON,;t t
22888 s,@EGREP@,$EGREP,;t t
22889 s,@LN_S@,$LN_S,;t t
22890 s,@ECHO@,$ECHO,;t t
22891 s,@AR@,$AR,;t t
22892 s,@ac_ct_AR@,$ac_ct_AR,;t t
22893 s,@RANLIB@,$RANLIB,;t t
22894 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22895 s,@STRIP@,$STRIP,;t t
22896 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22897 s,@CXXCPP@,$CXXCPP,;t t
22898 s,@F77@,$F77,;t t
22899 s,@FFLAGS@,$FFLAGS,;t t
22900 s,@ac_ct_F77@,$ac_ct_F77,;t t
22901 s,@LIBTOOL@,$LIBTOOL,;t t
22902 s,@DOT@,$DOT,;t t
22903 s,@ETAGS@,$ETAGS,;t t
22904 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
22905 s,@PYTHON@,$PYTHON,;t t
22906 s,@QMTEST@,$QMTEST,;t t
22907 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
22908 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
22909 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
22910 s,@ENDIAN@,$ENDIAN,;t t
22911 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
22912 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
22913 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
22914 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
22915 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
22916 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
22917 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
22918 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
22919 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
22920 s,@ALLOCA@,$ALLOCA,;t t
22921 s,@MMAP_FILE@,$MMAP_FILE,;t t
22922 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22923 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
22924 s,@USE_SPEC95@,$USE_SPEC95,;t t
22925 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
22926 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
22927 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
22928 s,@USE_POVRAY@,$USE_POVRAY,;t t
22929 s,@UPB@,$UPB,;t t
22930 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22931 s,@JIT@,$JIT,;t t
22932 s,@LLVMCC1@,$LLVMCC1,;t t
22933 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
22934 s,@BCR@,$BCR,;t t
22935 s,@PAPIDIR@,$PAPIDIR,;t t
22936 s,@SHLIBEXT@,$SHLIBEXT,;t t
22937 s,@LIBOBJS@,$LIBOBJS,;t t
22938 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22939 CEOF
22940
22941 _ACEOF
22942
22943   cat >>$CONFIG_STATUS <<\_ACEOF
22944   # Split the substitutions into bite-sized pieces for seds with
22945   # small command number limits, like on Digital OSF/1 and HP-UX.
22946   ac_max_sed_lines=48
22947   ac_sed_frag=1 # Number of current file.
22948   ac_beg=1 # First line for current file.
22949   ac_end=$ac_max_sed_lines # Line after last line for current file.
22950   ac_more_lines=:
22951   ac_sed_cmds=
22952   while $ac_more_lines; do
22953     if test $ac_beg -gt 1; then
22954       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22955     else
22956       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22957     fi
22958     if test ! -s $tmp/subs.frag; then
22959       ac_more_lines=false
22960     else
22961       # The purpose of the label and of the branching condition is to
22962       # speed up the sed processing (if there are no `@' at all, there
22963       # is no need to browse any of the substitutions).
22964       # These are the two extra sed commands mentioned above.
22965       (echo ':t
22966   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22967       if test -z "$ac_sed_cmds"; then
22968         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22969       else
22970         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22971       fi
22972       ac_sed_frag=`expr $ac_sed_frag + 1`
22973       ac_beg=$ac_end
22974       ac_end=`expr $ac_end + $ac_max_sed_lines`
22975     fi
22976   done
22977   if test -z "$ac_sed_cmds"; then
22978     ac_sed_cmds=cat
22979   fi
22980 fi # test -n "$CONFIG_FILES"
22981
22982 _ACEOF
22983 cat >>$CONFIG_STATUS <<\_ACEOF
22984 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22985   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22986   case $ac_file in
22987   - | *:- | *:-:* ) # input from stdin
22988         cat >$tmp/stdin
22989         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22990         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22991   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22992         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22993   * )   ac_file_in=$ac_file.in ;;
22994   esac
22995
22996   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22997   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22998 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22999          X"$ac_file" : 'X\(//\)[^/]' \| \
23000          X"$ac_file" : 'X\(//\)$' \| \
23001          X"$ac_file" : 'X\(/\)' \| \
23002          .     : '\(.\)' 2>/dev/null ||
23003 echo X"$ac_file" |
23004     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23005           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23006           /^X\(\/\/\)$/{ s//\1/; q; }
23007           /^X\(\/\).*/{ s//\1/; q; }
23008           s/.*/./; q'`
23009   { if $as_mkdir_p; then
23010     mkdir -p "$ac_dir"
23011   else
23012     as_dir="$ac_dir"
23013     as_dirs=
23014     while test ! -d "$as_dir"; do
23015       as_dirs="$as_dir $as_dirs"
23016       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23018          X"$as_dir" : 'X\(//\)[^/]' \| \
23019          X"$as_dir" : 'X\(//\)$' \| \
23020          X"$as_dir" : 'X\(/\)' \| \
23021          .     : '\(.\)' 2>/dev/null ||
23022 echo X"$as_dir" |
23023     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23024           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23025           /^X\(\/\/\)$/{ s//\1/; q; }
23026           /^X\(\/\).*/{ s//\1/; q; }
23027           s/.*/./; q'`
23028     done
23029     test ! -n "$as_dirs" || mkdir $as_dirs
23030   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23031 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23032    { (exit 1); exit 1; }; }; }
23033
23034   ac_builddir=.
23035
23036 if test "$ac_dir" != .; then
23037   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23038   # A "../" for each directory in $ac_dir_suffix.
23039   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23040 else
23041   ac_dir_suffix= ac_top_builddir=
23042 fi
23043
23044 case $srcdir in
23045   .)  # No --srcdir option.  We are building in place.
23046     ac_srcdir=.
23047     if test -z "$ac_top_builddir"; then
23048        ac_top_srcdir=.
23049     else
23050        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23051     fi ;;
23052   [\\/]* | ?:[\\/]* )  # Absolute path.
23053     ac_srcdir=$srcdir$ac_dir_suffix;
23054     ac_top_srcdir=$srcdir ;;
23055   *) # Relative path.
23056     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23057     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23058 esac
23059 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23060 # absolute.
23061 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23062 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23063 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23064 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23065
23066
23067   case $INSTALL in
23068   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23069   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23070   esac
23071
23072   if test x"$ac_file" != x-; then
23073     { echo "$as_me:$LINENO: creating $ac_file" >&5
23074 echo "$as_me: creating $ac_file" >&6;}
23075     rm -f "$ac_file"
23076   fi
23077   # Let's still pretend it is `configure' which instantiates (i.e., don't
23078   # use $as_me), people would be surprised to read:
23079   #    /* config.h.  Generated by config.status.  */
23080   if test x"$ac_file" = x-; then
23081     configure_input=
23082   else
23083     configure_input="$ac_file.  "
23084   fi
23085   configure_input=$configure_input"Generated from `echo $ac_file_in |
23086                                      sed 's,.*/,,'` by configure."
23087
23088   # First look for the input files in the build tree, otherwise in the
23089   # src tree.
23090   ac_file_inputs=`IFS=:
23091     for f in $ac_file_in; do
23092       case $f in
23093       -) echo $tmp/stdin ;;
23094       [\\/$]*)
23095          # Absolute (can't be DOS-style, as IFS=:)
23096          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23097 echo "$as_me: error: cannot find input file: $f" >&2;}
23098    { (exit 1); exit 1; }; }
23099          echo $f;;
23100       *) # Relative
23101          if test -f "$f"; then
23102            # Build tree
23103            echo $f
23104          elif test -f "$srcdir/$f"; then
23105            # Source tree
23106            echo $srcdir/$f
23107          else
23108            # /dev/null tree
23109            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23110 echo "$as_me: error: cannot find input file: $f" >&2;}
23111    { (exit 1); exit 1; }; }
23112          fi;;
23113       esac
23114     done` || { (exit 1); exit 1; }
23115 _ACEOF
23116 cat >>$CONFIG_STATUS <<_ACEOF
23117   sed "$ac_vpsub
23118 $extrasub
23119 _ACEOF
23120 cat >>$CONFIG_STATUS <<\_ACEOF
23121 :t
23122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23123 s,@configure_input@,$configure_input,;t t
23124 s,@srcdir@,$ac_srcdir,;t t
23125 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23126 s,@top_srcdir@,$ac_top_srcdir,;t t
23127 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23128 s,@builddir@,$ac_builddir,;t t
23129 s,@abs_builddir@,$ac_abs_builddir,;t t
23130 s,@top_builddir@,$ac_top_builddir,;t t
23131 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23132 s,@INSTALL@,$ac_INSTALL,;t t
23133 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23134   rm -f $tmp/stdin
23135   if test x"$ac_file" != x-; then
23136     mv $tmp/out $ac_file
23137   else
23138     cat $tmp/out
23139     rm -f $tmp/out
23140   fi
23141
23142 done
23143 _ACEOF
23144 cat >>$CONFIG_STATUS <<\_ACEOF
23145
23146 #
23147 # CONFIG_HEADER section.
23148 #
23149
23150 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23151 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23152 #
23153 # ac_d sets the value in "#define NAME VALUE" lines.
23154 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
23155 ac_dB='[        ].*$,\1#\2'
23156 ac_dC=' '
23157 ac_dD=',;t'
23158 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23159 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23160 ac_uB='$,\1#\2define\3'
23161 ac_uC=' '
23162 ac_uD=',;t'
23163
23164 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23165   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23166   case $ac_file in
23167   - | *:- | *:-:* ) # input from stdin
23168         cat >$tmp/stdin
23169         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23170         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23171   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23172         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23173   * )   ac_file_in=$ac_file.in ;;
23174   esac
23175
23176   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23177 echo "$as_me: creating $ac_file" >&6;}
23178
23179   # First look for the input files in the build tree, otherwise in the
23180   # src tree.
23181   ac_file_inputs=`IFS=:
23182     for f in $ac_file_in; do
23183       case $f in
23184       -) echo $tmp/stdin ;;
23185       [\\/$]*)
23186          # Absolute (can't be DOS-style, as IFS=:)
23187          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23188 echo "$as_me: error: cannot find input file: $f" >&2;}
23189    { (exit 1); exit 1; }; }
23190          echo $f;;
23191       *) # Relative
23192          if test -f "$f"; then
23193            # Build tree
23194            echo $f
23195          elif test -f "$srcdir/$f"; then
23196            # Source tree
23197            echo $srcdir/$f
23198          else
23199            # /dev/null tree
23200            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23201 echo "$as_me: error: cannot find input file: $f" >&2;}
23202    { (exit 1); exit 1; }; }
23203          fi;;
23204       esac
23205     done` || { (exit 1); exit 1; }
23206   # Remove the trailing spaces.
23207   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
23208
23209 _ACEOF
23210
23211 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23212 # `conftest.undefs', that substitutes the proper values into
23213 # config.h.in to produce config.h.  The first handles `#define'
23214 # templates, and the second `#undef' templates.
23215 # And first: Protect against being on the right side of a sed subst in
23216 # config.status.  Protect against being in an unquoted here document
23217 # in config.status.
23218 rm -f conftest.defines conftest.undefs
23219 # Using a here document instead of a string reduces the quoting nightmare.
23220 # Putting comments in sed scripts is not portable.
23221 #
23222 # `end' is used to avoid that the second main sed command (meant for
23223 # 0-ary CPP macros) applies to n-ary macro definitions.
23224 # See the Autoconf documentation for `clear'.
23225 cat >confdef2sed.sed <<\_ACEOF
23226 s/[\\&,]/\\&/g
23227 s,[\\$`],\\&,g
23228 t clear
23229 : clear
23230 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23231 t end
23232 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23233 : end
23234 _ACEOF
23235 # If some macros were called several times there might be several times
23236 # the same #defines, which is useless.  Nevertheless, we may not want to
23237 # sort them, since we want the *last* AC-DEFINE to be honored.
23238 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23239 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23240 rm -f confdef2sed.sed
23241
23242 # This sed command replaces #undef with comments.  This is necessary, for
23243 # example, in the case of _POSIX_SOURCE, which is predefined and required
23244 # on some systems where configure will not decide to define it.
23245 cat >>conftest.undefs <<\_ACEOF
23246 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23247 _ACEOF
23248
23249 # Break up conftest.defines because some shells have a limit on the size
23250 # of here documents, and old seds have small limits too (100 cmds).
23251 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23252 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23253 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23254 echo '  :' >>$CONFIG_STATUS
23255 rm -f conftest.tail
23256 while grep . conftest.defines >/dev/null
23257 do
23258   # Write a limited-size here document to $tmp/defines.sed.
23259   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23260   # Speed up: don't consider the non `#define' lines.
23261   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
23262   # Work around the forget-to-reset-the-flag bug.
23263   echo 't clr' >>$CONFIG_STATUS
23264   echo ': clr' >>$CONFIG_STATUS
23265   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23266   echo 'CEOF
23267   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23268   rm -f $tmp/in
23269   mv $tmp/out $tmp/in
23270 ' >>$CONFIG_STATUS
23271   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23272   rm -f conftest.defines
23273   mv conftest.tail conftest.defines
23274 done
23275 rm -f conftest.defines
23276 echo '  fi # grep' >>$CONFIG_STATUS
23277 echo >>$CONFIG_STATUS
23278
23279 # Break up conftest.undefs because some shells have a limit on the size
23280 # of here documents, and old seds have small limits too (100 cmds).
23281 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23282 rm -f conftest.tail
23283 while grep . conftest.undefs >/dev/null
23284 do
23285   # Write a limited-size here document to $tmp/undefs.sed.
23286   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23287   # Speed up: don't consider the non `#undef'
23288   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23289   # Work around the forget-to-reset-the-flag bug.
23290   echo 't clr' >>$CONFIG_STATUS
23291   echo ': clr' >>$CONFIG_STATUS
23292   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23293   echo 'CEOF
23294   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23295   rm -f $tmp/in
23296   mv $tmp/out $tmp/in
23297 ' >>$CONFIG_STATUS
23298   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23299   rm -f conftest.undefs
23300   mv conftest.tail conftest.undefs
23301 done
23302 rm -f conftest.undefs
23303
23304 cat >>$CONFIG_STATUS <<\_ACEOF
23305   # Let's still pretend it is `configure' which instantiates (i.e., don't
23306   # use $as_me), people would be surprised to read:
23307   #    /* config.h.  Generated by config.status.  */
23308   if test x"$ac_file" = x-; then
23309     echo "/* Generated by configure.  */" >$tmp/config.h
23310   else
23311     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23312   fi
23313   cat $tmp/in >>$tmp/config.h
23314   rm -f $tmp/in
23315   if test x"$ac_file" != x-; then
23316     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23317       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23318 echo "$as_me: $ac_file is unchanged" >&6;}
23319     else
23320       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23321 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23322          X"$ac_file" : 'X\(//\)[^/]' \| \
23323          X"$ac_file" : 'X\(//\)$' \| \
23324          X"$ac_file" : 'X\(/\)' \| \
23325          .     : '\(.\)' 2>/dev/null ||
23326 echo X"$ac_file" |
23327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23328           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23329           /^X\(\/\/\)$/{ s//\1/; q; }
23330           /^X\(\/\).*/{ s//\1/; q; }
23331           s/.*/./; q'`
23332       { if $as_mkdir_p; then
23333     mkdir -p "$ac_dir"
23334   else
23335     as_dir="$ac_dir"
23336     as_dirs=
23337     while test ! -d "$as_dir"; do
23338       as_dirs="$as_dir $as_dirs"
23339       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23341          X"$as_dir" : 'X\(//\)[^/]' \| \
23342          X"$as_dir" : 'X\(//\)$' \| \
23343          X"$as_dir" : 'X\(/\)' \| \
23344          .     : '\(.\)' 2>/dev/null ||
23345 echo X"$as_dir" |
23346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23347           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23348           /^X\(\/\/\)$/{ s//\1/; q; }
23349           /^X\(\/\).*/{ s//\1/; q; }
23350           s/.*/./; q'`
23351     done
23352     test ! -n "$as_dirs" || mkdir $as_dirs
23353   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23354 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23355    { (exit 1); exit 1; }; }; }
23356
23357       rm -f $ac_file
23358       mv $tmp/config.h $ac_file
23359     fi
23360   else
23361     cat $tmp/config.h
23362     rm -f $tmp/config.h
23363   fi
23364 done
23365 _ACEOF
23366 cat >>$CONFIG_STATUS <<\_ACEOF
23367
23368 #
23369 # CONFIG_COMMANDS section.
23370 #
23371 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23372   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23373   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23374   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23375 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23376          X"$ac_dest" : 'X\(//\)[^/]' \| \
23377          X"$ac_dest" : 'X\(//\)$' \| \
23378          X"$ac_dest" : 'X\(/\)' \| \
23379          .     : '\(.\)' 2>/dev/null ||
23380 echo X"$ac_dest" |
23381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23382           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23383           /^X\(\/\/\)$/{ s//\1/; q; }
23384           /^X\(\/\).*/{ s//\1/; q; }
23385           s/.*/./; q'`
23386   ac_builddir=.
23387
23388 if test "$ac_dir" != .; then
23389   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23390   # A "../" for each directory in $ac_dir_suffix.
23391   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23392 else
23393   ac_dir_suffix= ac_top_builddir=
23394 fi
23395
23396 case $srcdir in
23397   .)  # No --srcdir option.  We are building in place.
23398     ac_srcdir=.
23399     if test -z "$ac_top_builddir"; then
23400        ac_top_srcdir=.
23401     else
23402        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23403     fi ;;
23404   [\\/]* | ?:[\\/]* )  # Absolute path.
23405     ac_srcdir=$srcdir$ac_dir_suffix;
23406     ac_top_srcdir=$srcdir ;;
23407   *) # Relative path.
23408     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23409     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23410 esac
23411 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23412 # absolute.
23413 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23414 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23415 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23416 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23417
23418
23419   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23420 echo "$as_me: executing $ac_dest commands" >&6;}
23421   case $ac_dest in
23422     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23423     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
23424     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
23425     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23426     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23427     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23428     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23429     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
23430     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23431     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23432     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23433     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
23434     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23435     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23436     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23437     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23438     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23439     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23440     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23441     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23442     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
23443     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
23444     test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
23445     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
23446     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
23447     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 ;;
23448     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 ;;
23449     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 ;;
23450     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
23451     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
23452     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 ;;
23453     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 ;;
23454     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 ;;
23455     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 ;;
23456     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 ;;
23457     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 ;;
23458     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 ;;
23459     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 ;;
23460     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 ;;
23461     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 ;;
23462     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 ;;
23463     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 ;;
23464     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 ;;
23465     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23466     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
23467     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 ;;
23468     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
23469     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
23470     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
23471   esac
23472 done
23473 _ACEOF
23474
23475 cat >>$CONFIG_STATUS <<\_ACEOF
23476
23477 { (exit 0); exit 0; }
23478 _ACEOF
23479 chmod +x $CONFIG_STATUS
23480 ac_clean_files=$ac_clean_files_save
23481
23482
23483 # configure is writing to config.log, and then calls config.status.
23484 # config.status does its own redirection, appending to config.log.
23485 # Unfortunately, on DOS this fails, as config.log is still kept open
23486 # by configure, so config.status won't be able to write to it; its
23487 # output is simply discarded.  So we exec the FD to /dev/null,
23488 # effectively closing config.log, so it can be properly (re)opened and
23489 # appended to by config.status.  When coming back to configure, we
23490 # need to make the FD available again.
23491 if test "$no_create" != yes; then
23492   ac_cs_success=:
23493   ac_config_status_args=
23494   test "$silent" = yes &&
23495     ac_config_status_args="$ac_config_status_args --quiet"
23496   exec 5>/dev/null
23497   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23498   exec 5>>config.log
23499   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23500   # would make configure fail if this is the last instruction.
23501   $ac_cs_success || { (exit 1); exit 1; }
23502 fi
23503
23504 #
23505 # CONFIG_SUBDIRS section.
23506 #
23507 if test "$no_recursion" != yes; then
23508
23509   # Remove --cache-file and --srcdir arguments so they do not pile up.
23510   ac_sub_configure_args=
23511   ac_prev=
23512   for ac_arg in $ac_configure_args; do
23513     if test -n "$ac_prev"; then
23514       ac_prev=
23515       continue
23516     fi
23517     case $ac_arg in
23518     -cache-file | --cache-file | --cache-fil | --cache-fi \
23519     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23520       ac_prev=cache_file ;;
23521     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23522     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23523     | --c=*)
23524       ;;
23525     --config-cache | -C)
23526       ;;
23527     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23528       ac_prev=srcdir ;;
23529     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23530       ;;
23531     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23532       ac_prev=prefix ;;
23533     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23534       ;;
23535     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23536     esac
23537   done
23538
23539   # Always prepend --prefix to ensure using the same prefix
23540   # in subdir configurations.
23541   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23542
23543   ac_popdir=`pwd`
23544   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23545
23546     # Do not complain, so a configure script can configure whichever
23547     # parts of a large source tree are present.
23548     test -d $srcdir/$ac_dir || continue
23549
23550     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23551 echo "$as_me: configuring in $ac_dir" >&6;}
23552     { if $as_mkdir_p; then
23553     mkdir -p "$ac_dir"
23554   else
23555     as_dir="$ac_dir"
23556     as_dirs=
23557     while test ! -d "$as_dir"; do
23558       as_dirs="$as_dir $as_dirs"
23559       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23560 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23561          X"$as_dir" : 'X\(//\)[^/]' \| \
23562          X"$as_dir" : 'X\(//\)$' \| \
23563          X"$as_dir" : 'X\(/\)' \| \
23564          .     : '\(.\)' 2>/dev/null ||
23565 echo X"$as_dir" |
23566     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23567           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23568           /^X\(\/\/\)$/{ s//\1/; q; }
23569           /^X\(\/\).*/{ s//\1/; q; }
23570           s/.*/./; q'`
23571     done
23572     test ! -n "$as_dirs" || mkdir $as_dirs
23573   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23574 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23575    { (exit 1); exit 1; }; }; }
23576
23577     ac_builddir=.
23578
23579 if test "$ac_dir" != .; then
23580   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23581   # A "../" for each directory in $ac_dir_suffix.
23582   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23583 else
23584   ac_dir_suffix= ac_top_builddir=
23585 fi
23586
23587 case $srcdir in
23588   .)  # No --srcdir option.  We are building in place.
23589     ac_srcdir=.
23590     if test -z "$ac_top_builddir"; then
23591        ac_top_srcdir=.
23592     else
23593        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23594     fi ;;
23595   [\\/]* | ?:[\\/]* )  # Absolute path.
23596     ac_srcdir=$srcdir$ac_dir_suffix;
23597     ac_top_srcdir=$srcdir ;;
23598   *) # Relative path.
23599     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23600     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23601 esac
23602 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23603 # absolute.
23604 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23605 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23606 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23607 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23608
23609
23610     cd $ac_dir
23611
23612     # Check for guested configure; otherwise get Cygnus style configure.
23613     if test -f $ac_srcdir/configure.gnu; then
23614       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23615     elif test -f $ac_srcdir/configure; then
23616       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23617     elif test -f $ac_srcdir/configure.in; then
23618       ac_sub_configure=$ac_configure
23619     else
23620       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23621 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23622       ac_sub_configure=
23623     fi
23624
23625     # The recursion is here.
23626     if test -n "$ac_sub_configure"; then
23627       # Make the cache file name correct relative to the subdirectory.
23628       case $cache_file in
23629       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23630       *) # Relative path.
23631         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23632       esac
23633
23634       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23635 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23636       # The eval makes quoting arguments work.
23637       eval $ac_sub_configure $ac_sub_configure_args \
23638            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23639         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23640 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23641    { (exit 1); exit 1; }; }
23642     fi
23643
23644     cd $ac_popdir
23645   done
23646 fi
23647
23648
23649 if test $llvmgccwarn = yes
23650 then
23651         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23652 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23653         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23654 echo "$as_me: WARNING: ***** appear to be working." >&2;}
23655         { echo "$as_me:$LINENO: WARNING: ***** " >&5
23656 echo "$as_me: WARNING: ***** " >&2;}
23657         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23658 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23659         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23660 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23661         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23662 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
23663 fi
23664