Fixed a comma error.
[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.0].
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.0]'
426 PACKAGE_STRING='[LLVM] [1.0]'
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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR PURIFY 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.0] 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.0]:";;
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-purify         Compile with purify (default is NO)
1034   --enable-optimized      Compile with optimizations enabled (default is NO)
1035   --enable-spec           Compile SPEC 2000 benchmarks (default is NO)
1036   --enable-precompiled_bytecode
1037                           Use pre-compiled bytecode (default is NO)
1038   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1039   --enable-jit            Enable Just In Time Compiling (default is YES)
1040
1041 Optional Packages:
1042   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1043   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1044   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1045   --with-pic              try to use only PIC/non-PIC objects [default=use
1046                           both]
1047   --with-tags[=TAGS]
1048                           include additional configurations [automatic]
1049   --with-llvmgccdir       Location of LLVM GCC front-end
1050   --with-bcrepos          Location of Bytecode Repository
1051   --with-papi             Location of PAPI
1052   --with-purify           Location of purify program
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.0]
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.0], 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 -d ${srcdir}/projects/${i}
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.micro.report"
1575
1576
1577           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1578
1579
1580           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1584
1585
1586           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1587
1588
1589           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1590
1591
1592           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1593
1594
1595           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1596
1597
1598           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1599
1600
1601           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1602
1603
1604           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1605
1606
1607           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1617
1618
1619           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1623
1624
1625           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1626
1627
1628           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1629
1630
1631           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1632
1633
1634           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1635
1636
1637           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1638
1639
1640           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1641
1642
1643           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1644
1645
1646           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1647
1648
1649           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1650
1651
1652           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1653
1654
1655           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1656
1657
1658           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1659
1660
1661           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1662
1663
1664           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1665
1666
1667           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1668
1669
1670           ac_config_commands="$ac_config_commands tools/Makefile"
1671
1672
1673           ac_config_commands="$ac_config_commands utils/Makefile"
1674
1675
1676           ac_config_commands="$ac_config_commands projects/Makefile"
1677
1678
1679
1680
1681 # Find a good install program.  We prefer a C program (faster),
1682 # so one script is as good as another.  But avoid the broken or
1683 # incompatible versions:
1684 # SysV /etc/install, /usr/sbin/install
1685 # SunOS /usr/etc/install
1686 # IRIX /sbin/install
1687 # AIX /bin/install
1688 # AmigaOS /C/install, which installs bootblocks on floppy discs
1689 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1690 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1691 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1692 # ./install, which can be erroneously created by make from ./install.sh.
1693 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1694 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1695 if test -z "$INSTALL"; then
1696 if test "${ac_cv_path_install+set}" = set; then
1697   echo $ECHO_N "(cached) $ECHO_C" >&6
1698 else
1699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1701 do
1702   IFS=$as_save_IFS
1703   test -z "$as_dir" && as_dir=.
1704   # Account for people who put trailing slashes in PATH elements.
1705 case $as_dir/ in
1706   ./ | .// | /cC/* | \
1707   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1708   /usr/ucb/* ) ;;
1709   *)
1710     # OSF1 and SCO ODT 3.0 have their own names for install.
1711     # Don't use installbsd from OSF since it installs stuff as root
1712     # by default.
1713     for ac_prog in ginstall scoinst install; do
1714       for ac_exec_ext in '' $ac_executable_extensions; do
1715         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1716           if test $ac_prog = install &&
1717             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1718             # AIX install.  It has an incompatible calling convention.
1719             :
1720           elif test $ac_prog = install &&
1721             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1722             # program-specific install script used by HP pwplus--don't use.
1723             :
1724           else
1725             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1726             break 3
1727           fi
1728         fi
1729       done
1730     done
1731     ;;
1732 esac
1733 done
1734
1735
1736 fi
1737   if test "${ac_cv_path_install+set}" = set; then
1738     INSTALL=$ac_cv_path_install
1739   else
1740     # As a last resort, use the slow shell script.  We don't cache a
1741     # path for INSTALL within a source directory, because that will
1742     # break other packages using the cache if that directory is
1743     # removed, or if the path is relative.
1744     INSTALL=$ac_install_sh
1745   fi
1746 fi
1747 echo "$as_me:$LINENO: result: $INSTALL" >&5
1748 echo "${ECHO_T}$INSTALL" >&6
1749
1750 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1751 # It thinks the first close brace ends the variable substitution.
1752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1753
1754 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1755
1756 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1757
1758
1759 # Make sure we can run config.sub.
1760 $ac_config_sub sun4 >/dev/null 2>&1 ||
1761   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1762 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1763    { (exit 1); exit 1; }; }
1764
1765 echo "$as_me:$LINENO: checking build system type" >&5
1766 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1767 if test "${ac_cv_build+set}" = set; then
1768   echo $ECHO_N "(cached) $ECHO_C" >&6
1769 else
1770   ac_cv_build_alias=$build_alias
1771 test -z "$ac_cv_build_alias" &&
1772   ac_cv_build_alias=`$ac_config_guess`
1773 test -z "$ac_cv_build_alias" &&
1774   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1775 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1776    { (exit 1); exit 1; }; }
1777 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1778   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1779 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1780    { (exit 1); exit 1; }; }
1781
1782 fi
1783 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1784 echo "${ECHO_T}$ac_cv_build" >&6
1785 build=$ac_cv_build
1786 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1787 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1788 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1789
1790
1791 echo "$as_me:$LINENO: checking host system type" >&5
1792 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1793 if test "${ac_cv_host+set}" = set; then
1794   echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796   ac_cv_host_alias=$host_alias
1797 test -z "$ac_cv_host_alias" &&
1798   ac_cv_host_alias=$ac_cv_build_alias
1799 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1800   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1801 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1802    { (exit 1); exit 1; }; }
1803
1804 fi
1805 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1806 echo "${ECHO_T}$ac_cv_host" >&6
1807 host=$ac_cv_host
1808 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1809 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1810 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1811
1812
1813 echo "$as_me:$LINENO: checking target system type" >&5
1814 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1815 if test "${ac_cv_target+set}" = set; then
1816   echo $ECHO_N "(cached) $ECHO_C" >&6
1817 else
1818   ac_cv_target_alias=$target_alias
1819 test "x$ac_cv_target_alias" = "x" &&
1820   ac_cv_target_alias=$ac_cv_host_alias
1821 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1822   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1823 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1824    { (exit 1); exit 1; }; }
1825
1826 fi
1827 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1828 echo "${ECHO_T}$ac_cv_target" >&6
1829 target=$ac_cv_target
1830 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1831 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1832 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1833
1834
1835 # The aliases save the names the user supplied, while $host etc.
1836 # will get canonicalized.
1837 test -n "$target_alias" &&
1838   test "$program_prefix$program_suffix$program_transform_name" = \
1839     NONENONEs,x,x, &&
1840   program_prefix=${target_alias}-
1841
1842 case $build in
1843         *-*-linux*)
1844              OS=Linux
1845
1846                          if test -d /home/vadve/lattner/local/x86/llvm-gcc
1847                          then
1848                            LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1849
1850                          fi
1851                  ;;
1852
1853         *-*-solaris*)
1854              OS=SunOS
1855
1856                          if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1857                          then
1858                    LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1859
1860                          fi
1861                  ;;
1862
1863         *-*-darwin*)
1864              OS=Darwin
1865
1866                  ;;
1867
1868         *)       OS=Unknown
1869
1870                  ;;
1871 esac
1872
1873 case $target in
1874         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1875
1876                             ;;
1877 esac
1878
1879 case $target in
1880         i*86-*)           ARCH=x86
1881
1882                           ;;
1883         sparc*-*)         ARCH=Sparc
1884
1885                           ;;
1886         powerpc*-*)       ARCH=PowerPC
1887
1888                           ;;
1889         *)                ARCH=Unknown
1890
1891                           ;;
1892 esac
1893
1894
1895 ac_ext=cc
1896 ac_cpp='$CXXCPP $CPPFLAGS'
1897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1900 if test -n "$ac_tool_prefix"; then
1901   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1902   do
1903     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1905 echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907 if test "${ac_cv_prog_CXX+set}" = set; then
1908   echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910   if test -n "$CXX"; then
1911   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1912 else
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1915 do
1916   IFS=$as_save_IFS
1917   test -z "$as_dir" && as_dir=.
1918   for ac_exec_ext in '' $ac_executable_extensions; do
1919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922     break 2
1923   fi
1924 done
1925 done
1926
1927 fi
1928 fi
1929 CXX=$ac_cv_prog_CXX
1930 if test -n "$CXX"; then
1931   echo "$as_me:$LINENO: result: $CXX" >&5
1932 echo "${ECHO_T}$CXX" >&6
1933 else
1934   echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1936 fi
1937
1938     test -n "$CXX" && break
1939   done
1940 fi
1941 if test -z "$CXX"; then
1942   ac_ct_CXX=$CXX
1943   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1944 do
1945   # Extract the first word of "$ac_prog", so it can be a program name with args.
1946 set dummy $ac_prog; ac_word=$2
1947 echo "$as_me:$LINENO: checking for $ac_word" >&5
1948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1950   echo $ECHO_N "(cached) $ECHO_C" >&6
1951 else
1952   if test -n "$ac_ct_CXX"; then
1953   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1954 else
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 for as_dir in $PATH
1957 do
1958   IFS=$as_save_IFS
1959   test -z "$as_dir" && as_dir=.
1960   for ac_exec_ext in '' $ac_executable_extensions; do
1961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962     ac_cv_prog_ac_ct_CXX="$ac_prog"
1963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964     break 2
1965   fi
1966 done
1967 done
1968
1969 fi
1970 fi
1971 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1972 if test -n "$ac_ct_CXX"; then
1973   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1974 echo "${ECHO_T}$ac_ct_CXX" >&6
1975 else
1976   echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1978 fi
1979
1980   test -n "$ac_ct_CXX" && break
1981 done
1982 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1983
1984   CXX=$ac_ct_CXX
1985 fi
1986
1987
1988 # Provide some information about the compiler.
1989 echo "$as_me:$LINENO:" \
1990      "checking for C++ compiler version" >&5
1991 ac_compiler=`set X $ac_compile; echo $2`
1992 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1993   (eval $ac_compiler --version </dev/null >&5) 2>&5
1994   ac_status=$?
1995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996   (exit $ac_status); }
1997 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1998   (eval $ac_compiler -v </dev/null >&5) 2>&5
1999   ac_status=$?
2000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001   (exit $ac_status); }
2002 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2003   (eval $ac_compiler -V </dev/null >&5) 2>&5
2004   ac_status=$?
2005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006   (exit $ac_status); }
2007
2008 cat >conftest.$ac_ext <<_ACEOF
2009 #line $LINENO "configure"
2010 /* confdefs.h.  */
2011 _ACEOF
2012 cat confdefs.h >>conftest.$ac_ext
2013 cat >>conftest.$ac_ext <<_ACEOF
2014 /* end confdefs.h.  */
2015
2016 int
2017 main ()
2018 {
2019
2020   ;
2021   return 0;
2022 }
2023 _ACEOF
2024 ac_clean_files_save=$ac_clean_files
2025 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2026 # Try to create an executable without -o first, disregard a.out.
2027 # It will help us diagnose broken compilers, and finding out an intuition
2028 # of exeext.
2029 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2030 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2031 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2032 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2033   (eval $ac_link_default) 2>&5
2034   ac_status=$?
2035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036   (exit $ac_status); }; then
2037   # Find the output, starting from the most likely.  This scheme is
2038 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2039 # resort.
2040
2041 # Be careful to initialize this variable, since it used to be cached.
2042 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2043 ac_cv_exeext=
2044 # b.out is created by i960 compilers.
2045 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2046 do
2047   test -f "$ac_file" || continue
2048   case $ac_file in
2049     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2050         ;;
2051     conftest.$ac_ext )
2052         # This is the source file.
2053         ;;
2054     [ab].out )
2055         # We found the default executable, but exeext='' is most
2056         # certainly right.
2057         break;;
2058     *.* )
2059         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2060         # FIXME: I believe we export ac_cv_exeext for Libtool,
2061         # but it would be cool to find out if it's true.  Does anybody
2062         # maintain Libtool? --akim.
2063         export ac_cv_exeext
2064         break;;
2065     * )
2066         break;;
2067   esac
2068 done
2069 else
2070   echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2072
2073 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2074 See \`config.log' for more details." >&5
2075 echo "$as_me: error: C++ compiler cannot create executables
2076 See \`config.log' for more details." >&2;}
2077    { (exit 77); exit 77; }; }
2078 fi
2079
2080 ac_exeext=$ac_cv_exeext
2081 echo "$as_me:$LINENO: result: $ac_file" >&5
2082 echo "${ECHO_T}$ac_file" >&6
2083
2084 # Check the compiler produces executables we can run.  If not, either
2085 # the compiler is broken, or we cross compile.
2086 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2087 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2088 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2089 # If not cross compiling, check that we can run a simple program.
2090 if test "$cross_compiling" != yes; then
2091   if { ac_try='./$ac_file'
2092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093   (eval $ac_try) 2>&5
2094   ac_status=$?
2095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096   (exit $ac_status); }; }; then
2097     cross_compiling=no
2098   else
2099     if test "$cross_compiling" = maybe; then
2100         cross_compiling=yes
2101     else
2102         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2103 If you meant to cross compile, use \`--host'.
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: cannot run C++ compiled programs.
2106 If you meant to cross compile, use \`--host'.
2107 See \`config.log' for more details." >&2;}
2108    { (exit 1); exit 1; }; }
2109     fi
2110   fi
2111 fi
2112 echo "$as_me:$LINENO: result: yes" >&5
2113 echo "${ECHO_T}yes" >&6
2114
2115 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2116 ac_clean_files=$ac_clean_files_save
2117 # Check the compiler produces executables we can run.  If not, either
2118 # the compiler is broken, or we cross compile.
2119 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2120 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2121 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2122 echo "${ECHO_T}$cross_compiling" >&6
2123
2124 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2125 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2127   (eval $ac_link) 2>&5
2128   ac_status=$?
2129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130   (exit $ac_status); }; then
2131   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2132 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2133 # work properly (i.e., refer to `conftest.exe'), while it won't with
2134 # `rm'.
2135 for ac_file in conftest.exe conftest conftest.*; do
2136   test -f "$ac_file" || continue
2137   case $ac_file in
2138     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2139     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2140           export ac_cv_exeext
2141           break;;
2142     * ) break;;
2143   esac
2144 done
2145 else
2146   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2147 See \`config.log' for more details." >&5
2148 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2149 See \`config.log' for more details." >&2;}
2150    { (exit 1); exit 1; }; }
2151 fi
2152
2153 rm -f conftest$ac_cv_exeext
2154 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2155 echo "${ECHO_T}$ac_cv_exeext" >&6
2156
2157 rm -f conftest.$ac_ext
2158 EXEEXT=$ac_cv_exeext
2159 ac_exeext=$EXEEXT
2160 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2161 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2162 if test "${ac_cv_objext+set}" = set; then
2163   echo $ECHO_N "(cached) $ECHO_C" >&6
2164 else
2165   cat >conftest.$ac_ext <<_ACEOF
2166 #line $LINENO "configure"
2167 /* confdefs.h.  */
2168 _ACEOF
2169 cat confdefs.h >>conftest.$ac_ext
2170 cat >>conftest.$ac_ext <<_ACEOF
2171 /* end confdefs.h.  */
2172
2173 int
2174 main ()
2175 {
2176
2177   ;
2178   return 0;
2179 }
2180 _ACEOF
2181 rm -f conftest.o conftest.obj
2182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183   (eval $ac_compile) 2>&5
2184   ac_status=$?
2185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186   (exit $ac_status); }; then
2187   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2188   case $ac_file in
2189     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2190     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2191        break;;
2192   esac
2193 done
2194 else
2195   echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2197
2198 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2199 See \`config.log' for more details." >&5
2200 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2201 See \`config.log' for more details." >&2;}
2202    { (exit 1); exit 1; }; }
2203 fi
2204
2205 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2206 fi
2207 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2208 echo "${ECHO_T}$ac_cv_objext" >&6
2209 OBJEXT=$ac_cv_objext
2210 ac_objext=$OBJEXT
2211 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2212 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2213 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2214   echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216   cat >conftest.$ac_ext <<_ACEOF
2217 #line $LINENO "configure"
2218 /* confdefs.h.  */
2219 _ACEOF
2220 cat confdefs.h >>conftest.$ac_ext
2221 cat >>conftest.$ac_ext <<_ACEOF
2222 /* end confdefs.h.  */
2223
2224 int
2225 main ()
2226 {
2227 #ifndef __GNUC__
2228        choke me
2229 #endif
2230
2231   ;
2232   return 0;
2233 }
2234 _ACEOF
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237   (eval $ac_compile) 2>&5
2238   ac_status=$?
2239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240   (exit $ac_status); } &&
2241          { ac_try='test -s conftest.$ac_objext'
2242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243   (eval $ac_try) 2>&5
2244   ac_status=$?
2245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246   (exit $ac_status); }; }; then
2247   ac_compiler_gnu=yes
2248 else
2249   echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2251
2252 ac_compiler_gnu=no
2253 fi
2254 rm -f conftest.$ac_objext conftest.$ac_ext
2255 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2256
2257 fi
2258 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2259 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2260 GXX=`test $ac_compiler_gnu = yes && echo yes`
2261 ac_test_CXXFLAGS=${CXXFLAGS+set}
2262 ac_save_CXXFLAGS=$CXXFLAGS
2263 CXXFLAGS="-g"
2264 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2265 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2266 if test "${ac_cv_prog_cxx_g+set}" = set; then
2267   echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269   cat >conftest.$ac_ext <<_ACEOF
2270 #line $LINENO "configure"
2271 /* confdefs.h.  */
2272 _ACEOF
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h.  */
2276
2277 int
2278 main ()
2279 {
2280
2281   ;
2282   return 0;
2283 }
2284 _ACEOF
2285 rm -f conftest.$ac_objext
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287   (eval $ac_compile) 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); } &&
2291          { ac_try='test -s conftest.$ac_objext'
2292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293   (eval $ac_try) 2>&5
2294   ac_status=$?
2295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296   (exit $ac_status); }; }; then
2297   ac_cv_prog_cxx_g=yes
2298 else
2299   echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2301
2302 ac_cv_prog_cxx_g=no
2303 fi
2304 rm -f conftest.$ac_objext conftest.$ac_ext
2305 fi
2306 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2307 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2308 if test "$ac_test_CXXFLAGS" = set; then
2309   CXXFLAGS=$ac_save_CXXFLAGS
2310 elif test $ac_cv_prog_cxx_g = yes; then
2311   if test "$GXX" = yes; then
2312     CXXFLAGS="-g -O2"
2313   else
2314     CXXFLAGS="-g"
2315   fi
2316 else
2317   if test "$GXX" = yes; then
2318     CXXFLAGS="-O2"
2319   else
2320     CXXFLAGS=
2321   fi
2322 fi
2323 for ac_declaration in \
2324    ''\
2325    '#include <stdlib.h>' \
2326    'extern "C" void std::exit (int) throw (); using std::exit;' \
2327    'extern "C" void std::exit (int); using std::exit;' \
2328    'extern "C" void exit (int) throw ();' \
2329    'extern "C" void exit (int);' \
2330    'void exit (int);'
2331 do
2332   cat >conftest.$ac_ext <<_ACEOF
2333 #line $LINENO "configure"
2334 /* confdefs.h.  */
2335 _ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h.  */
2339 #include <stdlib.h>
2340 $ac_declaration
2341 int
2342 main ()
2343 {
2344 exit (42);
2345   ;
2346   return 0;
2347 }
2348 _ACEOF
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351   (eval $ac_compile) 2>&5
2352   ac_status=$?
2353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354   (exit $ac_status); } &&
2355          { ac_try='test -s conftest.$ac_objext'
2356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357   (eval $ac_try) 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); }; }; then
2361   :
2362 else
2363   echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2365
2366 continue
2367 fi
2368 rm -f conftest.$ac_objext conftest.$ac_ext
2369   cat >conftest.$ac_ext <<_ACEOF
2370 #line $LINENO "configure"
2371 /* confdefs.h.  */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h.  */
2376 $ac_declaration
2377 int
2378 main ()
2379 {
2380 exit (42);
2381   ;
2382   return 0;
2383 }
2384 _ACEOF
2385 rm -f conftest.$ac_objext
2386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387   (eval $ac_compile) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); } &&
2391          { ac_try='test -s conftest.$ac_objext'
2392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393   (eval $ac_try) 2>&5
2394   ac_status=$?
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); }; }; then
2397   break
2398 else
2399   echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 fi
2403 rm -f conftest.$ac_objext conftest.$ac_ext
2404 done
2405 rm -f conftest*
2406 if test -n "$ac_declaration"; then
2407   echo '#ifdef __cplusplus' >>confdefs.h
2408   echo $ac_declaration      >>confdefs.h
2409   echo '#endif'             >>confdefs.h
2410 fi
2411
2412 ac_ext=c
2413 ac_cpp='$CPP $CPPFLAGS'
2414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2417
2418 ac_ext=c
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423 if test -n "$ac_tool_prefix"; then
2424   for ac_prog in gcc
2425   do
2426     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2428 echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   if test -n "$CC"; then
2434   ac_cv_prog_CC="$CC" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439   IFS=$as_save_IFS
2440   test -z "$as_dir" && as_dir=.
2441   for ac_exec_ext in '' $ac_executable_extensions; do
2442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2443     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445     break 2
2446   fi
2447 done
2448 done
2449
2450 fi
2451 fi
2452 CC=$ac_cv_prog_CC
2453 if test -n "$CC"; then
2454   echo "$as_me:$LINENO: result: $CC" >&5
2455 echo "${ECHO_T}$CC" >&6
2456 else
2457   echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6
2459 fi
2460
2461     test -n "$CC" && break
2462   done
2463 fi
2464 if test -z "$CC"; then
2465   ac_ct_CC=$CC
2466   for ac_prog in gcc
2467 do
2468   # Extract the first word of "$ac_prog", so it can be a program name with args.
2469 set dummy $ac_prog; ac_word=$2
2470 echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2472 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2473   echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475   if test -n "$ac_ct_CC"; then
2476   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481   IFS=$as_save_IFS
2482   test -z "$as_dir" && as_dir=.
2483   for ac_exec_ext in '' $ac_executable_extensions; do
2484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485     ac_cv_prog_ac_ct_CC="$ac_prog"
2486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487     break 2
2488   fi
2489 done
2490 done
2491
2492 fi
2493 fi
2494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2495 if test -n "$ac_ct_CC"; then
2496   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2497 echo "${ECHO_T}$ac_ct_CC" >&6
2498 else
2499   echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6
2501 fi
2502
2503   test -n "$ac_ct_CC" && break
2504 done
2505
2506   CC=$ac_ct_CC
2507 fi
2508
2509
2510 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2511 See \`config.log' for more details." >&5
2512 echo "$as_me: error: no acceptable C compiler found in \$PATH
2513 See \`config.log' for more details." >&2;}
2514    { (exit 1); exit 1; }; }
2515
2516 # Provide some information about the compiler.
2517 echo "$as_me:$LINENO:" \
2518      "checking for C compiler version" >&5
2519 ac_compiler=`set X $ac_compile; echo $2`
2520 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2521   (eval $ac_compiler --version </dev/null >&5) 2>&5
2522   ac_status=$?
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); }
2525 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2526   (eval $ac_compiler -v </dev/null >&5) 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); }
2530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2531   (eval $ac_compiler -V </dev/null >&5) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }
2535
2536 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2537 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2538 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2539   echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541   cat >conftest.$ac_ext <<_ACEOF
2542 #line $LINENO "configure"
2543 /* confdefs.h.  */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h.  */
2548
2549 int
2550 main ()
2551 {
2552 #ifndef __GNUC__
2553        choke me
2554 #endif
2555
2556   ;
2557   return 0;
2558 }
2559 _ACEOF
2560 rm -f conftest.$ac_objext
2561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562   (eval $ac_compile) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); } &&
2566          { ac_try='test -s conftest.$ac_objext'
2567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568   (eval $ac_try) 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }; }; then
2572   ac_compiler_gnu=yes
2573 else
2574   echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2576
2577 ac_compiler_gnu=no
2578 fi
2579 rm -f conftest.$ac_objext conftest.$ac_ext
2580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2581
2582 fi
2583 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2584 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2585 GCC=`test $ac_compiler_gnu = yes && echo yes`
2586 ac_test_CFLAGS=${CFLAGS+set}
2587 ac_save_CFLAGS=$CFLAGS
2588 CFLAGS="-g"
2589 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2590 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2591 if test "${ac_cv_prog_cc_g+set}" = set; then
2592   echo $ECHO_N "(cached) $ECHO_C" >&6
2593 else
2594   cat >conftest.$ac_ext <<_ACEOF
2595 #line $LINENO "configure"
2596 /* confdefs.h.  */
2597 _ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h.  */
2601
2602 int
2603 main ()
2604 {
2605
2606   ;
2607   return 0;
2608 }
2609 _ACEOF
2610 rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612   (eval $ac_compile) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); } &&
2616          { ac_try='test -s conftest.$ac_objext'
2617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618   (eval $ac_try) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; }; then
2622   ac_cv_prog_cc_g=yes
2623 else
2624   echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2626
2627 ac_cv_prog_cc_g=no
2628 fi
2629 rm -f conftest.$ac_objext conftest.$ac_ext
2630 fi
2631 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2632 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2633 if test "$ac_test_CFLAGS" = set; then
2634   CFLAGS=$ac_save_CFLAGS
2635 elif test $ac_cv_prog_cc_g = yes; then
2636   if test "$GCC" = yes; then
2637     CFLAGS="-g -O2"
2638   else
2639     CFLAGS="-g"
2640   fi
2641 else
2642   if test "$GCC" = yes; then
2643     CFLAGS="-O2"
2644   else
2645     CFLAGS=
2646   fi
2647 fi
2648 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2649 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2650 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2651   echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653   ac_cv_prog_cc_stdc=no
2654 ac_save_CC=$CC
2655 cat >conftest.$ac_ext <<_ACEOF
2656 #line $LINENO "configure"
2657 /* confdefs.h.  */
2658 _ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h.  */
2662 #include <stdarg.h>
2663 #include <stdio.h>
2664 #include <sys/types.h>
2665 #include <sys/stat.h>
2666 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2667 struct buf { int x; };
2668 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2669 static char *e (p, i)
2670      char **p;
2671      int i;
2672 {
2673   return p[i];
2674 }
2675 static char *f (char * (*g) (char **, int), char **p, ...)
2676 {
2677   char *s;
2678   va_list v;
2679   va_start (v,p);
2680   s = g (p, va_arg (v,int));
2681   va_end (v);
2682   return s;
2683 }
2684 int test (int i, double x);
2685 struct s1 {int (*f) (int a);};
2686 struct s2 {int (*f) (double a);};
2687 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2688 int argc;
2689 char **argv;
2690 int
2691 main ()
2692 {
2693 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2694   ;
2695   return 0;
2696 }
2697 _ACEOF
2698 # Don't try gcc -ansi; that turns off useful extensions and
2699 # breaks some systems' header files.
2700 # AIX                   -qlanglvl=ansi
2701 # Ultrix and OSF/1      -std1
2702 # HP-UX 10.20 and later -Ae
2703 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2704 # SVR4                  -Xc -D__EXTENSIONS__
2705 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2706 do
2707   CC="$ac_save_CC $ac_arg"
2708   rm -f conftest.$ac_objext
2709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710   (eval $ac_compile) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); } &&
2714          { ac_try='test -s conftest.$ac_objext'
2715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716   (eval $ac_try) 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); }; }; then
2720   ac_cv_prog_cc_stdc=$ac_arg
2721 break
2722 else
2723   echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2725
2726 fi
2727 rm -f conftest.$ac_objext
2728 done
2729 rm -f conftest.$ac_ext conftest.$ac_objext
2730 CC=$ac_save_CC
2731
2732 fi
2733
2734 case "x$ac_cv_prog_cc_stdc" in
2735   x|xno)
2736     echo "$as_me:$LINENO: result: none needed" >&5
2737 echo "${ECHO_T}none needed" >&6 ;;
2738   *)
2739     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2740 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2741     CC="$CC $ac_cv_prog_cc_stdc" ;;
2742 esac
2743
2744 # Some people use a C++ compiler to compile C.  Since we use `exit',
2745 # in C++ we need to declare it.  In case someone uses the same compiler
2746 # for both compiling C and C++ we need to have the C++ compiler decide
2747 # the declaration of exit, since it's the most demanding environment.
2748 cat >conftest.$ac_ext <<_ACEOF
2749 #ifndef __cplusplus
2750   choke me
2751 #endif
2752 _ACEOF
2753 rm -f conftest.$ac_objext
2754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2755   (eval $ac_compile) 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); } &&
2759          { ac_try='test -s conftest.$ac_objext'
2760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761   (eval $ac_try) 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }; }; then
2765   for ac_declaration in \
2766    ''\
2767    '#include <stdlib.h>' \
2768    'extern "C" void std::exit (int) throw (); using std::exit;' \
2769    'extern "C" void std::exit (int); using std::exit;' \
2770    'extern "C" void exit (int) throw ();' \
2771    'extern "C" void exit (int);' \
2772    'void exit (int);'
2773 do
2774   cat >conftest.$ac_ext <<_ACEOF
2775 #line $LINENO "configure"
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2781 #include <stdlib.h>
2782 $ac_declaration
2783 int
2784 main ()
2785 {
2786 exit (42);
2787   ;
2788   return 0;
2789 }
2790 _ACEOF
2791 rm -f conftest.$ac_objext
2792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2793   (eval $ac_compile) 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); } &&
2797          { ac_try='test -s conftest.$ac_objext'
2798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; }; then
2803   :
2804 else
2805   echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2807
2808 continue
2809 fi
2810 rm -f conftest.$ac_objext conftest.$ac_ext
2811   cat >conftest.$ac_ext <<_ACEOF
2812 #line $LINENO "configure"
2813 /* confdefs.h.  */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h.  */
2818 $ac_declaration
2819 int
2820 main ()
2821 {
2822 exit (42);
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829   (eval $ac_compile) 2>&5
2830   ac_status=$?
2831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832   (exit $ac_status); } &&
2833          { ac_try='test -s conftest.$ac_objext'
2834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835   (eval $ac_try) 2>&5
2836   ac_status=$?
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); }; }; then
2839   break
2840 else
2841   echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2843
2844 fi
2845 rm -f conftest.$ac_objext conftest.$ac_ext
2846 done
2847 rm -f conftest*
2848 if test -n "$ac_declaration"; then
2849   echo '#ifdef __cplusplus' >>confdefs.h
2850   echo $ac_declaration      >>confdefs.h
2851   echo '#endif'             >>confdefs.h
2852 fi
2853
2854 else
2855   echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2857
2858 fi
2859 rm -f conftest.$ac_objext conftest.$ac_ext
2860 ac_ext=c
2861 ac_cpp='$CPP $CPPFLAGS'
2862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2865
2866 ac_ext=c
2867 ac_cpp='$CPP $CPPFLAGS'
2868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2872 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2873 # On Suns, sometimes $CPP names a directory.
2874 if test -n "$CPP" && test -d "$CPP"; then
2875   CPP=
2876 fi
2877 if test -z "$CPP"; then
2878   if test "${ac_cv_prog_CPP+set}" = set; then
2879   echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881       # Double quotes because CPP needs to be expanded
2882     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2883     do
2884       ac_preproc_ok=false
2885 for ac_c_preproc_warn_flag in '' yes
2886 do
2887   # Use a header file that comes with gcc, so configuring glibc
2888   # with a fresh cross-compiler works.
2889   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2890   # <limits.h> exists even on freestanding compilers.
2891   # On the NeXT, cc -E runs the code through the compiler's parser,
2892   # not just through cpp. "Syntax error" is here to catch this case.
2893   cat >conftest.$ac_ext <<_ACEOF
2894 #line $LINENO "configure"
2895 /* confdefs.h.  */
2896 _ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h.  */
2900 #ifdef __STDC__
2901 # include <limits.h>
2902 #else
2903 # include <assert.h>
2904 #endif
2905                      Syntax error
2906 _ACEOF
2907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2908   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2909   ac_status=$?
2910   grep -v '^ *+' conftest.er1 >conftest.err
2911   rm -f conftest.er1
2912   cat conftest.err >&5
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); } >/dev/null; then
2915   if test -s conftest.err; then
2916     ac_cpp_err=$ac_c_preproc_warn_flag
2917   else
2918     ac_cpp_err=
2919   fi
2920 else
2921   ac_cpp_err=yes
2922 fi
2923 if test -z "$ac_cpp_err"; then
2924   :
2925 else
2926   echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2928
2929   # Broken: fails on valid input.
2930 continue
2931 fi
2932 rm -f conftest.err conftest.$ac_ext
2933
2934   # OK, works on sane cases.  Now check whether non-existent headers
2935   # can be detected and how.
2936   cat >conftest.$ac_ext <<_ACEOF
2937 #line $LINENO "configure"
2938 /* confdefs.h.  */
2939 _ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h.  */
2943 #include <ac_nonexistent.h>
2944 _ACEOF
2945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2946   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2947   ac_status=$?
2948   grep -v '^ *+' conftest.er1 >conftest.err
2949   rm -f conftest.er1
2950   cat conftest.err >&5
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); } >/dev/null; then
2953   if test -s conftest.err; then
2954     ac_cpp_err=$ac_c_preproc_warn_flag
2955   else
2956     ac_cpp_err=
2957   fi
2958 else
2959   ac_cpp_err=yes
2960 fi
2961 if test -z "$ac_cpp_err"; then
2962   # Broken: success on invalid input.
2963 continue
2964 else
2965   echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968   # Passes both tests.
2969 ac_preproc_ok=:
2970 break
2971 fi
2972 rm -f conftest.err conftest.$ac_ext
2973
2974 done
2975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2976 rm -f conftest.err conftest.$ac_ext
2977 if $ac_preproc_ok; then
2978   break
2979 fi
2980
2981     done
2982     ac_cv_prog_CPP=$CPP
2983
2984 fi
2985   CPP=$ac_cv_prog_CPP
2986 else
2987   ac_cv_prog_CPP=$CPP
2988 fi
2989 echo "$as_me:$LINENO: result: $CPP" >&5
2990 echo "${ECHO_T}$CPP" >&6
2991 ac_preproc_ok=false
2992 for ac_c_preproc_warn_flag in '' yes
2993 do
2994   # Use a header file that comes with gcc, so configuring glibc
2995   # with a fresh cross-compiler works.
2996   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2997   # <limits.h> exists even on freestanding compilers.
2998   # On the NeXT, cc -E runs the code through the compiler's parser,
2999   # not just through cpp. "Syntax error" is here to catch this case.
3000   cat >conftest.$ac_ext <<_ACEOF
3001 #line $LINENO "configure"
3002 /* confdefs.h.  */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h.  */
3007 #ifdef __STDC__
3008 # include <limits.h>
3009 #else
3010 # include <assert.h>
3011 #endif
3012                      Syntax error
3013 _ACEOF
3014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3015   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3016   ac_status=$?
3017   grep -v '^ *+' conftest.er1 >conftest.err
3018   rm -f conftest.er1
3019   cat conftest.err >&5
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); } >/dev/null; then
3022   if test -s conftest.err; then
3023     ac_cpp_err=$ac_c_preproc_warn_flag
3024   else
3025     ac_cpp_err=
3026   fi
3027 else
3028   ac_cpp_err=yes
3029 fi
3030 if test -z "$ac_cpp_err"; then
3031   :
3032 else
3033   echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3035
3036   # Broken: fails on valid input.
3037 continue
3038 fi
3039 rm -f conftest.err conftest.$ac_ext
3040
3041   # OK, works on sane cases.  Now check whether non-existent headers
3042   # can be detected and how.
3043   cat >conftest.$ac_ext <<_ACEOF
3044 #line $LINENO "configure"
3045 /* confdefs.h.  */
3046 _ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h.  */
3050 #include <ac_nonexistent.h>
3051 _ACEOF
3052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3054   ac_status=$?
3055   grep -v '^ *+' conftest.er1 >conftest.err
3056   rm -f conftest.er1
3057   cat conftest.err >&5
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); } >/dev/null; then
3060   if test -s conftest.err; then
3061     ac_cpp_err=$ac_c_preproc_warn_flag
3062   else
3063     ac_cpp_err=
3064   fi
3065 else
3066   ac_cpp_err=yes
3067 fi
3068 if test -z "$ac_cpp_err"; then
3069   # Broken: success on invalid input.
3070 continue
3071 else
3072   echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3074
3075   # Passes both tests.
3076 ac_preproc_ok=:
3077 break
3078 fi
3079 rm -f conftest.err conftest.$ac_ext
3080
3081 done
3082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3083 rm -f conftest.err conftest.$ac_ext
3084 if $ac_preproc_ok; then
3085   :
3086 else
3087   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3090 See \`config.log' for more details." >&2;}
3091    { (exit 1); exit 1; }; }
3092 fi
3093
3094 ac_ext=c
3095 ac_cpp='$CPP $CPPFLAGS'
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099
3100
3101 if test "$GCC" != "yes"
3102 then
3103         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3104 echo "$as_me: error: gcc required but not found" >&2;}
3105    { (exit 1); exit 1; }; }
3106 fi
3107
3108 if test "$GXX" != "yes"
3109 then
3110         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3111 echo "$as_me: error: g++ required but not found" >&2;}
3112    { (exit 1); exit 1; }; }
3113 fi
3114
3115 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3116 if test "$gccmajor" -lt "3"
3117 then
3118         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3119 echo "$as_me: error: gcc 3.x required" >&2;}
3120    { (exit 1); exit 1; }; }
3121 fi
3122
3123  echo "$as_me:$LINENO: checking for GNU make" >&5
3124 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3125 if test "${_cv_gnu_make_command+set}" = set; then
3126   echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128   _cv_gnu_make_command='' ;
3129                 for a in "$MAKE" make gmake gnumake ; do
3130                         if test -z "$a" ; then continue ; fi ;
3131                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3132                                 _cv_gnu_make_command=$a ;
3133                                 break;
3134                         fi
3135                 done ;
3136
3137 fi
3138 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3139 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3140         if test  "x$_cv_gnu_make_command" != "x"  ; then
3141                 ifGNUmake='' ;
3142         else
3143                 ifGNUmake='#' ;
3144                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3145 echo "${ECHO_T}\"Not found\"" >&6;
3146         fi
3147
3148
3149 if test -z "$_cv_gnu_make_command"
3150 then
3151         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3152 echo "$as_me: error: GNU Make required but not found" >&2;}
3153    { (exit 1); exit 1; }; }
3154 fi
3155
3156
3157 echo "$as_me:$LINENO: checking " >&5
3158 echo $ECHO_N "checking ... $ECHO_C" >&6
3159 if test "${ac_cv_has_flex+set}" = set; then
3160   echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162   for ac_prog in flex lex
3163 do
3164   # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy $ac_prog; ac_word=$2
3166 echo "$as_me:$LINENO: checking for $ac_word" >&5
3167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168 if test "${ac_cv_prog_LEX+set}" = set; then
3169   echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171   if test -n "$LEX"; then
3172   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177   IFS=$as_save_IFS
3178   test -z "$as_dir" && as_dir=.
3179   for ac_exec_ext in '' $ac_executable_extensions; do
3180   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181     ac_cv_prog_LEX="$ac_prog"
3182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3183     break 2
3184   fi
3185 done
3186 done
3187
3188 fi
3189 fi
3190 LEX=$ac_cv_prog_LEX
3191 if test -n "$LEX"; then
3192   echo "$as_me:$LINENO: result: $LEX" >&5
3193 echo "${ECHO_T}$LEX" >&6
3194 else
3195   echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3197 fi
3198
3199   test -n "$LEX" && break
3200 done
3201 test -n "$LEX" || LEX=":"
3202
3203 if test -z "$LEXLIB"
3204 then
3205   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3206 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3207 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3208   echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210   ac_check_lib_save_LIBS=$LIBS
3211 LIBS="-lfl  $LIBS"
3212 cat >conftest.$ac_ext <<_ACEOF
3213 #line $LINENO "configure"
3214 /* confdefs.h.  */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h.  */
3219
3220 /* Override any gcc2 internal prototype to avoid an error.  */
3221 #ifdef __cplusplus
3222 extern "C"
3223 #endif
3224 /* We use char because int might match the return type of a gcc2
3225    builtin and then its argument prototype would still apply.  */
3226 char yywrap ();
3227 int
3228 main ()
3229 {
3230 yywrap ();
3231   ;
3232   return 0;
3233 }
3234 _ACEOF
3235 rm -f conftest.$ac_objext conftest$ac_exeext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3237   (eval $ac_link) 2>&5
3238   ac_status=$?
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); } &&
3241          { ac_try='test -s conftest$ac_exeext'
3242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243   (eval $ac_try) 2>&5
3244   ac_status=$?
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); }; }; then
3247   ac_cv_lib_fl_yywrap=yes
3248 else
3249   echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252 ac_cv_lib_fl_yywrap=no
3253 fi
3254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3255 LIBS=$ac_check_lib_save_LIBS
3256 fi
3257 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3258 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3259 if test $ac_cv_lib_fl_yywrap = yes; then
3260   LEXLIB="-lfl"
3261 else
3262   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3263 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3264 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3265   echo $ECHO_N "(cached) $ECHO_C" >&6
3266 else
3267   ac_check_lib_save_LIBS=$LIBS
3268 LIBS="-ll  $LIBS"
3269 cat >conftest.$ac_ext <<_ACEOF
3270 #line $LINENO "configure"
3271 /* confdefs.h.  */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h.  */
3276
3277 /* Override any gcc2 internal prototype to avoid an error.  */
3278 #ifdef __cplusplus
3279 extern "C"
3280 #endif
3281 /* We use char because int might match the return type of a gcc2
3282    builtin and then its argument prototype would still apply.  */
3283 char yywrap ();
3284 int
3285 main ()
3286 {
3287 yywrap ();
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 rm -f conftest.$ac_objext conftest$ac_exeext
3293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3294   (eval $ac_link) 2>&5
3295   ac_status=$?
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); } &&
3298          { ac_try='test -s conftest$ac_exeext'
3299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300   (eval $ac_try) 2>&5
3301   ac_status=$?
3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); }; }; then
3304   ac_cv_lib_l_yywrap=yes
3305 else
3306   echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309 ac_cv_lib_l_yywrap=no
3310 fi
3311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3312 LIBS=$ac_check_lib_save_LIBS
3313 fi
3314 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3315 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3316 if test $ac_cv_lib_l_yywrap = yes; then
3317   LEXLIB="-ll"
3318 fi
3319
3320 fi
3321
3322 fi
3323
3324 if test "x$LEX" != "x:"; then
3325   echo "$as_me:$LINENO: checking lex output file root" >&5
3326 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3327 if test "${ac_cv_prog_lex_root+set}" = set; then
3328   echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330   # The minimal lex program is just a single line: %%.  But some broken lexes
3331 # (Solaris, I think it was) want two %% lines, so accommodate them.
3332 cat >conftest.l <<_ACEOF
3333 %%
3334 %%
3335 _ACEOF
3336 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3337   (eval $LEX conftest.l) 2>&5
3338   ac_status=$?
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); }
3341 if test -f lex.yy.c; then
3342   ac_cv_prog_lex_root=lex.yy
3343 elif test -f lexyy.c; then
3344   ac_cv_prog_lex_root=lexyy
3345 else
3346   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3347 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3348    { (exit 1); exit 1; }; }
3349 fi
3350 fi
3351 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3352 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3353 rm -f conftest.l
3354 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3355
3356 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3357 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3358 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3359   echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361   # POSIX says lex can declare yytext either as a pointer or an array; the
3362 # default is implementation-dependent. Figure out which it is, since
3363 # not all implementations provide the %pointer and %array declarations.
3364 ac_cv_prog_lex_yytext_pointer=no
3365 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3366 ac_save_LIBS=$LIBS
3367 LIBS="$LIBS $LEXLIB"
3368 cat >conftest.$ac_ext <<_ACEOF
3369 `cat $LEX_OUTPUT_ROOT.c`
3370 _ACEOF
3371 rm -f conftest.$ac_objext conftest$ac_exeext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3373   (eval $ac_link) 2>&5
3374   ac_status=$?
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); } &&
3377          { ac_try='test -s conftest$ac_exeext'
3378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379   (eval $ac_try) 2>&5
3380   ac_status=$?
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); }; }; then
3383   ac_cv_prog_lex_yytext_pointer=yes
3384 else
3385   echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3387
3388 fi
3389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3390 LIBS=$ac_save_LIBS
3391 rm -f "${LEX_OUTPUT_ROOT}.c"
3392
3393 fi
3394 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3395 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3396 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3397
3398 cat >>confdefs.h <<\_ACEOF
3399 #define YYTEXT_POINTER 1
3400 _ACEOF
3401
3402 fi
3403
3404 fi
3405
3406 fi
3407 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3408 echo "${ECHO_T}$ac_cv_has_flex" >&6
3409 if test "$LEX" != "flex"; then
3410   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3411 echo "$as_me: error: flex not found but required" >&2;}
3412    { (exit 1); exit 1; }; }
3413 fi
3414
3415 echo "$as_me:$LINENO: checking " >&5
3416 echo $ECHO_N "checking ... $ECHO_C" >&6
3417 if test "${ac_cv_has_bison+set}" = set; then
3418   echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420   for ac_prog in 'bison -y' byacc
3421 do
3422   # Extract the first word of "$ac_prog", so it can be a program name with args.
3423 set dummy $ac_prog; ac_word=$2
3424 echo "$as_me:$LINENO: checking for $ac_word" >&5
3425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3426 if test "${ac_cv_prog_YACC+set}" = set; then
3427   echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429   if test -n "$YACC"; then
3430   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3431 else
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3434 do
3435   IFS=$as_save_IFS
3436   test -z "$as_dir" && as_dir=.
3437   for ac_exec_ext in '' $ac_executable_extensions; do
3438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439     ac_cv_prog_YACC="$ac_prog"
3440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441     break 2
3442   fi
3443 done
3444 done
3445
3446 fi
3447 fi
3448 YACC=$ac_cv_prog_YACC
3449 if test -n "$YACC"; then
3450   echo "$as_me:$LINENO: result: $YACC" >&5
3451 echo "${ECHO_T}$YACC" >&6
3452 else
3453   echo "$as_me:$LINENO: result: no" >&5
3454 echo "${ECHO_T}no" >&6
3455 fi
3456
3457   test -n "$YACC" && break
3458 done
3459 test -n "$YACC" || YACC="yacc"
3460
3461
3462 fi
3463 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3464 echo "${ECHO_T}$ac_cv_has_bison" >&6
3465 if test "$YACC" != "bison -y"; then
3466   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3467 echo "$as_me: error: bison not found but required" >&2;}
3468    { (exit 1); exit 1; }; }
3469 else
3470   YACC=bison
3471
3472 fi
3473
3474
3475 # Check whether --enable-shared or --disable-shared was given.
3476 if test "${enable_shared+set}" = set; then
3477   enableval="$enable_shared"
3478   p=${PACKAGE-default}
3479     case $enableval in
3480     yes) enable_shared=yes ;;
3481     no) enable_shared=no ;;
3482     *)
3483       enable_shared=no
3484       # Look at the argument we got.  We use all the common list separators.
3485       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3486       for pkg in $enableval; do
3487         IFS="$lt_save_ifs"
3488         if test "X$pkg" = "X$p"; then
3489           enable_shared=yes
3490         fi
3491       done
3492       IFS="$lt_save_ifs"
3493       ;;
3494     esac
3495 else
3496   enable_shared=yes
3497 fi;
3498
3499 # Check whether --enable-static or --disable-static was given.
3500 if test "${enable_static+set}" = set; then
3501   enableval="$enable_static"
3502   p=${PACKAGE-default}
3503     case $enableval in
3504     yes) enable_static=yes ;;
3505     no) enable_static=no ;;
3506     *)
3507      enable_static=no
3508       # Look at the argument we got.  We use all the common list separators.
3509       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3510       for pkg in $enableval; do
3511         IFS="$lt_save_ifs"
3512         if test "X$pkg" = "X$p"; then
3513           enable_static=yes
3514         fi
3515       done
3516       IFS="$lt_save_ifs"
3517       ;;
3518     esac
3519 else
3520   enable_static=yes
3521 fi;
3522
3523 # Check whether --enable-fast-install or --disable-fast-install was given.
3524 if test "${enable_fast_install+set}" = set; then
3525   enableval="$enable_fast_install"
3526   p=${PACKAGE-default}
3527     case $enableval in
3528     yes) enable_fast_install=yes ;;
3529     no) enable_fast_install=no ;;
3530     *)
3531       enable_fast_install=no
3532       # Look at the argument we got.  We use all the common list separators.
3533       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3534       for pkg in $enableval; do
3535         IFS="$lt_save_ifs"
3536         if test "X$pkg" = "X$p"; then
3537           enable_fast_install=yes
3538         fi
3539       done
3540       IFS="$lt_save_ifs"
3541       ;;
3542     esac
3543 else
3544   enable_fast_install=yes
3545 fi;
3546
3547 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3548 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3549 if test "${lt_cv_path_SED+set}" = set; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   # Loop through the user's path and test for sed and gsed.
3553 # Then use that list of sed's as ones to test for truncation.
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557   IFS=$as_save_IFS
3558   test -z "$as_dir" && as_dir=.
3559   for lt_ac_prog in sed gsed; do
3560     for ac_exec_ext in '' $ac_executable_extensions; do
3561       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3562         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3563       fi
3564     done
3565   done
3566 done
3567 lt_ac_max=0
3568 lt_ac_count=0
3569 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3570 # along with /bin/sed that truncates output.
3571 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3572   test ! -f $lt_ac_sed && break
3573   cat /dev/null > conftest.in
3574   lt_ac_count=0
3575   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3576   # Check for GNU sed and select it if it is found.
3577   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3578     lt_cv_path_SED=$lt_ac_sed
3579     break
3580   fi
3581   while true; do
3582     cat conftest.in conftest.in >conftest.tmp
3583     mv conftest.tmp conftest.in
3584     cp conftest.in conftest.nl
3585     echo >>conftest.nl
3586     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3587     cmp -s conftest.out conftest.nl || break
3588     # 10000 chars as input seems more than enough
3589     test $lt_ac_count -gt 10 && break
3590     lt_ac_count=`expr $lt_ac_count + 1`
3591     if test $lt_ac_count -gt $lt_ac_max; then
3592       lt_ac_max=$lt_ac_count
3593       lt_cv_path_SED=$lt_ac_sed
3594     fi
3595   done
3596 done
3597 SED=$lt_cv_path_SED
3598
3599 fi
3600
3601 echo "$as_me:$LINENO: result: $SED" >&5
3602 echo "${ECHO_T}$SED" >&6
3603
3604 echo "$as_me:$LINENO: checking for egrep" >&5
3605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3606 if test "${ac_cv_prog_egrep+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3610     then ac_cv_prog_egrep='grep -E'
3611     else ac_cv_prog_egrep='egrep'
3612     fi
3613 fi
3614 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3615 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3616  EGREP=$ac_cv_prog_egrep
3617
3618
3619
3620 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3621 if test "${with_gnu_ld+set}" = set; then
3622   withval="$with_gnu_ld"
3623   test "$withval" = no || with_gnu_ld=yes
3624 else
3625   with_gnu_ld=no
3626 fi;
3627 ac_prog=ld
3628 if test "$GCC" = yes; then
3629   # Check if gcc -print-prog-name=ld gives a path.
3630   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3631 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3632   case $host in
3633   *-*-mingw*)
3634     # gcc leaves a trailing carriage return which upsets mingw
3635     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3636   *)
3637     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3638   esac
3639   case $ac_prog in
3640     # Accept absolute paths.
3641     [\\/]* | ?:[\\/]*)
3642       re_direlt='/[^/][^/]*/\.\./'
3643       # Canonicalize the path of ld
3644       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3645       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3646         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3647       done
3648       test -z "$LD" && LD="$ac_prog"
3649       ;;
3650   "")
3651     # If it fails, then pretend we aren't using GCC.
3652     ac_prog=ld
3653     ;;
3654   *)
3655     # If it is relative, then search for the first ld in PATH.
3656     with_gnu_ld=unknown
3657     ;;
3658   esac
3659 elif test "$with_gnu_ld" = yes; then
3660   echo "$as_me:$LINENO: checking for GNU ld" >&5
3661 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3662 else
3663   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3664 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3665 fi
3666 if test "${lt_cv_path_LD+set}" = set; then
3667   echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669   if test -z "$LD"; then
3670   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3671   for ac_dir in $PATH; do
3672     IFS="$lt_save_ifs"
3673     test -z "$ac_dir" && ac_dir=.
3674     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3675       lt_cv_path_LD="$ac_dir/$ac_prog"
3676       # Check to see if the program is GNU ld.  I'd rather use --version,
3677       # but apparently some GNU ld's only accept -v.
3678       # Break only if it was the GNU/non-GNU ld that we prefer.
3679       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3680       *GNU* | *'with BFD'*)
3681         test "$with_gnu_ld" != no && break
3682         ;;
3683       *)
3684         test "$with_gnu_ld" != yes && break
3685         ;;
3686       esac
3687     fi
3688   done
3689   IFS="$lt_save_ifs"
3690 else
3691   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3692 fi
3693 fi
3694
3695 LD="$lt_cv_path_LD"
3696 if test -n "$LD"; then
3697   echo "$as_me:$LINENO: result: $LD" >&5
3698 echo "${ECHO_T}$LD" >&6
3699 else
3700   echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3702 fi
3703 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3704 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3705    { (exit 1); exit 1; }; }
3706 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3707 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3708 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3709   echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3712 case `"$LD" -v 2>&1 </dev/null` in
3713 *GNU* | *'with BFD'*)
3714   lt_cv_prog_gnu_ld=yes
3715   ;;
3716 *)
3717   lt_cv_prog_gnu_ld=no
3718   ;;
3719 esac
3720 fi
3721 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3722 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3723 with_gnu_ld=$lt_cv_prog_gnu_ld
3724
3725
3726 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3727 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3728 if test "${lt_cv_ld_reload_flag+set}" = set; then
3729   echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731   lt_cv_ld_reload_flag='-r'
3732 fi
3733 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3734 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3735 reload_flag=$lt_cv_ld_reload_flag
3736 case $reload_flag in
3737 "" | " "*) ;;
3738 *) reload_flag=" $reload_flag" ;;
3739 esac
3740 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3741
3742 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3743 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3744 if test "${lt_cv_path_NM+set}" = set; then
3745   echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747   if test -n "$NM"; then
3748   # Let the user override the test.
3749   lt_cv_path_NM="$NM"
3750 else
3751   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3752   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3753     IFS="$lt_save_ifs"
3754     test -z "$ac_dir" && ac_dir=.
3755     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3756     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3757       # Check to see if the nm accepts a BSD-compat flag.
3758       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3759       #   nm: unknown option "B" ignored
3760       # Tru64's nm complains that /dev/null is an invalid object file
3761       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3762       */dev/null* | *'Invalid file or object type'*)
3763         lt_cv_path_NM="$tmp_nm -B"
3764         break
3765         ;;
3766       *)
3767         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3768         */dev/null*)
3769           lt_cv_path_NM="$tmp_nm -p"
3770           break
3771           ;;
3772         *)
3773           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3774           continue # so that we can try to find one that supports BSD flags
3775           ;;
3776         esac
3777       esac
3778     fi
3779   done
3780   IFS="$lt_save_ifs"
3781   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3782 fi
3783 fi
3784 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3785 echo "${ECHO_T}$lt_cv_path_NM" >&6
3786 NM="$lt_cv_path_NM"
3787
3788 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3789 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3790 LN_S=$as_ln_s
3791 if test "$LN_S" = "ln -s"; then
3792   echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6
3794 else
3795   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3796 echo "${ECHO_T}no, using $LN_S" >&6
3797 fi
3798
3799 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3800 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3801 if test "${lt_cv_deplibs_check_method+set}" = set; then
3802   echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804   lt_cv_file_magic_cmd='$MAGIC_CMD'
3805 lt_cv_file_magic_test_file=
3806 lt_cv_deplibs_check_method='unknown'
3807 # Need to set the preceding variable on all platforms that support
3808 # interlibrary dependencies.
3809 # 'none' -- dependencies not supported.
3810 # `unknown' -- same as none, but documents that we really don't know.
3811 # 'pass_all' -- all dependencies passed with no checks.
3812 # 'test_compile' -- check by making test program.
3813 # 'file_magic [[regex]]' -- check by looking for files in library path
3814 # which responds to the $file_magic_cmd with a given extended regex.
3815 # If you have `file' or equivalent on your system and you're not sure
3816 # whether `pass_all' will *always* work, you probably want this one.
3817
3818 case $host_os in
3819 aix4* | aix5*)
3820   lt_cv_deplibs_check_method=pass_all
3821   ;;
3822
3823 beos*)
3824   lt_cv_deplibs_check_method=pass_all
3825   ;;
3826
3827 bsdi4*)
3828   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3829   lt_cv_file_magic_cmd='/usr/bin/file -L'
3830   lt_cv_file_magic_test_file=/shlib/libc.so
3831   ;;
3832
3833 cygwin* | mingw* | pw32*)
3834   # win32_libid is a shell function defined in ltmain.sh
3835   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3836   lt_cv_file_magic_cmd='win32_libid'
3837   ;;
3838
3839 darwin* | rhapsody*)
3840   # this will be overwritten by pass_all, but leave it in just in case
3841   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3842   lt_cv_file_magic_cmd='/usr/bin/file -L'
3843   case "$host_os" in
3844   rhapsody* | darwin1.[012])
3845     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3846     ;;
3847   *) # Darwin 1.3 on
3848     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3849     ;;
3850   esac
3851   lt_cv_deplibs_check_method=pass_all
3852   ;;
3853
3854 freebsd*)
3855   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3856     case $host_cpu in
3857     i*86 )
3858       # Not sure whether the presence of OpenBSD here was a mistake.
3859       # Let's accept both of them until this is cleared up.
3860       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3861       lt_cv_file_magic_cmd=/usr/bin/file
3862       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3863       ;;
3864     esac
3865   else
3866     lt_cv_deplibs_check_method=pass_all
3867   fi
3868   ;;
3869
3870 gnu*)
3871   lt_cv_deplibs_check_method=pass_all
3872   ;;
3873
3874 hpux10.20* | hpux11*)
3875   lt_cv_file_magic_cmd=/usr/bin/file
3876   case "$host_cpu" in
3877   ia64*)
3878     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3879     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3880     ;;
3881   hppa*64*)
3882     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]'
3883     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3884     ;;
3885   *)
3886     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3887     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3888     ;;
3889   esac
3890   ;;
3891
3892 irix5* | irix6* | nonstopux*)
3893   case $host_os in
3894   irix5* | nonstopux*)
3895     # this will be overridden with pass_all, but let us keep it just in case
3896     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3897     ;;
3898   *)
3899     case $LD in
3900     *-32|*"-32 ") libmagic=32-bit;;
3901     *-n32|*"-n32 ") libmagic=N32;;
3902     *-64|*"-64 ") libmagic=64-bit;;
3903     *) libmagic=never-match;;
3904     esac
3905     # this will be overridden with pass_all, but let us keep it just in case
3906     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3907     ;;
3908   esac
3909   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3910   lt_cv_deplibs_check_method=pass_all
3911   ;;
3912
3913 # This must be Linux ELF.
3914 linux*)
3915   case $host_cpu in
3916   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3917     lt_cv_deplibs_check_method=pass_all ;;
3918   *)
3919     # glibc up to 2.1.1 does not perform some relocations on ARM
3920     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3921   esac
3922   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3923   ;;
3924
3925 netbsd*)
3926   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3927     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3928   else
3929     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3930   fi
3931   ;;
3932
3933 newos6*)
3934   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3935   lt_cv_file_magic_cmd=/usr/bin/file
3936   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3937   ;;
3938
3939 nto-qnx)
3940   lt_cv_deplibs_check_method=unknown
3941   ;;
3942
3943 openbsd*)
3944   lt_cv_file_magic_cmd=/usr/bin/file
3945   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3946   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3947     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3948   else
3949     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3950   fi
3951   ;;
3952
3953 osf3* | osf4* | osf5*)
3954   # this will be overridden with pass_all, but let us keep it just in case
3955   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3956   lt_cv_file_magic_test_file=/shlib/libc.so
3957   lt_cv_deplibs_check_method=pass_all
3958   ;;
3959
3960 sco3.2v5*)
3961   lt_cv_deplibs_check_method=pass_all
3962   ;;
3963
3964 solaris*)
3965   lt_cv_deplibs_check_method=pass_all
3966   lt_cv_file_magic_test_file=/lib/libc.so
3967   ;;
3968
3969 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3970   case $host_vendor in
3971   motorola)
3972     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]'
3973     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3974     ;;
3975   ncr)
3976     lt_cv_deplibs_check_method=pass_all
3977     ;;
3978   sequent)
3979     lt_cv_file_magic_cmd='/bin/file'
3980     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3981     ;;
3982   sni)
3983     lt_cv_file_magic_cmd='/bin/file'
3984     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3985     lt_cv_file_magic_test_file=/lib/libc.so
3986     ;;
3987   siemens)
3988     lt_cv_deplibs_check_method=pass_all
3989     ;;
3990   esac
3991   ;;
3992
3993 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3994   lt_cv_deplibs_check_method=pass_all
3995   ;;
3996 esac
3997
3998 fi
3999 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4000 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4001 file_magic_cmd=$lt_cv_file_magic_cmd
4002 deplibs_check_method=$lt_cv_deplibs_check_method
4003 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4004
4005
4006
4007
4008 # If no C compiler was specified, use CC.
4009 LTCC=${LTCC-"$CC"}
4010
4011 # Allow CC to be a program name with arguments.
4012 compiler=$CC
4013
4014 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4015 if test "${enable_libtool_lock+set}" = set; then
4016   enableval="$enable_libtool_lock"
4017
4018 fi;
4019 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4020
4021 # Some flags need to be propagated to the compiler or linker for good
4022 # libtool support.
4023 case $host in
4024 ia64-*-hpux*)
4025   # Find out which ABI we are using.
4026   echo 'int i;' > conftest.$ac_ext
4027   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028   (eval $ac_compile) 2>&5
4029   ac_status=$?
4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); }; then
4032     case `/usr/bin/file conftest.$ac_objext` in
4033     *ELF-32*)
4034       HPUX_IA64_MODE="32"
4035       ;;
4036     *ELF-64*)
4037       HPUX_IA64_MODE="64"
4038       ;;
4039     esac
4040   fi
4041   rm -rf conftest*
4042   ;;
4043 *-*-irix6*)
4044   # Find out which ABI we are using.
4045   echo '#line 4045 "configure"' > conftest.$ac_ext
4046   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4047   (eval $ac_compile) 2>&5
4048   ac_status=$?
4049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050   (exit $ac_status); }; then
4051    if test "$lt_cv_prog_gnu_ld" = yes; then
4052     case `/usr/bin/file conftest.$ac_objext` in
4053     *32-bit*)
4054       LD="${LD-ld} -melf32bsmip"
4055       ;;
4056     *N32*)
4057       LD="${LD-ld} -melf32bmipn32"
4058       ;;
4059     *64-bit*)
4060       LD="${LD-ld} -melf64bmip"
4061       ;;
4062     esac
4063    else
4064     case `/usr/bin/file conftest.$ac_objext` in
4065     *32-bit*)
4066       LD="${LD-ld} -32"
4067       ;;
4068     *N32*)
4069       LD="${LD-ld} -n32"
4070       ;;
4071     *64-bit*)
4072       LD="${LD-ld} -64"
4073       ;;
4074     esac
4075    fi
4076   fi
4077   rm -rf conftest*
4078   ;;
4079
4080 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4081   # Find out which ABI we are using.
4082   echo 'int i;' > conftest.$ac_ext
4083   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4084   (eval $ac_compile) 2>&5
4085   ac_status=$?
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); }; then
4088     case "`/usr/bin/file conftest.o`" in
4089     *32-bit*)
4090       case $host in
4091         x86_64-*linux*)
4092           LD="${LD-ld} -m elf_i386"
4093           ;;
4094         ppc64-*linux*)
4095           LD="${LD-ld} -m elf32ppclinux"
4096           ;;
4097         s390x-*linux*)
4098           LD="${LD-ld} -m elf_s390"
4099           ;;
4100         sparc64-*linux*)
4101           LD="${LD-ld} -m elf32_sparc"
4102           ;;
4103       esac
4104       ;;
4105     *64-bit*)
4106       case $host in
4107         x86_64-*linux*)
4108           LD="${LD-ld} -m elf_x86_64"
4109           ;;
4110         ppc*-*linux*|powerpc*-*linux*)
4111           LD="${LD-ld} -m elf64ppc"
4112           ;;
4113         s390*-*linux*)
4114           LD="${LD-ld} -m elf64_s390"
4115           ;;
4116         sparc*-*linux*)
4117           LD="${LD-ld} -m elf64_sparc"
4118           ;;
4119       esac
4120       ;;
4121     esac
4122   fi
4123   rm -rf conftest*
4124   ;;
4125
4126 *-*-sco3.2v5*)
4127   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4128   SAVE_CFLAGS="$CFLAGS"
4129   CFLAGS="$CFLAGS -belf"
4130   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4131 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4132 if test "${lt_cv_cc_needs_belf+set}" = set; then
4133   echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135   ac_ext=c
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140
4141      cat >conftest.$ac_ext <<_ACEOF
4142 #line $LINENO "configure"
4143 /* confdefs.h.  */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h.  */
4148
4149 int
4150 main ()
4151 {
4152
4153   ;
4154   return 0;
4155 }
4156 _ACEOF
4157 rm -f conftest.$ac_objext conftest$ac_exeext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159   (eval $ac_link) 2>&5
4160   ac_status=$?
4161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162   (exit $ac_status); } &&
4163          { ac_try='test -s conftest$ac_exeext'
4164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165   (eval $ac_try) 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); }; }; then
4169   lt_cv_cc_needs_belf=yes
4170 else
4171   echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 lt_cv_cc_needs_belf=no
4175 fi
4176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4177      ac_ext=c
4178 ac_cpp='$CPP $CPPFLAGS'
4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182
4183 fi
4184 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4185 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4186   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4187     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4188     CFLAGS="$SAVE_CFLAGS"
4189   fi
4190   ;;
4191
4192 esac
4193
4194 need_locks="$enable_libtool_lock"
4195
4196
4197
4198 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4199 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4200 if test "${ac_cv_header_stdc+set}" = set; then
4201   echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203   cat >conftest.$ac_ext <<_ACEOF
4204 #line $LINENO "configure"
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 #include <stdlib.h>
4211 #include <stdarg.h>
4212 #include <string.h>
4213 #include <float.h>
4214
4215 int
4216 main ()
4217 {
4218
4219   ;
4220   return 0;
4221 }
4222 _ACEOF
4223 rm -f conftest.$ac_objext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225   (eval $ac_compile) 2>&5
4226   ac_status=$?
4227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228   (exit $ac_status); } &&
4229          { ac_try='test -s conftest.$ac_objext'
4230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231   (eval $ac_try) 2>&5
4232   ac_status=$?
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); }; }; then
4235   ac_cv_header_stdc=yes
4236 else
4237   echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4239
4240 ac_cv_header_stdc=no
4241 fi
4242 rm -f conftest.$ac_objext conftest.$ac_ext
4243
4244 if test $ac_cv_header_stdc = yes; then
4245   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4246   cat >conftest.$ac_ext <<_ACEOF
4247 #line $LINENO "configure"
4248 /* confdefs.h.  */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h.  */
4253 #include <string.h>
4254
4255 _ACEOF
4256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257   $EGREP "memchr" >/dev/null 2>&1; then
4258   :
4259 else
4260   ac_cv_header_stdc=no
4261 fi
4262 rm -f conftest*
4263
4264 fi
4265
4266 if test $ac_cv_header_stdc = yes; then
4267   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4268   cat >conftest.$ac_ext <<_ACEOF
4269 #line $LINENO "configure"
4270 /* confdefs.h.  */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h.  */
4275 #include <stdlib.h>
4276
4277 _ACEOF
4278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4279   $EGREP "free" >/dev/null 2>&1; then
4280   :
4281 else
4282   ac_cv_header_stdc=no
4283 fi
4284 rm -f conftest*
4285
4286 fi
4287
4288 if test $ac_cv_header_stdc = yes; then
4289   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4290   if test "$cross_compiling" = yes; then
4291   :
4292 else
4293   cat >conftest.$ac_ext <<_ACEOF
4294 #line $LINENO "configure"
4295 /* confdefs.h.  */
4296 _ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h.  */
4300 #include <ctype.h>
4301 #if ((' ' & 0x0FF) == 0x020)
4302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4304 #else
4305 # define ISLOWER(c) \
4306                    (('a' <= (c) && (c) <= 'i') \
4307                      || ('j' <= (c) && (c) <= 'r') \
4308                      || ('s' <= (c) && (c) <= 'z'))
4309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4310 #endif
4311
4312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4313 int
4314 main ()
4315 {
4316   int i;
4317   for (i = 0; i < 256; i++)
4318     if (XOR (islower (i), ISLOWER (i))
4319         || toupper (i) != TOUPPER (i))
4320       exit(2);
4321   exit (0);
4322 }
4323 _ACEOF
4324 rm -f conftest$ac_exeext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4326   (eval $ac_link) 2>&5
4327   ac_status=$?
4328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331   (eval $ac_try) 2>&5
4332   ac_status=$?
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); }; }; then
4335   :
4336 else
4337   echo "$as_me: program exited with status $ac_status" >&5
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4340
4341 ( exit $ac_status )
4342 ac_cv_header_stdc=no
4343 fi
4344 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4345 fi
4346 fi
4347 fi
4348 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4349 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4350 if test $ac_cv_header_stdc = yes; then
4351
4352 cat >>confdefs.h <<\_ACEOF
4353 #define STDC_HEADERS 1
4354 _ACEOF
4355
4356 fi
4357
4358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4369                   inttypes.h stdint.h unistd.h
4370 do
4371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4372 echo "$as_me:$LINENO: checking for $ac_header" >&5
4373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4375   echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377   cat >conftest.$ac_ext <<_ACEOF
4378 #line $LINENO "configure"
4379 /* confdefs.h.  */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h.  */
4384 $ac_includes_default
4385
4386 #include <$ac_header>
4387 _ACEOF
4388 rm -f conftest.$ac_objext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390   (eval $ac_compile) 2>&5
4391   ac_status=$?
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); } &&
4394          { ac_try='test -s conftest.$ac_objext'
4395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396   (eval $ac_try) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; }; then
4400   eval "$as_ac_Header=yes"
4401 else
4402   echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4404
4405 eval "$as_ac_Header=no"
4406 fi
4407 rm -f conftest.$ac_objext conftest.$ac_ext
4408 fi
4409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4412   cat >>confdefs.h <<_ACEOF
4413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4414 _ACEOF
4415
4416 fi
4417
4418 done
4419
4420
4421
4422 for ac_header in dlfcn.h
4423 do
4424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4426   echo "$as_me:$LINENO: checking for $ac_header" >&5
4427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4429   echo $ECHO_N "(cached) $ECHO_C" >&6
4430 fi
4431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4433 else
4434   # Is the header compilable?
4435 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4437 cat >conftest.$ac_ext <<_ACEOF
4438 #line $LINENO "configure"
4439 /* confdefs.h.  */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h.  */
4444 $ac_includes_default
4445 #include <$ac_header>
4446 _ACEOF
4447 rm -f conftest.$ac_objext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449   (eval $ac_compile) 2>&5
4450   ac_status=$?
4451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452   (exit $ac_status); } &&
4453          { ac_try='test -s conftest.$ac_objext'
4454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455   (eval $ac_try) 2>&5
4456   ac_status=$?
4457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458   (exit $ac_status); }; }; then
4459   ac_header_compiler=yes
4460 else
4461   echo "$as_me: failed program was:" >&5
4462 sed 's/^/| /' conftest.$ac_ext >&5
4463
4464 ac_header_compiler=no
4465 fi
4466 rm -f conftest.$ac_objext conftest.$ac_ext
4467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4468 echo "${ECHO_T}$ac_header_compiler" >&6
4469
4470 # Is the header present?
4471 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4473 cat >conftest.$ac_ext <<_ACEOF
4474 #line $LINENO "configure"
4475 /* confdefs.h.  */
4476 _ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h.  */
4480 #include <$ac_header>
4481 _ACEOF
4482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4484   ac_status=$?
4485   grep -v '^ *+' conftest.er1 >conftest.err
4486   rm -f conftest.er1
4487   cat conftest.err >&5
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); } >/dev/null; then
4490   if test -s conftest.err; then
4491     ac_cpp_err=$ac_c_preproc_warn_flag
4492   else
4493     ac_cpp_err=
4494   fi
4495 else
4496   ac_cpp_err=yes
4497 fi
4498 if test -z "$ac_cpp_err"; then
4499   ac_header_preproc=yes
4500 else
4501   echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504   ac_header_preproc=no
4505 fi
4506 rm -f conftest.err conftest.$ac_ext
4507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4508 echo "${ECHO_T}$ac_header_preproc" >&6
4509
4510 # So?  What about this header?
4511 case $ac_header_compiler:$ac_header_preproc in
4512   yes:no )
4513     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4517     (
4518       cat <<\_ASBOX
4519 ## ------------------------------------ ##
4520 ## Report this to bug-autoconf@gnu.org. ##
4521 ## ------------------------------------ ##
4522 _ASBOX
4523     ) |
4524       sed "s/^/$as_me: WARNING:     /" >&2
4525     ;;
4526   no:yes )
4527     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4529     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4533     (
4534       cat <<\_ASBOX
4535 ## ------------------------------------ ##
4536 ## Report this to bug-autoconf@gnu.org. ##
4537 ## ------------------------------------ ##
4538 _ASBOX
4539     ) |
4540       sed "s/^/$as_me: WARNING:     /" >&2
4541     ;;
4542 esac
4543 echo "$as_me:$LINENO: checking for $ac_header" >&5
4544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4546   echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548   eval "$as_ac_Header=$ac_header_preproc"
4549 fi
4550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4552
4553 fi
4554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4555   cat >>confdefs.h <<_ACEOF
4556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4557 _ACEOF
4558
4559 fi
4560
4561 done
4562
4563 ac_ext=cc
4564 ac_cpp='$CXXCPP $CPPFLAGS'
4565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4568 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4569 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4570 if test -z "$CXXCPP"; then
4571   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4572   echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574       # Double quotes because CXXCPP needs to be expanded
4575     for CXXCPP in "$CXX -E" "/lib/cpp"
4576     do
4577       ac_preproc_ok=false
4578 for ac_cxx_preproc_warn_flag in '' yes
4579 do
4580   # Use a header file that comes with gcc, so configuring glibc
4581   # with a fresh cross-compiler works.
4582   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4583   # <limits.h> exists even on freestanding compilers.
4584   # On the NeXT, cc -E runs the code through the compiler's parser,
4585   # not just through cpp. "Syntax error" is here to catch this case.
4586   cat >conftest.$ac_ext <<_ACEOF
4587 #line $LINENO "configure"
4588 /* confdefs.h.  */
4589 _ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h.  */
4593 #ifdef __STDC__
4594 # include <limits.h>
4595 #else
4596 # include <assert.h>
4597 #endif
4598                      Syntax error
4599 _ACEOF
4600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4601   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4602   ac_status=$?
4603   grep -v '^ *+' conftest.er1 >conftest.err
4604   rm -f conftest.er1
4605   cat conftest.err >&5
4606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); } >/dev/null; then
4608   if test -s conftest.err; then
4609     ac_cpp_err=$ac_cxx_preproc_warn_flag
4610   else
4611     ac_cpp_err=
4612   fi
4613 else
4614   ac_cpp_err=yes
4615 fi
4616 if test -z "$ac_cpp_err"; then
4617   :
4618 else
4619   echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622   # Broken: fails on valid input.
4623 continue
4624 fi
4625 rm -f conftest.err conftest.$ac_ext
4626
4627   # OK, works on sane cases.  Now check whether non-existent headers
4628   # can be detected and how.
4629   cat >conftest.$ac_ext <<_ACEOF
4630 #line $LINENO "configure"
4631 /* confdefs.h.  */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h.  */
4636 #include <ac_nonexistent.h>
4637 _ACEOF
4638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4639   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4640   ac_status=$?
4641   grep -v '^ *+' conftest.er1 >conftest.err
4642   rm -f conftest.er1
4643   cat conftest.err >&5
4644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645   (exit $ac_status); } >/dev/null; then
4646   if test -s conftest.err; then
4647     ac_cpp_err=$ac_cxx_preproc_warn_flag
4648   else
4649     ac_cpp_err=
4650   fi
4651 else
4652   ac_cpp_err=yes
4653 fi
4654 if test -z "$ac_cpp_err"; then
4655   # Broken: success on invalid input.
4656 continue
4657 else
4658   echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4660
4661   # Passes both tests.
4662 ac_preproc_ok=:
4663 break
4664 fi
4665 rm -f conftest.err conftest.$ac_ext
4666
4667 done
4668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4669 rm -f conftest.err conftest.$ac_ext
4670 if $ac_preproc_ok; then
4671   break
4672 fi
4673
4674     done
4675     ac_cv_prog_CXXCPP=$CXXCPP
4676
4677 fi
4678   CXXCPP=$ac_cv_prog_CXXCPP
4679 else
4680   ac_cv_prog_CXXCPP=$CXXCPP
4681 fi
4682 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4683 echo "${ECHO_T}$CXXCPP" >&6
4684 ac_preproc_ok=false
4685 for ac_cxx_preproc_warn_flag in '' yes
4686 do
4687   # Use a header file that comes with gcc, so configuring glibc
4688   # with a fresh cross-compiler works.
4689   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4690   # <limits.h> exists even on freestanding compilers.
4691   # On the NeXT, cc -E runs the code through the compiler's parser,
4692   # not just through cpp. "Syntax error" is here to catch this case.
4693   cat >conftest.$ac_ext <<_ACEOF
4694 #line $LINENO "configure"
4695 /* confdefs.h.  */
4696 _ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h.  */
4700 #ifdef __STDC__
4701 # include <limits.h>
4702 #else
4703 # include <assert.h>
4704 #endif
4705                      Syntax error
4706 _ACEOF
4707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4708   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4709   ac_status=$?
4710   grep -v '^ *+' conftest.er1 >conftest.err
4711   rm -f conftest.er1
4712   cat conftest.err >&5
4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); } >/dev/null; then
4715   if test -s conftest.err; then
4716     ac_cpp_err=$ac_cxx_preproc_warn_flag
4717   else
4718     ac_cpp_err=
4719   fi
4720 else
4721   ac_cpp_err=yes
4722 fi
4723 if test -z "$ac_cpp_err"; then
4724   :
4725 else
4726   echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4728
4729   # Broken: fails on valid input.
4730 continue
4731 fi
4732 rm -f conftest.err conftest.$ac_ext
4733
4734   # OK, works on sane cases.  Now check whether non-existent headers
4735   # can be detected and how.
4736   cat >conftest.$ac_ext <<_ACEOF
4737 #line $LINENO "configure"
4738 /* confdefs.h.  */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h.  */
4743 #include <ac_nonexistent.h>
4744 _ACEOF
4745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4746   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4747   ac_status=$?
4748   grep -v '^ *+' conftest.er1 >conftest.err
4749   rm -f conftest.er1
4750   cat conftest.err >&5
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); } >/dev/null; then
4753   if test -s conftest.err; then
4754     ac_cpp_err=$ac_cxx_preproc_warn_flag
4755   else
4756     ac_cpp_err=
4757   fi
4758 else
4759   ac_cpp_err=yes
4760 fi
4761 if test -z "$ac_cpp_err"; then
4762   # Broken: success on invalid input.
4763 continue
4764 else
4765   echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4767
4768   # Passes both tests.
4769 ac_preproc_ok=:
4770 break
4771 fi
4772 rm -f conftest.err conftest.$ac_ext
4773
4774 done
4775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4776 rm -f conftest.err conftest.$ac_ext
4777 if $ac_preproc_ok; then
4778   :
4779 else
4780   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4781 See \`config.log' for more details." >&5
4782 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4783 See \`config.log' for more details." >&2;}
4784    { (exit 1); exit 1; }; }
4785 fi
4786
4787 ac_ext=cc
4788 ac_cpp='$CXXCPP $CPPFLAGS'
4789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4792
4793
4794 ac_ext=f
4795 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4796 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4798 if test -n "$ac_tool_prefix"; then
4799   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4800   do
4801     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4803 echo "$as_me:$LINENO: checking for $ac_word" >&5
4804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4805 if test "${ac_cv_prog_F77+set}" = set; then
4806   echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808   if test -n "$F77"; then
4809   ac_cv_prog_F77="$F77" # Let the user override the test.
4810 else
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4813 do
4814   IFS=$as_save_IFS
4815   test -z "$as_dir" && as_dir=.
4816   for ac_exec_ext in '' $ac_executable_extensions; do
4817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4818     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4820     break 2
4821   fi
4822 done
4823 done
4824
4825 fi
4826 fi
4827 F77=$ac_cv_prog_F77
4828 if test -n "$F77"; then
4829   echo "$as_me:$LINENO: result: $F77" >&5
4830 echo "${ECHO_T}$F77" >&6
4831 else
4832   echo "$as_me:$LINENO: result: no" >&5
4833 echo "${ECHO_T}no" >&6
4834 fi
4835
4836     test -n "$F77" && break
4837   done
4838 fi
4839 if test -z "$F77"; then
4840   ac_ct_F77=$F77
4841   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4842 do
4843   # Extract the first word of "$ac_prog", so it can be a program name with args.
4844 set dummy $ac_prog; ac_word=$2
4845 echo "$as_me:$LINENO: checking for $ac_word" >&5
4846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4847 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4848   echo $ECHO_N "(cached) $ECHO_C" >&6
4849 else
4850   if test -n "$ac_ct_F77"; then
4851   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4852 else
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4855 do
4856   IFS=$as_save_IFS
4857   test -z "$as_dir" && as_dir=.
4858   for ac_exec_ext in '' $ac_executable_extensions; do
4859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860     ac_cv_prog_ac_ct_F77="$ac_prog"
4861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4862     break 2
4863   fi
4864 done
4865 done
4866
4867 fi
4868 fi
4869 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4870 if test -n "$ac_ct_F77"; then
4871   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4872 echo "${ECHO_T}$ac_ct_F77" >&6
4873 else
4874   echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6
4876 fi
4877
4878   test -n "$ac_ct_F77" && break
4879 done
4880
4881   F77=$ac_ct_F77
4882 fi
4883
4884
4885 # Provide some information about the compiler.
4886 echo "$as_me:4886:" \
4887      "checking for Fortran 77 compiler version" >&5
4888 ac_compiler=`set X $ac_compile; echo $2`
4889 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4890   (eval $ac_compiler --version </dev/null >&5) 2>&5
4891   ac_status=$?
4892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); }
4894 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4895   (eval $ac_compiler -v </dev/null >&5) 2>&5
4896   ac_status=$?
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); }
4899 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4900   (eval $ac_compiler -V </dev/null >&5) 2>&5
4901   ac_status=$?
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); }
4904
4905 # If we don't use `.F' as extension, the preprocessor is not run on the
4906 # input file.
4907 ac_save_ext=$ac_ext
4908 ac_ext=F
4909 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4910 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4911 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4912   echo $ECHO_N "(cached) $ECHO_C" >&6
4913 else
4914   cat >conftest.$ac_ext <<_ACEOF
4915       program main
4916 #ifndef __GNUC__
4917        choke me
4918 #endif
4919
4920       end
4921 _ACEOF
4922 rm -f conftest.$ac_objext
4923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924   (eval $ac_compile) 2>&5
4925   ac_status=$?
4926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927   (exit $ac_status); } &&
4928          { ac_try='test -s conftest.$ac_objext'
4929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930   (eval $ac_try) 2>&5
4931   ac_status=$?
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); }; }; then
4934   ac_compiler_gnu=yes
4935 else
4936   echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4938
4939 ac_compiler_gnu=no
4940 fi
4941 rm -f conftest.$ac_objext conftest.$ac_ext
4942 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4943
4944 fi
4945 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4946 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4947 ac_ext=$ac_save_ext
4948 G77=`test $ac_compiler_gnu = yes && echo yes`
4949 ac_test_FFLAGS=${FFLAGS+set}
4950 ac_save_FFLAGS=$FFLAGS
4951 FFLAGS=
4952 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4953 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4954 if test "${ac_cv_prog_f77_g+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   FFLAGS=-g
4958 cat >conftest.$ac_ext <<_ACEOF
4959       program main
4960
4961       end
4962 _ACEOF
4963 rm -f conftest.$ac_objext
4964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4965   (eval $ac_compile) 2>&5
4966   ac_status=$?
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); } &&
4969          { ac_try='test -s conftest.$ac_objext'
4970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971   (eval $ac_try) 2>&5
4972   ac_status=$?
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); }; }; then
4975   ac_cv_prog_f77_g=yes
4976 else
4977   echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4979
4980 ac_cv_prog_f77_g=no
4981 fi
4982 rm -f conftest.$ac_objext conftest.$ac_ext
4983
4984 fi
4985 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4986 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4987 if test "$ac_test_FFLAGS" = set; then
4988   FFLAGS=$ac_save_FFLAGS
4989 elif test $ac_cv_prog_f77_g = yes; then
4990   if test "$G77" = yes; then
4991     FFLAGS="-g -O2"
4992   else
4993     FFLAGS="-g"
4994   fi
4995 else
4996   if test "$G77" = yes; then
4997     FFLAGS="-O2"
4998   else
4999     FFLAGS=
5000   fi
5001 fi
5002 ac_ext=c
5003 ac_cpp='$CPP $CPPFLAGS'
5004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5007
5008
5009
5010 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5011
5012 # find the maximum length of command line arguments
5013 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5014 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5015 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018     i=0
5019   testring="ABCD"
5020
5021   case $build_os in
5022   msdosdjgpp*)
5023     # On DJGPP, this test can blow up pretty badly due to problems in libc
5024     # (any single argument exceeding 2000 bytes causes a buffer overrun
5025     # during glob expansion).  Even if it were fixed, the result of this
5026     # check would be larger than it should be.
5027     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5028     ;;
5029
5030   gnu*)
5031     # Under GNU Hurd, this test is not required because there is
5032     # no limit to the length of command line arguments.
5033     # Libtool will interpret -1 as no limit whatsoever
5034     lt_cv_sys_max_cmd_len=-1;
5035     ;;
5036
5037   cygwin* | mingw*)
5038     # On Win9x/ME, this test blows up -- it succeeds, but takes
5039     # about 5 minutes as the teststring grows exponentially.
5040     # Worse, since 9x/ME are not pre-emptively multitasking,
5041     # you end up with a "frozen" computer, even though with patience
5042     # the test eventually succeeds (with a max line length of 256k).
5043     # Instead, let's just punt: use the minimum linelength reported by
5044     # all of the supported platforms: 8192 (on NT/2K/XP).
5045     lt_cv_sys_max_cmd_len=8192;
5046     ;;
5047
5048  *)
5049     # If test is not a shell built-in, we'll probably end up computing a
5050     # maximum length that is only half of the actual maximum length, but
5051     # we can't tell.
5052     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5053                = "XX$testring") >/dev/null 2>&1 &&
5054             new_result=`expr "X$testring" : ".*" 2>&1` &&
5055             lt_cv_sys_max_cmd_len=$new_result &&
5056             test $i != 17 # 1/2 MB should be enough
5057     do
5058       i=`expr $i + 1`
5059       testring=$testring$testring
5060     done
5061     testring=
5062     # Add a significant safety factor because C++ compilers can tack on massive
5063     # amounts of additional arguments before passing them to the linker.
5064     # It appears as though 1/2 is a usable value.
5065     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5066     ;;
5067   esac
5068
5069 fi
5070
5071 if test -n $lt_cv_sys_max_cmd_len ; then
5072   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5073 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5074 else
5075   echo "$as_me:$LINENO: result: none" >&5
5076 echo "${ECHO_T}none" >&6
5077 fi
5078
5079
5080
5081
5082 # Check for command to grab the raw symbol name followed by C symbol from nm.
5083 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5084 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5085 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5086   echo $ECHO_N "(cached) $ECHO_C" >&6
5087 else
5088
5089 # These are sane defaults that work on at least a few old systems.
5090 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5091
5092 # Character class describing NM global symbol codes.
5093 symcode='[BCDEGRST]'
5094
5095 # Regexp to match symbols that can be accessed directly from C.
5096 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5097
5098 # Transform the above into a raw symbol and a C symbol.
5099 symxfrm='\1 \2\3 \3'
5100
5101 # Transform an extracted symbol line into a proper C declaration
5102 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5103
5104 # Transform an extracted symbol line into symbol name and symbol address
5105 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'"
5106
5107 # Define system-specific variables.
5108 case $host_os in
5109 aix*)
5110   symcode='[BCDT]'
5111   ;;
5112 cygwin* | mingw* | pw32*)
5113   symcode='[ABCDGISTW]'
5114   ;;
5115 hpux*) # Its linker distinguishes data from code symbols
5116   if test "$host_cpu" = ia64; then
5117     symcode='[ABCDEGRST]'
5118   fi
5119   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5120   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'"
5121   ;;
5122 irix* | nonstopux*)
5123   symcode='[BCDEGRST]'
5124   ;;
5125 osf*)
5126   symcode='[BCDEGQRST]'
5127   ;;
5128 solaris* | sysv5*)
5129   symcode='[BDT]'
5130   ;;
5131 sysv4)
5132   symcode='[DFNSTU]'
5133   ;;
5134 esac
5135
5136 # Handle CRLF in mingw tool chain
5137 opt_cr=
5138 case $build_os in
5139 mingw*)
5140   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5141   ;;
5142 esac
5143
5144 # If we're using GNU nm, then use its standard symbol codes.
5145 case `$NM -V 2>&1` in
5146 *GNU* | *'with BFD'*)
5147   symcode='[ABCDGISTW]' ;;
5148 esac
5149
5150 # Try without a prefix undercore, then with it.
5151 for ac_symprfx in "" "_"; do
5152
5153   # Write the raw and C identifiers.
5154   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5155
5156   # Check to see that the pipe works correctly.
5157   pipe_works=no
5158
5159   rm -f conftest*
5160   cat > conftest.$ac_ext <<EOF
5161 #ifdef __cplusplus
5162 extern "C" {
5163 #endif
5164 char nm_test_var;
5165 void nm_test_func(){}
5166 #ifdef __cplusplus
5167 }
5168 #endif
5169 int main(){nm_test_var='a';nm_test_func();return(0);}
5170 EOF
5171
5172   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5173   (eval $ac_compile) 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }; then
5177     # Now try to grab the symbols.
5178     nlist=conftest.nm
5179     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5180   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5181   ac_status=$?
5182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183   (exit $ac_status); } && test -s "$nlist"; then
5184       # Try sorting and uniquifying the output.
5185       if sort "$nlist" | uniq > "$nlist"T; then
5186         mv -f "$nlist"T "$nlist"
5187       else
5188         rm -f "$nlist"T
5189       fi
5190
5191       # Make sure that we snagged all the symbols we need.
5192       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5193         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5194           cat <<EOF > conftest.$ac_ext
5195 #ifdef __cplusplus
5196 extern "C" {
5197 #endif
5198
5199 EOF
5200           # Now generate the symbol file.
5201           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5202
5203           cat <<EOF >> conftest.$ac_ext
5204 #if defined (__STDC__) && __STDC__
5205 # define lt_ptr_t void *
5206 #else
5207 # define lt_ptr_t char *
5208 # define const
5209 #endif
5210
5211 /* The mapping between symbol names and symbols. */
5212 const struct {
5213   const char *name;
5214   lt_ptr_t address;
5215 }
5216 lt_preloaded_symbols[] =
5217 {
5218 EOF
5219           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5220           cat <<\EOF >> conftest.$ac_ext
5221   {0, (lt_ptr_t) 0}
5222 };
5223
5224 #ifdef __cplusplus
5225 }
5226 #endif
5227 EOF
5228           # Now try linking the two files.
5229           mv conftest.$ac_objext conftstm.$ac_objext
5230           lt_save_LIBS="$LIBS"
5231           lt_save_CFLAGS="$CFLAGS"
5232           LIBS="conftstm.$ac_objext"
5233           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5234           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5235   (eval $ac_link) 2>&5
5236   ac_status=$?
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5239             pipe_works=yes
5240           fi
5241           LIBS="$lt_save_LIBS"
5242           CFLAGS="$lt_save_CFLAGS"
5243         else
5244           echo "cannot find nm_test_func in $nlist" >&5
5245         fi
5246       else
5247         echo "cannot find nm_test_var in $nlist" >&5
5248       fi
5249     else
5250       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5251     fi
5252   else
5253     echo "$progname: failed program was:" >&5
5254     cat conftest.$ac_ext >&5
5255   fi
5256   rm -f conftest* conftst*
5257
5258   # Do not use the global_symbol_pipe unless it works.
5259   if test "$pipe_works" = yes; then
5260     break
5261   else
5262     lt_cv_sys_global_symbol_pipe=
5263   fi
5264 done
5265
5266 fi
5267
5268 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5269   lt_cv_sys_global_symbol_to_cdecl=
5270 fi
5271 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5272   echo "$as_me:$LINENO: result: failed" >&5
5273 echo "${ECHO_T}failed" >&6
5274 else
5275   echo "$as_me:$LINENO: result: ok" >&5
5276 echo "${ECHO_T}ok" >&6
5277 fi
5278
5279 echo "$as_me:$LINENO: checking for objdir" >&5
5280 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5281 if test "${lt_cv_objdir+set}" = set; then
5282   echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284   rm -f .libs 2>/dev/null
5285 mkdir .libs 2>/dev/null
5286 if test -d .libs; then
5287   lt_cv_objdir=.libs
5288 else
5289   # MS-DOS does not allow filenames that begin with a dot.
5290   lt_cv_objdir=_libs
5291 fi
5292 rmdir .libs 2>/dev/null
5293 fi
5294 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5295 echo "${ECHO_T}$lt_cv_objdir" >&6
5296 objdir=$lt_cv_objdir
5297
5298
5299
5300
5301
5302 case $host_os in
5303 aix3*)
5304   # AIX sometimes has problems with the GCC collect2 program.  For some
5305   # reason, if we set the COLLECT_NAMES environment variable, the problems
5306   # vanish in a puff of smoke.
5307   if test "X${COLLECT_NAMES+set}" != Xset; then
5308     COLLECT_NAMES=
5309     export COLLECT_NAMES
5310   fi
5311   ;;
5312 esac
5313
5314 # Sed substitution that helps us do robust quoting.  It backslashifies
5315 # metacharacters that are still active within double-quoted strings.
5316 Xsed='sed -e s/^X//'
5317 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5318
5319 # Same as above, but do not quote variable references.
5320 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5321
5322 # Sed substitution to delay expansion of an escaped shell variable in a
5323 # double_quote_subst'ed string.
5324 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5325
5326 # Sed substitution to avoid accidental globbing in evaled expressions
5327 no_glob_subst='s/\*/\\\*/g'
5328
5329 # Constants:
5330 rm="rm -f"
5331
5332 # Global variables:
5333 default_ofile=mklib
5334 can_build_shared=yes
5335
5336 # All known linkers require a `.a' archive for static linking (except M$VC,
5337 # which needs '.lib').
5338 libext=a
5339 ltmain="$ac_aux_dir/ltmain.sh"
5340 ofile="$default_ofile"
5341 with_gnu_ld="$lt_cv_prog_gnu_ld"
5342
5343 if test -n "$ac_tool_prefix"; then
5344   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5345 set dummy ${ac_tool_prefix}ar; ac_word=$2
5346 echo "$as_me:$LINENO: checking for $ac_word" >&5
5347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5348 if test "${ac_cv_prog_AR+set}" = set; then
5349   echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351   if test -n "$AR"; then
5352   ac_cv_prog_AR="$AR" # Let the user override the test.
5353 else
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5356 do
5357   IFS=$as_save_IFS
5358   test -z "$as_dir" && as_dir=.
5359   for ac_exec_ext in '' $ac_executable_extensions; do
5360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361     ac_cv_prog_AR="${ac_tool_prefix}ar"
5362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363     break 2
5364   fi
5365 done
5366 done
5367
5368 fi
5369 fi
5370 AR=$ac_cv_prog_AR
5371 if test -n "$AR"; then
5372   echo "$as_me:$LINENO: result: $AR" >&5
5373 echo "${ECHO_T}$AR" >&6
5374 else
5375   echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6
5377 fi
5378
5379 fi
5380 if test -z "$ac_cv_prog_AR"; then
5381   ac_ct_AR=$AR
5382   # Extract the first word of "ar", so it can be a program name with args.
5383 set dummy ar; ac_word=$2
5384 echo "$as_me:$LINENO: checking for $ac_word" >&5
5385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5386 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5387   echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389   if test -n "$ac_ct_AR"; then
5390   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5391 else
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH
5394 do
5395   IFS=$as_save_IFS
5396   test -z "$as_dir" && as_dir=.
5397   for ac_exec_ext in '' $ac_executable_extensions; do
5398   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5399     ac_cv_prog_ac_ct_AR="ar"
5400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5401     break 2
5402   fi
5403 done
5404 done
5405
5406   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5407 fi
5408 fi
5409 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5410 if test -n "$ac_ct_AR"; then
5411   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5412 echo "${ECHO_T}$ac_ct_AR" >&6
5413 else
5414   echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5416 fi
5417
5418   AR=$ac_ct_AR
5419 else
5420   AR="$ac_cv_prog_AR"
5421 fi
5422
5423 if test -n "$ac_tool_prefix"; then
5424   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5425 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5426 echo "$as_me:$LINENO: checking for $ac_word" >&5
5427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5428 if test "${ac_cv_prog_RANLIB+set}" = set; then
5429   echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431   if test -n "$RANLIB"; then
5432   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5433 else
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5436 do
5437   IFS=$as_save_IFS
5438   test -z "$as_dir" && as_dir=.
5439   for ac_exec_ext in '' $ac_executable_extensions; do
5440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443     break 2
5444   fi
5445 done
5446 done
5447
5448 fi
5449 fi
5450 RANLIB=$ac_cv_prog_RANLIB
5451 if test -n "$RANLIB"; then
5452   echo "$as_me:$LINENO: result: $RANLIB" >&5
5453 echo "${ECHO_T}$RANLIB" >&6
5454 else
5455   echo "$as_me:$LINENO: result: no" >&5
5456 echo "${ECHO_T}no" >&6
5457 fi
5458
5459 fi
5460 if test -z "$ac_cv_prog_RANLIB"; then
5461   ac_ct_RANLIB=$RANLIB
5462   # Extract the first word of "ranlib", so it can be a program name with args.
5463 set dummy ranlib; ac_word=$2
5464 echo "$as_me:$LINENO: checking for $ac_word" >&5
5465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5466 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5467   echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469   if test -n "$ac_ct_RANLIB"; then
5470   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5471 else
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH
5474 do
5475   IFS=$as_save_IFS
5476   test -z "$as_dir" && as_dir=.
5477   for ac_exec_ext in '' $ac_executable_extensions; do
5478   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479     ac_cv_prog_ac_ct_RANLIB="ranlib"
5480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5481     break 2
5482   fi
5483 done
5484 done
5485
5486   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5487 fi
5488 fi
5489 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5490 if test -n "$ac_ct_RANLIB"; then
5491   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5492 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5493 else
5494   echo "$as_me:$LINENO: result: no" >&5
5495 echo "${ECHO_T}no" >&6
5496 fi
5497
5498   RANLIB=$ac_ct_RANLIB
5499 else
5500   RANLIB="$ac_cv_prog_RANLIB"
5501 fi
5502
5503 if test -n "$ac_tool_prefix"; then
5504   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5505 set dummy ${ac_tool_prefix}strip; ac_word=$2
5506 echo "$as_me:$LINENO: checking for $ac_word" >&5
5507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5508 if test "${ac_cv_prog_STRIP+set}" = set; then
5509   echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511   if test -n "$STRIP"; then
5512   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
5517   IFS=$as_save_IFS
5518   test -z "$as_dir" && as_dir=.
5519   for ac_exec_ext in '' $ac_executable_extensions; do
5520   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5523     break 2
5524   fi
5525 done
5526 done
5527
5528 fi
5529 fi
5530 STRIP=$ac_cv_prog_STRIP
5531 if test -n "$STRIP"; then
5532   echo "$as_me:$LINENO: result: $STRIP" >&5
5533 echo "${ECHO_T}$STRIP" >&6
5534 else
5535   echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5537 fi
5538
5539 fi
5540 if test -z "$ac_cv_prog_STRIP"; then
5541   ac_ct_STRIP=$STRIP
5542   # Extract the first word of "strip", so it can be a program name with args.
5543 set dummy strip; ac_word=$2
5544 echo "$as_me:$LINENO: checking for $ac_word" >&5
5545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5546 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   if test -n "$ac_ct_STRIP"; then
5550   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5551 else
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5554 do
5555   IFS=$as_save_IFS
5556   test -z "$as_dir" && as_dir=.
5557   for ac_exec_ext in '' $ac_executable_extensions; do
5558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5559     ac_cv_prog_ac_ct_STRIP="strip"
5560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5561     break 2
5562   fi
5563 done
5564 done
5565
5566   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5567 fi
5568 fi
5569 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5570 if test -n "$ac_ct_STRIP"; then
5571   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5572 echo "${ECHO_T}$ac_ct_STRIP" >&6
5573 else
5574   echo "$as_me:$LINENO: result: no" >&5
5575 echo "${ECHO_T}no" >&6
5576 fi
5577
5578   STRIP=$ac_ct_STRIP
5579 else
5580   STRIP="$ac_cv_prog_STRIP"
5581 fi
5582
5583
5584 old_CC="$CC"
5585 old_CFLAGS="$CFLAGS"
5586
5587 # Set sane defaults for various variables
5588 test -z "$AR" && AR=ar
5589 test -z "$AR_FLAGS" && AR_FLAGS=cru
5590 test -z "$AS" && AS=as
5591 test -z "$CC" && CC=cc
5592 test -z "$LTCC" && LTCC=$CC
5593 test -z "$DLLTOOL" && DLLTOOL=dlltool
5594 test -z "$LD" && LD=ld
5595 test -z "$LN_S" && LN_S="ln -s"
5596 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5597 test -z "$NM" && NM=nm
5598 test -z "$SED" && SED=sed
5599 test -z "$OBJDUMP" && OBJDUMP=objdump
5600 test -z "$RANLIB" && RANLIB=:
5601 test -z "$STRIP" && STRIP=:
5602 test -z "$ac_objext" && ac_objext=o
5603
5604 # Determine commands to create old-style static archives.
5605 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5606 old_postinstall_cmds='chmod 644 $oldlib'
5607 old_postuninstall_cmds=
5608
5609 if test -n "$RANLIB"; then
5610   case $host_os in
5611   openbsd*)
5612     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5613     ;;
5614   *)
5615     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5616     ;;
5617   esac
5618   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5619 fi
5620
5621 # Only perform the check for file, if the check method requires it
5622 case $deplibs_check_method in
5623 file_magic*)
5624   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5625     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5626 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5627 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5628   echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630   case $MAGIC_CMD in
5631 [\\/*] |  ?:[\\/]*)
5632   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5633   ;;
5634 *)
5635   lt_save_MAGIC_CMD="$MAGIC_CMD"
5636   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5637   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5638   for ac_dir in $ac_dummy; do
5639     IFS="$lt_save_ifs"
5640     test -z "$ac_dir" && ac_dir=.
5641     if test -f $ac_dir/${ac_tool_prefix}file; then
5642       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5643       if test -n "$file_magic_test_file"; then
5644         case $deplibs_check_method in
5645         "file_magic "*)
5646           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5647           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5648           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5649             $EGREP "$file_magic_regex" > /dev/null; then
5650             :
5651           else
5652             cat <<EOF 1>&2
5653
5654 *** Warning: the command libtool uses to detect shared libraries,
5655 *** $file_magic_cmd, produces output that libtool cannot recognize.
5656 *** The result is that libtool may fail to recognize shared libraries
5657 *** as such.  This will affect the creation of libtool libraries that
5658 *** depend on shared libraries, but programs linked with such libtool
5659 *** libraries will work regardless of this problem.  Nevertheless, you
5660 *** may want to report the problem to your system manager and/or to
5661 *** bug-libtool@gnu.org
5662
5663 EOF
5664           fi ;;
5665         esac
5666       fi
5667       break
5668     fi
5669   done
5670   IFS="$lt_save_ifs"
5671   MAGIC_CMD="$lt_save_MAGIC_CMD"
5672   ;;
5673 esac
5674 fi
5675
5676 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5677 if test -n "$MAGIC_CMD"; then
5678   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5679 echo "${ECHO_T}$MAGIC_CMD" >&6
5680 else
5681   echo "$as_me:$LINENO: result: no" >&5
5682 echo "${ECHO_T}no" >&6
5683 fi
5684
5685 if test -z "$lt_cv_path_MAGIC_CMD"; then
5686   if test -n "$ac_tool_prefix"; then
5687     echo "$as_me:$LINENO: checking for file" >&5
5688 echo $ECHO_N "checking for file... $ECHO_C" >&6
5689 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5690   echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692   case $MAGIC_CMD in
5693 [\\/*] |  ?:[\\/]*)
5694   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5695   ;;
5696 *)
5697   lt_save_MAGIC_CMD="$MAGIC_CMD"
5698   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5699   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5700   for ac_dir in $ac_dummy; do
5701     IFS="$lt_save_ifs"
5702     test -z "$ac_dir" && ac_dir=.
5703     if test -f $ac_dir/file; then
5704       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5705       if test -n "$file_magic_test_file"; then
5706         case $deplibs_check_method in
5707         "file_magic "*)
5708           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5709           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5710           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5711             $EGREP "$file_magic_regex" > /dev/null; then
5712             :
5713           else
5714             cat <<EOF 1>&2
5715
5716 *** Warning: the command libtool uses to detect shared libraries,
5717 *** $file_magic_cmd, produces output that libtool cannot recognize.
5718 *** The result is that libtool may fail to recognize shared libraries
5719 *** as such.  This will affect the creation of libtool libraries that
5720 *** depend on shared libraries, but programs linked with such libtool
5721 *** libraries will work regardless of this problem.  Nevertheless, you
5722 *** may want to report the problem to your system manager and/or to
5723 *** bug-libtool@gnu.org
5724
5725 EOF
5726           fi ;;
5727         esac
5728       fi
5729       break
5730     fi
5731   done
5732   IFS="$lt_save_ifs"
5733   MAGIC_CMD="$lt_save_MAGIC_CMD"
5734   ;;
5735 esac
5736 fi
5737
5738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5739 if test -n "$MAGIC_CMD"; then
5740   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5741 echo "${ECHO_T}$MAGIC_CMD" >&6
5742 else
5743   echo "$as_me:$LINENO: result: no" >&5
5744 echo "${ECHO_T}no" >&6
5745 fi
5746
5747   else
5748     MAGIC_CMD=:
5749   fi
5750 fi
5751
5752   fi
5753   ;;
5754 esac
5755
5756 enable_dlopen=no
5757 enable_win32_dll=no
5758
5759 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5760 if test "${enable_libtool_lock+set}" = set; then
5761   enableval="$enable_libtool_lock"
5762
5763 fi;
5764 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5765
5766
5767 # Check whether --with-pic or --without-pic was given.
5768 if test "${with_pic+set}" = set; then
5769   withval="$with_pic"
5770   pic_mode="$withval"
5771 else
5772   pic_mode=default
5773 fi;
5774 test -z "$pic_mode" && pic_mode=default
5775
5776 # Use C for the default configuration in the libtool script
5777 tagname=
5778 lt_save_CC="$CC"
5779 ac_ext=c
5780 ac_cpp='$CPP $CPPFLAGS'
5781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5784
5785
5786 # Source file extension for C test sources.
5787 ac_ext=c
5788
5789 # Object file extension for compiled C test sources.
5790 objext=o
5791 objext=$objext
5792
5793 # Code to be used in simple compile tests
5794 lt_simple_compile_test_code="int some_variable = 0;\n"
5795
5796 # Code to be used in simple link tests
5797 lt_simple_link_test_code='int main(){return(0);}\n'
5798
5799
5800 # If no C compiler was specified, use CC.
5801 LTCC=${LTCC-"$CC"}
5802
5803 # Allow CC to be a program name with arguments.
5804 compiler=$CC
5805
5806
5807 #
5808 # Check for any special shared library compilation flags.
5809 #
5810 lt_prog_cc_shlib=
5811 if test "$GCC" = no; then
5812   case $host_os in
5813   sco3.2v5*)
5814     lt_prog_cc_shlib='-belf'
5815     ;;
5816   esac
5817 fi
5818 if test -n "$lt_prog_cc_shlib"; then
5819   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5820 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5821   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5822   else
5823     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5824 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5825     lt_cv_prog_cc_can_build_shared=no
5826   fi
5827 fi
5828
5829
5830 #
5831 # Check to make sure the static flag actually works.
5832 #
5833 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5834 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5835 if test "${lt_prog_compiler_static_works+set}" = set; then
5836   echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838   lt_prog_compiler_static_works=no
5839    save_LDFLAGS="$LDFLAGS"
5840    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5841    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5842    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5843      # The compiler can only warn and ignore the option if not recognized
5844      # So say no if there are warnings
5845      if test -s conftest.err; then
5846        # Append any errors to the config.log.
5847        cat conftest.err 1>&5
5848      else
5849        lt_prog_compiler_static_works=yes
5850      fi
5851    fi
5852    $rm conftest*
5853    LDFLAGS="$save_LDFLAGS"
5854
5855 fi
5856 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5857 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5858
5859 if test x"$lt_prog_compiler_static_works" = xyes; then
5860     :
5861 else
5862     lt_prog_compiler_static=
5863 fi
5864
5865
5866
5867 ## CAVEAT EMPTOR:
5868 ## There is no encapsulation within the following macros, do not change
5869 ## the running order or otherwise move them around unless you know exactly
5870 ## what you are doing...
5871
5872 lt_prog_compiler_no_builtin_flag=
5873
5874 if test "$GCC" = yes; then
5875   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5876
5877   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5878 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5879 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5880   echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882   lt_cv_prog_compiler_rtti_exceptions=no
5883   ac_outfile=conftest.$ac_objext
5884    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5885    lt_compiler_flag="-fno-rtti -fno-exceptions"
5886    # Insert the option either (1) after the last *FLAGS variable, or
5887    # (2) before a word containing "conftest.", or (3) at the end.
5888    # Note that $ac_compile itself does not contain backslashes and begins
5889    # with a dollar sign (not a hyphen), so the echo should work correctly.
5890    # The option is referenced via a variable to avoid confusing sed.
5891    lt_compile=`echo "$ac_compile" | $SED \
5892    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5893    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5894    -e 's:$: $lt_compiler_flag:'`
5895    (eval echo "\"\$as_me:5895: $lt_compile\"" >&5)
5896    (eval "$lt_compile" 2>conftest.err)
5897    ac_status=$?
5898    cat conftest.err >&5
5899    echo "$as_me:5899: \$? = $ac_status" >&5
5900    if (exit $ac_status) && test -s "$ac_outfile"; then
5901      # The compiler can only warn and ignore the option if not recognized
5902      # So say no if there are warnings
5903      if test ! -s conftest.err; then
5904        lt_cv_prog_compiler_rtti_exceptions=yes
5905      fi
5906    fi
5907    $rm conftest*
5908
5909 fi
5910 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5911 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5912
5913 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5914     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5915 else
5916     :
5917 fi
5918
5919 fi
5920
5921 lt_prog_compiler_wl=
5922 lt_prog_compiler_pic=
5923 lt_prog_compiler_static=
5924
5925 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5926 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5927
5928   if test "$GCC" = yes; then
5929     lt_prog_compiler_wl='-Wl,'
5930     lt_prog_compiler_static='-static'
5931
5932     case $host_os in
5933       aix*)
5934       # All AIX code is PIC.
5935       if test "$host_cpu" = ia64; then
5936         # AIX 5 now supports IA64 processor
5937         lt_prog_compiler_static='-Bstatic'
5938       fi
5939       ;;
5940
5941     amigaos*)
5942       # FIXME: we need at least 68020 code to build shared libraries, but
5943       # adding the `-m68020' flag to GCC prevents building anything better,
5944       # like `-m68040'.
5945       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5946       ;;
5947
5948     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5949       # PIC is the default for these OSes.
5950       ;;
5951
5952     mingw* | pw32* | os2*)
5953       # This hack is so that the source file can tell whether it is being
5954       # built for inclusion in a dll (and should export symbols for example).
5955       lt_prog_compiler_pic='-DDLL_EXPORT'
5956       ;;
5957
5958     darwin* | rhapsody*)
5959       # PIC is the default on this platform
5960       # Common symbols not allowed in MH_DYLIB files
5961       lt_prog_compiler_pic='-fno-common'
5962       ;;
5963
5964     msdosdjgpp*)
5965       # Just because we use GCC doesn't mean we suddenly get shared libraries
5966       # on systems that don't support them.
5967       lt_prog_compiler_can_build_shared=no
5968       enable_shared=no
5969       ;;
5970
5971     sysv4*MP*)
5972       if test -d /usr/nec; then
5973         lt_prog_compiler_pic=-Kconform_pic
5974       fi
5975       ;;
5976
5977     hpux*)
5978       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5979       # not for PA HP-UX.
5980       case "$host_cpu" in
5981       hppa*64*|ia64*)
5982         # +Z the default
5983         ;;
5984       *)
5985         lt_prog_compiler_pic='-fPIC'
5986         ;;
5987       esac
5988       ;;
5989
5990     *)
5991       lt_prog_compiler_pic='-fPIC'
5992       ;;
5993     esac
5994   else
5995     # PORTME Check for flag to pass linker flags through the system compiler.
5996     case $host_os in
5997     aix*)
5998       lt_prog_compiler_wl='-Wl,'
5999       if test "$host_cpu" = ia64; then
6000         # AIX 5 now supports IA64 processor
6001         lt_prog_compiler_static='-Bstatic'
6002       else
6003         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6004       fi
6005       ;;
6006
6007     mingw* | pw32* | os2*)
6008       # This hack is so that the source file can tell whether it is being
6009       # built for inclusion in a dll (and should export symbols for example).
6010       lt_prog_compiler_pic='-DDLL_EXPORT'
6011       ;;
6012
6013     hpux9* | hpux10* | hpux11*)
6014       lt_prog_compiler_wl='-Wl,'
6015       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6016       # not for PA HP-UX.
6017       case "$host_cpu" in
6018       hppa*64*|ia64*)
6019         # +Z the default
6020         ;;
6021       *)
6022         lt_prog_compiler_pic='+Z'
6023         ;;
6024       esac
6025       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6026       lt_prog_compiler_static='${wl}-a ${wl}archive'
6027       ;;
6028
6029     irix5* | irix6* | nonstopux*)
6030       lt_prog_compiler_wl='-Wl,'
6031       # PIC (with -KPIC) is the default.
6032       lt_prog_compiler_static='-non_shared'
6033       ;;
6034
6035     newsos6)
6036       lt_prog_compiler_pic='-KPIC'
6037       lt_prog_compiler_static='-Bstatic'
6038       ;;
6039
6040     linux*)
6041       case $CC in
6042       icc|ecc)
6043         lt_prog_compiler_wl='-Wl,'
6044         lt_prog_compiler_pic='-KPIC'
6045         lt_prog_compiler_static='-static'
6046         ;;
6047       ccc)
6048         lt_prog_compiler_wl='-Wl,'
6049         # All Alpha code is PIC.
6050         lt_prog_compiler_static='-non_shared'
6051         ;;
6052       esac
6053       ;;
6054
6055     osf3* | osf4* | osf5*)
6056       lt_prog_compiler_wl='-Wl,'
6057       # All OSF/1 code is PIC.
6058       lt_prog_compiler_static='-non_shared'
6059       ;;
6060
6061     sco3.2v5*)
6062       lt_prog_compiler_pic='-Kpic'
6063       lt_prog_compiler_static='-dn'
6064       ;;
6065
6066     solaris*)
6067       lt_prog_compiler_wl='-Wl,'
6068       lt_prog_compiler_pic='-KPIC'
6069       lt_prog_compiler_static='-Bstatic'
6070       ;;
6071
6072     sunos4*)
6073       lt_prog_compiler_wl='-Qoption ld '
6074       lt_prog_compiler_pic='-PIC'
6075       lt_prog_compiler_static='-Bstatic'
6076       ;;
6077
6078     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6079       lt_prog_compiler_wl='-Wl,'
6080       lt_prog_compiler_pic='-KPIC'
6081       lt_prog_compiler_static='-Bstatic'
6082       ;;
6083
6084     sysv4*MP*)
6085       if test -d /usr/nec ;then
6086         lt_prog_compiler_pic='-Kconform_pic'
6087         lt_prog_compiler_static='-Bstatic'
6088       fi
6089       ;;
6090
6091     uts4*)
6092       lt_prog_compiler_pic='-pic'
6093       lt_prog_compiler_static='-Bstatic'
6094       ;;
6095
6096     *)
6097       lt_prog_compiler_can_build_shared=no
6098       ;;
6099     esac
6100   fi
6101
6102 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6103 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6104
6105 #
6106 # Check to make sure the PIC flag actually works.
6107 #
6108 if test -n "$lt_prog_compiler_pic"; then
6109   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6110 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6111 if test "${lt_prog_compiler_pic_works+set}" = set; then
6112   echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114   lt_prog_compiler_pic_works=no
6115   ac_outfile=conftest.$ac_objext
6116    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6117    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6118    # Insert the option either (1) after the last *FLAGS variable, or
6119    # (2) before a word containing "conftest.", or (3) at the end.
6120    # Note that $ac_compile itself does not contain backslashes and begins
6121    # with a dollar sign (not a hyphen), so the echo should work correctly.
6122    # The option is referenced via a variable to avoid confusing sed.
6123    lt_compile=`echo "$ac_compile" | $SED \
6124    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6125    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6126    -e 's:$: $lt_compiler_flag:'`
6127    (eval echo "\"\$as_me:6127: $lt_compile\"" >&5)
6128    (eval "$lt_compile" 2>conftest.err)
6129    ac_status=$?
6130    cat conftest.err >&5
6131    echo "$as_me:6131: \$? = $ac_status" >&5
6132    if (exit $ac_status) && test -s "$ac_outfile"; then
6133      # The compiler can only warn and ignore the option if not recognized
6134      # So say no if there are warnings
6135      if test ! -s conftest.err; then
6136        lt_prog_compiler_pic_works=yes
6137      fi
6138    fi
6139    $rm conftest*
6140
6141 fi
6142 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6143 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6144
6145 if test x"$lt_prog_compiler_pic_works" = xyes; then
6146     case $lt_prog_compiler_pic in
6147      "" | " "*) ;;
6148      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6149      esac
6150 else
6151     lt_prog_compiler_pic=
6152      lt_prog_compiler_can_build_shared=no
6153 fi
6154
6155 fi
6156 case "$host_os" in
6157   # For platforms which do not support PIC, -DPIC is meaningless:
6158   *djgpp*)
6159     lt_prog_compiler_pic=
6160     ;;
6161   *)
6162     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6163     ;;
6164 esac
6165
6166 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6167 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6168 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6169   echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171   lt_cv_prog_compiler_c_o=no
6172    $rm -r conftest 2>/dev/null
6173    mkdir conftest
6174    cd conftest
6175    mkdir out
6176    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6177
6178    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6179    # that will create temporary files in the current directory regardless of
6180    # the output directory.  Thus, making CWD read-only will cause this test
6181    # to fail, enabling locking or at least warning the user not to do parallel
6182    # builds.
6183    chmod -w .
6184
6185    lt_compiler_flag="-o out/conftest2.$ac_objext"
6186    # Insert the option either (1) after the last *FLAGS variable, or
6187    # (2) before a word containing "conftest.", or (3) at the end.
6188    # Note that $ac_compile itself does not contain backslashes and begins
6189    # with a dollar sign (not a hyphen), so the echo should work correctly.
6190    lt_compile=`echo "$ac_compile" | $SED \
6191    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6192    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6193    -e 's:$: $lt_compiler_flag:'`
6194    (eval echo "\"\$as_me:6194: $lt_compile\"" >&5)
6195    (eval "$lt_compile" 2>out/conftest.err)
6196    ac_status=$?
6197    cat out/conftest.err >&5
6198    echo "$as_me:6198: \$? = $ac_status" >&5
6199    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6200    then
6201      # The compiler can only warn and ignore the option if not recognized
6202      # So say no if there are warnings
6203      if test ! -s out/conftest.err; then
6204        lt_cv_prog_compiler_c_o=yes
6205      fi
6206    fi
6207    chmod u+w .
6208    $rm conftest* out/*
6209    rmdir out
6210    cd ..
6211    rmdir conftest
6212    $rm conftest*
6213
6214 fi
6215 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6216 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6217
6218
6219 hard_links="nottested"
6220 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6221   # do not overwrite the value of need_locks provided by the user
6222   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6223 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6224   hard_links=yes
6225   $rm conftest*
6226   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6227   touch conftest.a
6228   ln conftest.a conftest.b 2>&5 || hard_links=no
6229   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6230   echo "$as_me:$LINENO: result: $hard_links" >&5
6231 echo "${ECHO_T}$hard_links" >&6
6232   if test "$hard_links" = no; then
6233     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6234 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6235     need_locks=warn
6236   fi
6237 else
6238   need_locks=no
6239 fi
6240
6241 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6242 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6243
6244   runpath_var=
6245   allow_undefined_flag=
6246   enable_shared_with_static_runtimes=no
6247   archive_cmds=
6248   archive_expsym_cmds=
6249   old_archive_From_new_cmds=
6250   old_archive_from_expsyms_cmds=
6251   export_dynamic_flag_spec=
6252   whole_archive_flag_spec=
6253   thread_safe_flag_spec=
6254   hardcode_libdir_flag_spec=
6255   hardcode_libdir_flag_spec_ld=
6256   hardcode_libdir_separator=
6257   hardcode_direct=no
6258   hardcode_minus_L=no
6259   hardcode_shlibpath_var=unsupported
6260   link_all_deplibs=unknown
6261   hardcode_automatic=no
6262   module_cmds=
6263   module_expsym_cmds=
6264   always_export_symbols=no
6265   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6266   # include_expsyms should be a list of space-separated symbols to be *always*
6267   # included in the symbol list
6268   include_expsyms=
6269   # exclude_expsyms can be an extended regexp of symbols to exclude
6270   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6271   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6272   # as well as any symbol that contains `d'.
6273   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6274   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6275   # platforms (ab)use it in PIC code, but their linkers get confused if
6276   # the symbol is explicitly referenced.  Since portable code cannot
6277   # rely on this symbol name, it's probably fine to never include it in
6278   # preloaded symbol tables.
6279   extract_expsyms_cmds=
6280
6281   case $host_os in
6282   cygwin* | mingw* | pw32*)
6283     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6284     # When not using gcc, we currently assume that we are using
6285     # Microsoft Visual C++.
6286     if test "$GCC" != yes; then
6287       with_gnu_ld=no
6288     fi
6289     ;;
6290   openbsd*)
6291     with_gnu_ld=no
6292     ;;
6293   esac
6294
6295   ld_shlibs=yes
6296   if test "$with_gnu_ld" = yes; then
6297     # If archive_cmds runs LD, not CC, wlarc should be empty
6298     wlarc='${wl}'
6299
6300     # See if GNU ld supports shared libraries.
6301     case $host_os in
6302     aix3* | aix4* | aix5*)
6303       # On AIX/PPC, the GNU linker is very broken
6304       if test "$host_cpu" != ia64; then
6305         ld_shlibs=no
6306         cat <<EOF 1>&2
6307
6308 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6309 *** to be unable to reliably create shared libraries on AIX.
6310 *** Therefore, libtool is disabling shared libraries support.  If you
6311 *** really care for shared libraries, you may want to modify your PATH
6312 *** so that a non-GNU linker is found, and then restart.
6313
6314 EOF
6315       fi
6316       ;;
6317
6318     amigaos*)
6319       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)'
6320       hardcode_libdir_flag_spec='-L$libdir'
6321       hardcode_minus_L=yes
6322
6323       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6324       # that the semantics of dynamic libraries on AmigaOS, at least up
6325       # to version 4, is to share data among multiple programs linked
6326       # with the same dynamic library.  Since this doesn't match the
6327       # behavior of shared libraries on other platforms, we can't use
6328       # them.
6329       ld_shlibs=no
6330       ;;
6331
6332     beos*)
6333       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6334         allow_undefined_flag=unsupported
6335         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6336         # support --undefined.  This deserves some investigation.  FIXME
6337         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6338       else
6339         ld_shlibs=no
6340       fi
6341       ;;
6342
6343     cygwin* | mingw* | pw32*)
6344       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6345       # as there is no search path for DLLs.
6346       hardcode_libdir_flag_spec='-L$libdir'
6347       allow_undefined_flag=unsupported
6348       always_export_symbols=no
6349       enable_shared_with_static_runtimes=yes
6350       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6351
6352       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6353         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6354         # If the export-symbols file already is a .def file (1st line
6355         # is EXPORTS), use it as is; otherwise, prepend...
6356         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6357           cp $export_symbols $output_objdir/$soname.def;
6358         else
6359           echo EXPORTS > $output_objdir/$soname.def;
6360           cat $export_symbols >> $output_objdir/$soname.def;
6361         fi~
6362         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6363       else
6364         ld_shlibs=no
6365       fi
6366       ;;
6367
6368     netbsd*)
6369       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6370         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6371         wlarc=
6372       else
6373         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6374         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6375       fi
6376       ;;
6377
6378     solaris* | sysv5*)
6379       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6380         ld_shlibs=no
6381         cat <<EOF 1>&2
6382
6383 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6384 *** create shared libraries on Solaris systems.  Therefore, libtool
6385 *** is disabling shared libraries support.  We urge you to upgrade GNU
6386 *** binutils to release 2.9.1 or newer.  Another option is to modify
6387 *** your PATH or compiler configuration so that the native linker is
6388 *** used, and then restart.
6389
6390 EOF
6391       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6392         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6393         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6394       else
6395         ld_shlibs=no
6396       fi
6397       ;;
6398
6399     sunos4*)
6400       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6401       wlarc=
6402       hardcode_direct=yes
6403       hardcode_shlibpath_var=no
6404       ;;
6405
6406     *)
6407       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6408         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6409         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6410       else
6411         ld_shlibs=no
6412       fi
6413       ;;
6414     esac
6415
6416     if test "$ld_shlibs" = yes; then
6417       runpath_var=LD_RUN_PATH
6418       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6419       export_dynamic_flag_spec='${wl}--export-dynamic'
6420       # ancient GNU ld didn't support --whole-archive et. al.
6421       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6422         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6423       else
6424         whole_archive_flag_spec=
6425       fi
6426     fi
6427   else
6428     # PORTME fill in a description of your system's linker (not GNU ld)
6429     case $host_os in
6430     aix3*)
6431       allow_undefined_flag=unsupported
6432       always_export_symbols=yes
6433       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'
6434       # Note: this linker hardcodes the directories in LIBPATH if there
6435       # are no directories specified by -L.
6436       hardcode_minus_L=yes
6437       if test "$GCC" = yes && test -z "$link_static_flag"; then
6438         # Neither direct hardcoding nor static linking is supported with a
6439         # broken collect2.
6440         hardcode_direct=unsupported
6441       fi
6442       ;;
6443
6444     aix4* | aix5*)
6445       if test "$host_cpu" = ia64; then
6446         # On IA64, the linker does run time linking by default, so we don't
6447         # have to do anything special.
6448         aix_use_runtimelinking=no
6449         exp_sym_flag='-Bexport'
6450         no_entry_flag=""
6451       else
6452         # If we're using GNU nm, then we don't want the "-C" option.
6453         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6454         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6455           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'
6456         else
6457           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'
6458         fi
6459         aix_use_runtimelinking=no
6460
6461         # Test if we are trying to use run time linking or normal
6462         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6463         # need to do runtime linking.
6464         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6465           for ld_flag in $LDFLAGS; do
6466           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6467             aix_use_runtimelinking=yes
6468             break
6469           fi
6470           done
6471         esac
6472
6473         exp_sym_flag='-bexport'
6474         no_entry_flag='-bnoentry'
6475       fi
6476
6477       # When large executables or shared objects are built, AIX ld can
6478       # have problems creating the table of contents.  If linking a library
6479       # or program results in "error TOC overflow" add -mminimal-toc to
6480       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6481       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6482
6483       archive_cmds=''
6484       hardcode_direct=yes
6485       hardcode_libdir_separator=':'
6486       link_all_deplibs=yes
6487
6488       if test "$GCC" = yes; then
6489         case $host_os in aix4.012|aix4.012.*)
6490         # We only want to do this on AIX 4.2 and lower, the check
6491         # below for broken collect2 doesn't work under 4.3+
6492           collect2name=`${CC} -print-prog-name=collect2`
6493           if test -f "$collect2name" && \
6494            strings "$collect2name" | grep resolve_lib_name >/dev/null
6495           then
6496           # We have reworked collect2
6497           hardcode_direct=yes
6498           else
6499           # We have old collect2
6500           hardcode_direct=unsupported
6501           # It fails to find uninstalled libraries when the uninstalled
6502           # path is not listed in the libpath.  Setting hardcode_minus_L
6503           # to unsupported forces relinking
6504           hardcode_minus_L=yes
6505           hardcode_libdir_flag_spec='-L$libdir'
6506           hardcode_libdir_separator=
6507           fi
6508         esac
6509         shared_flag='-shared'
6510       else
6511         # not using gcc
6512         if test "$host_cpu" = ia64; then
6513         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6514         # chokes on -Wl,-G. The following line is correct:
6515           shared_flag='-G'
6516         else
6517         if test "$aix_use_runtimelinking" = yes; then
6518             shared_flag='${wl}-G'
6519           else
6520             shared_flag='${wl}-bM:SRE'
6521         fi
6522         fi
6523       fi
6524
6525       # It seems that -bexpall does not export symbols beginning with
6526       # underscore (_), so it is better to generate a list of symbols to export.
6527       always_export_symbols=yes
6528       if test "$aix_use_runtimelinking" = yes; then
6529         # Warning - without using the other runtime loading flags (-brtl),
6530         # -berok will link without error, but may produce a broken library.
6531         allow_undefined_flag='-berok'
6532        # Determine the default libpath from the value encoded in an empty executable.
6533        cat >conftest.$ac_ext <<_ACEOF
6534 #line $LINENO "configure"
6535 /* confdefs.h.  */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h.  */
6540
6541 int
6542 main ()
6543 {
6544
6545   ;
6546   return 0;
6547 }
6548 _ACEOF
6549 rm -f conftest.$ac_objext conftest$ac_exeext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6551   (eval $ac_link) 2>&5
6552   ac_status=$?
6553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554   (exit $ac_status); } &&
6555          { ac_try='test -s conftest$ac_exeext'
6556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557   (eval $ac_try) 2>&5
6558   ac_status=$?
6559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560   (exit $ac_status); }; }; then
6561
6562 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6563 }'`
6564 # Check for a 64-bit object if we didn't find anything.
6565 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; }
6566 }'`; fi
6567 else
6568   echo "$as_me: failed program was:" >&5
6569 sed 's/^/| /' conftest.$ac_ext >&5
6570
6571 fi
6572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6573 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6574
6575        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6576         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"
6577        else
6578         if test "$host_cpu" = ia64; then
6579           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6580           allow_undefined_flag="-z nodefs"
6581           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"
6582         else
6583          # Determine the default libpath from the value encoded in an empty executable.
6584          cat >conftest.$ac_ext <<_ACEOF
6585 #line $LINENO "configure"
6586 /* confdefs.h.  */
6587 _ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h.  */
6591
6592 int
6593 main ()
6594 {
6595
6596   ;
6597   return 0;
6598 }
6599 _ACEOF
6600 rm -f conftest.$ac_objext conftest$ac_exeext
6601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602   (eval $ac_link) 2>&5
6603   ac_status=$?
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); } &&
6606          { ac_try='test -s conftest$ac_exeext'
6607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608   (eval $ac_try) 2>&5
6609   ac_status=$?
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); }; }; then
6612
6613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6614 }'`
6615 # Check for a 64-bit object if we didn't find anything.
6616 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; }
6617 }'`; fi
6618 else
6619   echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6621
6622 fi
6623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6625
6626          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6627           # Warning - without using the other run time loading flags,
6628           # -berok will link without error, but may produce a broken library.
6629           no_undefined_flag=' ${wl}-bernotok'
6630           allow_undefined_flag=' ${wl}-berok'
6631           # -bexpall does not export symbols beginning with underscore (_)
6632           always_export_symbols=yes
6633           # Exported symbols can be pulled into shared objects from archives
6634           whole_archive_flag_spec=' '
6635           archive_cmds_need_lc=yes
6636           # This is similar to how AIX traditionally builds it's shared libraries.
6637           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'
6638         fi
6639       fi
6640       ;;
6641
6642     amigaos*)
6643       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)'
6644       hardcode_libdir_flag_spec='-L$libdir'
6645       hardcode_minus_L=yes
6646       # see comment about different semantics on the GNU ld section
6647       ld_shlibs=no
6648       ;;
6649
6650     bsdi4*)
6651       export_dynamic_flag_spec=-rdynamic
6652       ;;
6653
6654     cygwin* | mingw* | pw32*)
6655       # When not using gcc, we currently assume that we are using
6656       # Microsoft Visual C++.
6657       # hardcode_libdir_flag_spec is actually meaningless, as there is
6658       # no search path for DLLs.
6659       hardcode_libdir_flag_spec=' '
6660       allow_undefined_flag=unsupported
6661       # Tell ltmain to make .lib files, not .a files.
6662       libext=lib
6663       # Tell ltmain to make .dll files, not .so files.
6664       shrext=".dll"
6665       # FIXME: Setting linknames here is a bad hack.
6666       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6667       # The linker will automatically build a .lib file if we build a DLL.
6668       old_archive_From_new_cmds='true'
6669       # FIXME: Should let the user specify the lib program.
6670       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6671       fix_srcfile_path='`cygpath -w "$srcfile"`'
6672       enable_shared_with_static_runtimes=yes
6673       ;;
6674
6675     darwin* | rhapsody*)
6676     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6677       archive_cmds_need_lc=no
6678       case "$host_os" in
6679       rhapsody* | darwin1.[012])
6680         allow_undefined_flag='-undefined suppress'
6681         ;;
6682       *) # Darwin 1.3 on
6683         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6684         ;;
6685       esac
6686       # FIXME: Relying on posixy $() will cause problems for
6687       #        cross-compilation, but unfortunately the echo tests do not
6688       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6689       #        `"' quotes if we put them in here... so don't!
6690         lt_int_apple_cc_single_mod=no
6691         output_verbose_link_cmd='echo'
6692         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6693           lt_int_apple_cc_single_mod=yes
6694         fi
6695         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6696           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6697         else
6698         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'
6699       fi
6700       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6701       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6702         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6703           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}'
6704         else
6705           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}'
6706         fi
6707           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}'
6708       hardcode_direct=no
6709       hardcode_automatic=yes
6710       hardcode_shlibpath_var=unsupported
6711       whole_archive_flag_spec='-all_load $convenience'
6712       link_all_deplibs=yes
6713     fi
6714       ;;
6715
6716     dgux*)
6717       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6718       hardcode_libdir_flag_spec='-L$libdir'
6719       hardcode_shlibpath_var=no
6720       ;;
6721
6722     freebsd1*)
6723       ld_shlibs=no
6724       ;;
6725
6726     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6727     # support.  Future versions do this automatically, but an explicit c++rt0.o
6728     # does not break anything, and helps significantly (at the cost of a little
6729     # extra space).
6730     freebsd2.2*)
6731       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6732       hardcode_libdir_flag_spec='-R$libdir'
6733       hardcode_direct=yes
6734       hardcode_shlibpath_var=no
6735       ;;
6736
6737     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6738     freebsd2*)
6739       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6740       hardcode_direct=yes
6741       hardcode_minus_L=yes
6742       hardcode_shlibpath_var=no
6743       ;;
6744
6745     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6746     freebsd*)
6747       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6748       hardcode_libdir_flag_spec='-R$libdir'
6749       hardcode_direct=yes
6750       hardcode_shlibpath_var=no
6751       ;;
6752
6753     hpux9*)
6754       if test "$GCC" = yes; then
6755         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'
6756       else
6757         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'
6758       fi
6759       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6760       hardcode_libdir_separator=:
6761       hardcode_direct=yes
6762
6763       # hardcode_minus_L: Not really in the search PATH,
6764       # but as the default location of the library.
6765       hardcode_minus_L=yes
6766       export_dynamic_flag_spec='${wl}-E'
6767       ;;
6768
6769     hpux10* | hpux11*)
6770       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6771         case "$host_cpu" in
6772         hppa*64*|ia64*)
6773           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6774           ;;
6775         *)
6776           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6777           ;;
6778         esac
6779       else
6780         case "$host_cpu" in
6781         hppa*64*|ia64*)
6782           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6783           ;;
6784         *)
6785           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6786           ;;
6787         esac
6788       fi
6789       if test "$with_gnu_ld" = no; then
6790         case "$host_cpu" in
6791         hppa*64*)
6792           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6793           hardcode_libdir_flag_spec_ld='+b $libdir'
6794           hardcode_libdir_separator=:
6795           hardcode_direct=no
6796           hardcode_shlibpath_var=no
6797           ;;
6798         ia64*)
6799           hardcode_libdir_flag_spec='-L$libdir'
6800           hardcode_direct=no
6801           hardcode_shlibpath_var=no
6802
6803           # hardcode_minus_L: Not really in the search PATH,
6804           # but as the default location of the library.
6805           hardcode_minus_L=yes
6806           ;;
6807         *)
6808           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6809           hardcode_libdir_separator=:
6810           hardcode_direct=yes
6811           export_dynamic_flag_spec='${wl}-E'
6812
6813           # hardcode_minus_L: Not really in the search PATH,
6814           # but as the default location of the library.
6815           hardcode_minus_L=yes
6816           ;;
6817         esac
6818       fi
6819       ;;
6820
6821     irix5* | irix6* | nonstopux*)
6822       if test "$GCC" = yes; then
6823         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'
6824       else
6825         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'
6826         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6827       fi
6828       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6829       hardcode_libdir_separator=:
6830       link_all_deplibs=yes
6831       ;;
6832
6833     netbsd*)
6834       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6835         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6836       else
6837         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6838       fi
6839       hardcode_libdir_flag_spec='-R$libdir'
6840       hardcode_direct=yes
6841       hardcode_shlibpath_var=no
6842       ;;
6843
6844     newsos6)
6845       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6846       hardcode_direct=yes
6847       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6848       hardcode_libdir_separator=:
6849       hardcode_shlibpath_var=no
6850       ;;
6851
6852     openbsd*)
6853       hardcode_direct=yes
6854       hardcode_shlibpath_var=no
6855       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6856         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6857         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6858         export_dynamic_flag_spec='${wl}-E'
6859       else
6860        case $host_os in
6861          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6862            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6863            hardcode_libdir_flag_spec='-R$libdir'
6864            ;;
6865          *)
6866            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6867            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6868            ;;
6869        esac
6870       fi
6871       ;;
6872
6873     os2*)
6874       hardcode_libdir_flag_spec='-L$libdir'
6875       hardcode_minus_L=yes
6876       allow_undefined_flag=unsupported
6877       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'
6878       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6879       ;;
6880
6881     osf3*)
6882       if test "$GCC" = yes; then
6883         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6884         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'
6885       else
6886         allow_undefined_flag=' -expect_unresolved \*'
6887         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'
6888       fi
6889       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6890       hardcode_libdir_separator=:
6891       ;;
6892
6893     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6894       if test "$GCC" = yes; then
6895         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6896         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'
6897         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6898       else
6899         allow_undefined_flag=' -expect_unresolved \*'
6900         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'
6901         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6902         $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'
6903
6904         # Both c and cxx compiler support -rpath directly
6905         hardcode_libdir_flag_spec='-rpath $libdir'
6906       fi
6907       hardcode_libdir_separator=:
6908       ;;
6909
6910     sco3.2v5*)
6911       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6912       hardcode_shlibpath_var=no
6913       export_dynamic_flag_spec='${wl}-Bexport'
6914       runpath_var=LD_RUN_PATH
6915       hardcode_runpath_var=yes
6916       ;;
6917
6918     solaris*)
6919       no_undefined_flag=' -z text'
6920       if test "$GCC" = yes; then
6921         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6922         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6923           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6924       else
6925         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6926         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6927         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6928       fi
6929       hardcode_libdir_flag_spec='-R$libdir'
6930       hardcode_shlibpath_var=no
6931       case $host_os in
6932       solaris2.[0-5] | solaris2.[0-5].*) ;;
6933       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6934         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6935       esac
6936       link_all_deplibs=yes
6937       ;;
6938
6939     sunos4*)
6940       if test "x$host_vendor" = xsequent; then
6941         # Use $CC to link under sequent, because it throws in some extra .o
6942         # files that make .init and .fini sections work.
6943         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6944       else
6945         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6946       fi
6947       hardcode_libdir_flag_spec='-L$libdir'
6948       hardcode_direct=yes
6949       hardcode_minus_L=yes
6950       hardcode_shlibpath_var=no
6951       ;;
6952
6953     sysv4)
6954       case $host_vendor in
6955         sni)
6956           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6957           hardcode_direct=yes # is this really true???
6958         ;;
6959         siemens)
6960           ## LD is ld it makes a PLAMLIB
6961           ## CC just makes a GrossModule.
6962           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6963           reload_cmds='$CC -r -o $output$reload_objs'
6964           hardcode_direct=no
6965         ;;
6966         motorola)
6967           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6968           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6969         ;;
6970       esac
6971       runpath_var='LD_RUN_PATH'
6972       hardcode_shlibpath_var=no
6973       ;;
6974
6975     sysv4.3*)
6976       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6977       hardcode_shlibpath_var=no
6978       export_dynamic_flag_spec='-Bexport'
6979       ;;
6980
6981     sysv4*MP*)
6982       if test -d /usr/nec; then
6983         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6984         hardcode_shlibpath_var=no
6985         runpath_var=LD_RUN_PATH
6986         hardcode_runpath_var=yes
6987         ld_shlibs=yes
6988       fi
6989       ;;
6990
6991     sysv4.2uw2*)
6992       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6993       hardcode_direct=yes
6994       hardcode_minus_L=no
6995       hardcode_shlibpath_var=no
6996       hardcode_runpath_var=yes
6997       runpath_var=LD_RUN_PATH
6998       ;;
6999
7000    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7001       no_undefined_flag='${wl}-z ${wl}text'
7002       if test "$GCC" = yes; then
7003         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7004       else
7005         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7006       fi
7007       runpath_var='LD_RUN_PATH'
7008       hardcode_shlibpath_var=no
7009       ;;
7010
7011     sysv5*)
7012       no_undefined_flag=' -z text'
7013       # $CC -shared without GNU ld will not create a library from C++
7014       # object files and a static libstdc++, better avoid it by now
7015       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7016       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7017                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7018       hardcode_libdir_flag_spec=
7019       hardcode_shlibpath_var=no
7020       runpath_var='LD_RUN_PATH'
7021       ;;
7022
7023     uts4*)
7024       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7025       hardcode_libdir_flag_spec='-L$libdir'
7026       hardcode_shlibpath_var=no
7027       ;;
7028
7029     *)
7030       ld_shlibs=no
7031       ;;
7032     esac
7033   fi
7034
7035 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7036 echo "${ECHO_T}$ld_shlibs" >&6
7037 test "$ld_shlibs" = no && can_build_shared=no
7038
7039 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7040 if test "$GCC" = yes; then
7041   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7042 fi
7043
7044 #
7045 # Do we need to explicitly link libc?
7046 #
7047 case "x$archive_cmds_need_lc" in
7048 x|xyes)
7049   # Assume -lc should be added
7050   archive_cmds_need_lc=yes
7051
7052   if test "$enable_shared" = yes && test "$GCC" = yes; then
7053     case $archive_cmds in
7054     *'~'*)
7055       # FIXME: we may have to deal with multi-command sequences.
7056       ;;
7057     '$CC '*)
7058       # Test whether the compiler implicitly links with -lc since on some
7059       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7060       # to ld, don't add -lc before -lgcc.
7061       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7062 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7063       $rm conftest*
7064       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7065
7066       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067   (eval $ac_compile) 2>&5
7068   ac_status=$?
7069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070   (exit $ac_status); } 2>conftest.err; then
7071         soname=conftest
7072         lib=conftest
7073         libobjs=conftest.$ac_objext
7074         deplibs=
7075         wl=$lt_prog_compiler_wl
7076         compiler_flags=-v
7077         linker_flags=-v
7078         verstring=
7079         output_objdir=.
7080         libname=conftest
7081         lt_save_allow_undefined_flag=$allow_undefined_flag
7082         allow_undefined_flag=
7083         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7084   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7085   ac_status=$?
7086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087   (exit $ac_status); }
7088         then
7089           archive_cmds_need_lc=no
7090         else
7091           archive_cmds_need_lc=yes
7092         fi
7093         allow_undefined_flag=$lt_save_allow_undefined_flag
7094       else
7095         cat conftest.err 1>&5
7096       fi
7097       $rm conftest*
7098       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7099 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7100       ;;
7101     esac
7102   fi
7103   ;;
7104 esac
7105
7106 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7107 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7108 hardcode_action=
7109 if test -n "$hardcode_libdir_flag_spec" || \
7110    test -n "$runpath_var " || \
7111    test "X$hardcode_automatic"="Xyes" ; then
7112
7113   # We can hardcode non-existant directories.
7114   if test "$hardcode_direct" != no &&
7115      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7116      # have to relink, otherwise we might link with an installed library
7117      # when we should be linking with a yet-to-be-installed one
7118      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7119      test "$hardcode_minus_L" != no; then
7120     # Linking always hardcodes the temporary library directory.
7121     hardcode_action=relink
7122   else
7123     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7124     hardcode_action=immediate
7125   fi
7126 else
7127   # We cannot hardcode anything, or else we can only hardcode existing
7128   # directories.
7129   hardcode_action=unsupported
7130 fi
7131 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7132 echo "${ECHO_T}$hardcode_action" >&6
7133
7134 if test "$hardcode_action" = relink; then
7135   # Fast installation is not supported
7136   enable_fast_install=no
7137 elif test "$shlibpath_overrides_runpath" = yes ||
7138      test "$enable_shared" = no; then
7139   # Fast installation is not necessary
7140   enable_fast_install=needless
7141 fi
7142
7143 striplib=
7144 old_striplib=
7145 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7146 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7147 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7148   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7149   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7150   echo "$as_me:$LINENO: result: yes" >&5
7151 echo "${ECHO_T}yes" >&6
7152 else
7153 # FIXME - insert some real tests, host_os isn't really good enough
7154   case $host_os in
7155    darwin*)
7156        if test -n "$STRIP" ; then
7157          striplib="$STRIP -x"
7158          echo "$as_me:$LINENO: result: yes" >&5
7159 echo "${ECHO_T}yes" >&6
7160        else
7161   echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6
7163 fi
7164        ;;
7165    *)
7166   echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6
7168     ;;
7169   esac
7170 fi
7171
7172 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7173 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7174 library_names_spec=
7175 libname_spec='lib$name'
7176 soname_spec=
7177 shrext=".so"
7178 postinstall_cmds=
7179 postuninstall_cmds=
7180 finish_cmds=
7181 finish_eval=
7182 shlibpath_var=
7183 shlibpath_overrides_runpath=unknown
7184 version_type=none
7185 dynamic_linker="$host_os ld.so"
7186 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7187 if test "$GCC" = yes; then
7188   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7189   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7190     # if the path contains ";" then we assume it to be the separator
7191     # otherwise default to the standard path separator (i.e. ":") - it is
7192     # assumed that no part of a normal pathname contains ";" but that should
7193     # okay in the real world where ";" in dirpaths is itself problematic.
7194     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7195   else
7196     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7197   fi
7198 else
7199   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7200 fi
7201 need_lib_prefix=unknown
7202 hardcode_into_libs=no
7203
7204 # when you set need_version to no, make sure it does not cause -set_version
7205 # flags to be left without arguments
7206 need_version=unknown
7207
7208 case $host_os in
7209 aix3*)
7210   version_type=linux
7211   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7212   shlibpath_var=LIBPATH
7213
7214   # AIX 3 has no versioning support, so we append a major version to the name.
7215   soname_spec='${libname}${release}${shared_ext}$major'
7216   ;;
7217
7218 aix4* | aix5*)
7219   version_type=linux
7220   need_lib_prefix=no
7221   need_version=no
7222   hardcode_into_libs=yes
7223   if test "$host_cpu" = ia64; then
7224     # AIX 5 supports IA64
7225     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7226     shlibpath_var=LD_LIBRARY_PATH
7227   else
7228     # With GCC up to 2.95.x, collect2 would create an import file
7229     # for dependence libraries.  The import file would start with
7230     # the line `#! .'.  This would cause the generated library to
7231     # depend on `.', always an invalid library.  This was fixed in
7232     # development snapshots of GCC prior to 3.0.
7233     case $host_os in
7234       aix4 | aix4.[01] | aix4.[01].*)
7235       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7236            echo ' yes '
7237            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7238         :
7239       else
7240         can_build_shared=no
7241       fi
7242       ;;
7243     esac
7244     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7245     # soname into executable. Probably we can add versioning support to
7246     # collect2, so additional links can be useful in future.
7247     if test "$aix_use_runtimelinking" = yes; then
7248       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7249       # instead of lib<name>.a to let people know that these are not
7250       # typical AIX shared libraries.
7251       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7252     else
7253       # We preserve .a as extension for shared libraries through AIX4.2
7254       # and later when we are not doing run time linking.
7255       library_names_spec='${libname}${release}.a $libname.a'
7256       soname_spec='${libname}${release}${shared_ext}$major'
7257     fi
7258     shlibpath_var=LIBPATH
7259   fi
7260   ;;
7261
7262 amigaos*)
7263   library_names_spec='$libname.ixlibrary $libname.a'
7264   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7265   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'
7266   ;;
7267
7268 beos*)
7269   library_names_spec='${libname}${shared_ext}'
7270   dynamic_linker="$host_os ld.so"
7271   shlibpath_var=LIBRARY_PATH
7272   ;;
7273
7274 bsdi4*)
7275   version_type=linux
7276   need_version=no
7277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7278   soname_spec='${libname}${release}${shared_ext}$major'
7279   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7280   shlibpath_var=LD_LIBRARY_PATH
7281   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7282   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7283   # the default ld.so.conf also contains /usr/contrib/lib and
7284   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7285   # libtool to hard-code these into programs
7286   ;;
7287
7288 cygwin* | mingw* | pw32*)
7289   version_type=windows
7290   shrext=".dll"
7291   need_version=no
7292   need_lib_prefix=no
7293
7294   case $GCC,$host_os in
7295   yes,cygwin* | yes,mingw* | yes,pw32*)
7296     library_names_spec='$libname.dll.a'
7297     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7298     postinstall_cmds='base_file=`basename \${file}`~
7299       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7300       dldir=$destdir/`dirname \$dlpath`~
7301       test -d \$dldir || mkdir -p \$dldir~
7302       $install_prog $dir/$dlname \$dldir/$dlname'
7303     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7304       dlpath=$dir/\$dldll~
7305        $rm \$dlpath'
7306     shlibpath_overrides_runpath=yes
7307
7308     case $host_os in
7309     cygwin*)
7310       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7311       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7312       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7313       ;;
7314     mingw*)
7315       # MinGW DLLs use traditional 'lib' prefix
7316       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7317       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7318       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7319         # It is most probably a Windows format PATH printed by
7320         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7321         # path with ; separators, and with drive letters. We can handle the
7322         # drive letters (cygwin fileutils understands them), so leave them,
7323         # especially as we might pass files found there to a mingw objdump,
7324         # which wouldn't understand a cygwinified path. Ahh.
7325         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7326       else
7327         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7328       fi
7329       ;;
7330     pw32*)
7331       # pw32 DLLs use 'pw' prefix rather than 'lib'
7332       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7333       ;;
7334     esac
7335     ;;
7336
7337   *)
7338     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7339     ;;
7340   esac
7341   dynamic_linker='Win32 ld.exe'
7342   # FIXME: first we should search . and the directory the executable is in
7343   shlibpath_var=PATH
7344   ;;
7345
7346 darwin* | rhapsody*)
7347   dynamic_linker="$host_os dyld"
7348   version_type=darwin
7349   need_lib_prefix=no
7350   need_version=no
7351   # FIXME: Relying on posixy $() will cause problems for
7352   #        cross-compilation, but unfortunately the echo tests do not
7353   #        yet detect zsh echo's removal of \ escapes.
7354   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7355   soname_spec='${libname}${release}${major}$shared_ext'
7356   shlibpath_overrides_runpath=yes
7357   shlibpath_var=DYLD_LIBRARY_PATH
7358   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7359   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7360   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7361   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"`
7362   fi
7363   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7364   ;;
7365
7366 dgux*)
7367   version_type=linux
7368   need_lib_prefix=no
7369   need_version=no
7370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7371   soname_spec='${libname}${release}${shared_ext}$major'
7372   shlibpath_var=LD_LIBRARY_PATH
7373   ;;
7374
7375 freebsd1*)
7376   dynamic_linker=no
7377   ;;
7378
7379 freebsd*)
7380   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7381   version_type=freebsd-$objformat
7382   case $version_type in
7383     freebsd-elf*)
7384       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7385       need_version=no
7386       need_lib_prefix=no
7387       ;;
7388     freebsd-*)
7389       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7390       need_version=yes
7391       ;;
7392   esac
7393   shlibpath_var=LD_LIBRARY_PATH
7394   case $host_os in
7395   freebsd2*)
7396     shlibpath_overrides_runpath=yes
7397     ;;
7398   freebsd3.01* | freebsdelf3.01*)
7399     shlibpath_overrides_runpath=yes
7400     hardcode_into_libs=yes
7401     ;;
7402   *) # from 3.2 on
7403     shlibpath_overrides_runpath=no
7404     hardcode_into_libs=yes
7405     ;;
7406   esac
7407   ;;
7408
7409 gnu*)
7410   version_type=linux
7411   need_lib_prefix=no
7412   need_version=no
7413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7414   soname_spec='${libname}${release}${shared_ext}$major'
7415   shlibpath_var=LD_LIBRARY_PATH
7416   hardcode_into_libs=yes
7417   ;;
7418
7419 hpux9* | hpux10* | hpux11*)
7420   # Give a soname corresponding to the major version so that dld.sl refuses to
7421   # link against other versions.
7422   version_type=sunos
7423   need_lib_prefix=no
7424   need_version=no
7425   case "$host_cpu" in
7426   ia64*)
7427     shrext='.so'
7428     hardcode_into_libs=yes
7429     dynamic_linker="$host_os dld.so"
7430     shlibpath_var=LD_LIBRARY_PATH
7431     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7432     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7433     soname_spec='${libname}${release}${shared_ext}$major'
7434     if test "X$HPUX_IA64_MODE" = X32; then
7435       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7436     else
7437       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7438     fi
7439     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7440     ;;
7441    hppa*64*)
7442      shrext='.sl'
7443      hardcode_into_libs=yes
7444      dynamic_linker="$host_os dld.sl"
7445      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7446      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7447      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7448      soname_spec='${libname}${release}${shared_ext}$major'
7449      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7450      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7451      ;;
7452    *)
7453     shrext='.sl'
7454     dynamic_linker="$host_os dld.sl"
7455     shlibpath_var=SHLIB_PATH
7456     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7457     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7458     soname_spec='${libname}${release}${shared_ext}$major'
7459     ;;
7460   esac
7461   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7462   postinstall_cmds='chmod 555 $lib'
7463   ;;
7464
7465 irix5* | irix6* | nonstopux*)
7466   case $host_os in
7467     nonstopux*) version_type=nonstopux ;;
7468     *)
7469         if test "$lt_cv_prog_gnu_ld" = yes; then
7470                 version_type=linux
7471         else
7472                 version_type=irix
7473         fi ;;
7474   esac
7475   need_lib_prefix=no
7476   need_version=no
7477   soname_spec='${libname}${release}${shared_ext}$major'
7478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7479   case $host_os in
7480   irix5* | nonstopux*)
7481     libsuff= shlibsuff=
7482     ;;
7483   *)
7484     case $LD in # libtool.m4 will add one of these switches to LD
7485     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7486       libsuff= shlibsuff= libmagic=32-bit;;
7487     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7488       libsuff=32 shlibsuff=N32 libmagic=N32;;
7489     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7490       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7491     *) libsuff= shlibsuff= libmagic=never-match;;
7492     esac
7493     ;;
7494   esac
7495   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7496   shlibpath_overrides_runpath=no
7497   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7498   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7499   hardcode_into_libs=yes
7500   ;;
7501
7502 # No shared lib support for Linux oldld, aout, or coff.
7503 linux*oldld* | linux*aout* | linux*coff*)
7504   dynamic_linker=no
7505   ;;
7506
7507 # This must be Linux ELF.
7508 linux*)
7509   version_type=linux
7510   need_lib_prefix=no
7511   need_version=no
7512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7513   soname_spec='${libname}${release}${shared_ext}$major'
7514   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7515   shlibpath_var=LD_LIBRARY_PATH
7516   shlibpath_overrides_runpath=no
7517   # This implies no fast_install, which is unacceptable.
7518   # Some rework will be needed to allow for fast_install
7519   # before this can be enabled.
7520   hardcode_into_libs=yes
7521
7522   # We used to test for /lib/ld.so.1 and disable shared libraries on
7523   # powerpc, because MkLinux only supported shared libraries with the
7524   # GNU dynamic linker.  Since this was broken with cross compilers,
7525   # most powerpc-linux boxes support dynamic linking these days and
7526   # people can always --disable-shared, the test was removed, and we
7527   # assume the GNU/Linux dynamic linker is in use.
7528   dynamic_linker='GNU/Linux ld.so'
7529   ;;
7530
7531 netbsd*)
7532   version_type=sunos
7533   need_lib_prefix=no
7534   need_version=no
7535   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7536     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7537     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7538     dynamic_linker='NetBSD (a.out) ld.so'
7539   else
7540     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7541     soname_spec='${libname}${release}${shared_ext}$major'
7542     dynamic_linker='NetBSD ld.elf_so'
7543   fi
7544   shlibpath_var=LD_LIBRARY_PATH
7545   shlibpath_overrides_runpath=yes
7546   hardcode_into_libs=yes
7547   ;;
7548
7549 newsos6)
7550   version_type=linux
7551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7552   shlibpath_var=LD_LIBRARY_PATH
7553   shlibpath_overrides_runpath=yes
7554   ;;
7555
7556 nto-qnx)
7557   version_type=linux
7558   need_lib_prefix=no
7559   need_version=no
7560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7561   soname_spec='${libname}${release}${shared_ext}$major'
7562   shlibpath_var=LD_LIBRARY_PATH
7563   shlibpath_overrides_runpath=yes
7564   ;;
7565
7566 openbsd*)
7567   version_type=sunos
7568   need_lib_prefix=no
7569   need_version=no
7570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7571   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7572   shlibpath_var=LD_LIBRARY_PATH
7573   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7574     case $host_os in
7575       openbsd2.[89] | openbsd2.[89].*)
7576         shlibpath_overrides_runpath=no
7577         ;;
7578       *)
7579         shlibpath_overrides_runpath=yes
7580         ;;
7581       esac
7582   else
7583     shlibpath_overrides_runpath=yes
7584   fi
7585   ;;
7586
7587 os2*)
7588   libname_spec='$name'
7589   shrext=".dll"
7590   need_lib_prefix=no
7591   library_names_spec='$libname${shared_ext} $libname.a'
7592   dynamic_linker='OS/2 ld.exe'
7593   shlibpath_var=LIBPATH
7594   ;;
7595
7596 osf3* | osf4* | osf5*)
7597   version_type=osf
7598   need_lib_prefix=no
7599   need_version=no
7600   soname_spec='${libname}${release}${shared_ext}$major'
7601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7602   shlibpath_var=LD_LIBRARY_PATH
7603   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7604   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7605   ;;
7606
7607 sco3.2v5*)
7608   version_type=osf
7609   soname_spec='${libname}${release}${shared_ext}$major'
7610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7611   shlibpath_var=LD_LIBRARY_PATH
7612   ;;
7613
7614 solaris*)
7615   version_type=linux
7616   need_lib_prefix=no
7617   need_version=no
7618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7619   soname_spec='${libname}${release}${shared_ext}$major'
7620   shlibpath_var=LD_LIBRARY_PATH
7621   shlibpath_overrides_runpath=yes
7622   hardcode_into_libs=yes
7623   # ldd complains unless libraries are executable
7624   postinstall_cmds='chmod +x $lib'
7625   ;;
7626
7627 sunos4*)
7628   version_type=sunos
7629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7630   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7631   shlibpath_var=LD_LIBRARY_PATH
7632   shlibpath_overrides_runpath=yes
7633   if test "$with_gnu_ld" = yes; then
7634     need_lib_prefix=no
7635   fi
7636   need_version=yes
7637   ;;
7638
7639 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7640   version_type=linux
7641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7642   soname_spec='${libname}${release}${shared_ext}$major'
7643   shlibpath_var=LD_LIBRARY_PATH
7644   case $host_vendor in
7645     sni)
7646       shlibpath_overrides_runpath=no
7647       need_lib_prefix=no
7648       export_dynamic_flag_spec='${wl}-Blargedynsym'
7649       runpath_var=LD_RUN_PATH
7650       ;;
7651     siemens)
7652       need_lib_prefix=no
7653       ;;
7654     motorola)
7655       need_lib_prefix=no
7656       need_version=no
7657       shlibpath_overrides_runpath=no
7658       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7659       ;;
7660   esac
7661   ;;
7662
7663 sysv4*MP*)
7664   if test -d /usr/nec ;then
7665     version_type=linux
7666     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7667     soname_spec='$libname${shared_ext}.$major'
7668     shlibpath_var=LD_LIBRARY_PATH
7669   fi
7670   ;;
7671
7672 uts4*)
7673   version_type=linux
7674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7675   soname_spec='${libname}${release}${shared_ext}$major'
7676   shlibpath_var=LD_LIBRARY_PATH
7677   ;;
7678
7679 *)
7680   dynamic_linker=no
7681   ;;
7682 esac
7683 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7684 echo "${ECHO_T}$dynamic_linker" >&6
7685 test "$dynamic_linker" = no && can_build_shared=no
7686
7687 if test "x$enable_dlopen" != xyes; then
7688   enable_dlopen=unknown
7689   enable_dlopen_self=unknown
7690   enable_dlopen_self_static=unknown
7691 else
7692   lt_cv_dlopen=no
7693   lt_cv_dlopen_libs=
7694
7695   case $host_os in
7696   beos*)
7697     lt_cv_dlopen="load_add_on"
7698     lt_cv_dlopen_libs=
7699     lt_cv_dlopen_self=yes
7700     ;;
7701
7702   mingw* | pw32*)
7703     lt_cv_dlopen="LoadLibrary"
7704     lt_cv_dlopen_libs=
7705    ;;
7706
7707   cygwin*)
7708     lt_cv_dlopen="dlopen"
7709     lt_cv_dlopen_libs=
7710    ;;
7711
7712   darwin*)
7713   # if libdl is installed we need to link against it
7714     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7715 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7716 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7717   echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719   ac_check_lib_save_LIBS=$LIBS
7720 LIBS="-ldl  $LIBS"
7721 cat >conftest.$ac_ext <<_ACEOF
7722 #line $LINENO "configure"
7723 /* confdefs.h.  */
7724 _ACEOF
7725 cat confdefs.h >>conftest.$ac_ext
7726 cat >>conftest.$ac_ext <<_ACEOF
7727 /* end confdefs.h.  */
7728
7729 /* Override any gcc2 internal prototype to avoid an error.  */
7730 #ifdef __cplusplus
7731 extern "C"
7732 #endif
7733 /* We use char because int might match the return type of a gcc2
7734    builtin and then its argument prototype would still apply.  */
7735 char dlopen ();
7736 int
7737 main ()
7738 {
7739 dlopen ();
7740   ;
7741   return 0;
7742 }
7743 _ACEOF
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746   (eval $ac_link) 2>&5
7747   ac_status=$?
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); } &&
7750          { ac_try='test -s conftest$ac_exeext'
7751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752   (eval $ac_try) 2>&5
7753   ac_status=$?
7754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755   (exit $ac_status); }; }; then
7756   ac_cv_lib_dl_dlopen=yes
7757 else
7758   echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7760
7761 ac_cv_lib_dl_dlopen=no
7762 fi
7763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7764 LIBS=$ac_check_lib_save_LIBS
7765 fi
7766 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7767 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7768 if test $ac_cv_lib_dl_dlopen = yes; then
7769   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7770 else
7771
7772     lt_cv_dlopen="dyld"
7773     lt_cv_dlopen_libs=
7774     lt_cv_dlopen_self=yes
7775
7776 fi
7777
7778    ;;
7779
7780   *)
7781     echo "$as_me:$LINENO: checking for shl_load" >&5
7782 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7783 if test "${ac_cv_func_shl_load+set}" = set; then
7784   echo $ECHO_N "(cached) $ECHO_C" >&6
7785 else
7786   cat >conftest.$ac_ext <<_ACEOF
7787 #line $LINENO "configure"
7788 /* confdefs.h.  */
7789 _ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h.  */
7793 /* System header to define __stub macros and hopefully few prototypes,
7794     which can conflict with char shl_load (); below.
7795     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7796     <limits.h> exists even on freestanding compilers.  */
7797 #ifdef __STDC__
7798 # include <limits.h>
7799 #else
7800 # include <assert.h>
7801 #endif
7802 /* Override any gcc2 internal prototype to avoid an error.  */
7803 #ifdef __cplusplus
7804 extern "C"
7805 {
7806 #endif
7807 /* We use char because int might match the return type of a gcc2
7808    builtin and then its argument prototype would still apply.  */
7809 char shl_load ();
7810 /* The GNU C library defines this for functions which it implements
7811     to always fail with ENOSYS.  Some functions are actually named
7812     something starting with __ and the normal name is an alias.  */
7813 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7814 choke me
7815 #else
7816 char (*f) () = shl_load;
7817 #endif
7818 #ifdef __cplusplus
7819 }
7820 #endif
7821
7822 int
7823 main ()
7824 {
7825 return f != shl_load;
7826   ;
7827   return 0;
7828 }
7829 _ACEOF
7830 rm -f conftest.$ac_objext conftest$ac_exeext
7831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7832   (eval $ac_link) 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); } &&
7836          { ac_try='test -s conftest$ac_exeext'
7837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838   (eval $ac_try) 2>&5
7839   ac_status=$?
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); }; }; then
7842   ac_cv_func_shl_load=yes
7843 else
7844   echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7846
7847 ac_cv_func_shl_load=no
7848 fi
7849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7850 fi
7851 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7852 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7853 if test $ac_cv_func_shl_load = yes; then
7854   lt_cv_dlopen="shl_load"
7855 else
7856   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7857 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7858 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7859   echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861   ac_check_lib_save_LIBS=$LIBS
7862 LIBS="-ldld  $LIBS"
7863 cat >conftest.$ac_ext <<_ACEOF
7864 #line $LINENO "configure"
7865 /* confdefs.h.  */
7866 _ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h.  */
7870
7871 /* Override any gcc2 internal prototype to avoid an error.  */
7872 #ifdef __cplusplus
7873 extern "C"
7874 #endif
7875 /* We use char because int might match the return type of a gcc2
7876    builtin and then its argument prototype would still apply.  */
7877 char shl_load ();
7878 int
7879 main ()
7880 {
7881 shl_load ();
7882   ;
7883   return 0;
7884 }
7885 _ACEOF
7886 rm -f conftest.$ac_objext conftest$ac_exeext
7887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7888   (eval $ac_link) 2>&5
7889   ac_status=$?
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); } &&
7892          { ac_try='test -s conftest$ac_exeext'
7893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894   (eval $ac_try) 2>&5
7895   ac_status=$?
7896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897   (exit $ac_status); }; }; then
7898   ac_cv_lib_dld_shl_load=yes
7899 else
7900   echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7902
7903 ac_cv_lib_dld_shl_load=no
7904 fi
7905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7906 LIBS=$ac_check_lib_save_LIBS
7907 fi
7908 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7909 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7910 if test $ac_cv_lib_dld_shl_load = yes; then
7911   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7912 else
7913   echo "$as_me:$LINENO: checking for dlopen" >&5
7914 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7915 if test "${ac_cv_func_dlopen+set}" = set; then
7916   echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918   cat >conftest.$ac_ext <<_ACEOF
7919 #line $LINENO "configure"
7920 /* confdefs.h.  */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h.  */
7925 /* System header to define __stub macros and hopefully few prototypes,
7926     which can conflict with char dlopen (); below.
7927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7928     <limits.h> exists even on freestanding compilers.  */
7929 #ifdef __STDC__
7930 # include <limits.h>
7931 #else
7932 # include <assert.h>
7933 #endif
7934 /* Override any gcc2 internal prototype to avoid an error.  */
7935 #ifdef __cplusplus
7936 extern "C"
7937 {
7938 #endif
7939 /* We use char because int might match the return type of a gcc2
7940    builtin and then its argument prototype would still apply.  */
7941 char dlopen ();
7942 /* The GNU C library defines this for functions which it implements
7943     to always fail with ENOSYS.  Some functions are actually named
7944     something starting with __ and the normal name is an alias.  */
7945 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7946 choke me
7947 #else
7948 char (*f) () = dlopen;
7949 #endif
7950 #ifdef __cplusplus
7951 }
7952 #endif
7953
7954 int
7955 main ()
7956 {
7957 return f != dlopen;
7958   ;
7959   return 0;
7960 }
7961 _ACEOF
7962 rm -f conftest.$ac_objext conftest$ac_exeext
7963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7964   (eval $ac_link) 2>&5
7965   ac_status=$?
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); } &&
7968          { ac_try='test -s conftest$ac_exeext'
7969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970   (eval $ac_try) 2>&5
7971   ac_status=$?
7972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973   (exit $ac_status); }; }; then
7974   ac_cv_func_dlopen=yes
7975 else
7976   echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7978
7979 ac_cv_func_dlopen=no
7980 fi
7981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7982 fi
7983 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7984 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7985 if test $ac_cv_func_dlopen = yes; then
7986   lt_cv_dlopen="dlopen"
7987 else
7988   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7989 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7990 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7991   echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993   ac_check_lib_save_LIBS=$LIBS
7994 LIBS="-ldl  $LIBS"
7995 cat >conftest.$ac_ext <<_ACEOF
7996 #line $LINENO "configure"
7997 /* confdefs.h.  */
7998 _ACEOF
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h.  */
8002
8003 /* Override any gcc2 internal prototype to avoid an error.  */
8004 #ifdef __cplusplus
8005 extern "C"
8006 #endif
8007 /* We use char because int might match the return type of a gcc2
8008    builtin and then its argument prototype would still apply.  */
8009 char dlopen ();
8010 int
8011 main ()
8012 {
8013 dlopen ();
8014   ;
8015   return 0;
8016 }
8017 _ACEOF
8018 rm -f conftest.$ac_objext conftest$ac_exeext
8019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8020   (eval $ac_link) 2>&5
8021   ac_status=$?
8022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023   (exit $ac_status); } &&
8024          { ac_try='test -s conftest$ac_exeext'
8025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026   (eval $ac_try) 2>&5
8027   ac_status=$?
8028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029   (exit $ac_status); }; }; then
8030   ac_cv_lib_dl_dlopen=yes
8031 else
8032   echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.$ac_ext >&5
8034
8035 ac_cv_lib_dl_dlopen=no
8036 fi
8037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8038 LIBS=$ac_check_lib_save_LIBS
8039 fi
8040 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8041 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8042 if test $ac_cv_lib_dl_dlopen = yes; then
8043   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8044 else
8045   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8046 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8047 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8048   echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050   ac_check_lib_save_LIBS=$LIBS
8051 LIBS="-lsvld  $LIBS"
8052 cat >conftest.$ac_ext <<_ACEOF
8053 #line $LINENO "configure"
8054 /* confdefs.h.  */
8055 _ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h.  */
8059
8060 /* Override any gcc2 internal prototype to avoid an error.  */
8061 #ifdef __cplusplus
8062 extern "C"
8063 #endif
8064 /* We use char because int might match the return type of a gcc2
8065    builtin and then its argument prototype would still apply.  */
8066 char dlopen ();
8067 int
8068 main ()
8069 {
8070 dlopen ();
8071   ;
8072   return 0;
8073 }
8074 _ACEOF
8075 rm -f conftest.$ac_objext conftest$ac_exeext
8076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8077   (eval $ac_link) 2>&5
8078   ac_status=$?
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); } &&
8081          { ac_try='test -s conftest$ac_exeext'
8082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083   (eval $ac_try) 2>&5
8084   ac_status=$?
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); }; }; then
8087   ac_cv_lib_svld_dlopen=yes
8088 else
8089   echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8091
8092 ac_cv_lib_svld_dlopen=no
8093 fi
8094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8095 LIBS=$ac_check_lib_save_LIBS
8096 fi
8097 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8098 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8099 if test $ac_cv_lib_svld_dlopen = yes; then
8100   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8101 else
8102   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8103 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8104 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8105   echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107   ac_check_lib_save_LIBS=$LIBS
8108 LIBS="-ldld  $LIBS"
8109 cat >conftest.$ac_ext <<_ACEOF
8110 #line $LINENO "configure"
8111 /* confdefs.h.  */
8112 _ACEOF
8113 cat confdefs.h >>conftest.$ac_ext
8114 cat >>conftest.$ac_ext <<_ACEOF
8115 /* end confdefs.h.  */
8116
8117 /* Override any gcc2 internal prototype to avoid an error.  */
8118 #ifdef __cplusplus
8119 extern "C"
8120 #endif
8121 /* We use char because int might match the return type of a gcc2
8122    builtin and then its argument prototype would still apply.  */
8123 char dld_link ();
8124 int
8125 main ()
8126 {
8127 dld_link ();
8128   ;
8129   return 0;
8130 }
8131 _ACEOF
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8134   (eval $ac_link) 2>&5
8135   ac_status=$?
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); } &&
8138          { ac_try='test -s conftest$ac_exeext'
8139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140   (eval $ac_try) 2>&5
8141   ac_status=$?
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); }; }; then
8144   ac_cv_lib_dld_dld_link=yes
8145 else
8146   echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8148
8149 ac_cv_lib_dld_dld_link=no
8150 fi
8151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8152 LIBS=$ac_check_lib_save_LIBS
8153 fi
8154 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8155 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8156 if test $ac_cv_lib_dld_dld_link = yes; then
8157   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8158 fi
8159
8160
8161 fi
8162
8163
8164 fi
8165
8166
8167 fi
8168
8169
8170 fi
8171
8172
8173 fi
8174
8175     ;;
8176   esac
8177
8178   if test "x$lt_cv_dlopen" != xno; then
8179     enable_dlopen=yes
8180   else
8181     enable_dlopen=no
8182   fi
8183
8184   case $lt_cv_dlopen in
8185   dlopen)
8186     save_CPPFLAGS="$CPPFLAGS"
8187     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8188
8189     save_LDFLAGS="$LDFLAGS"
8190     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8191
8192     save_LIBS="$LIBS"
8193     LIBS="$lt_cv_dlopen_libs $LIBS"
8194
8195     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8196 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8197 if test "${lt_cv_dlopen_self+set}" = set; then
8198   echo $ECHO_N "(cached) $ECHO_C" >&6
8199 else
8200           if test "$cross_compiling" = yes; then :
8201   lt_cv_dlopen_self=cross
8202 else
8203   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8204   lt_status=$lt_dlunknown
8205   cat > conftest.$ac_ext <<EOF
8206 #line 8206 "configure"
8207 #include "confdefs.h"
8208
8209 #if HAVE_DLFCN_H
8210 #include <dlfcn.h>
8211 #endif
8212
8213 #include <stdio.h>
8214
8215 #ifdef RTLD_GLOBAL
8216 #  define LT_DLGLOBAL           RTLD_GLOBAL
8217 #else
8218 #  ifdef DL_GLOBAL
8219 #    define LT_DLGLOBAL         DL_GLOBAL
8220 #  else
8221 #    define LT_DLGLOBAL         0
8222 #  endif
8223 #endif
8224
8225 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8226    find out it does not work in some platform. */
8227 #ifndef LT_DLLAZY_OR_NOW
8228 #  ifdef RTLD_LAZY
8229 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8230 #  else
8231 #    ifdef DL_LAZY
8232 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8233 #    else
8234 #      ifdef RTLD_NOW
8235 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8236 #      else
8237 #        ifdef DL_NOW
8238 #          define LT_DLLAZY_OR_NOW      DL_NOW
8239 #        else
8240 #          define LT_DLLAZY_OR_NOW      0
8241 #        endif
8242 #      endif
8243 #    endif
8244 #  endif
8245 #endif
8246
8247 #ifdef __cplusplus
8248 extern "C" void exit (int);
8249 #endif
8250
8251 void fnord() { int i=42;}
8252 int main ()
8253 {
8254   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8255   int status = $lt_dlunknown;
8256
8257   if (self)
8258     {
8259       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8260       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8261       /* dlclose (self); */
8262     }
8263
8264     exit (status);
8265 }
8266 EOF
8267   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8268   (eval $ac_link) 2>&5
8269   ac_status=$?
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8272     (./conftest; exit; ) 2>/dev/null
8273     lt_status=$?
8274     case x$lt_status in
8275       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8276       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8277       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8278     esac
8279   else :
8280     # compilation failed
8281     lt_cv_dlopen_self=no
8282   fi
8283 fi
8284 rm -fr conftest*
8285
8286
8287 fi
8288 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8289 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8290
8291     if test "x$lt_cv_dlopen_self" = xyes; then
8292       LDFLAGS="$LDFLAGS $link_static_flag"
8293       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8294 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8295 if test "${lt_cv_dlopen_self_static+set}" = set; then
8296   echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298           if test "$cross_compiling" = yes; then :
8299   lt_cv_dlopen_self_static=cross
8300 else
8301   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8302   lt_status=$lt_dlunknown
8303   cat > conftest.$ac_ext <<EOF
8304 #line 8304 "configure"
8305 #include "confdefs.h"
8306
8307 #if HAVE_DLFCN_H
8308 #include <dlfcn.h>
8309 #endif
8310
8311 #include <stdio.h>
8312
8313 #ifdef RTLD_GLOBAL
8314 #  define LT_DLGLOBAL           RTLD_GLOBAL
8315 #else
8316 #  ifdef DL_GLOBAL
8317 #    define LT_DLGLOBAL         DL_GLOBAL
8318 #  else
8319 #    define LT_DLGLOBAL         0
8320 #  endif
8321 #endif
8322
8323 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8324    find out it does not work in some platform. */
8325 #ifndef LT_DLLAZY_OR_NOW
8326 #  ifdef RTLD_LAZY
8327 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8328 #  else
8329 #    ifdef DL_LAZY
8330 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8331 #    else
8332 #      ifdef RTLD_NOW
8333 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8334 #      else
8335 #        ifdef DL_NOW
8336 #          define LT_DLLAZY_OR_NOW      DL_NOW
8337 #        else
8338 #          define LT_DLLAZY_OR_NOW      0
8339 #        endif
8340 #      endif
8341 #    endif
8342 #  endif
8343 #endif
8344
8345 #ifdef __cplusplus
8346 extern "C" void exit (int);
8347 #endif
8348
8349 void fnord() { int i=42;}
8350 int main ()
8351 {
8352   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8353   int status = $lt_dlunknown;
8354
8355   if (self)
8356     {
8357       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8358       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8359       /* dlclose (self); */
8360     }
8361
8362     exit (status);
8363 }
8364 EOF
8365   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8366   (eval $ac_link) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8370     (./conftest; exit; ) 2>/dev/null
8371     lt_status=$?
8372     case x$lt_status in
8373       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8374       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8375       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8376     esac
8377   else :
8378     # compilation failed
8379     lt_cv_dlopen_self_static=no
8380   fi
8381 fi
8382 rm -fr conftest*
8383
8384
8385 fi
8386 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8387 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8388     fi
8389
8390     CPPFLAGS="$save_CPPFLAGS"
8391     LDFLAGS="$save_LDFLAGS"
8392     LIBS="$save_LIBS"
8393     ;;
8394   esac
8395
8396   case $lt_cv_dlopen_self in
8397   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8398   *) enable_dlopen_self=unknown ;;
8399   esac
8400
8401   case $lt_cv_dlopen_self_static in
8402   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8403   *) enable_dlopen_self_static=unknown ;;
8404   esac
8405 fi
8406
8407
8408 # Report which librarie types wil actually be built
8409 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8410 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8411 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8412 echo "${ECHO_T}$can_build_shared" >&6
8413
8414 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8415 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8416 test "$can_build_shared" = "no" && enable_shared=no
8417
8418 # On AIX, shared libraries and static libraries use the same namespace, and
8419 # are all built from PIC.
8420 case "$host_os" in
8421 aix3*)
8422   test "$enable_shared" = yes && enable_static=no
8423   if test -n "$RANLIB"; then
8424     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8425     postinstall_cmds='$RANLIB $lib'
8426   fi
8427   ;;
8428
8429 aix4*)
8430   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8431     test "$enable_shared" = yes && enable_static=no
8432   fi
8433   ;;
8434   darwin* | rhapsody*)
8435   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8436     archive_cmds_need_lc=no
8437     case "$host_os" in
8438     rhapsody* | darwin1.[012])
8439       allow_undefined_flag='-undefined suppress'
8440       ;;
8441     *) # Darwin 1.3 on
8442       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8443       ;;
8444     esac
8445     # FIXME: Relying on posixy $() will cause problems for
8446     #        cross-compilation, but unfortunately the echo tests do not
8447     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8448     #          `"' quotes if we put them in here... so don't!
8449                 output_verbose_link_cmd='echo'
8450     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8451     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8452     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8453                   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}'
8454                   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}'
8455     hardcode_direct=no
8456     hardcode_automatic=yes
8457     hardcode_shlibpath_var=unsupported
8458     whole_archive_flag_spec='-all_load $convenience'
8459     link_all_deplibs=yes
8460     fi
8461     ;;
8462 esac
8463 echo "$as_me:$LINENO: result: $enable_shared" >&5
8464 echo "${ECHO_T}$enable_shared" >&6
8465
8466 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8467 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8468 # Make sure either enable_shared or enable_static is yes.
8469 test "$enable_shared" = yes || enable_static=yes
8470 echo "$as_me:$LINENO: result: $enable_static" >&5
8471 echo "${ECHO_T}$enable_static" >&6
8472
8473 # The else clause should only fire when bootstrapping the
8474 # libtool distribution, otherwise you forgot to ship ltmain.sh
8475 # with your package, and you will get complaints that there are
8476 # no rules to generate ltmain.sh.
8477 if test -f "$ltmain"; then
8478   # See if we are running on zsh, and set the options which allow our commands through
8479   # without removal of \ escapes.
8480   if test -n "${ZSH_VERSION+set}" ; then
8481     setopt NO_GLOB_SUBST
8482   fi
8483   # Now quote all the things that may contain metacharacters while being
8484   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8485   # variables and quote the copies for generation of the libtool script.
8486   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8487     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8488     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8489     deplibs_check_method reload_flag reload_cmds need_locks \
8490     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8491     lt_cv_sys_global_symbol_to_c_name_address \
8492     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8493     old_postinstall_cmds old_postuninstall_cmds \
8494     compiler \
8495     CC \
8496     LD \
8497     lt_prog_compiler_wl \
8498     lt_prog_compiler_pic \
8499     lt_prog_compiler_static \
8500     lt_prog_compiler_no_builtin_flag \
8501     export_dynamic_flag_spec \
8502     thread_safe_flag_spec \
8503     whole_archive_flag_spec \
8504     enable_shared_with_static_runtimes \
8505     old_archive_cmds \
8506     old_archive_from_new_cmds \
8507     predep_objects \
8508     postdep_objects \
8509     predeps \
8510     postdeps \
8511     compiler_lib_search_path \
8512     archive_cmds \
8513     archive_expsym_cmds \
8514     postinstall_cmds \
8515     postuninstall_cmds \
8516     old_archive_from_expsyms_cmds \
8517     allow_undefined_flag \
8518     no_undefined_flag \
8519     export_symbols_cmds \
8520     hardcode_libdir_flag_spec \
8521     hardcode_libdir_flag_spec_ld \
8522     hardcode_libdir_separator \
8523     hardcode_automatic \
8524     module_cmds \
8525     module_expsym_cmds \
8526     lt_cv_prog_compiler_c_o \
8527     exclude_expsyms \
8528     include_expsyms; do
8529
8530     case $var in
8531     old_archive_cmds | \
8532     old_archive_from_new_cmds | \
8533     archive_cmds | \
8534     archive_expsym_cmds | \
8535     module_cmds | \
8536     module_expsym_cmds | \
8537     old_archive_from_expsyms_cmds | \
8538     export_symbols_cmds | \
8539     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8540     postinstall_cmds | postuninstall_cmds | \
8541     old_postinstall_cmds | old_postuninstall_cmds | \
8542     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8543       # Double-quote double-evaled strings.
8544       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8545       ;;
8546     *)
8547       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8548       ;;
8549     esac
8550   done
8551
8552   case $lt_echo in
8553   *'\$0 --fallback-echo"')
8554     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8555     ;;
8556   esac
8557
8558 cfgfile="${ofile}T"
8559   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8560   $rm -f "$cfgfile"
8561   { echo "$as_me:$LINENO: creating $ofile" >&5
8562 echo "$as_me: creating $ofile" >&6;}
8563
8564   cat <<__EOF__ >> "$cfgfile"
8565 #! $SHELL
8566
8567 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8568 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8569 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8570 #
8571 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8572 # Free Software Foundation, Inc.
8573 #
8574 # This file is part of GNU Libtool:
8575 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8576 #
8577 # This program is free software; you can redistribute it and/or modify
8578 # it under the terms of the GNU General Public License as published by
8579 # the Free Software Foundation; either version 2 of the License, or
8580 # (at your option) any later version.
8581 #
8582 # This program is distributed in the hope that it will be useful, but
8583 # WITHOUT ANY WARRANTY; without even the implied warranty of
8584 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8585 # General Public License for more details.
8586 #
8587 # You should have received a copy of the GNU General Public License
8588 # along with this program; if not, write to the Free Software
8589 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8590 #
8591 # As a special exception to the GNU General Public License, if you
8592 # distribute this file as part of a program that contains a
8593 # configuration script generated by Autoconf, you may include it under
8594 # the same distribution terms that you use for the rest of that program.
8595
8596 # A sed program that does not truncate output.
8597 SED=$lt_SED
8598
8599 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8600 Xsed="$SED -e s/^X//"
8601
8602 # The HP-UX ksh and POSIX shell print the target directory to stdout
8603 # if CDPATH is set.
8604 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8605
8606 # The names of the tagged configurations supported by this script.
8607 available_tags=
8608
8609 # ### BEGIN LIBTOOL CONFIG
8610
8611 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8612
8613 # Shell to use when invoking shell scripts.
8614 SHELL=$lt_SHELL
8615
8616 # Whether or not to build shared libraries.
8617 build_libtool_libs=$enable_shared
8618
8619 # Whether or not to build static libraries.
8620 build_old_libs=$enable_static
8621
8622 # Whether or not to add -lc for building shared libraries.
8623 build_libtool_need_lc=$archive_cmds_need_lc
8624
8625 # Whether or not to disallow shared libs when runtime libs are static
8626 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8627
8628 # Whether or not to optimize for fast installation.
8629 fast_install=$enable_fast_install
8630
8631 # The host system.
8632 host_alias=$host_alias
8633 host=$host
8634
8635 # An echo program that does not interpret backslashes.
8636 echo=$lt_echo
8637
8638 # The archiver.
8639 AR=$lt_AR
8640 AR_FLAGS=$lt_AR_FLAGS
8641
8642 # A C compiler.
8643 LTCC=$lt_LTCC
8644
8645 # A language-specific compiler.
8646 CC=$lt_compiler
8647
8648 # Is the compiler the GNU C compiler?
8649 with_gcc=$GCC
8650
8651 # An ERE matcher.
8652 EGREP=$lt_EGREP
8653
8654 # The linker used to build libraries.
8655 LD=$lt_LD
8656
8657 # Whether we need hard or soft links.
8658 LN_S=$lt_LN_S
8659
8660 # A BSD-compatible nm program.
8661 NM=$lt_NM
8662
8663 # A symbol stripping program
8664 STRIP=$STRIP
8665
8666 # Used to examine libraries when file_magic_cmd begins "file"
8667 MAGIC_CMD=$MAGIC_CMD
8668
8669 # Used on cygwin: DLL creation program.
8670 DLLTOOL="$DLLTOOL"
8671
8672 # Used on cygwin: object dumper.
8673 OBJDUMP="$OBJDUMP"
8674
8675 # Used on cygwin: assembler.
8676 AS="$AS"
8677
8678 # The name of the directory that contains temporary libtool files.
8679 objdir=$objdir
8680
8681 # How to create reloadable object files.
8682 reload_flag=$lt_reload_flag
8683 reload_cmds=$lt_reload_cmds
8684
8685 # How to pass a linker flag through the compiler.
8686 wl=$lt_lt_prog_compiler_wl
8687
8688 # Object file suffix (normally "o").
8689 objext="$ac_objext"
8690
8691 # Old archive suffix (normally "a").
8692 libext="$libext"
8693
8694 # Shared library suffix (normally ".so").
8695 shrext='$shrext'
8696
8697 # Executable file suffix (normally "").
8698 exeext="$exeext"
8699
8700 # Additional compiler flags for building library objects.
8701 pic_flag=$lt_lt_prog_compiler_pic
8702 pic_mode=$pic_mode
8703
8704 # What is the maximum length of a command?
8705 max_cmd_len=$lt_cv_sys_max_cmd_len
8706
8707 # Does compiler simultaneously support -c and -o options?
8708 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8709
8710 # Must we lock files when doing compilation ?
8711 need_locks=$lt_need_locks
8712
8713 # Do we need the lib prefix for modules?
8714 need_lib_prefix=$need_lib_prefix
8715
8716 # Do we need a version for libraries?
8717 need_version=$need_version
8718
8719 # Whether dlopen is supported.
8720 dlopen_support=$enable_dlopen
8721
8722 # Whether dlopen of programs is supported.
8723 dlopen_self=$enable_dlopen_self
8724
8725 # Whether dlopen of statically linked programs is supported.
8726 dlopen_self_static=$enable_dlopen_self_static
8727
8728 # Compiler flag to prevent dynamic linking.
8729 link_static_flag=$lt_lt_prog_compiler_static
8730
8731 # Compiler flag to turn off builtin functions.
8732 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8733
8734 # Compiler flag to allow reflexive dlopens.
8735 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8736
8737 # Compiler flag to generate shared objects directly from archives.
8738 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8739
8740 # Compiler flag to generate thread-safe objects.
8741 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8742
8743 # Library versioning type.
8744 version_type=$version_type
8745
8746 # Format of library name prefix.
8747 libname_spec=$lt_libname_spec
8748
8749 # List of archive names.  First name is the real one, the rest are links.
8750 # The last name is the one that the linker finds with -lNAME.
8751 library_names_spec=$lt_library_names_spec
8752
8753 # The coded name of the library, if different from the real name.
8754 soname_spec=$lt_soname_spec
8755
8756 # Commands used to build and install an old-style archive.
8757 RANLIB=$lt_RANLIB
8758 old_archive_cmds=$lt_old_archive_cmds
8759 old_postinstall_cmds=$lt_old_postinstall_cmds
8760 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8761
8762 # Create an old-style archive from a shared archive.
8763 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8764
8765 # Create a temporary old-style archive to link instead of a shared archive.
8766 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8767
8768 # Commands used to build and install a shared archive.
8769 archive_cmds=$lt_archive_cmds
8770 archive_expsym_cmds=$lt_archive_expsym_cmds
8771 postinstall_cmds=$lt_postinstall_cmds
8772 postuninstall_cmds=$lt_postuninstall_cmds
8773
8774 # Commands used to build a loadable module (assumed same as above if empty)
8775 module_cmds=$lt_module_cmds
8776 module_expsym_cmds=$lt_module_expsym_cmds
8777
8778 # Commands to strip libraries.
8779 old_striplib=$lt_old_striplib
8780 striplib=$lt_striplib
8781
8782 # Dependencies to place before the objects being linked to create a
8783 # shared library.
8784 predep_objects=$lt_predep_objects
8785
8786 # Dependencies to place after the objects being linked to create a
8787 # shared library.
8788 postdep_objects=$lt_postdep_objects
8789
8790 # Dependencies to place before the objects being linked to create a
8791 # shared library.
8792 predeps=$lt_predeps
8793
8794 # Dependencies to place after the objects being linked to create a
8795 # shared library.
8796 postdeps=$lt_postdeps
8797
8798 # The library search path used internally by the compiler when linking
8799 # a shared library.
8800 compiler_lib_search_path=$lt_compiler_lib_search_path
8801
8802 # Method to check whether dependent libraries are shared objects.
8803 deplibs_check_method=$lt_deplibs_check_method
8804
8805 # Command to use when deplibs_check_method == file_magic.
8806 file_magic_cmd=$lt_file_magic_cmd
8807
8808 # Flag that allows shared libraries with undefined symbols to be built.
8809 allow_undefined_flag=$lt_allow_undefined_flag
8810
8811 # Flag that forces no undefined symbols.
8812 no_undefined_flag=$lt_no_undefined_flag
8813
8814 # Commands used to finish a libtool library installation in a directory.
8815 finish_cmds=$lt_finish_cmds
8816
8817 # Same as above, but a single script fragment to be evaled but not shown.
8818 finish_eval=$lt_finish_eval
8819
8820 # Take the output of nm and produce a listing of raw symbols and C names.
8821 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8822
8823 # Transform the output of nm in a proper C declaration
8824 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8825
8826 # Transform the output of nm in a C name address pair
8827 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8828
8829 # This is the shared library runtime path variable.
8830 runpath_var=$runpath_var
8831
8832 # This is the shared library path variable.
8833 shlibpath_var=$shlibpath_var
8834
8835 # Is shlibpath searched before the hard-coded library search path?
8836 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8837
8838 # How to hardcode a shared library path into an executable.
8839 hardcode_action=$hardcode_action
8840
8841 # Whether we should hardcode library paths into libraries.
8842 hardcode_into_libs=$hardcode_into_libs
8843
8844 # Flag to hardcode \$libdir into a binary during linking.
8845 # This must work even if \$libdir does not exist.
8846 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8847
8848 # If ld is used when linking, flag to hardcode \$libdir into
8849 # a binary during linking. This must work even if \$libdir does
8850 # not exist.
8851 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8852
8853 # Whether we need a single -rpath flag with a separated argument.
8854 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8855
8856 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8857 # resulting binary.
8858 hardcode_direct=$hardcode_direct
8859
8860 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8861 # resulting binary.
8862 hardcode_minus_L=$hardcode_minus_L
8863
8864 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8865 # the resulting binary.
8866 hardcode_shlibpath_var=$hardcode_shlibpath_var
8867
8868 # Set to yes if building a shared library automatically hardcodes DIR into the library
8869 # and all subsequent libraries and executables linked against it.
8870 hardcode_automatic=$hardcode_automatic
8871
8872 # Variables whose values should be saved in libtool wrapper scripts and
8873 # restored at relink time.
8874 variables_saved_for_relink="$variables_saved_for_relink"
8875
8876 # Whether libtool must link a program against all its dependency libraries.
8877 link_all_deplibs=$link_all_deplibs
8878
8879 # Compile-time system search path for libraries
8880 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8881
8882 # Run-time system search path for libraries
8883 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8884
8885 # Fix the shell variable \$srcfile for the compiler.
8886 fix_srcfile_path="$fix_srcfile_path"
8887
8888 # Set to yes if exported symbols are required.
8889 always_export_symbols=$always_export_symbols
8890
8891 # The commands to list exported symbols.
8892 export_symbols_cmds=$lt_export_symbols_cmds
8893
8894 # The commands to extract the exported symbol list from a shared archive.
8895 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8896
8897 # Symbols that should not be listed in the preloaded symbols.
8898 exclude_expsyms=$lt_exclude_expsyms
8899
8900 # Symbols that must always be exported.
8901 include_expsyms=$lt_include_expsyms
8902
8903 # ### END LIBTOOL CONFIG
8904
8905 __EOF__
8906
8907
8908   case $host_os in
8909   aix3*)
8910     cat <<\EOF >> "$cfgfile"
8911
8912 # AIX sometimes has problems with the GCC collect2 program.  For some
8913 # reason, if we set the COLLECT_NAMES environment variable, the problems
8914 # vanish in a puff of smoke.
8915 if test "X${COLLECT_NAMES+set}" != Xset; then
8916   COLLECT_NAMES=
8917   export COLLECT_NAMES
8918 fi
8919 EOF
8920     ;;
8921   esac
8922
8923   # We use sed instead of cat because bash on DJGPP gets confused if
8924   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8925   # text mode, it properly converts lines to CR/LF.  This bash problem
8926   # is reportedly fixed, but why not run on old versions too?
8927   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8928
8929   mv -f "$cfgfile" "$ofile" || \
8930     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8931   chmod +x "$ofile"
8932
8933 else
8934   # If there is no Makefile yet, we rely on a make rule to execute
8935   # `config.status --recheck' to rerun these tests and create the
8936   # libtool script then.
8937   test -f Makefile && make "$ltmain"
8938 fi
8939
8940
8941 ac_ext=c
8942 ac_cpp='$CPP $CPPFLAGS'
8943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8946
8947 CC="$lt_save_CC"
8948
8949
8950 # Check whether --with-tags or --without-tags was given.
8951 if test "${with_tags+set}" = set; then
8952   withval="$with_tags"
8953   tagnames="$withval"
8954 fi;
8955
8956 if test -f "$ltmain" && test -n "$tagnames"; then
8957   if test ! -f "${ofile}"; then
8958     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8959 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8960   fi
8961
8962   if test -z "$LTCC"; then
8963     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8964     if test -z "$LTCC"; then
8965       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8966 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8967     else
8968       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8969 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8970     fi
8971   fi
8972
8973   # Extract list of available tagged configurations in $ofile.
8974   # Note that this assumes the entire list is on one line.
8975   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8976
8977   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8978   for tagname in $tagnames; do
8979     IFS="$lt_save_ifs"
8980     # Check whether tagname contains only valid characters
8981     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8982     "") ;;
8983     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8984 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8985    { (exit 1); exit 1; }; }
8986         ;;
8987     esac
8988
8989     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8990     then
8991       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8992 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8993    { (exit 1); exit 1; }; }
8994     fi
8995
8996     # Update the list of available tags.
8997     if test -n "$tagname"; then
8998       echo appending configuration tag \"$tagname\" to $ofile
8999
9000       case $tagname in
9001       CXX)
9002         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9003           ac_ext=cc
9004 ac_cpp='$CXXCPP $CPPFLAGS'
9005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9008
9009
9010
9011
9012 archive_cmds_need_lc_CXX=no
9013 allow_undefined_flag_CXX=
9014 always_export_symbols_CXX=no
9015 archive_expsym_cmds_CXX=
9016 export_dynamic_flag_spec_CXX=
9017 hardcode_direct_CXX=no
9018 hardcode_libdir_flag_spec_CXX=
9019 hardcode_libdir_flag_spec_ld_CXX=
9020 hardcode_libdir_separator_CXX=
9021 hardcode_minus_L_CXX=no
9022 hardcode_automatic_CXX=no
9023 module_cmds_CXX=
9024 module_expsym_cmds_CXX=
9025 link_all_deplibs_CXX=unknown
9026 old_archive_cmds_CXX=$old_archive_cmds
9027 no_undefined_flag_CXX=
9028 whole_archive_flag_spec_CXX=
9029 enable_shared_with_static_runtimes_CXX=no
9030
9031 # Dependencies to place before and after the object being linked:
9032 predep_objects_CXX=
9033 postdep_objects_CXX=
9034 predeps_CXX=
9035 postdeps_CXX=
9036 compiler_lib_search_path_CXX=
9037
9038 # Source file extension for C++ test sources.
9039 ac_ext=cc
9040
9041 # Object file extension for compiled C++ test sources.
9042 objext=o
9043 objext_CXX=$objext
9044
9045 # Code to be used in simple compile tests
9046 lt_simple_compile_test_code="int some_variable = 0;\n"
9047
9048 # Code to be used in simple link tests
9049 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9050
9051 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9052
9053 # If no C compiler was specified, use CC.
9054 LTCC=${LTCC-"$CC"}
9055
9056 # Allow CC to be a program name with arguments.
9057 compiler=$CC
9058
9059
9060 # Allow CC to be a program name with arguments.
9061 lt_save_CC=$CC
9062 lt_save_LD=$LD
9063 lt_save_GCC=$GCC
9064 GCC=$GXX
9065 lt_save_with_gnu_ld=$with_gnu_ld
9066 lt_save_path_LD=$lt_cv_path_LD
9067 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9068   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9069 else
9070   unset lt_cv_prog_gnu_ld
9071 fi
9072 if test -n "${lt_cv_path_LDCXX+set}"; then
9073   lt_cv_path_LD=$lt_cv_path_LDCXX
9074 else
9075   unset lt_cv_path_LD
9076 fi
9077 test -z "${LDCXX+set}" || LD=$LDCXX
9078 CC=${CXX-"c++"}
9079 compiler=$CC
9080 compiler_CXX=$CC
9081 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9082
9083 # We don't want -fno-exception wen compiling C++ code, so set the
9084 # no_builtin_flag separately
9085 if test "$GXX" = yes; then
9086   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9087 else
9088   lt_prog_compiler_no_builtin_flag_CXX=
9089 fi
9090
9091 if test "$GXX" = yes; then
9092   # Set up default GNU C++ configuration
9093
9094
9095 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9096 if test "${with_gnu_ld+set}" = set; then
9097   withval="$with_gnu_ld"
9098   test "$withval" = no || with_gnu_ld=yes
9099 else
9100   with_gnu_ld=no
9101 fi;
9102 ac_prog=ld
9103 if test "$GCC" = yes; then
9104   # Check if gcc -print-prog-name=ld gives a path.
9105   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9106 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9107   case $host in
9108   *-*-mingw*)
9109     # gcc leaves a trailing carriage return which upsets mingw
9110     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9111   *)
9112     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9113   esac
9114   case $ac_prog in
9115     # Accept absolute paths.
9116     [\\/]* | ?:[\\/]*)
9117       re_direlt='/[^/][^/]*/\.\./'
9118       # Canonicalize the path of ld
9119       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9120       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9121         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9122       done
9123       test -z "$LD" && LD="$ac_prog"
9124       ;;
9125   "")
9126     # If it fails, then pretend we aren't using GCC.
9127     ac_prog=ld
9128     ;;
9129   *)
9130     # If it is relative, then search for the first ld in PATH.
9131     with_gnu_ld=unknown
9132     ;;
9133   esac
9134 elif test "$with_gnu_ld" = yes; then
9135   echo "$as_me:$LINENO: checking for GNU ld" >&5
9136 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9137 else
9138   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9139 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9140 fi
9141 if test "${lt_cv_path_LD+set}" = set; then
9142   echo $ECHO_N "(cached) $ECHO_C" >&6
9143 else
9144   if test -z "$LD"; then
9145   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9146   for ac_dir in $PATH; do
9147     IFS="$lt_save_ifs"
9148     test -z "$ac_dir" && ac_dir=.
9149     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9150       lt_cv_path_LD="$ac_dir/$ac_prog"
9151       # Check to see if the program is GNU ld.  I'd rather use --version,
9152       # but apparently some GNU ld's only accept -v.
9153       # Break only if it was the GNU/non-GNU ld that we prefer.
9154       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9155       *GNU* | *'with BFD'*)
9156         test "$with_gnu_ld" != no && break
9157         ;;
9158       *)
9159         test "$with_gnu_ld" != yes && break
9160         ;;
9161       esac
9162     fi
9163   done
9164   IFS="$lt_save_ifs"
9165 else
9166   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9167 fi
9168 fi
9169
9170 LD="$lt_cv_path_LD"
9171 if test -n "$LD"; then
9172   echo "$as_me:$LINENO: result: $LD" >&5
9173 echo "${ECHO_T}$LD" >&6
9174 else
9175   echo "$as_me:$LINENO: result: no" >&5
9176 echo "${ECHO_T}no" >&6
9177 fi
9178 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9179 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9180    { (exit 1); exit 1; }; }
9181 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9182 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9183 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9184   echo $ECHO_N "(cached) $ECHO_C" >&6
9185 else
9186   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9187 case `"$LD" -v 2>&1 </dev/null` in
9188 *GNU* | *'with BFD'*)
9189   lt_cv_prog_gnu_ld=yes
9190   ;;
9191 *)
9192   lt_cv_prog_gnu_ld=no
9193   ;;
9194 esac
9195 fi
9196 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9197 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9198 with_gnu_ld=$lt_cv_prog_gnu_ld
9199
9200
9201
9202   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9203   # archiving commands below assume that GNU ld is being used.
9204   if test "$with_gnu_ld" = yes; then
9205     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9206     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'
9207
9208     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9209     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9210
9211     # If archive_cmds runs LD, not CC, wlarc should be empty
9212     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9213     #     investigate it a little bit more. (MM)
9214     wlarc='${wl}'
9215
9216     # ancient GNU ld didn't support --whole-archive et. al.
9217     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9218         grep 'no-whole-archive' > /dev/null; then
9219       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9220     else
9221       whole_archive_flag_spec_CXX=
9222     fi
9223   else
9224     with_gnu_ld=no
9225     wlarc=
9226
9227     # A generic and very simple default shared library creation
9228     # command for GNU C++ for the case where it uses the native
9229     # linker, instead of GNU ld.  If possible, this setting should
9230     # overridden to take advantage of the native linker features on
9231     # the platform it is being used on.
9232     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9233   fi
9234
9235   # Commands to make compiler produce verbose output that lists
9236   # what "hidden" libraries, object files and flags are used when
9237   # linking a shared library.
9238   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9239
9240 else
9241   GXX=no
9242   with_gnu_ld=no
9243   wlarc=
9244 fi
9245
9246 # PORTME: fill in a description of your system's C++ link characteristics
9247 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9248 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9249 ld_shlibs_CXX=yes
9250 case $host_os in
9251   aix3*)
9252     # FIXME: insert proper C++ library support
9253     ld_shlibs_CXX=no
9254     ;;
9255   aix4* | aix5*)
9256     if test "$host_cpu" = ia64; then
9257       # On IA64, the linker does run time linking by default, so we don't
9258       # have to do anything special.
9259       aix_use_runtimelinking=no
9260       exp_sym_flag='-Bexport'
9261       no_entry_flag=""
9262     else
9263       aix_use_runtimelinking=no
9264
9265       # Test if we are trying to use run time linking or normal
9266       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9267       # need to do runtime linking.
9268       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9269         for ld_flag in $LDFLAGS; do
9270           case $ld_flag in
9271           *-brtl*)
9272             aix_use_runtimelinking=yes
9273             break
9274             ;;
9275           esac
9276         done
9277       esac
9278
9279       exp_sym_flag='-bexport'
9280       no_entry_flag='-bnoentry'
9281     fi
9282
9283     # When large executables or shared objects are built, AIX ld can
9284     # have problems creating the table of contents.  If linking a library
9285     # or program results in "error TOC overflow" add -mminimal-toc to
9286     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9287     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9288
9289     archive_cmds_CXX=''
9290     hardcode_direct_CXX=yes
9291     hardcode_libdir_separator_CXX=':'
9292     link_all_deplibs_CXX=yes
9293
9294     if test "$GXX" = yes; then
9295       case $host_os in aix4.012|aix4.012.*)
9296       # We only want to do this on AIX 4.2 and lower, the check
9297       # below for broken collect2 doesn't work under 4.3+
9298         collect2name=`${CC} -print-prog-name=collect2`
9299         if test -f "$collect2name" && \
9300            strings "$collect2name" | grep resolve_lib_name >/dev/null
9301         then
9302           # We have reworked collect2
9303           hardcode_direct_CXX=yes
9304         else
9305           # We have old collect2
9306           hardcode_direct_CXX=unsupported
9307           # It fails to find uninstalled libraries when the uninstalled
9308           # path is not listed in the libpath.  Setting hardcode_minus_L
9309           # to unsupported forces relinking
9310           hardcode_minus_L_CXX=yes
9311           hardcode_libdir_flag_spec_CXX='-L$libdir'
9312           hardcode_libdir_separator_CXX=
9313         fi
9314       esac
9315       shared_flag='-shared'
9316     else
9317       # not using gcc
9318       if test "$host_cpu" = ia64; then
9319         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9320         # chokes on -Wl,-G. The following line is correct:
9321         shared_flag='-G'
9322       else
9323         if test "$aix_use_runtimelinking" = yes; then
9324           shared_flag='${wl}-G'
9325         else
9326           shared_flag='${wl}-bM:SRE'
9327         fi
9328       fi
9329     fi
9330
9331     # It seems that -bexpall does not export symbols beginning with
9332     # underscore (_), so it is better to generate a list of symbols to export.
9333     always_export_symbols_CXX=yes
9334     if test "$aix_use_runtimelinking" = yes; then
9335       # Warning - without using the other runtime loading flags (-brtl),
9336       # -berok will link without error, but may produce a broken library.
9337       allow_undefined_flag_CXX='-berok'
9338       # Determine the default libpath from the value encoded in an empty executable.
9339       cat >conftest.$ac_ext <<_ACEOF
9340 #line $LINENO "configure"
9341 /* confdefs.h.  */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h.  */
9346
9347 int
9348 main ()
9349 {
9350
9351   ;
9352   return 0;
9353 }
9354 _ACEOF
9355 rm -f conftest.$ac_objext conftest$ac_exeext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9357   (eval $ac_link) 2>&5
9358   ac_status=$?
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); } &&
9361          { ac_try='test -s conftest$ac_exeext'
9362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363   (eval $ac_try) 2>&5
9364   ac_status=$?
9365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366   (exit $ac_status); }; }; then
9367
9368 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9369 }'`
9370 # Check for a 64-bit object if we didn't find anything.
9371 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; }
9372 }'`; fi
9373 else
9374   echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9376
9377 fi
9378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9379 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9380
9381       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9382
9383       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"
9384      else
9385       if test "$host_cpu" = ia64; then
9386         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9387         allow_undefined_flag_CXX="-z nodefs"
9388         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"
9389       else
9390         # Determine the default libpath from the value encoded in an empty executable.
9391         cat >conftest.$ac_ext <<_ACEOF
9392 #line $LINENO "configure"
9393 /* confdefs.h.  */
9394 _ACEOF
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h.  */
9398
9399 int
9400 main ()
9401 {
9402
9403   ;
9404   return 0;
9405 }
9406 _ACEOF
9407 rm -f conftest.$ac_objext conftest$ac_exeext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409   (eval $ac_link) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); } &&
9413          { ac_try='test -s conftest$ac_exeext'
9414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415   (eval $ac_try) 2>&5
9416   ac_status=$?
9417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418   (exit $ac_status); }; }; then
9419
9420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9421 }'`
9422 # Check for a 64-bit object if we didn't find anything.
9423 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; }
9424 }'`; fi
9425 else
9426   echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9428
9429 fi
9430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9432
9433         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9434         # Warning - without using the other run time loading flags,
9435         # -berok will link without error, but may produce a broken library.
9436         no_undefined_flag_CXX=' ${wl}-bernotok'
9437         allow_undefined_flag_CXX=' ${wl}-berok'
9438         # -bexpall does not export symbols beginning with underscore (_)
9439         always_export_symbols_CXX=yes
9440         # Exported symbols can be pulled into shared objects from archives
9441         whole_archive_flag_spec_CXX=' '
9442         archive_cmds_need_lc_CXX=yes
9443         # This is similar to how AIX traditionally builds it's shared libraries.
9444         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'
9445       fi
9446     fi
9447     ;;
9448   chorus*)
9449     case $cc_basename in
9450       *)
9451         # FIXME: insert proper C++ library support
9452         ld_shlibs_CXX=no
9453         ;;
9454     esac
9455     ;;
9456
9457   cygwin* | mingw* | pw32*)
9458     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9459     # as there is no search path for DLLs.
9460     hardcode_libdir_flag_spec_CXX='-L$libdir'
9461     allow_undefined_flag_CXX=unsupported
9462     always_export_symbols_CXX=no
9463     enable_shared_with_static_runtimes_CXX=yes
9464
9465     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9466       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'
9467       # If the export-symbols file already is a .def file (1st line
9468       # is EXPORTS), use it as is; otherwise, prepend...
9469       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9470         cp $export_symbols $output_objdir/$soname.def;
9471       else
9472         echo EXPORTS > $output_objdir/$soname.def;
9473         cat $export_symbols >> $output_objdir/$soname.def;
9474       fi~
9475       $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'
9476     else
9477       ld_shlibs_CXX=no
9478     fi
9479   ;;
9480
9481   darwin* | rhapsody*)
9482    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9483     archive_cmds_need_lc_CXX=no
9484     case "$host_os" in
9485     rhapsody* | darwin1.[012])
9486       allow_undefined_flag_CXX='-undefined suppress'
9487       ;;
9488     *) # Darwin 1.3 on
9489       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9490       ;;
9491     esac
9492         lt_int_apple_cc_single_mod=no
9493         output_verbose_link_cmd='echo'
9494         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9495           lt_int_apple_cc_single_mod=yes
9496         fi
9497         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9498           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9499         else
9500         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'
9501       fi
9502       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9503
9504     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9505       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9506         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}'
9507       else
9508         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}'
9509       fi
9510         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}'
9511     hardcode_direct_CXX=no
9512     hardcode_automatic_CXX=yes
9513     hardcode_shlibpath_var_CXX=unsupported
9514     whole_archive_flag_spec_CXX='-all_load $convenience'
9515     link_all_deplibs_CXX=yes
9516    fi
9517     ;;
9518
9519   dgux*)
9520     case $cc_basename in
9521       ec++)
9522         # FIXME: insert proper C++ library support
9523         ld_shlibs_CXX=no
9524         ;;
9525       ghcx)
9526         # Green Hills C++ Compiler
9527         # FIXME: insert proper C++ library support
9528         ld_shlibs_CXX=no
9529         ;;
9530       *)
9531         # FIXME: insert proper C++ library support
9532         ld_shlibs_CXX=no
9533         ;;
9534     esac
9535     ;;
9536   freebsd12*)
9537     # C++ shared libraries reported to be fairly broken before switch to ELF
9538     ld_shlibs_CXX=no
9539     ;;
9540   freebsd-elf*)
9541     archive_cmds_need_lc_CXX=no
9542     ;;
9543   freebsd*)
9544     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9545     # conventions
9546     ld_shlibs_CXX=yes
9547     ;;
9548   gnu*)
9549     ;;
9550   hpux9*)
9551     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9552     hardcode_libdir_separator_CXX=:
9553     export_dynamic_flag_spec_CXX='${wl}-E'
9554     hardcode_direct_CXX=yes
9555     hardcode_minus_L_CXX=yes # Not in the search PATH,
9556                                 # but as the default
9557                                 # location of the library.
9558
9559     case $cc_basename in
9560     CC)
9561       # FIXME: insert proper C++ library support
9562       ld_shlibs_CXX=no
9563       ;;
9564     aCC)
9565       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'
9566       # Commands to make compiler produce verbose output that lists
9567       # what "hidden" libraries, object files and flags are used when
9568       # linking a shared library.
9569       #
9570       # There doesn't appear to be a way to prevent this compiler from
9571       # explicitly linking system object files so we need to strip them
9572       # from the output so that they don't get included in the library
9573       # dependencies.
9574       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'
9575       ;;
9576     *)
9577       if test "$GXX" = yes; then
9578         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'
9579       else
9580         # FIXME: insert proper C++ library support
9581         ld_shlibs_CXX=no
9582       fi
9583       ;;
9584     esac
9585     ;;
9586   hpux10*|hpux11*)
9587     if test $with_gnu_ld = no; then
9588       case "$host_cpu" in
9589       hppa*64*)
9590         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9591         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9592         hardcode_libdir_separator_CXX=:
9593         ;;
9594       ia64*)
9595         hardcode_libdir_flag_spec_CXX='-L$libdir'
9596         ;;
9597       *)
9598         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9599         hardcode_libdir_separator_CXX=:
9600         export_dynamic_flag_spec_CXX='${wl}-E'
9601         ;;
9602       esac
9603     fi
9604     case "$host_cpu" in
9605     hppa*64*)
9606       hardcode_direct_CXX=no
9607       hardcode_shlibpath_var_CXX=no
9608       ;;
9609     ia64*)
9610       hardcode_direct_CXX=no
9611       hardcode_shlibpath_var_CXX=no
9612       hardcode_minus_L_CXX=yes # Not in the search PATH,
9613                                               # but as the default
9614                                               # location of the library.
9615       ;;
9616     *)
9617       hardcode_direct_CXX=yes
9618       hardcode_minus_L_CXX=yes # Not in the search PATH,
9619                                               # but as the default
9620                                               # location of the library.
9621       ;;
9622     esac
9623
9624     case $cc_basename in
9625       CC)
9626         # FIXME: insert proper C++ library support
9627         ld_shlibs_CXX=no
9628         ;;
9629       aCC)
9630         case "$host_cpu" in
9631         hppa*64*|ia64*)
9632           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9633           ;;
9634         *)
9635           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9636           ;;
9637         esac
9638         # Commands to make compiler produce verbose output that lists
9639         # what "hidden" libraries, object files and flags are used when
9640         # linking a shared library.
9641         #
9642         # There doesn't appear to be a way to prevent this compiler from
9643         # explicitly linking system object files so we need to strip them
9644         # from the output so that they don't get included in the library
9645         # dependencies.
9646         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'
9647         ;;
9648       *)
9649         if test "$GXX" = yes; then
9650           if test $with_gnu_ld = no; then
9651             case "$host_cpu" in
9652             ia64*|hppa*64*)
9653               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9654               ;;
9655             *)
9656               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'
9657               ;;
9658             esac
9659           fi
9660         else
9661           # FIXME: insert proper C++ library support
9662           ld_shlibs_CXX=no
9663         fi
9664         ;;
9665     esac
9666     ;;
9667   irix5* | irix6*)
9668     case $cc_basename in
9669       CC)
9670         # SGI C++
9671         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'
9672
9673         # Archives containing C++ object files must be created using
9674         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9675         # necessary to make sure instantiated templates are included
9676         # in the archive.
9677         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9678         ;;
9679       *)
9680         if test "$GXX" = yes; then
9681           if test "$with_gnu_ld" = no; then
9682             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'
9683           else
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` -o $lib'
9685           fi
9686         fi
9687         link_all_deplibs_CXX=yes
9688         ;;
9689     esac
9690     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9691     hardcode_libdir_separator_CXX=:
9692     ;;
9693   linux*)
9694     case $cc_basename in
9695       KCC)
9696         # Kuck and Associates, Inc. (KAI) C++ Compiler
9697
9698         # KCC will only create a shared library if the output file
9699         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9700         # to its proper name (with version) after linking.
9701         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'
9702         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'
9703         # Commands to make compiler produce verbose output that lists
9704         # what "hidden" libraries, object files and flags are used when
9705         # linking a shared library.
9706         #
9707         # There doesn't appear to be a way to prevent this compiler from
9708         # explicitly linking system object files so we need to strip them
9709         # from the output so that they don't get included in the library
9710         # dependencies.
9711         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'
9712
9713         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9714         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9715
9716         # Archives containing C++ object files must be created using
9717         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9718         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9719         ;;
9720       icpc)
9721         # Intel C++
9722         with_gnu_ld=yes
9723         archive_cmds_need_lc_CXX=no
9724         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9725         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'
9726         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9727         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9728         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9729         ;;
9730       cxx)
9731         # Compaq C++
9732         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9733         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'
9734
9735         runpath_var=LD_RUN_PATH
9736         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9737         hardcode_libdir_separator_CXX=:
9738
9739         # Commands to make compiler produce verbose output that lists
9740         # what "hidden" libraries, object files and flags are used when
9741         # linking a shared library.
9742         #
9743         # There doesn't appear to be a way to prevent this compiler from
9744         # explicitly linking system object files so we need to strip them
9745         # from the output so that they don't get included in the library
9746         # dependencies.
9747         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'
9748         ;;
9749     esac
9750     ;;
9751   lynxos*)
9752     # FIXME: insert proper C++ library support
9753     ld_shlibs_CXX=no
9754     ;;
9755   m88k*)
9756     # FIXME: insert proper C++ library support
9757     ld_shlibs_CXX=no
9758     ;;
9759   mvs*)
9760     case $cc_basename in
9761       cxx)
9762         # FIXME: insert proper C++ library support
9763         ld_shlibs_CXX=no
9764         ;;
9765       *)
9766         # FIXME: insert proper C++ library support
9767         ld_shlibs_CXX=no
9768         ;;
9769     esac
9770     ;;
9771   netbsd*)
9772     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9773       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9774       wlarc=
9775       hardcode_libdir_flag_spec_CXX='-R$libdir'
9776       hardcode_direct_CXX=yes
9777       hardcode_shlibpath_var_CXX=no
9778     fi
9779     # Workaround some broken pre-1.5 toolchains
9780     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9781     ;;
9782   osf3*)
9783     case $cc_basename in
9784       KCC)
9785         # Kuck and Associates, Inc. (KAI) C++ Compiler
9786
9787         # KCC will only create a shared library if the output file
9788         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9789         # to its proper name (with version) after linking.
9790         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'
9791
9792         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9793         hardcode_libdir_separator_CXX=:
9794
9795         # Archives containing C++ object files must be created using
9796         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9797         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9798
9799         ;;
9800       RCC)
9801         # Rational C++ 2.4.1
9802         # FIXME: insert proper C++ library support
9803         ld_shlibs_CXX=no
9804         ;;
9805       cxx)
9806         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9807         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'
9808
9809         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9810         hardcode_libdir_separator_CXX=:
9811
9812         # Commands to make compiler produce verbose output that lists
9813         # what "hidden" libraries, object files and flags are used when
9814         # linking a shared library.
9815         #
9816         # There doesn't appear to be a way to prevent this compiler from
9817         # explicitly linking system object files so we need to strip them
9818         # from the output so that they don't get included in the library
9819         # dependencies.
9820         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'
9821         ;;
9822       *)
9823         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9824           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9825           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'
9826
9827           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9828           hardcode_libdir_separator_CXX=:
9829
9830           # Commands to make compiler produce verbose output that lists
9831           # what "hidden" libraries, object files and flags are used when
9832           # linking a shared library.
9833           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9834
9835         else
9836           # FIXME: insert proper C++ library support
9837           ld_shlibs_CXX=no
9838         fi
9839         ;;
9840     esac
9841     ;;
9842   osf4* | osf5*)
9843     case $cc_basename in
9844       KCC)
9845         # Kuck and Associates, Inc. (KAI) C++ Compiler
9846
9847         # KCC will only create a shared library if the output file
9848         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9849         # to its proper name (with version) after linking.
9850         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'
9851
9852         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9853         hardcode_libdir_separator_CXX=:
9854
9855         # Archives containing C++ object files must be created using
9856         # the KAI C++ compiler.
9857         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9858         ;;
9859       RCC)
9860         # Rational C++ 2.4.1
9861         # FIXME: insert proper C++ library support
9862         ld_shlibs_CXX=no
9863         ;;
9864       cxx)
9865         allow_undefined_flag_CXX=' -expect_unresolved \*'
9866         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'
9867         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9868           echo "-hidden">> $lib.exp~
9869           $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~
9870           $rm $lib.exp'
9871
9872         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9873         hardcode_libdir_separator_CXX=:
9874
9875         # Commands to make compiler produce verbose output that lists
9876         # what "hidden" libraries, object files and flags are used when
9877         # linking a shared library.
9878         #
9879         # There doesn't appear to be a way to prevent this compiler from
9880         # explicitly linking system object files so we need to strip them
9881         # from the output so that they don't get included in the library
9882         # dependencies.
9883         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9884         ;;
9885       *)
9886         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9887           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9888          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9889
9890           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9891           hardcode_libdir_separator_CXX=:
9892
9893           # Commands to make compiler produce verbose output that lists
9894           # what "hidden" libraries, object files and flags are used when
9895           # linking a shared library.
9896           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9897
9898         else
9899           # FIXME: insert proper C++ library support
9900           ld_shlibs_CXX=no
9901         fi
9902         ;;
9903     esac
9904     ;;
9905   psos*)
9906     # FIXME: insert proper C++ library support
9907     ld_shlibs_CXX=no
9908     ;;
9909   sco*)
9910     archive_cmds_need_lc_CXX=no
9911     case $cc_basename in
9912       CC)
9913         # FIXME: insert proper C++ library support
9914         ld_shlibs_CXX=no
9915         ;;
9916       *)
9917         # FIXME: insert proper C++ library support
9918         ld_shlibs_CXX=no
9919         ;;
9920     esac
9921     ;;
9922   sunos4*)
9923     case $cc_basename in
9924       CC)
9925         # Sun C++ 4.x
9926         # FIXME: insert proper C++ library support
9927         ld_shlibs_CXX=no
9928         ;;
9929       lcc)
9930         # Lucid
9931         # FIXME: insert proper C++ library support
9932         ld_shlibs_CXX=no
9933         ;;
9934       *)
9935         # FIXME: insert proper C++ library support
9936         ld_shlibs_CXX=no
9937         ;;
9938     esac
9939     ;;
9940   solaris*)
9941     case $cc_basename in
9942       CC)
9943         # Sun C++ 4.2, 5.x and Centerline C++
9944         no_undefined_flag_CXX=' -zdefs'
9945         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9946         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9947         $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'
9948
9949         hardcode_libdir_flag_spec_CXX='-R$libdir'
9950         hardcode_shlibpath_var_CXX=no
9951         case $host_os in
9952           solaris2.0-5 | solaris2.0-5.*) ;;
9953           *)
9954             # The C++ compiler is used as linker so we must use $wl
9955             # flag to pass the commands to the underlying system
9956             # linker.
9957             # Supported since Solaris 2.6 (maybe 2.5.1?)
9958             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9959             ;;
9960         esac
9961         link_all_deplibs_CXX=yes
9962
9963         # Commands to make compiler produce verbose output that lists
9964         # what "hidden" libraries, object files and flags are used when
9965         # linking a shared library.
9966         #
9967         # There doesn't appear to be a way to prevent this compiler from
9968         # explicitly linking system object files so we need to strip them
9969         # from the output so that they don't get included in the library
9970         # dependencies.
9971         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'
9972
9973         # Archives containing C++ object files must be created using
9974         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9975         # necessary to make sure instantiated templates are included
9976         # in the archive.
9977         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9978         ;;
9979       gcx)
9980         # Green Hills C++ Compiler
9981         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9982
9983         # The C++ compiler must be used to create the archive.
9984         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9985         ;;
9986       *)
9987         # GNU C++ compiler with Solaris linker
9988         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9989           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9990           if $CC --version | grep -v '^2\.7' > /dev/null; then
9991             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9992             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9993                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9994
9995             # Commands to make compiler produce verbose output that lists
9996             # what "hidden" libraries, object files and flags are used when
9997             # linking a shared library.
9998             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9999           else
10000             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10001             # platform.
10002             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10003             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10004                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10005
10006             # Commands to make compiler produce verbose output that lists
10007             # what "hidden" libraries, object files and flags are used when
10008             # linking a shared library.
10009             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10010           fi
10011
10012           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10013         fi
10014         ;;
10015     esac
10016     ;;
10017   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10018     archive_cmds_need_lc_CXX=no
10019     ;;
10020   tandem*)
10021     case $cc_basename in
10022       NCC)
10023         # NonStop-UX NCC 3.20
10024         # FIXME: insert proper C++ library support
10025         ld_shlibs_CXX=no
10026         ;;
10027       *)
10028         # FIXME: insert proper C++ library support
10029         ld_shlibs_CXX=no
10030         ;;
10031     esac
10032     ;;
10033   vxworks*)
10034     # FIXME: insert proper C++ library support
10035     ld_shlibs_CXX=no
10036     ;;
10037   *)
10038     # FIXME: insert proper C++ library support
10039     ld_shlibs_CXX=no
10040     ;;
10041 esac
10042 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10043 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10044 test "$ld_shlibs_CXX" = no && can_build_shared=no
10045
10046 GCC_CXX="$GXX"
10047 LD_CXX="$LD"
10048
10049 ## CAVEAT EMPTOR:
10050 ## There is no encapsulation within the following macros, do not change
10051 ## the running order or otherwise move them around unless you know exactly
10052 ## what you are doing...
10053
10054 cat > conftest.$ac_ext <<EOF
10055 class Foo
10056 {
10057 public:
10058   Foo (void) { a = 0; }
10059 private:
10060   int a;
10061 };
10062 EOF
10063
10064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10065   (eval $ac_compile) 2>&5
10066   ac_status=$?
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); }; then
10069   # Parse the compiler output and extract the necessary
10070   # objects, libraries and library flags.
10071
10072   # Sentinel used to keep track of whether or not we are before
10073   # the conftest object file.
10074   pre_test_object_deps_done=no
10075
10076   # The `*' in the case matches for architectures that use `case' in
10077   # $output_verbose_cmd can trigger glob expansion during the loop
10078   # eval without this substitution.
10079   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10080
10081   for p in `eval $output_verbose_link_cmd`; do
10082     case $p in
10083
10084     -L* | -R* | -l*)
10085        # Some compilers place space between "-{L,R}" and the path.
10086        # Remove the space.
10087        if test $p = "-L" \
10088           || test $p = "-R"; then
10089          prev=$p
10090          continue
10091        else
10092          prev=
10093        fi
10094
10095        if test "$pre_test_object_deps_done" = no; then
10096          case $p in
10097          -L* | -R*)
10098            # Internal compiler library paths should come after those
10099            # provided the user.  The postdeps already come after the
10100            # user supplied libs so there is no need to process them.
10101            if test -z "$compiler_lib_search_path_CXX"; then
10102              compiler_lib_search_path_CXX="${prev}${p}"
10103            else
10104              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10105            fi
10106            ;;
10107          # The "-l" case would never come before the object being
10108          # linked, so don't bother handling this case.
10109          esac
10110        else
10111          if test -z "$postdeps_CXX"; then
10112            postdeps_CXX="${prev}${p}"
10113          else
10114            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10115          fi
10116        fi
10117        ;;
10118
10119     *.$objext)
10120        # This assumes that the test object file only shows up
10121        # once in the compiler output.
10122        if test "$p" = "conftest.$objext"; then
10123          pre_test_object_deps_done=yes
10124          continue
10125        fi
10126
10127        if test "$pre_test_object_deps_done" = no; then
10128          if test -z "$predep_objects_CXX"; then
10129            predep_objects_CXX="$p"
10130          else
10131            predep_objects_CXX="$predep_objects_CXX $p"
10132          fi
10133        else
10134          if test -z "$postdep_objects_CXX"; then
10135            postdep_objects_CXX="$p"
10136          else
10137            postdep_objects_CXX="$postdep_objects_CXX $p"
10138          fi
10139        fi
10140        ;;
10141
10142     *) ;; # Ignore the rest.
10143
10144     esac
10145   done
10146
10147   # Clean up.
10148   rm -f a.out a.exe
10149 else
10150   echo "libtool.m4: error: problem compiling CXX test program"
10151 fi
10152
10153 $rm -f confest.$objext
10154
10155 case " $postdeps_CXX " in
10156 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10157 esac
10158
10159 lt_prog_compiler_wl_CXX=
10160 lt_prog_compiler_pic_CXX=
10161 lt_prog_compiler_static_CXX=
10162
10163 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10164 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10165
10166   # C++ specific cases for pic, static, wl, etc.
10167   if test "$GXX" = yes; then
10168     lt_prog_compiler_wl_CXX='-Wl,'
10169     lt_prog_compiler_static_CXX='-static'
10170
10171     case $host_os in
10172     aix*)
10173       # All AIX code is PIC.
10174       if test "$host_cpu" = ia64; then
10175         # AIX 5 now supports IA64 processor
10176         lt_prog_compiler_static_CXX='-Bstatic'
10177       fi
10178       ;;
10179     amigaos*)
10180       # FIXME: we need at least 68020 code to build shared libraries, but
10181       # adding the `-m68020' flag to GCC prevents building anything better,
10182       # like `-m68040'.
10183       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10184       ;;
10185     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10186       # PIC is the default for these OSes.
10187       ;;
10188     mingw* | os2* | pw32*)
10189       # This hack is so that the source file can tell whether it is being
10190       # built for inclusion in a dll (and should export symbols for example).
10191       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10192       ;;
10193     darwin* | rhapsody*)
10194       # PIC is the default on this platform
10195       # Common symbols not allowed in MH_DYLIB files
10196       lt_prog_compiler_pic_CXX='-fno-common'
10197       ;;
10198     *djgpp*)
10199       # DJGPP does not support shared libraries at all
10200       lt_prog_compiler_pic_CXX=
10201       ;;
10202     sysv4*MP*)
10203       if test -d /usr/nec; then
10204         lt_prog_compiler_pic_CXX=-Kconform_pic
10205       fi
10206       ;;
10207     hpux*)
10208       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10209       # not for PA HP-UX.
10210       case "$host_cpu" in
10211       hppa*64*|ia64*)
10212         ;;
10213       *)
10214         lt_prog_compiler_pic_CXX='-fPIC'
10215         ;;
10216       esac
10217       ;;
10218     *)
10219       lt_prog_compiler_pic_CXX='-fPIC'
10220       ;;
10221     esac
10222   else
10223     case $host_os in
10224       aix4* | aix5*)
10225         # All AIX code is PIC.
10226         if test "$host_cpu" = ia64; then
10227           # AIX 5 now supports IA64 processor
10228           lt_prog_compiler_static_CXX='-Bstatic'
10229         else
10230           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10231         fi
10232         ;;
10233       chorus*)
10234         case $cc_basename in
10235         cxch68)
10236           # Green Hills C++ Compiler
10237           # _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"
10238           ;;
10239         esac
10240         ;;
10241       dgux*)
10242         case $cc_basename in
10243           ec++)
10244             lt_prog_compiler_pic_CXX='-KPIC'
10245             ;;
10246           ghcx)
10247             # Green Hills C++ Compiler
10248             lt_prog_compiler_pic_CXX='-pic'
10249             ;;
10250           *)
10251             ;;
10252         esac
10253         ;;
10254       freebsd*)
10255         # FreeBSD uses GNU C++
10256         ;;
10257       hpux9* | hpux10* | hpux11*)
10258         case $cc_basename in
10259           CC)
10260             lt_prog_compiler_wl_CXX='-Wl,'
10261             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10262             if test "$host_cpu" != ia64; then
10263               lt_prog_compiler_pic_CXX='+Z'
10264             fi
10265             ;;
10266           aCC)
10267             lt_prog_compiler_wl_CXX='-Wl,'
10268             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10269             case "$host_cpu" in
10270             hppa*64*|ia64*)
10271               # +Z the default
10272               ;;
10273             *)
10274               lt_prog_compiler_pic_CXX='+Z'
10275               ;;
10276             esac
10277             ;;
10278           *)
10279             ;;
10280         esac
10281         ;;
10282       irix5* | irix6* | nonstopux*)
10283         case $cc_basename in
10284           CC)
10285             lt_prog_compiler_wl_CXX='-Wl,'
10286             lt_prog_compiler_static_CXX='-non_shared'
10287             # CC pic flag -KPIC is the default.
10288             ;;
10289           *)
10290             ;;
10291         esac
10292         ;;
10293       linux*)
10294         case $cc_basename in
10295           KCC)
10296             # KAI C++ Compiler
10297             lt_prog_compiler_wl_CXX='--backend -Wl,'
10298             lt_prog_compiler_pic_CXX='-fPIC'
10299             ;;
10300           icpc)
10301             # Intel C++
10302             lt_prog_compiler_wl_CXX='-Wl,'
10303             lt_prog_compiler_pic_CXX='-KPIC'
10304             lt_prog_compiler_static_CXX='-static'
10305             ;;
10306           cxx)
10307             # Compaq C++
10308             # Make sure the PIC flag is empty.  It appears that all Alpha
10309             # Linux and Compaq Tru64 Unix objects are PIC.
10310             lt_prog_compiler_pic_CXX=
10311             lt_prog_compiler_static_CXX='-non_shared'
10312             ;;
10313           *)
10314             ;;
10315         esac
10316         ;;
10317       lynxos*)
10318         ;;
10319       m88k*)
10320         ;;
10321       mvs*)
10322         case $cc_basename in
10323           cxx)
10324             lt_prog_compiler_pic_CXX='-W c,exportall'
10325             ;;
10326           *)
10327             ;;
10328         esac
10329         ;;
10330       netbsd*)
10331         ;;
10332       osf3* | osf4* | osf5*)
10333         case $cc_basename in
10334           KCC)
10335             lt_prog_compiler_wl_CXX='--backend -Wl,'
10336             ;;
10337           RCC)
10338             # Rational C++ 2.4.1
10339             lt_prog_compiler_pic_CXX='-pic'
10340             ;;
10341           cxx)
10342             # Digital/Compaq C++
10343             lt_prog_compiler_wl_CXX='-Wl,'
10344             # Make sure the PIC flag is empty.  It appears that all Alpha
10345             # Linux and Compaq Tru64 Unix objects are PIC.
10346             lt_prog_compiler_pic_CXX=
10347             lt_prog_compiler_static_CXX='-non_shared'
10348             ;;
10349           *)
10350             ;;
10351         esac
10352         ;;
10353       psos*)
10354         ;;
10355       sco*)
10356         case $cc_basename in
10357           CC)
10358             lt_prog_compiler_pic_CXX='-fPIC'
10359             ;;
10360           *)
10361             ;;
10362         esac
10363         ;;
10364       solaris*)
10365         case $cc_basename in
10366           CC)
10367             # Sun C++ 4.2, 5.x and Centerline C++
10368             lt_prog_compiler_pic_CXX='-KPIC'
10369             lt_prog_compiler_static_CXX='-Bstatic'
10370             lt_prog_compiler_wl_CXX='-Qoption ld '
10371             ;;
10372           gcx)
10373             # Green Hills C++ Compiler
10374             lt_prog_compiler_pic_CXX='-PIC'
10375             ;;
10376           *)
10377             ;;
10378         esac
10379         ;;
10380       sunos4*)
10381         case $cc_basename in
10382           CC)
10383             # Sun C++ 4.x
10384             lt_prog_compiler_pic_CXX='-pic'
10385             lt_prog_compiler_static_CXX='-Bstatic'
10386             ;;
10387           lcc)
10388             # Lucid
10389             lt_prog_compiler_pic_CXX='-pic'
10390             ;;
10391           *)
10392             ;;
10393         esac
10394         ;;
10395       tandem*)
10396         case $cc_basename in
10397           NCC)
10398             # NonStop-UX NCC 3.20
10399             lt_prog_compiler_pic_CXX='-KPIC'
10400             ;;
10401           *)
10402             ;;
10403         esac
10404         ;;
10405       unixware*)
10406         ;;
10407       vxworks*)
10408         ;;
10409       *)
10410         lt_prog_compiler_can_build_shared_CXX=no
10411         ;;
10412     esac
10413   fi
10414
10415 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10416 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10417
10418 #
10419 # Check to make sure the PIC flag actually works.
10420 #
10421 if test -n "$lt_prog_compiler_pic_CXX"; then
10422   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10423 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10424 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10425   echo $ECHO_N "(cached) $ECHO_C" >&6
10426 else
10427   lt_prog_compiler_pic_works_CXX=no
10428   ac_outfile=conftest.$ac_objext
10429    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10430    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10431    # Insert the option either (1) after the last *FLAGS variable, or
10432    # (2) before a word containing "conftest.", or (3) at the end.
10433    # Note that $ac_compile itself does not contain backslashes and begins
10434    # with a dollar sign (not a hyphen), so the echo should work correctly.
10435    # The option is referenced via a variable to avoid confusing sed.
10436    lt_compile=`echo "$ac_compile" | $SED \
10437    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10438    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10439    -e 's:$: $lt_compiler_flag:'`
10440    (eval echo "\"\$as_me:10440: $lt_compile\"" >&5)
10441    (eval "$lt_compile" 2>conftest.err)
10442    ac_status=$?
10443    cat conftest.err >&5
10444    echo "$as_me:10444: \$? = $ac_status" >&5
10445    if (exit $ac_status) && test -s "$ac_outfile"; then
10446      # The compiler can only warn and ignore the option if not recognized
10447      # So say no if there are warnings
10448      if test ! -s conftest.err; then
10449        lt_prog_compiler_pic_works_CXX=yes
10450      fi
10451    fi
10452    $rm conftest*
10453
10454 fi
10455 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10456 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10457
10458 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10459     case $lt_prog_compiler_pic_CXX in
10460      "" | " "*) ;;
10461      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10462      esac
10463 else
10464     lt_prog_compiler_pic_CXX=
10465      lt_prog_compiler_can_build_shared_CXX=no
10466 fi
10467
10468 fi
10469 case "$host_os" in
10470   # For platforms which do not support PIC, -DPIC is meaningless:
10471   *djgpp*)
10472     lt_prog_compiler_pic_CXX=
10473     ;;
10474   *)
10475     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10476     ;;
10477 esac
10478
10479 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10480 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10481 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10482   echo $ECHO_N "(cached) $ECHO_C" >&6
10483 else
10484   lt_cv_prog_compiler_c_o_CXX=no
10485    $rm -r conftest 2>/dev/null
10486    mkdir conftest
10487    cd conftest
10488    mkdir out
10489    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10490
10491    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10492    # that will create temporary files in the current directory regardless of
10493    # the output directory.  Thus, making CWD read-only will cause this test
10494    # to fail, enabling locking or at least warning the user not to do parallel
10495    # builds.
10496    chmod -w .
10497
10498    lt_compiler_flag="-o out/conftest2.$ac_objext"
10499    # Insert the option either (1) after the last *FLAGS variable, or
10500    # (2) before a word containing "conftest.", or (3) at the end.
10501    # Note that $ac_compile itself does not contain backslashes and begins
10502    # with a dollar sign (not a hyphen), so the echo should work correctly.
10503    lt_compile=`echo "$ac_compile" | $SED \
10504    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10505    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10506    -e 's:$: $lt_compiler_flag:'`
10507    (eval echo "\"\$as_me:10507: $lt_compile\"" >&5)
10508    (eval "$lt_compile" 2>out/conftest.err)
10509    ac_status=$?
10510    cat out/conftest.err >&5
10511    echo "$as_me:10511: \$? = $ac_status" >&5
10512    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10513    then
10514      # The compiler can only warn and ignore the option if not recognized
10515      # So say no if there are warnings
10516      if test ! -s out/conftest.err; then
10517        lt_cv_prog_compiler_c_o_CXX=yes
10518      fi
10519    fi
10520    chmod u+w .
10521    $rm conftest* out/*
10522    rmdir out
10523    cd ..
10524    rmdir conftest
10525    $rm conftest*
10526
10527 fi
10528 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10529 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10530
10531
10532 hard_links="nottested"
10533 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10534   # do not overwrite the value of need_locks provided by the user
10535   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10536 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10537   hard_links=yes
10538   $rm conftest*
10539   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10540   touch conftest.a
10541   ln conftest.a conftest.b 2>&5 || hard_links=no
10542   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10543   echo "$as_me:$LINENO: result: $hard_links" >&5
10544 echo "${ECHO_T}$hard_links" >&6
10545   if test "$hard_links" = no; then
10546     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10547 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10548     need_locks=warn
10549   fi
10550 else
10551   need_locks=no
10552 fi
10553
10554 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10555 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10556
10557   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10558   case $host_os in
10559   aix4* | aix5*)
10560     # If we're using GNU nm, then we don't want the "-C" option.
10561     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10562     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10563       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'
10564     else
10565       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'
10566     fi
10567     ;;
10568   pw32*)
10569     export_symbols_cmds_CXX="$ltdll_cmds"
10570   ;;
10571   cygwin* | mingw*)
10572     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10573   ;;
10574   *)
10575     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10576   ;;
10577   esac
10578
10579 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10580 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10581 test "$ld_shlibs_CXX" = no && can_build_shared=no
10582
10583 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10584 if test "$GCC" = yes; then
10585   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10586 fi
10587
10588 #
10589 # Do we need to explicitly link libc?
10590 #
10591 case "x$archive_cmds_need_lc_CXX" in
10592 x|xyes)
10593   # Assume -lc should be added
10594   archive_cmds_need_lc_CXX=yes
10595
10596   if test "$enable_shared" = yes && test "$GCC" = yes; then
10597     case $archive_cmds_CXX in
10598     *'~'*)
10599       # FIXME: we may have to deal with multi-command sequences.
10600       ;;
10601     '$CC '*)
10602       # Test whether the compiler implicitly links with -lc since on some
10603       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10604       # to ld, don't add -lc before -lgcc.
10605       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10606 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10607       $rm conftest*
10608       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10609
10610       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10611   (eval $ac_compile) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); } 2>conftest.err; then
10615         soname=conftest
10616         lib=conftest
10617         libobjs=conftest.$ac_objext
10618         deplibs=
10619         wl=$lt_prog_compiler_wl_CXX
10620         compiler_flags=-v
10621         linker_flags=-v
10622         verstring=
10623         output_objdir=.
10624         libname=conftest
10625         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10626         allow_undefined_flag_CXX=
10627         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10628   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10629   ac_status=$?
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); }
10632         then
10633           archive_cmds_need_lc_CXX=no
10634         else
10635           archive_cmds_need_lc_CXX=yes
10636         fi
10637         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10638       else
10639         cat conftest.err 1>&5
10640       fi
10641       $rm conftest*
10642       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10643 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10644       ;;
10645     esac
10646   fi
10647   ;;
10648 esac
10649
10650 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10651 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10652 hardcode_action_CXX=
10653 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10654    test -n "$runpath_var CXX" || \
10655    test "X$hardcode_automatic_CXX"="Xyes" ; then
10656
10657   # We can hardcode non-existant directories.
10658   if test "$hardcode_direct_CXX" != no &&
10659      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10660      # have to relink, otherwise we might link with an installed library
10661      # when we should be linking with a yet-to-be-installed one
10662      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10663      test "$hardcode_minus_L_CXX" != no; then
10664     # Linking always hardcodes the temporary library directory.
10665     hardcode_action_CXX=relink
10666   else
10667     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10668     hardcode_action_CXX=immediate
10669   fi
10670 else
10671   # We cannot hardcode anything, or else we can only hardcode existing
10672   # directories.
10673   hardcode_action_CXX=unsupported
10674 fi
10675 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10676 echo "${ECHO_T}$hardcode_action_CXX" >&6
10677
10678 if test "$hardcode_action_CXX" = relink; then
10679   # Fast installation is not supported
10680   enable_fast_install=no
10681 elif test "$shlibpath_overrides_runpath" = yes ||
10682      test "$enable_shared" = no; then
10683   # Fast installation is not necessary
10684   enable_fast_install=needless
10685 fi
10686
10687 striplib=
10688 old_striplib=
10689 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10690 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10691 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10692   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10693   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10694   echo "$as_me:$LINENO: result: yes" >&5
10695 echo "${ECHO_T}yes" >&6
10696 else
10697 # FIXME - insert some real tests, host_os isn't really good enough
10698   case $host_os in
10699    darwin*)
10700        if test -n "$STRIP" ; then
10701          striplib="$STRIP -x"
10702          echo "$as_me:$LINENO: result: yes" >&5
10703 echo "${ECHO_T}yes" >&6
10704        else
10705   echo "$as_me:$LINENO: result: no" >&5
10706 echo "${ECHO_T}no" >&6
10707 fi
10708        ;;
10709    *)
10710   echo "$as_me:$LINENO: result: no" >&5
10711 echo "${ECHO_T}no" >&6
10712     ;;
10713   esac
10714 fi
10715
10716 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10717 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10718 library_names_spec=
10719 libname_spec='lib$name'
10720 soname_spec=
10721 shrext=".so"
10722 postinstall_cmds=
10723 postuninstall_cmds=
10724 finish_cmds=
10725 finish_eval=
10726 shlibpath_var=
10727 shlibpath_overrides_runpath=unknown
10728 version_type=none
10729 dynamic_linker="$host_os ld.so"
10730 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10731 if test "$GCC" = yes; then
10732   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10733   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10734     # if the path contains ";" then we assume it to be the separator
10735     # otherwise default to the standard path separator (i.e. ":") - it is
10736     # assumed that no part of a normal pathname contains ";" but that should
10737     # okay in the real world where ";" in dirpaths is itself problematic.
10738     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10739   else
10740     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10741   fi
10742 else
10743   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10744 fi
10745 need_lib_prefix=unknown
10746 hardcode_into_libs=no
10747
10748 # when you set need_version to no, make sure it does not cause -set_version
10749 # flags to be left without arguments
10750 need_version=unknown
10751
10752 case $host_os in
10753 aix3*)
10754   version_type=linux
10755   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10756   shlibpath_var=LIBPATH
10757
10758   # AIX 3 has no versioning support, so we append a major version to the name.
10759   soname_spec='${libname}${release}${shared_ext}$major'
10760   ;;
10761
10762 aix4* | aix5*)
10763   version_type=linux
10764   need_lib_prefix=no
10765   need_version=no
10766   hardcode_into_libs=yes
10767   if test "$host_cpu" = ia64; then
10768     # AIX 5 supports IA64
10769     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10770     shlibpath_var=LD_LIBRARY_PATH
10771   else
10772     # With GCC up to 2.95.x, collect2 would create an import file
10773     # for dependence libraries.  The import file would start with
10774     # the line `#! .'.  This would cause the generated library to
10775     # depend on `.', always an invalid library.  This was fixed in
10776     # development snapshots of GCC prior to 3.0.
10777     case $host_os in
10778       aix4 | aix4.[01] | aix4.[01].*)
10779       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10780            echo ' yes '
10781            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10782         :
10783       else
10784         can_build_shared=no
10785       fi
10786       ;;
10787     esac
10788     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10789     # soname into executable. Probably we can add versioning support to
10790     # collect2, so additional links can be useful in future.
10791     if test "$aix_use_runtimelinking" = yes; then
10792       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10793       # instead of lib<name>.a to let people know that these are not
10794       # typical AIX shared libraries.
10795       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796     else
10797       # We preserve .a as extension for shared libraries through AIX4.2
10798       # and later when we are not doing run time linking.
10799       library_names_spec='${libname}${release}.a $libname.a'
10800       soname_spec='${libname}${release}${shared_ext}$major'
10801     fi
10802     shlibpath_var=LIBPATH
10803   fi
10804   ;;
10805
10806 amigaos*)
10807   library_names_spec='$libname.ixlibrary $libname.a'
10808   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10809   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'
10810   ;;
10811
10812 beos*)
10813   library_names_spec='${libname}${shared_ext}'
10814   dynamic_linker="$host_os ld.so"
10815   shlibpath_var=LIBRARY_PATH
10816   ;;
10817
10818 bsdi4*)
10819   version_type=linux
10820   need_version=no
10821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10822   soname_spec='${libname}${release}${shared_ext}$major'
10823   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10824   shlibpath_var=LD_LIBRARY_PATH
10825   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10826   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10827   # the default ld.so.conf also contains /usr/contrib/lib and
10828   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10829   # libtool to hard-code these into programs
10830   ;;
10831
10832 cygwin* | mingw* | pw32*)
10833   version_type=windows
10834   shrext=".dll"
10835   need_version=no
10836   need_lib_prefix=no
10837
10838   case $GCC,$host_os in
10839   yes,cygwin* | yes,mingw* | yes,pw32*)
10840     library_names_spec='$libname.dll.a'
10841     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10842     postinstall_cmds='base_file=`basename \${file}`~
10843       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10844       dldir=$destdir/`dirname \$dlpath`~
10845       test -d \$dldir || mkdir -p \$dldir~
10846       $install_prog $dir/$dlname \$dldir/$dlname'
10847     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10848       dlpath=$dir/\$dldll~
10849        $rm \$dlpath'
10850     shlibpath_overrides_runpath=yes
10851
10852     case $host_os in
10853     cygwin*)
10854       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10855       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10856       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10857       ;;
10858     mingw*)
10859       # MinGW DLLs use traditional 'lib' prefix
10860       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10861       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10862       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10863         # It is most probably a Windows format PATH printed by
10864         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10865         # path with ; separators, and with drive letters. We can handle the
10866         # drive letters (cygwin fileutils understands them), so leave them,
10867         # especially as we might pass files found there to a mingw objdump,
10868         # which wouldn't understand a cygwinified path. Ahh.
10869         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10870       else
10871         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10872       fi
10873       ;;
10874     pw32*)
10875       # pw32 DLLs use 'pw' prefix rather than 'lib'
10876       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10877       ;;
10878     esac
10879     ;;
10880
10881   *)
10882     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10883     ;;
10884   esac
10885   dynamic_linker='Win32 ld.exe'
10886   # FIXME: first we should search . and the directory the executable is in
10887   shlibpath_var=PATH
10888   ;;
10889
10890 darwin* | rhapsody*)
10891   dynamic_linker="$host_os dyld"
10892   version_type=darwin
10893   need_lib_prefix=no
10894   need_version=no
10895   # FIXME: Relying on posixy $() will cause problems for
10896   #        cross-compilation, but unfortunately the echo tests do not
10897   #        yet detect zsh echo's removal of \ escapes.
10898   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10899   soname_spec='${libname}${release}${major}$shared_ext'
10900   shlibpath_overrides_runpath=yes
10901   shlibpath_var=DYLD_LIBRARY_PATH
10902   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10903   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10904   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10905   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"`
10906   fi
10907   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10908   ;;
10909
10910 dgux*)
10911   version_type=linux
10912   need_lib_prefix=no
10913   need_version=no
10914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10915   soname_spec='${libname}${release}${shared_ext}$major'
10916   shlibpath_var=LD_LIBRARY_PATH
10917   ;;
10918
10919 freebsd1*)
10920   dynamic_linker=no
10921   ;;
10922
10923 freebsd*)
10924   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10925   version_type=freebsd-$objformat
10926   case $version_type in
10927     freebsd-elf*)
10928       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10929       need_version=no
10930       need_lib_prefix=no
10931       ;;
10932     freebsd-*)
10933       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10934       need_version=yes
10935       ;;
10936   esac
10937   shlibpath_var=LD_LIBRARY_PATH
10938   case $host_os in
10939   freebsd2*)
10940     shlibpath_overrides_runpath=yes
10941     ;;
10942   freebsd3.01* | freebsdelf3.01*)
10943     shlibpath_overrides_runpath=yes
10944     hardcode_into_libs=yes
10945     ;;
10946   *) # from 3.2 on
10947     shlibpath_overrides_runpath=no
10948     hardcode_into_libs=yes
10949     ;;
10950   esac
10951   ;;
10952
10953 gnu*)
10954   version_type=linux
10955   need_lib_prefix=no
10956   need_version=no
10957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10958   soname_spec='${libname}${release}${shared_ext}$major'
10959   shlibpath_var=LD_LIBRARY_PATH
10960   hardcode_into_libs=yes
10961   ;;
10962
10963 hpux9* | hpux10* | hpux11*)
10964   # Give a soname corresponding to the major version so that dld.sl refuses to
10965   # link against other versions.
10966   version_type=sunos
10967   need_lib_prefix=no
10968   need_version=no
10969   case "$host_cpu" in
10970   ia64*)
10971     shrext='.so'
10972     hardcode_into_libs=yes
10973     dynamic_linker="$host_os dld.so"
10974     shlibpath_var=LD_LIBRARY_PATH
10975     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10976     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977     soname_spec='${libname}${release}${shared_ext}$major'
10978     if test "X$HPUX_IA64_MODE" = X32; then
10979       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10980     else
10981       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10982     fi
10983     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10984     ;;
10985    hppa*64*)
10986      shrext='.sl'
10987      hardcode_into_libs=yes
10988      dynamic_linker="$host_os dld.sl"
10989      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10990      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10991      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992      soname_spec='${libname}${release}${shared_ext}$major'
10993      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10994      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10995      ;;
10996    *)
10997     shrext='.sl'
10998     dynamic_linker="$host_os dld.sl"
10999     shlibpath_var=SHLIB_PATH
11000     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11001     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002     soname_spec='${libname}${release}${shared_ext}$major'
11003     ;;
11004   esac
11005   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11006   postinstall_cmds='chmod 555 $lib'
11007   ;;
11008
11009 irix5* | irix6* | nonstopux*)
11010   case $host_os in
11011     nonstopux*) version_type=nonstopux ;;
11012     *)
11013         if test "$lt_cv_prog_gnu_ld" = yes; then
11014                 version_type=linux
11015         else
11016                 version_type=irix
11017         fi ;;
11018   esac
11019   need_lib_prefix=no
11020   need_version=no
11021   soname_spec='${libname}${release}${shared_ext}$major'
11022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11023   case $host_os in
11024   irix5* | nonstopux*)
11025     libsuff= shlibsuff=
11026     ;;
11027   *)
11028     case $LD in # libtool.m4 will add one of these switches to LD
11029     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11030       libsuff= shlibsuff= libmagic=32-bit;;
11031     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11032       libsuff=32 shlibsuff=N32 libmagic=N32;;
11033     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11034       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11035     *) libsuff= shlibsuff= libmagic=never-match;;
11036     esac
11037     ;;
11038   esac
11039   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11040   shlibpath_overrides_runpath=no
11041   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11042   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11043   hardcode_into_libs=yes
11044   ;;
11045
11046 # No shared lib support for Linux oldld, aout, or coff.
11047 linux*oldld* | linux*aout* | linux*coff*)
11048   dynamic_linker=no
11049   ;;
11050
11051 # This must be Linux ELF.
11052 linux*)
11053   version_type=linux
11054   need_lib_prefix=no
11055   need_version=no
11056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057   soname_spec='${libname}${release}${shared_ext}$major'
11058   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11059   shlibpath_var=LD_LIBRARY_PATH
11060   shlibpath_overrides_runpath=no
11061   # This implies no fast_install, which is unacceptable.
11062   # Some rework will be needed to allow for fast_install
11063   # before this can be enabled.
11064   hardcode_into_libs=yes
11065
11066   # We used to test for /lib/ld.so.1 and disable shared libraries on
11067   # powerpc, because MkLinux only supported shared libraries with the
11068   # GNU dynamic linker.  Since this was broken with cross compilers,
11069   # most powerpc-linux boxes support dynamic linking these days and
11070   # people can always --disable-shared, the test was removed, and we
11071   # assume the GNU/Linux dynamic linker is in use.
11072   dynamic_linker='GNU/Linux ld.so'
11073   ;;
11074
11075 netbsd*)
11076   version_type=sunos
11077   need_lib_prefix=no
11078   need_version=no
11079   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11081     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11082     dynamic_linker='NetBSD (a.out) ld.so'
11083   else
11084     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11085     soname_spec='${libname}${release}${shared_ext}$major'
11086     dynamic_linker='NetBSD ld.elf_so'
11087   fi
11088   shlibpath_var=LD_LIBRARY_PATH
11089   shlibpath_overrides_runpath=yes
11090   hardcode_into_libs=yes
11091   ;;
11092
11093 newsos6)
11094   version_type=linux
11095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096   shlibpath_var=LD_LIBRARY_PATH
11097   shlibpath_overrides_runpath=yes
11098   ;;
11099
11100 nto-qnx)
11101   version_type=linux
11102   need_lib_prefix=no
11103   need_version=no
11104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105   soname_spec='${libname}${release}${shared_ext}$major'
11106   shlibpath_var=LD_LIBRARY_PATH
11107   shlibpath_overrides_runpath=yes
11108   ;;
11109
11110 openbsd*)
11111   version_type=sunos
11112   need_lib_prefix=no
11113   need_version=no
11114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11115   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11116   shlibpath_var=LD_LIBRARY_PATH
11117   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11118     case $host_os in
11119       openbsd2.[89] | openbsd2.[89].*)
11120         shlibpath_overrides_runpath=no
11121         ;;
11122       *)
11123         shlibpath_overrides_runpath=yes
11124         ;;
11125       esac
11126   else
11127     shlibpath_overrides_runpath=yes
11128   fi
11129   ;;
11130
11131 os2*)
11132   libname_spec='$name'
11133   shrext=".dll"
11134   need_lib_prefix=no
11135   library_names_spec='$libname${shared_ext} $libname.a'
11136   dynamic_linker='OS/2 ld.exe'
11137   shlibpath_var=LIBPATH
11138   ;;
11139
11140 osf3* | osf4* | osf5*)
11141   version_type=osf
11142   need_lib_prefix=no
11143   need_version=no
11144   soname_spec='${libname}${release}${shared_ext}$major'
11145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11146   shlibpath_var=LD_LIBRARY_PATH
11147   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11148   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11149   ;;
11150
11151 sco3.2v5*)
11152   version_type=osf
11153   soname_spec='${libname}${release}${shared_ext}$major'
11154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155   shlibpath_var=LD_LIBRARY_PATH
11156   ;;
11157
11158 solaris*)
11159   version_type=linux
11160   need_lib_prefix=no
11161   need_version=no
11162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163   soname_spec='${libname}${release}${shared_ext}$major'
11164   shlibpath_var=LD_LIBRARY_PATH
11165   shlibpath_overrides_runpath=yes
11166   hardcode_into_libs=yes
11167   # ldd complains unless libraries are executable
11168   postinstall_cmds='chmod +x $lib'
11169   ;;
11170
11171 sunos4*)
11172   version_type=sunos
11173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11174   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11175   shlibpath_var=LD_LIBRARY_PATH
11176   shlibpath_overrides_runpath=yes
11177   if test "$with_gnu_ld" = yes; then
11178     need_lib_prefix=no
11179   fi
11180   need_version=yes
11181   ;;
11182
11183 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11184   version_type=linux
11185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186   soname_spec='${libname}${release}${shared_ext}$major'
11187   shlibpath_var=LD_LIBRARY_PATH
11188   case $host_vendor in
11189     sni)
11190       shlibpath_overrides_runpath=no
11191       need_lib_prefix=no
11192       export_dynamic_flag_spec='${wl}-Blargedynsym'
11193       runpath_var=LD_RUN_PATH
11194       ;;
11195     siemens)
11196       need_lib_prefix=no
11197       ;;
11198     motorola)
11199       need_lib_prefix=no
11200       need_version=no
11201       shlibpath_overrides_runpath=no
11202       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11203       ;;
11204   esac
11205   ;;
11206
11207 sysv4*MP*)
11208   if test -d /usr/nec ;then
11209     version_type=linux
11210     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11211     soname_spec='$libname${shared_ext}.$major'
11212     shlibpath_var=LD_LIBRARY_PATH
11213   fi
11214   ;;
11215
11216 uts4*)
11217   version_type=linux
11218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219   soname_spec='${libname}${release}${shared_ext}$major'
11220   shlibpath_var=LD_LIBRARY_PATH
11221   ;;
11222
11223 *)
11224   dynamic_linker=no
11225   ;;
11226 esac
11227 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11228 echo "${ECHO_T}$dynamic_linker" >&6
11229 test "$dynamic_linker" = no && can_build_shared=no
11230
11231 if test "x$enable_dlopen" != xyes; then
11232   enable_dlopen=unknown
11233   enable_dlopen_self=unknown
11234   enable_dlopen_self_static=unknown
11235 else
11236   lt_cv_dlopen=no
11237   lt_cv_dlopen_libs=
11238
11239   case $host_os in
11240   beos*)
11241     lt_cv_dlopen="load_add_on"
11242     lt_cv_dlopen_libs=
11243     lt_cv_dlopen_self=yes
11244     ;;
11245
11246   mingw* | pw32*)
11247     lt_cv_dlopen="LoadLibrary"
11248     lt_cv_dlopen_libs=
11249    ;;
11250
11251   cygwin*)
11252     lt_cv_dlopen="dlopen"
11253     lt_cv_dlopen_libs=
11254    ;;
11255
11256   darwin*)
11257   # if libdl is installed we need to link against it
11258     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11259 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11260 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11261   echo $ECHO_N "(cached) $ECHO_C" >&6
11262 else
11263   ac_check_lib_save_LIBS=$LIBS
11264 LIBS="-ldl  $LIBS"
11265 cat >conftest.$ac_ext <<_ACEOF
11266 #line $LINENO "configure"
11267 /* confdefs.h.  */
11268 _ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h.  */
11272
11273 /* Override any gcc2 internal prototype to avoid an error.  */
11274 #ifdef __cplusplus
11275 extern "C"
11276 #endif
11277 /* We use char because int might match the return type of a gcc2
11278    builtin and then its argument prototype would still apply.  */
11279 char dlopen ();
11280 int
11281 main ()
11282 {
11283 dlopen ();
11284   ;
11285   return 0;
11286 }
11287 _ACEOF
11288 rm -f conftest.$ac_objext conftest$ac_exeext
11289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11290   (eval $ac_link) 2>&5
11291   ac_status=$?
11292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); } &&
11294          { ac_try='test -s conftest$ac_exeext'
11295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296   (eval $ac_try) 2>&5
11297   ac_status=$?
11298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299   (exit $ac_status); }; }; then
11300   ac_cv_lib_dl_dlopen=yes
11301 else
11302   echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11304
11305 ac_cv_lib_dl_dlopen=no
11306 fi
11307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11308 LIBS=$ac_check_lib_save_LIBS
11309 fi
11310 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11311 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11312 if test $ac_cv_lib_dl_dlopen = yes; then
11313   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11314 else
11315
11316     lt_cv_dlopen="dyld"
11317     lt_cv_dlopen_libs=
11318     lt_cv_dlopen_self=yes
11319
11320 fi
11321
11322    ;;
11323
11324   *)
11325     echo "$as_me:$LINENO: checking for shl_load" >&5
11326 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11327 if test "${ac_cv_func_shl_load+set}" = set; then
11328   echo $ECHO_N "(cached) $ECHO_C" >&6
11329 else
11330   cat >conftest.$ac_ext <<_ACEOF
11331 #line $LINENO "configure"
11332 /* confdefs.h.  */
11333 _ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h.  */
11337 /* System header to define __stub macros and hopefully few prototypes,
11338     which can conflict with char shl_load (); below.
11339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11340     <limits.h> exists even on freestanding compilers.  */
11341 #ifdef __STDC__
11342 # include <limits.h>
11343 #else
11344 # include <assert.h>
11345 #endif
11346 /* Override any gcc2 internal prototype to avoid an error.  */
11347 #ifdef __cplusplus
11348 extern "C"
11349 {
11350 #endif
11351 /* We use char because int might match the return type of a gcc2
11352    builtin and then its argument prototype would still apply.  */
11353 char shl_load ();
11354 /* The GNU C library defines this for functions which it implements
11355     to always fail with ENOSYS.  Some functions are actually named
11356     something starting with __ and the normal name is an alias.  */
11357 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11358 choke me
11359 #else
11360 char (*f) () = shl_load;
11361 #endif
11362 #ifdef __cplusplus
11363 }
11364 #endif
11365
11366 int
11367 main ()
11368 {
11369 return f != shl_load;
11370   ;
11371   return 0;
11372 }
11373 _ACEOF
11374 rm -f conftest.$ac_objext conftest$ac_exeext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11376   (eval $ac_link) 2>&5
11377   ac_status=$?
11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); } &&
11380          { ac_try='test -s conftest$ac_exeext'
11381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382   (eval $ac_try) 2>&5
11383   ac_status=$?
11384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385   (exit $ac_status); }; }; then
11386   ac_cv_func_shl_load=yes
11387 else
11388   echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11390
11391 ac_cv_func_shl_load=no
11392 fi
11393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11394 fi
11395 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11396 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11397 if test $ac_cv_func_shl_load = yes; then
11398   lt_cv_dlopen="shl_load"
11399 else
11400   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11401 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11402 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11403   echo $ECHO_N "(cached) $ECHO_C" >&6
11404 else
11405   ac_check_lib_save_LIBS=$LIBS
11406 LIBS="-ldld  $LIBS"
11407 cat >conftest.$ac_ext <<_ACEOF
11408 #line $LINENO "configure"
11409 /* confdefs.h.  */
11410 _ACEOF
11411 cat confdefs.h >>conftest.$ac_ext
11412 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h.  */
11414
11415 /* Override any gcc2 internal prototype to avoid an error.  */
11416 #ifdef __cplusplus
11417 extern "C"
11418 #endif
11419 /* We use char because int might match the return type of a gcc2
11420    builtin and then its argument prototype would still apply.  */
11421 char shl_load ();
11422 int
11423 main ()
11424 {
11425 shl_load ();
11426   ;
11427   return 0;
11428 }
11429 _ACEOF
11430 rm -f conftest.$ac_objext conftest$ac_exeext
11431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11432   (eval $ac_link) 2>&5
11433   ac_status=$?
11434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435   (exit $ac_status); } &&
11436          { ac_try='test -s conftest$ac_exeext'
11437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438   (eval $ac_try) 2>&5
11439   ac_status=$?
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); }; }; then
11442   ac_cv_lib_dld_shl_load=yes
11443 else
11444   echo "$as_me: failed program was:" >&5
11445 sed 's/^/| /' conftest.$ac_ext >&5
11446
11447 ac_cv_lib_dld_shl_load=no
11448 fi
11449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11450 LIBS=$ac_check_lib_save_LIBS
11451 fi
11452 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11453 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11454 if test $ac_cv_lib_dld_shl_load = yes; then
11455   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11456 else
11457   echo "$as_me:$LINENO: checking for dlopen" >&5
11458 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11459 if test "${ac_cv_func_dlopen+set}" = set; then
11460   echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462   cat >conftest.$ac_ext <<_ACEOF
11463 #line $LINENO "configure"
11464 /* confdefs.h.  */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h.  */
11469 /* System header to define __stub macros and hopefully few prototypes,
11470     which can conflict with char dlopen (); below.
11471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11472     <limits.h> exists even on freestanding compilers.  */
11473 #ifdef __STDC__
11474 # include <limits.h>
11475 #else
11476 # include <assert.h>
11477 #endif
11478 /* Override any gcc2 internal prototype to avoid an error.  */
11479 #ifdef __cplusplus
11480 extern "C"
11481 {
11482 #endif
11483 /* We use char because int might match the return type of a gcc2
11484    builtin and then its argument prototype would still apply.  */
11485 char dlopen ();
11486 /* The GNU C library defines this for functions which it implements
11487     to always fail with ENOSYS.  Some functions are actually named
11488     something starting with __ and the normal name is an alias.  */
11489 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11490 choke me
11491 #else
11492 char (*f) () = dlopen;
11493 #endif
11494 #ifdef __cplusplus
11495 }
11496 #endif
11497
11498 int
11499 main ()
11500 {
11501 return f != dlopen;
11502   ;
11503   return 0;
11504 }
11505 _ACEOF
11506 rm -f conftest.$ac_objext conftest$ac_exeext
11507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11508   (eval $ac_link) 2>&5
11509   ac_status=$?
11510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511   (exit $ac_status); } &&
11512          { ac_try='test -s conftest$ac_exeext'
11513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514   (eval $ac_try) 2>&5
11515   ac_status=$?
11516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517   (exit $ac_status); }; }; then
11518   ac_cv_func_dlopen=yes
11519 else
11520   echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11522
11523 ac_cv_func_dlopen=no
11524 fi
11525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11526 fi
11527 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11528 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11529 if test $ac_cv_func_dlopen = yes; then
11530   lt_cv_dlopen="dlopen"
11531 else
11532   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11533 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11534 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11535   echo $ECHO_N "(cached) $ECHO_C" >&6
11536 else
11537   ac_check_lib_save_LIBS=$LIBS
11538 LIBS="-ldl  $LIBS"
11539 cat >conftest.$ac_ext <<_ACEOF
11540 #line $LINENO "configure"
11541 /* confdefs.h.  */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h.  */
11546
11547 /* Override any gcc2 internal prototype to avoid an error.  */
11548 #ifdef __cplusplus
11549 extern "C"
11550 #endif
11551 /* We use char because int might match the return type of a gcc2
11552    builtin and then its argument prototype would still apply.  */
11553 char dlopen ();
11554 int
11555 main ()
11556 {
11557 dlopen ();
11558   ;
11559   return 0;
11560 }
11561 _ACEOF
11562 rm -f conftest.$ac_objext conftest$ac_exeext
11563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11564   (eval $ac_link) 2>&5
11565   ac_status=$?
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); } &&
11568          { ac_try='test -s conftest$ac_exeext'
11569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570   (eval $ac_try) 2>&5
11571   ac_status=$?
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); }; }; then
11574   ac_cv_lib_dl_dlopen=yes
11575 else
11576   echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11578
11579 ac_cv_lib_dl_dlopen=no
11580 fi
11581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11582 LIBS=$ac_check_lib_save_LIBS
11583 fi
11584 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11585 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11586 if test $ac_cv_lib_dl_dlopen = yes; then
11587   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11588 else
11589   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11590 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11591 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11592   echo $ECHO_N "(cached) $ECHO_C" >&6
11593 else
11594   ac_check_lib_save_LIBS=$LIBS
11595 LIBS="-lsvld  $LIBS"
11596 cat >conftest.$ac_ext <<_ACEOF
11597 #line $LINENO "configure"
11598 /* confdefs.h.  */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h.  */
11603
11604 /* Override any gcc2 internal prototype to avoid an error.  */
11605 #ifdef __cplusplus
11606 extern "C"
11607 #endif
11608 /* We use char because int might match the return type of a gcc2
11609    builtin and then its argument prototype would still apply.  */
11610 char dlopen ();
11611 int
11612 main ()
11613 {
11614 dlopen ();
11615   ;
11616   return 0;
11617 }
11618 _ACEOF
11619 rm -f conftest.$ac_objext conftest$ac_exeext
11620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11621   (eval $ac_link) 2>&5
11622   ac_status=$?
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); } &&
11625          { ac_try='test -s conftest$ac_exeext'
11626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627   (eval $ac_try) 2>&5
11628   ac_status=$?
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); }; }; then
11631   ac_cv_lib_svld_dlopen=yes
11632 else
11633   echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11635
11636 ac_cv_lib_svld_dlopen=no
11637 fi
11638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11639 LIBS=$ac_check_lib_save_LIBS
11640 fi
11641 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11642 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11643 if test $ac_cv_lib_svld_dlopen = yes; then
11644   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11645 else
11646   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11647 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11648 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11649   echo $ECHO_N "(cached) $ECHO_C" >&6
11650 else
11651   ac_check_lib_save_LIBS=$LIBS
11652 LIBS="-ldld  $LIBS"
11653 cat >conftest.$ac_ext <<_ACEOF
11654 #line $LINENO "configure"
11655 /* confdefs.h.  */
11656 _ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h.  */
11660
11661 /* Override any gcc2 internal prototype to avoid an error.  */
11662 #ifdef __cplusplus
11663 extern "C"
11664 #endif
11665 /* We use char because int might match the return type of a gcc2
11666    builtin and then its argument prototype would still apply.  */
11667 char dld_link ();
11668 int
11669 main ()
11670 {
11671 dld_link ();
11672   ;
11673   return 0;
11674 }
11675 _ACEOF
11676 rm -f conftest.$ac_objext conftest$ac_exeext
11677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11678   (eval $ac_link) 2>&5
11679   ac_status=$?
11680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681   (exit $ac_status); } &&
11682          { ac_try='test -s conftest$ac_exeext'
11683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684   (eval $ac_try) 2>&5
11685   ac_status=$?
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); }; }; then
11688   ac_cv_lib_dld_dld_link=yes
11689 else
11690   echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11692
11693 ac_cv_lib_dld_dld_link=no
11694 fi
11695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11696 LIBS=$ac_check_lib_save_LIBS
11697 fi
11698 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11699 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11700 if test $ac_cv_lib_dld_dld_link = yes; then
11701   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11702 fi
11703
11704
11705 fi
11706
11707
11708 fi
11709
11710
11711 fi
11712
11713
11714 fi
11715
11716
11717 fi
11718
11719     ;;
11720   esac
11721
11722   if test "x$lt_cv_dlopen" != xno; then
11723     enable_dlopen=yes
11724   else
11725     enable_dlopen=no
11726   fi
11727
11728   case $lt_cv_dlopen in
11729   dlopen)
11730     save_CPPFLAGS="$CPPFLAGS"
11731     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11732
11733     save_LDFLAGS="$LDFLAGS"
11734     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11735
11736     save_LIBS="$LIBS"
11737     LIBS="$lt_cv_dlopen_libs $LIBS"
11738
11739     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11740 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11741 if test "${lt_cv_dlopen_self+set}" = set; then
11742   echo $ECHO_N "(cached) $ECHO_C" >&6
11743 else
11744           if test "$cross_compiling" = yes; then :
11745   lt_cv_dlopen_self=cross
11746 else
11747   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11748   lt_status=$lt_dlunknown
11749   cat > conftest.$ac_ext <<EOF
11750 #line 11750 "configure"
11751 #include "confdefs.h"
11752
11753 #if HAVE_DLFCN_H
11754 #include <dlfcn.h>
11755 #endif
11756
11757 #include <stdio.h>
11758
11759 #ifdef RTLD_GLOBAL
11760 #  define LT_DLGLOBAL           RTLD_GLOBAL
11761 #else
11762 #  ifdef DL_GLOBAL
11763 #    define LT_DLGLOBAL         DL_GLOBAL
11764 #  else
11765 #    define LT_DLGLOBAL         0
11766 #  endif
11767 #endif
11768
11769 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11770    find out it does not work in some platform. */
11771 #ifndef LT_DLLAZY_OR_NOW
11772 #  ifdef RTLD_LAZY
11773 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11774 #  else
11775 #    ifdef DL_LAZY
11776 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11777 #    else
11778 #      ifdef RTLD_NOW
11779 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11780 #      else
11781 #        ifdef DL_NOW
11782 #          define LT_DLLAZY_OR_NOW      DL_NOW
11783 #        else
11784 #          define LT_DLLAZY_OR_NOW      0
11785 #        endif
11786 #      endif
11787 #    endif
11788 #  endif
11789 #endif
11790
11791 #ifdef __cplusplus
11792 extern "C" void exit (int);
11793 #endif
11794
11795 void fnord() { int i=42;}
11796 int main ()
11797 {
11798   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11799   int status = $lt_dlunknown;
11800
11801   if (self)
11802     {
11803       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11804       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11805       /* dlclose (self); */
11806     }
11807
11808     exit (status);
11809 }
11810 EOF
11811   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11812   (eval $ac_link) 2>&5
11813   ac_status=$?
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11816     (./conftest; exit; ) 2>/dev/null
11817     lt_status=$?
11818     case x$lt_status in
11819       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11820       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11821       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11822     esac
11823   else :
11824     # compilation failed
11825     lt_cv_dlopen_self=no
11826   fi
11827 fi
11828 rm -fr conftest*
11829
11830
11831 fi
11832 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11833 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11834
11835     if test "x$lt_cv_dlopen_self" = xyes; then
11836       LDFLAGS="$LDFLAGS $link_static_flag"
11837       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11838 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11839 if test "${lt_cv_dlopen_self_static+set}" = set; then
11840   echo $ECHO_N "(cached) $ECHO_C" >&6
11841 else
11842           if test "$cross_compiling" = yes; then :
11843   lt_cv_dlopen_self_static=cross
11844 else
11845   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11846   lt_status=$lt_dlunknown
11847   cat > conftest.$ac_ext <<EOF
11848 #line 11848 "configure"
11849 #include "confdefs.h"
11850
11851 #if HAVE_DLFCN_H
11852 #include <dlfcn.h>
11853 #endif
11854
11855 #include <stdio.h>
11856
11857 #ifdef RTLD_GLOBAL
11858 #  define LT_DLGLOBAL           RTLD_GLOBAL
11859 #else
11860 #  ifdef DL_GLOBAL
11861 #    define LT_DLGLOBAL         DL_GLOBAL
11862 #  else
11863 #    define LT_DLGLOBAL         0
11864 #  endif
11865 #endif
11866
11867 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11868    find out it does not work in some platform. */
11869 #ifndef LT_DLLAZY_OR_NOW
11870 #  ifdef RTLD_LAZY
11871 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11872 #  else
11873 #    ifdef DL_LAZY
11874 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11875 #    else
11876 #      ifdef RTLD_NOW
11877 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11878 #      else
11879 #        ifdef DL_NOW
11880 #          define LT_DLLAZY_OR_NOW      DL_NOW
11881 #        else
11882 #          define LT_DLLAZY_OR_NOW      0
11883 #        endif
11884 #      endif
11885 #    endif
11886 #  endif
11887 #endif
11888
11889 #ifdef __cplusplus
11890 extern "C" void exit (int);
11891 #endif
11892
11893 void fnord() { int i=42;}
11894 int main ()
11895 {
11896   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11897   int status = $lt_dlunknown;
11898
11899   if (self)
11900     {
11901       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11902       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11903       /* dlclose (self); */
11904     }
11905
11906     exit (status);
11907 }
11908 EOF
11909   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11910   (eval $ac_link) 2>&5
11911   ac_status=$?
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11914     (./conftest; exit; ) 2>/dev/null
11915     lt_status=$?
11916     case x$lt_status in
11917       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11918       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11919       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11920     esac
11921   else :
11922     # compilation failed
11923     lt_cv_dlopen_self_static=no
11924   fi
11925 fi
11926 rm -fr conftest*
11927
11928
11929 fi
11930 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11931 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11932     fi
11933
11934     CPPFLAGS="$save_CPPFLAGS"
11935     LDFLAGS="$save_LDFLAGS"
11936     LIBS="$save_LIBS"
11937     ;;
11938   esac
11939
11940   case $lt_cv_dlopen_self in
11941   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11942   *) enable_dlopen_self=unknown ;;
11943   esac
11944
11945   case $lt_cv_dlopen_self_static in
11946   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11947   *) enable_dlopen_self_static=unknown ;;
11948   esac
11949 fi
11950
11951
11952 # The else clause should only fire when bootstrapping the
11953 # libtool distribution, otherwise you forgot to ship ltmain.sh
11954 # with your package, and you will get complaints that there are
11955 # no rules to generate ltmain.sh.
11956 if test -f "$ltmain"; then
11957   # See if we are running on zsh, and set the options which allow our commands through
11958   # without removal of \ escapes.
11959   if test -n "${ZSH_VERSION+set}" ; then
11960     setopt NO_GLOB_SUBST
11961   fi
11962   # Now quote all the things that may contain metacharacters while being
11963   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11964   # variables and quote the copies for generation of the libtool script.
11965   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11966     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11967     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11968     deplibs_check_method reload_flag reload_cmds need_locks \
11969     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11970     lt_cv_sys_global_symbol_to_c_name_address \
11971     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11972     old_postinstall_cmds old_postuninstall_cmds \
11973     compiler_CXX \
11974     CC_CXX \
11975     LD_CXX \
11976     lt_prog_compiler_wl_CXX \
11977     lt_prog_compiler_pic_CXX \
11978     lt_prog_compiler_static_CXX \
11979     lt_prog_compiler_no_builtin_flag_CXX \
11980     export_dynamic_flag_spec_CXX \
11981     thread_safe_flag_spec_CXX \
11982     whole_archive_flag_spec_CXX \
11983     enable_shared_with_static_runtimes_CXX \
11984     old_archive_cmds_CXX \
11985     old_archive_from_new_cmds_CXX \
11986     predep_objects_CXX \
11987     postdep_objects_CXX \
11988     predeps_CXX \
11989     postdeps_CXX \
11990     compiler_lib_search_path_CXX \
11991     archive_cmds_CXX \
11992     archive_expsym_cmds_CXX \
11993     postinstall_cmds_CXX \
11994     postuninstall_cmds_CXX \
11995     old_archive_from_expsyms_cmds_CXX \
11996     allow_undefined_flag_CXX \
11997     no_undefined_flag_CXX \
11998     export_symbols_cmds_CXX \
11999     hardcode_libdir_flag_spec_CXX \
12000     hardcode_libdir_flag_spec_ld_CXX \
12001     hardcode_libdir_separator_CXX \
12002     hardcode_automatic_CXX \
12003     module_cmds_CXX \
12004     module_expsym_cmds_CXX \
12005     lt_cv_prog_compiler_c_o_CXX \
12006     exclude_expsyms_CXX \
12007     include_expsyms_CXX; do
12008
12009     case $var in
12010     old_archive_cmds_CXX | \
12011     old_archive_from_new_cmds_CXX | \
12012     archive_cmds_CXX | \
12013     archive_expsym_cmds_CXX | \
12014     module_cmds_CXX | \
12015     module_expsym_cmds_CXX | \
12016     old_archive_from_expsyms_cmds_CXX | \
12017     export_symbols_cmds_CXX | \
12018     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12019     postinstall_cmds | postuninstall_cmds | \
12020     old_postinstall_cmds | old_postuninstall_cmds | \
12021     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12022       # Double-quote double-evaled strings.
12023       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12024       ;;
12025     *)
12026       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12027       ;;
12028     esac
12029   done
12030
12031   case $lt_echo in
12032   *'\$0 --fallback-echo"')
12033     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12034     ;;
12035   esac
12036
12037 cfgfile="$ofile"
12038
12039   cat <<__EOF__ >> "$cfgfile"
12040 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12041
12042 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12043
12044 # Shell to use when invoking shell scripts.
12045 SHELL=$lt_SHELL
12046
12047 # Whether or not to build shared libraries.
12048 build_libtool_libs=$enable_shared
12049
12050 # Whether or not to build static libraries.
12051 build_old_libs=$enable_static
12052
12053 # Whether or not to add -lc for building shared libraries.
12054 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12055
12056 # Whether or not to disallow shared libs when runtime libs are static
12057 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12058
12059 # Whether or not to optimize for fast installation.
12060 fast_install=$enable_fast_install
12061
12062 # The host system.
12063 host_alias=$host_alias
12064 host=$host
12065
12066 # An echo program that does not interpret backslashes.
12067 echo=$lt_echo
12068
12069 # The archiver.
12070 AR=$lt_AR
12071 AR_FLAGS=$lt_AR_FLAGS
12072
12073 # A C compiler.
12074 LTCC=$lt_LTCC
12075
12076 # A language-specific compiler.
12077 CC=$lt_compiler_CXX
12078
12079 # Is the compiler the GNU C compiler?
12080 with_gcc=$GCC_CXX
12081
12082 # An ERE matcher.
12083 EGREP=$lt_EGREP
12084
12085 # The linker used to build libraries.
12086 LD=$lt_LD_CXX
12087
12088 # Whether we need hard or soft links.
12089 LN_S=$lt_LN_S
12090
12091 # A BSD-compatible nm program.
12092 NM=$lt_NM
12093
12094 # A symbol stripping program
12095 STRIP=$STRIP
12096
12097 # Used to examine libraries when file_magic_cmd begins "file"
12098 MAGIC_CMD=$MAGIC_CMD
12099
12100 # Used on cygwin: DLL creation program.
12101 DLLTOOL="$DLLTOOL"
12102
12103 # Used on cygwin: object dumper.
12104 OBJDUMP="$OBJDUMP"
12105
12106 # Used on cygwin: assembler.
12107 AS="$AS"
12108
12109 # The name of the directory that contains temporary libtool files.
12110 objdir=$objdir
12111
12112 # How to create reloadable object files.
12113 reload_flag=$lt_reload_flag
12114 reload_cmds=$lt_reload_cmds
12115
12116 # How to pass a linker flag through the compiler.
12117 wl=$lt_lt_prog_compiler_wl_CXX
12118
12119 # Object file suffix (normally "o").
12120 objext="$ac_objext"
12121
12122 # Old archive suffix (normally "a").
12123 libext="$libext"
12124
12125 # Shared library suffix (normally ".so").
12126 shrext='$shrext'
12127
12128 # Executable file suffix (normally "").
12129 exeext="$exeext"
12130
12131 # Additional compiler flags for building library objects.
12132 pic_flag=$lt_lt_prog_compiler_pic_CXX
12133 pic_mode=$pic_mode
12134
12135 # What is the maximum length of a command?
12136 max_cmd_len=$lt_cv_sys_max_cmd_len
12137
12138 # Does compiler simultaneously support -c and -o options?
12139 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12140
12141 # Must we lock files when doing compilation ?
12142 need_locks=$lt_need_locks
12143
12144 # Do we need the lib prefix for modules?
12145 need_lib_prefix=$need_lib_prefix
12146
12147 # Do we need a version for libraries?
12148 need_version=$need_version
12149
12150 # Whether dlopen is supported.
12151 dlopen_support=$enable_dlopen
12152
12153 # Whether dlopen of programs is supported.
12154 dlopen_self=$enable_dlopen_self
12155
12156 # Whether dlopen of statically linked programs is supported.
12157 dlopen_self_static=$enable_dlopen_self_static
12158
12159 # Compiler flag to prevent dynamic linking.
12160 link_static_flag=$lt_lt_prog_compiler_static_CXX
12161
12162 # Compiler flag to turn off builtin functions.
12163 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12164
12165 # Compiler flag to allow reflexive dlopens.
12166 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12167
12168 # Compiler flag to generate shared objects directly from archives.
12169 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12170
12171 # Compiler flag to generate thread-safe objects.
12172 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12173
12174 # Library versioning type.
12175 version_type=$version_type
12176
12177 # Format of library name prefix.
12178 libname_spec=$lt_libname_spec
12179
12180 # List of archive names.  First name is the real one, the rest are links.
12181 # The last name is the one that the linker finds with -lNAME.
12182 library_names_spec=$lt_library_names_spec
12183
12184 # The coded name of the library, if different from the real name.
12185 soname_spec=$lt_soname_spec
12186
12187 # Commands used to build and install an old-style archive.
12188 RANLIB=$lt_RANLIB
12189 old_archive_cmds=$lt_old_archive_cmds_CXX
12190 old_postinstall_cmds=$lt_old_postinstall_cmds
12191 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12192
12193 # Create an old-style archive from a shared archive.
12194 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12195
12196 # Create a temporary old-style archive to link instead of a shared archive.
12197 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12198
12199 # Commands used to build and install a shared archive.
12200 archive_cmds=$lt_archive_cmds_CXX
12201 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12202 postinstall_cmds=$lt_postinstall_cmds
12203 postuninstall_cmds=$lt_postuninstall_cmds
12204
12205 # Commands used to build a loadable module (assumed same as above if empty)
12206 module_cmds=$lt_module_cmds_CXX
12207 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12208
12209 # Commands to strip libraries.
12210 old_striplib=$lt_old_striplib
12211 striplib=$lt_striplib
12212
12213 # Dependencies to place before the objects being linked to create a
12214 # shared library.
12215 predep_objects=$lt_predep_objects_CXX
12216
12217 # Dependencies to place after the objects being linked to create a
12218 # shared library.
12219 postdep_objects=$lt_postdep_objects_CXX
12220
12221 # Dependencies to place before the objects being linked to create a
12222 # shared library.
12223 predeps=$lt_predeps_CXX
12224
12225 # Dependencies to place after the objects being linked to create a
12226 # shared library.
12227 postdeps=$lt_postdeps_CXX
12228
12229 # The library search path used internally by the compiler when linking
12230 # a shared library.
12231 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12232
12233 # Method to check whether dependent libraries are shared objects.
12234 deplibs_check_method=$lt_deplibs_check_method
12235
12236 # Command to use when deplibs_check_method == file_magic.
12237 file_magic_cmd=$lt_file_magic_cmd
12238
12239 # Flag that allows shared libraries with undefined symbols to be built.
12240 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12241
12242 # Flag that forces no undefined symbols.
12243 no_undefined_flag=$lt_no_undefined_flag_CXX
12244
12245 # Commands used to finish a libtool library installation in a directory.
12246 finish_cmds=$lt_finish_cmds
12247
12248 # Same as above, but a single script fragment to be evaled but not shown.
12249 finish_eval=$lt_finish_eval
12250
12251 # Take the output of nm and produce a listing of raw symbols and C names.
12252 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12253
12254 # Transform the output of nm in a proper C declaration
12255 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12256
12257 # Transform the output of nm in a C name address pair
12258 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12259
12260 # This is the shared library runtime path variable.
12261 runpath_var=$runpath_var
12262
12263 # This is the shared library path variable.
12264 shlibpath_var=$shlibpath_var
12265
12266 # Is shlibpath searched before the hard-coded library search path?
12267 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12268
12269 # How to hardcode a shared library path into an executable.
12270 hardcode_action=$hardcode_action_CXX
12271
12272 # Whether we should hardcode library paths into libraries.
12273 hardcode_into_libs=$hardcode_into_libs
12274
12275 # Flag to hardcode \$libdir into a binary during linking.
12276 # This must work even if \$libdir does not exist.
12277 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12278
12279 # If ld is used when linking, flag to hardcode \$libdir into
12280 # a binary during linking. This must work even if \$libdir does
12281 # not exist.
12282 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12283
12284 # Whether we need a single -rpath flag with a separated argument.
12285 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12286
12287 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12288 # resulting binary.
12289 hardcode_direct=$hardcode_direct_CXX
12290
12291 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12292 # resulting binary.
12293 hardcode_minus_L=$hardcode_minus_L_CXX
12294
12295 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12296 # the resulting binary.
12297 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12298
12299 # Set to yes if building a shared library automatically hardcodes DIR into the library
12300 # and all subsequent libraries and executables linked against it.
12301 hardcode_automatic=$hardcode_automatic_CXX
12302
12303 # Variables whose values should be saved in libtool wrapper scripts and
12304 # restored at relink time.
12305 variables_saved_for_relink="$variables_saved_for_relink"
12306
12307 # Whether libtool must link a program against all its dependency libraries.
12308 link_all_deplibs=$link_all_deplibs_CXX
12309
12310 # Compile-time system search path for libraries
12311 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12312
12313 # Run-time system search path for libraries
12314 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12315
12316 # Fix the shell variable \$srcfile for the compiler.
12317 fix_srcfile_path="$fix_srcfile_path_CXX"
12318
12319 # Set to yes if exported symbols are required.
12320 always_export_symbols=$always_export_symbols_CXX
12321
12322 # The commands to list exported symbols.
12323 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12324
12325 # The commands to extract the exported symbol list from a shared archive.
12326 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12327
12328 # Symbols that should not be listed in the preloaded symbols.
12329 exclude_expsyms=$lt_exclude_expsyms_CXX
12330
12331 # Symbols that must always be exported.
12332 include_expsyms=$lt_include_expsyms_CXX
12333
12334 # ### END LIBTOOL TAG CONFIG: $tagname
12335
12336 __EOF__
12337
12338
12339 else
12340   # If there is no Makefile yet, we rely on a make rule to execute
12341   # `config.status --recheck' to rerun these tests and create the
12342   # libtool script then.
12343   test -f Makefile && make "$ltmain"
12344 fi
12345
12346
12347 ac_ext=c
12348 ac_cpp='$CPP $CPPFLAGS'
12349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12352
12353 CC=$lt_save_CC
12354 LDCXX=$LD
12355 LD=$lt_save_LD
12356 GCC=$lt_save_GCC
12357 with_gnu_ldcxx=$with_gnu_ld
12358 with_gnu_ld=$lt_save_with_gnu_ld
12359 lt_cv_path_LDCXX=$lt_cv_path_LD
12360 lt_cv_path_LD=$lt_save_path_LD
12361 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12362 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12363
12364         else
12365           tagname=""
12366         fi
12367         ;;
12368
12369       F77)
12370         if test -n "$F77" && test "X$F77" != "Xno"; then
12371
12372 ac_ext=f
12373 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12374 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12375 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12376
12377
12378 archive_cmds_need_lc_F77=no
12379 allow_undefined_flag_F77=
12380 always_export_symbols_F77=no
12381 archive_expsym_cmds_F77=
12382 export_dynamic_flag_spec_F77=
12383 hardcode_direct_F77=no
12384 hardcode_libdir_flag_spec_F77=
12385 hardcode_libdir_flag_spec_ld_F77=
12386 hardcode_libdir_separator_F77=
12387 hardcode_minus_L_F77=no
12388 hardcode_automatic_F77=no
12389 module_cmds_F77=
12390 module_expsym_cmds_F77=
12391 link_all_deplibs_F77=unknown
12392 old_archive_cmds_F77=$old_archive_cmds
12393 no_undefined_flag_F77=
12394 whole_archive_flag_spec_F77=
12395 enable_shared_with_static_runtimes_F77=no
12396
12397 # Source file extension for f77 test sources.
12398 ac_ext=f
12399
12400 # Object file extension for compiled f77 test sources.
12401 objext=o
12402 objext_F77=$objext
12403
12404 # Code to be used in simple compile tests
12405 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12406
12407 # Code to be used in simple link tests
12408 lt_simple_link_test_code="      program t\n      end\n"
12409
12410 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12411
12412 # If no C compiler was specified, use CC.
12413 LTCC=${LTCC-"$CC"}
12414
12415 # Allow CC to be a program name with arguments.
12416 compiler=$CC
12417
12418
12419 # Allow CC to be a program name with arguments.
12420 lt_save_CC="$CC"
12421 CC=${F77-"f77"}
12422 compiler=$CC
12423 compiler_F77=$CC
12424 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12425
12426 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12427 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12428 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12429 echo "${ECHO_T}$can_build_shared" >&6
12430
12431 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12432 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12433 test "$can_build_shared" = "no" && enable_shared=no
12434
12435 # On AIX, shared libraries and static libraries use the same namespace, and
12436 # are all built from PIC.
12437 case "$host_os" in
12438 aix3*)
12439   test "$enable_shared" = yes && enable_static=no
12440   if test -n "$RANLIB"; then
12441     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12442     postinstall_cmds='$RANLIB $lib'
12443   fi
12444   ;;
12445 aix4*)
12446   test "$enable_shared" = yes && enable_static=no
12447   ;;
12448 esac
12449 echo "$as_me:$LINENO: result: $enable_shared" >&5
12450 echo "${ECHO_T}$enable_shared" >&6
12451
12452 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12453 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12454 # Make sure either enable_shared or enable_static is yes.
12455 test "$enable_shared" = yes || enable_static=yes
12456 echo "$as_me:$LINENO: result: $enable_static" >&5
12457 echo "${ECHO_T}$enable_static" >&6
12458
12459 test "$ld_shlibs_F77" = no && can_build_shared=no
12460
12461 GCC_F77="$G77"
12462 LD_F77="$LD"
12463
12464 lt_prog_compiler_wl_F77=
12465 lt_prog_compiler_pic_F77=
12466 lt_prog_compiler_static_F77=
12467
12468 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12469 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12470
12471   if test "$GCC" = yes; then
12472     lt_prog_compiler_wl_F77='-Wl,'
12473     lt_prog_compiler_static_F77='-static'
12474
12475     case $host_os in
12476       aix*)
12477       # All AIX code is PIC.
12478       if test "$host_cpu" = ia64; then
12479         # AIX 5 now supports IA64 processor
12480         lt_prog_compiler_static_F77='-Bstatic'
12481       fi
12482       ;;
12483
12484     amigaos*)
12485       # FIXME: we need at least 68020 code to build shared libraries, but
12486       # adding the `-m68020' flag to GCC prevents building anything better,
12487       # like `-m68040'.
12488       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12489       ;;
12490
12491     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12492       # PIC is the default for these OSes.
12493       ;;
12494
12495     mingw* | pw32* | os2*)
12496       # This hack is so that the source file can tell whether it is being
12497       # built for inclusion in a dll (and should export symbols for example).
12498       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12499       ;;
12500
12501     darwin* | rhapsody*)
12502       # PIC is the default on this platform
12503       # Common symbols not allowed in MH_DYLIB files
12504       lt_prog_compiler_pic_F77='-fno-common'
12505       ;;
12506
12507     msdosdjgpp*)
12508       # Just because we use GCC doesn't mean we suddenly get shared libraries
12509       # on systems that don't support them.
12510       lt_prog_compiler_can_build_shared_F77=no
12511       enable_shared=no
12512       ;;
12513
12514     sysv4*MP*)
12515       if test -d /usr/nec; then
12516         lt_prog_compiler_pic_F77=-Kconform_pic
12517       fi
12518       ;;
12519
12520     hpux*)
12521       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12522       # not for PA HP-UX.
12523       case "$host_cpu" in
12524       hppa*64*|ia64*)
12525         # +Z the default
12526         ;;
12527       *)
12528         lt_prog_compiler_pic_F77='-fPIC'
12529         ;;
12530       esac
12531       ;;
12532
12533     *)
12534       lt_prog_compiler_pic_F77='-fPIC'
12535       ;;
12536     esac
12537   else
12538     # PORTME Check for flag to pass linker flags through the system compiler.
12539     case $host_os in
12540     aix*)
12541       lt_prog_compiler_wl_F77='-Wl,'
12542       if test "$host_cpu" = ia64; then
12543         # AIX 5 now supports IA64 processor
12544         lt_prog_compiler_static_F77='-Bstatic'
12545       else
12546         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12547       fi
12548       ;;
12549
12550     mingw* | pw32* | os2*)
12551       # This hack is so that the source file can tell whether it is being
12552       # built for inclusion in a dll (and should export symbols for example).
12553       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12554       ;;
12555
12556     hpux9* | hpux10* | hpux11*)
12557       lt_prog_compiler_wl_F77='-Wl,'
12558       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12559       # not for PA HP-UX.
12560       case "$host_cpu" in
12561       hppa*64*|ia64*)
12562         # +Z the default
12563         ;;
12564       *)
12565         lt_prog_compiler_pic_F77='+Z'
12566         ;;
12567       esac
12568       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12569       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12570       ;;
12571
12572     irix5* | irix6* | nonstopux*)
12573       lt_prog_compiler_wl_F77='-Wl,'
12574       # PIC (with -KPIC) is the default.
12575       lt_prog_compiler_static_F77='-non_shared'
12576       ;;
12577
12578     newsos6)
12579       lt_prog_compiler_pic_F77='-KPIC'
12580       lt_prog_compiler_static_F77='-Bstatic'
12581       ;;
12582
12583     linux*)
12584       case $CC in
12585       icc|ecc)
12586         lt_prog_compiler_wl_F77='-Wl,'
12587         lt_prog_compiler_pic_F77='-KPIC'
12588         lt_prog_compiler_static_F77='-static'
12589         ;;
12590       ccc)
12591         lt_prog_compiler_wl_F77='-Wl,'
12592         # All Alpha code is PIC.
12593         lt_prog_compiler_static_F77='-non_shared'
12594         ;;
12595       esac
12596       ;;
12597
12598     osf3* | osf4* | osf5*)
12599       lt_prog_compiler_wl_F77='-Wl,'
12600       # All OSF/1 code is PIC.
12601       lt_prog_compiler_static_F77='-non_shared'
12602       ;;
12603
12604     sco3.2v5*)
12605       lt_prog_compiler_pic_F77='-Kpic'
12606       lt_prog_compiler_static_F77='-dn'
12607       ;;
12608
12609     solaris*)
12610       lt_prog_compiler_wl_F77='-Wl,'
12611       lt_prog_compiler_pic_F77='-KPIC'
12612       lt_prog_compiler_static_F77='-Bstatic'
12613       ;;
12614
12615     sunos4*)
12616       lt_prog_compiler_wl_F77='-Qoption ld '
12617       lt_prog_compiler_pic_F77='-PIC'
12618       lt_prog_compiler_static_F77='-Bstatic'
12619       ;;
12620
12621     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12622       lt_prog_compiler_wl_F77='-Wl,'
12623       lt_prog_compiler_pic_F77='-KPIC'
12624       lt_prog_compiler_static_F77='-Bstatic'
12625       ;;
12626
12627     sysv4*MP*)
12628       if test -d /usr/nec ;then
12629         lt_prog_compiler_pic_F77='-Kconform_pic'
12630         lt_prog_compiler_static_F77='-Bstatic'
12631       fi
12632       ;;
12633
12634     uts4*)
12635       lt_prog_compiler_pic_F77='-pic'
12636       lt_prog_compiler_static_F77='-Bstatic'
12637       ;;
12638
12639     *)
12640       lt_prog_compiler_can_build_shared_F77=no
12641       ;;
12642     esac
12643   fi
12644
12645 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12646 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12647
12648 #
12649 # Check to make sure the PIC flag actually works.
12650 #
12651 if test -n "$lt_prog_compiler_pic_F77"; then
12652   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12653 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12654 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12655   echo $ECHO_N "(cached) $ECHO_C" >&6
12656 else
12657   lt_prog_compiler_pic_works_F77=no
12658   ac_outfile=conftest.$ac_objext
12659    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12660    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12661    # Insert the option either (1) after the last *FLAGS variable, or
12662    # (2) before a word containing "conftest.", or (3) at the end.
12663    # Note that $ac_compile itself does not contain backslashes and begins
12664    # with a dollar sign (not a hyphen), so the echo should work correctly.
12665    # The option is referenced via a variable to avoid confusing sed.
12666    lt_compile=`echo "$ac_compile" | $SED \
12667    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12668    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12669    -e 's:$: $lt_compiler_flag:'`
12670    (eval echo "\"\$as_me:12670: $lt_compile\"" >&5)
12671    (eval "$lt_compile" 2>conftest.err)
12672    ac_status=$?
12673    cat conftest.err >&5
12674    echo "$as_me:12674: \$? = $ac_status" >&5
12675    if (exit $ac_status) && test -s "$ac_outfile"; then
12676      # The compiler can only warn and ignore the option if not recognized
12677      # So say no if there are warnings
12678      if test ! -s conftest.err; then
12679        lt_prog_compiler_pic_works_F77=yes
12680      fi
12681    fi
12682    $rm conftest*
12683
12684 fi
12685 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12686 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12687
12688 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12689     case $lt_prog_compiler_pic_F77 in
12690      "" | " "*) ;;
12691      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12692      esac
12693 else
12694     lt_prog_compiler_pic_F77=
12695      lt_prog_compiler_can_build_shared_F77=no
12696 fi
12697
12698 fi
12699 case "$host_os" in
12700   # For platforms which do not support PIC, -DPIC is meaningless:
12701   *djgpp*)
12702     lt_prog_compiler_pic_F77=
12703     ;;
12704   *)
12705     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12706     ;;
12707 esac
12708
12709 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12710 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12711 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12712   echo $ECHO_N "(cached) $ECHO_C" >&6
12713 else
12714   lt_cv_prog_compiler_c_o_F77=no
12715    $rm -r conftest 2>/dev/null
12716    mkdir conftest
12717    cd conftest
12718    mkdir out
12719    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12720
12721    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12722    # that will create temporary files in the current directory regardless of
12723    # the output directory.  Thus, making CWD read-only will cause this test
12724    # to fail, enabling locking or at least warning the user not to do parallel
12725    # builds.
12726    chmod -w .
12727
12728    lt_compiler_flag="-o out/conftest2.$ac_objext"
12729    # Insert the option either (1) after the last *FLAGS variable, or
12730    # (2) before a word containing "conftest.", or (3) at the end.
12731    # Note that $ac_compile itself does not contain backslashes and begins
12732    # with a dollar sign (not a hyphen), so the echo should work correctly.
12733    lt_compile=`echo "$ac_compile" | $SED \
12734    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12735    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12736    -e 's:$: $lt_compiler_flag:'`
12737    (eval echo "\"\$as_me:12737: $lt_compile\"" >&5)
12738    (eval "$lt_compile" 2>out/conftest.err)
12739    ac_status=$?
12740    cat out/conftest.err >&5
12741    echo "$as_me:12741: \$? = $ac_status" >&5
12742    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12743    then
12744      # The compiler can only warn and ignore the option if not recognized
12745      # So say no if there are warnings
12746      if test ! -s out/conftest.err; then
12747        lt_cv_prog_compiler_c_o_F77=yes
12748      fi
12749    fi
12750    chmod u+w .
12751    $rm conftest* out/*
12752    rmdir out
12753    cd ..
12754    rmdir conftest
12755    $rm conftest*
12756
12757 fi
12758 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12759 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12760
12761
12762 hard_links="nottested"
12763 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12764   # do not overwrite the value of need_locks provided by the user
12765   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12766 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12767   hard_links=yes
12768   $rm conftest*
12769   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12770   touch conftest.a
12771   ln conftest.a conftest.b 2>&5 || hard_links=no
12772   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12773   echo "$as_me:$LINENO: result: $hard_links" >&5
12774 echo "${ECHO_T}$hard_links" >&6
12775   if test "$hard_links" = no; then
12776     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12777 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12778     need_locks=warn
12779   fi
12780 else
12781   need_locks=no
12782 fi
12783
12784 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12785 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12786
12787   runpath_var=
12788   allow_undefined_flag_F77=
12789   enable_shared_with_static_runtimes_F77=no
12790   archive_cmds_F77=
12791   archive_expsym_cmds_F77=
12792   old_archive_From_new_cmds_F77=
12793   old_archive_from_expsyms_cmds_F77=
12794   export_dynamic_flag_spec_F77=
12795   whole_archive_flag_spec_F77=
12796   thread_safe_flag_spec_F77=
12797   hardcode_libdir_flag_spec_F77=
12798   hardcode_libdir_flag_spec_ld_F77=
12799   hardcode_libdir_separator_F77=
12800   hardcode_direct_F77=no
12801   hardcode_minus_L_F77=no
12802   hardcode_shlibpath_var_F77=unsupported
12803   link_all_deplibs_F77=unknown
12804   hardcode_automatic_F77=no
12805   module_cmds_F77=
12806   module_expsym_cmds_F77=
12807   always_export_symbols_F77=no
12808   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12809   # include_expsyms should be a list of space-separated symbols to be *always*
12810   # included in the symbol list
12811   include_expsyms_F77=
12812   # exclude_expsyms can be an extended regexp of symbols to exclude
12813   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12814   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12815   # as well as any symbol that contains `d'.
12816   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12817   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12818   # platforms (ab)use it in PIC code, but their linkers get confused if
12819   # the symbol is explicitly referenced.  Since portable code cannot
12820   # rely on this symbol name, it's probably fine to never include it in
12821   # preloaded symbol tables.
12822   extract_expsyms_cmds=
12823
12824   case $host_os in
12825   cygwin* | mingw* | pw32*)
12826     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12827     # When not using gcc, we currently assume that we are using
12828     # Microsoft Visual C++.
12829     if test "$GCC" != yes; then
12830       with_gnu_ld=no
12831     fi
12832     ;;
12833   openbsd*)
12834     with_gnu_ld=no
12835     ;;
12836   esac
12837
12838   ld_shlibs_F77=yes
12839   if test "$with_gnu_ld" = yes; then
12840     # If archive_cmds runs LD, not CC, wlarc should be empty
12841     wlarc='${wl}'
12842
12843     # See if GNU ld supports shared libraries.
12844     case $host_os in
12845     aix3* | aix4* | aix5*)
12846       # On AIX/PPC, the GNU linker is very broken
12847       if test "$host_cpu" != ia64; then
12848         ld_shlibs_F77=no
12849         cat <<EOF 1>&2
12850
12851 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12852 *** to be unable to reliably create shared libraries on AIX.
12853 *** Therefore, libtool is disabling shared libraries support.  If you
12854 *** really care for shared libraries, you may want to modify your PATH
12855 *** so that a non-GNU linker is found, and then restart.
12856
12857 EOF
12858       fi
12859       ;;
12860
12861     amigaos*)
12862       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)'
12863       hardcode_libdir_flag_spec_F77='-L$libdir'
12864       hardcode_minus_L_F77=yes
12865
12866       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12867       # that the semantics of dynamic libraries on AmigaOS, at least up
12868       # to version 4, is to share data among multiple programs linked
12869       # with the same dynamic library.  Since this doesn't match the
12870       # behavior of shared libraries on other platforms, we can't use
12871       # them.
12872       ld_shlibs_F77=no
12873       ;;
12874
12875     beos*)
12876       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12877         allow_undefined_flag_F77=unsupported
12878         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12879         # support --undefined.  This deserves some investigation.  FIXME
12880         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12881       else
12882         ld_shlibs_F77=no
12883       fi
12884       ;;
12885
12886     cygwin* | mingw* | pw32*)
12887       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12888       # as there is no search path for DLLs.
12889       hardcode_libdir_flag_spec_F77='-L$libdir'
12890       allow_undefined_flag_F77=unsupported
12891       always_export_symbols_F77=no
12892       enable_shared_with_static_runtimes_F77=yes
12893       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12894
12895       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12896         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12897         # If the export-symbols file already is a .def file (1st line
12898         # is EXPORTS), use it as is; otherwise, prepend...
12899         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12900           cp $export_symbols $output_objdir/$soname.def;
12901         else
12902           echo EXPORTS > $output_objdir/$soname.def;
12903           cat $export_symbols >> $output_objdir/$soname.def;
12904         fi~
12905         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12906       else
12907         ld_shlibs=no
12908       fi
12909       ;;
12910
12911     netbsd*)
12912       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12913         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12914         wlarc=
12915       else
12916         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12917         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12918       fi
12919       ;;
12920
12921     solaris* | sysv5*)
12922       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12923         ld_shlibs_F77=no
12924         cat <<EOF 1>&2
12925
12926 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12927 *** create shared libraries on Solaris systems.  Therefore, libtool
12928 *** is disabling shared libraries support.  We urge you to upgrade GNU
12929 *** binutils to release 2.9.1 or newer.  Another option is to modify
12930 *** your PATH or compiler configuration so that the native linker is
12931 *** used, and then restart.
12932
12933 EOF
12934       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12935         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12936         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12937       else
12938         ld_shlibs_F77=no
12939       fi
12940       ;;
12941
12942     sunos4*)
12943       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12944       wlarc=
12945       hardcode_direct_F77=yes
12946       hardcode_shlibpath_var_F77=no
12947       ;;
12948
12949     *)
12950       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12951         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12952         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12953       else
12954         ld_shlibs_F77=no
12955       fi
12956       ;;
12957     esac
12958
12959     if test "$ld_shlibs_F77" = yes; then
12960       runpath_var=LD_RUN_PATH
12961       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12962       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12963       # ancient GNU ld didn't support --whole-archive et. al.
12964       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12965         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12966       else
12967         whole_archive_flag_spec_F77=
12968       fi
12969     fi
12970   else
12971     # PORTME fill in a description of your system's linker (not GNU ld)
12972     case $host_os in
12973     aix3*)
12974       allow_undefined_flag_F77=unsupported
12975       always_export_symbols_F77=yes
12976       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'
12977       # Note: this linker hardcodes the directories in LIBPATH if there
12978       # are no directories specified by -L.
12979       hardcode_minus_L_F77=yes
12980       if test "$GCC" = yes && test -z "$link_static_flag"; then
12981         # Neither direct hardcoding nor static linking is supported with a
12982         # broken collect2.
12983         hardcode_direct_F77=unsupported
12984       fi
12985       ;;
12986
12987     aix4* | aix5*)
12988       if test "$host_cpu" = ia64; then
12989         # On IA64, the linker does run time linking by default, so we don't
12990         # have to do anything special.
12991         aix_use_runtimelinking=no
12992         exp_sym_flag='-Bexport'
12993         no_entry_flag=""
12994       else
12995         # If we're using GNU nm, then we don't want the "-C" option.
12996         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12997         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12998           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'
12999         else
13000           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'
13001         fi
13002         aix_use_runtimelinking=no
13003
13004         # Test if we are trying to use run time linking or normal
13005         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13006         # need to do runtime linking.
13007         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13008           for ld_flag in $LDFLAGS; do
13009           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13010             aix_use_runtimelinking=yes
13011             break
13012           fi
13013           done
13014         esac
13015
13016         exp_sym_flag='-bexport'
13017         no_entry_flag='-bnoentry'
13018       fi
13019
13020       # When large executables or shared objects are built, AIX ld can
13021       # have problems creating the table of contents.  If linking a library
13022       # or program results in "error TOC overflow" add -mminimal-toc to
13023       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13024       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13025
13026       archive_cmds_F77=''
13027       hardcode_direct_F77=yes
13028       hardcode_libdir_separator_F77=':'
13029       link_all_deplibs_F77=yes
13030
13031       if test "$GCC" = yes; then
13032         case $host_os in aix4.012|aix4.012.*)
13033         # We only want to do this on AIX 4.2 and lower, the check
13034         # below for broken collect2 doesn't work under 4.3+
13035           collect2name=`${CC} -print-prog-name=collect2`
13036           if test -f "$collect2name" && \
13037            strings "$collect2name" | grep resolve_lib_name >/dev/null
13038           then
13039           # We have reworked collect2
13040           hardcode_direct_F77=yes
13041           else
13042           # We have old collect2
13043           hardcode_direct_F77=unsupported
13044           # It fails to find uninstalled libraries when the uninstalled
13045           # path is not listed in the libpath.  Setting hardcode_minus_L
13046           # to unsupported forces relinking
13047           hardcode_minus_L_F77=yes
13048           hardcode_libdir_flag_spec_F77='-L$libdir'
13049           hardcode_libdir_separator_F77=
13050           fi
13051         esac
13052         shared_flag='-shared'
13053       else
13054         # not using gcc
13055         if test "$host_cpu" = ia64; then
13056         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13057         # chokes on -Wl,-G. The following line is correct:
13058           shared_flag='-G'
13059         else
13060         if test "$aix_use_runtimelinking" = yes; then
13061             shared_flag='${wl}-G'
13062           else
13063             shared_flag='${wl}-bM:SRE'
13064         fi
13065         fi
13066       fi
13067
13068       # It seems that -bexpall does not export symbols beginning with
13069       # underscore (_), so it is better to generate a list of symbols to export.
13070       always_export_symbols_F77=yes
13071       if test "$aix_use_runtimelinking" = yes; then
13072         # Warning - without using the other runtime loading flags (-brtl),
13073         # -berok will link without error, but may produce a broken library.
13074         allow_undefined_flag_F77='-berok'
13075        # Determine the default libpath from the value encoded in an empty executable.
13076        cat >conftest.$ac_ext <<_ACEOF
13077       program main
13078
13079       end
13080 _ACEOF
13081 rm -f conftest.$ac_objext conftest$ac_exeext
13082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13083   (eval $ac_link) 2>&5
13084   ac_status=$?
13085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086   (exit $ac_status); } &&
13087          { ac_try='test -s conftest$ac_exeext'
13088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089   (eval $ac_try) 2>&5
13090   ac_status=$?
13091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092   (exit $ac_status); }; }; then
13093
13094 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13095 }'`
13096 # Check for a 64-bit object if we didn't find anything.
13097 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; }
13098 }'`; fi
13099 else
13100   echo "$as_me: failed program was:" >&5
13101 sed 's/^/| /' conftest.$ac_ext >&5
13102
13103 fi
13104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13105 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13106
13107        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13108         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"
13109        else
13110         if test "$host_cpu" = ia64; then
13111           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13112           allow_undefined_flag_F77="-z nodefs"
13113           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"
13114         else
13115          # Determine the default libpath from the value encoded in an empty executable.
13116          cat >conftest.$ac_ext <<_ACEOF
13117       program main
13118
13119       end
13120 _ACEOF
13121 rm -f conftest.$ac_objext conftest$ac_exeext
13122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13123   (eval $ac_link) 2>&5
13124   ac_status=$?
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); } &&
13127          { ac_try='test -s conftest$ac_exeext'
13128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129   (eval $ac_try) 2>&5
13130   ac_status=$?
13131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132   (exit $ac_status); }; }; then
13133
13134 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13135 }'`
13136 # Check for a 64-bit object if we didn't find anything.
13137 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; }
13138 }'`; fi
13139 else
13140   echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13142
13143 fi
13144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13145 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13146
13147          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13148           # Warning - without using the other run time loading flags,
13149           # -berok will link without error, but may produce a broken library.
13150           no_undefined_flag_F77=' ${wl}-bernotok'
13151           allow_undefined_flag_F77=' ${wl}-berok'
13152           # -bexpall does not export symbols beginning with underscore (_)
13153           always_export_symbols_F77=yes
13154           # Exported symbols can be pulled into shared objects from archives
13155           whole_archive_flag_spec_F77=' '
13156           archive_cmds_need_lc_F77=yes
13157           # This is similar to how AIX traditionally builds it's shared libraries.
13158           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'
13159         fi
13160       fi
13161       ;;
13162
13163     amigaos*)
13164       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)'
13165       hardcode_libdir_flag_spec_F77='-L$libdir'
13166       hardcode_minus_L_F77=yes
13167       # see comment about different semantics on the GNU ld section
13168       ld_shlibs_F77=no
13169       ;;
13170
13171     bsdi4*)
13172       export_dynamic_flag_spec_F77=-rdynamic
13173       ;;
13174
13175     cygwin* | mingw* | pw32*)
13176       # When not using gcc, we currently assume that we are using
13177       # Microsoft Visual C++.
13178       # hardcode_libdir_flag_spec is actually meaningless, as there is
13179       # no search path for DLLs.
13180       hardcode_libdir_flag_spec_F77=' '
13181       allow_undefined_flag_F77=unsupported
13182       # Tell ltmain to make .lib files, not .a files.
13183       libext=lib
13184       # Tell ltmain to make .dll files, not .so files.
13185       shrext=".dll"
13186       # FIXME: Setting linknames here is a bad hack.
13187       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13188       # The linker will automatically build a .lib file if we build a DLL.
13189       old_archive_From_new_cmds_F77='true'
13190       # FIXME: Should let the user specify the lib program.
13191       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13192       fix_srcfile_path='`cygpath -w "$srcfile"`'
13193       enable_shared_with_static_runtimes_F77=yes
13194       ;;
13195
13196     darwin* | rhapsody*)
13197     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13198       archive_cmds_need_lc_F77=no
13199       case "$host_os" in
13200       rhapsody* | darwin1.[012])
13201         allow_undefined_flag_F77='-undefined suppress'
13202         ;;
13203       *) # Darwin 1.3 on
13204         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13205         ;;
13206       esac
13207       # FIXME: Relying on posixy $() will cause problems for
13208       #        cross-compilation, but unfortunately the echo tests do not
13209       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13210       #        `"' quotes if we put them in here... so don't!
13211         lt_int_apple_cc_single_mod=no
13212         output_verbose_link_cmd='echo'
13213         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13214           lt_int_apple_cc_single_mod=yes
13215         fi
13216         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13217           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13218         else
13219         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'
13220       fi
13221       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13222       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13223         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13224           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}'
13225         else
13226           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}'
13227         fi
13228           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}'
13229       hardcode_direct_F77=no
13230       hardcode_automatic_F77=yes
13231       hardcode_shlibpath_var_F77=unsupported
13232       whole_archive_flag_spec_F77='-all_load $convenience'
13233       link_all_deplibs_F77=yes
13234     fi
13235       ;;
13236
13237     dgux*)
13238       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13239       hardcode_libdir_flag_spec_F77='-L$libdir'
13240       hardcode_shlibpath_var_F77=no
13241       ;;
13242
13243     freebsd1*)
13244       ld_shlibs_F77=no
13245       ;;
13246
13247     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13248     # support.  Future versions do this automatically, but an explicit c++rt0.o
13249     # does not break anything, and helps significantly (at the cost of a little
13250     # extra space).
13251     freebsd2.2*)
13252       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13253       hardcode_libdir_flag_spec_F77='-R$libdir'
13254       hardcode_direct_F77=yes
13255       hardcode_shlibpath_var_F77=no
13256       ;;
13257
13258     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13259     freebsd2*)
13260       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13261       hardcode_direct_F77=yes
13262       hardcode_minus_L_F77=yes
13263       hardcode_shlibpath_var_F77=no
13264       ;;
13265
13266     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13267     freebsd*)
13268       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13269       hardcode_libdir_flag_spec_F77='-R$libdir'
13270       hardcode_direct_F77=yes
13271       hardcode_shlibpath_var_F77=no
13272       ;;
13273
13274     hpux9*)
13275       if test "$GCC" = yes; then
13276         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'
13277       else
13278         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'
13279       fi
13280       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13281       hardcode_libdir_separator_F77=:
13282       hardcode_direct_F77=yes
13283
13284       # hardcode_minus_L: Not really in the search PATH,
13285       # but as the default location of the library.
13286       hardcode_minus_L_F77=yes
13287       export_dynamic_flag_spec_F77='${wl}-E'
13288       ;;
13289
13290     hpux10* | hpux11*)
13291       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13292         case "$host_cpu" in
13293         hppa*64*|ia64*)
13294           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13295           ;;
13296         *)
13297           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13298           ;;
13299         esac
13300       else
13301         case "$host_cpu" in
13302         hppa*64*|ia64*)
13303           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13304           ;;
13305         *)
13306           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13307           ;;
13308         esac
13309       fi
13310       if test "$with_gnu_ld" = no; then
13311         case "$host_cpu" in
13312         hppa*64*)
13313           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13314           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13315           hardcode_libdir_separator_F77=:
13316           hardcode_direct_F77=no
13317           hardcode_shlibpath_var_F77=no
13318           ;;
13319         ia64*)
13320           hardcode_libdir_flag_spec_F77='-L$libdir'
13321           hardcode_direct_F77=no
13322           hardcode_shlibpath_var_F77=no
13323
13324           # hardcode_minus_L: Not really in the search PATH,
13325           # but as the default location of the library.
13326           hardcode_minus_L_F77=yes
13327           ;;
13328         *)
13329           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13330           hardcode_libdir_separator_F77=:
13331           hardcode_direct_F77=yes
13332           export_dynamic_flag_spec_F77='${wl}-E'
13333
13334           # hardcode_minus_L: Not really in the search PATH,
13335           # but as the default location of the library.
13336           hardcode_minus_L_F77=yes
13337           ;;
13338         esac
13339       fi
13340       ;;
13341
13342     irix5* | irix6* | nonstopux*)
13343       if test "$GCC" = yes; then
13344         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'
13345       else
13346         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'
13347         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13348       fi
13349       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13350       hardcode_libdir_separator_F77=:
13351       link_all_deplibs_F77=yes
13352       ;;
13353
13354     netbsd*)
13355       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13356         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13357       else
13358         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13359       fi
13360       hardcode_libdir_flag_spec_F77='-R$libdir'
13361       hardcode_direct_F77=yes
13362       hardcode_shlibpath_var_F77=no
13363       ;;
13364
13365     newsos6)
13366       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13367       hardcode_direct_F77=yes
13368       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13369       hardcode_libdir_separator_F77=:
13370       hardcode_shlibpath_var_F77=no
13371       ;;
13372
13373     openbsd*)
13374       hardcode_direct_F77=yes
13375       hardcode_shlibpath_var_F77=no
13376       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13377         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13378         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13379         export_dynamic_flag_spec_F77='${wl}-E'
13380       else
13381        case $host_os in
13382          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13383            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13384            hardcode_libdir_flag_spec_F77='-R$libdir'
13385            ;;
13386          *)
13387            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13388            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13389            ;;
13390        esac
13391       fi
13392       ;;
13393
13394     os2*)
13395       hardcode_libdir_flag_spec_F77='-L$libdir'
13396       hardcode_minus_L_F77=yes
13397       allow_undefined_flag_F77=unsupported
13398       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'
13399       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13400       ;;
13401
13402     osf3*)
13403       if test "$GCC" = yes; then
13404         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13405         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'
13406       else
13407         allow_undefined_flag_F77=' -expect_unresolved \*'
13408         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'
13409       fi
13410       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13411       hardcode_libdir_separator_F77=:
13412       ;;
13413
13414     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13415       if test "$GCC" = yes; then
13416         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13417         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'
13418         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13419       else
13420         allow_undefined_flag_F77=' -expect_unresolved \*'
13421         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'
13422         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~
13423         $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'
13424
13425         # Both c and cxx compiler support -rpath directly
13426         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13427       fi
13428       hardcode_libdir_separator_F77=:
13429       ;;
13430
13431     sco3.2v5*)
13432       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13433       hardcode_shlibpath_var_F77=no
13434       export_dynamic_flag_spec_F77='${wl}-Bexport'
13435       runpath_var=LD_RUN_PATH
13436       hardcode_runpath_var=yes
13437       ;;
13438
13439     solaris*)
13440       no_undefined_flag_F77=' -z text'
13441       if test "$GCC" = yes; then
13442         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13443         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13444           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13445       else
13446         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13447         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13448         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13449       fi
13450       hardcode_libdir_flag_spec_F77='-R$libdir'
13451       hardcode_shlibpath_var_F77=no
13452       case $host_os in
13453       solaris2.[0-5] | solaris2.[0-5].*) ;;
13454       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13455         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13456       esac
13457       link_all_deplibs_F77=yes
13458       ;;
13459
13460     sunos4*)
13461       if test "x$host_vendor" = xsequent; then
13462         # Use $CC to link under sequent, because it throws in some extra .o
13463         # files that make .init and .fini sections work.
13464         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13465       else
13466         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13467       fi
13468       hardcode_libdir_flag_spec_F77='-L$libdir'
13469       hardcode_direct_F77=yes
13470       hardcode_minus_L_F77=yes
13471       hardcode_shlibpath_var_F77=no
13472       ;;
13473
13474     sysv4)
13475       case $host_vendor in
13476         sni)
13477           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13478           hardcode_direct_F77=yes # is this really true???
13479         ;;
13480         siemens)
13481           ## LD is ld it makes a PLAMLIB
13482           ## CC just makes a GrossModule.
13483           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13484           reload_cmds_F77='$CC -r -o $output$reload_objs'
13485           hardcode_direct_F77=no
13486         ;;
13487         motorola)
13488           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13489           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13490         ;;
13491       esac
13492       runpath_var='LD_RUN_PATH'
13493       hardcode_shlibpath_var_F77=no
13494       ;;
13495
13496     sysv4.3*)
13497       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13498       hardcode_shlibpath_var_F77=no
13499       export_dynamic_flag_spec_F77='-Bexport'
13500       ;;
13501
13502     sysv4*MP*)
13503       if test -d /usr/nec; then
13504         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13505         hardcode_shlibpath_var_F77=no
13506         runpath_var=LD_RUN_PATH
13507         hardcode_runpath_var=yes
13508         ld_shlibs_F77=yes
13509       fi
13510       ;;
13511
13512     sysv4.2uw2*)
13513       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13514       hardcode_direct_F77=yes
13515       hardcode_minus_L_F77=no
13516       hardcode_shlibpath_var_F77=no
13517       hardcode_runpath_var=yes
13518       runpath_var=LD_RUN_PATH
13519       ;;
13520
13521    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13522       no_undefined_flag_F77='${wl}-z ${wl}text'
13523       if test "$GCC" = yes; then
13524         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13525       else
13526         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13527       fi
13528       runpath_var='LD_RUN_PATH'
13529       hardcode_shlibpath_var_F77=no
13530       ;;
13531
13532     sysv5*)
13533       no_undefined_flag_F77=' -z text'
13534       # $CC -shared without GNU ld will not create a library from C++
13535       # object files and a static libstdc++, better avoid it by now
13536       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13537       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13538                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13539       hardcode_libdir_flag_spec_F77=
13540       hardcode_shlibpath_var_F77=no
13541       runpath_var='LD_RUN_PATH'
13542       ;;
13543
13544     uts4*)
13545       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13546       hardcode_libdir_flag_spec_F77='-L$libdir'
13547       hardcode_shlibpath_var_F77=no
13548       ;;
13549
13550     *)
13551       ld_shlibs_F77=no
13552       ;;
13553     esac
13554   fi
13555
13556 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13557 echo "${ECHO_T}$ld_shlibs_F77" >&6
13558 test "$ld_shlibs_F77" = no && can_build_shared=no
13559
13560 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13561 if test "$GCC" = yes; then
13562   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13563 fi
13564
13565 #
13566 # Do we need to explicitly link libc?
13567 #
13568 case "x$archive_cmds_need_lc_F77" in
13569 x|xyes)
13570   # Assume -lc should be added
13571   archive_cmds_need_lc_F77=yes
13572
13573   if test "$enable_shared" = yes && test "$GCC" = yes; then
13574     case $archive_cmds_F77 in
13575     *'~'*)
13576       # FIXME: we may have to deal with multi-command sequences.
13577       ;;
13578     '$CC '*)
13579       # Test whether the compiler implicitly links with -lc since on some
13580       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13581       # to ld, don't add -lc before -lgcc.
13582       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13583 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13584       $rm conftest*
13585       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13586
13587       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13588   (eval $ac_compile) 2>&5
13589   ac_status=$?
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); } 2>conftest.err; then
13592         soname=conftest
13593         lib=conftest
13594         libobjs=conftest.$ac_objext
13595         deplibs=
13596         wl=$lt_prog_compiler_wl_F77
13597         compiler_flags=-v
13598         linker_flags=-v
13599         verstring=
13600         output_objdir=.
13601         libname=conftest
13602         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13603         allow_undefined_flag_F77=
13604         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13605   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13606   ac_status=$?
13607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608   (exit $ac_status); }
13609         then
13610           archive_cmds_need_lc_F77=no
13611         else
13612           archive_cmds_need_lc_F77=yes
13613         fi
13614         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13615       else
13616         cat conftest.err 1>&5
13617       fi
13618       $rm conftest*
13619       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13620 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13621       ;;
13622     esac
13623   fi
13624   ;;
13625 esac
13626
13627 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13628 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13629 hardcode_action_F77=
13630 if test -n "$hardcode_libdir_flag_spec_F77" || \
13631    test -n "$runpath_var F77" || \
13632    test "X$hardcode_automatic_F77"="Xyes" ; then
13633
13634   # We can hardcode non-existant directories.
13635   if test "$hardcode_direct_F77" != no &&
13636      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13637      # have to relink, otherwise we might link with an installed library
13638      # when we should be linking with a yet-to-be-installed one
13639      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13640      test "$hardcode_minus_L_F77" != no; then
13641     # Linking always hardcodes the temporary library directory.
13642     hardcode_action_F77=relink
13643   else
13644     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13645     hardcode_action_F77=immediate
13646   fi
13647 else
13648   # We cannot hardcode anything, or else we can only hardcode existing
13649   # directories.
13650   hardcode_action_F77=unsupported
13651 fi
13652 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13653 echo "${ECHO_T}$hardcode_action_F77" >&6
13654
13655 if test "$hardcode_action_F77" = relink; then
13656   # Fast installation is not supported
13657   enable_fast_install=no
13658 elif test "$shlibpath_overrides_runpath" = yes ||
13659      test "$enable_shared" = no; then
13660   # Fast installation is not necessary
13661   enable_fast_install=needless
13662 fi
13663
13664 striplib=
13665 old_striplib=
13666 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13667 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13668 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13669   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13670   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13671   echo "$as_me:$LINENO: result: yes" >&5
13672 echo "${ECHO_T}yes" >&6
13673 else
13674 # FIXME - insert some real tests, host_os isn't really good enough
13675   case $host_os in
13676    darwin*)
13677        if test -n "$STRIP" ; then
13678          striplib="$STRIP -x"
13679          echo "$as_me:$LINENO: result: yes" >&5
13680 echo "${ECHO_T}yes" >&6
13681        else
13682   echo "$as_me:$LINENO: result: no" >&5
13683 echo "${ECHO_T}no" >&6
13684 fi
13685        ;;
13686    *)
13687   echo "$as_me:$LINENO: result: no" >&5
13688 echo "${ECHO_T}no" >&6
13689     ;;
13690   esac
13691 fi
13692
13693 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13694 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13695 library_names_spec=
13696 libname_spec='lib$name'
13697 soname_spec=
13698 shrext=".so"
13699 postinstall_cmds=
13700 postuninstall_cmds=
13701 finish_cmds=
13702 finish_eval=
13703 shlibpath_var=
13704 shlibpath_overrides_runpath=unknown
13705 version_type=none
13706 dynamic_linker="$host_os ld.so"
13707 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13708 if test "$GCC" = yes; then
13709   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13710   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13711     # if the path contains ";" then we assume it to be the separator
13712     # otherwise default to the standard path separator (i.e. ":") - it is
13713     # assumed that no part of a normal pathname contains ";" but that should
13714     # okay in the real world where ";" in dirpaths is itself problematic.
13715     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13716   else
13717     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13718   fi
13719 else
13720   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13721 fi
13722 need_lib_prefix=unknown
13723 hardcode_into_libs=no
13724
13725 # when you set need_version to no, make sure it does not cause -set_version
13726 # flags to be left without arguments
13727 need_version=unknown
13728
13729 case $host_os in
13730 aix3*)
13731   version_type=linux
13732   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13733   shlibpath_var=LIBPATH
13734
13735   # AIX 3 has no versioning support, so we append a major version to the name.
13736   soname_spec='${libname}${release}${shared_ext}$major'
13737   ;;
13738
13739 aix4* | aix5*)
13740   version_type=linux
13741   need_lib_prefix=no
13742   need_version=no
13743   hardcode_into_libs=yes
13744   if test "$host_cpu" = ia64; then
13745     # AIX 5 supports IA64
13746     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13747     shlibpath_var=LD_LIBRARY_PATH
13748   else
13749     # With GCC up to 2.95.x, collect2 would create an import file
13750     # for dependence libraries.  The import file would start with
13751     # the line `#! .'.  This would cause the generated library to
13752     # depend on `.', always an invalid library.  This was fixed in
13753     # development snapshots of GCC prior to 3.0.
13754     case $host_os in
13755       aix4 | aix4.[01] | aix4.[01].*)
13756       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13757            echo ' yes '
13758            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13759         :
13760       else
13761         can_build_shared=no
13762       fi
13763       ;;
13764     esac
13765     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13766     # soname into executable. Probably we can add versioning support to
13767     # collect2, so additional links can be useful in future.
13768     if test "$aix_use_runtimelinking" = yes; then
13769       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13770       # instead of lib<name>.a to let people know that these are not
13771       # typical AIX shared libraries.
13772       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13773     else
13774       # We preserve .a as extension for shared libraries through AIX4.2
13775       # and later when we are not doing run time linking.
13776       library_names_spec='${libname}${release}.a $libname.a'
13777       soname_spec='${libname}${release}${shared_ext}$major'
13778     fi
13779     shlibpath_var=LIBPATH
13780   fi
13781   ;;
13782
13783 amigaos*)
13784   library_names_spec='$libname.ixlibrary $libname.a'
13785   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13786   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'
13787   ;;
13788
13789 beos*)
13790   library_names_spec='${libname}${shared_ext}'
13791   dynamic_linker="$host_os ld.so"
13792   shlibpath_var=LIBRARY_PATH
13793   ;;
13794
13795 bsdi4*)
13796   version_type=linux
13797   need_version=no
13798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13799   soname_spec='${libname}${release}${shared_ext}$major'
13800   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13801   shlibpath_var=LD_LIBRARY_PATH
13802   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13803   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13804   # the default ld.so.conf also contains /usr/contrib/lib and
13805   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13806   # libtool to hard-code these into programs
13807   ;;
13808
13809 cygwin* | mingw* | pw32*)
13810   version_type=windows
13811   shrext=".dll"
13812   need_version=no
13813   need_lib_prefix=no
13814
13815   case $GCC,$host_os in
13816   yes,cygwin* | yes,mingw* | yes,pw32*)
13817     library_names_spec='$libname.dll.a'
13818     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13819     postinstall_cmds='base_file=`basename \${file}`~
13820       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13821       dldir=$destdir/`dirname \$dlpath`~
13822       test -d \$dldir || mkdir -p \$dldir~
13823       $install_prog $dir/$dlname \$dldir/$dlname'
13824     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13825       dlpath=$dir/\$dldll~
13826        $rm \$dlpath'
13827     shlibpath_overrides_runpath=yes
13828
13829     case $host_os in
13830     cygwin*)
13831       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13832       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13833       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13834       ;;
13835     mingw*)
13836       # MinGW DLLs use traditional 'lib' prefix
13837       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13838       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13839       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13840         # It is most probably a Windows format PATH printed by
13841         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13842         # path with ; separators, and with drive letters. We can handle the
13843         # drive letters (cygwin fileutils understands them), so leave them,
13844         # especially as we might pass files found there to a mingw objdump,
13845         # which wouldn't understand a cygwinified path. Ahh.
13846         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13847       else
13848         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13849       fi
13850       ;;
13851     pw32*)
13852       # pw32 DLLs use 'pw' prefix rather than 'lib'
13853       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13854       ;;
13855     esac
13856     ;;
13857
13858   *)
13859     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13860     ;;
13861   esac
13862   dynamic_linker='Win32 ld.exe'
13863   # FIXME: first we should search . and the directory the executable is in
13864   shlibpath_var=PATH
13865   ;;
13866
13867 darwin* | rhapsody*)
13868   dynamic_linker="$host_os dyld"
13869   version_type=darwin
13870   need_lib_prefix=no
13871   need_version=no
13872   # FIXME: Relying on posixy $() will cause problems for
13873   #        cross-compilation, but unfortunately the echo tests do not
13874   #        yet detect zsh echo's removal of \ escapes.
13875   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13876   soname_spec='${libname}${release}${major}$shared_ext'
13877   shlibpath_overrides_runpath=yes
13878   shlibpath_var=DYLD_LIBRARY_PATH
13879   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13880   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13881   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13882   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"`
13883   fi
13884   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13885   ;;
13886
13887 dgux*)
13888   version_type=linux
13889   need_lib_prefix=no
13890   need_version=no
13891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13892   soname_spec='${libname}${release}${shared_ext}$major'
13893   shlibpath_var=LD_LIBRARY_PATH
13894   ;;
13895
13896 freebsd1*)
13897   dynamic_linker=no
13898   ;;
13899
13900 freebsd*)
13901   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13902   version_type=freebsd-$objformat
13903   case $version_type in
13904     freebsd-elf*)
13905       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13906       need_version=no
13907       need_lib_prefix=no
13908       ;;
13909     freebsd-*)
13910       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13911       need_version=yes
13912       ;;
13913   esac
13914   shlibpath_var=LD_LIBRARY_PATH
13915   case $host_os in
13916   freebsd2*)
13917     shlibpath_overrides_runpath=yes
13918     ;;
13919   freebsd3.01* | freebsdelf3.01*)
13920     shlibpath_overrides_runpath=yes
13921     hardcode_into_libs=yes
13922     ;;
13923   *) # from 3.2 on
13924     shlibpath_overrides_runpath=no
13925     hardcode_into_libs=yes
13926     ;;
13927   esac
13928   ;;
13929
13930 gnu*)
13931   version_type=linux
13932   need_lib_prefix=no
13933   need_version=no
13934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13935   soname_spec='${libname}${release}${shared_ext}$major'
13936   shlibpath_var=LD_LIBRARY_PATH
13937   hardcode_into_libs=yes
13938   ;;
13939
13940 hpux9* | hpux10* | hpux11*)
13941   # Give a soname corresponding to the major version so that dld.sl refuses to
13942   # link against other versions.
13943   version_type=sunos
13944   need_lib_prefix=no
13945   need_version=no
13946   case "$host_cpu" in
13947   ia64*)
13948     shrext='.so'
13949     hardcode_into_libs=yes
13950     dynamic_linker="$host_os dld.so"
13951     shlibpath_var=LD_LIBRARY_PATH
13952     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13953     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13954     soname_spec='${libname}${release}${shared_ext}$major'
13955     if test "X$HPUX_IA64_MODE" = X32; then
13956       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13957     else
13958       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13959     fi
13960     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13961     ;;
13962    hppa*64*)
13963      shrext='.sl'
13964      hardcode_into_libs=yes
13965      dynamic_linker="$host_os dld.sl"
13966      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13967      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13968      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13969      soname_spec='${libname}${release}${shared_ext}$major'
13970      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13971      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13972      ;;
13973    *)
13974     shrext='.sl'
13975     dynamic_linker="$host_os dld.sl"
13976     shlibpath_var=SHLIB_PATH
13977     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13978     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13979     soname_spec='${libname}${release}${shared_ext}$major'
13980     ;;
13981   esac
13982   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13983   postinstall_cmds='chmod 555 $lib'
13984   ;;
13985
13986 irix5* | irix6* | nonstopux*)
13987   case $host_os in
13988     nonstopux*) version_type=nonstopux ;;
13989     *)
13990         if test "$lt_cv_prog_gnu_ld" = yes; then
13991                 version_type=linux
13992         else
13993                 version_type=irix
13994         fi ;;
13995   esac
13996   need_lib_prefix=no
13997   need_version=no
13998   soname_spec='${libname}${release}${shared_ext}$major'
13999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14000   case $host_os in
14001   irix5* | nonstopux*)
14002     libsuff= shlibsuff=
14003     ;;
14004   *)
14005     case $LD in # libtool.m4 will add one of these switches to LD
14006     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14007       libsuff= shlibsuff= libmagic=32-bit;;
14008     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14009       libsuff=32 shlibsuff=N32 libmagic=N32;;
14010     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14011       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14012     *) libsuff= shlibsuff= libmagic=never-match;;
14013     esac
14014     ;;
14015   esac
14016   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14017   shlibpath_overrides_runpath=no
14018   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14019   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14020   hardcode_into_libs=yes
14021   ;;
14022
14023 # No shared lib support for Linux oldld, aout, or coff.
14024 linux*oldld* | linux*aout* | linux*coff*)
14025   dynamic_linker=no
14026   ;;
14027
14028 # This must be Linux ELF.
14029 linux*)
14030   version_type=linux
14031   need_lib_prefix=no
14032   need_version=no
14033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14034   soname_spec='${libname}${release}${shared_ext}$major'
14035   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14036   shlibpath_var=LD_LIBRARY_PATH
14037   shlibpath_overrides_runpath=no
14038   # This implies no fast_install, which is unacceptable.
14039   # Some rework will be needed to allow for fast_install
14040   # before this can be enabled.
14041   hardcode_into_libs=yes
14042
14043   # We used to test for /lib/ld.so.1 and disable shared libraries on
14044   # powerpc, because MkLinux only supported shared libraries with the
14045   # GNU dynamic linker.  Since this was broken with cross compilers,
14046   # most powerpc-linux boxes support dynamic linking these days and
14047   # people can always --disable-shared, the test was removed, and we
14048   # assume the GNU/Linux dynamic linker is in use.
14049   dynamic_linker='GNU/Linux ld.so'
14050   ;;
14051
14052 netbsd*)
14053   version_type=sunos
14054   need_lib_prefix=no
14055   need_version=no
14056   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14057     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14058     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14059     dynamic_linker='NetBSD (a.out) ld.so'
14060   else
14061     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14062     soname_spec='${libname}${release}${shared_ext}$major'
14063     dynamic_linker='NetBSD ld.elf_so'
14064   fi
14065   shlibpath_var=LD_LIBRARY_PATH
14066   shlibpath_overrides_runpath=yes
14067   hardcode_into_libs=yes
14068   ;;
14069
14070 newsos6)
14071   version_type=linux
14072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14073   shlibpath_var=LD_LIBRARY_PATH
14074   shlibpath_overrides_runpath=yes
14075   ;;
14076
14077 nto-qnx)
14078   version_type=linux
14079   need_lib_prefix=no
14080   need_version=no
14081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14082   soname_spec='${libname}${release}${shared_ext}$major'
14083   shlibpath_var=LD_LIBRARY_PATH
14084   shlibpath_overrides_runpath=yes
14085   ;;
14086
14087 openbsd*)
14088   version_type=sunos
14089   need_lib_prefix=no
14090   need_version=no
14091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14092   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14093   shlibpath_var=LD_LIBRARY_PATH
14094   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14095     case $host_os in
14096       openbsd2.[89] | openbsd2.[89].*)
14097         shlibpath_overrides_runpath=no
14098         ;;
14099       *)
14100         shlibpath_overrides_runpath=yes
14101         ;;
14102       esac
14103   else
14104     shlibpath_overrides_runpath=yes
14105   fi
14106   ;;
14107
14108 os2*)
14109   libname_spec='$name'
14110   shrext=".dll"
14111   need_lib_prefix=no
14112   library_names_spec='$libname${shared_ext} $libname.a'
14113   dynamic_linker='OS/2 ld.exe'
14114   shlibpath_var=LIBPATH
14115   ;;
14116
14117 osf3* | osf4* | osf5*)
14118   version_type=osf
14119   need_lib_prefix=no
14120   need_version=no
14121   soname_spec='${libname}${release}${shared_ext}$major'
14122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14123   shlibpath_var=LD_LIBRARY_PATH
14124   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14125   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14126   ;;
14127
14128 sco3.2v5*)
14129   version_type=osf
14130   soname_spec='${libname}${release}${shared_ext}$major'
14131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132   shlibpath_var=LD_LIBRARY_PATH
14133   ;;
14134
14135 solaris*)
14136   version_type=linux
14137   need_lib_prefix=no
14138   need_version=no
14139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14140   soname_spec='${libname}${release}${shared_ext}$major'
14141   shlibpath_var=LD_LIBRARY_PATH
14142   shlibpath_overrides_runpath=yes
14143   hardcode_into_libs=yes
14144   # ldd complains unless libraries are executable
14145   postinstall_cmds='chmod +x $lib'
14146   ;;
14147
14148 sunos4*)
14149   version_type=sunos
14150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14151   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14152   shlibpath_var=LD_LIBRARY_PATH
14153   shlibpath_overrides_runpath=yes
14154   if test "$with_gnu_ld" = yes; then
14155     need_lib_prefix=no
14156   fi
14157   need_version=yes
14158   ;;
14159
14160 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14161   version_type=linux
14162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14163   soname_spec='${libname}${release}${shared_ext}$major'
14164   shlibpath_var=LD_LIBRARY_PATH
14165   case $host_vendor in
14166     sni)
14167       shlibpath_overrides_runpath=no
14168       need_lib_prefix=no
14169       export_dynamic_flag_spec='${wl}-Blargedynsym'
14170       runpath_var=LD_RUN_PATH
14171       ;;
14172     siemens)
14173       need_lib_prefix=no
14174       ;;
14175     motorola)
14176       need_lib_prefix=no
14177       need_version=no
14178       shlibpath_overrides_runpath=no
14179       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14180       ;;
14181   esac
14182   ;;
14183
14184 sysv4*MP*)
14185   if test -d /usr/nec ;then
14186     version_type=linux
14187     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14188     soname_spec='$libname${shared_ext}.$major'
14189     shlibpath_var=LD_LIBRARY_PATH
14190   fi
14191   ;;
14192
14193 uts4*)
14194   version_type=linux
14195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14196   soname_spec='${libname}${release}${shared_ext}$major'
14197   shlibpath_var=LD_LIBRARY_PATH
14198   ;;
14199
14200 *)
14201   dynamic_linker=no
14202   ;;
14203 esac
14204 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14205 echo "${ECHO_T}$dynamic_linker" >&6
14206 test "$dynamic_linker" = no && can_build_shared=no
14207
14208
14209 # The else clause should only fire when bootstrapping the
14210 # libtool distribution, otherwise you forgot to ship ltmain.sh
14211 # with your package, and you will get complaints that there are
14212 # no rules to generate ltmain.sh.
14213 if test -f "$ltmain"; then
14214   # See if we are running on zsh, and set the options which allow our commands through
14215   # without removal of \ escapes.
14216   if test -n "${ZSH_VERSION+set}" ; then
14217     setopt NO_GLOB_SUBST
14218   fi
14219   # Now quote all the things that may contain metacharacters while being
14220   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14221   # variables and quote the copies for generation of the libtool script.
14222   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14223     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14224     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14225     deplibs_check_method reload_flag reload_cmds need_locks \
14226     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14227     lt_cv_sys_global_symbol_to_c_name_address \
14228     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14229     old_postinstall_cmds old_postuninstall_cmds \
14230     compiler_F77 \
14231     CC_F77 \
14232     LD_F77 \
14233     lt_prog_compiler_wl_F77 \
14234     lt_prog_compiler_pic_F77 \
14235     lt_prog_compiler_static_F77 \
14236     lt_prog_compiler_no_builtin_flag_F77 \
14237     export_dynamic_flag_spec_F77 \
14238     thread_safe_flag_spec_F77 \
14239     whole_archive_flag_spec_F77 \
14240     enable_shared_with_static_runtimes_F77 \
14241     old_archive_cmds_F77 \
14242     old_archive_from_new_cmds_F77 \
14243     predep_objects_F77 \
14244     postdep_objects_F77 \
14245     predeps_F77 \
14246     postdeps_F77 \
14247     compiler_lib_search_path_F77 \
14248     archive_cmds_F77 \
14249     archive_expsym_cmds_F77 \
14250     postinstall_cmds_F77 \
14251     postuninstall_cmds_F77 \
14252     old_archive_from_expsyms_cmds_F77 \
14253     allow_undefined_flag_F77 \
14254     no_undefined_flag_F77 \
14255     export_symbols_cmds_F77 \
14256     hardcode_libdir_flag_spec_F77 \
14257     hardcode_libdir_flag_spec_ld_F77 \
14258     hardcode_libdir_separator_F77 \
14259     hardcode_automatic_F77 \
14260     module_cmds_F77 \
14261     module_expsym_cmds_F77 \
14262     lt_cv_prog_compiler_c_o_F77 \
14263     exclude_expsyms_F77 \
14264     include_expsyms_F77; do
14265
14266     case $var in
14267     old_archive_cmds_F77 | \
14268     old_archive_from_new_cmds_F77 | \
14269     archive_cmds_F77 | \
14270     archive_expsym_cmds_F77 | \
14271     module_cmds_F77 | \
14272     module_expsym_cmds_F77 | \
14273     old_archive_from_expsyms_cmds_F77 | \
14274     export_symbols_cmds_F77 | \
14275     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14276     postinstall_cmds | postuninstall_cmds | \
14277     old_postinstall_cmds | old_postuninstall_cmds | \
14278     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14279       # Double-quote double-evaled strings.
14280       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14281       ;;
14282     *)
14283       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14284       ;;
14285     esac
14286   done
14287
14288   case $lt_echo in
14289   *'\$0 --fallback-echo"')
14290     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14291     ;;
14292   esac
14293
14294 cfgfile="$ofile"
14295
14296   cat <<__EOF__ >> "$cfgfile"
14297 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14298
14299 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14300
14301 # Shell to use when invoking shell scripts.
14302 SHELL=$lt_SHELL
14303
14304 # Whether or not to build shared libraries.
14305 build_libtool_libs=$enable_shared
14306
14307 # Whether or not to build static libraries.
14308 build_old_libs=$enable_static
14309
14310 # Whether or not to add -lc for building shared libraries.
14311 build_libtool_need_lc=$archive_cmds_need_lc_F77
14312
14313 # Whether or not to disallow shared libs when runtime libs are static
14314 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14315
14316 # Whether or not to optimize for fast installation.
14317 fast_install=$enable_fast_install
14318
14319 # The host system.
14320 host_alias=$host_alias
14321 host=$host
14322
14323 # An echo program that does not interpret backslashes.
14324 echo=$lt_echo
14325
14326 # The archiver.
14327 AR=$lt_AR
14328 AR_FLAGS=$lt_AR_FLAGS
14329
14330 # A C compiler.
14331 LTCC=$lt_LTCC
14332
14333 # A language-specific compiler.
14334 CC=$lt_compiler_F77
14335
14336 # Is the compiler the GNU C compiler?
14337 with_gcc=$GCC_F77
14338
14339 # An ERE matcher.
14340 EGREP=$lt_EGREP
14341
14342 # The linker used to build libraries.
14343 LD=$lt_LD_F77
14344
14345 # Whether we need hard or soft links.
14346 LN_S=$lt_LN_S
14347
14348 # A BSD-compatible nm program.
14349 NM=$lt_NM
14350
14351 # A symbol stripping program
14352 STRIP=$STRIP
14353
14354 # Used to examine libraries when file_magic_cmd begins "file"
14355 MAGIC_CMD=$MAGIC_CMD
14356
14357 # Used on cygwin: DLL creation program.
14358 DLLTOOL="$DLLTOOL"
14359
14360 # Used on cygwin: object dumper.
14361 OBJDUMP="$OBJDUMP"
14362
14363 # Used on cygwin: assembler.
14364 AS="$AS"
14365
14366 # The name of the directory that contains temporary libtool files.
14367 objdir=$objdir
14368
14369 # How to create reloadable object files.
14370 reload_flag=$lt_reload_flag
14371 reload_cmds=$lt_reload_cmds
14372
14373 # How to pass a linker flag through the compiler.
14374 wl=$lt_lt_prog_compiler_wl_F77
14375
14376 # Object file suffix (normally "o").
14377 objext="$ac_objext"
14378
14379 # Old archive suffix (normally "a").
14380 libext="$libext"
14381
14382 # Shared library suffix (normally ".so").
14383 shrext='$shrext'
14384
14385 # Executable file suffix (normally "").
14386 exeext="$exeext"
14387
14388 # Additional compiler flags for building library objects.
14389 pic_flag=$lt_lt_prog_compiler_pic_F77
14390 pic_mode=$pic_mode
14391
14392 # What is the maximum length of a command?
14393 max_cmd_len=$lt_cv_sys_max_cmd_len
14394
14395 # Does compiler simultaneously support -c and -o options?
14396 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14397
14398 # Must we lock files when doing compilation ?
14399 need_locks=$lt_need_locks
14400
14401 # Do we need the lib prefix for modules?
14402 need_lib_prefix=$need_lib_prefix
14403
14404 # Do we need a version for libraries?
14405 need_version=$need_version
14406
14407 # Whether dlopen is supported.
14408 dlopen_support=$enable_dlopen
14409
14410 # Whether dlopen of programs is supported.
14411 dlopen_self=$enable_dlopen_self
14412
14413 # Whether dlopen of statically linked programs is supported.
14414 dlopen_self_static=$enable_dlopen_self_static
14415
14416 # Compiler flag to prevent dynamic linking.
14417 link_static_flag=$lt_lt_prog_compiler_static_F77
14418
14419 # Compiler flag to turn off builtin functions.
14420 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14421
14422 # Compiler flag to allow reflexive dlopens.
14423 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14424
14425 # Compiler flag to generate shared objects directly from archives.
14426 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14427
14428 # Compiler flag to generate thread-safe objects.
14429 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14430
14431 # Library versioning type.
14432 version_type=$version_type
14433
14434 # Format of library name prefix.
14435 libname_spec=$lt_libname_spec
14436
14437 # List of archive names.  First name is the real one, the rest are links.
14438 # The last name is the one that the linker finds with -lNAME.
14439 library_names_spec=$lt_library_names_spec
14440
14441 # The coded name of the library, if different from the real name.
14442 soname_spec=$lt_soname_spec
14443
14444 # Commands used to build and install an old-style archive.
14445 RANLIB=$lt_RANLIB
14446 old_archive_cmds=$lt_old_archive_cmds_F77
14447 old_postinstall_cmds=$lt_old_postinstall_cmds
14448 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14449
14450 # Create an old-style archive from a shared archive.
14451 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14452
14453 # Create a temporary old-style archive to link instead of a shared archive.
14454 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14455
14456 # Commands used to build and install a shared archive.
14457 archive_cmds=$lt_archive_cmds_F77
14458 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14459 postinstall_cmds=$lt_postinstall_cmds
14460 postuninstall_cmds=$lt_postuninstall_cmds
14461
14462 # Commands used to build a loadable module (assumed same as above if empty)
14463 module_cmds=$lt_module_cmds_F77
14464 module_expsym_cmds=$lt_module_expsym_cmds_F77
14465
14466 # Commands to strip libraries.
14467 old_striplib=$lt_old_striplib
14468 striplib=$lt_striplib
14469
14470 # Dependencies to place before the objects being linked to create a
14471 # shared library.
14472 predep_objects=$lt_predep_objects_F77
14473
14474 # Dependencies to place after the objects being linked to create a
14475 # shared library.
14476 postdep_objects=$lt_postdep_objects_F77
14477
14478 # Dependencies to place before the objects being linked to create a
14479 # shared library.
14480 predeps=$lt_predeps_F77
14481
14482 # Dependencies to place after the objects being linked to create a
14483 # shared library.
14484 postdeps=$lt_postdeps_F77
14485
14486 # The library search path used internally by the compiler when linking
14487 # a shared library.
14488 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14489
14490 # Method to check whether dependent libraries are shared objects.
14491 deplibs_check_method=$lt_deplibs_check_method
14492
14493 # Command to use when deplibs_check_method == file_magic.
14494 file_magic_cmd=$lt_file_magic_cmd
14495
14496 # Flag that allows shared libraries with undefined symbols to be built.
14497 allow_undefined_flag=$lt_allow_undefined_flag_F77
14498
14499 # Flag that forces no undefined symbols.
14500 no_undefined_flag=$lt_no_undefined_flag_F77
14501
14502 # Commands used to finish a libtool library installation in a directory.
14503 finish_cmds=$lt_finish_cmds
14504
14505 # Same as above, but a single script fragment to be evaled but not shown.
14506 finish_eval=$lt_finish_eval
14507
14508 # Take the output of nm and produce a listing of raw symbols and C names.
14509 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14510
14511 # Transform the output of nm in a proper C declaration
14512 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14513
14514 # Transform the output of nm in a C name address pair
14515 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14516
14517 # This is the shared library runtime path variable.
14518 runpath_var=$runpath_var
14519
14520 # This is the shared library path variable.
14521 shlibpath_var=$shlibpath_var
14522
14523 # Is shlibpath searched before the hard-coded library search path?
14524 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14525
14526 # How to hardcode a shared library path into an executable.
14527 hardcode_action=$hardcode_action_F77
14528
14529 # Whether we should hardcode library paths into libraries.
14530 hardcode_into_libs=$hardcode_into_libs
14531
14532 # Flag to hardcode \$libdir into a binary during linking.
14533 # This must work even if \$libdir does not exist.
14534 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14535
14536 # If ld is used when linking, flag to hardcode \$libdir into
14537 # a binary during linking. This must work even if \$libdir does
14538 # not exist.
14539 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14540
14541 # Whether we need a single -rpath flag with a separated argument.
14542 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14543
14544 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14545 # resulting binary.
14546 hardcode_direct=$hardcode_direct_F77
14547
14548 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14549 # resulting binary.
14550 hardcode_minus_L=$hardcode_minus_L_F77
14551
14552 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14553 # the resulting binary.
14554 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14555
14556 # Set to yes if building a shared library automatically hardcodes DIR into the library
14557 # and all subsequent libraries and executables linked against it.
14558 hardcode_automatic=$hardcode_automatic_F77
14559
14560 # Variables whose values should be saved in libtool wrapper scripts and
14561 # restored at relink time.
14562 variables_saved_for_relink="$variables_saved_for_relink"
14563
14564 # Whether libtool must link a program against all its dependency libraries.
14565 link_all_deplibs=$link_all_deplibs_F77
14566
14567 # Compile-time system search path for libraries
14568 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14569
14570 # Run-time system search path for libraries
14571 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14572
14573 # Fix the shell variable \$srcfile for the compiler.
14574 fix_srcfile_path="$fix_srcfile_path_F77"
14575
14576 # Set to yes if exported symbols are required.
14577 always_export_symbols=$always_export_symbols_F77
14578
14579 # The commands to list exported symbols.
14580 export_symbols_cmds=$lt_export_symbols_cmds_F77
14581
14582 # The commands to extract the exported symbol list from a shared archive.
14583 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14584
14585 # Symbols that should not be listed in the preloaded symbols.
14586 exclude_expsyms=$lt_exclude_expsyms_F77
14587
14588 # Symbols that must always be exported.
14589 include_expsyms=$lt_include_expsyms_F77
14590
14591 # ### END LIBTOOL TAG CONFIG: $tagname
14592
14593 __EOF__
14594
14595
14596 else
14597   # If there is no Makefile yet, we rely on a make rule to execute
14598   # `config.status --recheck' to rerun these tests and create the
14599   # libtool script then.
14600   test -f Makefile && make "$ltmain"
14601 fi
14602
14603
14604 ac_ext=c
14605 ac_cpp='$CPP $CPPFLAGS'
14606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14609
14610 CC="$lt_save_CC"
14611
14612         else
14613           tagname=""
14614         fi
14615         ;;
14616
14617       GCJ)
14618         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14619
14620
14621
14622 # Source file extension for Java test sources.
14623 ac_ext=java
14624
14625 # Object file extension for compiled Java test sources.
14626 objext=o
14627 objext_GCJ=$objext
14628
14629 # Code to be used in simple compile tests
14630 lt_simple_compile_test_code="class foo {}\n"
14631
14632 # Code to be used in simple link tests
14633 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14634
14635 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14636
14637 # If no C compiler was specified, use CC.
14638 LTCC=${LTCC-"$CC"}
14639
14640 # Allow CC to be a program name with arguments.
14641 compiler=$CC
14642
14643
14644 # Allow CC to be a program name with arguments.
14645 lt_save_CC="$CC"
14646 CC=${GCJ-"gcj"}
14647 compiler=$CC
14648 compiler_GCJ=$CC
14649
14650 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14651 archive_cmds_need_lc_GCJ=no
14652
14653 ## CAVEAT EMPTOR:
14654 ## There is no encapsulation within the following macros, do not change
14655 ## the running order or otherwise move them around unless you know exactly
14656 ## what you are doing...
14657
14658 lt_prog_compiler_no_builtin_flag_GCJ=
14659
14660 if test "$GCC" = yes; then
14661   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14662
14663   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14664 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14665 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14666   echo $ECHO_N "(cached) $ECHO_C" >&6
14667 else
14668   lt_cv_prog_compiler_rtti_exceptions=no
14669   ac_outfile=conftest.$ac_objext
14670    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14671    lt_compiler_flag="-fno-rtti -fno-exceptions"
14672    # Insert the option either (1) after the last *FLAGS variable, or
14673    # (2) before a word containing "conftest.", or (3) at the end.
14674    # Note that $ac_compile itself does not contain backslashes and begins
14675    # with a dollar sign (not a hyphen), so the echo should work correctly.
14676    # The option is referenced via a variable to avoid confusing sed.
14677    lt_compile=`echo "$ac_compile" | $SED \
14678    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14679    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14680    -e 's:$: $lt_compiler_flag:'`
14681    (eval echo "\"\$as_me:14681: $lt_compile\"" >&5)
14682    (eval "$lt_compile" 2>conftest.err)
14683    ac_status=$?
14684    cat conftest.err >&5
14685    echo "$as_me:14685: \$? = $ac_status" >&5
14686    if (exit $ac_status) && test -s "$ac_outfile"; then
14687      # The compiler can only warn and ignore the option if not recognized
14688      # So say no if there are warnings
14689      if test ! -s conftest.err; then
14690        lt_cv_prog_compiler_rtti_exceptions=yes
14691      fi
14692    fi
14693    $rm conftest*
14694
14695 fi
14696 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14697 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14698
14699 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14700     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14701 else
14702     :
14703 fi
14704
14705 fi
14706
14707 lt_prog_compiler_wl_GCJ=
14708 lt_prog_compiler_pic_GCJ=
14709 lt_prog_compiler_static_GCJ=
14710
14711 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14712 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14713
14714   if test "$GCC" = yes; then
14715     lt_prog_compiler_wl_GCJ='-Wl,'
14716     lt_prog_compiler_static_GCJ='-static'
14717
14718     case $host_os in
14719       aix*)
14720       # All AIX code is PIC.
14721       if test "$host_cpu" = ia64; then
14722         # AIX 5 now supports IA64 processor
14723         lt_prog_compiler_static_GCJ='-Bstatic'
14724       fi
14725       ;;
14726
14727     amigaos*)
14728       # FIXME: we need at least 68020 code to build shared libraries, but
14729       # adding the `-m68020' flag to GCC prevents building anything better,
14730       # like `-m68040'.
14731       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14732       ;;
14733
14734     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14735       # PIC is the default for these OSes.
14736       ;;
14737
14738     mingw* | pw32* | os2*)
14739       # This hack is so that the source file can tell whether it is being
14740       # built for inclusion in a dll (and should export symbols for example).
14741       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14742       ;;
14743
14744     darwin* | rhapsody*)
14745       # PIC is the default on this platform
14746       # Common symbols not allowed in MH_DYLIB files
14747       lt_prog_compiler_pic_GCJ='-fno-common'
14748       ;;
14749
14750     msdosdjgpp*)
14751       # Just because we use GCC doesn't mean we suddenly get shared libraries
14752       # on systems that don't support them.
14753       lt_prog_compiler_can_build_shared_GCJ=no
14754       enable_shared=no
14755       ;;
14756
14757     sysv4*MP*)
14758       if test -d /usr/nec; then
14759         lt_prog_compiler_pic_GCJ=-Kconform_pic
14760       fi
14761       ;;
14762
14763     hpux*)
14764       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14765       # not for PA HP-UX.
14766       case "$host_cpu" in
14767       hppa*64*|ia64*)
14768         # +Z the default
14769         ;;
14770       *)
14771         lt_prog_compiler_pic_GCJ='-fPIC'
14772         ;;
14773       esac
14774       ;;
14775
14776     *)
14777       lt_prog_compiler_pic_GCJ='-fPIC'
14778       ;;
14779     esac
14780   else
14781     # PORTME Check for flag to pass linker flags through the system compiler.
14782     case $host_os in
14783     aix*)
14784       lt_prog_compiler_wl_GCJ='-Wl,'
14785       if test "$host_cpu" = ia64; then
14786         # AIX 5 now supports IA64 processor
14787         lt_prog_compiler_static_GCJ='-Bstatic'
14788       else
14789         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14790       fi
14791       ;;
14792
14793     mingw* | pw32* | os2*)
14794       # This hack is so that the source file can tell whether it is being
14795       # built for inclusion in a dll (and should export symbols for example).
14796       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14797       ;;
14798
14799     hpux9* | hpux10* | hpux11*)
14800       lt_prog_compiler_wl_GCJ='-Wl,'
14801       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14802       # not for PA HP-UX.
14803       case "$host_cpu" in
14804       hppa*64*|ia64*)
14805         # +Z the default
14806         ;;
14807       *)
14808         lt_prog_compiler_pic_GCJ='+Z'
14809         ;;
14810       esac
14811       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14812       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14813       ;;
14814
14815     irix5* | irix6* | nonstopux*)
14816       lt_prog_compiler_wl_GCJ='-Wl,'
14817       # PIC (with -KPIC) is the default.
14818       lt_prog_compiler_static_GCJ='-non_shared'
14819       ;;
14820
14821     newsos6)
14822       lt_prog_compiler_pic_GCJ='-KPIC'
14823       lt_prog_compiler_static_GCJ='-Bstatic'
14824       ;;
14825
14826     linux*)
14827       case $CC in
14828       icc|ecc)
14829         lt_prog_compiler_wl_GCJ='-Wl,'
14830         lt_prog_compiler_pic_GCJ='-KPIC'
14831         lt_prog_compiler_static_GCJ='-static'
14832         ;;
14833       ccc)
14834         lt_prog_compiler_wl_GCJ='-Wl,'
14835         # All Alpha code is PIC.
14836         lt_prog_compiler_static_GCJ='-non_shared'
14837         ;;
14838       esac
14839       ;;
14840
14841     osf3* | osf4* | osf5*)
14842       lt_prog_compiler_wl_GCJ='-Wl,'
14843       # All OSF/1 code is PIC.
14844       lt_prog_compiler_static_GCJ='-non_shared'
14845       ;;
14846
14847     sco3.2v5*)
14848       lt_prog_compiler_pic_GCJ='-Kpic'
14849       lt_prog_compiler_static_GCJ='-dn'
14850       ;;
14851
14852     solaris*)
14853       lt_prog_compiler_wl_GCJ='-Wl,'
14854       lt_prog_compiler_pic_GCJ='-KPIC'
14855       lt_prog_compiler_static_GCJ='-Bstatic'
14856       ;;
14857
14858     sunos4*)
14859       lt_prog_compiler_wl_GCJ='-Qoption ld '
14860       lt_prog_compiler_pic_GCJ='-PIC'
14861       lt_prog_compiler_static_GCJ='-Bstatic'
14862       ;;
14863
14864     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14865       lt_prog_compiler_wl_GCJ='-Wl,'
14866       lt_prog_compiler_pic_GCJ='-KPIC'
14867       lt_prog_compiler_static_GCJ='-Bstatic'
14868       ;;
14869
14870     sysv4*MP*)
14871       if test -d /usr/nec ;then
14872         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14873         lt_prog_compiler_static_GCJ='-Bstatic'
14874       fi
14875       ;;
14876
14877     uts4*)
14878       lt_prog_compiler_pic_GCJ='-pic'
14879       lt_prog_compiler_static_GCJ='-Bstatic'
14880       ;;
14881
14882     *)
14883       lt_prog_compiler_can_build_shared_GCJ=no
14884       ;;
14885     esac
14886   fi
14887
14888 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14889 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14890
14891 #
14892 # Check to make sure the PIC flag actually works.
14893 #
14894 if test -n "$lt_prog_compiler_pic_GCJ"; then
14895   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14896 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14897 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14898   echo $ECHO_N "(cached) $ECHO_C" >&6
14899 else
14900   lt_prog_compiler_pic_works_GCJ=no
14901   ac_outfile=conftest.$ac_objext
14902    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14903    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14904    # Insert the option either (1) after the last *FLAGS variable, or
14905    # (2) before a word containing "conftest.", or (3) at the end.
14906    # Note that $ac_compile itself does not contain backslashes and begins
14907    # with a dollar sign (not a hyphen), so the echo should work correctly.
14908    # The option is referenced via a variable to avoid confusing sed.
14909    lt_compile=`echo "$ac_compile" | $SED \
14910    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14911    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14912    -e 's:$: $lt_compiler_flag:'`
14913    (eval echo "\"\$as_me:14913: $lt_compile\"" >&5)
14914    (eval "$lt_compile" 2>conftest.err)
14915    ac_status=$?
14916    cat conftest.err >&5
14917    echo "$as_me:14917: \$? = $ac_status" >&5
14918    if (exit $ac_status) && test -s "$ac_outfile"; then
14919      # The compiler can only warn and ignore the option if not recognized
14920      # So say no if there are warnings
14921      if test ! -s conftest.err; then
14922        lt_prog_compiler_pic_works_GCJ=yes
14923      fi
14924    fi
14925    $rm conftest*
14926
14927 fi
14928 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14929 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14930
14931 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14932     case $lt_prog_compiler_pic_GCJ in
14933      "" | " "*) ;;
14934      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14935      esac
14936 else
14937     lt_prog_compiler_pic_GCJ=
14938      lt_prog_compiler_can_build_shared_GCJ=no
14939 fi
14940
14941 fi
14942 case "$host_os" in
14943   # For platforms which do not support PIC, -DPIC is meaningless:
14944   *djgpp*)
14945     lt_prog_compiler_pic_GCJ=
14946     ;;
14947   *)
14948     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14949     ;;
14950 esac
14951
14952 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14953 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14954 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14955   echo $ECHO_N "(cached) $ECHO_C" >&6
14956 else
14957   lt_cv_prog_compiler_c_o_GCJ=no
14958    $rm -r conftest 2>/dev/null
14959    mkdir conftest
14960    cd conftest
14961    mkdir out
14962    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14963
14964    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14965    # that will create temporary files in the current directory regardless of
14966    # the output directory.  Thus, making CWD read-only will cause this test
14967    # to fail, enabling locking or at least warning the user not to do parallel
14968    # builds.
14969    chmod -w .
14970
14971    lt_compiler_flag="-o out/conftest2.$ac_objext"
14972    # Insert the option either (1) after the last *FLAGS variable, or
14973    # (2) before a word containing "conftest.", or (3) at the end.
14974    # Note that $ac_compile itself does not contain backslashes and begins
14975    # with a dollar sign (not a hyphen), so the echo should work correctly.
14976    lt_compile=`echo "$ac_compile" | $SED \
14977    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14978    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14979    -e 's:$: $lt_compiler_flag:'`
14980    (eval echo "\"\$as_me:14980: $lt_compile\"" >&5)
14981    (eval "$lt_compile" 2>out/conftest.err)
14982    ac_status=$?
14983    cat out/conftest.err >&5
14984    echo "$as_me:14984: \$? = $ac_status" >&5
14985    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14986    then
14987      # The compiler can only warn and ignore the option if not recognized
14988      # So say no if there are warnings
14989      if test ! -s out/conftest.err; then
14990        lt_cv_prog_compiler_c_o_GCJ=yes
14991      fi
14992    fi
14993    chmod u+w .
14994    $rm conftest* out/*
14995    rmdir out
14996    cd ..
14997    rmdir conftest
14998    $rm conftest*
14999
15000 fi
15001 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15002 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15003
15004
15005 hard_links="nottested"
15006 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15007   # do not overwrite the value of need_locks provided by the user
15008   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15009 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15010   hard_links=yes
15011   $rm conftest*
15012   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15013   touch conftest.a
15014   ln conftest.a conftest.b 2>&5 || hard_links=no
15015   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15016   echo "$as_me:$LINENO: result: $hard_links" >&5
15017 echo "${ECHO_T}$hard_links" >&6
15018   if test "$hard_links" = no; then
15019     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15020 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15021     need_locks=warn
15022   fi
15023 else
15024   need_locks=no
15025 fi
15026
15027 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15028 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15029
15030   runpath_var=
15031   allow_undefined_flag_GCJ=
15032   enable_shared_with_static_runtimes_GCJ=no
15033   archive_cmds_GCJ=
15034   archive_expsym_cmds_GCJ=
15035   old_archive_From_new_cmds_GCJ=
15036   old_archive_from_expsyms_cmds_GCJ=
15037   export_dynamic_flag_spec_GCJ=
15038   whole_archive_flag_spec_GCJ=
15039   thread_safe_flag_spec_GCJ=
15040   hardcode_libdir_flag_spec_GCJ=
15041   hardcode_libdir_flag_spec_ld_GCJ=
15042   hardcode_libdir_separator_GCJ=
15043   hardcode_direct_GCJ=no
15044   hardcode_minus_L_GCJ=no
15045   hardcode_shlibpath_var_GCJ=unsupported
15046   link_all_deplibs_GCJ=unknown
15047   hardcode_automatic_GCJ=no
15048   module_cmds_GCJ=
15049   module_expsym_cmds_GCJ=
15050   always_export_symbols_GCJ=no
15051   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15052   # include_expsyms should be a list of space-separated symbols to be *always*
15053   # included in the symbol list
15054   include_expsyms_GCJ=
15055   # exclude_expsyms can be an extended regexp of symbols to exclude
15056   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15057   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15058   # as well as any symbol that contains `d'.
15059   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15060   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15061   # platforms (ab)use it in PIC code, but their linkers get confused if
15062   # the symbol is explicitly referenced.  Since portable code cannot
15063   # rely on this symbol name, it's probably fine to never include it in
15064   # preloaded symbol tables.
15065   extract_expsyms_cmds=
15066
15067   case $host_os in
15068   cygwin* | mingw* | pw32*)
15069     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15070     # When not using gcc, we currently assume that we are using
15071     # Microsoft Visual C++.
15072     if test "$GCC" != yes; then
15073       with_gnu_ld=no
15074     fi
15075     ;;
15076   openbsd*)
15077     with_gnu_ld=no
15078     ;;
15079   esac
15080
15081   ld_shlibs_GCJ=yes
15082   if test "$with_gnu_ld" = yes; then
15083     # If archive_cmds runs LD, not CC, wlarc should be empty
15084     wlarc='${wl}'
15085
15086     # See if GNU ld supports shared libraries.
15087     case $host_os in
15088     aix3* | aix4* | aix5*)
15089       # On AIX/PPC, the GNU linker is very broken
15090       if test "$host_cpu" != ia64; then
15091         ld_shlibs_GCJ=no
15092         cat <<EOF 1>&2
15093
15094 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15095 *** to be unable to reliably create shared libraries on AIX.
15096 *** Therefore, libtool is disabling shared libraries support.  If you
15097 *** really care for shared libraries, you may want to modify your PATH
15098 *** so that a non-GNU linker is found, and then restart.
15099
15100 EOF
15101       fi
15102       ;;
15103
15104     amigaos*)
15105       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)'
15106       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15107       hardcode_minus_L_GCJ=yes
15108
15109       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15110       # that the semantics of dynamic libraries on AmigaOS, at least up
15111       # to version 4, is to share data among multiple programs linked
15112       # with the same dynamic library.  Since this doesn't match the
15113       # behavior of shared libraries on other platforms, we can't use
15114       # them.
15115       ld_shlibs_GCJ=no
15116       ;;
15117
15118     beos*)
15119       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15120         allow_undefined_flag_GCJ=unsupported
15121         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15122         # support --undefined.  This deserves some investigation.  FIXME
15123         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15124       else
15125         ld_shlibs_GCJ=no
15126       fi
15127       ;;
15128
15129     cygwin* | mingw* | pw32*)
15130       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15131       # as there is no search path for DLLs.
15132       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15133       allow_undefined_flag_GCJ=unsupported
15134       always_export_symbols_GCJ=no
15135       enable_shared_with_static_runtimes_GCJ=yes
15136       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15137
15138       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15139         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15140         # If the export-symbols file already is a .def file (1st line
15141         # is EXPORTS), use it as is; otherwise, prepend...
15142         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15143           cp $export_symbols $output_objdir/$soname.def;
15144         else
15145           echo EXPORTS > $output_objdir/$soname.def;
15146           cat $export_symbols >> $output_objdir/$soname.def;
15147         fi~
15148         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15149       else
15150         ld_shlibs=no
15151       fi
15152       ;;
15153
15154     netbsd*)
15155       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15156         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15157         wlarc=
15158       else
15159         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15160         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15161       fi
15162       ;;
15163
15164     solaris* | sysv5*)
15165       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15166         ld_shlibs_GCJ=no
15167         cat <<EOF 1>&2
15168
15169 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15170 *** create shared libraries on Solaris systems.  Therefore, libtool
15171 *** is disabling shared libraries support.  We urge you to upgrade GNU
15172 *** binutils to release 2.9.1 or newer.  Another option is to modify
15173 *** your PATH or compiler configuration so that the native linker is
15174 *** used, and then restart.
15175
15176 EOF
15177       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15178         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15179         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15180       else
15181         ld_shlibs_GCJ=no
15182       fi
15183       ;;
15184
15185     sunos4*)
15186       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15187       wlarc=
15188       hardcode_direct_GCJ=yes
15189       hardcode_shlibpath_var_GCJ=no
15190       ;;
15191
15192     *)
15193       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15194         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15195         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15196       else
15197         ld_shlibs_GCJ=no
15198       fi
15199       ;;
15200     esac
15201
15202     if test "$ld_shlibs_GCJ" = yes; then
15203       runpath_var=LD_RUN_PATH
15204       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15205       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15206       # ancient GNU ld didn't support --whole-archive et. al.
15207       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15208         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15209       else
15210         whole_archive_flag_spec_GCJ=
15211       fi
15212     fi
15213   else
15214     # PORTME fill in a description of your system's linker (not GNU ld)
15215     case $host_os in
15216     aix3*)
15217       allow_undefined_flag_GCJ=unsupported
15218       always_export_symbols_GCJ=yes
15219       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'
15220       # Note: this linker hardcodes the directories in LIBPATH if there
15221       # are no directories specified by -L.
15222       hardcode_minus_L_GCJ=yes
15223       if test "$GCC" = yes && test -z "$link_static_flag"; then
15224         # Neither direct hardcoding nor static linking is supported with a
15225         # broken collect2.
15226         hardcode_direct_GCJ=unsupported
15227       fi
15228       ;;
15229
15230     aix4* | aix5*)
15231       if test "$host_cpu" = ia64; then
15232         # On IA64, the linker does run time linking by default, so we don't
15233         # have to do anything special.
15234         aix_use_runtimelinking=no
15235         exp_sym_flag='-Bexport'
15236         no_entry_flag=""
15237       else
15238         # If we're using GNU nm, then we don't want the "-C" option.
15239         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15240         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15241           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'
15242         else
15243           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'
15244         fi
15245         aix_use_runtimelinking=no
15246
15247         # Test if we are trying to use run time linking or normal
15248         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15249         # need to do runtime linking.
15250         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15251           for ld_flag in $LDFLAGS; do
15252           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15253             aix_use_runtimelinking=yes
15254             break
15255           fi
15256           done
15257         esac
15258
15259         exp_sym_flag='-bexport'
15260         no_entry_flag='-bnoentry'
15261       fi
15262
15263       # When large executables or shared objects are built, AIX ld can
15264       # have problems creating the table of contents.  If linking a library
15265       # or program results in "error TOC overflow" add -mminimal-toc to
15266       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15267       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15268
15269       archive_cmds_GCJ=''
15270       hardcode_direct_GCJ=yes
15271       hardcode_libdir_separator_GCJ=':'
15272       link_all_deplibs_GCJ=yes
15273
15274       if test "$GCC" = yes; then
15275         case $host_os in aix4.012|aix4.012.*)
15276         # We only want to do this on AIX 4.2 and lower, the check
15277         # below for broken collect2 doesn't work under 4.3+
15278           collect2name=`${CC} -print-prog-name=collect2`
15279           if test -f "$collect2name" && \
15280            strings "$collect2name" | grep resolve_lib_name >/dev/null
15281           then
15282           # We have reworked collect2
15283           hardcode_direct_GCJ=yes
15284           else
15285           # We have old collect2
15286           hardcode_direct_GCJ=unsupported
15287           # It fails to find uninstalled libraries when the uninstalled
15288           # path is not listed in the libpath.  Setting hardcode_minus_L
15289           # to unsupported forces relinking
15290           hardcode_minus_L_GCJ=yes
15291           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15292           hardcode_libdir_separator_GCJ=
15293           fi
15294         esac
15295         shared_flag='-shared'
15296       else
15297         # not using gcc
15298         if test "$host_cpu" = ia64; then
15299         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15300         # chokes on -Wl,-G. The following line is correct:
15301           shared_flag='-G'
15302         else
15303         if test "$aix_use_runtimelinking" = yes; then
15304             shared_flag='${wl}-G'
15305           else
15306             shared_flag='${wl}-bM:SRE'
15307         fi
15308         fi
15309       fi
15310
15311       # It seems that -bexpall does not export symbols beginning with
15312       # underscore (_), so it is better to generate a list of symbols to export.
15313       always_export_symbols_GCJ=yes
15314       if test "$aix_use_runtimelinking" = yes; then
15315         # Warning - without using the other runtime loading flags (-brtl),
15316         # -berok will link without error, but may produce a broken library.
15317         allow_undefined_flag_GCJ='-berok'
15318        # Determine the default libpath from the value encoded in an empty executable.
15319        cat >conftest.$ac_ext <<_ACEOF
15320 #line $LINENO "configure"
15321 /* confdefs.h.  */
15322 _ACEOF
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h.  */
15326
15327 int
15328 main ()
15329 {
15330
15331   ;
15332   return 0;
15333 }
15334 _ACEOF
15335 rm -f conftest.$ac_objext conftest$ac_exeext
15336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15337   (eval $ac_link) 2>&5
15338   ac_status=$?
15339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340   (exit $ac_status); } &&
15341          { ac_try='test -s conftest$ac_exeext'
15342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343   (eval $ac_try) 2>&5
15344   ac_status=$?
15345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346   (exit $ac_status); }; }; then
15347
15348 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15349 }'`
15350 # Check for a 64-bit object if we didn't find anything.
15351 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; }
15352 }'`; fi
15353 else
15354   echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15356
15357 fi
15358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15359 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15360
15361        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15362         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"
15363        else
15364         if test "$host_cpu" = ia64; then
15365           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15366           allow_undefined_flag_GCJ="-z nodefs"
15367           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"
15368         else
15369          # Determine the default libpath from the value encoded in an empty executable.
15370          cat >conftest.$ac_ext <<_ACEOF
15371 #line $LINENO "configure"
15372 /* confdefs.h.  */
15373 _ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h.  */
15377
15378 int
15379 main ()
15380 {
15381
15382   ;
15383   return 0;
15384 }
15385 _ACEOF
15386 rm -f conftest.$ac_objext conftest$ac_exeext
15387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15388   (eval $ac_link) 2>&5
15389   ac_status=$?
15390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); } &&
15392          { ac_try='test -s conftest$ac_exeext'
15393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394   (eval $ac_try) 2>&5
15395   ac_status=$?
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); }; }; then
15398
15399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15400 }'`
15401 # Check for a 64-bit object if we didn't find anything.
15402 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; }
15403 }'`; fi
15404 else
15405   echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15407
15408 fi
15409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15411
15412          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15413           # Warning - without using the other run time loading flags,
15414           # -berok will link without error, but may produce a broken library.
15415           no_undefined_flag_GCJ=' ${wl}-bernotok'
15416           allow_undefined_flag_GCJ=' ${wl}-berok'
15417           # -bexpall does not export symbols beginning with underscore (_)
15418           always_export_symbols_GCJ=yes
15419           # Exported symbols can be pulled into shared objects from archives
15420           whole_archive_flag_spec_GCJ=' '
15421           archive_cmds_need_lc_GCJ=yes
15422           # This is similar to how AIX traditionally builds it's shared libraries.
15423           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'
15424         fi
15425       fi
15426       ;;
15427
15428     amigaos*)
15429       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)'
15430       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15431       hardcode_minus_L_GCJ=yes
15432       # see comment about different semantics on the GNU ld section
15433       ld_shlibs_GCJ=no
15434       ;;
15435
15436     bsdi4*)
15437       export_dynamic_flag_spec_GCJ=-rdynamic
15438       ;;
15439
15440     cygwin* | mingw* | pw32*)
15441       # When not using gcc, we currently assume that we are using
15442       # Microsoft Visual C++.
15443       # hardcode_libdir_flag_spec is actually meaningless, as there is
15444       # no search path for DLLs.
15445       hardcode_libdir_flag_spec_GCJ=' '
15446       allow_undefined_flag_GCJ=unsupported
15447       # Tell ltmain to make .lib files, not .a files.
15448       libext=lib
15449       # Tell ltmain to make .dll files, not .so files.
15450       shrext=".dll"
15451       # FIXME: Setting linknames here is a bad hack.
15452       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15453       # The linker will automatically build a .lib file if we build a DLL.
15454       old_archive_From_new_cmds_GCJ='true'
15455       # FIXME: Should let the user specify the lib program.
15456       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15457       fix_srcfile_path='`cygpath -w "$srcfile"`'
15458       enable_shared_with_static_runtimes_GCJ=yes
15459       ;;
15460
15461     darwin* | rhapsody*)
15462     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15463       archive_cmds_need_lc_GCJ=no
15464       case "$host_os" in
15465       rhapsody* | darwin1.[012])
15466         allow_undefined_flag_GCJ='-undefined suppress'
15467         ;;
15468       *) # Darwin 1.3 on
15469         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15470         ;;
15471       esac
15472       # FIXME: Relying on posixy $() will cause problems for
15473       #        cross-compilation, but unfortunately the echo tests do not
15474       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15475       #        `"' quotes if we put them in here... so don't!
15476         lt_int_apple_cc_single_mod=no
15477         output_verbose_link_cmd='echo'
15478         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15479           lt_int_apple_cc_single_mod=yes
15480         fi
15481         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15482           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15483         else
15484         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'
15485       fi
15486       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15487       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15488         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15489           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}'
15490         else
15491           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}'
15492         fi
15493           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}'
15494       hardcode_direct_GCJ=no
15495       hardcode_automatic_GCJ=yes
15496       hardcode_shlibpath_var_GCJ=unsupported
15497       whole_archive_flag_spec_GCJ='-all_load $convenience'
15498       link_all_deplibs_GCJ=yes
15499     fi
15500       ;;
15501
15502     dgux*)
15503       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15504       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15505       hardcode_shlibpath_var_GCJ=no
15506       ;;
15507
15508     freebsd1*)
15509       ld_shlibs_GCJ=no
15510       ;;
15511
15512     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15513     # support.  Future versions do this automatically, but an explicit c++rt0.o
15514     # does not break anything, and helps significantly (at the cost of a little
15515     # extra space).
15516     freebsd2.2*)
15517       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15518       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15519       hardcode_direct_GCJ=yes
15520       hardcode_shlibpath_var_GCJ=no
15521       ;;
15522
15523     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15524     freebsd2*)
15525       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15526       hardcode_direct_GCJ=yes
15527       hardcode_minus_L_GCJ=yes
15528       hardcode_shlibpath_var_GCJ=no
15529       ;;
15530
15531     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15532     freebsd*)
15533       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15534       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15535       hardcode_direct_GCJ=yes
15536       hardcode_shlibpath_var_GCJ=no
15537       ;;
15538
15539     hpux9*)
15540       if test "$GCC" = yes; then
15541         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'
15542       else
15543         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'
15544       fi
15545       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15546       hardcode_libdir_separator_GCJ=:
15547       hardcode_direct_GCJ=yes
15548
15549       # hardcode_minus_L: Not really in the search PATH,
15550       # but as the default location of the library.
15551       hardcode_minus_L_GCJ=yes
15552       export_dynamic_flag_spec_GCJ='${wl}-E'
15553       ;;
15554
15555     hpux10* | hpux11*)
15556       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15557         case "$host_cpu" in
15558         hppa*64*|ia64*)
15559           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15560           ;;
15561         *)
15562           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15563           ;;
15564         esac
15565       else
15566         case "$host_cpu" in
15567         hppa*64*|ia64*)
15568           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15569           ;;
15570         *)
15571           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15572           ;;
15573         esac
15574       fi
15575       if test "$with_gnu_ld" = no; then
15576         case "$host_cpu" in
15577         hppa*64*)
15578           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15579           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15580           hardcode_libdir_separator_GCJ=:
15581           hardcode_direct_GCJ=no
15582           hardcode_shlibpath_var_GCJ=no
15583           ;;
15584         ia64*)
15585           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15586           hardcode_direct_GCJ=no
15587           hardcode_shlibpath_var_GCJ=no
15588
15589           # hardcode_minus_L: Not really in the search PATH,
15590           # but as the default location of the library.
15591           hardcode_minus_L_GCJ=yes
15592           ;;
15593         *)
15594           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15595           hardcode_libdir_separator_GCJ=:
15596           hardcode_direct_GCJ=yes
15597           export_dynamic_flag_spec_GCJ='${wl}-E'
15598
15599           # hardcode_minus_L: Not really in the search PATH,
15600           # but as the default location of the library.
15601           hardcode_minus_L_GCJ=yes
15602           ;;
15603         esac
15604       fi
15605       ;;
15606
15607     irix5* | irix6* | nonstopux*)
15608       if test "$GCC" = yes; then
15609         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'
15610       else
15611         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'
15612         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15613       fi
15614       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15615       hardcode_libdir_separator_GCJ=:
15616       link_all_deplibs_GCJ=yes
15617       ;;
15618
15619     netbsd*)
15620       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15621         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15622       else
15623         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15624       fi
15625       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15626       hardcode_direct_GCJ=yes
15627       hardcode_shlibpath_var_GCJ=no
15628       ;;
15629
15630     newsos6)
15631       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15632       hardcode_direct_GCJ=yes
15633       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15634       hardcode_libdir_separator_GCJ=:
15635       hardcode_shlibpath_var_GCJ=no
15636       ;;
15637
15638     openbsd*)
15639       hardcode_direct_GCJ=yes
15640       hardcode_shlibpath_var_GCJ=no
15641       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15642         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15643         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15644         export_dynamic_flag_spec_GCJ='${wl}-E'
15645       else
15646        case $host_os in
15647          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15648            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15649            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15650            ;;
15651          *)
15652            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15653            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15654            ;;
15655        esac
15656       fi
15657       ;;
15658
15659     os2*)
15660       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15661       hardcode_minus_L_GCJ=yes
15662       allow_undefined_flag_GCJ=unsupported
15663       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'
15664       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15665       ;;
15666
15667     osf3*)
15668       if test "$GCC" = yes; then
15669         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15670         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'
15671       else
15672         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15673         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'
15674       fi
15675       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15676       hardcode_libdir_separator_GCJ=:
15677       ;;
15678
15679     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15680       if test "$GCC" = yes; then
15681         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15682         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'
15683         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15684       else
15685         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15686         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'
15687         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~
15688         $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'
15689
15690         # Both c and cxx compiler support -rpath directly
15691         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15692       fi
15693       hardcode_libdir_separator_GCJ=:
15694       ;;
15695
15696     sco3.2v5*)
15697       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698       hardcode_shlibpath_var_GCJ=no
15699       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15700       runpath_var=LD_RUN_PATH
15701       hardcode_runpath_var=yes
15702       ;;
15703
15704     solaris*)
15705       no_undefined_flag_GCJ=' -z text'
15706       if test "$GCC" = yes; then
15707         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15708         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15709           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15710       else
15711         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15712         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15713         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15714       fi
15715       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15716       hardcode_shlibpath_var_GCJ=no
15717       case $host_os in
15718       solaris2.[0-5] | solaris2.[0-5].*) ;;
15719       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15720         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15721       esac
15722       link_all_deplibs_GCJ=yes
15723       ;;
15724
15725     sunos4*)
15726       if test "x$host_vendor" = xsequent; then
15727         # Use $CC to link under sequent, because it throws in some extra .o
15728         # files that make .init and .fini sections work.
15729         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15730       else
15731         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15732       fi
15733       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15734       hardcode_direct_GCJ=yes
15735       hardcode_minus_L_GCJ=yes
15736       hardcode_shlibpath_var_GCJ=no
15737       ;;
15738
15739     sysv4)
15740       case $host_vendor in
15741         sni)
15742           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15743           hardcode_direct_GCJ=yes # is this really true???
15744         ;;
15745         siemens)
15746           ## LD is ld it makes a PLAMLIB
15747           ## CC just makes a GrossModule.
15748           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15749           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15750           hardcode_direct_GCJ=no
15751         ;;
15752         motorola)
15753           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15754           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15755         ;;
15756       esac
15757       runpath_var='LD_RUN_PATH'
15758       hardcode_shlibpath_var_GCJ=no
15759       ;;
15760
15761     sysv4.3*)
15762       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15763       hardcode_shlibpath_var_GCJ=no
15764       export_dynamic_flag_spec_GCJ='-Bexport'
15765       ;;
15766
15767     sysv4*MP*)
15768       if test -d /usr/nec; then
15769         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15770         hardcode_shlibpath_var_GCJ=no
15771         runpath_var=LD_RUN_PATH
15772         hardcode_runpath_var=yes
15773         ld_shlibs_GCJ=yes
15774       fi
15775       ;;
15776
15777     sysv4.2uw2*)
15778       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15779       hardcode_direct_GCJ=yes
15780       hardcode_minus_L_GCJ=no
15781       hardcode_shlibpath_var_GCJ=no
15782       hardcode_runpath_var=yes
15783       runpath_var=LD_RUN_PATH
15784       ;;
15785
15786    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15787       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15788       if test "$GCC" = yes; then
15789         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15790       else
15791         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15792       fi
15793       runpath_var='LD_RUN_PATH'
15794       hardcode_shlibpath_var_GCJ=no
15795       ;;
15796
15797     sysv5*)
15798       no_undefined_flag_GCJ=' -z text'
15799       # $CC -shared without GNU ld will not create a library from C++
15800       # object files and a static libstdc++, better avoid it by now
15801       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15802       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15803                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15804       hardcode_libdir_flag_spec_GCJ=
15805       hardcode_shlibpath_var_GCJ=no
15806       runpath_var='LD_RUN_PATH'
15807       ;;
15808
15809     uts4*)
15810       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15811       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15812       hardcode_shlibpath_var_GCJ=no
15813       ;;
15814
15815     *)
15816       ld_shlibs_GCJ=no
15817       ;;
15818     esac
15819   fi
15820
15821 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15822 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15823 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15824
15825 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15826 if test "$GCC" = yes; then
15827   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15828 fi
15829
15830 #
15831 # Do we need to explicitly link libc?
15832 #
15833 case "x$archive_cmds_need_lc_GCJ" in
15834 x|xyes)
15835   # Assume -lc should be added
15836   archive_cmds_need_lc_GCJ=yes
15837
15838   if test "$enable_shared" = yes && test "$GCC" = yes; then
15839     case $archive_cmds_GCJ in
15840     *'~'*)
15841       # FIXME: we may have to deal with multi-command sequences.
15842       ;;
15843     '$CC '*)
15844       # Test whether the compiler implicitly links with -lc since on some
15845       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15846       # to ld, don't add -lc before -lgcc.
15847       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15848 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15849       $rm conftest*
15850       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15851
15852       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15853   (eval $ac_compile) 2>&5
15854   ac_status=$?
15855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856   (exit $ac_status); } 2>conftest.err; then
15857         soname=conftest
15858         lib=conftest
15859         libobjs=conftest.$ac_objext
15860         deplibs=
15861         wl=$lt_prog_compiler_wl_GCJ
15862         compiler_flags=-v
15863         linker_flags=-v
15864         verstring=
15865         output_objdir=.
15866         libname=conftest
15867         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15868         allow_undefined_flag_GCJ=
15869         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15870   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15871   ac_status=$?
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); }
15874         then
15875           archive_cmds_need_lc_GCJ=no
15876         else
15877           archive_cmds_need_lc_GCJ=yes
15878         fi
15879         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15880       else
15881         cat conftest.err 1>&5
15882       fi
15883       $rm conftest*
15884       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15885 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15886       ;;
15887     esac
15888   fi
15889   ;;
15890 esac
15891
15892 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15893 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15894 hardcode_action_GCJ=
15895 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15896    test -n "$runpath_var GCJ" || \
15897    test "X$hardcode_automatic_GCJ"="Xyes" ; then
15898
15899   # We can hardcode non-existant directories.
15900   if test "$hardcode_direct_GCJ" != no &&
15901      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15902      # have to relink, otherwise we might link with an installed library
15903      # when we should be linking with a yet-to-be-installed one
15904      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15905      test "$hardcode_minus_L_GCJ" != no; then
15906     # Linking always hardcodes the temporary library directory.
15907     hardcode_action_GCJ=relink
15908   else
15909     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15910     hardcode_action_GCJ=immediate
15911   fi
15912 else
15913   # We cannot hardcode anything, or else we can only hardcode existing
15914   # directories.
15915   hardcode_action_GCJ=unsupported
15916 fi
15917 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15918 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15919
15920 if test "$hardcode_action_GCJ" = relink; then
15921   # Fast installation is not supported
15922   enable_fast_install=no
15923 elif test "$shlibpath_overrides_runpath" = yes ||
15924      test "$enable_shared" = no; then
15925   # Fast installation is not necessary
15926   enable_fast_install=needless
15927 fi
15928
15929 striplib=
15930 old_striplib=
15931 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15932 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15933 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15934   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15935   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15936   echo "$as_me:$LINENO: result: yes" >&5
15937 echo "${ECHO_T}yes" >&6
15938 else
15939 # FIXME - insert some real tests, host_os isn't really good enough
15940   case $host_os in
15941    darwin*)
15942        if test -n "$STRIP" ; then
15943          striplib="$STRIP -x"
15944          echo "$as_me:$LINENO: result: yes" >&5
15945 echo "${ECHO_T}yes" >&6
15946        else
15947   echo "$as_me:$LINENO: result: no" >&5
15948 echo "${ECHO_T}no" >&6
15949 fi
15950        ;;
15951    *)
15952   echo "$as_me:$LINENO: result: no" >&5
15953 echo "${ECHO_T}no" >&6
15954     ;;
15955   esac
15956 fi
15957
15958 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15959 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15960 library_names_spec=
15961 libname_spec='lib$name'
15962 soname_spec=
15963 shrext=".so"
15964 postinstall_cmds=
15965 postuninstall_cmds=
15966 finish_cmds=
15967 finish_eval=
15968 shlibpath_var=
15969 shlibpath_overrides_runpath=unknown
15970 version_type=none
15971 dynamic_linker="$host_os ld.so"
15972 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15973 if test "$GCC" = yes; then
15974   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15975   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15976     # if the path contains ";" then we assume it to be the separator
15977     # otherwise default to the standard path separator (i.e. ":") - it is
15978     # assumed that no part of a normal pathname contains ";" but that should
15979     # okay in the real world where ";" in dirpaths is itself problematic.
15980     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15981   else
15982     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15983   fi
15984 else
15985   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15986 fi
15987 need_lib_prefix=unknown
15988 hardcode_into_libs=no
15989
15990 # when you set need_version to no, make sure it does not cause -set_version
15991 # flags to be left without arguments
15992 need_version=unknown
15993
15994 case $host_os in
15995 aix3*)
15996   version_type=linux
15997   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15998   shlibpath_var=LIBPATH
15999
16000   # AIX 3 has no versioning support, so we append a major version to the name.
16001   soname_spec='${libname}${release}${shared_ext}$major'
16002   ;;
16003
16004 aix4* | aix5*)
16005   version_type=linux
16006   need_lib_prefix=no
16007   need_version=no
16008   hardcode_into_libs=yes
16009   if test "$host_cpu" = ia64; then
16010     # AIX 5 supports IA64
16011     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16012     shlibpath_var=LD_LIBRARY_PATH
16013   else
16014     # With GCC up to 2.95.x, collect2 would create an import file
16015     # for dependence libraries.  The import file would start with
16016     # the line `#! .'.  This would cause the generated library to
16017     # depend on `.', always an invalid library.  This was fixed in
16018     # development snapshots of GCC prior to 3.0.
16019     case $host_os in
16020       aix4 | aix4.[01] | aix4.[01].*)
16021       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16022            echo ' yes '
16023            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16024         :
16025       else
16026         can_build_shared=no
16027       fi
16028       ;;
16029     esac
16030     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16031     # soname into executable. Probably we can add versioning support to
16032     # collect2, so additional links can be useful in future.
16033     if test "$aix_use_runtimelinking" = yes; then
16034       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16035       # instead of lib<name>.a to let people know that these are not
16036       # typical AIX shared libraries.
16037       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16038     else
16039       # We preserve .a as extension for shared libraries through AIX4.2
16040       # and later when we are not doing run time linking.
16041       library_names_spec='${libname}${release}.a $libname.a'
16042       soname_spec='${libname}${release}${shared_ext}$major'
16043     fi
16044     shlibpath_var=LIBPATH
16045   fi
16046   ;;
16047
16048 amigaos*)
16049   library_names_spec='$libname.ixlibrary $libname.a'
16050   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16051   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'
16052   ;;
16053
16054 beos*)
16055   library_names_spec='${libname}${shared_ext}'
16056   dynamic_linker="$host_os ld.so"
16057   shlibpath_var=LIBRARY_PATH
16058   ;;
16059
16060 bsdi4*)
16061   version_type=linux
16062   need_version=no
16063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064   soname_spec='${libname}${release}${shared_ext}$major'
16065   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16066   shlibpath_var=LD_LIBRARY_PATH
16067   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16068   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16069   # the default ld.so.conf also contains /usr/contrib/lib and
16070   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16071   # libtool to hard-code these into programs
16072   ;;
16073
16074 cygwin* | mingw* | pw32*)
16075   version_type=windows
16076   shrext=".dll"
16077   need_version=no
16078   need_lib_prefix=no
16079
16080   case $GCC,$host_os in
16081   yes,cygwin* | yes,mingw* | yes,pw32*)
16082     library_names_spec='$libname.dll.a'
16083     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16084     postinstall_cmds='base_file=`basename \${file}`~
16085       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16086       dldir=$destdir/`dirname \$dlpath`~
16087       test -d \$dldir || mkdir -p \$dldir~
16088       $install_prog $dir/$dlname \$dldir/$dlname'
16089     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16090       dlpath=$dir/\$dldll~
16091        $rm \$dlpath'
16092     shlibpath_overrides_runpath=yes
16093
16094     case $host_os in
16095     cygwin*)
16096       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16097       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16098       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16099       ;;
16100     mingw*)
16101       # MinGW DLLs use traditional 'lib' prefix
16102       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16103       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16104       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16105         # It is most probably a Windows format PATH printed by
16106         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16107         # path with ; separators, and with drive letters. We can handle the
16108         # drive letters (cygwin fileutils understands them), so leave them,
16109         # especially as we might pass files found there to a mingw objdump,
16110         # which wouldn't understand a cygwinified path. Ahh.
16111         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16112       else
16113         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16114       fi
16115       ;;
16116     pw32*)
16117       # pw32 DLLs use 'pw' prefix rather than 'lib'
16118       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16119       ;;
16120     esac
16121     ;;
16122
16123   *)
16124     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16125     ;;
16126   esac
16127   dynamic_linker='Win32 ld.exe'
16128   # FIXME: first we should search . and the directory the executable is in
16129   shlibpath_var=PATH
16130   ;;
16131
16132 darwin* | rhapsody*)
16133   dynamic_linker="$host_os dyld"
16134   version_type=darwin
16135   need_lib_prefix=no
16136   need_version=no
16137   # FIXME: Relying on posixy $() will cause problems for
16138   #        cross-compilation, but unfortunately the echo tests do not
16139   #        yet detect zsh echo's removal of \ escapes.
16140   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16141   soname_spec='${libname}${release}${major}$shared_ext'
16142   shlibpath_overrides_runpath=yes
16143   shlibpath_var=DYLD_LIBRARY_PATH
16144   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16145   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16146   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16147   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"`
16148   fi
16149   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16150   ;;
16151
16152 dgux*)
16153   version_type=linux
16154   need_lib_prefix=no
16155   need_version=no
16156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16157   soname_spec='${libname}${release}${shared_ext}$major'
16158   shlibpath_var=LD_LIBRARY_PATH
16159   ;;
16160
16161 freebsd1*)
16162   dynamic_linker=no
16163   ;;
16164
16165 freebsd*)
16166   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16167   version_type=freebsd-$objformat
16168   case $version_type in
16169     freebsd-elf*)
16170       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16171       need_version=no
16172       need_lib_prefix=no
16173       ;;
16174     freebsd-*)
16175       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16176       need_version=yes
16177       ;;
16178   esac
16179   shlibpath_var=LD_LIBRARY_PATH
16180   case $host_os in
16181   freebsd2*)
16182     shlibpath_overrides_runpath=yes
16183     ;;
16184   freebsd3.01* | freebsdelf3.01*)
16185     shlibpath_overrides_runpath=yes
16186     hardcode_into_libs=yes
16187     ;;
16188   *) # from 3.2 on
16189     shlibpath_overrides_runpath=no
16190     hardcode_into_libs=yes
16191     ;;
16192   esac
16193   ;;
16194
16195 gnu*)
16196   version_type=linux
16197   need_lib_prefix=no
16198   need_version=no
16199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16200   soname_spec='${libname}${release}${shared_ext}$major'
16201   shlibpath_var=LD_LIBRARY_PATH
16202   hardcode_into_libs=yes
16203   ;;
16204
16205 hpux9* | hpux10* | hpux11*)
16206   # Give a soname corresponding to the major version so that dld.sl refuses to
16207   # link against other versions.
16208   version_type=sunos
16209   need_lib_prefix=no
16210   need_version=no
16211   case "$host_cpu" in
16212   ia64*)
16213     shrext='.so'
16214     hardcode_into_libs=yes
16215     dynamic_linker="$host_os dld.so"
16216     shlibpath_var=LD_LIBRARY_PATH
16217     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16218     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16219     soname_spec='${libname}${release}${shared_ext}$major'
16220     if test "X$HPUX_IA64_MODE" = X32; then
16221       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16222     else
16223       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16224     fi
16225     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16226     ;;
16227    hppa*64*)
16228      shrext='.sl'
16229      hardcode_into_libs=yes
16230      dynamic_linker="$host_os dld.sl"
16231      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16232      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16233      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16234      soname_spec='${libname}${release}${shared_ext}$major'
16235      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16236      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16237      ;;
16238    *)
16239     shrext='.sl'
16240     dynamic_linker="$host_os dld.sl"
16241     shlibpath_var=SHLIB_PATH
16242     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16244     soname_spec='${libname}${release}${shared_ext}$major'
16245     ;;
16246   esac
16247   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16248   postinstall_cmds='chmod 555 $lib'
16249   ;;
16250
16251 irix5* | irix6* | nonstopux*)
16252   case $host_os in
16253     nonstopux*) version_type=nonstopux ;;
16254     *)
16255         if test "$lt_cv_prog_gnu_ld" = yes; then
16256                 version_type=linux
16257         else
16258                 version_type=irix
16259         fi ;;
16260   esac
16261   need_lib_prefix=no
16262   need_version=no
16263   soname_spec='${libname}${release}${shared_ext}$major'
16264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16265   case $host_os in
16266   irix5* | nonstopux*)
16267     libsuff= shlibsuff=
16268     ;;
16269   *)
16270     case $LD in # libtool.m4 will add one of these switches to LD
16271     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16272       libsuff= shlibsuff= libmagic=32-bit;;
16273     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16274       libsuff=32 shlibsuff=N32 libmagic=N32;;
16275     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16276       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16277     *) libsuff= shlibsuff= libmagic=never-match;;
16278     esac
16279     ;;
16280   esac
16281   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16282   shlibpath_overrides_runpath=no
16283   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16284   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16285   hardcode_into_libs=yes
16286   ;;
16287
16288 # No shared lib support for Linux oldld, aout, or coff.
16289 linux*oldld* | linux*aout* | linux*coff*)
16290   dynamic_linker=no
16291   ;;
16292
16293 # This must be Linux ELF.
16294 linux*)
16295   version_type=linux
16296   need_lib_prefix=no
16297   need_version=no
16298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16299   soname_spec='${libname}${release}${shared_ext}$major'
16300   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16301   shlibpath_var=LD_LIBRARY_PATH
16302   shlibpath_overrides_runpath=no
16303   # This implies no fast_install, which is unacceptable.
16304   # Some rework will be needed to allow for fast_install
16305   # before this can be enabled.
16306   hardcode_into_libs=yes
16307
16308   # We used to test for /lib/ld.so.1 and disable shared libraries on
16309   # powerpc, because MkLinux only supported shared libraries with the
16310   # GNU dynamic linker.  Since this was broken with cross compilers,
16311   # most powerpc-linux boxes support dynamic linking these days and
16312   # people can always --disable-shared, the test was removed, and we
16313   # assume the GNU/Linux dynamic linker is in use.
16314   dynamic_linker='GNU/Linux ld.so'
16315   ;;
16316
16317 netbsd*)
16318   version_type=sunos
16319   need_lib_prefix=no
16320   need_version=no
16321   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16322     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16323     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16324     dynamic_linker='NetBSD (a.out) ld.so'
16325   else
16326     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16327     soname_spec='${libname}${release}${shared_ext}$major'
16328     dynamic_linker='NetBSD ld.elf_so'
16329   fi
16330   shlibpath_var=LD_LIBRARY_PATH
16331   shlibpath_overrides_runpath=yes
16332   hardcode_into_libs=yes
16333   ;;
16334
16335 newsos6)
16336   version_type=linux
16337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16338   shlibpath_var=LD_LIBRARY_PATH
16339   shlibpath_overrides_runpath=yes
16340   ;;
16341
16342 nto-qnx)
16343   version_type=linux
16344   need_lib_prefix=no
16345   need_version=no
16346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347   soname_spec='${libname}${release}${shared_ext}$major'
16348   shlibpath_var=LD_LIBRARY_PATH
16349   shlibpath_overrides_runpath=yes
16350   ;;
16351
16352 openbsd*)
16353   version_type=sunos
16354   need_lib_prefix=no
16355   need_version=no
16356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16357   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16358   shlibpath_var=LD_LIBRARY_PATH
16359   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16360     case $host_os in
16361       openbsd2.[89] | openbsd2.[89].*)
16362         shlibpath_overrides_runpath=no
16363         ;;
16364       *)
16365         shlibpath_overrides_runpath=yes
16366         ;;
16367       esac
16368   else
16369     shlibpath_overrides_runpath=yes
16370   fi
16371   ;;
16372
16373 os2*)
16374   libname_spec='$name'
16375   shrext=".dll"
16376   need_lib_prefix=no
16377   library_names_spec='$libname${shared_ext} $libname.a'
16378   dynamic_linker='OS/2 ld.exe'
16379   shlibpath_var=LIBPATH
16380   ;;
16381
16382 osf3* | osf4* | osf5*)
16383   version_type=osf
16384   need_lib_prefix=no
16385   need_version=no
16386   soname_spec='${libname}${release}${shared_ext}$major'
16387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388   shlibpath_var=LD_LIBRARY_PATH
16389   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16390   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16391   ;;
16392
16393 sco3.2v5*)
16394   version_type=osf
16395   soname_spec='${libname}${release}${shared_ext}$major'
16396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16397   shlibpath_var=LD_LIBRARY_PATH
16398   ;;
16399
16400 solaris*)
16401   version_type=linux
16402   need_lib_prefix=no
16403   need_version=no
16404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16405   soname_spec='${libname}${release}${shared_ext}$major'
16406   shlibpath_var=LD_LIBRARY_PATH
16407   shlibpath_overrides_runpath=yes
16408   hardcode_into_libs=yes
16409   # ldd complains unless libraries are executable
16410   postinstall_cmds='chmod +x $lib'
16411   ;;
16412
16413 sunos4*)
16414   version_type=sunos
16415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16416   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16417   shlibpath_var=LD_LIBRARY_PATH
16418   shlibpath_overrides_runpath=yes
16419   if test "$with_gnu_ld" = yes; then
16420     need_lib_prefix=no
16421   fi
16422   need_version=yes
16423   ;;
16424
16425 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16426   version_type=linux
16427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428   soname_spec='${libname}${release}${shared_ext}$major'
16429   shlibpath_var=LD_LIBRARY_PATH
16430   case $host_vendor in
16431     sni)
16432       shlibpath_overrides_runpath=no
16433       need_lib_prefix=no
16434       export_dynamic_flag_spec='${wl}-Blargedynsym'
16435       runpath_var=LD_RUN_PATH
16436       ;;
16437     siemens)
16438       need_lib_prefix=no
16439       ;;
16440     motorola)
16441       need_lib_prefix=no
16442       need_version=no
16443       shlibpath_overrides_runpath=no
16444       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16445       ;;
16446   esac
16447   ;;
16448
16449 sysv4*MP*)
16450   if test -d /usr/nec ;then
16451     version_type=linux
16452     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16453     soname_spec='$libname${shared_ext}.$major'
16454     shlibpath_var=LD_LIBRARY_PATH
16455   fi
16456   ;;
16457
16458 uts4*)
16459   version_type=linux
16460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16461   soname_spec='${libname}${release}${shared_ext}$major'
16462   shlibpath_var=LD_LIBRARY_PATH
16463   ;;
16464
16465 *)
16466   dynamic_linker=no
16467   ;;
16468 esac
16469 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16470 echo "${ECHO_T}$dynamic_linker" >&6
16471 test "$dynamic_linker" = no && can_build_shared=no
16472
16473 if test "x$enable_dlopen" != xyes; then
16474   enable_dlopen=unknown
16475   enable_dlopen_self=unknown
16476   enable_dlopen_self_static=unknown
16477 else
16478   lt_cv_dlopen=no
16479   lt_cv_dlopen_libs=
16480
16481   case $host_os in
16482   beos*)
16483     lt_cv_dlopen="load_add_on"
16484     lt_cv_dlopen_libs=
16485     lt_cv_dlopen_self=yes
16486     ;;
16487
16488   mingw* | pw32*)
16489     lt_cv_dlopen="LoadLibrary"
16490     lt_cv_dlopen_libs=
16491    ;;
16492
16493   cygwin*)
16494     lt_cv_dlopen="dlopen"
16495     lt_cv_dlopen_libs=
16496    ;;
16497
16498   darwin*)
16499   # if libdl is installed we need to link against it
16500     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16501 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16502 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16503   echo $ECHO_N "(cached) $ECHO_C" >&6
16504 else
16505   ac_check_lib_save_LIBS=$LIBS
16506 LIBS="-ldl  $LIBS"
16507 cat >conftest.$ac_ext <<_ACEOF
16508 #line $LINENO "configure"
16509 /* confdefs.h.  */
16510 _ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h.  */
16514
16515 /* Override any gcc2 internal prototype to avoid an error.  */
16516 #ifdef __cplusplus
16517 extern "C"
16518 #endif
16519 /* We use char because int might match the return type of a gcc2
16520    builtin and then its argument prototype would still apply.  */
16521 char dlopen ();
16522 int
16523 main ()
16524 {
16525 dlopen ();
16526   ;
16527   return 0;
16528 }
16529 _ACEOF
16530 rm -f conftest.$ac_objext conftest$ac_exeext
16531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16532   (eval $ac_link) 2>&5
16533   ac_status=$?
16534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535   (exit $ac_status); } &&
16536          { ac_try='test -s conftest$ac_exeext'
16537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538   (eval $ac_try) 2>&5
16539   ac_status=$?
16540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541   (exit $ac_status); }; }; then
16542   ac_cv_lib_dl_dlopen=yes
16543 else
16544   echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16546
16547 ac_cv_lib_dl_dlopen=no
16548 fi
16549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16550 LIBS=$ac_check_lib_save_LIBS
16551 fi
16552 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16553 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16554 if test $ac_cv_lib_dl_dlopen = yes; then
16555   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16556 else
16557
16558     lt_cv_dlopen="dyld"
16559     lt_cv_dlopen_libs=
16560     lt_cv_dlopen_self=yes
16561
16562 fi
16563
16564    ;;
16565
16566   *)
16567     echo "$as_me:$LINENO: checking for shl_load" >&5
16568 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16569 if test "${ac_cv_func_shl_load+set}" = set; then
16570   echo $ECHO_N "(cached) $ECHO_C" >&6
16571 else
16572   cat >conftest.$ac_ext <<_ACEOF
16573 #line $LINENO "configure"
16574 /* confdefs.h.  */
16575 _ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h.  */
16579 /* System header to define __stub macros and hopefully few prototypes,
16580     which can conflict with char shl_load (); below.
16581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16582     <limits.h> exists even on freestanding compilers.  */
16583 #ifdef __STDC__
16584 # include <limits.h>
16585 #else
16586 # include <assert.h>
16587 #endif
16588 /* Override any gcc2 internal prototype to avoid an error.  */
16589 #ifdef __cplusplus
16590 extern "C"
16591 {
16592 #endif
16593 /* We use char because int might match the return type of a gcc2
16594    builtin and then its argument prototype would still apply.  */
16595 char shl_load ();
16596 /* The GNU C library defines this for functions which it implements
16597     to always fail with ENOSYS.  Some functions are actually named
16598     something starting with __ and the normal name is an alias.  */
16599 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16600 choke me
16601 #else
16602 char (*f) () = shl_load;
16603 #endif
16604 #ifdef __cplusplus
16605 }
16606 #endif
16607
16608 int
16609 main ()
16610 {
16611 return f != shl_load;
16612   ;
16613   return 0;
16614 }
16615 _ACEOF
16616 rm -f conftest.$ac_objext conftest$ac_exeext
16617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16618   (eval $ac_link) 2>&5
16619   ac_status=$?
16620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621   (exit $ac_status); } &&
16622          { ac_try='test -s conftest$ac_exeext'
16623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624   (eval $ac_try) 2>&5
16625   ac_status=$?
16626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627   (exit $ac_status); }; }; then
16628   ac_cv_func_shl_load=yes
16629 else
16630   echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16632
16633 ac_cv_func_shl_load=no
16634 fi
16635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16636 fi
16637 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16638 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16639 if test $ac_cv_func_shl_load = yes; then
16640   lt_cv_dlopen="shl_load"
16641 else
16642   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16643 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16644 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16645   echo $ECHO_N "(cached) $ECHO_C" >&6
16646 else
16647   ac_check_lib_save_LIBS=$LIBS
16648 LIBS="-ldld  $LIBS"
16649 cat >conftest.$ac_ext <<_ACEOF
16650 #line $LINENO "configure"
16651 /* confdefs.h.  */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h.  */
16656
16657 /* Override any gcc2 internal prototype to avoid an error.  */
16658 #ifdef __cplusplus
16659 extern "C"
16660 #endif
16661 /* We use char because int might match the return type of a gcc2
16662    builtin and then its argument prototype would still apply.  */
16663 char shl_load ();
16664 int
16665 main ()
16666 {
16667 shl_load ();
16668   ;
16669   return 0;
16670 }
16671 _ACEOF
16672 rm -f conftest.$ac_objext conftest$ac_exeext
16673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16674   (eval $ac_link) 2>&5
16675   ac_status=$?
16676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677   (exit $ac_status); } &&
16678          { ac_try='test -s conftest$ac_exeext'
16679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16680   (eval $ac_try) 2>&5
16681   ac_status=$?
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); }; }; then
16684   ac_cv_lib_dld_shl_load=yes
16685 else
16686   echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16688
16689 ac_cv_lib_dld_shl_load=no
16690 fi
16691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16692 LIBS=$ac_check_lib_save_LIBS
16693 fi
16694 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16695 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16696 if test $ac_cv_lib_dld_shl_load = yes; then
16697   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16698 else
16699   echo "$as_me:$LINENO: checking for dlopen" >&5
16700 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16701 if test "${ac_cv_func_dlopen+set}" = set; then
16702   echo $ECHO_N "(cached) $ECHO_C" >&6
16703 else
16704   cat >conftest.$ac_ext <<_ACEOF
16705 #line $LINENO "configure"
16706 /* confdefs.h.  */
16707 _ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h.  */
16711 /* System header to define __stub macros and hopefully few prototypes,
16712     which can conflict with char dlopen (); below.
16713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16714     <limits.h> exists even on freestanding compilers.  */
16715 #ifdef __STDC__
16716 # include <limits.h>
16717 #else
16718 # include <assert.h>
16719 #endif
16720 /* Override any gcc2 internal prototype to avoid an error.  */
16721 #ifdef __cplusplus
16722 extern "C"
16723 {
16724 #endif
16725 /* We use char because int might match the return type of a gcc2
16726    builtin and then its argument prototype would still apply.  */
16727 char dlopen ();
16728 /* The GNU C library defines this for functions which it implements
16729     to always fail with ENOSYS.  Some functions are actually named
16730     something starting with __ and the normal name is an alias.  */
16731 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16732 choke me
16733 #else
16734 char (*f) () = dlopen;
16735 #endif
16736 #ifdef __cplusplus
16737 }
16738 #endif
16739
16740 int
16741 main ()
16742 {
16743 return f != dlopen;
16744   ;
16745   return 0;
16746 }
16747 _ACEOF
16748 rm -f conftest.$ac_objext conftest$ac_exeext
16749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16750   (eval $ac_link) 2>&5
16751   ac_status=$?
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); } &&
16754          { ac_try='test -s conftest$ac_exeext'
16755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756   (eval $ac_try) 2>&5
16757   ac_status=$?
16758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); }; }; then
16760   ac_cv_func_dlopen=yes
16761 else
16762   echo "$as_me: failed program was:" >&5
16763 sed 's/^/| /' conftest.$ac_ext >&5
16764
16765 ac_cv_func_dlopen=no
16766 fi
16767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16768 fi
16769 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16770 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16771 if test $ac_cv_func_dlopen = yes; then
16772   lt_cv_dlopen="dlopen"
16773 else
16774   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16775 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16776 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16777   echo $ECHO_N "(cached) $ECHO_C" >&6
16778 else
16779   ac_check_lib_save_LIBS=$LIBS
16780 LIBS="-ldl  $LIBS"
16781 cat >conftest.$ac_ext <<_ACEOF
16782 #line $LINENO "configure"
16783 /* confdefs.h.  */
16784 _ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h.  */
16788
16789 /* Override any gcc2 internal prototype to avoid an error.  */
16790 #ifdef __cplusplus
16791 extern "C"
16792 #endif
16793 /* We use char because int might match the return type of a gcc2
16794    builtin and then its argument prototype would still apply.  */
16795 char dlopen ();
16796 int
16797 main ()
16798 {
16799 dlopen ();
16800   ;
16801   return 0;
16802 }
16803 _ACEOF
16804 rm -f conftest.$ac_objext conftest$ac_exeext
16805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16806   (eval $ac_link) 2>&5
16807   ac_status=$?
16808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809   (exit $ac_status); } &&
16810          { ac_try='test -s conftest$ac_exeext'
16811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812   (eval $ac_try) 2>&5
16813   ac_status=$?
16814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815   (exit $ac_status); }; }; then
16816   ac_cv_lib_dl_dlopen=yes
16817 else
16818   echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16820
16821 ac_cv_lib_dl_dlopen=no
16822 fi
16823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16824 LIBS=$ac_check_lib_save_LIBS
16825 fi
16826 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16828 if test $ac_cv_lib_dl_dlopen = yes; then
16829   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16830 else
16831   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16832 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16833 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16834   echo $ECHO_N "(cached) $ECHO_C" >&6
16835 else
16836   ac_check_lib_save_LIBS=$LIBS
16837 LIBS="-lsvld  $LIBS"
16838 cat >conftest.$ac_ext <<_ACEOF
16839 #line $LINENO "configure"
16840 /* confdefs.h.  */
16841 _ACEOF
16842 cat confdefs.h >>conftest.$ac_ext
16843 cat >>conftest.$ac_ext <<_ACEOF
16844 /* end confdefs.h.  */
16845
16846 /* Override any gcc2 internal prototype to avoid an error.  */
16847 #ifdef __cplusplus
16848 extern "C"
16849 #endif
16850 /* We use char because int might match the return type of a gcc2
16851    builtin and then its argument prototype would still apply.  */
16852 char dlopen ();
16853 int
16854 main ()
16855 {
16856 dlopen ();
16857   ;
16858   return 0;
16859 }
16860 _ACEOF
16861 rm -f conftest.$ac_objext conftest$ac_exeext
16862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16863   (eval $ac_link) 2>&5
16864   ac_status=$?
16865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866   (exit $ac_status); } &&
16867          { ac_try='test -s conftest$ac_exeext'
16868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869   (eval $ac_try) 2>&5
16870   ac_status=$?
16871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872   (exit $ac_status); }; }; then
16873   ac_cv_lib_svld_dlopen=yes
16874 else
16875   echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16877
16878 ac_cv_lib_svld_dlopen=no
16879 fi
16880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16881 LIBS=$ac_check_lib_save_LIBS
16882 fi
16883 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16884 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16885 if test $ac_cv_lib_svld_dlopen = yes; then
16886   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16887 else
16888   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16889 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16890 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16891   echo $ECHO_N "(cached) $ECHO_C" >&6
16892 else
16893   ac_check_lib_save_LIBS=$LIBS
16894 LIBS="-ldld  $LIBS"
16895 cat >conftest.$ac_ext <<_ACEOF
16896 #line $LINENO "configure"
16897 /* confdefs.h.  */
16898 _ACEOF
16899 cat confdefs.h >>conftest.$ac_ext
16900 cat >>conftest.$ac_ext <<_ACEOF
16901 /* end confdefs.h.  */
16902
16903 /* Override any gcc2 internal prototype to avoid an error.  */
16904 #ifdef __cplusplus
16905 extern "C"
16906 #endif
16907 /* We use char because int might match the return type of a gcc2
16908    builtin and then its argument prototype would still apply.  */
16909 char dld_link ();
16910 int
16911 main ()
16912 {
16913 dld_link ();
16914   ;
16915   return 0;
16916 }
16917 _ACEOF
16918 rm -f conftest.$ac_objext conftest$ac_exeext
16919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16920   (eval $ac_link) 2>&5
16921   ac_status=$?
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); } &&
16924          { ac_try='test -s conftest$ac_exeext'
16925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926   (eval $ac_try) 2>&5
16927   ac_status=$?
16928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929   (exit $ac_status); }; }; then
16930   ac_cv_lib_dld_dld_link=yes
16931 else
16932   echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16934
16935 ac_cv_lib_dld_dld_link=no
16936 fi
16937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16938 LIBS=$ac_check_lib_save_LIBS
16939 fi
16940 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16941 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16942 if test $ac_cv_lib_dld_dld_link = yes; then
16943   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16944 fi
16945
16946
16947 fi
16948
16949
16950 fi
16951
16952
16953 fi
16954
16955
16956 fi
16957
16958
16959 fi
16960
16961     ;;
16962   esac
16963
16964   if test "x$lt_cv_dlopen" != xno; then
16965     enable_dlopen=yes
16966   else
16967     enable_dlopen=no
16968   fi
16969
16970   case $lt_cv_dlopen in
16971   dlopen)
16972     save_CPPFLAGS="$CPPFLAGS"
16973     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16974
16975     save_LDFLAGS="$LDFLAGS"
16976     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16977
16978     save_LIBS="$LIBS"
16979     LIBS="$lt_cv_dlopen_libs $LIBS"
16980
16981     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16982 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16983 if test "${lt_cv_dlopen_self+set}" = set; then
16984   echo $ECHO_N "(cached) $ECHO_C" >&6
16985 else
16986           if test "$cross_compiling" = yes; then :
16987   lt_cv_dlopen_self=cross
16988 else
16989   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16990   lt_status=$lt_dlunknown
16991   cat > conftest.$ac_ext <<EOF
16992 #line 16992 "configure"
16993 #include "confdefs.h"
16994
16995 #if HAVE_DLFCN_H
16996 #include <dlfcn.h>
16997 #endif
16998
16999 #include <stdio.h>
17000
17001 #ifdef RTLD_GLOBAL
17002 #  define LT_DLGLOBAL           RTLD_GLOBAL
17003 #else
17004 #  ifdef DL_GLOBAL
17005 #    define LT_DLGLOBAL         DL_GLOBAL
17006 #  else
17007 #    define LT_DLGLOBAL         0
17008 #  endif
17009 #endif
17010
17011 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17012    find out it does not work in some platform. */
17013 #ifndef LT_DLLAZY_OR_NOW
17014 #  ifdef RTLD_LAZY
17015 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17016 #  else
17017 #    ifdef DL_LAZY
17018 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17019 #    else
17020 #      ifdef RTLD_NOW
17021 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17022 #      else
17023 #        ifdef DL_NOW
17024 #          define LT_DLLAZY_OR_NOW      DL_NOW
17025 #        else
17026 #          define LT_DLLAZY_OR_NOW      0
17027 #        endif
17028 #      endif
17029 #    endif
17030 #  endif
17031 #endif
17032
17033 #ifdef __cplusplus
17034 extern "C" void exit (int);
17035 #endif
17036
17037 void fnord() { int i=42;}
17038 int main ()
17039 {
17040   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17041   int status = $lt_dlunknown;
17042
17043   if (self)
17044     {
17045       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17046       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17047       /* dlclose (self); */
17048     }
17049
17050     exit (status);
17051 }
17052 EOF
17053   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17054   (eval $ac_link) 2>&5
17055   ac_status=$?
17056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17058     (./conftest; exit; ) 2>/dev/null
17059     lt_status=$?
17060     case x$lt_status in
17061       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17062       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17063       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17064     esac
17065   else :
17066     # compilation failed
17067     lt_cv_dlopen_self=no
17068   fi
17069 fi
17070 rm -fr conftest*
17071
17072
17073 fi
17074 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17075 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17076
17077     if test "x$lt_cv_dlopen_self" = xyes; then
17078       LDFLAGS="$LDFLAGS $link_static_flag"
17079       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17080 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17081 if test "${lt_cv_dlopen_self_static+set}" = set; then
17082   echo $ECHO_N "(cached) $ECHO_C" >&6
17083 else
17084           if test "$cross_compiling" = yes; then :
17085   lt_cv_dlopen_self_static=cross
17086 else
17087   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17088   lt_status=$lt_dlunknown
17089   cat > conftest.$ac_ext <<EOF
17090 #line 17090 "configure"
17091 #include "confdefs.h"
17092
17093 #if HAVE_DLFCN_H
17094 #include <dlfcn.h>
17095 #endif
17096
17097 #include <stdio.h>
17098
17099 #ifdef RTLD_GLOBAL
17100 #  define LT_DLGLOBAL           RTLD_GLOBAL
17101 #else
17102 #  ifdef DL_GLOBAL
17103 #    define LT_DLGLOBAL         DL_GLOBAL
17104 #  else
17105 #    define LT_DLGLOBAL         0
17106 #  endif
17107 #endif
17108
17109 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17110    find out it does not work in some platform. */
17111 #ifndef LT_DLLAZY_OR_NOW
17112 #  ifdef RTLD_LAZY
17113 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17114 #  else
17115 #    ifdef DL_LAZY
17116 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17117 #    else
17118 #      ifdef RTLD_NOW
17119 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17120 #      else
17121 #        ifdef DL_NOW
17122 #          define LT_DLLAZY_OR_NOW      DL_NOW
17123 #        else
17124 #          define LT_DLLAZY_OR_NOW      0
17125 #        endif
17126 #      endif
17127 #    endif
17128 #  endif
17129 #endif
17130
17131 #ifdef __cplusplus
17132 extern "C" void exit (int);
17133 #endif
17134
17135 void fnord() { int i=42;}
17136 int main ()
17137 {
17138   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17139   int status = $lt_dlunknown;
17140
17141   if (self)
17142     {
17143       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17144       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17145       /* dlclose (self); */
17146     }
17147
17148     exit (status);
17149 }
17150 EOF
17151   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17152   (eval $ac_link) 2>&5
17153   ac_status=$?
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17156     (./conftest; exit; ) 2>/dev/null
17157     lt_status=$?
17158     case x$lt_status in
17159       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17160       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17161       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17162     esac
17163   else :
17164     # compilation failed
17165     lt_cv_dlopen_self_static=no
17166   fi
17167 fi
17168 rm -fr conftest*
17169
17170
17171 fi
17172 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17173 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17174     fi
17175
17176     CPPFLAGS="$save_CPPFLAGS"
17177     LDFLAGS="$save_LDFLAGS"
17178     LIBS="$save_LIBS"
17179     ;;
17180   esac
17181
17182   case $lt_cv_dlopen_self in
17183   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17184   *) enable_dlopen_self=unknown ;;
17185   esac
17186
17187   case $lt_cv_dlopen_self_static in
17188   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17189   *) enable_dlopen_self_static=unknown ;;
17190   esac
17191 fi
17192
17193
17194 # The else clause should only fire when bootstrapping the
17195 # libtool distribution, otherwise you forgot to ship ltmain.sh
17196 # with your package, and you will get complaints that there are
17197 # no rules to generate ltmain.sh.
17198 if test -f "$ltmain"; then
17199   # See if we are running on zsh, and set the options which allow our commands through
17200   # without removal of \ escapes.
17201   if test -n "${ZSH_VERSION+set}" ; then
17202     setopt NO_GLOB_SUBST
17203   fi
17204   # Now quote all the things that may contain metacharacters while being
17205   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17206   # variables and quote the copies for generation of the libtool script.
17207   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17208     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17209     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17210     deplibs_check_method reload_flag reload_cmds need_locks \
17211     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17212     lt_cv_sys_global_symbol_to_c_name_address \
17213     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17214     old_postinstall_cmds old_postuninstall_cmds \
17215     compiler_GCJ \
17216     CC_GCJ \
17217     LD_GCJ \
17218     lt_prog_compiler_wl_GCJ \
17219     lt_prog_compiler_pic_GCJ \
17220     lt_prog_compiler_static_GCJ \
17221     lt_prog_compiler_no_builtin_flag_GCJ \
17222     export_dynamic_flag_spec_GCJ \
17223     thread_safe_flag_spec_GCJ \
17224     whole_archive_flag_spec_GCJ \
17225     enable_shared_with_static_runtimes_GCJ \
17226     old_archive_cmds_GCJ \
17227     old_archive_from_new_cmds_GCJ \
17228     predep_objects_GCJ \
17229     postdep_objects_GCJ \
17230     predeps_GCJ \
17231     postdeps_GCJ \
17232     compiler_lib_search_path_GCJ \
17233     archive_cmds_GCJ \
17234     archive_expsym_cmds_GCJ \
17235     postinstall_cmds_GCJ \
17236     postuninstall_cmds_GCJ \
17237     old_archive_from_expsyms_cmds_GCJ \
17238     allow_undefined_flag_GCJ \
17239     no_undefined_flag_GCJ \
17240     export_symbols_cmds_GCJ \
17241     hardcode_libdir_flag_spec_GCJ \
17242     hardcode_libdir_flag_spec_ld_GCJ \
17243     hardcode_libdir_separator_GCJ \
17244     hardcode_automatic_GCJ \
17245     module_cmds_GCJ \
17246     module_expsym_cmds_GCJ \
17247     lt_cv_prog_compiler_c_o_GCJ \
17248     exclude_expsyms_GCJ \
17249     include_expsyms_GCJ; do
17250
17251     case $var in
17252     old_archive_cmds_GCJ | \
17253     old_archive_from_new_cmds_GCJ | \
17254     archive_cmds_GCJ | \
17255     archive_expsym_cmds_GCJ | \
17256     module_cmds_GCJ | \
17257     module_expsym_cmds_GCJ | \
17258     old_archive_from_expsyms_cmds_GCJ | \
17259     export_symbols_cmds_GCJ | \
17260     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17261     postinstall_cmds | postuninstall_cmds | \
17262     old_postinstall_cmds | old_postuninstall_cmds | \
17263     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17264       # Double-quote double-evaled strings.
17265       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17266       ;;
17267     *)
17268       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17269       ;;
17270     esac
17271   done
17272
17273   case $lt_echo in
17274   *'\$0 --fallback-echo"')
17275     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17276     ;;
17277   esac
17278
17279 cfgfile="$ofile"
17280
17281   cat <<__EOF__ >> "$cfgfile"
17282 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17283
17284 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17285
17286 # Shell to use when invoking shell scripts.
17287 SHELL=$lt_SHELL
17288
17289 # Whether or not to build shared libraries.
17290 build_libtool_libs=$enable_shared
17291
17292 # Whether or not to build static libraries.
17293 build_old_libs=$enable_static
17294
17295 # Whether or not to add -lc for building shared libraries.
17296 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17297
17298 # Whether or not to disallow shared libs when runtime libs are static
17299 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17300
17301 # Whether or not to optimize for fast installation.
17302 fast_install=$enable_fast_install
17303
17304 # The host system.
17305 host_alias=$host_alias
17306 host=$host
17307
17308 # An echo program that does not interpret backslashes.
17309 echo=$lt_echo
17310
17311 # The archiver.
17312 AR=$lt_AR
17313 AR_FLAGS=$lt_AR_FLAGS
17314
17315 # A C compiler.
17316 LTCC=$lt_LTCC
17317
17318 # A language-specific compiler.
17319 CC=$lt_compiler_GCJ
17320
17321 # Is the compiler the GNU C compiler?
17322 with_gcc=$GCC_GCJ
17323
17324 # An ERE matcher.
17325 EGREP=$lt_EGREP
17326
17327 # The linker used to build libraries.
17328 LD=$lt_LD_GCJ
17329
17330 # Whether we need hard or soft links.
17331 LN_S=$lt_LN_S
17332
17333 # A BSD-compatible nm program.
17334 NM=$lt_NM
17335
17336 # A symbol stripping program
17337 STRIP=$STRIP
17338
17339 # Used to examine libraries when file_magic_cmd begins "file"
17340 MAGIC_CMD=$MAGIC_CMD
17341
17342 # Used on cygwin: DLL creation program.
17343 DLLTOOL="$DLLTOOL"
17344
17345 # Used on cygwin: object dumper.
17346 OBJDUMP="$OBJDUMP"
17347
17348 # Used on cygwin: assembler.
17349 AS="$AS"
17350
17351 # The name of the directory that contains temporary libtool files.
17352 objdir=$objdir
17353
17354 # How to create reloadable object files.
17355 reload_flag=$lt_reload_flag
17356 reload_cmds=$lt_reload_cmds
17357
17358 # How to pass a linker flag through the compiler.
17359 wl=$lt_lt_prog_compiler_wl_GCJ
17360
17361 # Object file suffix (normally "o").
17362 objext="$ac_objext"
17363
17364 # Old archive suffix (normally "a").
17365 libext="$libext"
17366
17367 # Shared library suffix (normally ".so").
17368 shrext='$shrext'
17369
17370 # Executable file suffix (normally "").
17371 exeext="$exeext"
17372
17373 # Additional compiler flags for building library objects.
17374 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17375 pic_mode=$pic_mode
17376
17377 # What is the maximum length of a command?
17378 max_cmd_len=$lt_cv_sys_max_cmd_len
17379
17380 # Does compiler simultaneously support -c and -o options?
17381 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17382
17383 # Must we lock files when doing compilation ?
17384 need_locks=$lt_need_locks
17385
17386 # Do we need the lib prefix for modules?
17387 need_lib_prefix=$need_lib_prefix
17388
17389 # Do we need a version for libraries?
17390 need_version=$need_version
17391
17392 # Whether dlopen is supported.
17393 dlopen_support=$enable_dlopen
17394
17395 # Whether dlopen of programs is supported.
17396 dlopen_self=$enable_dlopen_self
17397
17398 # Whether dlopen of statically linked programs is supported.
17399 dlopen_self_static=$enable_dlopen_self_static
17400
17401 # Compiler flag to prevent dynamic linking.
17402 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17403
17404 # Compiler flag to turn off builtin functions.
17405 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17406
17407 # Compiler flag to allow reflexive dlopens.
17408 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17409
17410 # Compiler flag to generate shared objects directly from archives.
17411 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17412
17413 # Compiler flag to generate thread-safe objects.
17414 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17415
17416 # Library versioning type.
17417 version_type=$version_type
17418
17419 # Format of library name prefix.
17420 libname_spec=$lt_libname_spec
17421
17422 # List of archive names.  First name is the real one, the rest are links.
17423 # The last name is the one that the linker finds with -lNAME.
17424 library_names_spec=$lt_library_names_spec
17425
17426 # The coded name of the library, if different from the real name.
17427 soname_spec=$lt_soname_spec
17428
17429 # Commands used to build and install an old-style archive.
17430 RANLIB=$lt_RANLIB
17431 old_archive_cmds=$lt_old_archive_cmds_GCJ
17432 old_postinstall_cmds=$lt_old_postinstall_cmds
17433 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17434
17435 # Create an old-style archive from a shared archive.
17436 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17437
17438 # Create a temporary old-style archive to link instead of a shared archive.
17439 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17440
17441 # Commands used to build and install a shared archive.
17442 archive_cmds=$lt_archive_cmds_GCJ
17443 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17444 postinstall_cmds=$lt_postinstall_cmds
17445 postuninstall_cmds=$lt_postuninstall_cmds
17446
17447 # Commands used to build a loadable module (assumed same as above if empty)
17448 module_cmds=$lt_module_cmds_GCJ
17449 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17450
17451 # Commands to strip libraries.
17452 old_striplib=$lt_old_striplib
17453 striplib=$lt_striplib
17454
17455 # Dependencies to place before the objects being linked to create a
17456 # shared library.
17457 predep_objects=$lt_predep_objects_GCJ
17458
17459 # Dependencies to place after the objects being linked to create a
17460 # shared library.
17461 postdep_objects=$lt_postdep_objects_GCJ
17462
17463 # Dependencies to place before the objects being linked to create a
17464 # shared library.
17465 predeps=$lt_predeps_GCJ
17466
17467 # Dependencies to place after the objects being linked to create a
17468 # shared library.
17469 postdeps=$lt_postdeps_GCJ
17470
17471 # The library search path used internally by the compiler when linking
17472 # a shared library.
17473 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17474
17475 # Method to check whether dependent libraries are shared objects.
17476 deplibs_check_method=$lt_deplibs_check_method
17477
17478 # Command to use when deplibs_check_method == file_magic.
17479 file_magic_cmd=$lt_file_magic_cmd
17480
17481 # Flag that allows shared libraries with undefined symbols to be built.
17482 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17483
17484 # Flag that forces no undefined symbols.
17485 no_undefined_flag=$lt_no_undefined_flag_GCJ
17486
17487 # Commands used to finish a libtool library installation in a directory.
17488 finish_cmds=$lt_finish_cmds
17489
17490 # Same as above, but a single script fragment to be evaled but not shown.
17491 finish_eval=$lt_finish_eval
17492
17493 # Take the output of nm and produce a listing of raw symbols and C names.
17494 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17495
17496 # Transform the output of nm in a proper C declaration
17497 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17498
17499 # Transform the output of nm in a C name address pair
17500 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17501
17502 # This is the shared library runtime path variable.
17503 runpath_var=$runpath_var
17504
17505 # This is the shared library path variable.
17506 shlibpath_var=$shlibpath_var
17507
17508 # Is shlibpath searched before the hard-coded library search path?
17509 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17510
17511 # How to hardcode a shared library path into an executable.
17512 hardcode_action=$hardcode_action_GCJ
17513
17514 # Whether we should hardcode library paths into libraries.
17515 hardcode_into_libs=$hardcode_into_libs
17516
17517 # Flag to hardcode \$libdir into a binary during linking.
17518 # This must work even if \$libdir does not exist.
17519 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17520
17521 # If ld is used when linking, flag to hardcode \$libdir into
17522 # a binary during linking. This must work even if \$libdir does
17523 # not exist.
17524 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17525
17526 # Whether we need a single -rpath flag with a separated argument.
17527 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17528
17529 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17530 # resulting binary.
17531 hardcode_direct=$hardcode_direct_GCJ
17532
17533 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17534 # resulting binary.
17535 hardcode_minus_L=$hardcode_minus_L_GCJ
17536
17537 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17538 # the resulting binary.
17539 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17540
17541 # Set to yes if building a shared library automatically hardcodes DIR into the library
17542 # and all subsequent libraries and executables linked against it.
17543 hardcode_automatic=$hardcode_automatic_GCJ
17544
17545 # Variables whose values should be saved in libtool wrapper scripts and
17546 # restored at relink time.
17547 variables_saved_for_relink="$variables_saved_for_relink"
17548
17549 # Whether libtool must link a program against all its dependency libraries.
17550 link_all_deplibs=$link_all_deplibs_GCJ
17551
17552 # Compile-time system search path for libraries
17553 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17554
17555 # Run-time system search path for libraries
17556 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17557
17558 # Fix the shell variable \$srcfile for the compiler.
17559 fix_srcfile_path="$fix_srcfile_path_GCJ"
17560
17561 # Set to yes if exported symbols are required.
17562 always_export_symbols=$always_export_symbols_GCJ
17563
17564 # The commands to list exported symbols.
17565 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17566
17567 # The commands to extract the exported symbol list from a shared archive.
17568 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17569
17570 # Symbols that should not be listed in the preloaded symbols.
17571 exclude_expsyms=$lt_exclude_expsyms_GCJ
17572
17573 # Symbols that must always be exported.
17574 include_expsyms=$lt_include_expsyms_GCJ
17575
17576 # ### END LIBTOOL TAG CONFIG: $tagname
17577
17578 __EOF__
17579
17580
17581 else
17582   # If there is no Makefile yet, we rely on a make rule to execute
17583   # `config.status --recheck' to rerun these tests and create the
17584   # libtool script then.
17585   test -f Makefile && make "$ltmain"
17586 fi
17587
17588
17589 ac_ext=c
17590 ac_cpp='$CPP $CPPFLAGS'
17591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17594
17595 CC="$lt_save_CC"
17596
17597         else
17598           tagname=""
17599         fi
17600         ;;
17601
17602       RC)
17603
17604
17605
17606 # Source file extension for RC test sources.
17607 ac_ext=rc
17608
17609 # Object file extension for compiled RC test sources.
17610 objext=o
17611 objext_RC=$objext
17612
17613 # Code to be used in simple compile tests
17614 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17615
17616 # Code to be used in simple link tests
17617 lt_simple_link_test_code="$lt_simple_compile_test_code"
17618
17619 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17620
17621 # If no C compiler was specified, use CC.
17622 LTCC=${LTCC-"$CC"}
17623
17624 # Allow CC to be a program name with arguments.
17625 compiler=$CC
17626
17627
17628 # Allow CC to be a program name with arguments.
17629 lt_save_CC="$CC"
17630 CC=${RC-"windres"}
17631 compiler=$CC
17632 compiler_RC=$CC
17633 lt_cv_prog_compiler_c_o_RC=yes
17634
17635 # The else clause should only fire when bootstrapping the
17636 # libtool distribution, otherwise you forgot to ship ltmain.sh
17637 # with your package, and you will get complaints that there are
17638 # no rules to generate ltmain.sh.
17639 if test -f "$ltmain"; then
17640   # See if we are running on zsh, and set the options which allow our commands through
17641   # without removal of \ escapes.
17642   if test -n "${ZSH_VERSION+set}" ; then
17643     setopt NO_GLOB_SUBST
17644   fi
17645   # Now quote all the things that may contain metacharacters while being
17646   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17647   # variables and quote the copies for generation of the libtool script.
17648   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17649     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17650     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17651     deplibs_check_method reload_flag reload_cmds need_locks \
17652     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17653     lt_cv_sys_global_symbol_to_c_name_address \
17654     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17655     old_postinstall_cmds old_postuninstall_cmds \
17656     compiler_RC \
17657     CC_RC \
17658     LD_RC \
17659     lt_prog_compiler_wl_RC \
17660     lt_prog_compiler_pic_RC \
17661     lt_prog_compiler_static_RC \
17662     lt_prog_compiler_no_builtin_flag_RC \
17663     export_dynamic_flag_spec_RC \
17664     thread_safe_flag_spec_RC \
17665     whole_archive_flag_spec_RC \
17666     enable_shared_with_static_runtimes_RC \
17667     old_archive_cmds_RC \
17668     old_archive_from_new_cmds_RC \
17669     predep_objects_RC \
17670     postdep_objects_RC \
17671     predeps_RC \
17672     postdeps_RC \
17673     compiler_lib_search_path_RC \
17674     archive_cmds_RC \
17675     archive_expsym_cmds_RC \
17676     postinstall_cmds_RC \
17677     postuninstall_cmds_RC \
17678     old_archive_from_expsyms_cmds_RC \
17679     allow_undefined_flag_RC \
17680     no_undefined_flag_RC \
17681     export_symbols_cmds_RC \
17682     hardcode_libdir_flag_spec_RC \
17683     hardcode_libdir_flag_spec_ld_RC \
17684     hardcode_libdir_separator_RC \
17685     hardcode_automatic_RC \
17686     module_cmds_RC \
17687     module_expsym_cmds_RC \
17688     lt_cv_prog_compiler_c_o_RC \
17689     exclude_expsyms_RC \
17690     include_expsyms_RC; do
17691
17692     case $var in
17693     old_archive_cmds_RC | \
17694     old_archive_from_new_cmds_RC | \
17695     archive_cmds_RC | \
17696     archive_expsym_cmds_RC | \
17697     module_cmds_RC | \
17698     module_expsym_cmds_RC | \
17699     old_archive_from_expsyms_cmds_RC | \
17700     export_symbols_cmds_RC | \
17701     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17702     postinstall_cmds | postuninstall_cmds | \
17703     old_postinstall_cmds | old_postuninstall_cmds | \
17704     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17705       # Double-quote double-evaled strings.
17706       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17707       ;;
17708     *)
17709       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17710       ;;
17711     esac
17712   done
17713
17714   case $lt_echo in
17715   *'\$0 --fallback-echo"')
17716     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17717     ;;
17718   esac
17719
17720 cfgfile="$ofile"
17721
17722   cat <<__EOF__ >> "$cfgfile"
17723 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17724
17725 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17726
17727 # Shell to use when invoking shell scripts.
17728 SHELL=$lt_SHELL
17729
17730 # Whether or not to build shared libraries.
17731 build_libtool_libs=$enable_shared
17732
17733 # Whether or not to build static libraries.
17734 build_old_libs=$enable_static
17735
17736 # Whether or not to add -lc for building shared libraries.
17737 build_libtool_need_lc=$archive_cmds_need_lc_RC
17738
17739 # Whether or not to disallow shared libs when runtime libs are static
17740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17741
17742 # Whether or not to optimize for fast installation.
17743 fast_install=$enable_fast_install
17744
17745 # The host system.
17746 host_alias=$host_alias
17747 host=$host
17748
17749 # An echo program that does not interpret backslashes.
17750 echo=$lt_echo
17751
17752 # The archiver.
17753 AR=$lt_AR
17754 AR_FLAGS=$lt_AR_FLAGS
17755
17756 # A C compiler.
17757 LTCC=$lt_LTCC
17758
17759 # A language-specific compiler.
17760 CC=$lt_compiler_RC
17761
17762 # Is the compiler the GNU C compiler?
17763 with_gcc=$GCC_RC
17764
17765 # An ERE matcher.
17766 EGREP=$lt_EGREP
17767
17768 # The linker used to build libraries.
17769 LD=$lt_LD_RC
17770
17771 # Whether we need hard or soft links.
17772 LN_S=$lt_LN_S
17773
17774 # A BSD-compatible nm program.
17775 NM=$lt_NM
17776
17777 # A symbol stripping program
17778 STRIP=$STRIP
17779
17780 # Used to examine libraries when file_magic_cmd begins "file"
17781 MAGIC_CMD=$MAGIC_CMD
17782
17783 # Used on cygwin: DLL creation program.
17784 DLLTOOL="$DLLTOOL"
17785
17786 # Used on cygwin: object dumper.
17787 OBJDUMP="$OBJDUMP"
17788
17789 # Used on cygwin: assembler.
17790 AS="$AS"
17791
17792 # The name of the directory that contains temporary libtool files.
17793 objdir=$objdir
17794
17795 # How to create reloadable object files.
17796 reload_flag=$lt_reload_flag
17797 reload_cmds=$lt_reload_cmds
17798
17799 # How to pass a linker flag through the compiler.
17800 wl=$lt_lt_prog_compiler_wl_RC
17801
17802 # Object file suffix (normally "o").
17803 objext="$ac_objext"
17804
17805 # Old archive suffix (normally "a").
17806 libext="$libext"
17807
17808 # Shared library suffix (normally ".so").
17809 shrext='$shrext'
17810
17811 # Executable file suffix (normally "").
17812 exeext="$exeext"
17813
17814 # Additional compiler flags for building library objects.
17815 pic_flag=$lt_lt_prog_compiler_pic_RC
17816 pic_mode=$pic_mode
17817
17818 # What is the maximum length of a command?
17819 max_cmd_len=$lt_cv_sys_max_cmd_len
17820
17821 # Does compiler simultaneously support -c and -o options?
17822 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17823
17824 # Must we lock files when doing compilation ?
17825 need_locks=$lt_need_locks
17826
17827 # Do we need the lib prefix for modules?
17828 need_lib_prefix=$need_lib_prefix
17829
17830 # Do we need a version for libraries?
17831 need_version=$need_version
17832
17833 # Whether dlopen is supported.
17834 dlopen_support=$enable_dlopen
17835
17836 # Whether dlopen of programs is supported.
17837 dlopen_self=$enable_dlopen_self
17838
17839 # Whether dlopen of statically linked programs is supported.
17840 dlopen_self_static=$enable_dlopen_self_static
17841
17842 # Compiler flag to prevent dynamic linking.
17843 link_static_flag=$lt_lt_prog_compiler_static_RC
17844
17845 # Compiler flag to turn off builtin functions.
17846 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17847
17848 # Compiler flag to allow reflexive dlopens.
17849 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17850
17851 # Compiler flag to generate shared objects directly from archives.
17852 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17853
17854 # Compiler flag to generate thread-safe objects.
17855 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17856
17857 # Library versioning type.
17858 version_type=$version_type
17859
17860 # Format of library name prefix.
17861 libname_spec=$lt_libname_spec
17862
17863 # List of archive names.  First name is the real one, the rest are links.
17864 # The last name is the one that the linker finds with -lNAME.
17865 library_names_spec=$lt_library_names_spec
17866
17867 # The coded name of the library, if different from the real name.
17868 soname_spec=$lt_soname_spec
17869
17870 # Commands used to build and install an old-style archive.
17871 RANLIB=$lt_RANLIB
17872 old_archive_cmds=$lt_old_archive_cmds_RC
17873 old_postinstall_cmds=$lt_old_postinstall_cmds
17874 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17875
17876 # Create an old-style archive from a shared archive.
17877 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17878
17879 # Create a temporary old-style archive to link instead of a shared archive.
17880 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17881
17882 # Commands used to build and install a shared archive.
17883 archive_cmds=$lt_archive_cmds_RC
17884 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17885 postinstall_cmds=$lt_postinstall_cmds
17886 postuninstall_cmds=$lt_postuninstall_cmds
17887
17888 # Commands used to build a loadable module (assumed same as above if empty)
17889 module_cmds=$lt_module_cmds_RC
17890 module_expsym_cmds=$lt_module_expsym_cmds_RC
17891
17892 # Commands to strip libraries.
17893 old_striplib=$lt_old_striplib
17894 striplib=$lt_striplib
17895
17896 # Dependencies to place before the objects being linked to create a
17897 # shared library.
17898 predep_objects=$lt_predep_objects_RC
17899
17900 # Dependencies to place after the objects being linked to create a
17901 # shared library.
17902 postdep_objects=$lt_postdep_objects_RC
17903
17904 # Dependencies to place before the objects being linked to create a
17905 # shared library.
17906 predeps=$lt_predeps_RC
17907
17908 # Dependencies to place after the objects being linked to create a
17909 # shared library.
17910 postdeps=$lt_postdeps_RC
17911
17912 # The library search path used internally by the compiler when linking
17913 # a shared library.
17914 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17915
17916 # Method to check whether dependent libraries are shared objects.
17917 deplibs_check_method=$lt_deplibs_check_method
17918
17919 # Command to use when deplibs_check_method == file_magic.
17920 file_magic_cmd=$lt_file_magic_cmd
17921
17922 # Flag that allows shared libraries with undefined symbols to be built.
17923 allow_undefined_flag=$lt_allow_undefined_flag_RC
17924
17925 # Flag that forces no undefined symbols.
17926 no_undefined_flag=$lt_no_undefined_flag_RC
17927
17928 # Commands used to finish a libtool library installation in a directory.
17929 finish_cmds=$lt_finish_cmds
17930
17931 # Same as above, but a single script fragment to be evaled but not shown.
17932 finish_eval=$lt_finish_eval
17933
17934 # Take the output of nm and produce a listing of raw symbols and C names.
17935 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17936
17937 # Transform the output of nm in a proper C declaration
17938 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17939
17940 # Transform the output of nm in a C name address pair
17941 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17942
17943 # This is the shared library runtime path variable.
17944 runpath_var=$runpath_var
17945
17946 # This is the shared library path variable.
17947 shlibpath_var=$shlibpath_var
17948
17949 # Is shlibpath searched before the hard-coded library search path?
17950 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17951
17952 # How to hardcode a shared library path into an executable.
17953 hardcode_action=$hardcode_action_RC
17954
17955 # Whether we should hardcode library paths into libraries.
17956 hardcode_into_libs=$hardcode_into_libs
17957
17958 # Flag to hardcode \$libdir into a binary during linking.
17959 # This must work even if \$libdir does not exist.
17960 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17961
17962 # If ld is used when linking, flag to hardcode \$libdir into
17963 # a binary during linking. This must work even if \$libdir does
17964 # not exist.
17965 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17966
17967 # Whether we need a single -rpath flag with a separated argument.
17968 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17969
17970 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17971 # resulting binary.
17972 hardcode_direct=$hardcode_direct_RC
17973
17974 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17975 # resulting binary.
17976 hardcode_minus_L=$hardcode_minus_L_RC
17977
17978 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17979 # the resulting binary.
17980 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17981
17982 # Set to yes if building a shared library automatically hardcodes DIR into the library
17983 # and all subsequent libraries and executables linked against it.
17984 hardcode_automatic=$hardcode_automatic_RC
17985
17986 # Variables whose values should be saved in libtool wrapper scripts and
17987 # restored at relink time.
17988 variables_saved_for_relink="$variables_saved_for_relink"
17989
17990 # Whether libtool must link a program against all its dependency libraries.
17991 link_all_deplibs=$link_all_deplibs_RC
17992
17993 # Compile-time system search path for libraries
17994 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17995
17996 # Run-time system search path for libraries
17997 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17998
17999 # Fix the shell variable \$srcfile for the compiler.
18000 fix_srcfile_path="$fix_srcfile_path_RC"
18001
18002 # Set to yes if exported symbols are required.
18003 always_export_symbols=$always_export_symbols_RC
18004
18005 # The commands to list exported symbols.
18006 export_symbols_cmds=$lt_export_symbols_cmds_RC
18007
18008 # The commands to extract the exported symbol list from a shared archive.
18009 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18010
18011 # Symbols that should not be listed in the preloaded symbols.
18012 exclude_expsyms=$lt_exclude_expsyms_RC
18013
18014 # Symbols that must always be exported.
18015 include_expsyms=$lt_include_expsyms_RC
18016
18017 # ### END LIBTOOL TAG CONFIG: $tagname
18018
18019 __EOF__
18020
18021
18022 else
18023   # If there is no Makefile yet, we rely on a make rule to execute
18024   # `config.status --recheck' to rerun these tests and create the
18025   # libtool script then.
18026   test -f Makefile && make "$ltmain"
18027 fi
18028
18029
18030 ac_ext=c
18031 ac_cpp='$CPP $CPPFLAGS'
18032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18035
18036 CC="$lt_save_CC"
18037
18038         ;;
18039
18040       *)
18041         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18042 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18043    { (exit 1); exit 1; }; }
18044         ;;
18045       esac
18046
18047       # Append the new tag name to the list of available tags.
18048       if test -n "$tagname" ; then
18049       available_tags="$available_tags $tagname"
18050     fi
18051     fi
18052   done
18053   IFS="$lt_save_ifs"
18054
18055   # Now substitute the updated list of available tags.
18056   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18057     mv "${ofile}T" "$ofile"
18058     chmod +x "$ofile"
18059   else
18060     rm -f "${ofile}T"
18061     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18062 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18063    { (exit 1); exit 1; }; }
18064   fi
18065 fi
18066
18067
18068
18069 # This can be used to rebuild libtool when needed
18070 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18071
18072 # Always use our own libtool.
18073 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18074
18075 # Prevent multiple expansion
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097 # Extract the first word of "pwd", so it can be a program name with args.
18098 set dummy pwd; ac_word=$2
18099 echo "$as_me:$LINENO: checking for $ac_word" >&5
18100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18101 if test "${ac_cv_path_RPWD+set}" = set; then
18102   echo $ECHO_N "(cached) $ECHO_C" >&6
18103 else
18104   case $RPWD in
18105   [\\/]* | ?:[\\/]*)
18106   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18107   ;;
18108   *)
18109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18110 for as_dir in $PATH
18111 do
18112   IFS=$as_save_IFS
18113   test -z "$as_dir" && as_dir=.
18114   for ac_exec_ext in '' $ac_executable_extensions; do
18115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18116     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18118     break 2
18119   fi
18120 done
18121 done
18122
18123   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18124   ;;
18125 esac
18126 fi
18127 RPWD=$ac_cv_path_RPWD
18128
18129 if test -n "$RPWD"; then
18130   echo "$as_me:$LINENO: result: $RPWD" >&5
18131 echo "${ECHO_T}$RPWD" >&6
18132 else
18133   echo "$as_me:$LINENO: result: no" >&5
18134 echo "${ECHO_T}no" >&6
18135 fi
18136
18137 if test ${RPWD} = "false"
18138 then
18139         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18140 echo "$as_me: error: pwd required but not found" >&2;}
18141    { (exit 1); exit 1; }; }
18142 fi
18143
18144 # Extract the first word of "ar", so it can be a program name with args.
18145 set dummy ar; ac_word=$2
18146 echo "$as_me:$LINENO: checking for $ac_word" >&5
18147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18148 if test "${ac_cv_path_AR+set}" = set; then
18149   echo $ECHO_N "(cached) $ECHO_C" >&6
18150 else
18151   case $AR in
18152   [\\/]* | ?:[\\/]*)
18153   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18154   ;;
18155   *)
18156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18157 for as_dir in $PATH
18158 do
18159   IFS=$as_save_IFS
18160   test -z "$as_dir" && as_dir=.
18161   for ac_exec_ext in '' $ac_executable_extensions; do
18162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18163     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18165     break 2
18166   fi
18167 done
18168 done
18169
18170   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18171   ;;
18172 esac
18173 fi
18174 AR=$ac_cv_path_AR
18175
18176 if test -n "$AR"; then
18177   echo "$as_me:$LINENO: result: $AR" >&5
18178 echo "${ECHO_T}$AR" >&6
18179 else
18180   echo "$as_me:$LINENO: result: no" >&5
18181 echo "${ECHO_T}no" >&6
18182 fi
18183
18184 if test ${AR} = "false"
18185 then
18186         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18187 echo "$as_me: error: ar required but not found" >&2;}
18188    { (exit 1); exit 1; }; }
18189 fi
18190
18191 # Extract the first word of "sed", so it can be a program name with args.
18192 set dummy sed; ac_word=$2
18193 echo "$as_me:$LINENO: checking for $ac_word" >&5
18194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18195 if test "${ac_cv_path_SED+set}" = set; then
18196   echo $ECHO_N "(cached) $ECHO_C" >&6
18197 else
18198   case $SED in
18199   [\\/]* | ?:[\\/]*)
18200   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18201   ;;
18202   *)
18203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18204 for as_dir in $PATH
18205 do
18206   IFS=$as_save_IFS
18207   test -z "$as_dir" && as_dir=.
18208   for ac_exec_ext in '' $ac_executable_extensions; do
18209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18210     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18212     break 2
18213   fi
18214 done
18215 done
18216
18217   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18218   ;;
18219 esac
18220 fi
18221 SED=$ac_cv_path_SED
18222
18223 if test -n "$SED"; then
18224   echo "$as_me:$LINENO: result: $SED" >&5
18225 echo "${ECHO_T}$SED" >&6
18226 else
18227   echo "$as_me:$LINENO: result: no" >&5
18228 echo "${ECHO_T}no" >&6
18229 fi
18230
18231 if test ${SED} = "false"
18232 then
18233         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18234 echo "$as_me: error: sed required but not found" >&2;}
18235    { (exit 1); exit 1; }; }
18236 fi
18237
18238 # Extract the first word of "rm", so it can be a program name with args.
18239 set dummy rm; ac_word=$2
18240 echo "$as_me:$LINENO: checking for $ac_word" >&5
18241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18242 if test "${ac_cv_path_RM+set}" = set; then
18243   echo $ECHO_N "(cached) $ECHO_C" >&6
18244 else
18245   case $RM in
18246   [\\/]* | ?:[\\/]*)
18247   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18248   ;;
18249   *)
18250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18251 for as_dir in $PATH
18252 do
18253   IFS=$as_save_IFS
18254   test -z "$as_dir" && as_dir=.
18255   for ac_exec_ext in '' $ac_executable_extensions; do
18256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18257     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18259     break 2
18260   fi
18261 done
18262 done
18263
18264   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18265   ;;
18266 esac
18267 fi
18268 RM=$ac_cv_path_RM
18269
18270 if test -n "$RM"; then
18271   echo "$as_me:$LINENO: result: $RM" >&5
18272 echo "${ECHO_T}$RM" >&6
18273 else
18274   echo "$as_me:$LINENO: result: no" >&5
18275 echo "${ECHO_T}no" >&6
18276 fi
18277
18278 if test ${RM} = "false"
18279 then
18280         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18281 echo "$as_me: error: rm required but not found" >&2;}
18282    { (exit 1); exit 1; }; }
18283 fi
18284
18285 # Extract the first word of "echo", so it can be a program name with args.
18286 set dummy echo; ac_word=$2
18287 echo "$as_me:$LINENO: checking for $ac_word" >&5
18288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18289 if test "${ac_cv_path_ECHO+set}" = set; then
18290   echo $ECHO_N "(cached) $ECHO_C" >&6
18291 else
18292   case $ECHO in
18293   [\\/]* | ?:[\\/]*)
18294   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18295   ;;
18296   *)
18297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18298 for as_dir in $PATH
18299 do
18300   IFS=$as_save_IFS
18301   test -z "$as_dir" && as_dir=.
18302   for ac_exec_ext in '' $ac_executable_extensions; do
18303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18304     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18306     break 2
18307   fi
18308 done
18309 done
18310
18311   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18312   ;;
18313 esac
18314 fi
18315 ECHO=$ac_cv_path_ECHO
18316
18317 if test -n "$ECHO"; then
18318   echo "$as_me:$LINENO: result: $ECHO" >&5
18319 echo "${ECHO_T}$ECHO" >&6
18320 else
18321   echo "$as_me:$LINENO: result: no" >&5
18322 echo "${ECHO_T}no" >&6
18323 fi
18324
18325 if test ${ECHO} = "false"
18326 then
18327         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18328 echo "$as_me: error: echo required but not found" >&2;}
18329    { (exit 1); exit 1; }; }
18330 fi
18331
18332 # Extract the first word of "mkdir", so it can be a program name with args.
18333 set dummy mkdir; ac_word=$2
18334 echo "$as_me:$LINENO: checking for $ac_word" >&5
18335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18336 if test "${ac_cv_path_MKDIR+set}" = set; then
18337   echo $ECHO_N "(cached) $ECHO_C" >&6
18338 else
18339   case $MKDIR in
18340   [\\/]* | ?:[\\/]*)
18341   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18342   ;;
18343   *)
18344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18345 for as_dir in $PATH
18346 do
18347   IFS=$as_save_IFS
18348   test -z "$as_dir" && as_dir=.
18349   for ac_exec_ext in '' $ac_executable_extensions; do
18350   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18351     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18353     break 2
18354   fi
18355 done
18356 done
18357
18358   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18359   ;;
18360 esac
18361 fi
18362 MKDIR=$ac_cv_path_MKDIR
18363
18364 if test -n "$MKDIR"; then
18365   echo "$as_me:$LINENO: result: $MKDIR" >&5
18366 echo "${ECHO_T}$MKDIR" >&6
18367 else
18368   echo "$as_me:$LINENO: result: no" >&5
18369 echo "${ECHO_T}no" >&6
18370 fi
18371
18372 if test ${MKDIR} = "false"
18373 then
18374         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18375 echo "$as_me: error: mkdir required but not found" >&2;}
18376    { (exit 1); exit 1; }; }
18377 fi
18378
18379 # Extract the first word of "date", so it can be a program name with args.
18380 set dummy date; ac_word=$2
18381 echo "$as_me:$LINENO: checking for $ac_word" >&5
18382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18383 if test "${ac_cv_path_DATE+set}" = set; then
18384   echo $ECHO_N "(cached) $ECHO_C" >&6
18385 else
18386   case $DATE in
18387   [\\/]* | ?:[\\/]*)
18388   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18389   ;;
18390   *)
18391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18392 for as_dir in $PATH
18393 do
18394   IFS=$as_save_IFS
18395   test -z "$as_dir" && as_dir=.
18396   for ac_exec_ext in '' $ac_executable_extensions; do
18397   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18398     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18400     break 2
18401   fi
18402 done
18403 done
18404
18405   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18406   ;;
18407 esac
18408 fi
18409 DATE=$ac_cv_path_DATE
18410
18411 if test -n "$DATE"; then
18412   echo "$as_me:$LINENO: result: $DATE" >&5
18413 echo "${ECHO_T}$DATE" >&6
18414 else
18415   echo "$as_me:$LINENO: result: no" >&5
18416 echo "${ECHO_T}no" >&6
18417 fi
18418
18419 if test ${DATE} = "false"
18420 then
18421         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18422 echo "$as_me: error: date required but not found" >&2;}
18423    { (exit 1); exit 1; }; }
18424 fi
18425
18426 # Extract the first word of "mv", so it can be a program name with args.
18427 set dummy mv; ac_word=$2
18428 echo "$as_me:$LINENO: checking for $ac_word" >&5
18429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18430 if test "${ac_cv_path_MV+set}" = set; then
18431   echo $ECHO_N "(cached) $ECHO_C" >&6
18432 else
18433   case $MV in
18434   [\\/]* | ?:[\\/]*)
18435   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18436   ;;
18437   *)
18438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18439 for as_dir in $PATH
18440 do
18441   IFS=$as_save_IFS
18442   test -z "$as_dir" && as_dir=.
18443   for ac_exec_ext in '' $ac_executable_extensions; do
18444   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18445     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18447     break 2
18448   fi
18449 done
18450 done
18451
18452   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18453   ;;
18454 esac
18455 fi
18456 MV=$ac_cv_path_MV
18457
18458 if test -n "$MV"; then
18459   echo "$as_me:$LINENO: result: $MV" >&5
18460 echo "${ECHO_T}$MV" >&6
18461 else
18462   echo "$as_me:$LINENO: result: no" >&5
18463 echo "${ECHO_T}no" >&6
18464 fi
18465
18466 if test ${MV} = "false"
18467 then
18468         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18469 echo "$as_me: error: mv required but not found" >&2;}
18470    { (exit 1); exit 1; }; }
18471 fi
18472
18473 # Extract the first word of "dot", so it can be a program name with args.
18474 set dummy dot; ac_word=$2
18475 echo "$as_me:$LINENO: checking for $ac_word" >&5
18476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18477 if test "${ac_cv_path_DOT+set}" = set; then
18478   echo $ECHO_N "(cached) $ECHO_C" >&6
18479 else
18480   case $DOT in
18481   [\\/]* | ?:[\\/]*)
18482   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18483   ;;
18484   *)
18485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18486 for as_dir in $PATH
18487 do
18488   IFS=$as_save_IFS
18489   test -z "$as_dir" && as_dir=.
18490   for ac_exec_ext in '' $ac_executable_extensions; do
18491   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18492     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18494     break 2
18495   fi
18496 done
18497 done
18498
18499   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18500   ;;
18501 esac
18502 fi
18503 DOT=$ac_cv_path_DOT
18504
18505 if test -n "$DOT"; then
18506   echo "$as_me:$LINENO: result: $DOT" >&5
18507 echo "${ECHO_T}$DOT" >&6
18508 else
18509   echo "$as_me:$LINENO: result: no" >&5
18510 echo "${ECHO_T}no" >&6
18511 fi
18512
18513
18514 # Extract the first word of "etags", so it can be a program name with args.
18515 set dummy etags; ac_word=$2
18516 echo "$as_me:$LINENO: checking for $ac_word" >&5
18517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18518 if test "${ac_cv_path_ETAGS+set}" = set; then
18519   echo $ECHO_N "(cached) $ECHO_C" >&6
18520 else
18521   case $ETAGS in
18522   [\\/]* | ?:[\\/]*)
18523   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18524   ;;
18525   *)
18526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18527 for as_dir in $PATH
18528 do
18529   IFS=$as_save_IFS
18530   test -z "$as_dir" && as_dir=.
18531   for ac_exec_ext in '' $ac_executable_extensions; do
18532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18533     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18535     break 2
18536   fi
18537 done
18538 done
18539
18540   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18541   ;;
18542 esac
18543 fi
18544 ETAGS=$ac_cv_path_ETAGS
18545
18546 if test -n "$ETAGS"; then
18547   echo "$as_me:$LINENO: result: $ETAGS" >&5
18548 echo "${ECHO_T}$ETAGS" >&6
18549 else
18550   echo "$as_me:$LINENO: result: no" >&5
18551 echo "${ECHO_T}no" >&6
18552 fi
18553
18554
18555 # Extract the first word of "python", so it can be a program name with args.
18556 set dummy python; ac_word=$2
18557 echo "$as_me:$LINENO: checking for $ac_word" >&5
18558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18559 if test "${ac_cv_path_PYTHON+set}" = set; then
18560   echo $ECHO_N "(cached) $ECHO_C" >&6
18561 else
18562   case $PYTHON in
18563   [\\/]* | ?:[\\/]*)
18564   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18565   ;;
18566   *)
18567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18568 for as_dir in $PATH
18569 do
18570   IFS=$as_save_IFS
18571   test -z "$as_dir" && as_dir=.
18572   for ac_exec_ext in '' $ac_executable_extensions; do
18573   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18574     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18576     break 2
18577   fi
18578 done
18579 done
18580
18581   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18582   ;;
18583 esac
18584 fi
18585 PYTHON=$ac_cv_path_PYTHON
18586
18587 if test -n "$PYTHON"; then
18588   echo "$as_me:$LINENO: result: $PYTHON" >&5
18589 echo "${ECHO_T}$PYTHON" >&6
18590 else
18591   echo "$as_me:$LINENO: result: no" >&5
18592 echo "${ECHO_T}no" >&6
18593 fi
18594
18595 if test ${PYTHON} = "false"
18596 then
18597         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18598 echo "$as_me: WARNING: python required but not found" >&2;}
18599 fi
18600
18601 # Extract the first word of "qmtest", so it can be a program name with args.
18602 set dummy qmtest; ac_word=$2
18603 echo "$as_me:$LINENO: checking for $ac_word" >&5
18604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18605 if test "${ac_cv_path_QMTEST+set}" = set; then
18606   echo $ECHO_N "(cached) $ECHO_C" >&6
18607 else
18608   case $QMTEST in
18609   [\\/]* | ?:[\\/]*)
18610   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18611   ;;
18612   *)
18613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18614 for as_dir in $PATH
18615 do
18616   IFS=$as_save_IFS
18617   test -z "$as_dir" && as_dir=.
18618   for ac_exec_ext in '' $ac_executable_extensions; do
18619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18620     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18622     break 2
18623   fi
18624 done
18625 done
18626
18627   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
18628   ;;
18629 esac
18630 fi
18631 QMTEST=$ac_cv_path_QMTEST
18632
18633 if test -n "$QMTEST"; then
18634   echo "$as_me:$LINENO: result: $QMTEST" >&5
18635 echo "${ECHO_T}$QMTEST" >&6
18636 else
18637   echo "$as_me:$LINENO: result: no" >&5
18638 echo "${ECHO_T}no" >&6
18639 fi
18640
18641 if test ${QMTEST} = "false"
18642 then
18643         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
18644 echo "$as_me: WARNING: qmtest required but not found" >&2;}
18645 fi
18646
18647 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18648 pymajor=`echo $pyversion | cut -d. -f1`
18649 pyminor=`echo $pyversion | cut -d. -f2`
18650
18651 if test "$pymajor" -ge "2"
18652 then
18653         if test "$pymajor" -eq "2"
18654         then
18655                 if test "$pyminor" -lt "2"
18656                 then
18657                         { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
18658 echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
18659                 fi
18660         fi
18661 else
18662         { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
18663 echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
18664 fi
18665
18666
18667
18668
18669
18670 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18671 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18672 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18673   echo $ECHO_N "(cached) $ECHO_C" >&6
18674 else
18675   ac_check_lib_save_LIBS=$LIBS
18676 LIBS="-lelf  $LIBS"
18677 cat >conftest.$ac_ext <<_ACEOF
18678 #line $LINENO "configure"
18679 /* confdefs.h.  */
18680 _ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h.  */
18684
18685 /* Override any gcc2 internal prototype to avoid an error.  */
18686 #ifdef __cplusplus
18687 extern "C"
18688 #endif
18689 /* We use char because int might match the return type of a gcc2
18690    builtin and then its argument prototype would still apply.  */
18691 char elf_begin ();
18692 int
18693 main ()
18694 {
18695 elf_begin ();
18696   ;
18697   return 0;
18698 }
18699 _ACEOF
18700 rm -f conftest.$ac_objext conftest$ac_exeext
18701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18702   (eval $ac_link) 2>&5
18703   ac_status=$?
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); } &&
18706          { ac_try='test -s conftest$ac_exeext'
18707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708   (eval $ac_try) 2>&5
18709   ac_status=$?
18710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711   (exit $ac_status); }; }; then
18712   ac_cv_lib_elf_elf_begin=yes
18713 else
18714   echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18716
18717 ac_cv_lib_elf_elf_begin=no
18718 fi
18719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18720 LIBS=$ac_check_lib_save_LIBS
18721 fi
18722 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18723 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18724 if test $ac_cv_lib_elf_elf_begin = yes; then
18725   cat >>confdefs.h <<_ACEOF
18726 #define HAVE_LIBELF 1
18727 _ACEOF
18728
18729   LIBS="-lelf $LIBS"
18730
18731 fi
18732
18733
18734 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18735 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18736 if test "${ac_cv_search_dlopen+set}" = set; then
18737   echo $ECHO_N "(cached) $ECHO_C" >&6
18738 else
18739   ac_func_search_save_LIBS=$LIBS
18740 ac_cv_search_dlopen=no
18741 cat >conftest.$ac_ext <<_ACEOF
18742 #line $LINENO "configure"
18743 /* confdefs.h.  */
18744 _ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h.  */
18748
18749 /* Override any gcc2 internal prototype to avoid an error.  */
18750 #ifdef __cplusplus
18751 extern "C"
18752 #endif
18753 /* We use char because int might match the return type of a gcc2
18754    builtin and then its argument prototype would still apply.  */
18755 char dlopen ();
18756 int
18757 main ()
18758 {
18759 dlopen ();
18760   ;
18761   return 0;
18762 }
18763 _ACEOF
18764 rm -f conftest.$ac_objext conftest$ac_exeext
18765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18766   (eval $ac_link) 2>&5
18767   ac_status=$?
18768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769   (exit $ac_status); } &&
18770          { ac_try='test -s conftest$ac_exeext'
18771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772   (eval $ac_try) 2>&5
18773   ac_status=$?
18774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775   (exit $ac_status); }; }; then
18776   ac_cv_search_dlopen="none required"
18777 else
18778   echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.$ac_ext >&5
18780
18781 fi
18782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18783 if test "$ac_cv_search_dlopen" = no; then
18784   for ac_lib in dl; do
18785     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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
18794 /* Override any gcc2 internal prototype to avoid an error.  */
18795 #ifdef __cplusplus
18796 extern "C"
18797 #endif
18798 /* We use char because int might match the return type of a gcc2
18799    builtin and then its argument prototype would still apply.  */
18800 char dlopen ();
18801 int
18802 main ()
18803 {
18804 dlopen ();
18805   ;
18806   return 0;
18807 }
18808 _ACEOF
18809 rm -f conftest.$ac_objext conftest$ac_exeext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18811   (eval $ac_link) 2>&5
18812   ac_status=$?
18813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814   (exit $ac_status); } &&
18815          { ac_try='test -s conftest$ac_exeext'
18816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817   (eval $ac_try) 2>&5
18818   ac_status=$?
18819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820   (exit $ac_status); }; }; then
18821   ac_cv_search_dlopen="-l$ac_lib"
18822 break
18823 else
18824   echo "$as_me: failed program was:" >&5
18825 sed 's/^/| /' conftest.$ac_ext >&5
18826
18827 fi
18828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18829   done
18830 fi
18831 LIBS=$ac_func_search_save_LIBS
18832 fi
18833 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18834 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18835 if test "$ac_cv_search_dlopen" != no; then
18836   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18837
18838 cat >>confdefs.h <<\_ACEOF
18839 #define HAVE_DLOPEN 1
18840 _ACEOF
18841
18842 else
18843   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18844 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18845 fi
18846
18847
18848 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18849 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18850 if test "${ac_cv_search_mallinfo+set}" = set; then
18851   echo $ECHO_N "(cached) $ECHO_C" >&6
18852 else
18853   ac_func_search_save_LIBS=$LIBS
18854 ac_cv_search_mallinfo=no
18855 cat >conftest.$ac_ext <<_ACEOF
18856 #line $LINENO "configure"
18857 /* confdefs.h.  */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h.  */
18862
18863 /* Override any gcc2 internal prototype to avoid an error.  */
18864 #ifdef __cplusplus
18865 extern "C"
18866 #endif
18867 /* We use char because int might match the return type of a gcc2
18868    builtin and then its argument prototype would still apply.  */
18869 char mallinfo ();
18870 int
18871 main ()
18872 {
18873 mallinfo ();
18874   ;
18875   return 0;
18876 }
18877 _ACEOF
18878 rm -f conftest.$ac_objext conftest$ac_exeext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18880   (eval $ac_link) 2>&5
18881   ac_status=$?
18882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883   (exit $ac_status); } &&
18884          { ac_try='test -s conftest$ac_exeext'
18885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18886   (eval $ac_try) 2>&5
18887   ac_status=$?
18888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889   (exit $ac_status); }; }; then
18890   ac_cv_search_mallinfo="none required"
18891 else
18892   echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18894
18895 fi
18896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18897 if test "$ac_cv_search_mallinfo" = no; then
18898   for ac_lib in malloc; do
18899     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18900     cat >conftest.$ac_ext <<_ACEOF
18901 #line $LINENO "configure"
18902 /* confdefs.h.  */
18903 _ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h.  */
18907
18908 /* Override any gcc2 internal prototype to avoid an error.  */
18909 #ifdef __cplusplus
18910 extern "C"
18911 #endif
18912 /* We use char because int might match the return type of a gcc2
18913    builtin and then its argument prototype would still apply.  */
18914 char mallinfo ();
18915 int
18916 main ()
18917 {
18918 mallinfo ();
18919   ;
18920   return 0;
18921 }
18922 _ACEOF
18923 rm -f conftest.$ac_objext conftest$ac_exeext
18924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18925   (eval $ac_link) 2>&5
18926   ac_status=$?
18927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928   (exit $ac_status); } &&
18929          { ac_try='test -s conftest$ac_exeext'
18930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18931   (eval $ac_try) 2>&5
18932   ac_status=$?
18933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934   (exit $ac_status); }; }; then
18935   ac_cv_search_mallinfo="-l$ac_lib"
18936 break
18937 else
18938   echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18940
18941 fi
18942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18943   done
18944 fi
18945 LIBS=$ac_func_search_save_LIBS
18946 fi
18947 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18948 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18949 if test "$ac_cv_search_mallinfo" != no; then
18950   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18951
18952 cat >>confdefs.h <<\_ACEOF
18953 #define HAVE_MALLINFO 1
18954 _ACEOF
18955
18956 fi
18957
18958
18959 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18960 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18961 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18962   echo $ECHO_N "(cached) $ECHO_C" >&6
18963 else
18964   ac_func_search_save_LIBS=$LIBS
18965 ac_cv_search_pthread_mutex_lock=no
18966 cat >conftest.$ac_ext <<_ACEOF
18967 #line $LINENO "configure"
18968 /* confdefs.h.  */
18969 _ACEOF
18970 cat confdefs.h >>conftest.$ac_ext
18971 cat >>conftest.$ac_ext <<_ACEOF
18972 /* end confdefs.h.  */
18973
18974 /* Override any gcc2 internal prototype to avoid an error.  */
18975 #ifdef __cplusplus
18976 extern "C"
18977 #endif
18978 /* We use char because int might match the return type of a gcc2
18979    builtin and then its argument prototype would still apply.  */
18980 char pthread_mutex_lock ();
18981 int
18982 main ()
18983 {
18984 pthread_mutex_lock ();
18985   ;
18986   return 0;
18987 }
18988 _ACEOF
18989 rm -f conftest.$ac_objext conftest$ac_exeext
18990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18991   (eval $ac_link) 2>&5
18992   ac_status=$?
18993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994   (exit $ac_status); } &&
18995          { ac_try='test -s conftest$ac_exeext'
18996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997   (eval $ac_try) 2>&5
18998   ac_status=$?
18999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000   (exit $ac_status); }; }; then
19001   ac_cv_search_pthread_mutex_lock="none required"
19002 else
19003   echo "$as_me: failed program was:" >&5
19004 sed 's/^/| /' conftest.$ac_ext >&5
19005
19006 fi
19007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19008 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19009   for ac_lib in pthread; do
19010     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19011     cat >conftest.$ac_ext <<_ACEOF
19012 #line $LINENO "configure"
19013 /* confdefs.h.  */
19014 _ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h.  */
19018
19019 /* Override any gcc2 internal prototype to avoid an error.  */
19020 #ifdef __cplusplus
19021 extern "C"
19022 #endif
19023 /* We use char because int might match the return type of a gcc2
19024    builtin and then its argument prototype would still apply.  */
19025 char pthread_mutex_lock ();
19026 int
19027 main ()
19028 {
19029 pthread_mutex_lock ();
19030   ;
19031   return 0;
19032 }
19033 _ACEOF
19034 rm -f conftest.$ac_objext conftest$ac_exeext
19035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19036   (eval $ac_link) 2>&5
19037   ac_status=$?
19038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039   (exit $ac_status); } &&
19040          { ac_try='test -s conftest$ac_exeext'
19041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042   (eval $ac_try) 2>&5
19043   ac_status=$?
19044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045   (exit $ac_status); }; }; then
19046   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19047 break
19048 else
19049   echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19051
19052 fi
19053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19054   done
19055 fi
19056 LIBS=$ac_func_search_save_LIBS
19057 fi
19058 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19059 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19060 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19061   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19062
19063 cat >>confdefs.h <<\_ACEOF
19064 #define HAVE_PTHREAD_MUTEX_LOCK 1
19065 _ACEOF
19066
19067 fi
19068
19069
19070
19071 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19072 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19073 if test "${ac_cv_header_stdc+set}" = set; then
19074   echo $ECHO_N "(cached) $ECHO_C" >&6
19075 else
19076   cat >conftest.$ac_ext <<_ACEOF
19077 #line $LINENO "configure"
19078 /* confdefs.h.  */
19079 _ACEOF
19080 cat confdefs.h >>conftest.$ac_ext
19081 cat >>conftest.$ac_ext <<_ACEOF
19082 /* end confdefs.h.  */
19083 #include <stdlib.h>
19084 #include <stdarg.h>
19085 #include <string.h>
19086 #include <float.h>
19087
19088 int
19089 main ()
19090 {
19091
19092   ;
19093   return 0;
19094 }
19095 _ACEOF
19096 rm -f conftest.$ac_objext
19097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19098   (eval $ac_compile) 2>&5
19099   ac_status=$?
19100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101   (exit $ac_status); } &&
19102          { ac_try='test -s conftest.$ac_objext'
19103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104   (eval $ac_try) 2>&5
19105   ac_status=$?
19106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107   (exit $ac_status); }; }; then
19108   ac_cv_header_stdc=yes
19109 else
19110   echo "$as_me: failed program was:" >&5
19111 sed 's/^/| /' conftest.$ac_ext >&5
19112
19113 ac_cv_header_stdc=no
19114 fi
19115 rm -f conftest.$ac_objext conftest.$ac_ext
19116
19117 if test $ac_cv_header_stdc = yes; then
19118   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19119   cat >conftest.$ac_ext <<_ACEOF
19120 #line $LINENO "configure"
19121 /* confdefs.h.  */
19122 _ACEOF
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h.  */
19126 #include <string.h>
19127
19128 _ACEOF
19129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19130   $EGREP "memchr" >/dev/null 2>&1; then
19131   :
19132 else
19133   ac_cv_header_stdc=no
19134 fi
19135 rm -f conftest*
19136
19137 fi
19138
19139 if test $ac_cv_header_stdc = yes; then
19140   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19141   cat >conftest.$ac_ext <<_ACEOF
19142 #line $LINENO "configure"
19143 /* confdefs.h.  */
19144 _ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h.  */
19148 #include <stdlib.h>
19149
19150 _ACEOF
19151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19152   $EGREP "free" >/dev/null 2>&1; then
19153   :
19154 else
19155   ac_cv_header_stdc=no
19156 fi
19157 rm -f conftest*
19158
19159 fi
19160
19161 if test $ac_cv_header_stdc = yes; then
19162   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19163   if test "$cross_compiling" = yes; then
19164   :
19165 else
19166   cat >conftest.$ac_ext <<_ACEOF
19167 #line $LINENO "configure"
19168 /* confdefs.h.  */
19169 _ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h.  */
19173 #include <ctype.h>
19174 #if ((' ' & 0x0FF) == 0x020)
19175 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19176 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19177 #else
19178 # define ISLOWER(c) \
19179                    (('a' <= (c) && (c) <= 'i') \
19180                      || ('j' <= (c) && (c) <= 'r') \
19181                      || ('s' <= (c) && (c) <= 'z'))
19182 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19183 #endif
19184
19185 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19186 int
19187 main ()
19188 {
19189   int i;
19190   for (i = 0; i < 256; i++)
19191     if (XOR (islower (i), ISLOWER (i))
19192         || toupper (i) != TOUPPER (i))
19193       exit(2);
19194   exit (0);
19195 }
19196 _ACEOF
19197 rm -f conftest$ac_exeext
19198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19199   (eval $ac_link) 2>&5
19200   ac_status=$?
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204   (eval $ac_try) 2>&5
19205   ac_status=$?
19206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207   (exit $ac_status); }; }; then
19208   :
19209 else
19210   echo "$as_me: program exited with status $ac_status" >&5
19211 echo "$as_me: failed program was:" >&5
19212 sed 's/^/| /' conftest.$ac_ext >&5
19213
19214 ( exit $ac_status )
19215 ac_cv_header_stdc=no
19216 fi
19217 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19218 fi
19219 fi
19220 fi
19221 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19222 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19223 if test $ac_cv_header_stdc = yes; then
19224
19225 cat >>confdefs.h <<\_ACEOF
19226 #define STDC_HEADERS 1
19227 _ACEOF
19228
19229 fi
19230
19231 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19232 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19233 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19234   echo $ECHO_N "(cached) $ECHO_C" >&6
19235 else
19236   cat >conftest.$ac_ext <<_ACEOF
19237 #line $LINENO "configure"
19238 /* confdefs.h.  */
19239 _ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h.  */
19243 #include <sys/types.h>
19244 #include <sys/wait.h>
19245 #ifndef WEXITSTATUS
19246 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19247 #endif
19248 #ifndef WIFEXITED
19249 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19250 #endif
19251
19252 int
19253 main ()
19254 {
19255   int s;
19256   wait (&s);
19257   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19258   ;
19259   return 0;
19260 }
19261 _ACEOF
19262 rm -f conftest.$ac_objext
19263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19264   (eval $ac_compile) 2>&5
19265   ac_status=$?
19266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267   (exit $ac_status); } &&
19268          { ac_try='test -s conftest.$ac_objext'
19269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19270   (eval $ac_try) 2>&5
19271   ac_status=$?
19272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273   (exit $ac_status); }; }; then
19274   ac_cv_header_sys_wait_h=yes
19275 else
19276   echo "$as_me: failed program was:" >&5
19277 sed 's/^/| /' conftest.$ac_ext >&5
19278
19279 ac_cv_header_sys_wait_h=no
19280 fi
19281 rm -f conftest.$ac_objext conftest.$ac_ext
19282 fi
19283 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19284 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19285 if test $ac_cv_header_sys_wait_h = yes; then
19286
19287 cat >>confdefs.h <<\_ACEOF
19288 #define HAVE_SYS_WAIT_H 1
19289 _ACEOF
19290
19291 fi
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19303 do
19304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19306   echo "$as_me:$LINENO: checking for $ac_header" >&5
19307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19309   echo $ECHO_N "(cached) $ECHO_C" >&6
19310 fi
19311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19313 else
19314   # Is the header compilable?
19315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19317 cat >conftest.$ac_ext <<_ACEOF
19318 #line $LINENO "configure"
19319 /* confdefs.h.  */
19320 _ACEOF
19321 cat confdefs.h >>conftest.$ac_ext
19322 cat >>conftest.$ac_ext <<_ACEOF
19323 /* end confdefs.h.  */
19324 $ac_includes_default
19325 #include <$ac_header>
19326 _ACEOF
19327 rm -f conftest.$ac_objext
19328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19329   (eval $ac_compile) 2>&5
19330   ac_status=$?
19331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332   (exit $ac_status); } &&
19333          { ac_try='test -s conftest.$ac_objext'
19334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335   (eval $ac_try) 2>&5
19336   ac_status=$?
19337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338   (exit $ac_status); }; }; then
19339   ac_header_compiler=yes
19340 else
19341   echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19343
19344 ac_header_compiler=no
19345 fi
19346 rm -f conftest.$ac_objext conftest.$ac_ext
19347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19348 echo "${ECHO_T}$ac_header_compiler" >&6
19349
19350 # Is the header present?
19351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19353 cat >conftest.$ac_ext <<_ACEOF
19354 #line $LINENO "configure"
19355 /* confdefs.h.  */
19356 _ACEOF
19357 cat confdefs.h >>conftest.$ac_ext
19358 cat >>conftest.$ac_ext <<_ACEOF
19359 /* end confdefs.h.  */
19360 #include <$ac_header>
19361 _ACEOF
19362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19364   ac_status=$?
19365   grep -v '^ *+' conftest.er1 >conftest.err
19366   rm -f conftest.er1
19367   cat conftest.err >&5
19368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369   (exit $ac_status); } >/dev/null; then
19370   if test -s conftest.err; then
19371     ac_cpp_err=$ac_c_preproc_warn_flag
19372   else
19373     ac_cpp_err=
19374   fi
19375 else
19376   ac_cpp_err=yes
19377 fi
19378 if test -z "$ac_cpp_err"; then
19379   ac_header_preproc=yes
19380 else
19381   echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384   ac_header_preproc=no
19385 fi
19386 rm -f conftest.err conftest.$ac_ext
19387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19388 echo "${ECHO_T}$ac_header_preproc" >&6
19389
19390 # So?  What about this header?
19391 case $ac_header_compiler:$ac_header_preproc in
19392   yes:no )
19393     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19397     (
19398       cat <<\_ASBOX
19399 ## ------------------------------------ ##
19400 ## Report this to bug-autoconf@gnu.org. ##
19401 ## ------------------------------------ ##
19402 _ASBOX
19403     ) |
19404       sed "s/^/$as_me: WARNING:     /" >&2
19405     ;;
19406   no:yes )
19407     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19409     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19413     (
19414       cat <<\_ASBOX
19415 ## ------------------------------------ ##
19416 ## Report this to bug-autoconf@gnu.org. ##
19417 ## ------------------------------------ ##
19418 _ASBOX
19419     ) |
19420       sed "s/^/$as_me: WARNING:     /" >&2
19421     ;;
19422 esac
19423 echo "$as_me:$LINENO: checking for $ac_header" >&5
19424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19426   echo $ECHO_N "(cached) $ECHO_C" >&6
19427 else
19428   eval "$as_ac_Header=$ac_header_preproc"
19429 fi
19430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19432
19433 fi
19434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19435   cat >>confdefs.h <<_ACEOF
19436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19437 _ACEOF
19438
19439 fi
19440
19441 done
19442
19443
19444
19445
19446
19447 for ac_header in malloc.h sys/mman.h sys/resource.h
19448 do
19449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19451   echo "$as_me:$LINENO: checking for $ac_header" >&5
19452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19454   echo $ECHO_N "(cached) $ECHO_C" >&6
19455 fi
19456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19458 else
19459   # Is the header compilable?
19460 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19462 cat >conftest.$ac_ext <<_ACEOF
19463 #line $LINENO "configure"
19464 /* confdefs.h.  */
19465 _ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h.  */
19469 $ac_includes_default
19470 #include <$ac_header>
19471 _ACEOF
19472 rm -f conftest.$ac_objext
19473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19474   (eval $ac_compile) 2>&5
19475   ac_status=$?
19476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477   (exit $ac_status); } &&
19478          { ac_try='test -s conftest.$ac_objext'
19479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19480   (eval $ac_try) 2>&5
19481   ac_status=$?
19482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483   (exit $ac_status); }; }; then
19484   ac_header_compiler=yes
19485 else
19486   echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19488
19489 ac_header_compiler=no
19490 fi
19491 rm -f conftest.$ac_objext conftest.$ac_ext
19492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19493 echo "${ECHO_T}$ac_header_compiler" >&6
19494
19495 # Is the header present?
19496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19498 cat >conftest.$ac_ext <<_ACEOF
19499 #line $LINENO "configure"
19500 /* confdefs.h.  */
19501 _ACEOF
19502 cat confdefs.h >>conftest.$ac_ext
19503 cat >>conftest.$ac_ext <<_ACEOF
19504 /* end confdefs.h.  */
19505 #include <$ac_header>
19506 _ACEOF
19507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19508   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19509   ac_status=$?
19510   grep -v '^ *+' conftest.er1 >conftest.err
19511   rm -f conftest.er1
19512   cat conftest.err >&5
19513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514   (exit $ac_status); } >/dev/null; then
19515   if test -s conftest.err; then
19516     ac_cpp_err=$ac_c_preproc_warn_flag
19517   else
19518     ac_cpp_err=
19519   fi
19520 else
19521   ac_cpp_err=yes
19522 fi
19523 if test -z "$ac_cpp_err"; then
19524   ac_header_preproc=yes
19525 else
19526   echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19528
19529   ac_header_preproc=no
19530 fi
19531 rm -f conftest.err conftest.$ac_ext
19532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19533 echo "${ECHO_T}$ac_header_preproc" >&6
19534
19535 # So?  What about this header?
19536 case $ac_header_compiler:$ac_header_preproc in
19537   yes:no )
19538     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19542     (
19543       cat <<\_ASBOX
19544 ## ------------------------------------ ##
19545 ## Report this to bug-autoconf@gnu.org. ##
19546 ## ------------------------------------ ##
19547 _ASBOX
19548     ) |
19549       sed "s/^/$as_me: WARNING:     /" >&2
19550     ;;
19551   no:yes )
19552     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19554     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19556     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19558     (
19559       cat <<\_ASBOX
19560 ## ------------------------------------ ##
19561 ## Report this to bug-autoconf@gnu.org. ##
19562 ## ------------------------------------ ##
19563 _ASBOX
19564     ) |
19565       sed "s/^/$as_me: WARNING:     /" >&2
19566     ;;
19567 esac
19568 echo "$as_me:$LINENO: checking for $ac_header" >&5
19569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19571   echo $ECHO_N "(cached) $ECHO_C" >&6
19572 else
19573   eval "$as_ac_Header=$ac_header_preproc"
19574 fi
19575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19577
19578 fi
19579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19580   cat >>confdefs.h <<_ACEOF
19581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19582 _ACEOF
19583
19584 fi
19585
19586 done
19587
19588
19589
19590
19591 for ac_header in dlfcn.h link.h
19592 do
19593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19595   echo "$as_me:$LINENO: checking for $ac_header" >&5
19596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19598   echo $ECHO_N "(cached) $ECHO_C" >&6
19599 fi
19600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19602 else
19603   # Is the header compilable?
19604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19606 cat >conftest.$ac_ext <<_ACEOF
19607 #line $LINENO "configure"
19608 /* confdefs.h.  */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h.  */
19613 $ac_includes_default
19614 #include <$ac_header>
19615 _ACEOF
19616 rm -f conftest.$ac_objext
19617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19618   (eval $ac_compile) 2>&5
19619   ac_status=$?
19620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621   (exit $ac_status); } &&
19622          { ac_try='test -s conftest.$ac_objext'
19623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624   (eval $ac_try) 2>&5
19625   ac_status=$?
19626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); }; }; then
19628   ac_header_compiler=yes
19629 else
19630   echo "$as_me: failed program was:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19632
19633 ac_header_compiler=no
19634 fi
19635 rm -f conftest.$ac_objext conftest.$ac_ext
19636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19637 echo "${ECHO_T}$ac_header_compiler" >&6
19638
19639 # Is the header present?
19640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19642 cat >conftest.$ac_ext <<_ACEOF
19643 #line $LINENO "configure"
19644 /* confdefs.h.  */
19645 _ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h.  */
19649 #include <$ac_header>
19650 _ACEOF
19651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19653   ac_status=$?
19654   grep -v '^ *+' conftest.er1 >conftest.err
19655   rm -f conftest.er1
19656   cat conftest.err >&5
19657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658   (exit $ac_status); } >/dev/null; then
19659   if test -s conftest.err; then
19660     ac_cpp_err=$ac_c_preproc_warn_flag
19661   else
19662     ac_cpp_err=
19663   fi
19664 else
19665   ac_cpp_err=yes
19666 fi
19667 if test -z "$ac_cpp_err"; then
19668   ac_header_preproc=yes
19669 else
19670   echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.$ac_ext >&5
19672
19673   ac_header_preproc=no
19674 fi
19675 rm -f conftest.err conftest.$ac_ext
19676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19677 echo "${ECHO_T}$ac_header_preproc" >&6
19678
19679 # So?  What about this header?
19680 case $ac_header_compiler:$ac_header_preproc in
19681   yes:no )
19682     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19686     (
19687       cat <<\_ASBOX
19688 ## ------------------------------------ ##
19689 ## Report this to bug-autoconf@gnu.org. ##
19690 ## ------------------------------------ ##
19691 _ASBOX
19692     ) |
19693       sed "s/^/$as_me: WARNING:     /" >&2
19694     ;;
19695   no:yes )
19696     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19698     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19702     (
19703       cat <<\_ASBOX
19704 ## ------------------------------------ ##
19705 ## Report this to bug-autoconf@gnu.org. ##
19706 ## ------------------------------------ ##
19707 _ASBOX
19708     ) |
19709       sed "s/^/$as_me: WARNING:     /" >&2
19710     ;;
19711 esac
19712 echo "$as_me:$LINENO: checking for $ac_header" >&5
19713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19715   echo $ECHO_N "(cached) $ECHO_C" >&6
19716 else
19717   eval "$as_ac_Header=$ac_header_preproc"
19718 fi
19719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19721
19722 fi
19723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19724   cat >>confdefs.h <<_ACEOF
19725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19726 _ACEOF
19727
19728 fi
19729
19730 done
19731
19732
19733
19734 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19735 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19736 if test "${ac_cv_c_const+set}" = set; then
19737   echo $ECHO_N "(cached) $ECHO_C" >&6
19738 else
19739   cat >conftest.$ac_ext <<_ACEOF
19740 #line $LINENO "configure"
19741 /* confdefs.h.  */
19742 _ACEOF
19743 cat confdefs.h >>conftest.$ac_ext
19744 cat >>conftest.$ac_ext <<_ACEOF
19745 /* end confdefs.h.  */
19746
19747 int
19748 main ()
19749 {
19750 /* FIXME: Include the comments suggested by Paul. */
19751 #ifndef __cplusplus
19752   /* Ultrix mips cc rejects this.  */
19753   typedef int charset[2];
19754   const charset x;
19755   /* SunOS 4.1.1 cc rejects this.  */
19756   char const *const *ccp;
19757   char **p;
19758   /* NEC SVR4.0.2 mips cc rejects this.  */
19759   struct point {int x, y;};
19760   static struct point const zero = {0,0};
19761   /* AIX XL C 1.02.0.0 rejects this.
19762      It does not let you subtract one const X* pointer from another in
19763      an arm of an if-expression whose if-part is not a constant
19764      expression */
19765   const char *g = "string";
19766   ccp = &g + (g ? g-g : 0);
19767   /* HPUX 7.0 cc rejects these. */
19768   ++ccp;
19769   p = (char**) ccp;
19770   ccp = (char const *const *) p;
19771   { /* SCO 3.2v4 cc rejects this.  */
19772     char *t;
19773     char const *s = 0 ? (char *) 0 : (char const *) 0;
19774
19775     *t++ = 0;
19776   }
19777   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19778     int x[] = {25, 17};
19779     const int *foo = &x[0];
19780     ++foo;
19781   }
19782   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19783     typedef const int *iptr;
19784     iptr p = 0;
19785     ++p;
19786   }
19787   { /* AIX XL C 1.02.0.0 rejects this saying
19788        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19789     struct s { int j; const int *ap[3]; };
19790     struct s *b; b->j = 5;
19791   }
19792   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19793     const int foo = 10;
19794   }
19795 #endif
19796
19797   ;
19798   return 0;
19799 }
19800 _ACEOF
19801 rm -f conftest.$ac_objext
19802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19803   (eval $ac_compile) 2>&5
19804   ac_status=$?
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); } &&
19807          { ac_try='test -s conftest.$ac_objext'
19808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809   (eval $ac_try) 2>&5
19810   ac_status=$?
19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812   (exit $ac_status); }; }; then
19813   ac_cv_c_const=yes
19814 else
19815   echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19817
19818 ac_cv_c_const=no
19819 fi
19820 rm -f conftest.$ac_objext conftest.$ac_ext
19821 fi
19822 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19823 echo "${ECHO_T}$ac_cv_c_const" >&6
19824 if test $ac_cv_c_const = no; then
19825
19826 cat >>confdefs.h <<\_ACEOF
19827 #define const
19828 _ACEOF
19829
19830 fi
19831
19832 echo "$as_me:$LINENO: checking for inline" >&5
19833 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19834 if test "${ac_cv_c_inline+set}" = set; then
19835   echo $ECHO_N "(cached) $ECHO_C" >&6
19836 else
19837   ac_cv_c_inline=no
19838 for ac_kw in inline __inline__ __inline; do
19839   cat >conftest.$ac_ext <<_ACEOF
19840 #line $LINENO "configure"
19841 /* confdefs.h.  */
19842 _ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h.  */
19846 #ifndef __cplusplus
19847 typedef int foo_t;
19848 static $ac_kw foo_t static_foo () {return 0; }
19849 $ac_kw foo_t foo () {return 0; }
19850 #endif
19851
19852 _ACEOF
19853 rm -f conftest.$ac_objext
19854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19855   (eval $ac_compile) 2>&5
19856   ac_status=$?
19857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858   (exit $ac_status); } &&
19859          { ac_try='test -s conftest.$ac_objext'
19860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861   (eval $ac_try) 2>&5
19862   ac_status=$?
19863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864   (exit $ac_status); }; }; then
19865   ac_cv_c_inline=$ac_kw; break
19866 else
19867   echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19869
19870 fi
19871 rm -f conftest.$ac_objext conftest.$ac_ext
19872 done
19873
19874 fi
19875 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19876 echo "${ECHO_T}$ac_cv_c_inline" >&6
19877 case $ac_cv_c_inline in
19878   inline | yes) ;;
19879   no)
19880 cat >>confdefs.h <<\_ACEOF
19881 #define inline
19882 _ACEOF
19883  ;;
19884   *)  cat >>confdefs.h <<_ACEOF
19885 #define inline $ac_cv_c_inline
19886 _ACEOF
19887  ;;
19888 esac
19889
19890
19891 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19892 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19893 if test "${ac_cv_c_bigendian+set}" = set; then
19894   echo $ECHO_N "(cached) $ECHO_C" >&6
19895 else
19896   # See if sys/param.h defines the BYTE_ORDER macro.
19897 cat >conftest.$ac_ext <<_ACEOF
19898 #line $LINENO "configure"
19899 /* confdefs.h.  */
19900 _ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h.  */
19904 #include <sys/types.h>
19905 #include <sys/param.h>
19906
19907 int
19908 main ()
19909 {
19910 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19911  bogus endian macros
19912 #endif
19913
19914   ;
19915   return 0;
19916 }
19917 _ACEOF
19918 rm -f conftest.$ac_objext
19919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19920   (eval $ac_compile) 2>&5
19921   ac_status=$?
19922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923   (exit $ac_status); } &&
19924          { ac_try='test -s conftest.$ac_objext'
19925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926   (eval $ac_try) 2>&5
19927   ac_status=$?
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); }; }; then
19930   # It does; now see whether it defined to BIG_ENDIAN or not.
19931 cat >conftest.$ac_ext <<_ACEOF
19932 #line $LINENO "configure"
19933 /* confdefs.h.  */
19934 _ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h.  */
19938 #include <sys/types.h>
19939 #include <sys/param.h>
19940
19941 int
19942 main ()
19943 {
19944 #if BYTE_ORDER != BIG_ENDIAN
19945  not big endian
19946 #endif
19947
19948   ;
19949   return 0;
19950 }
19951 _ACEOF
19952 rm -f conftest.$ac_objext
19953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19954   (eval $ac_compile) 2>&5
19955   ac_status=$?
19956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957   (exit $ac_status); } &&
19958          { ac_try='test -s conftest.$ac_objext'
19959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19960   (eval $ac_try) 2>&5
19961   ac_status=$?
19962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963   (exit $ac_status); }; }; then
19964   ac_cv_c_bigendian=yes
19965 else
19966   echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19968
19969 ac_cv_c_bigendian=no
19970 fi
19971 rm -f conftest.$ac_objext conftest.$ac_ext
19972 else
19973   echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19975
19976 # It does not; compile a test program.
19977 if test "$cross_compiling" = yes; then
19978   # try to guess the endianness by grepping values into an object file
19979   ac_cv_c_bigendian=unknown
19980   cat >conftest.$ac_ext <<_ACEOF
19981 #line $LINENO "configure"
19982 /* confdefs.h.  */
19983 _ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h.  */
19987 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19988 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19989 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19990 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19991 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19992 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19993 int
19994 main ()
19995 {
19996  _ascii (); _ebcdic ();
19997   ;
19998   return 0;
19999 }
20000 _ACEOF
20001 rm -f conftest.$ac_objext
20002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20003   (eval $ac_compile) 2>&5
20004   ac_status=$?
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); } &&
20007          { ac_try='test -s conftest.$ac_objext'
20008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009   (eval $ac_try) 2>&5
20010   ac_status=$?
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); }; }; then
20013   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20014   ac_cv_c_bigendian=yes
20015 fi
20016 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20017   if test "$ac_cv_c_bigendian" = unknown; then
20018     ac_cv_c_bigendian=no
20019   else
20020     # finding both strings is unlikely to happen, but who knows?
20021     ac_cv_c_bigendian=unknown
20022   fi
20023 fi
20024 else
20025   echo "$as_me: failed program was:" >&5
20026 sed 's/^/| /' conftest.$ac_ext >&5
20027
20028 fi
20029 rm -f conftest.$ac_objext conftest.$ac_ext
20030 else
20031   cat >conftest.$ac_ext <<_ACEOF
20032 #line $LINENO "configure"
20033 /* confdefs.h.  */
20034 _ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h.  */
20038 int
20039 main ()
20040 {
20041   /* Are we little or big endian?  From Harbison&Steele.  */
20042   union
20043   {
20044     long l;
20045     char c[sizeof (long)];
20046   } u;
20047   u.l = 1;
20048   exit (u.c[sizeof (long) - 1] == 1);
20049 }
20050 _ACEOF
20051 rm -f conftest$ac_exeext
20052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20053   (eval $ac_link) 2>&5
20054   ac_status=$?
20055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20058   (eval $ac_try) 2>&5
20059   ac_status=$?
20060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061   (exit $ac_status); }; }; then
20062   ac_cv_c_bigendian=no
20063 else
20064   echo "$as_me: program exited with status $ac_status" >&5
20065 echo "$as_me: failed program was:" >&5
20066 sed 's/^/| /' conftest.$ac_ext >&5
20067
20068 ( exit $ac_status )
20069 ac_cv_c_bigendian=yes
20070 fi
20071 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20072 fi
20073 fi
20074 rm -f conftest.$ac_objext conftest.$ac_ext
20075 fi
20076 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20077 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20078 case $ac_cv_c_bigendian in
20079   yes)
20080
20081 cat >>confdefs.h <<\_ACEOF
20082 #define ENDIAN_BIG
20083 _ACEOF
20084  ;;
20085   no)
20086
20087 cat >>confdefs.h <<\_ACEOF
20088 #define ENDIAN_LITTLE
20089 _ACEOF
20090  ;;
20091   *)
20092     { { echo "$as_me:$LINENO: error: unknown endianness
20093 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20094 echo "$as_me: error: unknown endianness
20095 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20096    { (exit 1); exit 1; }; } ;;
20097 esac
20098
20099
20100 echo "$as_me:$LINENO: checking for pid_t" >&5
20101 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20102 if test "${ac_cv_type_pid_t+set}" = set; then
20103   echo $ECHO_N "(cached) $ECHO_C" >&6
20104 else
20105   cat >conftest.$ac_ext <<_ACEOF
20106 #line $LINENO "configure"
20107 /* confdefs.h.  */
20108 _ACEOF
20109 cat confdefs.h >>conftest.$ac_ext
20110 cat >>conftest.$ac_ext <<_ACEOF
20111 /* end confdefs.h.  */
20112 $ac_includes_default
20113 int
20114 main ()
20115 {
20116 if ((pid_t *) 0)
20117   return 0;
20118 if (sizeof (pid_t))
20119   return 0;
20120   ;
20121   return 0;
20122 }
20123 _ACEOF
20124 rm -f conftest.$ac_objext
20125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20126   (eval $ac_compile) 2>&5
20127   ac_status=$?
20128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129   (exit $ac_status); } &&
20130          { ac_try='test -s conftest.$ac_objext'
20131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20132   (eval $ac_try) 2>&5
20133   ac_status=$?
20134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135   (exit $ac_status); }; }; then
20136   ac_cv_type_pid_t=yes
20137 else
20138   echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20140
20141 ac_cv_type_pid_t=no
20142 fi
20143 rm -f conftest.$ac_objext conftest.$ac_ext
20144 fi
20145 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20146 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20147 if test $ac_cv_type_pid_t = yes; then
20148   :
20149 else
20150
20151 cat >>confdefs.h <<_ACEOF
20152 #define pid_t int
20153 _ACEOF
20154
20155 fi
20156
20157 echo "$as_me:$LINENO: checking for size_t" >&5
20158 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20159 if test "${ac_cv_type_size_t+set}" = set; then
20160   echo $ECHO_N "(cached) $ECHO_C" >&6
20161 else
20162   cat >conftest.$ac_ext <<_ACEOF
20163 #line $LINENO "configure"
20164 /* confdefs.h.  */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h.  */
20169 $ac_includes_default
20170 int
20171 main ()
20172 {
20173 if ((size_t *) 0)
20174   return 0;
20175 if (sizeof (size_t))
20176   return 0;
20177   ;
20178   return 0;
20179 }
20180 _ACEOF
20181 rm -f conftest.$ac_objext
20182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20183   (eval $ac_compile) 2>&5
20184   ac_status=$?
20185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186   (exit $ac_status); } &&
20187          { ac_try='test -s conftest.$ac_objext'
20188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20189   (eval $ac_try) 2>&5
20190   ac_status=$?
20191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192   (exit $ac_status); }; }; then
20193   ac_cv_type_size_t=yes
20194 else
20195   echo "$as_me: failed program was:" >&5
20196 sed 's/^/| /' conftest.$ac_ext >&5
20197
20198 ac_cv_type_size_t=no
20199 fi
20200 rm -f conftest.$ac_objext conftest.$ac_ext
20201 fi
20202 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20203 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20204 if test $ac_cv_type_size_t = yes; then
20205   :
20206 else
20207
20208 cat >>confdefs.h <<_ACEOF
20209 #define size_t unsigned
20210 _ACEOF
20211
20212 fi
20213
20214 echo "$as_me:$LINENO: checking for int64_t" >&5
20215 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20216 if test "${ac_cv_type_int64_t+set}" = set; then
20217   echo $ECHO_N "(cached) $ECHO_C" >&6
20218 else
20219   cat >conftest.$ac_ext <<_ACEOF
20220 #line $LINENO "configure"
20221 /* confdefs.h.  */
20222 _ACEOF
20223 cat confdefs.h >>conftest.$ac_ext
20224 cat >>conftest.$ac_ext <<_ACEOF
20225 /* end confdefs.h.  */
20226 $ac_includes_default
20227 int
20228 main ()
20229 {
20230 if ((int64_t *) 0)
20231   return 0;
20232 if (sizeof (int64_t))
20233   return 0;
20234   ;
20235   return 0;
20236 }
20237 _ACEOF
20238 rm -f conftest.$ac_objext
20239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20240   (eval $ac_compile) 2>&5
20241   ac_status=$?
20242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243   (exit $ac_status); } &&
20244          { ac_try='test -s conftest.$ac_objext'
20245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246   (eval $ac_try) 2>&5
20247   ac_status=$?
20248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249   (exit $ac_status); }; }; then
20250   ac_cv_type_int64_t=yes
20251 else
20252   echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20254
20255 ac_cv_type_int64_t=no
20256 fi
20257 rm -f conftest.$ac_objext conftest.$ac_ext
20258 fi
20259 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20260 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20261 if test $ac_cv_type_int64_t = yes; then
20262
20263 cat >>confdefs.h <<_ACEOF
20264 #define HAVE_INT64_T 1
20265 _ACEOF
20266
20267
20268 else
20269   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20270 echo "$as_me: error: Type int64_t required but not found" >&2;}
20271    { (exit 1); exit 1; }; }
20272 fi
20273
20274 echo "$as_me:$LINENO: checking for uint64_t" >&5
20275 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20276 if test "${ac_cv_type_uint64_t+set}" = set; then
20277   echo $ECHO_N "(cached) $ECHO_C" >&6
20278 else
20279   cat >conftest.$ac_ext <<_ACEOF
20280 #line $LINENO "configure"
20281 /* confdefs.h.  */
20282 _ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h.  */
20286 $ac_includes_default
20287 int
20288 main ()
20289 {
20290 if ((uint64_t *) 0)
20291   return 0;
20292 if (sizeof (uint64_t))
20293   return 0;
20294   ;
20295   return 0;
20296 }
20297 _ACEOF
20298 rm -f conftest.$ac_objext
20299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20300   (eval $ac_compile) 2>&5
20301   ac_status=$?
20302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303   (exit $ac_status); } &&
20304          { ac_try='test -s conftest.$ac_objext'
20305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20306   (eval $ac_try) 2>&5
20307   ac_status=$?
20308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309   (exit $ac_status); }; }; then
20310   ac_cv_type_uint64_t=yes
20311 else
20312   echo "$as_me: failed program was:" >&5
20313 sed 's/^/| /' conftest.$ac_ext >&5
20314
20315 ac_cv_type_uint64_t=no
20316 fi
20317 rm -f conftest.$ac_objext conftest.$ac_ext
20318 fi
20319 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20320 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20321 if test $ac_cv_type_uint64_t = yes; then
20322
20323 cat >>confdefs.h <<_ACEOF
20324 #define HAVE_UINT64_T 1
20325 _ACEOF
20326
20327
20328 else
20329   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20330 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20331    { (exit 1); exit 1; }; }
20332 fi
20333
20334 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20335 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20336 if test "${ac_cv_header_time+set}" = set; then
20337   echo $ECHO_N "(cached) $ECHO_C" >&6
20338 else
20339   cat >conftest.$ac_ext <<_ACEOF
20340 #line $LINENO "configure"
20341 /* confdefs.h.  */
20342 _ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h.  */
20346 #include <sys/types.h>
20347 #include <sys/time.h>
20348 #include <time.h>
20349
20350 int
20351 main ()
20352 {
20353 if ((struct tm *) 0)
20354 return 0;
20355   ;
20356   return 0;
20357 }
20358 _ACEOF
20359 rm -f conftest.$ac_objext
20360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20361   (eval $ac_compile) 2>&5
20362   ac_status=$?
20363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364   (exit $ac_status); } &&
20365          { ac_try='test -s conftest.$ac_objext'
20366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367   (eval $ac_try) 2>&5
20368   ac_status=$?
20369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370   (exit $ac_status); }; }; then
20371   ac_cv_header_time=yes
20372 else
20373   echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20375
20376 ac_cv_header_time=no
20377 fi
20378 rm -f conftest.$ac_objext conftest.$ac_ext
20379 fi
20380 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20381 echo "${ECHO_T}$ac_cv_header_time" >&6
20382 if test $ac_cv_header_time = yes; then
20383
20384 cat >>confdefs.h <<\_ACEOF
20385 #define TIME_WITH_SYS_TIME 1
20386 _ACEOF
20387
20388 fi
20389
20390 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20391 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20392 if test "${ac_cv_struct_tm+set}" = set; then
20393   echo $ECHO_N "(cached) $ECHO_C" >&6
20394 else
20395   cat >conftest.$ac_ext <<_ACEOF
20396 #line $LINENO "configure"
20397 /* confdefs.h.  */
20398 _ACEOF
20399 cat confdefs.h >>conftest.$ac_ext
20400 cat >>conftest.$ac_ext <<_ACEOF
20401 /* end confdefs.h.  */
20402 #include <sys/types.h>
20403 #include <time.h>
20404
20405 int
20406 main ()
20407 {
20408 struct tm *tp; tp->tm_sec;
20409   ;
20410   return 0;
20411 }
20412 _ACEOF
20413 rm -f conftest.$ac_objext
20414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20415   (eval $ac_compile) 2>&5
20416   ac_status=$?
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); } &&
20419          { ac_try='test -s conftest.$ac_objext'
20420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421   (eval $ac_try) 2>&5
20422   ac_status=$?
20423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424   (exit $ac_status); }; }; then
20425   ac_cv_struct_tm=time.h
20426 else
20427   echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20429
20430 ac_cv_struct_tm=sys/time.h
20431 fi
20432 rm -f conftest.$ac_objext conftest.$ac_ext
20433 fi
20434 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20435 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20436 if test $ac_cv_struct_tm = sys/time.h; then
20437
20438 cat >>confdefs.h <<\_ACEOF
20439 #define TM_IN_SYS_TIME 1
20440 _ACEOF
20441
20442 fi
20443
20444
20445
20446
20447
20448         ac_ext=c
20449 ac_cpp='$CPP $CPPFLAGS'
20450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20453
20454         if test "$cross_compiling" = yes; then
20455   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20456 See \`config.log' for more details." >&5
20457 echo "$as_me: error: cannot run test program while cross compiling
20458 See \`config.log' for more details." >&2;}
20459    { (exit 1); exit 1; }; }
20460 else
20461   cat >conftest.$ac_ext <<_ACEOF
20462 #line $LINENO "configure"
20463 /* confdefs.h.  */
20464 _ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h.  */
20468 #include <stdio.h>
20469                                  #include <stdlib.h>
20470 int
20471 main ()
20472 {
20473
20474                                  volatile double A, B;
20475                                  char Buffer[100];
20476                                  A = 1;
20477                                  A /= 10.0;
20478                                  sprintf(Buffer, "%a", A);
20479                                  B = atof(Buffer);
20480                                  if (A != B)
20481                                                          return (1);
20482                                  if (A != 0x1.999999999999ap-4)
20483                                                          return (1);
20484                                  return (0);
20485   ;
20486   return 0;
20487 }
20488 _ACEOF
20489 rm -f conftest$ac_exeext
20490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20491   (eval $ac_link) 2>&5
20492   ac_status=$?
20493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496   (eval $ac_try) 2>&5
20497   ac_status=$?
20498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499   (exit $ac_status); }; }; then
20500   ac_c_printf_a=yes
20501 else
20502   echo "$as_me: program exited with status $ac_status" >&5
20503 echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20505
20506 ( exit $ac_status )
20507 ac_c_printf_a=no
20508 fi
20509 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20510 fi
20511         ac_ext=c
20512 ac_cpp='$CPP $CPPFLAGS'
20513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20516
20517         if test "$ac_c_printf_a" = "yes"; then
20518
20519 cat >>confdefs.h <<\_ACEOF
20520 #define HAVE_PRINTF_A 1
20521 _ACEOF
20522
20523         fi
20524
20525
20526 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20527 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20528 if test "${ac_cv_cxx_namespaces+set}" = set; then
20529   echo $ECHO_N "(cached) $ECHO_C" >&6
20530 else
20531
20532
20533  ac_ext=cc
20534 ac_cpp='$CXXCPP $CPPFLAGS'
20535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20538
20539  cat >conftest.$ac_ext <<_ACEOF
20540 #line $LINENO "configure"
20541 /* confdefs.h.  */
20542 _ACEOF
20543 cat confdefs.h >>conftest.$ac_ext
20544 cat >>conftest.$ac_ext <<_ACEOF
20545 /* end confdefs.h.  */
20546 namespace Outer { namespace Inner { int i = 0; }}
20547 int
20548 main ()
20549 {
20550 using namespace Outer::Inner; return i;
20551   ;
20552   return 0;
20553 }
20554 _ACEOF
20555 rm -f conftest.$ac_objext
20556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20557   (eval $ac_compile) 2>&5
20558   ac_status=$?
20559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560   (exit $ac_status); } &&
20561          { ac_try='test -s conftest.$ac_objext'
20562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563   (eval $ac_try) 2>&5
20564   ac_status=$?
20565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566   (exit $ac_status); }; }; then
20567   ac_cv_cxx_namespaces=yes
20568 else
20569   echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20571
20572 ac_cv_cxx_namespaces=no
20573 fi
20574 rm -f conftest.$ac_objext conftest.$ac_ext
20575  ac_ext=c
20576 ac_cpp='$CPP $CPPFLAGS'
20577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20580
20581
20582 fi
20583 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20584 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20585 if test "$ac_cv_cxx_namespaces" = yes; then
20586
20587 cat >>confdefs.h <<\_ACEOF
20588 #define HAVE_NAMESPACES
20589 _ACEOF
20590
20591 fi
20592
20593 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20594 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20595 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20596   echo $ECHO_N "(cached) $ECHO_C" >&6
20597 else
20598
20599
20600
20601   ac_ext=cc
20602 ac_cpp='$CXXCPP $CPPFLAGS'
20603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20606
20607   cat >conftest.$ac_ext <<_ACEOF
20608 #line $LINENO "configure"
20609 /* confdefs.h.  */
20610 _ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h.  */
20614 #include <ext/hash_map>
20615 #ifdef HAVE_NAMESPACES
20616 using namespace std;
20617 #endif
20618 int
20619 main ()
20620 {
20621 hash_map<int, int> t;
20622   ;
20623   return 0;
20624 }
20625 _ACEOF
20626 rm -f conftest.$ac_objext
20627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20628   (eval $ac_compile) 2>&5
20629   ac_status=$?
20630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631   (exit $ac_status); } &&
20632          { ac_try='test -s conftest.$ac_objext'
20633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20634   (eval $ac_try) 2>&5
20635   ac_status=$?
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); }; }; then
20638   ac_cv_cxx_have_std_ext_hash_map=yes
20639 else
20640   echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20642
20643 ac_cv_cxx_have_std_ext_hash_map=no
20644 fi
20645 rm -f conftest.$ac_objext conftest.$ac_ext
20646   ac_ext=c
20647 ac_cpp='$CPP $CPPFLAGS'
20648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20651
20652 fi
20653 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20654 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20655  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
20656
20657 cat >>confdefs.h <<\_ACEOF
20658 #define HAVE_STD_EXT_HASH_MAP
20659 _ACEOF
20660
20661  fi
20662  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20663 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20664 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20665   echo $ECHO_N "(cached) $ECHO_C" >&6
20666 else
20667
20668
20669
20670   ac_ext=cc
20671 ac_cpp='$CXXCPP $CPPFLAGS'
20672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20675
20676   cat >conftest.$ac_ext <<_ACEOF
20677 #line $LINENO "configure"
20678 /* confdefs.h.  */
20679 _ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h.  */
20683 #include <ext/hash_map>
20684 #ifdef HAVE_NAMESPACES
20685 using namespace __gnu_cxx;
20686 #endif
20687 int
20688 main ()
20689 {
20690 hash_map<int,int> t;
20691   ;
20692   return 0;
20693 }
20694 _ACEOF
20695 rm -f conftest.$ac_objext
20696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20697   (eval $ac_compile) 2>&5
20698   ac_status=$?
20699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700   (exit $ac_status); } &&
20701          { ac_try='test -s conftest.$ac_objext'
20702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703   (eval $ac_try) 2>&5
20704   ac_status=$?
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); }; }; then
20707   ac_cv_cxx_have_gnu_ext_hash_map=yes
20708 else
20709   echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20711
20712 ac_cv_cxx_have_gnu_ext_hash_map=no
20713 fi
20714 rm -f conftest.$ac_objext conftest.$ac_ext
20715   ac_ext=c
20716 ac_cpp='$CPP $CPPFLAGS'
20717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20720
20721 fi
20722 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20723 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20724  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
20725
20726 cat >>confdefs.h <<\_ACEOF
20727 #define HAVE_GNU_EXT_HASH_MAP
20728 _ACEOF
20729
20730  fi
20731  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20732 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20733 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20734   echo $ECHO_N "(cached) $ECHO_C" >&6
20735 else
20736
20737
20738
20739   ac_ext=cc
20740 ac_cpp='$CXXCPP $CPPFLAGS'
20741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20744
20745   cat >conftest.$ac_ext <<_ACEOF
20746 #line $LINENO "configure"
20747 /* confdefs.h.  */
20748 _ACEOF
20749 cat confdefs.h >>conftest.$ac_ext
20750 cat >>conftest.$ac_ext <<_ACEOF
20751 /* end confdefs.h.  */
20752 #include <hash_map>
20753 int
20754 main ()
20755 {
20756 hash_map<int,int> t;
20757   ;
20758   return 0;
20759 }
20760 _ACEOF
20761 rm -f conftest.$ac_objext
20762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20763   (eval $ac_compile) 2>&5
20764   ac_status=$?
20765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766   (exit $ac_status); } &&
20767          { ac_try='test -s conftest.$ac_objext'
20768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769   (eval $ac_try) 2>&5
20770   ac_status=$?
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); }; }; then
20773   ac_cv_cxx_have_global_hash_map=yes
20774 else
20775   echo "$as_me: failed program was:" >&5
20776 sed 's/^/| /' conftest.$ac_ext >&5
20777
20778 ac_cv_cxx_have_global_hash_map=no
20779 fi
20780 rm -f conftest.$ac_objext conftest.$ac_ext
20781   ac_ext=c
20782 ac_cpp='$CPP $CPPFLAGS'
20783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20786
20787 fi
20788 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20789 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20790  if test "$ac_cv_cxx_have_global_hash_map" = yes; then
20791
20792 cat >>confdefs.h <<\_ACEOF
20793 #define HAVE_GLOBAL_HASH_MAP
20794 _ACEOF
20795
20796  fi
20797 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20798 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20799 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20800   echo $ECHO_N "(cached) $ECHO_C" >&6
20801 else
20802
20803
20804
20805   ac_ext=cc
20806 ac_cpp='$CXXCPP $CPPFLAGS'
20807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20810
20811   cat >conftest.$ac_ext <<_ACEOF
20812 #line $LINENO "configure"
20813 /* confdefs.h.  */
20814 _ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h.  */
20818 #include <ext/hash_set>
20819 #ifdef HAVE_NAMESPACES
20820 using namespace std;
20821 #endif
20822 int
20823 main ()
20824 {
20825 hash_set<int> t;
20826   ;
20827   return 0;
20828 }
20829 _ACEOF
20830 rm -f conftest.$ac_objext
20831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20832   (eval $ac_compile) 2>&5
20833   ac_status=$?
20834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835   (exit $ac_status); } &&
20836          { ac_try='test -s conftest.$ac_objext'
20837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20838   (eval $ac_try) 2>&5
20839   ac_status=$?
20840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841   (exit $ac_status); }; }; then
20842   ac_cv_cxx_have_std_ext_hash_set=yes
20843 else
20844   echo "$as_me: failed program was:" >&5
20845 sed 's/^/| /' conftest.$ac_ext >&5
20846
20847 ac_cv_cxx_have_std_ext_hash_set=no
20848 fi
20849 rm -f conftest.$ac_objext conftest.$ac_ext
20850   ac_ext=c
20851 ac_cpp='$CPP $CPPFLAGS'
20852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20855
20856 fi
20857 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20858 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20859  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
20860
20861 cat >>confdefs.h <<\_ACEOF
20862 #define HAVE_STD_EXT_HASH_SET
20863 _ACEOF
20864
20865  fi
20866  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20867 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20868 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20869   echo $ECHO_N "(cached) $ECHO_C" >&6
20870 else
20871
20872
20873
20874   ac_ext=cc
20875 ac_cpp='$CXXCPP $CPPFLAGS'
20876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20879
20880   cat >conftest.$ac_ext <<_ACEOF
20881 #line $LINENO "configure"
20882 /* confdefs.h.  */
20883 _ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h.  */
20887 #include <ext/hash_set>
20888 #ifdef HAVE_NAMESPACES
20889 using namespace __gnu_cxx;
20890 #endif
20891 int
20892 main ()
20893 {
20894 hash_set<int> t;
20895   ;
20896   return 0;
20897 }
20898 _ACEOF
20899 rm -f conftest.$ac_objext
20900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20901   (eval $ac_compile) 2>&5
20902   ac_status=$?
20903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904   (exit $ac_status); } &&
20905          { ac_try='test -s conftest.$ac_objext'
20906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20907   (eval $ac_try) 2>&5
20908   ac_status=$?
20909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910   (exit $ac_status); }; }; then
20911   ac_cv_cxx_have_gnu_ext_hash_set=yes
20912 else
20913   echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20915
20916 ac_cv_cxx_have_gnu_ext_hash_set=no
20917 fi
20918 rm -f conftest.$ac_objext conftest.$ac_ext
20919   ac_ext=c
20920 ac_cpp='$CPP $CPPFLAGS'
20921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20924
20925 fi
20926 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20927 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20928  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
20929
20930 cat >>confdefs.h <<\_ACEOF
20931 #define HAVE_GNU_EXT_HASH_SET
20932 _ACEOF
20933
20934  fi
20935  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20936 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20937 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20938   echo $ECHO_N "(cached) $ECHO_C" >&6
20939 else
20940
20941
20942
20943   ac_ext=cc
20944 ac_cpp='$CXXCPP $CPPFLAGS'
20945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20948
20949   cat >conftest.$ac_ext <<_ACEOF
20950 #line $LINENO "configure"
20951 /* confdefs.h.  */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h.  */
20956 #include <hash_set>
20957 int
20958 main ()
20959 {
20960 hash_set<int> t; return 0;
20961   ;
20962   return 0;
20963 }
20964 _ACEOF
20965 rm -f conftest.$ac_objext
20966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20967   (eval $ac_compile) 2>&5
20968   ac_status=$?
20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970   (exit $ac_status); } &&
20971          { ac_try='test -s conftest.$ac_objext'
20972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20973   (eval $ac_try) 2>&5
20974   ac_status=$?
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); }; }; then
20977   ac_cv_cxx_have_global_hash_set=yes
20978 else
20979   echo "$as_me: failed program was:" >&5
20980 sed 's/^/| /' conftest.$ac_ext >&5
20981
20982 ac_cv_cxx_have_global_hash_set=no
20983 fi
20984 rm -f conftest.$ac_objext conftest.$ac_ext
20985   ac_ext=c
20986 ac_cpp='$CPP $CPPFLAGS'
20987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20990
20991 fi
20992 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20993 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20994  if test "$ac_cv_cxx_have_global_hash_set" = yes; then
20995
20996 cat >>confdefs.h <<\_ACEOF
20997 #define HAVE_GLOBAL_HASH_SET
20998 _ACEOF
20999
21000  fi
21001 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21002 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21003 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21004   echo $ECHO_N "(cached) $ECHO_C" >&6
21005 else
21006
21007
21008
21009   ac_ext=cc
21010 ac_cpp='$CXXCPP $CPPFLAGS'
21011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21014
21015   cat >conftest.$ac_ext <<_ACEOF
21016 #line $LINENO "configure"
21017 /* confdefs.h.  */
21018 _ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h.  */
21022 #include <ext/slist>
21023 #ifdef HAVE_NAMESPACES
21024 using namespace std;
21025 #endif
21026 int
21027 main ()
21028 {
21029 slist<int> s; return 0;
21030   ;
21031   return 0;
21032 }
21033 _ACEOF
21034 rm -f conftest.$ac_objext
21035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21036   (eval $ac_compile) 2>&5
21037   ac_status=$?
21038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039   (exit $ac_status); } &&
21040          { ac_try='test -s conftest.$ac_objext'
21041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042   (eval $ac_try) 2>&5
21043   ac_status=$?
21044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045   (exit $ac_status); }; }; then
21046   ac_cv_cxx_have_ext_slist=std
21047 else
21048   echo "$as_me: failed program was:" >&5
21049 sed 's/^/| /' conftest.$ac_ext >&5
21050
21051 ac_cv_cxx_have_ext_slist=no
21052 fi
21053 rm -f conftest.$ac_objext conftest.$ac_ext
21054   cat >conftest.$ac_ext <<_ACEOF
21055 #line $LINENO "configure"
21056 /* confdefs.h.  */
21057 _ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h.  */
21061 #include <ext/slist>
21062 #ifdef HAVE_NAMESPACES
21063 using namespace __gnu_cxx;
21064 #endif
21065 int
21066 main ()
21067 {
21068 slist<int> s; return 0;
21069   ;
21070   return 0;
21071 }
21072 _ACEOF
21073 rm -f conftest.$ac_objext
21074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21075   (eval $ac_compile) 2>&5
21076   ac_status=$?
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); } &&
21079          { ac_try='test -s conftest.$ac_objext'
21080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081   (eval $ac_try) 2>&5
21082   ac_status=$?
21083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084   (exit $ac_status); }; }; then
21085   ac_cv_cxx_have_ext_slist=gnu
21086 else
21087   echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21089
21090 ac_cv_cxx_have_ext_slist=no
21091 fi
21092 rm -f conftest.$ac_objext conftest.$ac_ext
21093
21094   ac_ext=c
21095 ac_cpp='$CPP $CPPFLAGS'
21096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21099
21100
21101 fi
21102 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21103 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21104 if test "$ac_cv_cxx_have_ext_slist" = std; then
21105
21106 cat >>confdefs.h <<\_ACEOF
21107 #define HAVE_EXT_SLIST std
21108 _ACEOF
21109
21110 fi
21111 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21112
21113 cat >>confdefs.h <<\_ACEOF
21114 #define HAVE_EXT_SLIST gnu
21115 _ACEOF
21116
21117 fi
21118
21119 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21120 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21121 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21122   echo $ECHO_N "(cached) $ECHO_C" >&6
21123 else
21124
21125
21126
21127   ac_ext=cc
21128 ac_cpp='$CXXCPP $CPPFLAGS'
21129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21132
21133   cat >conftest.$ac_ext <<_ACEOF
21134 #line $LINENO "configure"
21135 /* confdefs.h.  */
21136 _ACEOF
21137 cat confdefs.h >>conftest.$ac_ext
21138 cat >>conftest.$ac_ext <<_ACEOF
21139 /* end confdefs.h.  */
21140 #include <iterator>
21141 #ifdef HAVE_NAMESPACES
21142 using namespace std;
21143 #endif
21144 int
21145 main ()
21146 {
21147 iterator<int,int,int> t; return 0;
21148   ;
21149   return 0;
21150 }
21151 _ACEOF
21152 rm -f conftest.$ac_objext
21153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21154   (eval $ac_compile) 2>&5
21155   ac_status=$?
21156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157   (exit $ac_status); } &&
21158          { ac_try='test -s conftest.$ac_objext'
21159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160   (eval $ac_try) 2>&5
21161   ac_status=$?
21162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163   (exit $ac_status); }; }; then
21164   ac_cv_cxx_have_std_iterator=yes
21165 else
21166   echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21168
21169 ac_cv_cxx_have_std_iterator=no
21170 fi
21171 rm -f conftest.$ac_objext conftest.$ac_ext
21172   ac_ext=c
21173 ac_cpp='$CPP $CPPFLAGS'
21174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21177
21178
21179 fi
21180 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21181 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21182 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21183
21184 cat >>confdefs.h <<\_ACEOF
21185 #define HAVE_STD_ITERATOR
21186 _ACEOF
21187
21188 fi
21189
21190 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21191 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21192 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21193   echo $ECHO_N "(cached) $ECHO_C" >&6
21194 else
21195
21196
21197
21198   ac_ext=cc
21199 ac_cpp='$CXXCPP $CPPFLAGS'
21200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21203
21204   cat >conftest.$ac_ext <<_ACEOF
21205 #line $LINENO "configure"
21206 /* confdefs.h.  */
21207 _ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h.  */
21211 #include <iterator>
21212 #ifdef HAVE_NAMESPACES
21213 using namespace std;
21214 #endif
21215 int
21216 main ()
21217 {
21218 bidirectional_iterator<int,int> t; return 0;
21219   ;
21220   return 0;
21221 }
21222 _ACEOF
21223 rm -f conftest.$ac_objext
21224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21225   (eval $ac_compile) 2>&5
21226   ac_status=$?
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); } &&
21229          { ac_try='test -s conftest.$ac_objext'
21230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231   (eval $ac_try) 2>&5
21232   ac_status=$?
21233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234   (exit $ac_status); }; }; then
21235   ac_cv_cxx_have_bi_iterator=yes
21236 else
21237   echo "$as_me: failed program was:" >&5
21238 sed 's/^/| /' conftest.$ac_ext >&5
21239
21240 ac_cv_cxx_have_bi_iterator=no
21241 fi
21242 rm -f conftest.$ac_objext conftest.$ac_ext
21243   ac_ext=c
21244 ac_cpp='$CPP $CPPFLAGS'
21245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21248
21249
21250 fi
21251 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21252 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21253 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21254
21255 cat >>confdefs.h <<\_ACEOF
21256 #define HAVE_BI_ITERATOR
21257 _ACEOF
21258
21259 fi
21260
21261 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21262 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21263 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21264   echo $ECHO_N "(cached) $ECHO_C" >&6
21265 else
21266
21267
21268
21269   ac_ext=cc
21270 ac_cpp='$CXXCPP $CPPFLAGS'
21271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21274
21275   cat >conftest.$ac_ext <<_ACEOF
21276 #line $LINENO "configure"
21277 /* confdefs.h.  */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h.  */
21282 #include <iterator>
21283 #ifdef HAVE_NAMESPACES
21284 using namespace std;
21285 #endif
21286 int
21287 main ()
21288 {
21289 forward_iterator<int,int> t; return 0;
21290   ;
21291   return 0;
21292 }
21293 _ACEOF
21294 rm -f conftest.$ac_objext
21295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21296   (eval $ac_compile) 2>&5
21297   ac_status=$?
21298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299   (exit $ac_status); } &&
21300          { ac_try='test -s conftest.$ac_objext'
21301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21302   (eval $ac_try) 2>&5
21303   ac_status=$?
21304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305   (exit $ac_status); }; }; then
21306   ac_cv_cxx_have_fwd_iterator=yes
21307 else
21308   echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21310
21311 ac_cv_cxx_have_fwd_iterator=no
21312 fi
21313 rm -f conftest.$ac_objext conftest.$ac_ext
21314   ac_ext=c
21315 ac_cpp='$CPP $CPPFLAGS'
21316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21319
21320
21321 fi
21322 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21323 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21324 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21325
21326 cat >>confdefs.h <<\_ACEOF
21327 #define HAVE_FWD_ITERATOR
21328 _ACEOF
21329
21330 fi
21331
21332
21333 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21334 # for constant arguments.  Useless!
21335 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21336 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21337 if test "${ac_cv_working_alloca_h+set}" = set; then
21338   echo $ECHO_N "(cached) $ECHO_C" >&6
21339 else
21340   cat >conftest.$ac_ext <<_ACEOF
21341 #line $LINENO "configure"
21342 /* confdefs.h.  */
21343 _ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h.  */
21347 #include <alloca.h>
21348 int
21349 main ()
21350 {
21351 char *p = (char *) alloca (2 * sizeof (int));
21352   ;
21353   return 0;
21354 }
21355 _ACEOF
21356 rm -f conftest.$ac_objext conftest$ac_exeext
21357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21358   (eval $ac_link) 2>&5
21359   ac_status=$?
21360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361   (exit $ac_status); } &&
21362          { ac_try='test -s conftest$ac_exeext'
21363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21364   (eval $ac_try) 2>&5
21365   ac_status=$?
21366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367   (exit $ac_status); }; }; then
21368   ac_cv_working_alloca_h=yes
21369 else
21370   echo "$as_me: failed program was:" >&5
21371 sed 's/^/| /' conftest.$ac_ext >&5
21372
21373 ac_cv_working_alloca_h=no
21374 fi
21375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21376 fi
21377 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21378 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21379 if test $ac_cv_working_alloca_h = yes; then
21380
21381 cat >>confdefs.h <<\_ACEOF
21382 #define HAVE_ALLOCA_H 1
21383 _ACEOF
21384
21385 fi
21386
21387 echo "$as_me:$LINENO: checking for alloca" >&5
21388 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21389 if test "${ac_cv_func_alloca_works+set}" = set; then
21390   echo $ECHO_N "(cached) $ECHO_C" >&6
21391 else
21392   cat >conftest.$ac_ext <<_ACEOF
21393 #line $LINENO "configure"
21394 /* confdefs.h.  */
21395 _ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h.  */
21399 #ifdef __GNUC__
21400 # define alloca __builtin_alloca
21401 #else
21402 # ifdef _MSC_VER
21403 #  include <malloc.h>
21404 #  define alloca _alloca
21405 # else
21406 #  if HAVE_ALLOCA_H
21407 #   include <alloca.h>
21408 #  else
21409 #   ifdef _AIX
21410  #pragma alloca
21411 #   else
21412 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21413 char *alloca ();
21414 #    endif
21415 #   endif
21416 #  endif
21417 # endif
21418 #endif
21419
21420 int
21421 main ()
21422 {
21423 char *p = (char *) alloca (1);
21424   ;
21425   return 0;
21426 }
21427 _ACEOF
21428 rm -f conftest.$ac_objext conftest$ac_exeext
21429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21430   (eval $ac_link) 2>&5
21431   ac_status=$?
21432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433   (exit $ac_status); } &&
21434          { ac_try='test -s conftest$ac_exeext'
21435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21436   (eval $ac_try) 2>&5
21437   ac_status=$?
21438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439   (exit $ac_status); }; }; then
21440   ac_cv_func_alloca_works=yes
21441 else
21442   echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21444
21445 ac_cv_func_alloca_works=no
21446 fi
21447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21448 fi
21449 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21450 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21451
21452 if test $ac_cv_func_alloca_works = yes; then
21453
21454 cat >>confdefs.h <<\_ACEOF
21455 #define HAVE_ALLOCA 1
21456 _ACEOF
21457
21458 else
21459   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21460 # that cause trouble.  Some versions do not even contain alloca or
21461 # contain a buggy version.  If you still want to use their alloca,
21462 # use ar to extract alloca.o from them instead of compiling alloca.c.
21463
21464 ALLOCA=alloca.$ac_objext
21465
21466 cat >>confdefs.h <<\_ACEOF
21467 #define C_ALLOCA 1
21468 _ACEOF
21469
21470
21471 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21472 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21473 if test "${ac_cv_os_cray+set}" = set; then
21474   echo $ECHO_N "(cached) $ECHO_C" >&6
21475 else
21476   cat >conftest.$ac_ext <<_ACEOF
21477 #line $LINENO "configure"
21478 /* confdefs.h.  */
21479 _ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h.  */
21483 #if defined(CRAY) && ! defined(CRAY2)
21484 webecray
21485 #else
21486 wenotbecray
21487 #endif
21488
21489 _ACEOF
21490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21491   $EGREP "webecray" >/dev/null 2>&1; then
21492   ac_cv_os_cray=yes
21493 else
21494   ac_cv_os_cray=no
21495 fi
21496 rm -f conftest*
21497
21498 fi
21499 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21500 echo "${ECHO_T}$ac_cv_os_cray" >&6
21501 if test $ac_cv_os_cray = yes; then
21502   for ac_func in _getb67 GETB67 getb67; do
21503     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21504 echo "$as_me:$LINENO: checking for $ac_func" >&5
21505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21506 if eval "test \"\${$as_ac_var+set}\" = set"; then
21507   echo $ECHO_N "(cached) $ECHO_C" >&6
21508 else
21509   cat >conftest.$ac_ext <<_ACEOF
21510 #line $LINENO "configure"
21511 /* confdefs.h.  */
21512 _ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h.  */
21516 /* System header to define __stub macros and hopefully few prototypes,
21517     which can conflict with char $ac_func (); below.
21518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21519     <limits.h> exists even on freestanding compilers.  */
21520 #ifdef __STDC__
21521 # include <limits.h>
21522 #else
21523 # include <assert.h>
21524 #endif
21525 /* Override any gcc2 internal prototype to avoid an error.  */
21526 #ifdef __cplusplus
21527 extern "C"
21528 {
21529 #endif
21530 /* We use char because int might match the return type of a gcc2
21531    builtin and then its argument prototype would still apply.  */
21532 char $ac_func ();
21533 /* The GNU C library defines this for functions which it implements
21534     to always fail with ENOSYS.  Some functions are actually named
21535     something starting with __ and the normal name is an alias.  */
21536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21537 choke me
21538 #else
21539 char (*f) () = $ac_func;
21540 #endif
21541 #ifdef __cplusplus
21542 }
21543 #endif
21544
21545 int
21546 main ()
21547 {
21548 return f != $ac_func;
21549   ;
21550   return 0;
21551 }
21552 _ACEOF
21553 rm -f conftest.$ac_objext conftest$ac_exeext
21554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21555   (eval $ac_link) 2>&5
21556   ac_status=$?
21557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558   (exit $ac_status); } &&
21559          { ac_try='test -s conftest$ac_exeext'
21560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561   (eval $ac_try) 2>&5
21562   ac_status=$?
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); }; }; then
21565   eval "$as_ac_var=yes"
21566 else
21567   echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21569
21570 eval "$as_ac_var=no"
21571 fi
21572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21573 fi
21574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21576 if test `eval echo '${'$as_ac_var'}'` = yes; then
21577
21578 cat >>confdefs.h <<_ACEOF
21579 #define CRAY_STACKSEG_END $ac_func
21580 _ACEOF
21581
21582     break
21583 fi
21584
21585   done
21586 fi
21587
21588 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21589 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21590 if test "${ac_cv_c_stack_direction+set}" = set; then
21591   echo $ECHO_N "(cached) $ECHO_C" >&6
21592 else
21593   if test "$cross_compiling" = yes; then
21594   ac_cv_c_stack_direction=0
21595 else
21596   cat >conftest.$ac_ext <<_ACEOF
21597 #line $LINENO "configure"
21598 /* confdefs.h.  */
21599 _ACEOF
21600 cat confdefs.h >>conftest.$ac_ext
21601 cat >>conftest.$ac_ext <<_ACEOF
21602 /* end confdefs.h.  */
21603 int
21604 find_stack_direction ()
21605 {
21606   static char *addr = 0;
21607   auto char dummy;
21608   if (addr == 0)
21609     {
21610       addr = &dummy;
21611       return find_stack_direction ();
21612     }
21613   else
21614     return (&dummy > addr) ? 1 : -1;
21615 }
21616
21617 int
21618 main ()
21619 {
21620   exit (find_stack_direction () < 0);
21621 }
21622 _ACEOF
21623 rm -f conftest$ac_exeext
21624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21625   (eval $ac_link) 2>&5
21626   ac_status=$?
21627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630   (eval $ac_try) 2>&5
21631   ac_status=$?
21632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633   (exit $ac_status); }; }; then
21634   ac_cv_c_stack_direction=1
21635 else
21636   echo "$as_me: program exited with status $ac_status" >&5
21637 echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.$ac_ext >&5
21639
21640 ( exit $ac_status )
21641 ac_cv_c_stack_direction=-1
21642 fi
21643 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21644 fi
21645 fi
21646 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21647 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21648
21649 cat >>confdefs.h <<_ACEOF
21650 #define STACK_DIRECTION $ac_cv_c_stack_direction
21651 _ACEOF
21652
21653
21654 fi
21655
21656 if test $ac_cv_c_compiler_gnu = yes; then
21657     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21658 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21659 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21660   echo $ECHO_N "(cached) $ECHO_C" >&6
21661 else
21662     ac_pattern="Autoconf.*'x'"
21663   cat >conftest.$ac_ext <<_ACEOF
21664 #line $LINENO "configure"
21665 /* confdefs.h.  */
21666 _ACEOF
21667 cat confdefs.h >>conftest.$ac_ext
21668 cat >>conftest.$ac_ext <<_ACEOF
21669 /* end confdefs.h.  */
21670 #include <sgtty.h>
21671 Autoconf TIOCGETP
21672 _ACEOF
21673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21674   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21675   ac_cv_prog_gcc_traditional=yes
21676 else
21677   ac_cv_prog_gcc_traditional=no
21678 fi
21679 rm -f conftest*
21680
21681
21682   if test $ac_cv_prog_gcc_traditional = no; then
21683     cat >conftest.$ac_ext <<_ACEOF
21684 #line $LINENO "configure"
21685 /* confdefs.h.  */
21686 _ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h.  */
21690 #include <termio.h>
21691 Autoconf TCGETA
21692 _ACEOF
21693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21694   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21695   ac_cv_prog_gcc_traditional=yes
21696 fi
21697 rm -f conftest*
21698
21699   fi
21700 fi
21701 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21702 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21703   if test $ac_cv_prog_gcc_traditional = yes; then
21704     CC="$CC -traditional"
21705   fi
21706 fi
21707
21708 echo "$as_me:$LINENO: checking for working memcmp" >&5
21709 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21710 if test "${ac_cv_func_memcmp_working+set}" = set; then
21711   echo $ECHO_N "(cached) $ECHO_C" >&6
21712 else
21713   if test "$cross_compiling" = yes; then
21714   ac_cv_func_memcmp_working=no
21715 else
21716   cat >conftest.$ac_ext <<_ACEOF
21717 #line $LINENO "configure"
21718 /* confdefs.h.  */
21719 _ACEOF
21720 cat confdefs.h >>conftest.$ac_ext
21721 cat >>conftest.$ac_ext <<_ACEOF
21722 /* end confdefs.h.  */
21723
21724 int
21725 main ()
21726 {
21727
21728   /* Some versions of memcmp are not 8-bit clean.  */
21729   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21730   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21731     exit (1);
21732
21733   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21734      or more and with at least one buffer not starting on a 4-byte boundary.
21735      William Lewis provided this test program.   */
21736   {
21737     char foo[21];
21738     char bar[21];
21739     int i;
21740     for (i = 0; i < 4; i++)
21741       {
21742         char *a = foo + i;
21743         char *b = bar + i;
21744         strcpy (a, "--------01111111");
21745         strcpy (b, "--------10000000");
21746         if (memcmp (a, b, 16) >= 0)
21747           exit (1);
21748       }
21749     exit (0);
21750   }
21751
21752   ;
21753   return 0;
21754 }
21755 _ACEOF
21756 rm -f conftest$ac_exeext
21757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21758   (eval $ac_link) 2>&5
21759   ac_status=$?
21760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763   (eval $ac_try) 2>&5
21764   ac_status=$?
21765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766   (exit $ac_status); }; }; then
21767   ac_cv_func_memcmp_working=yes
21768 else
21769   echo "$as_me: program exited with status $ac_status" >&5
21770 echo "$as_me: failed program was:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21772
21773 ( exit $ac_status )
21774 ac_cv_func_memcmp_working=no
21775 fi
21776 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21777 fi
21778 fi
21779 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21780 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21781 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21782
21783
21784
21785 for ac_header in stdlib.h unistd.h
21786 do
21787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21789   echo "$as_me:$LINENO: checking for $ac_header" >&5
21790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21792   echo $ECHO_N "(cached) $ECHO_C" >&6
21793 fi
21794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21796 else
21797   # Is the header compilable?
21798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21800 cat >conftest.$ac_ext <<_ACEOF
21801 #line $LINENO "configure"
21802 /* confdefs.h.  */
21803 _ACEOF
21804 cat confdefs.h >>conftest.$ac_ext
21805 cat >>conftest.$ac_ext <<_ACEOF
21806 /* end confdefs.h.  */
21807 $ac_includes_default
21808 #include <$ac_header>
21809 _ACEOF
21810 rm -f conftest.$ac_objext
21811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21812   (eval $ac_compile) 2>&5
21813   ac_status=$?
21814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815   (exit $ac_status); } &&
21816          { ac_try='test -s conftest.$ac_objext'
21817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21818   (eval $ac_try) 2>&5
21819   ac_status=$?
21820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821   (exit $ac_status); }; }; then
21822   ac_header_compiler=yes
21823 else
21824   echo "$as_me: failed program was:" >&5
21825 sed 's/^/| /' conftest.$ac_ext >&5
21826
21827 ac_header_compiler=no
21828 fi
21829 rm -f conftest.$ac_objext conftest.$ac_ext
21830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21831 echo "${ECHO_T}$ac_header_compiler" >&6
21832
21833 # Is the header present?
21834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21836 cat >conftest.$ac_ext <<_ACEOF
21837 #line $LINENO "configure"
21838 /* confdefs.h.  */
21839 _ACEOF
21840 cat confdefs.h >>conftest.$ac_ext
21841 cat >>conftest.$ac_ext <<_ACEOF
21842 /* end confdefs.h.  */
21843 #include <$ac_header>
21844 _ACEOF
21845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21846   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21847   ac_status=$?
21848   grep -v '^ *+' conftest.er1 >conftest.err
21849   rm -f conftest.er1
21850   cat conftest.err >&5
21851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852   (exit $ac_status); } >/dev/null; then
21853   if test -s conftest.err; then
21854     ac_cpp_err=$ac_c_preproc_warn_flag
21855   else
21856     ac_cpp_err=
21857   fi
21858 else
21859   ac_cpp_err=yes
21860 fi
21861 if test -z "$ac_cpp_err"; then
21862   ac_header_preproc=yes
21863 else
21864   echo "$as_me: failed program was:" >&5
21865 sed 's/^/| /' conftest.$ac_ext >&5
21866
21867   ac_header_preproc=no
21868 fi
21869 rm -f conftest.err conftest.$ac_ext
21870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21871 echo "${ECHO_T}$ac_header_preproc" >&6
21872
21873 # So?  What about this header?
21874 case $ac_header_compiler:$ac_header_preproc in
21875   yes:no )
21876     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21880     (
21881       cat <<\_ASBOX
21882 ## ------------------------------------ ##
21883 ## Report this to bug-autoconf@gnu.org. ##
21884 ## ------------------------------------ ##
21885 _ASBOX
21886     ) |
21887       sed "s/^/$as_me: WARNING:     /" >&2
21888     ;;
21889   no:yes )
21890     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21892     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21896     (
21897       cat <<\_ASBOX
21898 ## ------------------------------------ ##
21899 ## Report this to bug-autoconf@gnu.org. ##
21900 ## ------------------------------------ ##
21901 _ASBOX
21902     ) |
21903       sed "s/^/$as_me: WARNING:     /" >&2
21904     ;;
21905 esac
21906 echo "$as_me:$LINENO: checking for $ac_header" >&5
21907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21909   echo $ECHO_N "(cached) $ECHO_C" >&6
21910 else
21911   eval "$as_ac_Header=$ac_header_preproc"
21912 fi
21913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21915
21916 fi
21917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21918   cat >>confdefs.h <<_ACEOF
21919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21920 _ACEOF
21921
21922 fi
21923
21924 done
21925
21926
21927 for ac_func in getpagesize
21928 do
21929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21930 echo "$as_me:$LINENO: checking for $ac_func" >&5
21931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21932 if eval "test \"\${$as_ac_var+set}\" = set"; then
21933   echo $ECHO_N "(cached) $ECHO_C" >&6
21934 else
21935   cat >conftest.$ac_ext <<_ACEOF
21936 #line $LINENO "configure"
21937 /* confdefs.h.  */
21938 _ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h.  */
21942 /* System header to define __stub macros and hopefully few prototypes,
21943     which can conflict with char $ac_func (); below.
21944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21945     <limits.h> exists even on freestanding compilers.  */
21946 #ifdef __STDC__
21947 # include <limits.h>
21948 #else
21949 # include <assert.h>
21950 #endif
21951 /* Override any gcc2 internal prototype to avoid an error.  */
21952 #ifdef __cplusplus
21953 extern "C"
21954 {
21955 #endif
21956 /* We use char because int might match the return type of a gcc2
21957    builtin and then its argument prototype would still apply.  */
21958 char $ac_func ();
21959 /* The GNU C library defines this for functions which it implements
21960     to always fail with ENOSYS.  Some functions are actually named
21961     something starting with __ and the normal name is an alias.  */
21962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21963 choke me
21964 #else
21965 char (*f) () = $ac_func;
21966 #endif
21967 #ifdef __cplusplus
21968 }
21969 #endif
21970
21971 int
21972 main ()
21973 {
21974 return f != $ac_func;
21975   ;
21976   return 0;
21977 }
21978 _ACEOF
21979 rm -f conftest.$ac_objext conftest$ac_exeext
21980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21981   (eval $ac_link) 2>&5
21982   ac_status=$?
21983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984   (exit $ac_status); } &&
21985          { ac_try='test -s conftest$ac_exeext'
21986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21987   (eval $ac_try) 2>&5
21988   ac_status=$?
21989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990   (exit $ac_status); }; }; then
21991   eval "$as_ac_var=yes"
21992 else
21993   echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21995
21996 eval "$as_ac_var=no"
21997 fi
21998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21999 fi
22000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22002 if test `eval echo '${'$as_ac_var'}'` = yes; then
22003   cat >>confdefs.h <<_ACEOF
22004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22005 _ACEOF
22006
22007 fi
22008 done
22009
22010 echo "$as_me:$LINENO: checking for working mmap" >&5
22011 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22012 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22013   echo $ECHO_N "(cached) $ECHO_C" >&6
22014 else
22015   if test "$cross_compiling" = yes; then
22016   ac_cv_func_mmap_fixed_mapped=no
22017 else
22018   cat >conftest.$ac_ext <<_ACEOF
22019 #line $LINENO "configure"
22020 /* confdefs.h.  */
22021 _ACEOF
22022 cat confdefs.h >>conftest.$ac_ext
22023 cat >>conftest.$ac_ext <<_ACEOF
22024 /* end confdefs.h.  */
22025 $ac_includes_default
22026 /* malloc might have been renamed as rpl_malloc. */
22027 #undef malloc
22028
22029 /* Thanks to Mike Haertel and Jim Avera for this test.
22030    Here is a matrix of mmap possibilities:
22031         mmap private not fixed
22032         mmap private fixed at somewhere currently unmapped
22033         mmap private fixed at somewhere already mapped
22034         mmap shared not fixed
22035         mmap shared fixed at somewhere currently unmapped
22036         mmap shared fixed at somewhere already mapped
22037    For private mappings, we should verify that changes cannot be read()
22038    back from the file, nor mmap's back from the file at a different
22039    address.  (There have been systems where private was not correctly
22040    implemented like the infamous i386 svr4.0, and systems where the
22041    VM page cache was not coherent with the file system buffer cache
22042    like early versions of FreeBSD and possibly contemporary NetBSD.)
22043    For shared mappings, we should conversely verify that changes get
22044    propagated back to all the places they're supposed to be.
22045
22046    Grep wants private fixed already mapped.
22047    The main things grep needs to know about mmap are:
22048    * does it exist and is it safe to write into the mmap'd area
22049    * how to use it (BSD variants)  */
22050
22051 #include <fcntl.h>
22052 #include <sys/mman.h>
22053
22054 #if !STDC_HEADERS && !HAVE_STDLIB_H
22055 char *malloc ();
22056 #endif
22057
22058 /* This mess was copied from the GNU getpagesize.h.  */
22059 #if !HAVE_GETPAGESIZE
22060 /* Assume that all systems that can run configure have sys/param.h.  */
22061 # if !HAVE_SYS_PARAM_H
22062 #  define HAVE_SYS_PARAM_H 1
22063 # endif
22064
22065 # ifdef _SC_PAGESIZE
22066 #  define getpagesize() sysconf(_SC_PAGESIZE)
22067 # else /* no _SC_PAGESIZE */
22068 #  if HAVE_SYS_PARAM_H
22069 #   include <sys/param.h>
22070 #   ifdef EXEC_PAGESIZE
22071 #    define getpagesize() EXEC_PAGESIZE
22072 #   else /* no EXEC_PAGESIZE */
22073 #    ifdef NBPG
22074 #     define getpagesize() NBPG * CLSIZE
22075 #     ifndef CLSIZE
22076 #      define CLSIZE 1
22077 #     endif /* no CLSIZE */
22078 #    else /* no NBPG */
22079 #     ifdef NBPC
22080 #      define getpagesize() NBPC
22081 #     else /* no NBPC */
22082 #      ifdef PAGESIZE
22083 #       define getpagesize() PAGESIZE
22084 #      endif /* PAGESIZE */
22085 #     endif /* no NBPC */
22086 #    endif /* no NBPG */
22087 #   endif /* no EXEC_PAGESIZE */
22088 #  else /* no HAVE_SYS_PARAM_H */
22089 #   define getpagesize() 8192   /* punt totally */
22090 #  endif /* no HAVE_SYS_PARAM_H */
22091 # endif /* no _SC_PAGESIZE */
22092
22093 #endif /* no HAVE_GETPAGESIZE */
22094
22095 int
22096 main ()
22097 {
22098   char *data, *data2, *data3;
22099   int i, pagesize;
22100   int fd;
22101
22102   pagesize = getpagesize ();
22103
22104   /* First, make a file with some known garbage in it. */
22105   data = (char *) malloc (pagesize);
22106   if (!data)
22107     exit (1);
22108   for (i = 0; i < pagesize; ++i)
22109     *(data + i) = rand ();
22110   umask (0);
22111   fd = creat ("conftest.mmap", 0600);
22112   if (fd < 0)
22113     exit (1);
22114   if (write (fd, data, pagesize) != pagesize)
22115     exit (1);
22116   close (fd);
22117
22118   /* Next, try to mmap the file at a fixed address which already has
22119      something else allocated at it.  If we can, also make sure that
22120      we see the same garbage.  */
22121   fd = open ("conftest.mmap", O_RDWR);
22122   if (fd < 0)
22123     exit (1);
22124   data2 = (char *) malloc (2 * pagesize);
22125   if (!data2)
22126     exit (1);
22127   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22128   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22129                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22130     exit (1);
22131   for (i = 0; i < pagesize; ++i)
22132     if (*(data + i) != *(data2 + i))
22133       exit (1);
22134
22135   /* Finally, make sure that changes to the mapped area do not
22136      percolate back to the file as seen by read().  (This is a bug on
22137      some variants of i386 svr4.0.)  */
22138   for (i = 0; i < pagesize; ++i)
22139     *(data2 + i) = *(data2 + i) + 1;
22140   data3 = (char *) malloc (pagesize);
22141   if (!data3)
22142     exit (1);
22143   if (read (fd, data3, pagesize) != pagesize)
22144     exit (1);
22145   for (i = 0; i < pagesize; ++i)
22146     if (*(data + i) != *(data3 + i))
22147       exit (1);
22148   close (fd);
22149   exit (0);
22150 }
22151 _ACEOF
22152 rm -f conftest$ac_exeext
22153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22154   (eval $ac_link) 2>&5
22155   ac_status=$?
22156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22159   (eval $ac_try) 2>&5
22160   ac_status=$?
22161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162   (exit $ac_status); }; }; then
22163   ac_cv_func_mmap_fixed_mapped=yes
22164 else
22165   echo "$as_me: program exited with status $ac_status" >&5
22166 echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22168
22169 ( exit $ac_status )
22170 ac_cv_func_mmap_fixed_mapped=no
22171 fi
22172 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22173 fi
22174 fi
22175 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22176 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22177 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22178
22179 cat >>confdefs.h <<\_ACEOF
22180 #define HAVE_MMAP 1
22181 _ACEOF
22182
22183 fi
22184 rm -f conftest.mmap
22185
22186 echo "$as_me:$LINENO: checking for mmap of files" >&5
22187 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22188 if test "${ac_cv_func_mmap_file+set}" = set; then
22189   echo $ECHO_N "(cached) $ECHO_C" >&6
22190 else
22191
22192
22193   ac_ext=c
22194 ac_cpp='$CPP $CPPFLAGS'
22195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22198
22199   if test "$cross_compiling" = yes; then
22200   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22201 See \`config.log' for more details." >&5
22202 echo "$as_me: error: cannot run test program while cross compiling
22203 See \`config.log' for more details." >&2;}
22204    { (exit 1); exit 1; }; }
22205 else
22206   cat >conftest.$ac_ext <<_ACEOF
22207 #line $LINENO "configure"
22208 /* confdefs.h.  */
22209 _ACEOF
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h.  */
22213
22214 #ifdef HAVE_SYS_TYPES_H
22215 #include <sys/types.h>
22216 #endif
22217
22218 #ifdef HAVE_SYS_MMAN_H
22219 #include <sys/mman.h>
22220 #endif
22221
22222 #ifdef HAVE_FCNTL_H
22223 #include <fcntl.h>
22224 #endif
22225
22226   int fd;
22227   int main () {
22228   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22229 _ACEOF
22230 rm -f conftest$ac_exeext
22231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22232   (eval $ac_link) 2>&5
22233   ac_status=$?
22234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22237   (eval $ac_try) 2>&5
22238   ac_status=$?
22239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240   (exit $ac_status); }; }; then
22241   ac_cv_func_mmap_file=yes
22242 else
22243   echo "$as_me: program exited with status $ac_status" >&5
22244 echo "$as_me: failed program was:" >&5
22245 sed 's/^/| /' conftest.$ac_ext >&5
22246
22247 ( exit $ac_status )
22248 ac_cv_func_mmap_file=no
22249 fi
22250 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22251 fi
22252   ac_ext=c
22253 ac_cpp='$CPP $CPPFLAGS'
22254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22257
22258
22259 fi
22260 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22261 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22262 if test "$ac_cv_func_mmap_file" = yes; then
22263
22264 cat >>confdefs.h <<\_ACEOF
22265 #define HAVE_MMAP_FILE
22266 _ACEOF
22267
22268    MMAP_FILE=yes
22269
22270 fi
22271
22272 if test ${ac_cv_func_mmap_file} = "no"
22273 then
22274         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22275 echo "$as_me: error: mmap() of files required but not found" >&2;}
22276    { (exit 1); exit 1; }; }
22277 fi
22278 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22279 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22280 if test "${ac_cv_header_mmap_anon+set}" = set; then
22281   echo $ECHO_N "(cached) $ECHO_C" >&6
22282 else
22283
22284
22285   ac_ext=c
22286 ac_cpp='$CPP $CPPFLAGS'
22287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22290
22291   cat >conftest.$ac_ext <<_ACEOF
22292 #line $LINENO "configure"
22293 /* confdefs.h.  */
22294 _ACEOF
22295 cat confdefs.h >>conftest.$ac_ext
22296 cat >>conftest.$ac_ext <<_ACEOF
22297 /* end confdefs.h.  */
22298 #include <sys/mman.h>
22299   #include <unistd.h>
22300   #include <fcntl.h>
22301 int
22302 main ()
22303 {
22304 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22305   ;
22306   return 0;
22307 }
22308 _ACEOF
22309 rm -f conftest.$ac_objext
22310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22311   (eval $ac_compile) 2>&5
22312   ac_status=$?
22313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314   (exit $ac_status); } &&
22315          { ac_try='test -s conftest.$ac_objext'
22316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22317   (eval $ac_try) 2>&5
22318   ac_status=$?
22319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320   (exit $ac_status); }; }; then
22321   ac_cv_header_mmap_anon=yes
22322 else
22323   echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22325
22326 ac_cv_header_mmap_anon=no
22327 fi
22328 rm -f conftest.$ac_objext conftest.$ac_ext
22329   ac_ext=c
22330 ac_cpp='$CPP $CPPFLAGS'
22331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22334
22335
22336 fi
22337 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22338 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22339 if test "$ac_cv_header_mmap_anon" = yes; then
22340
22341 cat >>confdefs.h <<\_ACEOF
22342 #define HAVE_MMAP_ANONYMOUS
22343 _ACEOF
22344
22345 fi
22346
22347 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22348 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22349 if test "${ac_cv_type_signal+set}" = set; then
22350   echo $ECHO_N "(cached) $ECHO_C" >&6
22351 else
22352   cat >conftest.$ac_ext <<_ACEOF
22353 #line $LINENO "configure"
22354 /* confdefs.h.  */
22355 _ACEOF
22356 cat confdefs.h >>conftest.$ac_ext
22357 cat >>conftest.$ac_ext <<_ACEOF
22358 /* end confdefs.h.  */
22359 #include <sys/types.h>
22360 #include <signal.h>
22361 #ifdef signal
22362 # undef signal
22363 #endif
22364 #ifdef __cplusplus
22365 extern "C" void (*signal (int, void (*)(int)))(int);
22366 #else
22367 void (*signal ()) ();
22368 #endif
22369
22370 int
22371 main ()
22372 {
22373 int i;
22374   ;
22375   return 0;
22376 }
22377 _ACEOF
22378 rm -f conftest.$ac_objext
22379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22380   (eval $ac_compile) 2>&5
22381   ac_status=$?
22382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383   (exit $ac_status); } &&
22384          { ac_try='test -s conftest.$ac_objext'
22385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386   (eval $ac_try) 2>&5
22387   ac_status=$?
22388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389   (exit $ac_status); }; }; then
22390   ac_cv_type_signal=void
22391 else
22392   echo "$as_me: failed program was:" >&5
22393 sed 's/^/| /' conftest.$ac_ext >&5
22394
22395 ac_cv_type_signal=int
22396 fi
22397 rm -f conftest.$ac_objext conftest.$ac_ext
22398 fi
22399 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22400 echo "${ECHO_T}$ac_cv_type_signal" >&6
22401
22402 cat >>confdefs.h <<_ACEOF
22403 #define RETSIGTYPE $ac_cv_type_signal
22404 _ACEOF
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
22419 do
22420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22421 echo "$as_me:$LINENO: checking for $ac_func" >&5
22422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22423 if eval "test \"\${$as_ac_var+set}\" = set"; then
22424   echo $ECHO_N "(cached) $ECHO_C" >&6
22425 else
22426   cat >conftest.$ac_ext <<_ACEOF
22427 #line $LINENO "configure"
22428 /* confdefs.h.  */
22429 _ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h.  */
22433 /* System header to define __stub macros and hopefully few prototypes,
22434     which can conflict with char $ac_func (); below.
22435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22436     <limits.h> exists even on freestanding compilers.  */
22437 #ifdef __STDC__
22438 # include <limits.h>
22439 #else
22440 # include <assert.h>
22441 #endif
22442 /* Override any gcc2 internal prototype to avoid an error.  */
22443 #ifdef __cplusplus
22444 extern "C"
22445 {
22446 #endif
22447 /* We use char because int might match the return type of a gcc2
22448    builtin and then its argument prototype would still apply.  */
22449 char $ac_func ();
22450 /* The GNU C library defines this for functions which it implements
22451     to always fail with ENOSYS.  Some functions are actually named
22452     something starting with __ and the normal name is an alias.  */
22453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22454 choke me
22455 #else
22456 char (*f) () = $ac_func;
22457 #endif
22458 #ifdef __cplusplus
22459 }
22460 #endif
22461
22462 int
22463 main ()
22464 {
22465 return f != $ac_func;
22466   ;
22467   return 0;
22468 }
22469 _ACEOF
22470 rm -f conftest.$ac_objext conftest$ac_exeext
22471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22472   (eval $ac_link) 2>&5
22473   ac_status=$?
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); } &&
22476          { ac_try='test -s conftest$ac_exeext'
22477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478   (eval $ac_try) 2>&5
22479   ac_status=$?
22480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481   (exit $ac_status); }; }; then
22482   eval "$as_ac_var=yes"
22483 else
22484   echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22486
22487 eval "$as_ac_var=no"
22488 fi
22489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22490 fi
22491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22493 if test `eval echo '${'$as_ac_var'}'` = yes; then
22494   cat >>confdefs.h <<_ACEOF
22495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22496 _ACEOF
22497
22498 fi
22499 done
22500
22501
22502
22503 echo "$as_me:$LINENO: checking for mmap" >&5
22504 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22505 if test "${ac_cv_func_mmap+set}" = set; then
22506   echo $ECHO_N "(cached) $ECHO_C" >&6
22507 else
22508   cat >conftest.$ac_ext <<_ACEOF
22509 #line $LINENO "configure"
22510 /* confdefs.h.  */
22511 _ACEOF
22512 cat confdefs.h >>conftest.$ac_ext
22513 cat >>conftest.$ac_ext <<_ACEOF
22514 /* end confdefs.h.  */
22515 /* System header to define __stub macros and hopefully few prototypes,
22516     which can conflict with char mmap (); below.
22517     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22518     <limits.h> exists even on freestanding compilers.  */
22519 #ifdef __STDC__
22520 # include <limits.h>
22521 #else
22522 # include <assert.h>
22523 #endif
22524 /* Override any gcc2 internal prototype to avoid an error.  */
22525 #ifdef __cplusplus
22526 extern "C"
22527 {
22528 #endif
22529 /* We use char because int might match the return type of a gcc2
22530    builtin and then its argument prototype would still apply.  */
22531 char mmap ();
22532 /* The GNU C library defines this for functions which it implements
22533     to always fail with ENOSYS.  Some functions are actually named
22534     something starting with __ and the normal name is an alias.  */
22535 #if defined (__stub_mmap) || defined (__stub___mmap)
22536 choke me
22537 #else
22538 char (*f) () = mmap;
22539 #endif
22540 #ifdef __cplusplus
22541 }
22542 #endif
22543
22544 int
22545 main ()
22546 {
22547 return f != mmap;
22548   ;
22549   return 0;
22550 }
22551 _ACEOF
22552 rm -f conftest.$ac_objext conftest$ac_exeext
22553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22554   (eval $ac_link) 2>&5
22555   ac_status=$?
22556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557   (exit $ac_status); } &&
22558          { ac_try='test -s conftest$ac_exeext'
22559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560   (eval $ac_try) 2>&5
22561   ac_status=$?
22562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563   (exit $ac_status); }; }; then
22564   ac_cv_func_mmap=yes
22565 else
22566   echo "$as_me: failed program was:" >&5
22567 sed 's/^/| /' conftest.$ac_ext >&5
22568
22569 ac_cv_func_mmap=no
22570 fi
22571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22572 fi
22573 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22574 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22575 if test $ac_cv_func_mmap = yes; then
22576   :
22577 else
22578   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22579 echo "$as_me: error: Function mmap() required but not found" >&2;}
22580    { (exit 1); exit 1; }; }
22581 fi
22582
22583 echo "$as_me:$LINENO: checking for mprotect" >&5
22584 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22585 if test "${ac_cv_func_mprotect+set}" = set; then
22586   echo $ECHO_N "(cached) $ECHO_C" >&6
22587 else
22588   cat >conftest.$ac_ext <<_ACEOF
22589 #line $LINENO "configure"
22590 /* confdefs.h.  */
22591 _ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h.  */
22595 /* System header to define __stub macros and hopefully few prototypes,
22596     which can conflict with char mprotect (); below.
22597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22598     <limits.h> exists even on freestanding compilers.  */
22599 #ifdef __STDC__
22600 # include <limits.h>
22601 #else
22602 # include <assert.h>
22603 #endif
22604 /* Override any gcc2 internal prototype to avoid an error.  */
22605 #ifdef __cplusplus
22606 extern "C"
22607 {
22608 #endif
22609 /* We use char because int might match the return type of a gcc2
22610    builtin and then its argument prototype would still apply.  */
22611 char mprotect ();
22612 /* The GNU C library defines this for functions which it implements
22613     to always fail with ENOSYS.  Some functions are actually named
22614     something starting with __ and the normal name is an alias.  */
22615 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22616 choke me
22617 #else
22618 char (*f) () = mprotect;
22619 #endif
22620 #ifdef __cplusplus
22621 }
22622 #endif
22623
22624 int
22625 main ()
22626 {
22627 return f != mprotect;
22628   ;
22629   return 0;
22630 }
22631 _ACEOF
22632 rm -f conftest.$ac_objext conftest$ac_exeext
22633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22634   (eval $ac_link) 2>&5
22635   ac_status=$?
22636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637   (exit $ac_status); } &&
22638          { ac_try='test -s conftest$ac_exeext'
22639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640   (eval $ac_try) 2>&5
22641   ac_status=$?
22642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643   (exit $ac_status); }; }; then
22644   ac_cv_func_mprotect=yes
22645 else
22646   echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22648
22649 ac_cv_func_mprotect=no
22650 fi
22651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22652 fi
22653 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22654 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22655 if test $ac_cv_func_mprotect = yes; then
22656   :
22657 else
22658   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22659 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22660    { (exit 1); exit 1; }; }
22661 fi
22662
22663
22664
22665
22666
22667   ac_ext=c
22668 ac_cpp='$CPP $CPPFLAGS'
22669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22672
22673   oldcflags="$CFLAGS"
22674   CFLAGS="$CFLAGS -Wl,-R."
22675   cat >conftest.$ac_ext <<_ACEOF
22676 int main() { return 0; }
22677 _ACEOF
22678 rm -f conftest.$ac_objext conftest$ac_exeext
22679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22680   (eval $ac_link) 2>&5
22681   ac_status=$?
22682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683   (exit $ac_status); } &&
22684          { ac_try='test -s conftest$ac_exeext'
22685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22686   (eval $ac_try) 2>&5
22687   ac_status=$?
22688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689   (exit $ac_status); }; }; then
22690   ac_cv_link_use_r=yes
22691 else
22692   echo "$as_me: failed program was:" >&5
22693 sed 's/^/| /' conftest.$ac_ext >&5
22694
22695 ac_cv_link_use_r=no
22696 fi
22697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22698   CFLAGS="$oldcflags"
22699   ac_ext=c
22700 ac_cpp='$CPP $CPPFLAGS'
22701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22704
22705   if test "$ac_cv_link_use_r" = yes
22706   then
22707
22708 cat >>confdefs.h <<\_ACEOF
22709 #define HAVE_LINK_R 1
22710 _ACEOF
22711
22712   fi
22713
22714
22715
22716 # Check whether --enable-purify or --disable-purify was given.
22717 if test "${enable_purify+set}" = set; then
22718   enableval="$enable_purify"
22719
22720 else
22721   enableval="no"
22722 fi;
22723 if test ${enableval} = "no"
22724 then
22725         ENABLE_PURIFY=
22726
22727 else
22728         ENABLE_PURIFY=ENABLE_PURIFY=1
22729
22730 fi
22731
22732 # Check whether --enable-optimized or --disable-optimized was given.
22733 if test "${enable_optimized+set}" = set; then
22734   enableval="$enable_optimized"
22735
22736 else
22737   enableval=no
22738 fi;
22739 if test ${enableval} = "no"
22740 then
22741         ENABLE_OPTIMIZED=
22742
22743 else
22744         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22745
22746 fi
22747
22748 # Check whether --enable-spec2000 or --disable-spec2000 was given.
22749 if test "${enable_spec2000+set}" = set; then
22750   enableval="$enable_spec2000"
22751
22752 else
22753   enableval=no
22754 fi;
22755 if test ${enableval} = "no"
22756 then
22757         if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22758         then
22759                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22760
22761                 USE_SPEC=USE_SPEC=1
22762
22763         else
22764                 USE_SPEC=
22765
22766
22767         fi
22768 else
22769         if test ${enableval} = ""
22770         then
22771                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22772
22773         else
22774                 SPEC_ROOT=${enableval}
22775
22776         fi
22777         USE_SPEC=USE_SPEC=1
22778
22779 fi
22780
22781 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22782 if test "${enable_precompiled_bytecode+set}" = set; then
22783   enableval="$enable_precompiled_bytecode"
22784
22785 else
22786   enableval=no
22787 fi;
22788 if test ${enableval} = "no"
22789 then
22790         UPB=
22791
22792 else
22793         UPB=USE_PRECOMPILED_BYTECODE=1
22794
22795 fi
22796
22797
22798 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22799 if test "${enable_llc_diffs+set}" = set; then
22800   enableval="$enable_llc_diffs"
22801
22802 else
22803   enableval=yes
22804 fi;
22805 if test ${enableval} = "no"
22806 then
22807         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22808
22809 else
22810         DISABLE_LLC_DIFFS=
22811
22812 fi
22813
22814 # Check whether --enable-jit or --disable-jit was given.
22815 if test "${enable_jit+set}" = set; then
22816   enableval="$enable_jit"
22817
22818 else
22819   enableval=default
22820 fi;
22821
22822 if test ${enableval} = "no"
22823 then
22824         JIT=
22825
22826 else
22827         case $target in
22828                 *i*86*)
22829                         JIT=TARGET_HAS_JIT=1
22830
22831                         ;;
22832                 *sparc*)
22833                         JIT=TARGET_HAS_JIT=1
22834
22835                         ;;
22836                 *)
22837                         JIT=
22838
22839                         ;;
22840         esac
22841 fi
22842
22843
22844
22845 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22846 if test "${with_llvmgccdir+set}" = set; then
22847   withval="$with_llvmgccdir"
22848   LLVMGCCDIR=$withval
22849
22850 fi;
22851
22852 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22853 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22854 LLVM_GCC_CHECK=no
22855 if test -d "$LLVMGCCDIR"
22856 then
22857         if test -x "$LLVMGCCDIR/bin/gcc"
22858         then
22859                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22860         fi
22861 fi
22862 llvmgccwarn=no
22863 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22864 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22865 if test "$LLVM_GCC_CHECK" = "no"
22866 then
22867     llvmgccwarn=yes
22868 fi
22869
22870 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22871 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22872 LLVM_GCC_SANE=no
22873 if test -x "$LLVM_GCC_CHECK"
22874 then
22875         cp /dev/null conftest.c
22876     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22877         if test $? -eq 0
22878         then
22879                 LLVM_GCC_SANE=yes
22880         fi
22881         rm conftest.c
22882 fi
22883 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22884 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22885 if test "$LLVM_GCC_SANE" = "no"
22886 then
22887         llvmgccwarn=yes
22888 fi
22889
22890
22891 # Check whether --with-bcrepos or --without-bcrepos was given.
22892 if test "${with_bcrepos+set}" = set; then
22893   withval="$with_bcrepos"
22894   BCR=$withval
22895
22896 else
22897   BCR=/home/vadve/lattner/LLVMPrograms
22898
22899 fi;
22900
22901
22902 # Check whether --with-papi or --without-papi was given.
22903 if test "${with_papi+set}" = set; then
22904   withval="$with_papi"
22905   PAPIDIR=$withval
22906
22907 else
22908   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22909
22910 fi;
22911
22912
22913 # Check whether --with-purify or --without-purify was given.
22914 if test "${with_purify+set}" = set; then
22915   withval="$with_purify"
22916   PURIFY=$withval
22917
22918 fi;
22919
22920
22921           ac_config_files="$ac_config_files Makefile.config"
22922 cat >confcache <<\_ACEOF
22923 # This file is a shell script that caches the results of configure
22924 # tests run on this system so they can be shared between configure
22925 # scripts and configure runs, see configure's option --config-cache.
22926 # It is not useful on other systems.  If it contains results you don't
22927 # want to keep, you may remove or edit it.
22928 #
22929 # config.status only pays attention to the cache file if you give it
22930 # the --recheck option to rerun configure.
22931 #
22932 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22933 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22934 # following values.
22935
22936 _ACEOF
22937
22938 # The following way of writing the cache mishandles newlines in values,
22939 # but we know of no workaround that is simple, portable, and efficient.
22940 # So, don't put newlines in cache variables' values.
22941 # Ultrix sh set writes to stderr and can't be redirected directly,
22942 # and sets the high bit in the cache file unless we assign to the vars.
22943 {
22944   (set) 2>&1 |
22945     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22946     *ac_space=\ *)
22947       # `set' does not quote correctly, so add quotes (double-quote
22948       # substitution turns \\\\ into \\, and sed turns \\ into \).
22949       sed -n \
22950         "s/'/'\\\\''/g;
22951           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22952       ;;
22953     *)
22954       # `set' quotes correctly as required by POSIX, so do not add quotes.
22955       sed -n \
22956         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22957       ;;
22958     esac;
22959 } |
22960   sed '
22961      t clear
22962      : clear
22963      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22964      t end
22965      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22966      : end' >>confcache
22967 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22968   if test -w $cache_file; then
22969     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22970     cat confcache >$cache_file
22971   else
22972     echo "not updating unwritable cache $cache_file"
22973   fi
22974 fi
22975 rm -f confcache
22976
22977 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22978 # Let make expand exec_prefix.
22979 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22980
22981 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22982 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22983 # trailing colons and then remove the whole line if VPATH becomes empty
22984 # (actually we leave an empty line to preserve line numbers).
22985 if test "x$srcdir" = x.; then
22986   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22987 s/:*\$(srcdir):*/:/;
22988 s/:*\${srcdir}:*/:/;
22989 s/:*@srcdir@:*/:/;
22990 s/^\([^=]*=[    ]*\):*/\1/;
22991 s/:*$//;
22992 s/^[^=]*=[      ]*$//;
22993 }'
22994 fi
22995
22996 DEFS=-DHAVE_CONFIG_H
22997
22998 ac_libobjs=
22999 ac_ltlibobjs=
23000 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23001   # 1. Remove the extension, and $U if already installed.
23002   ac_i=`echo "$ac_i" |
23003          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23004   # 2. Add them.
23005   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23006   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23007 done
23008 LIBOBJS=$ac_libobjs
23009
23010 LTLIBOBJS=$ac_ltlibobjs
23011
23012
23013
23014 : ${CONFIG_STATUS=./config.status}
23015 ac_clean_files_save=$ac_clean_files
23016 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23017 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23018 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23019 cat >$CONFIG_STATUS <<_ACEOF
23020 #! $SHELL
23021 # Generated by $as_me.
23022 # Run this file to recreate the current configuration.
23023 # Compiler output produced by configure, useful for debugging
23024 # configure, is in config.log if it exists.
23025
23026 debug=false
23027 ac_cs_recheck=false
23028 ac_cs_silent=false
23029 SHELL=\${CONFIG_SHELL-$SHELL}
23030 _ACEOF
23031
23032 cat >>$CONFIG_STATUS <<\_ACEOF
23033 ## --------------------- ##
23034 ## M4sh Initialization.  ##
23035 ## --------------------- ##
23036
23037 # Be Bourne compatible
23038 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23039   emulate sh
23040   NULLCMD=:
23041   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23042   # is contrary to our usage.  Disable this feature.
23043   alias -g '${1+"$@"}'='"$@"'
23044 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23045   set -o posix
23046 fi
23047
23048 # Support unset when possible.
23049 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23050   as_unset=unset
23051 else
23052   as_unset=false
23053 fi
23054
23055
23056 # Work around bugs in pre-3.0 UWIN ksh.
23057 $as_unset ENV MAIL MAILPATH
23058 PS1='$ '
23059 PS2='> '
23060 PS4='+ '
23061
23062 # NLS nuisances.
23063 for as_var in \
23064   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23065   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23066   LC_TELEPHONE LC_TIME
23067 do
23068   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23069     eval $as_var=C; export $as_var
23070   else
23071     $as_unset $as_var
23072   fi
23073 done
23074
23075 # Required to use basename.
23076 if expr a : '\(a\)' >/dev/null 2>&1; then
23077   as_expr=expr
23078 else
23079   as_expr=false
23080 fi
23081
23082 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23083   as_basename=basename
23084 else
23085   as_basename=false
23086 fi
23087
23088
23089 # Name of the executable.
23090 as_me=`$as_basename "$0" ||
23091 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23092          X"$0" : 'X\(//\)$' \| \
23093          X"$0" : 'X\(/\)$' \| \
23094          .     : '\(.\)' 2>/dev/null ||
23095 echo X/"$0" |
23096     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23097           /^X\/\(\/\/\)$/{ s//\1/; q; }
23098           /^X\/\(\/\).*/{ s//\1/; q; }
23099           s/.*/./; q'`
23100
23101
23102 # PATH needs CR, and LINENO needs CR and PATH.
23103 # Avoid depending upon Character Ranges.
23104 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23105 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23106 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23107 as_cr_digits='0123456789'
23108 as_cr_alnum=$as_cr_Letters$as_cr_digits
23109
23110 # The user is always right.
23111 if test "${PATH_SEPARATOR+set}" != set; then
23112   echo "#! /bin/sh" >conf$$.sh
23113   echo  "exit 0"   >>conf$$.sh
23114   chmod +x conf$$.sh
23115   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23116     PATH_SEPARATOR=';'
23117   else
23118     PATH_SEPARATOR=:
23119   fi
23120   rm -f conf$$.sh
23121 fi
23122
23123
23124   as_lineno_1=$LINENO
23125   as_lineno_2=$LINENO
23126   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23127   test "x$as_lineno_1" != "x$as_lineno_2" &&
23128   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23129   # Find who we are.  Look in the path if we contain no path at all
23130   # relative or not.
23131   case $0 in
23132     *[\\/]* ) as_myself=$0 ;;
23133     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23134 for as_dir in $PATH
23135 do
23136   IFS=$as_save_IFS
23137   test -z "$as_dir" && as_dir=.
23138   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23139 done
23140
23141        ;;
23142   esac
23143   # We did not find ourselves, most probably we were run as `sh COMMAND'
23144   # in which case we are not to be found in the path.
23145   if test "x$as_myself" = x; then
23146     as_myself=$0
23147   fi
23148   if test ! -f "$as_myself"; then
23149     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23150 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23151    { (exit 1); exit 1; }; }
23152   fi
23153   case $CONFIG_SHELL in
23154   '')
23155     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23156 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23157 do
23158   IFS=$as_save_IFS
23159   test -z "$as_dir" && as_dir=.
23160   for as_base in sh bash ksh sh5; do
23161          case $as_dir in
23162          /*)
23163            if ("$as_dir/$as_base" -c '
23164   as_lineno_1=$LINENO
23165   as_lineno_2=$LINENO
23166   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23167   test "x$as_lineno_1" != "x$as_lineno_2" &&
23168   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23169              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23170              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23171              CONFIG_SHELL=$as_dir/$as_base
23172              export CONFIG_SHELL
23173              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23174            fi;;
23175          esac
23176        done
23177 done
23178 ;;
23179   esac
23180
23181   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23182   # uniformly replaced by the line number.  The first 'sed' inserts a
23183   # line-number line before each line; the second 'sed' does the real
23184   # work.  The second script uses 'N' to pair each line-number line
23185   # with the numbered line, and appends trailing '-' during
23186   # substitution so that $LINENO is not a special case at line end.
23187   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23188   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23189   sed '=' <$as_myself |
23190     sed '
23191       N
23192       s,$,-,
23193       : loop
23194       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23195       t loop
23196       s,-$,,
23197       s,^['$as_cr_digits']*\n,,
23198     ' >$as_me.lineno &&
23199   chmod +x $as_me.lineno ||
23200     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23201 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23202    { (exit 1); exit 1; }; }
23203
23204   # Don't try to exec as it changes $[0], causing all sort of problems
23205   # (the dirname of $[0] is not the place where we might find the
23206   # original and so on.  Autoconf is especially sensible to this).
23207   . ./$as_me.lineno
23208   # Exit status is that of the last command.
23209   exit
23210 }
23211
23212
23213 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23214   *c*,-n*) ECHO_N= ECHO_C='
23215 ' ECHO_T='      ' ;;
23216   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23217   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23218 esac
23219
23220 if expr a : '\(a\)' >/dev/null 2>&1; then
23221   as_expr=expr
23222 else
23223   as_expr=false
23224 fi
23225
23226 rm -f conf$$ conf$$.exe conf$$.file
23227 echo >conf$$.file
23228 if ln -s conf$$.file conf$$ 2>/dev/null; then
23229   # We could just check for DJGPP; but this test a) works b) is more generic
23230   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23231   if test -f conf$$.exe; then
23232     # Don't use ln at all; we don't have any links
23233     as_ln_s='cp -p'
23234   else
23235     as_ln_s='ln -s'
23236   fi
23237 elif ln conf$$.file conf$$ 2>/dev/null; then
23238   as_ln_s=ln
23239 else
23240   as_ln_s='cp -p'
23241 fi
23242 rm -f conf$$ conf$$.exe conf$$.file
23243
23244 if mkdir -p . 2>/dev/null; then
23245   as_mkdir_p=:
23246 else
23247   as_mkdir_p=false
23248 fi
23249
23250 as_executable_p="test -f"
23251
23252 # Sed expression to map a string onto a valid CPP name.
23253 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23254
23255 # Sed expression to map a string onto a valid variable name.
23256 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23257
23258
23259 # IFS
23260 # We need space, tab and new line, in precisely that order.
23261 as_nl='
23262 '
23263 IFS="   $as_nl"
23264
23265 # CDPATH.
23266 $as_unset CDPATH
23267
23268 exec 6>&1
23269
23270 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23271 # report actual input values of CONFIG_FILES etc. instead of their
23272 # values after options handling.  Logging --version etc. is OK.
23273 exec 5>>config.log
23274 {
23275   echo
23276   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23277 ## Running $as_me. ##
23278 _ASBOX
23279 } >&5
23280 cat >&5 <<_CSEOF
23281
23282 This file was extended by [LLVM] $as_me [1.0], which was
23283 generated by GNU Autoconf 2.57.  Invocation command line was
23284
23285   CONFIG_FILES    = $CONFIG_FILES
23286   CONFIG_HEADERS  = $CONFIG_HEADERS
23287   CONFIG_LINKS    = $CONFIG_LINKS
23288   CONFIG_COMMANDS = $CONFIG_COMMANDS
23289   $ $0 $@
23290
23291 _CSEOF
23292 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23293 echo >&5
23294 _ACEOF
23295
23296 # Files that config.status was made for.
23297 if test -n "$ac_config_files"; then
23298   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23299 fi
23300
23301 if test -n "$ac_config_headers"; then
23302   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23303 fi
23304
23305 if test -n "$ac_config_links"; then
23306   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23307 fi
23308
23309 if test -n "$ac_config_commands"; then
23310   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23311 fi
23312
23313 cat >>$CONFIG_STATUS <<\_ACEOF
23314
23315 ac_cs_usage="\
23316 \`$as_me' instantiates files from templates according to the
23317 current configuration.
23318
23319 Usage: $0 [OPTIONS] [FILE]...
23320
23321   -h, --help       print this help, then exit
23322   -V, --version    print version number, then exit
23323   -q, --quiet      do not print progress messages
23324   -d, --debug      don't remove temporary files
23325       --recheck    update $as_me by reconfiguring in the same conditions
23326   --file=FILE[:TEMPLATE]
23327                    instantiate the configuration file FILE
23328   --header=FILE[:TEMPLATE]
23329                    instantiate the configuration header FILE
23330
23331 Configuration files:
23332 $config_files
23333
23334 Configuration headers:
23335 $config_headers
23336
23337 Configuration commands:
23338 $config_commands
23339
23340 Report bugs to <bug-autoconf@gnu.org>."
23341 _ACEOF
23342
23343 cat >>$CONFIG_STATUS <<_ACEOF
23344 ac_cs_version="\\
23345 [LLVM] config.status [1.0]
23346 configured by $0, generated by GNU Autoconf 2.57,
23347   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23348
23349 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23350 Free Software Foundation, Inc.
23351 This config.status script is free software; the Free Software Foundation
23352 gives unlimited permission to copy, distribute and modify it."
23353 srcdir=$srcdir
23354 INSTALL="$INSTALL"
23355 _ACEOF
23356
23357 cat >>$CONFIG_STATUS <<\_ACEOF
23358 # If no file are specified by the user, then we need to provide default
23359 # value.  By we need to know if files were specified by the user.
23360 ac_need_defaults=:
23361 while test $# != 0
23362 do
23363   case $1 in
23364   --*=*)
23365     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23366     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23367     ac_shift=:
23368     ;;
23369   -*)
23370     ac_option=$1
23371     ac_optarg=$2
23372     ac_shift=shift
23373     ;;
23374   *) # This is not an option, so the user has probably given explicit
23375      # arguments.
23376      ac_option=$1
23377      ac_need_defaults=false;;
23378   esac
23379
23380   case $ac_option in
23381   # Handling of the options.
23382 _ACEOF
23383 cat >>$CONFIG_STATUS <<\_ACEOF
23384   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23385     ac_cs_recheck=: ;;
23386   --version | --vers* | -V )
23387     echo "$ac_cs_version"; exit 0 ;;
23388   --he | --h)
23389     # Conflict between --help and --header
23390     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23391 Try \`$0 --help' for more information." >&5
23392 echo "$as_me: error: ambiguous option: $1
23393 Try \`$0 --help' for more information." >&2;}
23394    { (exit 1); exit 1; }; };;
23395   --help | --hel | -h )
23396     echo "$ac_cs_usage"; exit 0 ;;
23397   --debug | --d* | -d )
23398     debug=: ;;
23399   --file | --fil | --fi | --f )
23400     $ac_shift
23401     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23402     ac_need_defaults=false;;
23403   --header | --heade | --head | --hea )
23404     $ac_shift
23405     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23406     ac_need_defaults=false;;
23407   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23408   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23409     ac_cs_silent=: ;;
23410
23411   # This is an error.
23412   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23413 Try \`$0 --help' for more information." >&5
23414 echo "$as_me: error: unrecognized option: $1
23415 Try \`$0 --help' for more information." >&2;}
23416    { (exit 1); exit 1; }; } ;;
23417
23418   *) ac_config_targets="$ac_config_targets $1" ;;
23419
23420   esac
23421   shift
23422 done
23423
23424 ac_configure_extra_args=
23425
23426 if $ac_cs_silent; then
23427   exec 6>/dev/null
23428   ac_configure_extra_args="$ac_configure_extra_args --silent"
23429 fi
23430
23431 _ACEOF
23432 cat >>$CONFIG_STATUS <<_ACEOF
23433 if \$ac_cs_recheck; then
23434   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23435   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23436 fi
23437
23438 _ACEOF
23439
23440 cat >>$CONFIG_STATUS <<_ACEOF
23441 #
23442 # INIT-COMMANDS section.
23443 #
23444
23445 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23454 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23455 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23456 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23457 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23458 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23459 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23460 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23461 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23462 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23463 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23464 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23465 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23466 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23467 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23468 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23469 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23470 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23471 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23472 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23473 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23474 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23475 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23476 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23477 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23478 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23479 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23480 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23481 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23482 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23483 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23484 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23485 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23486 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
23487 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23488 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23489 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23490 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23491 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23492
23493 _ACEOF
23494
23495
23496
23497 cat >>$CONFIG_STATUS <<\_ACEOF
23498 for ac_config_target in $ac_config_targets
23499 do
23500   case "$ac_config_target" in
23501   # Handling of arguments.
23502   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23503   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23504   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23505   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23506   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23507   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23508   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23509   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23510   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23511   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23512   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23513   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23514   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23515   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23516   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23517   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23518   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23519   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23520   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23521   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23522   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23523   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23524   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23525   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23526   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23527   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23528   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23529   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23530   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23531   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23532   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23533   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
23534   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
23535   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
23536   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
23537   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
23538   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
23539   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
23540   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
23541   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
23542   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
23543   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
23544   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
23545   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23546   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23547   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23548   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23549   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23550   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23551   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23552 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23553    { (exit 1); exit 1; }; };;
23554   esac
23555 done
23556
23557 # If the user did not use the arguments to specify the items to instantiate,
23558 # then the envvar interface is used.  Set only those that are not.
23559 # We use the long form for the default assignment because of an extremely
23560 # bizarre bug on SunOS 4.1.3.
23561 if $ac_need_defaults; then
23562   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23563   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23564   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23565 fi
23566
23567 # Have a temporary directory for convenience.  Make it in the build tree
23568 # simply because there is no reason to put it here, and in addition,
23569 # creating and moving files from /tmp can sometimes cause problems.
23570 # Create a temporary directory, and hook for its removal unless debugging.
23571 $debug ||
23572 {
23573   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23574   trap '{ (exit 1); exit 1; }' 1 2 13 15
23575 }
23576
23577 # Create a (secure) tmp directory for tmp files.
23578
23579 {
23580   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23581   test -n "$tmp" && test -d "$tmp"
23582 }  ||
23583 {
23584   tmp=./confstat$$-$RANDOM
23585   (umask 077 && mkdir $tmp)
23586 } ||
23587 {
23588    echo "$me: cannot create a temporary directory in ." >&2
23589    { (exit 1); exit 1; }
23590 }
23591
23592 _ACEOF
23593
23594 cat >>$CONFIG_STATUS <<_ACEOF
23595
23596 #
23597 # CONFIG_FILES section.
23598 #
23599
23600 # No need to generate the scripts if there are no CONFIG_FILES.
23601 # This happens for instance when ./config.status config.h
23602 if test -n "\$CONFIG_FILES"; then
23603   # Protect against being on the right side of a sed subst in config.status.
23604   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23605    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23606 s,@SHELL@,$SHELL,;t t
23607 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23608 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23609 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23610 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23611 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23612 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23613 s,@exec_prefix@,$exec_prefix,;t t
23614 s,@prefix@,$prefix,;t t
23615 s,@program_transform_name@,$program_transform_name,;t t
23616 s,@bindir@,$bindir,;t t
23617 s,@sbindir@,$sbindir,;t t
23618 s,@libexecdir@,$libexecdir,;t t
23619 s,@datadir@,$datadir,;t t
23620 s,@sysconfdir@,$sysconfdir,;t t
23621 s,@sharedstatedir@,$sharedstatedir,;t t
23622 s,@localstatedir@,$localstatedir,;t t
23623 s,@libdir@,$libdir,;t t
23624 s,@includedir@,$includedir,;t t
23625 s,@oldincludedir@,$oldincludedir,;t t
23626 s,@infodir@,$infodir,;t t
23627 s,@mandir@,$mandir,;t t
23628 s,@build_alias@,$build_alias,;t t
23629 s,@host_alias@,$host_alias,;t t
23630 s,@target_alias@,$target_alias,;t t
23631 s,@DEFS@,$DEFS,;t t
23632 s,@ECHO_C@,$ECHO_C,;t t
23633 s,@ECHO_N@,$ECHO_N,;t t
23634 s,@ECHO_T@,$ECHO_T,;t t
23635 s,@LIBS@,$LIBS,;t t
23636 s,@subdirs@,$subdirs,;t t
23637 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23638 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23639 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23640 s,@build@,$build,;t t
23641 s,@build_cpu@,$build_cpu,;t t
23642 s,@build_vendor@,$build_vendor,;t t
23643 s,@build_os@,$build_os,;t t
23644 s,@host@,$host,;t t
23645 s,@host_cpu@,$host_cpu,;t t
23646 s,@host_vendor@,$host_vendor,;t t
23647 s,@host_os@,$host_os,;t t
23648 s,@target@,$target,;t t
23649 s,@target_cpu@,$target_cpu,;t t
23650 s,@target_vendor@,$target_vendor,;t t
23651 s,@target_os@,$target_os,;t t
23652 s,@OS@,$OS,;t t
23653 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23654 s,@ARCH@,$ARCH,;t t
23655 s,@CXX@,$CXX,;t t
23656 s,@CXXFLAGS@,$CXXFLAGS,;t t
23657 s,@LDFLAGS@,$LDFLAGS,;t t
23658 s,@CPPFLAGS@,$CPPFLAGS,;t t
23659 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23660 s,@EXEEXT@,$EXEEXT,;t t
23661 s,@OBJEXT@,$OBJEXT,;t t
23662 s,@CC@,$CC,;t t
23663 s,@CFLAGS@,$CFLAGS,;t t
23664 s,@ac_ct_CC@,$ac_ct_CC,;t t
23665 s,@CPP@,$CPP,;t t
23666 s,@ifGNUmake@,$ifGNUmake,;t t
23667 s,@LEX@,$LEX,;t t
23668 s,@LEXLIB@,$LEXLIB,;t t
23669 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23670 s,@YACC@,$YACC,;t t
23671 s,@EGREP@,$EGREP,;t t
23672 s,@LN_S@,$LN_S,;t t
23673 s,@ECHO@,$ECHO,;t t
23674 s,@AR@,$AR,;t t
23675 s,@ac_ct_AR@,$ac_ct_AR,;t t
23676 s,@RANLIB@,$RANLIB,;t t
23677 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23678 s,@STRIP@,$STRIP,;t t
23679 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23680 s,@CXXCPP@,$CXXCPP,;t t
23681 s,@F77@,$F77,;t t
23682 s,@FFLAGS@,$FFLAGS,;t t
23683 s,@ac_ct_F77@,$ac_ct_F77,;t t
23684 s,@LIBTOOL@,$LIBTOOL,;t t
23685 s,@RPWD@,$RPWD,;t t
23686 s,@SED@,$SED,;t t
23687 s,@RM@,$RM,;t t
23688 s,@MKDIR@,$MKDIR,;t t
23689 s,@DATE@,$DATE,;t t
23690 s,@MV@,$MV,;t t
23691 s,@DOT@,$DOT,;t t
23692 s,@ETAGS@,$ETAGS,;t t
23693 s,@PYTHON@,$PYTHON,;t t
23694 s,@QMTEST@,$QMTEST,;t t
23695 s,@ALLOCA@,$ALLOCA,;t t
23696 s,@LIBOBJS@,$LIBOBJS,;t t
23697 s,@MMAP_FILE@,$MMAP_FILE,;t t
23698 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23699 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23700 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23701 s,@USE_SPEC@,$USE_SPEC,;t t
23702 s,@UPB@,$UPB,;t t
23703 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23704 s,@JIT@,$JIT,;t t
23705 s,@BCR@,$BCR,;t t
23706 s,@PAPIDIR@,$PAPIDIR,;t t
23707 s,@PURIFY@,$PURIFY,;t t
23708 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23709 CEOF
23710
23711 _ACEOF
23712
23713   cat >>$CONFIG_STATUS <<\_ACEOF
23714   # Split the substitutions into bite-sized pieces for seds with
23715   # small command number limits, like on Digital OSF/1 and HP-UX.
23716   ac_max_sed_lines=48
23717   ac_sed_frag=1 # Number of current file.
23718   ac_beg=1 # First line for current file.
23719   ac_end=$ac_max_sed_lines # Line after last line for current file.
23720   ac_more_lines=:
23721   ac_sed_cmds=
23722   while $ac_more_lines; do
23723     if test $ac_beg -gt 1; then
23724       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23725     else
23726       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23727     fi
23728     if test ! -s $tmp/subs.frag; then
23729       ac_more_lines=false
23730     else
23731       # The purpose of the label and of the branching condition is to
23732       # speed up the sed processing (if there are no `@' at all, there
23733       # is no need to browse any of the substitutions).
23734       # These are the two extra sed commands mentioned above.
23735       (echo ':t
23736   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23737       if test -z "$ac_sed_cmds"; then
23738         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23739       else
23740         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23741       fi
23742       ac_sed_frag=`expr $ac_sed_frag + 1`
23743       ac_beg=$ac_end
23744       ac_end=`expr $ac_end + $ac_max_sed_lines`
23745     fi
23746   done
23747   if test -z "$ac_sed_cmds"; then
23748     ac_sed_cmds=cat
23749   fi
23750 fi # test -n "$CONFIG_FILES"
23751
23752 _ACEOF
23753 cat >>$CONFIG_STATUS <<\_ACEOF
23754 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23755   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23756   case $ac_file in
23757   - | *:- | *:-:* ) # input from stdin
23758         cat >$tmp/stdin
23759         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23760         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23761   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23762         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23763   * )   ac_file_in=$ac_file.in ;;
23764   esac
23765
23766   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23767   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23768 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23769          X"$ac_file" : 'X\(//\)[^/]' \| \
23770          X"$ac_file" : 'X\(//\)$' \| \
23771          X"$ac_file" : 'X\(/\)' \| \
23772          .     : '\(.\)' 2>/dev/null ||
23773 echo X"$ac_file" |
23774     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23775           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23776           /^X\(\/\/\)$/{ s//\1/; q; }
23777           /^X\(\/\).*/{ s//\1/; q; }
23778           s/.*/./; q'`
23779   { if $as_mkdir_p; then
23780     mkdir -p "$ac_dir"
23781   else
23782     as_dir="$ac_dir"
23783     as_dirs=
23784     while test ! -d "$as_dir"; do
23785       as_dirs="$as_dir $as_dirs"
23786       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23787 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23788          X"$as_dir" : 'X\(//\)[^/]' \| \
23789          X"$as_dir" : 'X\(//\)$' \| \
23790          X"$as_dir" : 'X\(/\)' \| \
23791          .     : '\(.\)' 2>/dev/null ||
23792 echo X"$as_dir" |
23793     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23794           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23795           /^X\(\/\/\)$/{ s//\1/; q; }
23796           /^X\(\/\).*/{ s//\1/; q; }
23797           s/.*/./; q'`
23798     done
23799     test ! -n "$as_dirs" || mkdir $as_dirs
23800   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23801 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23802    { (exit 1); exit 1; }; }; }
23803
23804   ac_builddir=.
23805
23806 if test "$ac_dir" != .; then
23807   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23808   # A "../" for each directory in $ac_dir_suffix.
23809   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23810 else
23811   ac_dir_suffix= ac_top_builddir=
23812 fi
23813
23814 case $srcdir in
23815   .)  # No --srcdir option.  We are building in place.
23816     ac_srcdir=.
23817     if test -z "$ac_top_builddir"; then
23818        ac_top_srcdir=.
23819     else
23820        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23821     fi ;;
23822   [\\/]* | ?:[\\/]* )  # Absolute path.
23823     ac_srcdir=$srcdir$ac_dir_suffix;
23824     ac_top_srcdir=$srcdir ;;
23825   *) # Relative path.
23826     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23827     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23828 esac
23829 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23830 # absolute.
23831 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23832 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23833 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23834 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23835
23836
23837   case $INSTALL in
23838   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23839   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23840   esac
23841
23842   if test x"$ac_file" != x-; then
23843     { echo "$as_me:$LINENO: creating $ac_file" >&5
23844 echo "$as_me: creating $ac_file" >&6;}
23845     rm -f "$ac_file"
23846   fi
23847   # Let's still pretend it is `configure' which instantiates (i.e., don't
23848   # use $as_me), people would be surprised to read:
23849   #    /* config.h.  Generated by config.status.  */
23850   if test x"$ac_file" = x-; then
23851     configure_input=
23852   else
23853     configure_input="$ac_file.  "
23854   fi
23855   configure_input=$configure_input"Generated from `echo $ac_file_in |
23856                                      sed 's,.*/,,'` by configure."
23857
23858   # First look for the input files in the build tree, otherwise in the
23859   # src tree.
23860   ac_file_inputs=`IFS=:
23861     for f in $ac_file_in; do
23862       case $f in
23863       -) echo $tmp/stdin ;;
23864       [\\/$]*)
23865          # Absolute (can't be DOS-style, as IFS=:)
23866          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23867 echo "$as_me: error: cannot find input file: $f" >&2;}
23868    { (exit 1); exit 1; }; }
23869          echo $f;;
23870       *) # Relative
23871          if test -f "$f"; then
23872            # Build tree
23873            echo $f
23874          elif test -f "$srcdir/$f"; then
23875            # Source tree
23876            echo $srcdir/$f
23877          else
23878            # /dev/null tree
23879            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23880 echo "$as_me: error: cannot find input file: $f" >&2;}
23881    { (exit 1); exit 1; }; }
23882          fi;;
23883       esac
23884     done` || { (exit 1); exit 1; }
23885 _ACEOF
23886 cat >>$CONFIG_STATUS <<_ACEOF
23887   sed "$ac_vpsub
23888 $extrasub
23889 _ACEOF
23890 cat >>$CONFIG_STATUS <<\_ACEOF
23891 :t
23892 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23893 s,@configure_input@,$configure_input,;t t
23894 s,@srcdir@,$ac_srcdir,;t t
23895 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23896 s,@top_srcdir@,$ac_top_srcdir,;t t
23897 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23898 s,@builddir@,$ac_builddir,;t t
23899 s,@abs_builddir@,$ac_abs_builddir,;t t
23900 s,@top_builddir@,$ac_top_builddir,;t t
23901 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23902 s,@INSTALL@,$ac_INSTALL,;t t
23903 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23904   rm -f $tmp/stdin
23905   if test x"$ac_file" != x-; then
23906     mv $tmp/out $ac_file
23907   else
23908     cat $tmp/out
23909     rm -f $tmp/out
23910   fi
23911
23912 done
23913 _ACEOF
23914 cat >>$CONFIG_STATUS <<\_ACEOF
23915
23916 #
23917 # CONFIG_HEADER section.
23918 #
23919
23920 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23921 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23922 #
23923 # ac_d sets the value in "#define NAME VALUE" lines.
23924 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
23925 ac_dB='[        ].*$,\1#\2'
23926 ac_dC=' '
23927 ac_dD=',;t'
23928 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23929 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23930 ac_uB='$,\1#\2define\3'
23931 ac_uC=' '
23932 ac_uD=',;t'
23933
23934 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23935   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23936   case $ac_file in
23937   - | *:- | *:-:* ) # input from stdin
23938         cat >$tmp/stdin
23939         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23940         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23941   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23942         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23943   * )   ac_file_in=$ac_file.in ;;
23944   esac
23945
23946   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23947 echo "$as_me: creating $ac_file" >&6;}
23948
23949   # First look for the input files in the build tree, otherwise in the
23950   # src tree.
23951   ac_file_inputs=`IFS=:
23952     for f in $ac_file_in; do
23953       case $f in
23954       -) echo $tmp/stdin ;;
23955       [\\/$]*)
23956          # Absolute (can't be DOS-style, as IFS=:)
23957          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23958 echo "$as_me: error: cannot find input file: $f" >&2;}
23959    { (exit 1); exit 1; }; }
23960          echo $f;;
23961       *) # Relative
23962          if test -f "$f"; then
23963            # Build tree
23964            echo $f
23965          elif test -f "$srcdir/$f"; then
23966            # Source tree
23967            echo $srcdir/$f
23968          else
23969            # /dev/null tree
23970            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23971 echo "$as_me: error: cannot find input file: $f" >&2;}
23972    { (exit 1); exit 1; }; }
23973          fi;;
23974       esac
23975     done` || { (exit 1); exit 1; }
23976   # Remove the trailing spaces.
23977   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
23978
23979 _ACEOF
23980
23981 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23982 # `conftest.undefs', that substitutes the proper values into
23983 # config.h.in to produce config.h.  The first handles `#define'
23984 # templates, and the second `#undef' templates.
23985 # And first: Protect against being on the right side of a sed subst in
23986 # config.status.  Protect against being in an unquoted here document
23987 # in config.status.
23988 rm -f conftest.defines conftest.undefs
23989 # Using a here document instead of a string reduces the quoting nightmare.
23990 # Putting comments in sed scripts is not portable.
23991 #
23992 # `end' is used to avoid that the second main sed command (meant for
23993 # 0-ary CPP macros) applies to n-ary macro definitions.
23994 # See the Autoconf documentation for `clear'.
23995 cat >confdef2sed.sed <<\_ACEOF
23996 s/[\\&,]/\\&/g
23997 s,[\\$`],\\&,g
23998 t clear
23999 : clear
24000 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24001 t end
24002 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24003 : end
24004 _ACEOF
24005 # If some macros were called several times there might be several times
24006 # the same #defines, which is useless.  Nevertheless, we may not want to
24007 # sort them, since we want the *last* AC-DEFINE to be honored.
24008 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24009 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24010 rm -f confdef2sed.sed
24011
24012 # This sed command replaces #undef with comments.  This is necessary, for
24013 # example, in the case of _POSIX_SOURCE, which is predefined and required
24014 # on some systems where configure will not decide to define it.
24015 cat >>conftest.undefs <<\_ACEOF
24016 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24017 _ACEOF
24018
24019 # Break up conftest.defines because some shells have a limit on the size
24020 # of here documents, and old seds have small limits too (100 cmds).
24021 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24022 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24023 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24024 echo '  :' >>$CONFIG_STATUS
24025 rm -f conftest.tail
24026 while grep . conftest.defines >/dev/null
24027 do
24028   # Write a limited-size here document to $tmp/defines.sed.
24029   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24030   # Speed up: don't consider the non `#define' lines.
24031   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24032   # Work around the forget-to-reset-the-flag bug.
24033   echo 't clr' >>$CONFIG_STATUS
24034   echo ': clr' >>$CONFIG_STATUS
24035   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24036   echo 'CEOF
24037   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24038   rm -f $tmp/in
24039   mv $tmp/out $tmp/in
24040 ' >>$CONFIG_STATUS
24041   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24042   rm -f conftest.defines
24043   mv conftest.tail conftest.defines
24044 done
24045 rm -f conftest.defines
24046 echo '  fi # grep' >>$CONFIG_STATUS
24047 echo >>$CONFIG_STATUS
24048
24049 # Break up conftest.undefs because some shells have a limit on the size
24050 # of here documents, and old seds have small limits too (100 cmds).
24051 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24052 rm -f conftest.tail
24053 while grep . conftest.undefs >/dev/null
24054 do
24055   # Write a limited-size here document to $tmp/undefs.sed.
24056   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24057   # Speed up: don't consider the non `#undef'
24058   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24059   # Work around the forget-to-reset-the-flag bug.
24060   echo 't clr' >>$CONFIG_STATUS
24061   echo ': clr' >>$CONFIG_STATUS
24062   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24063   echo 'CEOF
24064   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24065   rm -f $tmp/in
24066   mv $tmp/out $tmp/in
24067 ' >>$CONFIG_STATUS
24068   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24069   rm -f conftest.undefs
24070   mv conftest.tail conftest.undefs
24071 done
24072 rm -f conftest.undefs
24073
24074 cat >>$CONFIG_STATUS <<\_ACEOF
24075   # Let's still pretend it is `configure' which instantiates (i.e., don't
24076   # use $as_me), people would be surprised to read:
24077   #    /* config.h.  Generated by config.status.  */
24078   if test x"$ac_file" = x-; then
24079     echo "/* Generated by configure.  */" >$tmp/config.h
24080   else
24081     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24082   fi
24083   cat $tmp/in >>$tmp/config.h
24084   rm -f $tmp/in
24085   if test x"$ac_file" != x-; then
24086     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24087       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24088 echo "$as_me: $ac_file is unchanged" >&6;}
24089     else
24090       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24091 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24092          X"$ac_file" : 'X\(//\)[^/]' \| \
24093          X"$ac_file" : 'X\(//\)$' \| \
24094          X"$ac_file" : 'X\(/\)' \| \
24095          .     : '\(.\)' 2>/dev/null ||
24096 echo X"$ac_file" |
24097     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24098           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24099           /^X\(\/\/\)$/{ s//\1/; q; }
24100           /^X\(\/\).*/{ s//\1/; q; }
24101           s/.*/./; q'`
24102       { if $as_mkdir_p; then
24103     mkdir -p "$ac_dir"
24104   else
24105     as_dir="$ac_dir"
24106     as_dirs=
24107     while test ! -d "$as_dir"; do
24108       as_dirs="$as_dir $as_dirs"
24109       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24110 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24111          X"$as_dir" : 'X\(//\)[^/]' \| \
24112          X"$as_dir" : 'X\(//\)$' \| \
24113          X"$as_dir" : 'X\(/\)' \| \
24114          .     : '\(.\)' 2>/dev/null ||
24115 echo X"$as_dir" |
24116     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24117           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24118           /^X\(\/\/\)$/{ s//\1/; q; }
24119           /^X\(\/\).*/{ s//\1/; q; }
24120           s/.*/./; q'`
24121     done
24122     test ! -n "$as_dirs" || mkdir $as_dirs
24123   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24124 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24125    { (exit 1); exit 1; }; }; }
24126
24127       rm -f $ac_file
24128       mv $tmp/config.h $ac_file
24129     fi
24130   else
24131     cat $tmp/config.h
24132     rm -f $tmp/config.h
24133   fi
24134 done
24135 _ACEOF
24136 cat >>$CONFIG_STATUS <<\_ACEOF
24137
24138 #
24139 # CONFIG_COMMANDS section.
24140 #
24141 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24142   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24143   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24144   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24145 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24146          X"$ac_dest" : 'X\(//\)[^/]' \| \
24147          X"$ac_dest" : 'X\(//\)$' \| \
24148          X"$ac_dest" : 'X\(/\)' \| \
24149          .     : '\(.\)' 2>/dev/null ||
24150 echo X"$ac_dest" |
24151     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24152           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24153           /^X\(\/\/\)$/{ s//\1/; q; }
24154           /^X\(\/\).*/{ s//\1/; q; }
24155           s/.*/./; q'`
24156   ac_builddir=.
24157
24158 if test "$ac_dir" != .; then
24159   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24160   # A "../" for each directory in $ac_dir_suffix.
24161   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24162 else
24163   ac_dir_suffix= ac_top_builddir=
24164 fi
24165
24166 case $srcdir in
24167   .)  # No --srcdir option.  We are building in place.
24168     ac_srcdir=.
24169     if test -z "$ac_top_builddir"; then
24170        ac_top_srcdir=.
24171     else
24172        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24173     fi ;;
24174   [\\/]* | ?:[\\/]* )  # Absolute path.
24175     ac_srcdir=$srcdir$ac_dir_suffix;
24176     ac_top_srcdir=$srcdir ;;
24177   *) # Relative path.
24178     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24179     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24180 esac
24181 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24182 # absolute.
24183 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24184 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24185 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24186 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24187
24188
24189   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24190 echo "$as_me: executing $ac_dest commands" >&6;}
24191   case $ac_dest in
24192     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24193     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24194     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24195     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24196     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24197     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24198     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24199     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24200     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24201     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24202     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24203     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24204     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24205     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24206     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24207     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24208     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24209     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24210     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24211     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24212     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24213     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24214     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24215     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24216     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24217     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24218     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 ;;
24219     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24220     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24221     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 ;;
24222     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 ;;
24223     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 ;;
24224     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 ;;
24225     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 ;;
24226     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 ;;
24227     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 ;;
24228     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 ;;
24229     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 ;;
24230     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 ;;
24231     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 ;;
24232     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 ;;
24233     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 ;;
24234     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24235     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24236     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24237     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24238     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24239   esac
24240 done
24241 _ACEOF
24242
24243 cat >>$CONFIG_STATUS <<\_ACEOF
24244
24245 { (exit 0); exit 0; }
24246 _ACEOF
24247 chmod +x $CONFIG_STATUS
24248 ac_clean_files=$ac_clean_files_save
24249
24250
24251 # configure is writing to config.log, and then calls config.status.
24252 # config.status does its own redirection, appending to config.log.
24253 # Unfortunately, on DOS this fails, as config.log is still kept open
24254 # by configure, so config.status won't be able to write to it; its
24255 # output is simply discarded.  So we exec the FD to /dev/null,
24256 # effectively closing config.log, so it can be properly (re)opened and
24257 # appended to by config.status.  When coming back to configure, we
24258 # need to make the FD available again.
24259 if test "$no_create" != yes; then
24260   ac_cs_success=:
24261   ac_config_status_args=
24262   test "$silent" = yes &&
24263     ac_config_status_args="$ac_config_status_args --quiet"
24264   exec 5>/dev/null
24265   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24266   exec 5>>config.log
24267   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24268   # would make configure fail if this is the last instruction.
24269   $ac_cs_success || { (exit 1); exit 1; }
24270 fi
24271
24272 #
24273 # CONFIG_SUBDIRS section.
24274 #
24275 if test "$no_recursion" != yes; then
24276
24277   # Remove --cache-file and --srcdir arguments so they do not pile up.
24278   ac_sub_configure_args=
24279   ac_prev=
24280   for ac_arg in $ac_configure_args; do
24281     if test -n "$ac_prev"; then
24282       ac_prev=
24283       continue
24284     fi
24285     case $ac_arg in
24286     -cache-file | --cache-file | --cache-fil | --cache-fi \
24287     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24288       ac_prev=cache_file ;;
24289     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24290     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24291     | --c=*)
24292       ;;
24293     --config-cache | -C)
24294       ;;
24295     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24296       ac_prev=srcdir ;;
24297     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24298       ;;
24299     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24300       ac_prev=prefix ;;
24301     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24302       ;;
24303     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24304     esac
24305   done
24306
24307   # Always prepend --prefix to ensure using the same prefix
24308   # in subdir configurations.
24309   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24310
24311   ac_popdir=`pwd`
24312   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24313
24314     # Do not complain, so a configure script can configure whichever
24315     # parts of a large source tree are present.
24316     test -d $srcdir/$ac_dir || continue
24317
24318     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24319 echo "$as_me: configuring in $ac_dir" >&6;}
24320     { if $as_mkdir_p; then
24321     mkdir -p "$ac_dir"
24322   else
24323     as_dir="$ac_dir"
24324     as_dirs=
24325     while test ! -d "$as_dir"; do
24326       as_dirs="$as_dir $as_dirs"
24327       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24329          X"$as_dir" : 'X\(//\)[^/]' \| \
24330          X"$as_dir" : 'X\(//\)$' \| \
24331          X"$as_dir" : 'X\(/\)' \| \
24332          .     : '\(.\)' 2>/dev/null ||
24333 echo X"$as_dir" |
24334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24335           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24336           /^X\(\/\/\)$/{ s//\1/; q; }
24337           /^X\(\/\).*/{ s//\1/; q; }
24338           s/.*/./; q'`
24339     done
24340     test ! -n "$as_dirs" || mkdir $as_dirs
24341   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24342 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24343    { (exit 1); exit 1; }; }; }
24344
24345     ac_builddir=.
24346
24347 if test "$ac_dir" != .; then
24348   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24349   # A "../" for each directory in $ac_dir_suffix.
24350   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24351 else
24352   ac_dir_suffix= ac_top_builddir=
24353 fi
24354
24355 case $srcdir in
24356   .)  # No --srcdir option.  We are building in place.
24357     ac_srcdir=.
24358     if test -z "$ac_top_builddir"; then
24359        ac_top_srcdir=.
24360     else
24361        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24362     fi ;;
24363   [\\/]* | ?:[\\/]* )  # Absolute path.
24364     ac_srcdir=$srcdir$ac_dir_suffix;
24365     ac_top_srcdir=$srcdir ;;
24366   *) # Relative path.
24367     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24368     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24369 esac
24370 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24371 # absolute.
24372 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24373 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24374 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24375 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24376
24377
24378     cd $ac_dir
24379
24380     # Check for guested configure; otherwise get Cygnus style configure.
24381     if test -f $ac_srcdir/configure.gnu; then
24382       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24383     elif test -f $ac_srcdir/configure; then
24384       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24385     elif test -f $ac_srcdir/configure.in; then
24386       ac_sub_configure=$ac_configure
24387     else
24388       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24389 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24390       ac_sub_configure=
24391     fi
24392
24393     # The recursion is here.
24394     if test -n "$ac_sub_configure"; then
24395       # Make the cache file name correct relative to the subdirectory.
24396       case $cache_file in
24397       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24398       *) # Relative path.
24399         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24400       esac
24401
24402       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24403 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24404       # The eval makes quoting arguments work.
24405       eval $ac_sub_configure $ac_sub_configure_args \
24406            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24407         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24408 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24409    { (exit 1); exit 1; }; }
24410     fi
24411
24412     cd $ac_popdir
24413   done
24414 fi
24415
24416
24417 if test $llvmgccwarn = yes
24418 then
24419         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
24420 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
24421         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
24422 echo "$as_me: WARNING: ***** appear to be working." >&2;}
24423         { echo "$as_me:$LINENO: WARNING: ***** " >&5
24424 echo "$as_me: WARNING: ***** " >&2;}
24425         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
24426 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
24427         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
24428 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
24429         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
24430 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
24431 fi