Updated to list all code/directories that have additional or alternate
[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.1].
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.1]'
426 PACKAGE_STRING='[LLVM] [1.1]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 ac_subdirs_all="$ac_subdirs_all projects/${i}"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_unique_file=""Makefile.config.in""
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC SPEC95_ROOT USE_SPEC95 UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CXX_set=${CXX+set}
910 ac_env_CXX_value=$CXX
911 ac_cv_env_CXX_set=${CXX+set}
912 ac_cv_env_CXX_value=$CXX
913 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_env_CXXFLAGS_value=$CXXFLAGS
915 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CC_set=${CC+set}
926 ac_env_CC_value=$CC
927 ac_cv_env_CC_set=${CC+set}
928 ac_cv_env_CC_value=$CC
929 ac_env_CFLAGS_set=${CFLAGS+set}
930 ac_env_CFLAGS_value=$CFLAGS
931 ac_cv_env_CFLAGS_set=${CFLAGS+set}
932 ac_cv_env_CFLAGS_value=$CFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures [LLVM] [1.1] 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.1]:";;
1020    esac
1021   cat <<\_ACEOF
1022
1023 Optional Features:
1024   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026   --enable-shared[=PKGS]
1027                           build shared libraries [default=yes]
1028   --enable-static[=PKGS]
1029                           build static libraries [default=yes]
1030   --enable-fast-install[=PKGS]
1031                           optimize for fast installation [default=yes]
1032   --disable-libtool-lock  avoid locking (might break parallel builds)
1033   --enable-optimized      Compile with optimizations enabled (default is NO)
1034   --enable-spec2000       Compile SPEC 2000 benchmarks (default is NO)
1035   --enable-spec95         Compile SPEC 95 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
1053 Some influential environment variables:
1054   CXX         C++ compiler command
1055   CXXFLAGS    C++ compiler flags
1056   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1057               nonstandard directory <lib dir>
1058   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059               headers in a nonstandard directory <include dir>
1060   CC          C compiler command
1061   CFLAGS      C compiler flags
1062   CPP         C preprocessor
1063   CXXCPP      C++ preprocessor
1064   F77         Fortran 77 compiler command
1065   FFLAGS      Fortran 77 compiler flags
1066
1067 Use these variables to override the choices made by `configure' or to help
1068 it to find libraries and programs with nonstandard names/locations.
1069
1070 Report bugs to <llvmbugs@cs.uiuc.edu>.
1071 _ACEOF
1072 fi
1073
1074 if test "$ac_init_help" = "recursive"; then
1075   # If there are subdirs, report their specific --help.
1076   ac_popdir=`pwd`
1077   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078     test -d $ac_dir || continue
1079     ac_builddir=.
1080
1081 if test "$ac_dir" != .; then
1082   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083   # A "../" for each directory in $ac_dir_suffix.
1084   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085 else
1086   ac_dir_suffix= ac_top_builddir=
1087 fi
1088
1089 case $srcdir in
1090   .)  # No --srcdir option.  We are building in place.
1091     ac_srcdir=.
1092     if test -z "$ac_top_builddir"; then
1093        ac_top_srcdir=.
1094     else
1095        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096     fi ;;
1097   [\\/]* | ?:[\\/]* )  # Absolute path.
1098     ac_srcdir=$srcdir$ac_dir_suffix;
1099     ac_top_srcdir=$srcdir ;;
1100   *) # Relative path.
1101     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103 esac
1104 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1105 # absolute.
1106 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1107 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1108 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1109 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1110
1111     cd $ac_dir
1112     # Check for guested configure; otherwise get Cygnus style configure.
1113     if test -f $ac_srcdir/configure.gnu; then
1114       echo
1115       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1116     elif test -f $ac_srcdir/configure; then
1117       echo
1118       $SHELL $ac_srcdir/configure  --help=recursive
1119     elif test -f $ac_srcdir/configure.ac ||
1120            test -f $ac_srcdir/configure.in; then
1121       echo
1122       $ac_configure --help
1123     else
1124       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1125     fi
1126     cd $ac_popdir
1127   done
1128 fi
1129
1130 test -n "$ac_init_help" && exit 0
1131 if $ac_init_version; then
1132   cat <<\_ACEOF
1133 [LLVM] configure [1.1]
1134 generated by GNU Autoconf 2.57
1135
1136 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1137 Free Software Foundation, Inc.
1138 This configure script is free software; the Free Software Foundation
1139 gives unlimited permission to copy, distribute and modify it.
1140 _ACEOF
1141   exit 0
1142 fi
1143 exec 5>config.log
1144 cat >&5 <<_ACEOF
1145 This file contains any messages produced by compilers while
1146 running configure, to aid debugging if configure makes a mistake.
1147
1148 It was created by [LLVM] $as_me [1.1], which was
1149 generated by GNU Autoconf 2.57.  Invocation command line was
1150
1151   $ $0 $@
1152
1153 _ACEOF
1154 {
1155 cat <<_ASUNAME
1156 ## --------- ##
1157 ## Platform. ##
1158 ## --------- ##
1159
1160 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1161 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1162 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1163 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1164 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165
1166 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1167 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1168
1169 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1170 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1171 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1172 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1173 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1174 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1175 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1176
1177 _ASUNAME
1178
1179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1180 for as_dir in $PATH
1181 do
1182   IFS=$as_save_IFS
1183   test -z "$as_dir" && as_dir=.
1184   echo "PATH: $as_dir"
1185 done
1186
1187 } >&5
1188
1189 cat >&5 <<_ACEOF
1190
1191
1192 ## ----------- ##
1193 ## Core tests. ##
1194 ## ----------- ##
1195
1196 _ACEOF
1197
1198
1199 # Keep a trace of the command line.
1200 # Strip out --no-create and --no-recursion so they do not pile up.
1201 # Strip out --silent because we don't want to record it for future runs.
1202 # Also quote any args containing shell meta-characters.
1203 # Make two passes to allow for proper duplicate-argument suppression.
1204 ac_configure_args=
1205 ac_configure_args0=
1206 ac_configure_args1=
1207 ac_sep=
1208 ac_must_keep_next=false
1209 for ac_pass in 1 2
1210 do
1211   for ac_arg
1212   do
1213     case $ac_arg in
1214     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1215     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216     | -silent | --silent | --silen | --sile | --sil)
1217       continue ;;
1218     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1220     esac
1221     case $ac_pass in
1222     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223     2)
1224       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1225       if test $ac_must_keep_next = true; then
1226         ac_must_keep_next=false # Got value, back to normal.
1227       else
1228         case $ac_arg in
1229           *=* | --config-cache | -C | -disable-* | --disable-* \
1230           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1231           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1232           | -with-* | --with-* | -without-* | --without-* | --x)
1233             case "$ac_configure_args0 " in
1234               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1235             esac
1236             ;;
1237           -* ) ac_must_keep_next=true ;;
1238         esac
1239       fi
1240       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1241       # Get rid of the leading space.
1242       ac_sep=" "
1243       ;;
1244     esac
1245   done
1246 done
1247 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1248 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1249
1250 # When interrupted or exit'd, cleanup temporary files, and complete
1251 # config.log.  We remove comments because anyway the quotes in there
1252 # would cause problems or look ugly.
1253 # WARNING: Be sure not to use single quotes in there, as some shells,
1254 # such as our DU 5.0 friend, will then `close' the trap.
1255 trap 'exit_status=$?
1256   # Save into config.log some information that might help in debugging.
1257   {
1258     echo
1259
1260     cat <<\_ASBOX
1261 ## ---------------- ##
1262 ## Cache variables. ##
1263 ## ---------------- ##
1264 _ASBOX
1265     echo
1266     # The following way of writing the cache mishandles newlines in values,
1267 {
1268   (set) 2>&1 |
1269     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1270     *ac_space=\ *)
1271       sed -n \
1272         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1273           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1274       ;;
1275     *)
1276       sed -n \
1277         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1278       ;;
1279     esac;
1280 }
1281     echo
1282
1283     cat <<\_ASBOX
1284 ## ----------------- ##
1285 ## Output variables. ##
1286 ## ----------------- ##
1287 _ASBOX
1288     echo
1289     for ac_var in $ac_subst_vars
1290     do
1291       eval ac_val=$`echo $ac_var`
1292       echo "$ac_var='"'"'$ac_val'"'"'"
1293     done | sort
1294     echo
1295
1296     if test -n "$ac_subst_files"; then
1297       cat <<\_ASBOX
1298 ## ------------- ##
1299 ## Output files. ##
1300 ## ------------- ##
1301 _ASBOX
1302       echo
1303       for ac_var in $ac_subst_files
1304       do
1305         eval ac_val=$`echo $ac_var`
1306         echo "$ac_var='"'"'$ac_val'"'"'"
1307       done | sort
1308       echo
1309     fi
1310
1311     if test -s confdefs.h; then
1312       cat <<\_ASBOX
1313 ## ----------- ##
1314 ## confdefs.h. ##
1315 ## ----------- ##
1316 _ASBOX
1317       echo
1318       sed "/^$/d" confdefs.h | sort
1319       echo
1320     fi
1321     test "$ac_signal" != 0 &&
1322       echo "$as_me: caught signal $ac_signal"
1323     echo "$as_me: exit $exit_status"
1324   } >&5
1325   rm -f core core.* *.core &&
1326   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1327     exit $exit_status
1328      ' 0
1329 for ac_signal in 1 2 13 15; do
1330   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1331 done
1332 ac_signal=0
1333
1334 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1335 rm -rf conftest* confdefs.h
1336 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1337 echo >confdefs.h
1338
1339 # Predefined preprocessor variables.
1340
1341 cat >>confdefs.h <<_ACEOF
1342 #define PACKAGE_NAME "$PACKAGE_NAME"
1343 _ACEOF
1344
1345
1346 cat >>confdefs.h <<_ACEOF
1347 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1348 _ACEOF
1349
1350
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1353 _ACEOF
1354
1355
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_STRING "$PACKAGE_STRING"
1358 _ACEOF
1359
1360
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1363 _ACEOF
1364
1365
1366 # Let the site file select an alternate cache file if it wants to.
1367 # Prefer explicitly selected file to automatically selected ones.
1368 if test -z "$CONFIG_SITE"; then
1369   if test "x$prefix" != xNONE; then
1370     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1371   else
1372     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1373   fi
1374 fi
1375 for ac_site_file in $CONFIG_SITE; do
1376   if test -r "$ac_site_file"; then
1377     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1378 echo "$as_me: loading site script $ac_site_file" >&6;}
1379     sed 's/^/| /' "$ac_site_file" >&5
1380     . "$ac_site_file"
1381   fi
1382 done
1383
1384 if test -r "$cache_file"; then
1385   # Some versions of bash will fail to source /dev/null (special
1386   # files actually), so we avoid doing that.
1387   if test -f "$cache_file"; then
1388     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1389 echo "$as_me: loading cache $cache_file" >&6;}
1390     case $cache_file in
1391       [\\/]* | ?:[\\/]* ) . $cache_file;;
1392       *)                      . ./$cache_file;;
1393     esac
1394   fi
1395 else
1396   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1397 echo "$as_me: creating cache $cache_file" >&6;}
1398   >$cache_file
1399 fi
1400
1401 # Check that the precious variables saved in the cache have kept the same
1402 # value.
1403 ac_cache_corrupted=false
1404 for ac_var in `(set) 2>&1 |
1405                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1406   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1407   eval ac_new_set=\$ac_env_${ac_var}_set
1408   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1409   eval ac_new_val="\$ac_env_${ac_var}_value"
1410   case $ac_old_set,$ac_new_set in
1411     set,)
1412       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1413 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1414       ac_cache_corrupted=: ;;
1415     ,set)
1416       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1417 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1418       ac_cache_corrupted=: ;;
1419     ,);;
1420     *)
1421       if test "x$ac_old_val" != "x$ac_new_val"; then
1422         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1423 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1424         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1425 echo "$as_me:   former value:  $ac_old_val" >&2;}
1426         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1427 echo "$as_me:   current value: $ac_new_val" >&2;}
1428         ac_cache_corrupted=:
1429       fi;;
1430   esac
1431   # Pass precious variables to config.status.
1432   if test "$ac_new_set" = set; then
1433     case $ac_new_val in
1434     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1435       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1436     *) ac_arg=$ac_var=$ac_new_val ;;
1437     esac
1438     case " $ac_configure_args " in
1439       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1440       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1441     esac
1442   fi
1443 done
1444 if $ac_cache_corrupted; then
1445   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1446 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1447   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1448 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1449    { (exit 1); exit 1; }; }
1450 fi
1451
1452 ac_ext=c
1453 ac_cpp='$CPP $CPPFLAGS'
1454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1457
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 ac_aux_dir=
1486 for ac_dir in autoconf $srcdir/autoconf; do
1487   if test -f $ac_dir/install-sh; then
1488     ac_aux_dir=$ac_dir
1489     ac_install_sh="$ac_aux_dir/install-sh -c"
1490     break
1491   elif test -f $ac_dir/install.sh; then
1492     ac_aux_dir=$ac_dir
1493     ac_install_sh="$ac_aux_dir/install.sh -c"
1494     break
1495   elif test -f $ac_dir/shtool; then
1496     ac_aux_dir=$ac_dir
1497     ac_install_sh="$ac_aux_dir/shtool install -c"
1498     break
1499   fi
1500 done
1501 if test -z "$ac_aux_dir"; then
1502   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1503 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1504    { (exit 1); exit 1; }; }
1505 fi
1506 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1507 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1508 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1509
1510
1511 if test ${srcdir} != "."
1512 then
1513         if test -f ${srcdir}/include/Config/config.h
1514         then
1515                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1516 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1517    { (exit 1); exit 1; }; }
1518         fi
1519 fi
1520
1521 for i in `ls ${srcdir}/projects`
1522 do
1523   if test ${i} != "CVS"
1524   then
1525     if test -f ${srcdir}/projects/${i}/configure
1526     then
1527
1528
1529 subdirs="$subdirs projects/${i}"
1530
1531     fi
1532   fi
1533 done
1534
1535           ac_config_headers="$ac_config_headers include/Config/config.h"
1536
1537           ac_config_commands="$ac_config_commands Makefile"
1538
1539
1540           ac_config_commands="$ac_config_commands Makefile.common"
1541
1542
1543           ac_config_commands="$ac_config_commands lib/Makefile"
1544
1545
1546           ac_config_commands="$ac_config_commands runtime/Makefile"
1547
1548
1549           ac_config_commands="$ac_config_commands test/Makefile"
1550
1551
1552           ac_config_commands="$ac_config_commands test/Makefile.tests"
1553
1554
1555           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1556
1557
1558           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1559
1560
1561           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1562
1563
1564           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1565
1566
1567           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1568
1569
1570           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1571
1572
1573           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1574
1575
1576           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1577
1578
1579           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1580
1581
1582           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1583
1584
1585           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1586
1587
1588           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1589
1590
1591           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1592
1593
1594           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1595
1596
1597           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1598
1599
1600           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1601
1602
1603           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1604
1605
1606           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1607
1608
1609           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1610
1611
1612           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1613
1614
1615           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1616
1617
1618           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1619
1620
1621           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1622
1623
1624           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1625
1626
1627           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1628
1629
1630           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1631
1632
1633           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1634
1635
1636           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1637
1638
1639           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1640
1641
1642           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1643
1644
1645           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1646
1647
1648           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1649
1650
1651           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1652
1653
1654           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1655
1656
1657           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1658
1659
1660           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1661
1662
1663           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1664
1665
1666           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1667
1668
1669           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1670
1671
1672           ac_config_commands="$ac_config_commands tools/Makefile"
1673
1674
1675           ac_config_commands="$ac_config_commands utils/Makefile"
1676
1677
1678           ac_config_commands="$ac_config_commands projects/Makefile"
1679
1680
1681
1682 # Find a good install program.  We prefer a C program (faster),
1683 # so one script is as good as another.  But avoid the broken or
1684 # incompatible versions:
1685 # SysV /etc/install, /usr/sbin/install
1686 # SunOS /usr/etc/install
1687 # IRIX /sbin/install
1688 # AIX /bin/install
1689 # AmigaOS /C/install, which installs bootblocks on floppy discs
1690 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1691 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1692 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1693 # ./install, which can be erroneously created by make from ./install.sh.
1694 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1695 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1696 if test -z "$INSTALL"; then
1697 if test "${ac_cv_path_install+set}" = set; then
1698   echo $ECHO_N "(cached) $ECHO_C" >&6
1699 else
1700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   # Account for people who put trailing slashes in PATH elements.
1706 case $as_dir/ in
1707   ./ | .// | /cC/* | \
1708   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1709   /usr/ucb/* ) ;;
1710   *)
1711     # OSF1 and SCO ODT 3.0 have their own names for install.
1712     # Don't use installbsd from OSF since it installs stuff as root
1713     # by default.
1714     for ac_prog in ginstall scoinst install; do
1715       for ac_exec_ext in '' $ac_executable_extensions; do
1716         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1717           if test $ac_prog = install &&
1718             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1719             # AIX install.  It has an incompatible calling convention.
1720             :
1721           elif test $ac_prog = install &&
1722             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1723             # program-specific install script used by HP pwplus--don't use.
1724             :
1725           else
1726             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1727             break 3
1728           fi
1729         fi
1730       done
1731     done
1732     ;;
1733 esac
1734 done
1735
1736
1737 fi
1738   if test "${ac_cv_path_install+set}" = set; then
1739     INSTALL=$ac_cv_path_install
1740   else
1741     # As a last resort, use the slow shell script.  We don't cache a
1742     # path for INSTALL within a source directory, because that will
1743     # break other packages using the cache if that directory is
1744     # removed, or if the path is relative.
1745     INSTALL=$ac_install_sh
1746   fi
1747 fi
1748 echo "$as_me:$LINENO: result: $INSTALL" >&5
1749 echo "${ECHO_T}$INSTALL" >&6
1750
1751 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1752 # It thinks the first close brace ends the variable substitution.
1753 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1754
1755 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1756
1757 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1758
1759
1760 # Make sure we can run config.sub.
1761 $ac_config_sub sun4 >/dev/null 2>&1 ||
1762   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1763 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1764    { (exit 1); exit 1; }; }
1765
1766 echo "$as_me:$LINENO: checking build system type" >&5
1767 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1768 if test "${ac_cv_build+set}" = set; then
1769   echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771   ac_cv_build_alias=$build_alias
1772 test -z "$ac_cv_build_alias" &&
1773   ac_cv_build_alias=`$ac_config_guess`
1774 test -z "$ac_cv_build_alias" &&
1775   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1776 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1777    { (exit 1); exit 1; }; }
1778 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1779   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1780 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1781    { (exit 1); exit 1; }; }
1782
1783 fi
1784 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1785 echo "${ECHO_T}$ac_cv_build" >&6
1786 build=$ac_cv_build
1787 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1788 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1789 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1790
1791
1792 echo "$as_me:$LINENO: checking host system type" >&5
1793 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1794 if test "${ac_cv_host+set}" = set; then
1795   echo $ECHO_N "(cached) $ECHO_C" >&6
1796 else
1797   ac_cv_host_alias=$host_alias
1798 test -z "$ac_cv_host_alias" &&
1799   ac_cv_host_alias=$ac_cv_build_alias
1800 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1801   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1802 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1803    { (exit 1); exit 1; }; }
1804
1805 fi
1806 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1807 echo "${ECHO_T}$ac_cv_host" >&6
1808 host=$ac_cv_host
1809 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1810 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1811 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1812
1813
1814 echo "$as_me:$LINENO: checking target system type" >&5
1815 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1816 if test "${ac_cv_target+set}" = set; then
1817   echo $ECHO_N "(cached) $ECHO_C" >&6
1818 else
1819   ac_cv_target_alias=$target_alias
1820 test "x$ac_cv_target_alias" = "x" &&
1821   ac_cv_target_alias=$ac_cv_host_alias
1822 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1823   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1824 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1825    { (exit 1); exit 1; }; }
1826
1827 fi
1828 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1829 echo "${ECHO_T}$ac_cv_target" >&6
1830 target=$ac_cv_target
1831 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1832 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1833 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1834
1835
1836 # The aliases save the names the user supplied, while $host etc.
1837 # will get canonicalized.
1838 test -n "$target_alias" &&
1839   test "$program_prefix$program_suffix$program_transform_name" = \
1840     NONENONEs,x,x, &&
1841   program_prefix=${target_alias}-
1842
1843 case $build in
1844         *-*-linux*)
1845              OS=Linux
1846
1847                          if test -d /home/vadve/lattner/local/x86/llvm-gcc
1848                          then
1849                            LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1850
1851                          fi
1852                  ;;
1853
1854         *-*-solaris*)
1855              OS=SunOS
1856
1857                          if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1858                          then
1859                    LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1860
1861                          fi
1862                  ;;
1863
1864         *-*-darwin*)
1865              OS=Darwin
1866
1867                  ;;
1868
1869         *)       OS=Unknown
1870
1871                  ;;
1872 esac
1873
1874 case $target in
1875         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1876
1877                             ;;
1878 esac
1879
1880 case $target in
1881         i*86-*)           ARCH=x86
1882
1883                           ;;
1884         sparc*-*)         ARCH=Sparc
1885
1886                           ;;
1887         powerpc*-*)       ARCH=PowerPC
1888
1889                           ;;
1890         *)                ARCH=Unknown
1891
1892                           ;;
1893 esac
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 if test "$GXX" != "yes"
3108 then
3109         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3110 echo "$as_me: error: g++ required but not found" >&2;}
3111    { (exit 1); exit 1; }; }
3112 fi
3113
3114 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3115 if test "$gccmajor" -lt "3"
3116 then
3117         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3118 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3119    { (exit 1); exit 1; }; }
3120 fi
3121
3122  echo "$as_me:$LINENO: checking for GNU make" >&5
3123 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3124 if test "${_cv_gnu_make_command+set}" = set; then
3125   echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127   _cv_gnu_make_command='' ;
3128                 for a in "$MAKE" make gmake gnumake ; do
3129                         if test -z "$a" ; then continue ; fi ;
3130                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3131                                 _cv_gnu_make_command=$a ;
3132                                 break;
3133                         fi
3134                 done ;
3135
3136 fi
3137 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3138 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3139         if test  "x$_cv_gnu_make_command" != "x"  ; then
3140                 ifGNUmake='' ;
3141         else
3142                 ifGNUmake='#' ;
3143                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3144 echo "${ECHO_T}\"Not found\"" >&6;
3145         fi
3146
3147
3148 if test -z "$_cv_gnu_make_command"
3149 then
3150         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3151 echo "$as_me: error: GNU Make required but not found" >&2;}
3152    { (exit 1); exit 1; }; }
3153 fi
3154
3155
3156 echo "$as_me:$LINENO: checking " >&5
3157 echo $ECHO_N "checking ... $ECHO_C" >&6
3158 if test "${ac_cv_has_flex+set}" = set; then
3159   echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161   for ac_prog in flex lex
3162 do
3163   # Extract the first word of "$ac_prog", so it can be a program name with args.
3164 set dummy $ac_prog; ac_word=$2
3165 echo "$as_me:$LINENO: checking for $ac_word" >&5
3166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3167 if test "${ac_cv_prog_LEX+set}" = set; then
3168   echo $ECHO_N "(cached) $ECHO_C" >&6
3169 else
3170   if test -n "$LEX"; then
3171   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176   IFS=$as_save_IFS
3177   test -z "$as_dir" && as_dir=.
3178   for ac_exec_ext in '' $ac_executable_extensions; do
3179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180     ac_cv_prog_LEX="$ac_prog"
3181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3182     break 2
3183   fi
3184 done
3185 done
3186
3187 fi
3188 fi
3189 LEX=$ac_cv_prog_LEX
3190 if test -n "$LEX"; then
3191   echo "$as_me:$LINENO: result: $LEX" >&5
3192 echo "${ECHO_T}$LEX" >&6
3193 else
3194   echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3196 fi
3197
3198   test -n "$LEX" && break
3199 done
3200 test -n "$LEX" || LEX=":"
3201
3202 if test -z "$LEXLIB"
3203 then
3204   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3205 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3206 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3207   echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209   ac_check_lib_save_LIBS=$LIBS
3210 LIBS="-lfl  $LIBS"
3211 cat >conftest.$ac_ext <<_ACEOF
3212 #line $LINENO "configure"
3213 /* confdefs.h.  */
3214 _ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h.  */
3218
3219 /* Override any gcc2 internal prototype to avoid an error.  */
3220 #ifdef __cplusplus
3221 extern "C"
3222 #endif
3223 /* We use char because int might match the return type of a gcc2
3224    builtin and then its argument prototype would still apply.  */
3225 char yywrap ();
3226 int
3227 main ()
3228 {
3229 yywrap ();
3230   ;
3231   return 0;
3232 }
3233 _ACEOF
3234 rm -f conftest.$ac_objext conftest$ac_exeext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3236   (eval $ac_link) 2>&5
3237   ac_status=$?
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); } &&
3240          { ac_try='test -s conftest$ac_exeext'
3241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242   (eval $ac_try) 2>&5
3243   ac_status=$?
3244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245   (exit $ac_status); }; }; then
3246   ac_cv_lib_fl_yywrap=yes
3247 else
3248   echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3250
3251 ac_cv_lib_fl_yywrap=no
3252 fi
3253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3254 LIBS=$ac_check_lib_save_LIBS
3255 fi
3256 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3257 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3258 if test $ac_cv_lib_fl_yywrap = yes; then
3259   LEXLIB="-lfl"
3260 else
3261   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3262 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3263 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3264   echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266   ac_check_lib_save_LIBS=$LIBS
3267 LIBS="-ll  $LIBS"
3268 cat >conftest.$ac_ext <<_ACEOF
3269 #line $LINENO "configure"
3270 /* confdefs.h.  */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h.  */
3275
3276 /* Override any gcc2 internal prototype to avoid an error.  */
3277 #ifdef __cplusplus
3278 extern "C"
3279 #endif
3280 /* We use char because int might match the return type of a gcc2
3281    builtin and then its argument prototype would still apply.  */
3282 char yywrap ();
3283 int
3284 main ()
3285 {
3286 yywrap ();
3287   ;
3288   return 0;
3289 }
3290 _ACEOF
3291 rm -f conftest.$ac_objext conftest$ac_exeext
3292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3293   (eval $ac_link) 2>&5
3294   ac_status=$?
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); } &&
3297          { ac_try='test -s conftest$ac_exeext'
3298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299   (eval $ac_try) 2>&5
3300   ac_status=$?
3301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302   (exit $ac_status); }; }; then
3303   ac_cv_lib_l_yywrap=yes
3304 else
3305   echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3307
3308 ac_cv_lib_l_yywrap=no
3309 fi
3310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3311 LIBS=$ac_check_lib_save_LIBS
3312 fi
3313 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3314 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3315 if test $ac_cv_lib_l_yywrap = yes; then
3316   LEXLIB="-ll"
3317 fi
3318
3319 fi
3320
3321 fi
3322
3323 if test "x$LEX" != "x:"; then
3324   echo "$as_me:$LINENO: checking lex output file root" >&5
3325 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3326 if test "${ac_cv_prog_lex_root+set}" = set; then
3327   echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329   # The minimal lex program is just a single line: %%.  But some broken lexes
3330 # (Solaris, I think it was) want two %% lines, so accommodate them.
3331 cat >conftest.l <<_ACEOF
3332 %%
3333 %%
3334 _ACEOF
3335 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3336   (eval $LEX conftest.l) 2>&5
3337   ac_status=$?
3338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339   (exit $ac_status); }
3340 if test -f lex.yy.c; then
3341   ac_cv_prog_lex_root=lex.yy
3342 elif test -f lexyy.c; then
3343   ac_cv_prog_lex_root=lexyy
3344 else
3345   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3346 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3347    { (exit 1); exit 1; }; }
3348 fi
3349 fi
3350 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3351 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3352 rm -f conftest.l
3353 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3354
3355 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3356 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3357 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3358   echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360   # POSIX says lex can declare yytext either as a pointer or an array; the
3361 # default is implementation-dependent. Figure out which it is, since
3362 # not all implementations provide the %pointer and %array declarations.
3363 ac_cv_prog_lex_yytext_pointer=no
3364 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3365 ac_save_LIBS=$LIBS
3366 LIBS="$LIBS $LEXLIB"
3367 cat >conftest.$ac_ext <<_ACEOF
3368 `cat $LEX_OUTPUT_ROOT.c`
3369 _ACEOF
3370 rm -f conftest.$ac_objext conftest$ac_exeext
3371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3372   (eval $ac_link) 2>&5
3373   ac_status=$?
3374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375   (exit $ac_status); } &&
3376          { ac_try='test -s conftest$ac_exeext'
3377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378   (eval $ac_try) 2>&5
3379   ac_status=$?
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); }; }; then
3382   ac_cv_prog_lex_yytext_pointer=yes
3383 else
3384   echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3386
3387 fi
3388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3389 LIBS=$ac_save_LIBS
3390 rm -f "${LEX_OUTPUT_ROOT}.c"
3391
3392 fi
3393 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3394 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3395 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3396
3397 cat >>confdefs.h <<\_ACEOF
3398 #define YYTEXT_POINTER 1
3399 _ACEOF
3400
3401 fi
3402
3403 fi
3404
3405 fi
3406 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3407 echo "${ECHO_T}$ac_cv_has_flex" >&6
3408 if test "$LEX" != "flex"; then
3409   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3410 echo "$as_me: error: flex not found but required" >&2;}
3411    { (exit 1); exit 1; }; }
3412 fi
3413
3414 echo "$as_me:$LINENO: checking " >&5
3415 echo $ECHO_N "checking ... $ECHO_C" >&6
3416 if test "${ac_cv_has_bison+set}" = set; then
3417   echo $ECHO_N "(cached) $ECHO_C" >&6
3418 else
3419   for ac_prog in 'bison -y' byacc
3420 do
3421   # Extract the first word of "$ac_prog", so it can be a program name with args.
3422 set dummy $ac_prog; ac_word=$2
3423 echo "$as_me:$LINENO: checking for $ac_word" >&5
3424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3425 if test "${ac_cv_prog_YACC+set}" = set; then
3426   echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428   if test -n "$YACC"; then
3429   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3433 do
3434   IFS=$as_save_IFS
3435   test -z "$as_dir" && as_dir=.
3436   for ac_exec_ext in '' $ac_executable_extensions; do
3437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438     ac_cv_prog_YACC="$ac_prog"
3439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440     break 2
3441   fi
3442 done
3443 done
3444
3445 fi
3446 fi
3447 YACC=$ac_cv_prog_YACC
3448 if test -n "$YACC"; then
3449   echo "$as_me:$LINENO: result: $YACC" >&5
3450 echo "${ECHO_T}$YACC" >&6
3451 else
3452   echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6
3454 fi
3455
3456   test -n "$YACC" && break
3457 done
3458 test -n "$YACC" || YACC="yacc"
3459
3460
3461 fi
3462 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3463 echo "${ECHO_T}$ac_cv_has_bison" >&6
3464 if test "$YACC" != "bison -y"; then
3465   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3466 echo "$as_me: error: bison not found but required" >&2;}
3467    { (exit 1); exit 1; }; }
3468 else
3469   BISON=bison
3470
3471 fi
3472
3473 # Check whether --enable-shared or --disable-shared was given.
3474 if test "${enable_shared+set}" = set; then
3475   enableval="$enable_shared"
3476   p=${PACKAGE-default}
3477     case $enableval in
3478     yes) enable_shared=yes ;;
3479     no) enable_shared=no ;;
3480     *)
3481       enable_shared=no
3482       # Look at the argument we got.  We use all the common list separators.
3483       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3484       for pkg in $enableval; do
3485         IFS="$lt_save_ifs"
3486         if test "X$pkg" = "X$p"; then
3487           enable_shared=yes
3488         fi
3489       done
3490       IFS="$lt_save_ifs"
3491       ;;
3492     esac
3493 else
3494   enable_shared=yes
3495 fi;
3496
3497 # Check whether --enable-static or --disable-static was given.
3498 if test "${enable_static+set}" = set; then
3499   enableval="$enable_static"
3500   p=${PACKAGE-default}
3501     case $enableval in
3502     yes) enable_static=yes ;;
3503     no) enable_static=no ;;
3504     *)
3505      enable_static=no
3506       # Look at the argument we got.  We use all the common list separators.
3507       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3508       for pkg in $enableval; do
3509         IFS="$lt_save_ifs"
3510         if test "X$pkg" = "X$p"; then
3511           enable_static=yes
3512         fi
3513       done
3514       IFS="$lt_save_ifs"
3515       ;;
3516     esac
3517 else
3518   enable_static=yes
3519 fi;
3520
3521 # Check whether --enable-fast-install or --disable-fast-install was given.
3522 if test "${enable_fast_install+set}" = set; then
3523   enableval="$enable_fast_install"
3524   p=${PACKAGE-default}
3525     case $enableval in
3526     yes) enable_fast_install=yes ;;
3527     no) enable_fast_install=no ;;
3528     *)
3529       enable_fast_install=no
3530       # Look at the argument we got.  We use all the common list separators.
3531       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3532       for pkg in $enableval; do
3533         IFS="$lt_save_ifs"
3534         if test "X$pkg" = "X$p"; then
3535           enable_fast_install=yes
3536         fi
3537       done
3538       IFS="$lt_save_ifs"
3539       ;;
3540     esac
3541 else
3542   enable_fast_install=yes
3543 fi;
3544
3545 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3546 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3547 if test "${lt_cv_path_SED+set}" = set; then
3548   echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550   # Loop through the user's path and test for sed and gsed.
3551 # Then use that list of sed's as ones to test for truncation.
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3554 do
3555   IFS=$as_save_IFS
3556   test -z "$as_dir" && as_dir=.
3557   for lt_ac_prog in sed gsed; do
3558     for ac_exec_ext in '' $ac_executable_extensions; do
3559       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3560         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3561       fi
3562     done
3563   done
3564 done
3565 lt_ac_max=0
3566 lt_ac_count=0
3567 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3568 # along with /bin/sed that truncates output.
3569 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3570   test ! -f $lt_ac_sed && break
3571   cat /dev/null > conftest.in
3572   lt_ac_count=0
3573   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3574   # Check for GNU sed and select it if it is found.
3575   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3576     lt_cv_path_SED=$lt_ac_sed
3577     break
3578   fi
3579   while true; do
3580     cat conftest.in conftest.in >conftest.tmp
3581     mv conftest.tmp conftest.in
3582     cp conftest.in conftest.nl
3583     echo >>conftest.nl
3584     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3585     cmp -s conftest.out conftest.nl || break
3586     # 10000 chars as input seems more than enough
3587     test $lt_ac_count -gt 10 && break
3588     lt_ac_count=`expr $lt_ac_count + 1`
3589     if test $lt_ac_count -gt $lt_ac_max; then
3590       lt_ac_max=$lt_ac_count
3591       lt_cv_path_SED=$lt_ac_sed
3592     fi
3593   done
3594 done
3595 SED=$lt_cv_path_SED
3596
3597 fi
3598
3599 echo "$as_me:$LINENO: result: $SED" >&5
3600 echo "${ECHO_T}$SED" >&6
3601
3602 echo "$as_me:$LINENO: checking for egrep" >&5
3603 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3604 if test "${ac_cv_prog_egrep+set}" = set; then
3605   echo $ECHO_N "(cached) $ECHO_C" >&6
3606 else
3607   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3608     then ac_cv_prog_egrep='grep -E'
3609     else ac_cv_prog_egrep='egrep'
3610     fi
3611 fi
3612 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3613 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3614  EGREP=$ac_cv_prog_egrep
3615
3616
3617
3618 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3619 if test "${with_gnu_ld+set}" = set; then
3620   withval="$with_gnu_ld"
3621   test "$withval" = no || with_gnu_ld=yes
3622 else
3623   with_gnu_ld=no
3624 fi;
3625 ac_prog=ld
3626 if test "$GCC" = yes; then
3627   # Check if gcc -print-prog-name=ld gives a path.
3628   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3629 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3630   case $host in
3631   *-*-mingw*)
3632     # gcc leaves a trailing carriage return which upsets mingw
3633     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3634   *)
3635     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3636   esac
3637   case $ac_prog in
3638     # Accept absolute paths.
3639     [\\/]* | ?:[\\/]*)
3640       re_direlt='/[^/][^/]*/\.\./'
3641       # Canonicalize the path of ld
3642       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3643       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3644         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3645       done
3646       test -z "$LD" && LD="$ac_prog"
3647       ;;
3648   "")
3649     # If it fails, then pretend we aren't using GCC.
3650     ac_prog=ld
3651     ;;
3652   *)
3653     # If it is relative, then search for the first ld in PATH.
3654     with_gnu_ld=unknown
3655     ;;
3656   esac
3657 elif test "$with_gnu_ld" = yes; then
3658   echo "$as_me:$LINENO: checking for GNU ld" >&5
3659 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3660 else
3661   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3662 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3663 fi
3664 if test "${lt_cv_path_LD+set}" = set; then
3665   echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667   if test -z "$LD"; then
3668   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3669   for ac_dir in $PATH; do
3670     IFS="$lt_save_ifs"
3671     test -z "$ac_dir" && ac_dir=.
3672     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3673       lt_cv_path_LD="$ac_dir/$ac_prog"
3674       # Check to see if the program is GNU ld.  I'd rather use --version,
3675       # but apparently some GNU ld's only accept -v.
3676       # Break only if it was the GNU/non-GNU ld that we prefer.
3677       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3678       *GNU* | *'with BFD'*)
3679         test "$with_gnu_ld" != no && break
3680         ;;
3681       *)
3682         test "$with_gnu_ld" != yes && break
3683         ;;
3684       esac
3685     fi
3686   done
3687   IFS="$lt_save_ifs"
3688 else
3689   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3690 fi
3691 fi
3692
3693 LD="$lt_cv_path_LD"
3694 if test -n "$LD"; then
3695   echo "$as_me:$LINENO: result: $LD" >&5
3696 echo "${ECHO_T}$LD" >&6
3697 else
3698   echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6
3700 fi
3701 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3702 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3703    { (exit 1); exit 1; }; }
3704 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3705 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3706 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3707   echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3710 case `"$LD" -v 2>&1 </dev/null` in
3711 *GNU* | *'with BFD'*)
3712   lt_cv_prog_gnu_ld=yes
3713   ;;
3714 *)
3715   lt_cv_prog_gnu_ld=no
3716   ;;
3717 esac
3718 fi
3719 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3720 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3721 with_gnu_ld=$lt_cv_prog_gnu_ld
3722
3723
3724 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3725 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3726 if test "${lt_cv_ld_reload_flag+set}" = set; then
3727   echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729   lt_cv_ld_reload_flag='-r'
3730 fi
3731 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3732 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3733 reload_flag=$lt_cv_ld_reload_flag
3734 case $reload_flag in
3735 "" | " "*) ;;
3736 *) reload_flag=" $reload_flag" ;;
3737 esac
3738 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3739
3740 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3741 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3742 if test "${lt_cv_path_NM+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   if test -n "$NM"; then
3746   # Let the user override the test.
3747   lt_cv_path_NM="$NM"
3748 else
3749   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3750   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3751     IFS="$lt_save_ifs"
3752     test -z "$ac_dir" && ac_dir=.
3753     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3754     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3755       # Check to see if the nm accepts a BSD-compat flag.
3756       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3757       #   nm: unknown option "B" ignored
3758       # Tru64's nm complains that /dev/null is an invalid object file
3759       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3760       */dev/null* | *'Invalid file or object type'*)
3761         lt_cv_path_NM="$tmp_nm -B"
3762         break
3763         ;;
3764       *)
3765         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3766         */dev/null*)
3767           lt_cv_path_NM="$tmp_nm -p"
3768           break
3769           ;;
3770         *)
3771           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3772           continue # so that we can try to find one that supports BSD flags
3773           ;;
3774         esac
3775       esac
3776     fi
3777   done
3778   IFS="$lt_save_ifs"
3779   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3780 fi
3781 fi
3782 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3783 echo "${ECHO_T}$lt_cv_path_NM" >&6
3784 NM="$lt_cv_path_NM"
3785
3786 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3787 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3788 LN_S=$as_ln_s
3789 if test "$LN_S" = "ln -s"; then
3790   echo "$as_me:$LINENO: result: yes" >&5
3791 echo "${ECHO_T}yes" >&6
3792 else
3793   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3794 echo "${ECHO_T}no, using $LN_S" >&6
3795 fi
3796
3797 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3798 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3799 if test "${lt_cv_deplibs_check_method+set}" = set; then
3800   echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802   lt_cv_file_magic_cmd='$MAGIC_CMD'
3803 lt_cv_file_magic_test_file=
3804 lt_cv_deplibs_check_method='unknown'
3805 # Need to set the preceding variable on all platforms that support
3806 # interlibrary dependencies.
3807 # 'none' -- dependencies not supported.
3808 # `unknown' -- same as none, but documents that we really don't know.
3809 # 'pass_all' -- all dependencies passed with no checks.
3810 # 'test_compile' -- check by making test program.
3811 # 'file_magic [[regex]]' -- check by looking for files in library path
3812 # which responds to the $file_magic_cmd with a given extended regex.
3813 # If you have `file' or equivalent on your system and you're not sure
3814 # whether `pass_all' will *always* work, you probably want this one.
3815
3816 case $host_os in
3817 aix4* | aix5*)
3818   lt_cv_deplibs_check_method=pass_all
3819   ;;
3820
3821 beos*)
3822   lt_cv_deplibs_check_method=pass_all
3823   ;;
3824
3825 bsdi4*)
3826   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3827   lt_cv_file_magic_cmd='/usr/bin/file -L'
3828   lt_cv_file_magic_test_file=/shlib/libc.so
3829   ;;
3830
3831 cygwin* | mingw* | pw32*)
3832   # win32_libid is a shell function defined in ltmain.sh
3833   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3834   lt_cv_file_magic_cmd='win32_libid'
3835   ;;
3836
3837 darwin* | rhapsody*)
3838   # this will be overwritten by pass_all, but leave it in just in case
3839   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3840   lt_cv_file_magic_cmd='/usr/bin/file -L'
3841   case "$host_os" in
3842   rhapsody* | darwin1.[012])
3843     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3844     ;;
3845   *) # Darwin 1.3 on
3846     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3847     ;;
3848   esac
3849   lt_cv_deplibs_check_method=pass_all
3850   ;;
3851
3852 freebsd*)
3853   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3854     case $host_cpu in
3855     i*86 )
3856       # Not sure whether the presence of OpenBSD here was a mistake.
3857       # Let's accept both of them until this is cleared up.
3858       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3859       lt_cv_file_magic_cmd=/usr/bin/file
3860       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3861       ;;
3862     esac
3863   else
3864     lt_cv_deplibs_check_method=pass_all
3865   fi
3866   ;;
3867
3868 gnu*)
3869   lt_cv_deplibs_check_method=pass_all
3870   ;;
3871
3872 hpux10.20* | hpux11*)
3873   lt_cv_file_magic_cmd=/usr/bin/file
3874   case "$host_cpu" in
3875   ia64*)
3876     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3877     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3878     ;;
3879   hppa*64*)
3880     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]'
3881     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3882     ;;
3883   *)
3884     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3885     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3886     ;;
3887   esac
3888   ;;
3889
3890 irix5* | irix6* | nonstopux*)
3891   case $host_os in
3892   irix5* | nonstopux*)
3893     # this will be overridden with pass_all, but let us keep it just in case
3894     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3895     ;;
3896   *)
3897     case $LD in
3898     *-32|*"-32 ") libmagic=32-bit;;
3899     *-n32|*"-n32 ") libmagic=N32;;
3900     *-64|*"-64 ") libmagic=64-bit;;
3901     *) libmagic=never-match;;
3902     esac
3903     # this will be overridden with pass_all, but let us keep it just in case
3904     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3905     ;;
3906   esac
3907   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3908   lt_cv_deplibs_check_method=pass_all
3909   ;;
3910
3911 # This must be Linux ELF.
3912 linux*)
3913   case $host_cpu in
3914   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3915     lt_cv_deplibs_check_method=pass_all ;;
3916   *)
3917     # glibc up to 2.1.1 does not perform some relocations on ARM
3918     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3919   esac
3920   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3921   ;;
3922
3923 netbsd*)
3924   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3925     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3926   else
3927     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3928   fi
3929   ;;
3930
3931 newos6*)
3932   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3933   lt_cv_file_magic_cmd=/usr/bin/file
3934   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3935   ;;
3936
3937 nto-qnx)
3938   lt_cv_deplibs_check_method=unknown
3939   ;;
3940
3941 openbsd*)
3942   lt_cv_file_magic_cmd=/usr/bin/file
3943   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3944   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3945     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3946   else
3947     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3948   fi
3949   ;;
3950
3951 osf3* | osf4* | osf5*)
3952   # this will be overridden with pass_all, but let us keep it just in case
3953   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3954   lt_cv_file_magic_test_file=/shlib/libc.so
3955   lt_cv_deplibs_check_method=pass_all
3956   ;;
3957
3958 sco3.2v5*)
3959   lt_cv_deplibs_check_method=pass_all
3960   ;;
3961
3962 solaris*)
3963   lt_cv_deplibs_check_method=pass_all
3964   lt_cv_file_magic_test_file=/lib/libc.so
3965   ;;
3966
3967 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3968   case $host_vendor in
3969   motorola)
3970     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]'
3971     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3972     ;;
3973   ncr)
3974     lt_cv_deplibs_check_method=pass_all
3975     ;;
3976   sequent)
3977     lt_cv_file_magic_cmd='/bin/file'
3978     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3979     ;;
3980   sni)
3981     lt_cv_file_magic_cmd='/bin/file'
3982     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3983     lt_cv_file_magic_test_file=/lib/libc.so
3984     ;;
3985   siemens)
3986     lt_cv_deplibs_check_method=pass_all
3987     ;;
3988   esac
3989   ;;
3990
3991 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3992   lt_cv_deplibs_check_method=pass_all
3993   ;;
3994 esac
3995
3996 fi
3997 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3998 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3999 file_magic_cmd=$lt_cv_file_magic_cmd
4000 deplibs_check_method=$lt_cv_deplibs_check_method
4001 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4002
4003
4004
4005
4006 # If no C compiler was specified, use CC.
4007 LTCC=${LTCC-"$CC"}
4008
4009 # Allow CC to be a program name with arguments.
4010 compiler=$CC
4011
4012 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4013 if test "${enable_libtool_lock+set}" = set; then
4014   enableval="$enable_libtool_lock"
4015
4016 fi;
4017 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4018
4019 # Some flags need to be propagated to the compiler or linker for good
4020 # libtool support.
4021 case $host in
4022 ia64-*-hpux*)
4023   # Find out which ABI we are using.
4024   echo 'int i;' > conftest.$ac_ext
4025   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4026   (eval $ac_compile) 2>&5
4027   ac_status=$?
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); }; then
4030     case `/usr/bin/file conftest.$ac_objext` in
4031     *ELF-32*)
4032       HPUX_IA64_MODE="32"
4033       ;;
4034     *ELF-64*)
4035       HPUX_IA64_MODE="64"
4036       ;;
4037     esac
4038   fi
4039   rm -rf conftest*
4040   ;;
4041 *-*-irix6*)
4042   # Find out which ABI we are using.
4043   echo '#line 4043 "configure"' > conftest.$ac_ext
4044   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045   (eval $ac_compile) 2>&5
4046   ac_status=$?
4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); }; then
4049    if test "$lt_cv_prog_gnu_ld" = yes; then
4050     case `/usr/bin/file conftest.$ac_objext` in
4051     *32-bit*)
4052       LD="${LD-ld} -melf32bsmip"
4053       ;;
4054     *N32*)
4055       LD="${LD-ld} -melf32bmipn32"
4056       ;;
4057     *64-bit*)
4058       LD="${LD-ld} -melf64bmip"
4059       ;;
4060     esac
4061    else
4062     case `/usr/bin/file conftest.$ac_objext` in
4063     *32-bit*)
4064       LD="${LD-ld} -32"
4065       ;;
4066     *N32*)
4067       LD="${LD-ld} -n32"
4068       ;;
4069     *64-bit*)
4070       LD="${LD-ld} -64"
4071       ;;
4072     esac
4073    fi
4074   fi
4075   rm -rf conftest*
4076   ;;
4077
4078 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4079   # Find out which ABI we are using.
4080   echo 'int i;' > conftest.$ac_ext
4081   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4082   (eval $ac_compile) 2>&5
4083   ac_status=$?
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); }; then
4086     case "`/usr/bin/file conftest.o`" in
4087     *32-bit*)
4088       case $host in
4089         x86_64-*linux*)
4090           LD="${LD-ld} -m elf_i386"
4091           ;;
4092         ppc64-*linux*)
4093           LD="${LD-ld} -m elf32ppclinux"
4094           ;;
4095         s390x-*linux*)
4096           LD="${LD-ld} -m elf_s390"
4097           ;;
4098         sparc64-*linux*)
4099           LD="${LD-ld} -m elf32_sparc"
4100           ;;
4101       esac
4102       ;;
4103     *64-bit*)
4104       case $host in
4105         x86_64-*linux*)
4106           LD="${LD-ld} -m elf_x86_64"
4107           ;;
4108         ppc*-*linux*|powerpc*-*linux*)
4109           LD="${LD-ld} -m elf64ppc"
4110           ;;
4111         s390*-*linux*)
4112           LD="${LD-ld} -m elf64_s390"
4113           ;;
4114         sparc*-*linux*)
4115           LD="${LD-ld} -m elf64_sparc"
4116           ;;
4117       esac
4118       ;;
4119     esac
4120   fi
4121   rm -rf conftest*
4122   ;;
4123
4124 *-*-sco3.2v5*)
4125   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4126   SAVE_CFLAGS="$CFLAGS"
4127   CFLAGS="$CFLAGS -belf"
4128   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4129 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4130 if test "${lt_cv_cc_needs_belf+set}" = set; then
4131   echo $ECHO_N "(cached) $ECHO_C" >&6
4132 else
4133   ac_ext=c
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138
4139      cat >conftest.$ac_ext <<_ACEOF
4140 #line $LINENO "configure"
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146
4147 int
4148 main ()
4149 {
4150
4151   ;
4152   return 0;
4153 }
4154 _ACEOF
4155 rm -f conftest.$ac_objext conftest$ac_exeext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4157   (eval $ac_link) 2>&5
4158   ac_status=$?
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); } &&
4161          { ac_try='test -s conftest$ac_exeext'
4162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163   (eval $ac_try) 2>&5
4164   ac_status=$?
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); }; }; then
4167   lt_cv_cc_needs_belf=yes
4168 else
4169   echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 lt_cv_cc_needs_belf=no
4173 fi
4174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4175      ac_ext=c
4176 ac_cpp='$CPP $CPPFLAGS'
4177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180
4181 fi
4182 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4183 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4184   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4185     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4186     CFLAGS="$SAVE_CFLAGS"
4187   fi
4188   ;;
4189
4190 esac
4191
4192 need_locks="$enable_libtool_lock"
4193
4194
4195
4196 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4197 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4198 if test "${ac_cv_header_stdc+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   cat >conftest.$ac_ext <<_ACEOF
4202 #line $LINENO "configure"
4203 /* confdefs.h.  */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h.  */
4208 #include <stdlib.h>
4209 #include <stdarg.h>
4210 #include <string.h>
4211 #include <float.h>
4212
4213 int
4214 main ()
4215 {
4216
4217   ;
4218   return 0;
4219 }
4220 _ACEOF
4221 rm -f conftest.$ac_objext
4222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223   (eval $ac_compile) 2>&5
4224   ac_status=$?
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); } &&
4227          { ac_try='test -s conftest.$ac_objext'
4228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229   (eval $ac_try) 2>&5
4230   ac_status=$?
4231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); }; }; then
4233   ac_cv_header_stdc=yes
4234 else
4235   echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4237
4238 ac_cv_header_stdc=no
4239 fi
4240 rm -f conftest.$ac_objext conftest.$ac_ext
4241
4242 if test $ac_cv_header_stdc = yes; then
4243   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4244   cat >conftest.$ac_ext <<_ACEOF
4245 #line $LINENO "configure"
4246 /* confdefs.h.  */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h.  */
4251 #include <string.h>
4252
4253 _ACEOF
4254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4255   $EGREP "memchr" >/dev/null 2>&1; then
4256   :
4257 else
4258   ac_cv_header_stdc=no
4259 fi
4260 rm -f conftest*
4261
4262 fi
4263
4264 if test $ac_cv_header_stdc = yes; then
4265   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4266   cat >conftest.$ac_ext <<_ACEOF
4267 #line $LINENO "configure"
4268 /* confdefs.h.  */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h.  */
4273 #include <stdlib.h>
4274
4275 _ACEOF
4276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4277   $EGREP "free" >/dev/null 2>&1; then
4278   :
4279 else
4280   ac_cv_header_stdc=no
4281 fi
4282 rm -f conftest*
4283
4284 fi
4285
4286 if test $ac_cv_header_stdc = yes; then
4287   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4288   if test "$cross_compiling" = yes; then
4289   :
4290 else
4291   cat >conftest.$ac_ext <<_ACEOF
4292 #line $LINENO "configure"
4293 /* confdefs.h.  */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h.  */
4298 #include <ctype.h>
4299 #if ((' ' & 0x0FF) == 0x020)
4300 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4301 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4302 #else
4303 # define ISLOWER(c) \
4304                    (('a' <= (c) && (c) <= 'i') \
4305                      || ('j' <= (c) && (c) <= 'r') \
4306                      || ('s' <= (c) && (c) <= 'z'))
4307 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4308 #endif
4309
4310 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4311 int
4312 main ()
4313 {
4314   int i;
4315   for (i = 0; i < 256; i++)
4316     if (XOR (islower (i), ISLOWER (i))
4317         || toupper (i) != TOUPPER (i))
4318       exit(2);
4319   exit (0);
4320 }
4321 _ACEOF
4322 rm -f conftest$ac_exeext
4323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4324   (eval $ac_link) 2>&5
4325   ac_status=$?
4326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329   (eval $ac_try) 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }; }; then
4333   :
4334 else
4335   echo "$as_me: program exited with status $ac_status" >&5
4336 echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4338
4339 ( exit $ac_status )
4340 ac_cv_header_stdc=no
4341 fi
4342 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4343 fi
4344 fi
4345 fi
4346 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4347 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4348 if test $ac_cv_header_stdc = yes; then
4349
4350 cat >>confdefs.h <<\_ACEOF
4351 #define STDC_HEADERS 1
4352 _ACEOF
4353
4354 fi
4355
4356 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4367                   inttypes.h stdint.h unistd.h
4368 do
4369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4370 echo "$as_me:$LINENO: checking for $ac_header" >&5
4371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4373   echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375   cat >conftest.$ac_ext <<_ACEOF
4376 #line $LINENO "configure"
4377 /* confdefs.h.  */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h.  */
4382 $ac_includes_default
4383
4384 #include <$ac_header>
4385 _ACEOF
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388   (eval $ac_compile) 2>&5
4389   ac_status=$?
4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); } &&
4392          { ac_try='test -s conftest.$ac_objext'
4393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394   (eval $ac_try) 2>&5
4395   ac_status=$?
4396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397   (exit $ac_status); }; }; then
4398   eval "$as_ac_Header=yes"
4399 else
4400   echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4402
4403 eval "$as_ac_Header=no"
4404 fi
4405 rm -f conftest.$ac_objext conftest.$ac_ext
4406 fi
4407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4410   cat >>confdefs.h <<_ACEOF
4411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4412 _ACEOF
4413
4414 fi
4415
4416 done
4417
4418
4419
4420 for ac_header in dlfcn.h
4421 do
4422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4424   echo "$as_me:$LINENO: checking for $ac_header" >&5
4425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 fi
4429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4431 else
4432   # Is the header compilable?
4433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4435 cat >conftest.$ac_ext <<_ACEOF
4436 #line $LINENO "configure"
4437 /* confdefs.h.  */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h.  */
4442 $ac_includes_default
4443 #include <$ac_header>
4444 _ACEOF
4445 rm -f conftest.$ac_objext
4446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4447   (eval $ac_compile) 2>&5
4448   ac_status=$?
4449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450   (exit $ac_status); } &&
4451          { ac_try='test -s conftest.$ac_objext'
4452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453   (eval $ac_try) 2>&5
4454   ac_status=$?
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); }; }; then
4457   ac_header_compiler=yes
4458 else
4459   echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4461
4462 ac_header_compiler=no
4463 fi
4464 rm -f conftest.$ac_objext conftest.$ac_ext
4465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4466 echo "${ECHO_T}$ac_header_compiler" >&6
4467
4468 # Is the header present?
4469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4471 cat >conftest.$ac_ext <<_ACEOF
4472 #line $LINENO "configure"
4473 /* confdefs.h.  */
4474 _ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h.  */
4478 #include <$ac_header>
4479 _ACEOF
4480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4481   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4482   ac_status=$?
4483   grep -v '^ *+' conftest.er1 >conftest.err
4484   rm -f conftest.er1
4485   cat conftest.err >&5
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); } >/dev/null; then
4488   if test -s conftest.err; then
4489     ac_cpp_err=$ac_c_preproc_warn_flag
4490   else
4491     ac_cpp_err=
4492   fi
4493 else
4494   ac_cpp_err=yes
4495 fi
4496 if test -z "$ac_cpp_err"; then
4497   ac_header_preproc=yes
4498 else
4499   echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4501
4502   ac_header_preproc=no
4503 fi
4504 rm -f conftest.err conftest.$ac_ext
4505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4506 echo "${ECHO_T}$ac_header_preproc" >&6
4507
4508 # So?  What about this header?
4509 case $ac_header_compiler:$ac_header_preproc in
4510   yes:no )
4511     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4515     (
4516       cat <<\_ASBOX
4517 ## ------------------------------------ ##
4518 ## Report this to bug-autoconf@gnu.org. ##
4519 ## ------------------------------------ ##
4520 _ASBOX
4521     ) |
4522       sed "s/^/$as_me: WARNING:     /" >&2
4523     ;;
4524   no:yes )
4525     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4527     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4531     (
4532       cat <<\_ASBOX
4533 ## ------------------------------------ ##
4534 ## Report this to bug-autoconf@gnu.org. ##
4535 ## ------------------------------------ ##
4536 _ASBOX
4537     ) |
4538       sed "s/^/$as_me: WARNING:     /" >&2
4539     ;;
4540 esac
4541 echo "$as_me:$LINENO: checking for $ac_header" >&5
4542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4544   echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546   eval "$as_ac_Header=$ac_header_preproc"
4547 fi
4548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4550
4551 fi
4552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4553   cat >>confdefs.h <<_ACEOF
4554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4555 _ACEOF
4556
4557 fi
4558
4559 done
4560
4561 ac_ext=cc
4562 ac_cpp='$CXXCPP $CPPFLAGS'
4563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4566 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4567 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4568 if test -z "$CXXCPP"; then
4569   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4570   echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572       # Double quotes because CXXCPP needs to be expanded
4573     for CXXCPP in "$CXX -E" "/lib/cpp"
4574     do
4575       ac_preproc_ok=false
4576 for ac_cxx_preproc_warn_flag in '' yes
4577 do
4578   # Use a header file that comes with gcc, so configuring glibc
4579   # with a fresh cross-compiler works.
4580   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4581   # <limits.h> exists even on freestanding compilers.
4582   # On the NeXT, cc -E runs the code through the compiler's parser,
4583   # not just through cpp. "Syntax error" is here to catch this case.
4584   cat >conftest.$ac_ext <<_ACEOF
4585 #line $LINENO "configure"
4586 /* confdefs.h.  */
4587 _ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h.  */
4591 #ifdef __STDC__
4592 # include <limits.h>
4593 #else
4594 # include <assert.h>
4595 #endif
4596                      Syntax error
4597 _ACEOF
4598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4599   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4600   ac_status=$?
4601   grep -v '^ *+' conftest.er1 >conftest.err
4602   rm -f conftest.er1
4603   cat conftest.err >&5
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); } >/dev/null; then
4606   if test -s conftest.err; then
4607     ac_cpp_err=$ac_cxx_preproc_warn_flag
4608   else
4609     ac_cpp_err=
4610   fi
4611 else
4612   ac_cpp_err=yes
4613 fi
4614 if test -z "$ac_cpp_err"; then
4615   :
4616 else
4617   echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620   # Broken: fails on valid input.
4621 continue
4622 fi
4623 rm -f conftest.err conftest.$ac_ext
4624
4625   # OK, works on sane cases.  Now check whether non-existent headers
4626   # can be detected and how.
4627   cat >conftest.$ac_ext <<_ACEOF
4628 #line $LINENO "configure"
4629 /* confdefs.h.  */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h.  */
4634 #include <ac_nonexistent.h>
4635 _ACEOF
4636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4637   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4638   ac_status=$?
4639   grep -v '^ *+' conftest.er1 >conftest.err
4640   rm -f conftest.er1
4641   cat conftest.err >&5
4642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643   (exit $ac_status); } >/dev/null; then
4644   if test -s conftest.err; then
4645     ac_cpp_err=$ac_cxx_preproc_warn_flag
4646   else
4647     ac_cpp_err=
4648   fi
4649 else
4650   ac_cpp_err=yes
4651 fi
4652 if test -z "$ac_cpp_err"; then
4653   # Broken: success on invalid input.
4654 continue
4655 else
4656   echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4658
4659   # Passes both tests.
4660 ac_preproc_ok=:
4661 break
4662 fi
4663 rm -f conftest.err conftest.$ac_ext
4664
4665 done
4666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4667 rm -f conftest.err conftest.$ac_ext
4668 if $ac_preproc_ok; then
4669   break
4670 fi
4671
4672     done
4673     ac_cv_prog_CXXCPP=$CXXCPP
4674
4675 fi
4676   CXXCPP=$ac_cv_prog_CXXCPP
4677 else
4678   ac_cv_prog_CXXCPP=$CXXCPP
4679 fi
4680 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4681 echo "${ECHO_T}$CXXCPP" >&6
4682 ac_preproc_ok=false
4683 for ac_cxx_preproc_warn_flag in '' yes
4684 do
4685   # Use a header file that comes with gcc, so configuring glibc
4686   # with a fresh cross-compiler works.
4687   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4688   # <limits.h> exists even on freestanding compilers.
4689   # On the NeXT, cc -E runs the code through the compiler's parser,
4690   # not just through cpp. "Syntax error" is here to catch this case.
4691   cat >conftest.$ac_ext <<_ACEOF
4692 #line $LINENO "configure"
4693 /* confdefs.h.  */
4694 _ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h.  */
4698 #ifdef __STDC__
4699 # include <limits.h>
4700 #else
4701 # include <assert.h>
4702 #endif
4703                      Syntax error
4704 _ACEOF
4705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4706   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4707   ac_status=$?
4708   grep -v '^ *+' conftest.er1 >conftest.err
4709   rm -f conftest.er1
4710   cat conftest.err >&5
4711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712   (exit $ac_status); } >/dev/null; then
4713   if test -s conftest.err; then
4714     ac_cpp_err=$ac_cxx_preproc_warn_flag
4715   else
4716     ac_cpp_err=
4717   fi
4718 else
4719   ac_cpp_err=yes
4720 fi
4721 if test -z "$ac_cpp_err"; then
4722   :
4723 else
4724   echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4726
4727   # Broken: fails on valid input.
4728 continue
4729 fi
4730 rm -f conftest.err conftest.$ac_ext
4731
4732   # OK, works on sane cases.  Now check whether non-existent headers
4733   # can be detected and how.
4734   cat >conftest.$ac_ext <<_ACEOF
4735 #line $LINENO "configure"
4736 /* confdefs.h.  */
4737 _ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h.  */
4741 #include <ac_nonexistent.h>
4742 _ACEOF
4743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4744   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4745   ac_status=$?
4746   grep -v '^ *+' conftest.er1 >conftest.err
4747   rm -f conftest.er1
4748   cat conftest.err >&5
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); } >/dev/null; then
4751   if test -s conftest.err; then
4752     ac_cpp_err=$ac_cxx_preproc_warn_flag
4753   else
4754     ac_cpp_err=
4755   fi
4756 else
4757   ac_cpp_err=yes
4758 fi
4759 if test -z "$ac_cpp_err"; then
4760   # Broken: success on invalid input.
4761 continue
4762 else
4763   echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4765
4766   # Passes both tests.
4767 ac_preproc_ok=:
4768 break
4769 fi
4770 rm -f conftest.err conftest.$ac_ext
4771
4772 done
4773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4774 rm -f conftest.err conftest.$ac_ext
4775 if $ac_preproc_ok; then
4776   :
4777 else
4778   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4779 See \`config.log' for more details." >&5
4780 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4781 See \`config.log' for more details." >&2;}
4782    { (exit 1); exit 1; }; }
4783 fi
4784
4785 ac_ext=cc
4786 ac_cpp='$CXXCPP $CPPFLAGS'
4787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4790
4791
4792 ac_ext=f
4793 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4794 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4796 if test -n "$ac_tool_prefix"; then
4797   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4798   do
4799     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4801 echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4803 if test "${ac_cv_prog_F77+set}" = set; then
4804   echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806   if test -n "$F77"; then
4807   ac_cv_prog_F77="$F77" # Let the user override the test.
4808 else
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812   IFS=$as_save_IFS
4813   test -z "$as_dir" && as_dir=.
4814   for ac_exec_ext in '' $ac_executable_extensions; do
4815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818     break 2
4819   fi
4820 done
4821 done
4822
4823 fi
4824 fi
4825 F77=$ac_cv_prog_F77
4826 if test -n "$F77"; then
4827   echo "$as_me:$LINENO: result: $F77" >&5
4828 echo "${ECHO_T}$F77" >&6
4829 else
4830   echo "$as_me:$LINENO: result: no" >&5
4831 echo "${ECHO_T}no" >&6
4832 fi
4833
4834     test -n "$F77" && break
4835   done
4836 fi
4837 if test -z "$F77"; then
4838   ac_ct_F77=$F77
4839   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4840 do
4841   # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 echo "$as_me:$LINENO: checking for $ac_word" >&5
4844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4845 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4846   echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848   if test -n "$ac_ct_F77"; then
4849   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4853 do
4854   IFS=$as_save_IFS
4855   test -z "$as_dir" && as_dir=.
4856   for ac_exec_ext in '' $ac_executable_extensions; do
4857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858     ac_cv_prog_ac_ct_F77="$ac_prog"
4859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860     break 2
4861   fi
4862 done
4863 done
4864
4865 fi
4866 fi
4867 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4868 if test -n "$ac_ct_F77"; then
4869   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4870 echo "${ECHO_T}$ac_ct_F77" >&6
4871 else
4872   echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6
4874 fi
4875
4876   test -n "$ac_ct_F77" && break
4877 done
4878
4879   F77=$ac_ct_F77
4880 fi
4881
4882
4883 # Provide some information about the compiler.
4884 echo "$as_me:4884:" \
4885      "checking for Fortran 77 compiler version" >&5
4886 ac_compiler=`set X $ac_compile; echo $2`
4887 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4888   (eval $ac_compiler --version </dev/null >&5) 2>&5
4889   ac_status=$?
4890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891   (exit $ac_status); }
4892 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4893   (eval $ac_compiler -v </dev/null >&5) 2>&5
4894   ac_status=$?
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); }
4897 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4898   (eval $ac_compiler -V </dev/null >&5) 2>&5
4899   ac_status=$?
4900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901   (exit $ac_status); }
4902
4903 # If we don't use `.F' as extension, the preprocessor is not run on the
4904 # input file.
4905 ac_save_ext=$ac_ext
4906 ac_ext=F
4907 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4908 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4909 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4910   echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912   cat >conftest.$ac_ext <<_ACEOF
4913       program main
4914 #ifndef __GNUC__
4915        choke me
4916 #endif
4917
4918       end
4919 _ACEOF
4920 rm -f conftest.$ac_objext
4921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4922   (eval $ac_compile) 2>&5
4923   ac_status=$?
4924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925   (exit $ac_status); } &&
4926          { ac_try='test -s conftest.$ac_objext'
4927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928   (eval $ac_try) 2>&5
4929   ac_status=$?
4930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931   (exit $ac_status); }; }; then
4932   ac_compiler_gnu=yes
4933 else
4934   echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4936
4937 ac_compiler_gnu=no
4938 fi
4939 rm -f conftest.$ac_objext conftest.$ac_ext
4940 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4941
4942 fi
4943 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4944 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4945 ac_ext=$ac_save_ext
4946 G77=`test $ac_compiler_gnu = yes && echo yes`
4947 ac_test_FFLAGS=${FFLAGS+set}
4948 ac_save_FFLAGS=$FFLAGS
4949 FFLAGS=
4950 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4951 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4952 if test "${ac_cv_prog_f77_g+set}" = set; then
4953   echo $ECHO_N "(cached) $ECHO_C" >&6
4954 else
4955   FFLAGS=-g
4956 cat >conftest.$ac_ext <<_ACEOF
4957       program main
4958
4959       end
4960 _ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963   (eval $ac_compile) 2>&5
4964   ac_status=$?
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); } &&
4967          { ac_try='test -s conftest.$ac_objext'
4968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969   (eval $ac_try) 2>&5
4970   ac_status=$?
4971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972   (exit $ac_status); }; }; then
4973   ac_cv_prog_f77_g=yes
4974 else
4975   echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4977
4978 ac_cv_prog_f77_g=no
4979 fi
4980 rm -f conftest.$ac_objext conftest.$ac_ext
4981
4982 fi
4983 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4984 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4985 if test "$ac_test_FFLAGS" = set; then
4986   FFLAGS=$ac_save_FFLAGS
4987 elif test $ac_cv_prog_f77_g = yes; then
4988   if test "$G77" = yes; then
4989     FFLAGS="-g -O2"
4990   else
4991     FFLAGS="-g"
4992   fi
4993 else
4994   if test "$G77" = yes; then
4995     FFLAGS="-O2"
4996   else
4997     FFLAGS=
4998   fi
4999 fi
5000 ac_ext=c
5001 ac_cpp='$CPP $CPPFLAGS'
5002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5005
5006
5007
5008 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5009
5010 # find the maximum length of command line arguments
5011 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5012 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5013 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5014   echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016     i=0
5017   testring="ABCD"
5018
5019   case $build_os in
5020   msdosdjgpp*)
5021     # On DJGPP, this test can blow up pretty badly due to problems in libc
5022     # (any single argument exceeding 2000 bytes causes a buffer overrun
5023     # during glob expansion).  Even if it were fixed, the result of this
5024     # check would be larger than it should be.
5025     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5026     ;;
5027
5028   gnu*)
5029     # Under GNU Hurd, this test is not required because there is
5030     # no limit to the length of command line arguments.
5031     # Libtool will interpret -1 as no limit whatsoever
5032     lt_cv_sys_max_cmd_len=-1;
5033     ;;
5034
5035   cygwin* | mingw*)
5036     # On Win9x/ME, this test blows up -- it succeeds, but takes
5037     # about 5 minutes as the teststring grows exponentially.
5038     # Worse, since 9x/ME are not pre-emptively multitasking,
5039     # you end up with a "frozen" computer, even though with patience
5040     # the test eventually succeeds (with a max line length of 256k).
5041     # Instead, let's just punt: use the minimum linelength reported by
5042     # all of the supported platforms: 8192 (on NT/2K/XP).
5043     lt_cv_sys_max_cmd_len=8192;
5044     ;;
5045
5046  *)
5047     # If test is not a shell built-in, we'll probably end up computing a
5048     # maximum length that is only half of the actual maximum length, but
5049     # we can't tell.
5050     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5051                = "XX$testring") >/dev/null 2>&1 &&
5052             new_result=`expr "X$testring" : ".*" 2>&1` &&
5053             lt_cv_sys_max_cmd_len=$new_result &&
5054             test $i != 17 # 1/2 MB should be enough
5055     do
5056       i=`expr $i + 1`
5057       testring=$testring$testring
5058     done
5059     testring=
5060     # Add a significant safety factor because C++ compilers can tack on massive
5061     # amounts of additional arguments before passing them to the linker.
5062     # It appears as though 1/2 is a usable value.
5063     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5064     ;;
5065   esac
5066
5067 fi
5068
5069 if test -n $lt_cv_sys_max_cmd_len ; then
5070   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5071 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5072 else
5073   echo "$as_me:$LINENO: result: none" >&5
5074 echo "${ECHO_T}none" >&6
5075 fi
5076
5077
5078
5079
5080 # Check for command to grab the raw symbol name followed by C symbol from nm.
5081 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5082 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5083 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5084   echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086
5087 # These are sane defaults that work on at least a few old systems.
5088 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5089
5090 # Character class describing NM global symbol codes.
5091 symcode='[BCDEGRST]'
5092
5093 # Regexp to match symbols that can be accessed directly from C.
5094 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5095
5096 # Transform the above into a raw symbol and a C symbol.
5097 symxfrm='\1 \2\3 \3'
5098
5099 # Transform an extracted symbol line into a proper C declaration
5100 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5101
5102 # Transform an extracted symbol line into symbol name and symbol address
5103 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'"
5104
5105 # Define system-specific variables.
5106 case $host_os in
5107 aix*)
5108   symcode='[BCDT]'
5109   ;;
5110 cygwin* | mingw* | pw32*)
5111   symcode='[ABCDGISTW]'
5112   ;;
5113 hpux*) # Its linker distinguishes data from code symbols
5114   if test "$host_cpu" = ia64; then
5115     symcode='[ABCDEGRST]'
5116   fi
5117   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5118   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'"
5119   ;;
5120 irix* | nonstopux*)
5121   symcode='[BCDEGRST]'
5122   ;;
5123 osf*)
5124   symcode='[BCDEGQRST]'
5125   ;;
5126 solaris* | sysv5*)
5127   symcode='[BDT]'
5128   ;;
5129 sysv4)
5130   symcode='[DFNSTU]'
5131   ;;
5132 esac
5133
5134 # Handle CRLF in mingw tool chain
5135 opt_cr=
5136 case $build_os in
5137 mingw*)
5138   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5139   ;;
5140 esac
5141
5142 # If we're using GNU nm, then use its standard symbol codes.
5143 case `$NM -V 2>&1` in
5144 *GNU* | *'with BFD'*)
5145   symcode='[ABCDGISTW]' ;;
5146 esac
5147
5148 # Try without a prefix undercore, then with it.
5149 for ac_symprfx in "" "_"; do
5150
5151   # Write the raw and C identifiers.
5152   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5153
5154   # Check to see that the pipe works correctly.
5155   pipe_works=no
5156
5157   rm -f conftest*
5158   cat > conftest.$ac_ext <<EOF
5159 #ifdef __cplusplus
5160 extern "C" {
5161 #endif
5162 char nm_test_var;
5163 void nm_test_func(){}
5164 #ifdef __cplusplus
5165 }
5166 #endif
5167 int main(){nm_test_var='a';nm_test_func();return(0);}
5168 EOF
5169
5170   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5171   (eval $ac_compile) 2>&5
5172   ac_status=$?
5173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174   (exit $ac_status); }; then
5175     # Now try to grab the symbols.
5176     nlist=conftest.nm
5177     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5178   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5179   ac_status=$?
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); } && test -s "$nlist"; then
5182       # Try sorting and uniquifying the output.
5183       if sort "$nlist" | uniq > "$nlist"T; then
5184         mv -f "$nlist"T "$nlist"
5185       else
5186         rm -f "$nlist"T
5187       fi
5188
5189       # Make sure that we snagged all the symbols we need.
5190       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5191         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5192           cat <<EOF > conftest.$ac_ext
5193 #ifdef __cplusplus
5194 extern "C" {
5195 #endif
5196
5197 EOF
5198           # Now generate the symbol file.
5199           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5200
5201           cat <<EOF >> conftest.$ac_ext
5202 #if defined (__STDC__) && __STDC__
5203 # define lt_ptr_t void *
5204 #else
5205 # define lt_ptr_t char *
5206 # define const
5207 #endif
5208
5209 /* The mapping between symbol names and symbols. */
5210 const struct {
5211   const char *name;
5212   lt_ptr_t address;
5213 }
5214 lt_preloaded_symbols[] =
5215 {
5216 EOF
5217           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5218           cat <<\EOF >> conftest.$ac_ext
5219   {0, (lt_ptr_t) 0}
5220 };
5221
5222 #ifdef __cplusplus
5223 }
5224 #endif
5225 EOF
5226           # Now try linking the two files.
5227           mv conftest.$ac_objext conftstm.$ac_objext
5228           lt_save_LIBS="$LIBS"
5229           lt_save_CFLAGS="$CFLAGS"
5230           LIBS="conftstm.$ac_objext"
5231           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5232           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5233   (eval $ac_link) 2>&5
5234   ac_status=$?
5235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5237             pipe_works=yes
5238           fi
5239           LIBS="$lt_save_LIBS"
5240           CFLAGS="$lt_save_CFLAGS"
5241         else
5242           echo "cannot find nm_test_func in $nlist" >&5
5243         fi
5244       else
5245         echo "cannot find nm_test_var in $nlist" >&5
5246       fi
5247     else
5248       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5249     fi
5250   else
5251     echo "$progname: failed program was:" >&5
5252     cat conftest.$ac_ext >&5
5253   fi
5254   rm -f conftest* conftst*
5255
5256   # Do not use the global_symbol_pipe unless it works.
5257   if test "$pipe_works" = yes; then
5258     break
5259   else
5260     lt_cv_sys_global_symbol_pipe=
5261   fi
5262 done
5263
5264 fi
5265
5266 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5267   lt_cv_sys_global_symbol_to_cdecl=
5268 fi
5269 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5270   echo "$as_me:$LINENO: result: failed" >&5
5271 echo "${ECHO_T}failed" >&6
5272 else
5273   echo "$as_me:$LINENO: result: ok" >&5
5274 echo "${ECHO_T}ok" >&6
5275 fi
5276
5277 echo "$as_me:$LINENO: checking for objdir" >&5
5278 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5279 if test "${lt_cv_objdir+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282   rm -f .libs 2>/dev/null
5283 mkdir .libs 2>/dev/null
5284 if test -d .libs; then
5285   lt_cv_objdir=.libs
5286 else
5287   # MS-DOS does not allow filenames that begin with a dot.
5288   lt_cv_objdir=_libs
5289 fi
5290 rmdir .libs 2>/dev/null
5291 fi
5292 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5293 echo "${ECHO_T}$lt_cv_objdir" >&6
5294 objdir=$lt_cv_objdir
5295
5296
5297
5298
5299
5300 case $host_os in
5301 aix3*)
5302   # AIX sometimes has problems with the GCC collect2 program.  For some
5303   # reason, if we set the COLLECT_NAMES environment variable, the problems
5304   # vanish in a puff of smoke.
5305   if test "X${COLLECT_NAMES+set}" != Xset; then
5306     COLLECT_NAMES=
5307     export COLLECT_NAMES
5308   fi
5309   ;;
5310 esac
5311
5312 # Sed substitution that helps us do robust quoting.  It backslashifies
5313 # metacharacters that are still active within double-quoted strings.
5314 Xsed='sed -e s/^X//'
5315 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5316
5317 # Same as above, but do not quote variable references.
5318 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5319
5320 # Sed substitution to delay expansion of an escaped shell variable in a
5321 # double_quote_subst'ed string.
5322 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5323
5324 # Sed substitution to avoid accidental globbing in evaled expressions
5325 no_glob_subst='s/\*/\\\*/g'
5326
5327 # Constants:
5328 rm="rm -f"
5329
5330 # Global variables:
5331 default_ofile=mklib
5332 can_build_shared=yes
5333
5334 # All known linkers require a `.a' archive for static linking (except M$VC,
5335 # which needs '.lib').
5336 libext=a
5337 ltmain="$ac_aux_dir/ltmain.sh"
5338 ofile="$default_ofile"
5339 with_gnu_ld="$lt_cv_prog_gnu_ld"
5340
5341 if test -n "$ac_tool_prefix"; then
5342   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5343 set dummy ${ac_tool_prefix}ar; ac_word=$2
5344 echo "$as_me:$LINENO: checking for $ac_word" >&5
5345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5346 if test "${ac_cv_prog_AR+set}" = set; then
5347   echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349   if test -n "$AR"; then
5350   ac_cv_prog_AR="$AR" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5354 do
5355   IFS=$as_save_IFS
5356   test -z "$as_dir" && as_dir=.
5357   for ac_exec_ext in '' $ac_executable_extensions; do
5358   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359     ac_cv_prog_AR="${ac_tool_prefix}ar"
5360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361     break 2
5362   fi
5363 done
5364 done
5365
5366 fi
5367 fi
5368 AR=$ac_cv_prog_AR
5369 if test -n "$AR"; then
5370   echo "$as_me:$LINENO: result: $AR" >&5
5371 echo "${ECHO_T}$AR" >&6
5372 else
5373   echo "$as_me:$LINENO: result: no" >&5
5374 echo "${ECHO_T}no" >&6
5375 fi
5376
5377 fi
5378 if test -z "$ac_cv_prog_AR"; then
5379   ac_ct_AR=$AR
5380   # Extract the first word of "ar", so it can be a program name with args.
5381 set dummy ar; ac_word=$2
5382 echo "$as_me:$LINENO: checking for $ac_word" >&5
5383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5384 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5385   echo $ECHO_N "(cached) $ECHO_C" >&6
5386 else
5387   if test -n "$ac_ct_AR"; then
5388   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5389 else
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5392 do
5393   IFS=$as_save_IFS
5394   test -z "$as_dir" && as_dir=.
5395   for ac_exec_ext in '' $ac_executable_extensions; do
5396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397     ac_cv_prog_ac_ct_AR="ar"
5398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399     break 2
5400   fi
5401 done
5402 done
5403
5404   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5405 fi
5406 fi
5407 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5408 if test -n "$ac_ct_AR"; then
5409   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5410 echo "${ECHO_T}$ac_ct_AR" >&6
5411 else
5412   echo "$as_me:$LINENO: result: no" >&5
5413 echo "${ECHO_T}no" >&6
5414 fi
5415
5416   AR=$ac_ct_AR
5417 else
5418   AR="$ac_cv_prog_AR"
5419 fi
5420
5421 if test -n "$ac_tool_prefix"; then
5422   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5423 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5424 echo "$as_me:$LINENO: checking for $ac_word" >&5
5425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5426 if test "${ac_cv_prog_RANLIB+set}" = set; then
5427   echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429   if test -n "$RANLIB"; then
5430   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5431 else
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435   IFS=$as_save_IFS
5436   test -z "$as_dir" && as_dir=.
5437   for ac_exec_ext in '' $ac_executable_extensions; do
5438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5441     break 2
5442   fi
5443 done
5444 done
5445
5446 fi
5447 fi
5448 RANLIB=$ac_cv_prog_RANLIB
5449 if test -n "$RANLIB"; then
5450   echo "$as_me:$LINENO: result: $RANLIB" >&5
5451 echo "${ECHO_T}$RANLIB" >&6
5452 else
5453   echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6
5455 fi
5456
5457 fi
5458 if test -z "$ac_cv_prog_RANLIB"; then
5459   ac_ct_RANLIB=$RANLIB
5460   # Extract the first word of "ranlib", so it can be a program name with args.
5461 set dummy ranlib; ac_word=$2
5462 echo "$as_me:$LINENO: checking for $ac_word" >&5
5463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5464 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5465   echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467   if test -n "$ac_ct_RANLIB"; then
5468   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473   IFS=$as_save_IFS
5474   test -z "$as_dir" && as_dir=.
5475   for ac_exec_ext in '' $ac_executable_extensions; do
5476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477     ac_cv_prog_ac_ct_RANLIB="ranlib"
5478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479     break 2
5480   fi
5481 done
5482 done
5483
5484   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5485 fi
5486 fi
5487 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5488 if test -n "$ac_ct_RANLIB"; then
5489   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5490 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5491 else
5492   echo "$as_me:$LINENO: result: no" >&5
5493 echo "${ECHO_T}no" >&6
5494 fi
5495
5496   RANLIB=$ac_ct_RANLIB
5497 else
5498   RANLIB="$ac_cv_prog_RANLIB"
5499 fi
5500
5501 if test -n "$ac_tool_prefix"; then
5502   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5503 set dummy ${ac_tool_prefix}strip; ac_word=$2
5504 echo "$as_me:$LINENO: checking for $ac_word" >&5
5505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5506 if test "${ac_cv_prog_STRIP+set}" = set; then
5507   echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509   if test -n "$STRIP"; then
5510   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5511 else
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 for as_dir in $PATH
5514 do
5515   IFS=$as_save_IFS
5516   test -z "$as_dir" && as_dir=.
5517   for ac_exec_ext in '' $ac_executable_extensions; do
5518   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5519     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5521     break 2
5522   fi
5523 done
5524 done
5525
5526 fi
5527 fi
5528 STRIP=$ac_cv_prog_STRIP
5529 if test -n "$STRIP"; then
5530   echo "$as_me:$LINENO: result: $STRIP" >&5
5531 echo "${ECHO_T}$STRIP" >&6
5532 else
5533   echo "$as_me:$LINENO: result: no" >&5
5534 echo "${ECHO_T}no" >&6
5535 fi
5536
5537 fi
5538 if test -z "$ac_cv_prog_STRIP"; then
5539   ac_ct_STRIP=$STRIP
5540   # Extract the first word of "strip", so it can be a program name with args.
5541 set dummy strip; ac_word=$2
5542 echo "$as_me:$LINENO: checking for $ac_word" >&5
5543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5544 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5545   echo $ECHO_N "(cached) $ECHO_C" >&6
5546 else
5547   if test -n "$ac_ct_STRIP"; then
5548   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5549 else
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH
5552 do
5553   IFS=$as_save_IFS
5554   test -z "$as_dir" && as_dir=.
5555   for ac_exec_ext in '' $ac_executable_extensions; do
5556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5557     ac_cv_prog_ac_ct_STRIP="strip"
5558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5559     break 2
5560   fi
5561 done
5562 done
5563
5564   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5565 fi
5566 fi
5567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5568 if test -n "$ac_ct_STRIP"; then
5569   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5570 echo "${ECHO_T}$ac_ct_STRIP" >&6
5571 else
5572   echo "$as_me:$LINENO: result: no" >&5
5573 echo "${ECHO_T}no" >&6
5574 fi
5575
5576   STRIP=$ac_ct_STRIP
5577 else
5578   STRIP="$ac_cv_prog_STRIP"
5579 fi
5580
5581
5582 old_CC="$CC"
5583 old_CFLAGS="$CFLAGS"
5584
5585 # Set sane defaults for various variables
5586 test -z "$AR" && AR=ar
5587 test -z "$AR_FLAGS" && AR_FLAGS=cru
5588 test -z "$AS" && AS=as
5589 test -z "$CC" && CC=cc
5590 test -z "$LTCC" && LTCC=$CC
5591 test -z "$DLLTOOL" && DLLTOOL=dlltool
5592 test -z "$LD" && LD=ld
5593 test -z "$LN_S" && LN_S="ln -s"
5594 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5595 test -z "$NM" && NM=nm
5596 test -z "$SED" && SED=sed
5597 test -z "$OBJDUMP" && OBJDUMP=objdump
5598 test -z "$RANLIB" && RANLIB=:
5599 test -z "$STRIP" && STRIP=:
5600 test -z "$ac_objext" && ac_objext=o
5601
5602 # Determine commands to create old-style static archives.
5603 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5604 old_postinstall_cmds='chmod 644 $oldlib'
5605 old_postuninstall_cmds=
5606
5607 if test -n "$RANLIB"; then
5608   case $host_os in
5609   openbsd*)
5610     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5611     ;;
5612   *)
5613     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5614     ;;
5615   esac
5616   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5617 fi
5618
5619 # Only perform the check for file, if the check method requires it
5620 case $deplibs_check_method in
5621 file_magic*)
5622   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5623     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5624 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5625 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5626   echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628   case $MAGIC_CMD in
5629 [\\/*] |  ?:[\\/]*)
5630   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5631   ;;
5632 *)
5633   lt_save_MAGIC_CMD="$MAGIC_CMD"
5634   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5635   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5636   for ac_dir in $ac_dummy; do
5637     IFS="$lt_save_ifs"
5638     test -z "$ac_dir" && ac_dir=.
5639     if test -f $ac_dir/${ac_tool_prefix}file; then
5640       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5641       if test -n "$file_magic_test_file"; then
5642         case $deplibs_check_method in
5643         "file_magic "*)
5644           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5645           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5646           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5647             $EGREP "$file_magic_regex" > /dev/null; then
5648             :
5649           else
5650             cat <<EOF 1>&2
5651
5652 *** Warning: the command libtool uses to detect shared libraries,
5653 *** $file_magic_cmd, produces output that libtool cannot recognize.
5654 *** The result is that libtool may fail to recognize shared libraries
5655 *** as such.  This will affect the creation of libtool libraries that
5656 *** depend on shared libraries, but programs linked with such libtool
5657 *** libraries will work regardless of this problem.  Nevertheless, you
5658 *** may want to report the problem to your system manager and/or to
5659 *** bug-libtool@gnu.org
5660
5661 EOF
5662           fi ;;
5663         esac
5664       fi
5665       break
5666     fi
5667   done
5668   IFS="$lt_save_ifs"
5669   MAGIC_CMD="$lt_save_MAGIC_CMD"
5670   ;;
5671 esac
5672 fi
5673
5674 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5675 if test -n "$MAGIC_CMD"; then
5676   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5677 echo "${ECHO_T}$MAGIC_CMD" >&6
5678 else
5679   echo "$as_me:$LINENO: result: no" >&5
5680 echo "${ECHO_T}no" >&6
5681 fi
5682
5683 if test -z "$lt_cv_path_MAGIC_CMD"; then
5684   if test -n "$ac_tool_prefix"; then
5685     echo "$as_me:$LINENO: checking for file" >&5
5686 echo $ECHO_N "checking for file... $ECHO_C" >&6
5687 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5688   echo $ECHO_N "(cached) $ECHO_C" >&6
5689 else
5690   case $MAGIC_CMD in
5691 [\\/*] |  ?:[\\/]*)
5692   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5693   ;;
5694 *)
5695   lt_save_MAGIC_CMD="$MAGIC_CMD"
5696   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5697   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5698   for ac_dir in $ac_dummy; do
5699     IFS="$lt_save_ifs"
5700     test -z "$ac_dir" && ac_dir=.
5701     if test -f $ac_dir/file; then
5702       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5703       if test -n "$file_magic_test_file"; then
5704         case $deplibs_check_method in
5705         "file_magic "*)
5706           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5707           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5708           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5709             $EGREP "$file_magic_regex" > /dev/null; then
5710             :
5711           else
5712             cat <<EOF 1>&2
5713
5714 *** Warning: the command libtool uses to detect shared libraries,
5715 *** $file_magic_cmd, produces output that libtool cannot recognize.
5716 *** The result is that libtool may fail to recognize shared libraries
5717 *** as such.  This will affect the creation of libtool libraries that
5718 *** depend on shared libraries, but programs linked with such libtool
5719 *** libraries will work regardless of this problem.  Nevertheless, you
5720 *** may want to report the problem to your system manager and/or to
5721 *** bug-libtool@gnu.org
5722
5723 EOF
5724           fi ;;
5725         esac
5726       fi
5727       break
5728     fi
5729   done
5730   IFS="$lt_save_ifs"
5731   MAGIC_CMD="$lt_save_MAGIC_CMD"
5732   ;;
5733 esac
5734 fi
5735
5736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5737 if test -n "$MAGIC_CMD"; then
5738   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5739 echo "${ECHO_T}$MAGIC_CMD" >&6
5740 else
5741   echo "$as_me:$LINENO: result: no" >&5
5742 echo "${ECHO_T}no" >&6
5743 fi
5744
5745   else
5746     MAGIC_CMD=:
5747   fi
5748 fi
5749
5750   fi
5751   ;;
5752 esac
5753
5754 enable_dlopen=no
5755 enable_win32_dll=no
5756
5757 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5758 if test "${enable_libtool_lock+set}" = set; then
5759   enableval="$enable_libtool_lock"
5760
5761 fi;
5762 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5763
5764
5765 # Check whether --with-pic or --without-pic was given.
5766 if test "${with_pic+set}" = set; then
5767   withval="$with_pic"
5768   pic_mode="$withval"
5769 else
5770   pic_mode=default
5771 fi;
5772 test -z "$pic_mode" && pic_mode=default
5773
5774 # Use C for the default configuration in the libtool script
5775 tagname=
5776 lt_save_CC="$CC"
5777 ac_ext=c
5778 ac_cpp='$CPP $CPPFLAGS'
5779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5782
5783
5784 # Source file extension for C test sources.
5785 ac_ext=c
5786
5787 # Object file extension for compiled C test sources.
5788 objext=o
5789 objext=$objext
5790
5791 # Code to be used in simple compile tests
5792 lt_simple_compile_test_code="int some_variable = 0;\n"
5793
5794 # Code to be used in simple link tests
5795 lt_simple_link_test_code='int main(){return(0);}\n'
5796
5797
5798 # If no C compiler was specified, use CC.
5799 LTCC=${LTCC-"$CC"}
5800
5801 # Allow CC to be a program name with arguments.
5802 compiler=$CC
5803
5804
5805 #
5806 # Check for any special shared library compilation flags.
5807 #
5808 lt_prog_cc_shlib=
5809 if test "$GCC" = no; then
5810   case $host_os in
5811   sco3.2v5*)
5812     lt_prog_cc_shlib='-belf'
5813     ;;
5814   esac
5815 fi
5816 if test -n "$lt_prog_cc_shlib"; then
5817   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5818 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5819   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5820   else
5821     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5822 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5823     lt_cv_prog_cc_can_build_shared=no
5824   fi
5825 fi
5826
5827
5828 #
5829 # Check to make sure the static flag actually works.
5830 #
5831 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5832 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5833 if test "${lt_prog_compiler_static_works+set}" = set; then
5834   echo $ECHO_N "(cached) $ECHO_C" >&6
5835 else
5836   lt_prog_compiler_static_works=no
5837    save_LDFLAGS="$LDFLAGS"
5838    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5839    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5840    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5841      # The compiler can only warn and ignore the option if not recognized
5842      # So say no if there are warnings
5843      if test -s conftest.err; then
5844        # Append any errors to the config.log.
5845        cat conftest.err 1>&5
5846      else
5847        lt_prog_compiler_static_works=yes
5848      fi
5849    fi
5850    $rm conftest*
5851    LDFLAGS="$save_LDFLAGS"
5852
5853 fi
5854 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5855 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5856
5857 if test x"$lt_prog_compiler_static_works" = xyes; then
5858     :
5859 else
5860     lt_prog_compiler_static=
5861 fi
5862
5863
5864
5865
5866 lt_prog_compiler_no_builtin_flag=
5867
5868 if test "$GCC" = yes; then
5869   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5870
5871   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5872 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5873 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5874   echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876   lt_cv_prog_compiler_rtti_exceptions=no
5877   ac_outfile=conftest.$ac_objext
5878    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5879    lt_compiler_flag="-fno-rtti -fno-exceptions"
5880    # Insert the option either (1) after the last *FLAGS variable, or
5881    # (2) before a word containing "conftest.", or (3) at the end.
5882    # Note that $ac_compile itself does not contain backslashes and begins
5883    # with a dollar sign (not a hyphen), so the echo should work correctly.
5884    # The option is referenced via a variable to avoid confusing sed.
5885    lt_compile=`echo "$ac_compile" | $SED \
5886    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5887    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5888    -e 's:$: $lt_compiler_flag:'`
5889    (eval echo "\"\$as_me:5889: $lt_compile\"" >&5)
5890    (eval "$lt_compile" 2>conftest.err)
5891    ac_status=$?
5892    cat conftest.err >&5
5893    echo "$as_me:5893: \$? = $ac_status" >&5
5894    if (exit $ac_status) && test -s "$ac_outfile"; then
5895      # The compiler can only warn and ignore the option if not recognized
5896      # So say no if there are warnings
5897      if test ! -s conftest.err; then
5898        lt_cv_prog_compiler_rtti_exceptions=yes
5899      fi
5900    fi
5901    $rm conftest*
5902
5903 fi
5904 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5905 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5906
5907 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5908     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5909 else
5910     :
5911 fi
5912
5913 fi
5914
5915 lt_prog_compiler_wl=
5916 lt_prog_compiler_pic=
5917 lt_prog_compiler_static=
5918
5919 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5920 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5921
5922   if test "$GCC" = yes; then
5923     lt_prog_compiler_wl='-Wl,'
5924     lt_prog_compiler_static='-static'
5925
5926     case $host_os in
5927       aix*)
5928       # All AIX code is PIC.
5929       if test "$host_cpu" = ia64; then
5930         # AIX 5 now supports IA64 processor
5931         lt_prog_compiler_static='-Bstatic'
5932       fi
5933       ;;
5934
5935     amigaos*)
5936       # FIXME: we need at least 68020 code to build shared libraries, but
5937       # adding the `-m68020' flag to GCC prevents building anything better,
5938       # like `-m68040'.
5939       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5940       ;;
5941
5942     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5943       # PIC is the default for these OSes.
5944       ;;
5945
5946     mingw* | pw32* | os2*)
5947       # This hack is so that the source file can tell whether it is being
5948       # built for inclusion in a dll (and should export symbols for example).
5949       lt_prog_compiler_pic='-DDLL_EXPORT'
5950       ;;
5951
5952     darwin* | rhapsody*)
5953       # PIC is the default on this platform
5954       # Common symbols not allowed in MH_DYLIB files
5955       lt_prog_compiler_pic='-fno-common'
5956       ;;
5957
5958     msdosdjgpp*)
5959       # Just because we use GCC doesn't mean we suddenly get shared libraries
5960       # on systems that don't support them.
5961       lt_prog_compiler_can_build_shared=no
5962       enable_shared=no
5963       ;;
5964
5965     sysv4*MP*)
5966       if test -d /usr/nec; then
5967         lt_prog_compiler_pic=-Kconform_pic
5968       fi
5969       ;;
5970
5971     hpux*)
5972       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5973       # not for PA HP-UX.
5974       case "$host_cpu" in
5975       hppa*64*|ia64*)
5976         # +Z the default
5977         ;;
5978       *)
5979         lt_prog_compiler_pic='-fPIC'
5980         ;;
5981       esac
5982       ;;
5983
5984     *)
5985       lt_prog_compiler_pic='-fPIC'
5986       ;;
5987     esac
5988   else
5989     # PORTME Check for flag to pass linker flags through the system compiler.
5990     case $host_os in
5991     aix*)
5992       lt_prog_compiler_wl='-Wl,'
5993       if test "$host_cpu" = ia64; then
5994         # AIX 5 now supports IA64 processor
5995         lt_prog_compiler_static='-Bstatic'
5996       else
5997         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5998       fi
5999       ;;
6000
6001     mingw* | pw32* | os2*)
6002       # This hack is so that the source file can tell whether it is being
6003       # built for inclusion in a dll (and should export symbols for example).
6004       lt_prog_compiler_pic='-DDLL_EXPORT'
6005       ;;
6006
6007     hpux9* | hpux10* | hpux11*)
6008       lt_prog_compiler_wl='-Wl,'
6009       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6010       # not for PA HP-UX.
6011       case "$host_cpu" in
6012       hppa*64*|ia64*)
6013         # +Z the default
6014         ;;
6015       *)
6016         lt_prog_compiler_pic='+Z'
6017         ;;
6018       esac
6019       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6020       lt_prog_compiler_static='${wl}-a ${wl}archive'
6021       ;;
6022
6023     irix5* | irix6* | nonstopux*)
6024       lt_prog_compiler_wl='-Wl,'
6025       # PIC (with -KPIC) is the default.
6026       lt_prog_compiler_static='-non_shared'
6027       ;;
6028
6029     newsos6)
6030       lt_prog_compiler_pic='-KPIC'
6031       lt_prog_compiler_static='-Bstatic'
6032       ;;
6033
6034     linux*)
6035       case $CC in
6036       icc|ecc)
6037         lt_prog_compiler_wl='-Wl,'
6038         lt_prog_compiler_pic='-KPIC'
6039         lt_prog_compiler_static='-static'
6040         ;;
6041       ccc)
6042         lt_prog_compiler_wl='-Wl,'
6043         # All Alpha code is PIC.
6044         lt_prog_compiler_static='-non_shared'
6045         ;;
6046       esac
6047       ;;
6048
6049     osf3* | osf4* | osf5*)
6050       lt_prog_compiler_wl='-Wl,'
6051       # All OSF/1 code is PIC.
6052       lt_prog_compiler_static='-non_shared'
6053       ;;
6054
6055     sco3.2v5*)
6056       lt_prog_compiler_pic='-Kpic'
6057       lt_prog_compiler_static='-dn'
6058       ;;
6059
6060     solaris*)
6061       lt_prog_compiler_wl='-Wl,'
6062       lt_prog_compiler_pic='-KPIC'
6063       lt_prog_compiler_static='-Bstatic'
6064       ;;
6065
6066     sunos4*)
6067       lt_prog_compiler_wl='-Qoption ld '
6068       lt_prog_compiler_pic='-PIC'
6069       lt_prog_compiler_static='-Bstatic'
6070       ;;
6071
6072     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6073       lt_prog_compiler_wl='-Wl,'
6074       lt_prog_compiler_pic='-KPIC'
6075       lt_prog_compiler_static='-Bstatic'
6076       ;;
6077
6078     sysv4*MP*)
6079       if test -d /usr/nec ;then
6080         lt_prog_compiler_pic='-Kconform_pic'
6081         lt_prog_compiler_static='-Bstatic'
6082       fi
6083       ;;
6084
6085     uts4*)
6086       lt_prog_compiler_pic='-pic'
6087       lt_prog_compiler_static='-Bstatic'
6088       ;;
6089
6090     *)
6091       lt_prog_compiler_can_build_shared=no
6092       ;;
6093     esac
6094   fi
6095
6096 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6097 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6098
6099 #
6100 # Check to make sure the PIC flag actually works.
6101 #
6102 if test -n "$lt_prog_compiler_pic"; then
6103   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6104 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6105 if test "${lt_prog_compiler_pic_works+set}" = set; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108   lt_prog_compiler_pic_works=no
6109   ac_outfile=conftest.$ac_objext
6110    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6111    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6112    # Insert the option either (1) after the last *FLAGS variable, or
6113    # (2) before a word containing "conftest.", or (3) at the end.
6114    # Note that $ac_compile itself does not contain backslashes and begins
6115    # with a dollar sign (not a hyphen), so the echo should work correctly.
6116    # The option is referenced via a variable to avoid confusing sed.
6117    lt_compile=`echo "$ac_compile" | $SED \
6118    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6119    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6120    -e 's:$: $lt_compiler_flag:'`
6121    (eval echo "\"\$as_me:6121: $lt_compile\"" >&5)
6122    (eval "$lt_compile" 2>conftest.err)
6123    ac_status=$?
6124    cat conftest.err >&5
6125    echo "$as_me:6125: \$? = $ac_status" >&5
6126    if (exit $ac_status) && test -s "$ac_outfile"; then
6127      # The compiler can only warn and ignore the option if not recognized
6128      # So say no if there are warnings
6129      if test ! -s conftest.err; then
6130        lt_prog_compiler_pic_works=yes
6131      fi
6132    fi
6133    $rm conftest*
6134
6135 fi
6136 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6137 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6138
6139 if test x"$lt_prog_compiler_pic_works" = xyes; then
6140     case $lt_prog_compiler_pic in
6141      "" | " "*) ;;
6142      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6143      esac
6144 else
6145     lt_prog_compiler_pic=
6146      lt_prog_compiler_can_build_shared=no
6147 fi
6148
6149 fi
6150 case "$host_os" in
6151   # For platforms which do not support PIC, -DPIC is meaningless:
6152   *djgpp*)
6153     lt_prog_compiler_pic=
6154     ;;
6155   *)
6156     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6157     ;;
6158 esac
6159
6160 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6161 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6162 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6163   echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165   lt_cv_prog_compiler_c_o=no
6166    $rm -r conftest 2>/dev/null
6167    mkdir conftest
6168    cd conftest
6169    mkdir out
6170    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6171
6172    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6173    # that will create temporary files in the current directory regardless of
6174    # the output directory.  Thus, making CWD read-only will cause this test
6175    # to fail, enabling locking or at least warning the user not to do parallel
6176    # builds.
6177    chmod -w .
6178
6179    lt_compiler_flag="-o out/conftest2.$ac_objext"
6180    # Insert the option either (1) after the last *FLAGS variable, or
6181    # (2) before a word containing "conftest.", or (3) at the end.
6182    # Note that $ac_compile itself does not contain backslashes and begins
6183    # with a dollar sign (not a hyphen), so the echo should work correctly.
6184    lt_compile=`echo "$ac_compile" | $SED \
6185    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6186    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6187    -e 's:$: $lt_compiler_flag:'`
6188    (eval echo "\"\$as_me:6188: $lt_compile\"" >&5)
6189    (eval "$lt_compile" 2>out/conftest.err)
6190    ac_status=$?
6191    cat out/conftest.err >&5
6192    echo "$as_me:6192: \$? = $ac_status" >&5
6193    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6194    then
6195      # The compiler can only warn and ignore the option if not recognized
6196      # So say no if there are warnings
6197      if test ! -s out/conftest.err; then
6198        lt_cv_prog_compiler_c_o=yes
6199      fi
6200    fi
6201    chmod u+w .
6202    $rm conftest* out/*
6203    rmdir out
6204    cd ..
6205    rmdir conftest
6206    $rm conftest*
6207
6208 fi
6209 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6210 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6211
6212
6213 hard_links="nottested"
6214 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6215   # do not overwrite the value of need_locks provided by the user
6216   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6217 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6218   hard_links=yes
6219   $rm conftest*
6220   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6221   touch conftest.a
6222   ln conftest.a conftest.b 2>&5 || hard_links=no
6223   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6224   echo "$as_me:$LINENO: result: $hard_links" >&5
6225 echo "${ECHO_T}$hard_links" >&6
6226   if test "$hard_links" = no; then
6227     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6228 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6229     need_locks=warn
6230   fi
6231 else
6232   need_locks=no
6233 fi
6234
6235 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6236 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6237
6238   runpath_var=
6239   allow_undefined_flag=
6240   enable_shared_with_static_runtimes=no
6241   archive_cmds=
6242   archive_expsym_cmds=
6243   old_archive_From_new_cmds=
6244   old_archive_from_expsyms_cmds=
6245   export_dynamic_flag_spec=
6246   whole_archive_flag_spec=
6247   thread_safe_flag_spec=
6248   hardcode_libdir_flag_spec=
6249   hardcode_libdir_flag_spec_ld=
6250   hardcode_libdir_separator=
6251   hardcode_direct=no
6252   hardcode_minus_L=no
6253   hardcode_shlibpath_var=unsupported
6254   link_all_deplibs=unknown
6255   hardcode_automatic=no
6256   module_cmds=
6257   module_expsym_cmds=
6258   always_export_symbols=no
6259   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6260   # include_expsyms should be a list of space-separated symbols to be *always*
6261   # included in the symbol list
6262   include_expsyms=
6263   # exclude_expsyms can be an extended regexp of symbols to exclude
6264   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6265   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6266   # as well as any symbol that contains `d'.
6267   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6268   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6269   # platforms (ab)use it in PIC code, but their linkers get confused if
6270   # the symbol is explicitly referenced.  Since portable code cannot
6271   # rely on this symbol name, it's probably fine to never include it in
6272   # preloaded symbol tables.
6273   extract_expsyms_cmds=
6274
6275   case $host_os in
6276   cygwin* | mingw* | pw32*)
6277     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6278     # When not using gcc, we currently assume that we are using
6279     # Microsoft Visual C++.
6280     if test "$GCC" != yes; then
6281       with_gnu_ld=no
6282     fi
6283     ;;
6284   openbsd*)
6285     with_gnu_ld=no
6286     ;;
6287   esac
6288
6289   ld_shlibs=yes
6290   if test "$with_gnu_ld" = yes; then
6291     # If archive_cmds runs LD, not CC, wlarc should be empty
6292     wlarc='${wl}'
6293
6294     # See if GNU ld supports shared libraries.
6295     case $host_os in
6296     aix3* | aix4* | aix5*)
6297       # On AIX/PPC, the GNU linker is very broken
6298       if test "$host_cpu" != ia64; then
6299         ld_shlibs=no
6300         cat <<EOF 1>&2
6301
6302 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6303 *** to be unable to reliably create shared libraries on AIX.
6304 *** Therefore, libtool is disabling shared libraries support.  If you
6305 *** really care for shared libraries, you may want to modify your PATH
6306 *** so that a non-GNU linker is found, and then restart.
6307
6308 EOF
6309       fi
6310       ;;
6311
6312     amigaos*)
6313       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)'
6314       hardcode_libdir_flag_spec='-L$libdir'
6315       hardcode_minus_L=yes
6316
6317       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6318       # that the semantics of dynamic libraries on AmigaOS, at least up
6319       # to version 4, is to share data among multiple programs linked
6320       # with the same dynamic library.  Since this doesn't match the
6321       # behavior of shared libraries on other platforms, we can't use
6322       # them.
6323       ld_shlibs=no
6324       ;;
6325
6326     beos*)
6327       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6328         allow_undefined_flag=unsupported
6329         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6330         # support --undefined.  This deserves some investigation.  FIXME
6331         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6332       else
6333         ld_shlibs=no
6334       fi
6335       ;;
6336
6337     cygwin* | mingw* | pw32*)
6338       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6339       # as there is no search path for DLLs.
6340       hardcode_libdir_flag_spec='-L$libdir'
6341       allow_undefined_flag=unsupported
6342       always_export_symbols=no
6343       enable_shared_with_static_runtimes=yes
6344       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6345
6346       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6347         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6348         # If the export-symbols file already is a .def file (1st line
6349         # is EXPORTS), use it as is; otherwise, prepend...
6350         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6351           cp $export_symbols $output_objdir/$soname.def;
6352         else
6353           echo EXPORTS > $output_objdir/$soname.def;
6354           cat $export_symbols >> $output_objdir/$soname.def;
6355         fi~
6356         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6357       else
6358         ld_shlibs=no
6359       fi
6360       ;;
6361
6362     netbsd*)
6363       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6364         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6365         wlarc=
6366       else
6367         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6368         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6369       fi
6370       ;;
6371
6372     solaris* | sysv5*)
6373       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6374         ld_shlibs=no
6375         cat <<EOF 1>&2
6376
6377 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6378 *** create shared libraries on Solaris systems.  Therefore, libtool
6379 *** is disabling shared libraries support.  We urge you to upgrade GNU
6380 *** binutils to release 2.9.1 or newer.  Another option is to modify
6381 *** your PATH or compiler configuration so that the native linker is
6382 *** used, and then restart.
6383
6384 EOF
6385       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6386         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6387         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6388       else
6389         ld_shlibs=no
6390       fi
6391       ;;
6392
6393     sunos4*)
6394       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6395       wlarc=
6396       hardcode_direct=yes
6397       hardcode_shlibpath_var=no
6398       ;;
6399
6400     *)
6401       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6402         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6403         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6404       else
6405         ld_shlibs=no
6406       fi
6407       ;;
6408     esac
6409
6410     if test "$ld_shlibs" = yes; then
6411       runpath_var=LD_RUN_PATH
6412       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6413       export_dynamic_flag_spec='${wl}--export-dynamic'
6414       # ancient GNU ld didn't support --whole-archive et. al.
6415       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6416         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6417       else
6418         whole_archive_flag_spec=
6419       fi
6420     fi
6421   else
6422     # PORTME fill in a description of your system's linker (not GNU ld)
6423     case $host_os in
6424     aix3*)
6425       allow_undefined_flag=unsupported
6426       always_export_symbols=yes
6427       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'
6428       # Note: this linker hardcodes the directories in LIBPATH if there
6429       # are no directories specified by -L.
6430       hardcode_minus_L=yes
6431       if test "$GCC" = yes && test -z "$link_static_flag"; then
6432         # Neither direct hardcoding nor static linking is supported with a
6433         # broken collect2.
6434         hardcode_direct=unsupported
6435       fi
6436       ;;
6437
6438     aix4* | aix5*)
6439       if test "$host_cpu" = ia64; then
6440         # On IA64, the linker does run time linking by default, so we don't
6441         # have to do anything special.
6442         aix_use_runtimelinking=no
6443         exp_sym_flag='-Bexport'
6444         no_entry_flag=""
6445       else
6446         # If we're using GNU nm, then we don't want the "-C" option.
6447         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6448         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6449           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'
6450         else
6451           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'
6452         fi
6453         aix_use_runtimelinking=no
6454
6455         # Test if we are trying to use run time linking or normal
6456         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6457         # need to do runtime linking.
6458         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6459           for ld_flag in $LDFLAGS; do
6460           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6461             aix_use_runtimelinking=yes
6462             break
6463           fi
6464           done
6465         esac
6466
6467         exp_sym_flag='-bexport'
6468         no_entry_flag='-bnoentry'
6469       fi
6470
6471       # When large executables or shared objects are built, AIX ld can
6472       # have problems creating the table of contents.  If linking a library
6473       # or program results in "error TOC overflow" add -mminimal-toc to
6474       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6475       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6476
6477       archive_cmds=''
6478       hardcode_direct=yes
6479       hardcode_libdir_separator=':'
6480       link_all_deplibs=yes
6481
6482       if test "$GCC" = yes; then
6483         case $host_os in aix4.012|aix4.012.*)
6484         # We only want to do this on AIX 4.2 and lower, the check
6485         # below for broken collect2 doesn't work under 4.3+
6486           collect2name=`${CC} -print-prog-name=collect2`
6487           if test -f "$collect2name" && \
6488            strings "$collect2name" | grep resolve_lib_name >/dev/null
6489           then
6490           # We have reworked collect2
6491           hardcode_direct=yes
6492           else
6493           # We have old collect2
6494           hardcode_direct=unsupported
6495           # It fails to find uninstalled libraries when the uninstalled
6496           # path is not listed in the libpath.  Setting hardcode_minus_L
6497           # to unsupported forces relinking
6498           hardcode_minus_L=yes
6499           hardcode_libdir_flag_spec='-L$libdir'
6500           hardcode_libdir_separator=
6501           fi
6502         esac
6503         shared_flag='-shared'
6504       else
6505         # not using gcc
6506         if test "$host_cpu" = ia64; then
6507         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6508         # chokes on -Wl,-G. The following line is correct:
6509           shared_flag='-G'
6510         else
6511         if test "$aix_use_runtimelinking" = yes; then
6512             shared_flag='${wl}-G'
6513           else
6514             shared_flag='${wl}-bM:SRE'
6515         fi
6516         fi
6517       fi
6518
6519       # It seems that -bexpall does not export symbols beginning with
6520       # underscore (_), so it is better to generate a list of symbols to export.
6521       always_export_symbols=yes
6522       if test "$aix_use_runtimelinking" = yes; then
6523         # Warning - without using the other runtime loading flags (-brtl),
6524         # -berok will link without error, but may produce a broken library.
6525         allow_undefined_flag='-berok'
6526        # Determine the default libpath from the value encoded in an empty executable.
6527        cat >conftest.$ac_ext <<_ACEOF
6528 #line $LINENO "configure"
6529 /* confdefs.h.  */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h.  */
6534
6535 int
6536 main ()
6537 {
6538
6539   ;
6540   return 0;
6541 }
6542 _ACEOF
6543 rm -f conftest.$ac_objext conftest$ac_exeext
6544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6545   (eval $ac_link) 2>&5
6546   ac_status=$?
6547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548   (exit $ac_status); } &&
6549          { ac_try='test -s conftest$ac_exeext'
6550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551   (eval $ac_try) 2>&5
6552   ac_status=$?
6553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554   (exit $ac_status); }; }; then
6555
6556 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6557 }'`
6558 # Check for a 64-bit object if we didn't find anything.
6559 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; }
6560 }'`; fi
6561 else
6562   echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6564
6565 fi
6566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6567 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6568
6569        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6570         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"
6571        else
6572         if test "$host_cpu" = ia64; then
6573           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6574           allow_undefined_flag="-z nodefs"
6575           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"
6576         else
6577          # Determine the default libpath from the value encoded in an empty executable.
6578          cat >conftest.$ac_ext <<_ACEOF
6579 #line $LINENO "configure"
6580 /* confdefs.h.  */
6581 _ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h.  */
6585
6586 int
6587 main ()
6588 {
6589
6590   ;
6591   return 0;
6592 }
6593 _ACEOF
6594 rm -f conftest.$ac_objext conftest$ac_exeext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6596   (eval $ac_link) 2>&5
6597   ac_status=$?
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); } &&
6600          { ac_try='test -s conftest$ac_exeext'
6601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602   (eval $ac_try) 2>&5
6603   ac_status=$?
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); }; }; then
6606
6607 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6608 }'`
6609 # Check for a 64-bit object if we didn't find anything.
6610 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; }
6611 }'`; fi
6612 else
6613   echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6615
6616 fi
6617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6618 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6619
6620          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6621           # Warning - without using the other run time loading flags,
6622           # -berok will link without error, but may produce a broken library.
6623           no_undefined_flag=' ${wl}-bernotok'
6624           allow_undefined_flag=' ${wl}-berok'
6625           # -bexpall does not export symbols beginning with underscore (_)
6626           always_export_symbols=yes
6627           # Exported symbols can be pulled into shared objects from archives
6628           whole_archive_flag_spec=' '
6629           archive_cmds_need_lc=yes
6630           # This is similar to how AIX traditionally builds it's shared libraries.
6631           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'
6632         fi
6633       fi
6634       ;;
6635
6636     amigaos*)
6637       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)'
6638       hardcode_libdir_flag_spec='-L$libdir'
6639       hardcode_minus_L=yes
6640       # see comment about different semantics on the GNU ld section
6641       ld_shlibs=no
6642       ;;
6643
6644     bsdi4*)
6645       export_dynamic_flag_spec=-rdynamic
6646       ;;
6647
6648     cygwin* | mingw* | pw32*)
6649       # When not using gcc, we currently assume that we are using
6650       # Microsoft Visual C++.
6651       # hardcode_libdir_flag_spec is actually meaningless, as there is
6652       # no search path for DLLs.
6653       hardcode_libdir_flag_spec=' '
6654       allow_undefined_flag=unsupported
6655       # Tell ltmain to make .lib files, not .a files.
6656       libext=lib
6657       # Tell ltmain to make .dll files, not .so files.
6658       shrext=".dll"
6659       # FIXME: Setting linknames here is a bad hack.
6660       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6661       # The linker will automatically build a .lib file if we build a DLL.
6662       old_archive_From_new_cmds='true'
6663       # FIXME: Should let the user specify the lib program.
6664       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6665       fix_srcfile_path='`cygpath -w "$srcfile"`'
6666       enable_shared_with_static_runtimes=yes
6667       ;;
6668
6669     darwin* | rhapsody*)
6670     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6671       archive_cmds_need_lc=no
6672       case "$host_os" in
6673       rhapsody* | darwin1.[012])
6674         allow_undefined_flag='-undefined suppress'
6675         ;;
6676       *) # Darwin 1.3 on
6677         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6678         ;;
6679       esac
6680       # FIXME: Relying on posixy $() will cause problems for
6681       #        cross-compilation, but unfortunately the echo tests do not
6682       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6683       #        `"' quotes if we put them in here... so don't!
6684         lt_int_apple_cc_single_mod=no
6685         output_verbose_link_cmd='echo'
6686         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6687           lt_int_apple_cc_single_mod=yes
6688         fi
6689         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6690           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6691         else
6692         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'
6693       fi
6694       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6695       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6696         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6697           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}'
6698         else
6699           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}'
6700         fi
6701           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}'
6702       hardcode_direct=no
6703       hardcode_automatic=yes
6704       hardcode_shlibpath_var=unsupported
6705       whole_archive_flag_spec='-all_load $convenience'
6706       link_all_deplibs=yes
6707     fi
6708       ;;
6709
6710     dgux*)
6711       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6712       hardcode_libdir_flag_spec='-L$libdir'
6713       hardcode_shlibpath_var=no
6714       ;;
6715
6716     freebsd1*)
6717       ld_shlibs=no
6718       ;;
6719
6720     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6721     # support.  Future versions do this automatically, but an explicit c++rt0.o
6722     # does not break anything, and helps significantly (at the cost of a little
6723     # extra space).
6724     freebsd2.2*)
6725       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6726       hardcode_libdir_flag_spec='-R$libdir'
6727       hardcode_direct=yes
6728       hardcode_shlibpath_var=no
6729       ;;
6730
6731     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6732     freebsd2*)
6733       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6734       hardcode_direct=yes
6735       hardcode_minus_L=yes
6736       hardcode_shlibpath_var=no
6737       ;;
6738
6739     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6740     freebsd*)
6741       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6742       hardcode_libdir_flag_spec='-R$libdir'
6743       hardcode_direct=yes
6744       hardcode_shlibpath_var=no
6745       ;;
6746
6747     hpux9*)
6748       if test "$GCC" = yes; then
6749         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'
6750       else
6751         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'
6752       fi
6753       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6754       hardcode_libdir_separator=:
6755       hardcode_direct=yes
6756
6757       # hardcode_minus_L: Not really in the search PATH,
6758       # but as the default location of the library.
6759       hardcode_minus_L=yes
6760       export_dynamic_flag_spec='${wl}-E'
6761       ;;
6762
6763     hpux10* | hpux11*)
6764       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6765         case "$host_cpu" in
6766         hppa*64*|ia64*)
6767           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6768           ;;
6769         *)
6770           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6771           ;;
6772         esac
6773       else
6774         case "$host_cpu" in
6775         hppa*64*|ia64*)
6776           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6777           ;;
6778         *)
6779           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6780           ;;
6781         esac
6782       fi
6783       if test "$with_gnu_ld" = no; then
6784         case "$host_cpu" in
6785         hppa*64*)
6786           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6787           hardcode_libdir_flag_spec_ld='+b $libdir'
6788           hardcode_libdir_separator=:
6789           hardcode_direct=no
6790           hardcode_shlibpath_var=no
6791           ;;
6792         ia64*)
6793           hardcode_libdir_flag_spec='-L$libdir'
6794           hardcode_direct=no
6795           hardcode_shlibpath_var=no
6796
6797           # hardcode_minus_L: Not really in the search PATH,
6798           # but as the default location of the library.
6799           hardcode_minus_L=yes
6800           ;;
6801         *)
6802           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6803           hardcode_libdir_separator=:
6804           hardcode_direct=yes
6805           export_dynamic_flag_spec='${wl}-E'
6806
6807           # hardcode_minus_L: Not really in the search PATH,
6808           # but as the default location of the library.
6809           hardcode_minus_L=yes
6810           ;;
6811         esac
6812       fi
6813       ;;
6814
6815     irix5* | irix6* | nonstopux*)
6816       if test "$GCC" = yes; then
6817         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'
6818       else
6819         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'
6820         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6821       fi
6822       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6823       hardcode_libdir_separator=:
6824       link_all_deplibs=yes
6825       ;;
6826
6827     netbsd*)
6828       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6829         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6830       else
6831         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6832       fi
6833       hardcode_libdir_flag_spec='-R$libdir'
6834       hardcode_direct=yes
6835       hardcode_shlibpath_var=no
6836       ;;
6837
6838     newsos6)
6839       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6840       hardcode_direct=yes
6841       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6842       hardcode_libdir_separator=:
6843       hardcode_shlibpath_var=no
6844       ;;
6845
6846     openbsd*)
6847       hardcode_direct=yes
6848       hardcode_shlibpath_var=no
6849       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6850         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6851         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6852         export_dynamic_flag_spec='${wl}-E'
6853       else
6854        case $host_os in
6855          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6856            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6857            hardcode_libdir_flag_spec='-R$libdir'
6858            ;;
6859          *)
6860            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6861            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6862            ;;
6863        esac
6864       fi
6865       ;;
6866
6867     os2*)
6868       hardcode_libdir_flag_spec='-L$libdir'
6869       hardcode_minus_L=yes
6870       allow_undefined_flag=unsupported
6871       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'
6872       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6873       ;;
6874
6875     osf3*)
6876       if test "$GCC" = yes; then
6877         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6878         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'
6879       else
6880         allow_undefined_flag=' -expect_unresolved \*'
6881         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'
6882       fi
6883       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6884       hardcode_libdir_separator=:
6885       ;;
6886
6887     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6888       if test "$GCC" = yes; then
6889         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6890         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6891         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6892       else
6893         allow_undefined_flag=' -expect_unresolved \*'
6894         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'
6895         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6896         $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'
6897
6898         # Both c and cxx compiler support -rpath directly
6899         hardcode_libdir_flag_spec='-rpath $libdir'
6900       fi
6901       hardcode_libdir_separator=:
6902       ;;
6903
6904     sco3.2v5*)
6905       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6906       hardcode_shlibpath_var=no
6907       export_dynamic_flag_spec='${wl}-Bexport'
6908       runpath_var=LD_RUN_PATH
6909       hardcode_runpath_var=yes
6910       ;;
6911
6912     solaris*)
6913       no_undefined_flag=' -z text'
6914       if test "$GCC" = yes; then
6915         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6916         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6917           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6918       else
6919         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6920         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6921         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6922       fi
6923       hardcode_libdir_flag_spec='-R$libdir'
6924       hardcode_shlibpath_var=no
6925       case $host_os in
6926       solaris2.[0-5] | solaris2.[0-5].*) ;;
6927       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6928         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6929       esac
6930       link_all_deplibs=yes
6931       ;;
6932
6933     sunos4*)
6934       if test "x$host_vendor" = xsequent; then
6935         # Use $CC to link under sequent, because it throws in some extra .o
6936         # files that make .init and .fini sections work.
6937         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6938       else
6939         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6940       fi
6941       hardcode_libdir_flag_spec='-L$libdir'
6942       hardcode_direct=yes
6943       hardcode_minus_L=yes
6944       hardcode_shlibpath_var=no
6945       ;;
6946
6947     sysv4)
6948       case $host_vendor in
6949         sni)
6950           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6951           hardcode_direct=yes # is this really true???
6952         ;;
6953         siemens)
6954           ## LD is ld it makes a PLAMLIB
6955           ## CC just makes a GrossModule.
6956           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6957           reload_cmds='$CC -r -o $output$reload_objs'
6958           hardcode_direct=no
6959         ;;
6960         motorola)
6961           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6962           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6963         ;;
6964       esac
6965       runpath_var='LD_RUN_PATH'
6966       hardcode_shlibpath_var=no
6967       ;;
6968
6969     sysv4.3*)
6970       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6971       hardcode_shlibpath_var=no
6972       export_dynamic_flag_spec='-Bexport'
6973       ;;
6974
6975     sysv4*MP*)
6976       if test -d /usr/nec; then
6977         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6978         hardcode_shlibpath_var=no
6979         runpath_var=LD_RUN_PATH
6980         hardcode_runpath_var=yes
6981         ld_shlibs=yes
6982       fi
6983       ;;
6984
6985     sysv4.2uw2*)
6986       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6987       hardcode_direct=yes
6988       hardcode_minus_L=no
6989       hardcode_shlibpath_var=no
6990       hardcode_runpath_var=yes
6991       runpath_var=LD_RUN_PATH
6992       ;;
6993
6994    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
6995       no_undefined_flag='${wl}-z ${wl}text'
6996       if test "$GCC" = yes; then
6997         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6998       else
6999         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7000       fi
7001       runpath_var='LD_RUN_PATH'
7002       hardcode_shlibpath_var=no
7003       ;;
7004
7005     sysv5*)
7006       no_undefined_flag=' -z text'
7007       # $CC -shared without GNU ld will not create a library from C++
7008       # object files and a static libstdc++, better avoid it by now
7009       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7010       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7011                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7012       hardcode_libdir_flag_spec=
7013       hardcode_shlibpath_var=no
7014       runpath_var='LD_RUN_PATH'
7015       ;;
7016
7017     uts4*)
7018       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7019       hardcode_libdir_flag_spec='-L$libdir'
7020       hardcode_shlibpath_var=no
7021       ;;
7022
7023     *)
7024       ld_shlibs=no
7025       ;;
7026     esac
7027   fi
7028
7029 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7030 echo "${ECHO_T}$ld_shlibs" >&6
7031 test "$ld_shlibs" = no && can_build_shared=no
7032
7033 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7034 if test "$GCC" = yes; then
7035   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7036 fi
7037
7038 #
7039 # Do we need to explicitly link libc?
7040 #
7041 case "x$archive_cmds_need_lc" in
7042 x|xyes)
7043   # Assume -lc should be added
7044   archive_cmds_need_lc=yes
7045
7046   if test "$enable_shared" = yes && test "$GCC" = yes; then
7047     case $archive_cmds in
7048     *'~'*)
7049       # FIXME: we may have to deal with multi-command sequences.
7050       ;;
7051     '$CC '*)
7052       # Test whether the compiler implicitly links with -lc since on some
7053       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7054       # to ld, don't add -lc before -lgcc.
7055       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7056 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7057       $rm conftest*
7058       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7059
7060       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7061   (eval $ac_compile) 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); } 2>conftest.err; then
7065         soname=conftest
7066         lib=conftest
7067         libobjs=conftest.$ac_objext
7068         deplibs=
7069         wl=$lt_prog_compiler_wl
7070         compiler_flags=-v
7071         linker_flags=-v
7072         verstring=
7073         output_objdir=.
7074         libname=conftest
7075         lt_save_allow_undefined_flag=$allow_undefined_flag
7076         allow_undefined_flag=
7077         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7078   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7079   ac_status=$?
7080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081   (exit $ac_status); }
7082         then
7083           archive_cmds_need_lc=no
7084         else
7085           archive_cmds_need_lc=yes
7086         fi
7087         allow_undefined_flag=$lt_save_allow_undefined_flag
7088       else
7089         cat conftest.err 1>&5
7090       fi
7091       $rm conftest*
7092       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7093 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7094       ;;
7095     esac
7096   fi
7097   ;;
7098 esac
7099
7100 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7101 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7102 hardcode_action=
7103 if test -n "$hardcode_libdir_flag_spec" || \
7104    test -n "$runpath_var " || \
7105    test "X$hardcode_automatic"="Xyes" ; then
7106
7107   # We can hardcode non-existant directories.
7108   if test "$hardcode_direct" != no &&
7109      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7110      # have to relink, otherwise we might link with an installed library
7111      # when we should be linking with a yet-to-be-installed one
7112      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7113      test "$hardcode_minus_L" != no; then
7114     # Linking always hardcodes the temporary library directory.
7115     hardcode_action=relink
7116   else
7117     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7118     hardcode_action=immediate
7119   fi
7120 else
7121   # We cannot hardcode anything, or else we can only hardcode existing
7122   # directories.
7123   hardcode_action=unsupported
7124 fi
7125 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7126 echo "${ECHO_T}$hardcode_action" >&6
7127
7128 if test "$hardcode_action" = relink; then
7129   # Fast installation is not supported
7130   enable_fast_install=no
7131 elif test "$shlibpath_overrides_runpath" = yes ||
7132      test "$enable_shared" = no; then
7133   # Fast installation is not necessary
7134   enable_fast_install=needless
7135 fi
7136
7137 striplib=
7138 old_striplib=
7139 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7140 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7141 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7142   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7143   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7144   echo "$as_me:$LINENO: result: yes" >&5
7145 echo "${ECHO_T}yes" >&6
7146 else
7147 # FIXME - insert some real tests, host_os isn't really good enough
7148   case $host_os in
7149    darwin*)
7150        if test -n "$STRIP" ; then
7151          striplib="$STRIP -x"
7152          echo "$as_me:$LINENO: result: yes" >&5
7153 echo "${ECHO_T}yes" >&6
7154        else
7155   echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6
7157 fi
7158        ;;
7159    *)
7160   echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6
7162     ;;
7163   esac
7164 fi
7165
7166 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7167 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7168 library_names_spec=
7169 libname_spec='lib$name'
7170 soname_spec=
7171 shrext=".so"
7172 postinstall_cmds=
7173 postuninstall_cmds=
7174 finish_cmds=
7175 finish_eval=
7176 shlibpath_var=
7177 shlibpath_overrides_runpath=unknown
7178 version_type=none
7179 dynamic_linker="$host_os ld.so"
7180 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7181 if test "$GCC" = yes; then
7182   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7183   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7184     # if the path contains ";" then we assume it to be the separator
7185     # otherwise default to the standard path separator (i.e. ":") - it is
7186     # assumed that no part of a normal pathname contains ";" but that should
7187     # okay in the real world where ";" in dirpaths is itself problematic.
7188     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7189   else
7190     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7191   fi
7192 else
7193   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7194 fi
7195 need_lib_prefix=unknown
7196 hardcode_into_libs=no
7197
7198 # when you set need_version to no, make sure it does not cause -set_version
7199 # flags to be left without arguments
7200 need_version=unknown
7201
7202 case $host_os in
7203 aix3*)
7204   version_type=linux
7205   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7206   shlibpath_var=LIBPATH
7207
7208   # AIX 3 has no versioning support, so we append a major version to the name.
7209   soname_spec='${libname}${release}${shared_ext}$major'
7210   ;;
7211
7212 aix4* | aix5*)
7213   version_type=linux
7214   need_lib_prefix=no
7215   need_version=no
7216   hardcode_into_libs=yes
7217   if test "$host_cpu" = ia64; then
7218     # AIX 5 supports IA64
7219     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7220     shlibpath_var=LD_LIBRARY_PATH
7221   else
7222     # With GCC up to 2.95.x, collect2 would create an import file
7223     # for dependence libraries.  The import file would start with
7224     # the line `#! .'.  This would cause the generated library to
7225     # depend on `.', always an invalid library.  This was fixed in
7226     # development snapshots of GCC prior to 3.0.
7227     case $host_os in
7228       aix4 | aix4.[01] | aix4.[01].*)
7229       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7230            echo ' yes '
7231            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7232         :
7233       else
7234         can_build_shared=no
7235       fi
7236       ;;
7237     esac
7238     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7239     # soname into executable. Probably we can add versioning support to
7240     # collect2, so additional links can be useful in future.
7241     if test "$aix_use_runtimelinking" = yes; then
7242       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7243       # instead of lib<name>.a to let people know that these are not
7244       # typical AIX shared libraries.
7245       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7246     else
7247       # We preserve .a as extension for shared libraries through AIX4.2
7248       # and later when we are not doing run time linking.
7249       library_names_spec='${libname}${release}.a $libname.a'
7250       soname_spec='${libname}${release}${shared_ext}$major'
7251     fi
7252     shlibpath_var=LIBPATH
7253   fi
7254   ;;
7255
7256 amigaos*)
7257   library_names_spec='$libname.ixlibrary $libname.a'
7258   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7259   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'
7260   ;;
7261
7262 beos*)
7263   library_names_spec='${libname}${shared_ext}'
7264   dynamic_linker="$host_os ld.so"
7265   shlibpath_var=LIBRARY_PATH
7266   ;;
7267
7268 bsdi4*)
7269   version_type=linux
7270   need_version=no
7271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7272   soname_spec='${libname}${release}${shared_ext}$major'
7273   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7274   shlibpath_var=LD_LIBRARY_PATH
7275   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7276   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7277   # the default ld.so.conf also contains /usr/contrib/lib and
7278   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7279   # libtool to hard-code these into programs
7280   ;;
7281
7282 cygwin* | mingw* | pw32*)
7283   version_type=windows
7284   shrext=".dll"
7285   need_version=no
7286   need_lib_prefix=no
7287
7288   case $GCC,$host_os in
7289   yes,cygwin* | yes,mingw* | yes,pw32*)
7290     library_names_spec='$libname.dll.a'
7291     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7292     postinstall_cmds='base_file=`basename \${file}`~
7293       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7294       dldir=$destdir/`dirname \$dlpath`~
7295       test -d \$dldir || mkdir -p \$dldir~
7296       $install_prog $dir/$dlname \$dldir/$dlname'
7297     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7298       dlpath=$dir/\$dldll~
7299        $rm \$dlpath'
7300     shlibpath_overrides_runpath=yes
7301
7302     case $host_os in
7303     cygwin*)
7304       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7305       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7306       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7307       ;;
7308     mingw*)
7309       # MinGW DLLs use traditional 'lib' prefix
7310       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7311       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7312       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7313         # It is most probably a Windows format PATH printed by
7314         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7315         # path with ; separators, and with drive letters. We can handle the
7316         # drive letters (cygwin fileutils understands them), so leave them,
7317         # especially as we might pass files found there to a mingw objdump,
7318         # which wouldn't understand a cygwinified path. Ahh.
7319         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7320       else
7321         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7322       fi
7323       ;;
7324     pw32*)
7325       # pw32 DLLs use 'pw' prefix rather than 'lib'
7326       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7327       ;;
7328     esac
7329     ;;
7330
7331   *)
7332     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7333     ;;
7334   esac
7335   dynamic_linker='Win32 ld.exe'
7336   # FIXME: first we should search . and the directory the executable is in
7337   shlibpath_var=PATH
7338   ;;
7339
7340 darwin* | rhapsody*)
7341   dynamic_linker="$host_os dyld"
7342   version_type=darwin
7343   need_lib_prefix=no
7344   need_version=no
7345   # FIXME: Relying on posixy $() will cause problems for
7346   #        cross-compilation, but unfortunately the echo tests do not
7347   #        yet detect zsh echo's removal of \ escapes.
7348   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7349   soname_spec='${libname}${release}${major}$shared_ext'
7350   shlibpath_overrides_runpath=yes
7351   shlibpath_var=DYLD_LIBRARY_PATH
7352   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7353   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7354   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7355   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"`
7356   fi
7357   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7358   ;;
7359
7360 dgux*)
7361   version_type=linux
7362   need_lib_prefix=no
7363   need_version=no
7364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7365   soname_spec='${libname}${release}${shared_ext}$major'
7366   shlibpath_var=LD_LIBRARY_PATH
7367   ;;
7368
7369 freebsd1*)
7370   dynamic_linker=no
7371   ;;
7372
7373 freebsd*)
7374   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7375   version_type=freebsd-$objformat
7376   case $version_type in
7377     freebsd-elf*)
7378       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7379       need_version=no
7380       need_lib_prefix=no
7381       ;;
7382     freebsd-*)
7383       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7384       need_version=yes
7385       ;;
7386   esac
7387   shlibpath_var=LD_LIBRARY_PATH
7388   case $host_os in
7389   freebsd2*)
7390     shlibpath_overrides_runpath=yes
7391     ;;
7392   freebsd3.01* | freebsdelf3.01*)
7393     shlibpath_overrides_runpath=yes
7394     hardcode_into_libs=yes
7395     ;;
7396   *) # from 3.2 on
7397     shlibpath_overrides_runpath=no
7398     hardcode_into_libs=yes
7399     ;;
7400   esac
7401   ;;
7402
7403 gnu*)
7404   version_type=linux
7405   need_lib_prefix=no
7406   need_version=no
7407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7408   soname_spec='${libname}${release}${shared_ext}$major'
7409   shlibpath_var=LD_LIBRARY_PATH
7410   hardcode_into_libs=yes
7411   ;;
7412
7413 hpux9* | hpux10* | hpux11*)
7414   # Give a soname corresponding to the major version so that dld.sl refuses to
7415   # link against other versions.
7416   version_type=sunos
7417   need_lib_prefix=no
7418   need_version=no
7419   case "$host_cpu" in
7420   ia64*)
7421     shrext='.so'
7422     hardcode_into_libs=yes
7423     dynamic_linker="$host_os dld.so"
7424     shlibpath_var=LD_LIBRARY_PATH
7425     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7426     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7427     soname_spec='${libname}${release}${shared_ext}$major'
7428     if test "X$HPUX_IA64_MODE" = X32; then
7429       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7430     else
7431       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7432     fi
7433     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7434     ;;
7435    hppa*64*)
7436      shrext='.sl'
7437      hardcode_into_libs=yes
7438      dynamic_linker="$host_os dld.sl"
7439      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7440      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7441      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7442      soname_spec='${libname}${release}${shared_ext}$major'
7443      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7444      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7445      ;;
7446    *)
7447     shrext='.sl'
7448     dynamic_linker="$host_os dld.sl"
7449     shlibpath_var=SHLIB_PATH
7450     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7451     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7452     soname_spec='${libname}${release}${shared_ext}$major'
7453     ;;
7454   esac
7455   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7456   postinstall_cmds='chmod 555 $lib'
7457   ;;
7458
7459 irix5* | irix6* | nonstopux*)
7460   case $host_os in
7461     nonstopux*) version_type=nonstopux ;;
7462     *)
7463         if test "$lt_cv_prog_gnu_ld" = yes; then
7464                 version_type=linux
7465         else
7466                 version_type=irix
7467         fi ;;
7468   esac
7469   need_lib_prefix=no
7470   need_version=no
7471   soname_spec='${libname}${release}${shared_ext}$major'
7472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7473   case $host_os in
7474   irix5* | nonstopux*)
7475     libsuff= shlibsuff=
7476     ;;
7477   *)
7478     case $LD in # libtool.m4 will add one of these switches to LD
7479     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7480       libsuff= shlibsuff= libmagic=32-bit;;
7481     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7482       libsuff=32 shlibsuff=N32 libmagic=N32;;
7483     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7484       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7485     *) libsuff= shlibsuff= libmagic=never-match;;
7486     esac
7487     ;;
7488   esac
7489   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7490   shlibpath_overrides_runpath=no
7491   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7492   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7493   hardcode_into_libs=yes
7494   ;;
7495
7496 # No shared lib support for Linux oldld, aout, or coff.
7497 linux*oldld* | linux*aout* | linux*coff*)
7498   dynamic_linker=no
7499   ;;
7500
7501 # This must be Linux ELF.
7502 linux*)
7503   version_type=linux
7504   need_lib_prefix=no
7505   need_version=no
7506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7507   soname_spec='${libname}${release}${shared_ext}$major'
7508   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7509   shlibpath_var=LD_LIBRARY_PATH
7510   shlibpath_overrides_runpath=no
7511   # This implies no fast_install, which is unacceptable.
7512   # Some rework will be needed to allow for fast_install
7513   # before this can be enabled.
7514   hardcode_into_libs=yes
7515
7516   # We used to test for /lib/ld.so.1 and disable shared libraries on
7517   # powerpc, because MkLinux only supported shared libraries with the
7518   # GNU dynamic linker.  Since this was broken with cross compilers,
7519   # most powerpc-linux boxes support dynamic linking these days and
7520   # people can always --disable-shared, the test was removed, and we
7521   # assume the GNU/Linux dynamic linker is in use.
7522   dynamic_linker='GNU/Linux ld.so'
7523   ;;
7524
7525 netbsd*)
7526   version_type=sunos
7527   need_lib_prefix=no
7528   need_version=no
7529   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7530     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7531     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7532     dynamic_linker='NetBSD (a.out) ld.so'
7533   else
7534     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7535     soname_spec='${libname}${release}${shared_ext}$major'
7536     dynamic_linker='NetBSD ld.elf_so'
7537   fi
7538   shlibpath_var=LD_LIBRARY_PATH
7539   shlibpath_overrides_runpath=yes
7540   hardcode_into_libs=yes
7541   ;;
7542
7543 newsos6)
7544   version_type=linux
7545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7546   shlibpath_var=LD_LIBRARY_PATH
7547   shlibpath_overrides_runpath=yes
7548   ;;
7549
7550 nto-qnx)
7551   version_type=linux
7552   need_lib_prefix=no
7553   need_version=no
7554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7555   soname_spec='${libname}${release}${shared_ext}$major'
7556   shlibpath_var=LD_LIBRARY_PATH
7557   shlibpath_overrides_runpath=yes
7558   ;;
7559
7560 openbsd*)
7561   version_type=sunos
7562   need_lib_prefix=no
7563   need_version=no
7564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7565   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7566   shlibpath_var=LD_LIBRARY_PATH
7567   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7568     case $host_os in
7569       openbsd2.[89] | openbsd2.[89].*)
7570         shlibpath_overrides_runpath=no
7571         ;;
7572       *)
7573         shlibpath_overrides_runpath=yes
7574         ;;
7575       esac
7576   else
7577     shlibpath_overrides_runpath=yes
7578   fi
7579   ;;
7580
7581 os2*)
7582   libname_spec='$name'
7583   shrext=".dll"
7584   need_lib_prefix=no
7585   library_names_spec='$libname${shared_ext} $libname.a'
7586   dynamic_linker='OS/2 ld.exe'
7587   shlibpath_var=LIBPATH
7588   ;;
7589
7590 osf3* | osf4* | osf5*)
7591   version_type=osf
7592   need_lib_prefix=no
7593   need_version=no
7594   soname_spec='${libname}${release}${shared_ext}$major'
7595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7596   shlibpath_var=LD_LIBRARY_PATH
7597   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7598   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7599   ;;
7600
7601 sco3.2v5*)
7602   version_type=osf
7603   soname_spec='${libname}${release}${shared_ext}$major'
7604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7605   shlibpath_var=LD_LIBRARY_PATH
7606   ;;
7607
7608 solaris*)
7609   version_type=linux
7610   need_lib_prefix=no
7611   need_version=no
7612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7613   soname_spec='${libname}${release}${shared_ext}$major'
7614   shlibpath_var=LD_LIBRARY_PATH
7615   shlibpath_overrides_runpath=yes
7616   hardcode_into_libs=yes
7617   # ldd complains unless libraries are executable
7618   postinstall_cmds='chmod +x $lib'
7619   ;;
7620
7621 sunos4*)
7622   version_type=sunos
7623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7624   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7625   shlibpath_var=LD_LIBRARY_PATH
7626   shlibpath_overrides_runpath=yes
7627   if test "$with_gnu_ld" = yes; then
7628     need_lib_prefix=no
7629   fi
7630   need_version=yes
7631   ;;
7632
7633 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7634   version_type=linux
7635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7636   soname_spec='${libname}${release}${shared_ext}$major'
7637   shlibpath_var=LD_LIBRARY_PATH
7638   case $host_vendor in
7639     sni)
7640       shlibpath_overrides_runpath=no
7641       need_lib_prefix=no
7642       export_dynamic_flag_spec='${wl}-Blargedynsym'
7643       runpath_var=LD_RUN_PATH
7644       ;;
7645     siemens)
7646       need_lib_prefix=no
7647       ;;
7648     motorola)
7649       need_lib_prefix=no
7650       need_version=no
7651       shlibpath_overrides_runpath=no
7652       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7653       ;;
7654   esac
7655   ;;
7656
7657 sysv4*MP*)
7658   if test -d /usr/nec ;then
7659     version_type=linux
7660     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7661     soname_spec='$libname${shared_ext}.$major'
7662     shlibpath_var=LD_LIBRARY_PATH
7663   fi
7664   ;;
7665
7666 uts4*)
7667   version_type=linux
7668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7669   soname_spec='${libname}${release}${shared_ext}$major'
7670   shlibpath_var=LD_LIBRARY_PATH
7671   ;;
7672
7673 *)
7674   dynamic_linker=no
7675   ;;
7676 esac
7677 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7678 echo "${ECHO_T}$dynamic_linker" >&6
7679 test "$dynamic_linker" = no && can_build_shared=no
7680
7681 if test "x$enable_dlopen" != xyes; then
7682   enable_dlopen=unknown
7683   enable_dlopen_self=unknown
7684   enable_dlopen_self_static=unknown
7685 else
7686   lt_cv_dlopen=no
7687   lt_cv_dlopen_libs=
7688
7689   case $host_os in
7690   beos*)
7691     lt_cv_dlopen="load_add_on"
7692     lt_cv_dlopen_libs=
7693     lt_cv_dlopen_self=yes
7694     ;;
7695
7696   mingw* | pw32*)
7697     lt_cv_dlopen="LoadLibrary"
7698     lt_cv_dlopen_libs=
7699    ;;
7700
7701   cygwin*)
7702     lt_cv_dlopen="dlopen"
7703     lt_cv_dlopen_libs=
7704    ;;
7705
7706   darwin*)
7707   # if libdl is installed we need to link against it
7708     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7709 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7710 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7711   echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713   ac_check_lib_save_LIBS=$LIBS
7714 LIBS="-ldl  $LIBS"
7715 cat >conftest.$ac_ext <<_ACEOF
7716 #line $LINENO "configure"
7717 /* confdefs.h.  */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h.  */
7722
7723 /* Override any gcc2 internal prototype to avoid an error.  */
7724 #ifdef __cplusplus
7725 extern "C"
7726 #endif
7727 /* We use char because int might match the return type of a gcc2
7728    builtin and then its argument prototype would still apply.  */
7729 char dlopen ();
7730 int
7731 main ()
7732 {
7733 dlopen ();
7734   ;
7735   return 0;
7736 }
7737 _ACEOF
7738 rm -f conftest.$ac_objext conftest$ac_exeext
7739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7740   (eval $ac_link) 2>&5
7741   ac_status=$?
7742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743   (exit $ac_status); } &&
7744          { ac_try='test -s conftest$ac_exeext'
7745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746   (eval $ac_try) 2>&5
7747   ac_status=$?
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); }; }; then
7750   ac_cv_lib_dl_dlopen=yes
7751 else
7752   echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7754
7755 ac_cv_lib_dl_dlopen=no
7756 fi
7757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7758 LIBS=$ac_check_lib_save_LIBS
7759 fi
7760 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7761 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7762 if test $ac_cv_lib_dl_dlopen = yes; then
7763   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7764 else
7765
7766     lt_cv_dlopen="dyld"
7767     lt_cv_dlopen_libs=
7768     lt_cv_dlopen_self=yes
7769
7770 fi
7771
7772    ;;
7773
7774   *)
7775     echo "$as_me:$LINENO: checking for shl_load" >&5
7776 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7777 if test "${ac_cv_func_shl_load+set}" = set; then
7778   echo $ECHO_N "(cached) $ECHO_C" >&6
7779 else
7780   cat >conftest.$ac_ext <<_ACEOF
7781 #line $LINENO "configure"
7782 /* confdefs.h.  */
7783 _ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h.  */
7787 /* System header to define __stub macros and hopefully few prototypes,
7788     which can conflict with char shl_load (); below.
7789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7790     <limits.h> exists even on freestanding compilers.  */
7791 #ifdef __STDC__
7792 # include <limits.h>
7793 #else
7794 # include <assert.h>
7795 #endif
7796 /* Override any gcc2 internal prototype to avoid an error.  */
7797 #ifdef __cplusplus
7798 extern "C"
7799 {
7800 #endif
7801 /* We use char because int might match the return type of a gcc2
7802    builtin and then its argument prototype would still apply.  */
7803 char shl_load ();
7804 /* The GNU C library defines this for functions which it implements
7805     to always fail with ENOSYS.  Some functions are actually named
7806     something starting with __ and the normal name is an alias.  */
7807 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7808 choke me
7809 #else
7810 char (*f) () = shl_load;
7811 #endif
7812 #ifdef __cplusplus
7813 }
7814 #endif
7815
7816 int
7817 main ()
7818 {
7819 return f != shl_load;
7820   ;
7821   return 0;
7822 }
7823 _ACEOF
7824 rm -f conftest.$ac_objext conftest$ac_exeext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7826   (eval $ac_link) 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); } &&
7830          { ac_try='test -s conftest$ac_exeext'
7831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832   (eval $ac_try) 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); }; }; then
7836   ac_cv_func_shl_load=yes
7837 else
7838   echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7840
7841 ac_cv_func_shl_load=no
7842 fi
7843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7844 fi
7845 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7846 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7847 if test $ac_cv_func_shl_load = yes; then
7848   lt_cv_dlopen="shl_load"
7849 else
7850   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7851 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7852 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7853   echo $ECHO_N "(cached) $ECHO_C" >&6
7854 else
7855   ac_check_lib_save_LIBS=$LIBS
7856 LIBS="-ldld  $LIBS"
7857 cat >conftest.$ac_ext <<_ACEOF
7858 #line $LINENO "configure"
7859 /* confdefs.h.  */
7860 _ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h.  */
7864
7865 /* Override any gcc2 internal prototype to avoid an error.  */
7866 #ifdef __cplusplus
7867 extern "C"
7868 #endif
7869 /* We use char because int might match the return type of a gcc2
7870    builtin and then its argument prototype would still apply.  */
7871 char shl_load ();
7872 int
7873 main ()
7874 {
7875 shl_load ();
7876   ;
7877   return 0;
7878 }
7879 _ACEOF
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882   (eval $ac_link) 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); } &&
7886          { ac_try='test -s conftest$ac_exeext'
7887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888   (eval $ac_try) 2>&5
7889   ac_status=$?
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); }; }; then
7892   ac_cv_lib_dld_shl_load=yes
7893 else
7894   echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7896
7897 ac_cv_lib_dld_shl_load=no
7898 fi
7899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7900 LIBS=$ac_check_lib_save_LIBS
7901 fi
7902 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7903 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7904 if test $ac_cv_lib_dld_shl_load = yes; then
7905   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7906 else
7907   echo "$as_me:$LINENO: checking for dlopen" >&5
7908 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7909 if test "${ac_cv_func_dlopen+set}" = set; then
7910   echo $ECHO_N "(cached) $ECHO_C" >&6
7911 else
7912   cat >conftest.$ac_ext <<_ACEOF
7913 #line $LINENO "configure"
7914 /* confdefs.h.  */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h.  */
7919 /* System header to define __stub macros and hopefully few prototypes,
7920     which can conflict with char dlopen (); below.
7921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7922     <limits.h> exists even on freestanding compilers.  */
7923 #ifdef __STDC__
7924 # include <limits.h>
7925 #else
7926 # include <assert.h>
7927 #endif
7928 /* Override any gcc2 internal prototype to avoid an error.  */
7929 #ifdef __cplusplus
7930 extern "C"
7931 {
7932 #endif
7933 /* We use char because int might match the return type of a gcc2
7934    builtin and then its argument prototype would still apply.  */
7935 char dlopen ();
7936 /* The GNU C library defines this for functions which it implements
7937     to always fail with ENOSYS.  Some functions are actually named
7938     something starting with __ and the normal name is an alias.  */
7939 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7940 choke me
7941 #else
7942 char (*f) () = dlopen;
7943 #endif
7944 #ifdef __cplusplus
7945 }
7946 #endif
7947
7948 int
7949 main ()
7950 {
7951 return f != dlopen;
7952   ;
7953   return 0;
7954 }
7955 _ACEOF
7956 rm -f conftest.$ac_objext conftest$ac_exeext
7957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7958   (eval $ac_link) 2>&5
7959   ac_status=$?
7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); } &&
7962          { ac_try='test -s conftest$ac_exeext'
7963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964   (eval $ac_try) 2>&5
7965   ac_status=$?
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); }; }; then
7968   ac_cv_func_dlopen=yes
7969 else
7970   echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7972
7973 ac_cv_func_dlopen=no
7974 fi
7975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7976 fi
7977 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7978 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7979 if test $ac_cv_func_dlopen = yes; then
7980   lt_cv_dlopen="dlopen"
7981 else
7982   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7983 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7984 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7985   echo $ECHO_N "(cached) $ECHO_C" >&6
7986 else
7987   ac_check_lib_save_LIBS=$LIBS
7988 LIBS="-ldl  $LIBS"
7989 cat >conftest.$ac_ext <<_ACEOF
7990 #line $LINENO "configure"
7991 /* confdefs.h.  */
7992 _ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h.  */
7996
7997 /* Override any gcc2 internal prototype to avoid an error.  */
7998 #ifdef __cplusplus
7999 extern "C"
8000 #endif
8001 /* We use char because int might match the return type of a gcc2
8002    builtin and then its argument prototype would still apply.  */
8003 char dlopen ();
8004 int
8005 main ()
8006 {
8007 dlopen ();
8008   ;
8009   return 0;
8010 }
8011 _ACEOF
8012 rm -f conftest.$ac_objext conftest$ac_exeext
8013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8014   (eval $ac_link) 2>&5
8015   ac_status=$?
8016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017   (exit $ac_status); } &&
8018          { ac_try='test -s conftest$ac_exeext'
8019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020   (eval $ac_try) 2>&5
8021   ac_status=$?
8022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023   (exit $ac_status); }; }; then
8024   ac_cv_lib_dl_dlopen=yes
8025 else
8026   echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8028
8029 ac_cv_lib_dl_dlopen=no
8030 fi
8031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8032 LIBS=$ac_check_lib_save_LIBS
8033 fi
8034 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8035 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8036 if test $ac_cv_lib_dl_dlopen = yes; then
8037   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8038 else
8039   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8040 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8041 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8042   echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044   ac_check_lib_save_LIBS=$LIBS
8045 LIBS="-lsvld  $LIBS"
8046 cat >conftest.$ac_ext <<_ACEOF
8047 #line $LINENO "configure"
8048 /* confdefs.h.  */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h.  */
8053
8054 /* Override any gcc2 internal prototype to avoid an error.  */
8055 #ifdef __cplusplus
8056 extern "C"
8057 #endif
8058 /* We use char because int might match the return type of a gcc2
8059    builtin and then its argument prototype would still apply.  */
8060 char dlopen ();
8061 int
8062 main ()
8063 {
8064 dlopen ();
8065   ;
8066   return 0;
8067 }
8068 _ACEOF
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8071   (eval $ac_link) 2>&5
8072   ac_status=$?
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); } &&
8075          { ac_try='test -s conftest$ac_exeext'
8076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077   (eval $ac_try) 2>&5
8078   ac_status=$?
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); }; }; then
8081   ac_cv_lib_svld_dlopen=yes
8082 else
8083   echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8085
8086 ac_cv_lib_svld_dlopen=no
8087 fi
8088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8089 LIBS=$ac_check_lib_save_LIBS
8090 fi
8091 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8092 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8093 if test $ac_cv_lib_svld_dlopen = yes; then
8094   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8095 else
8096   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8097 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8098 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8099   echo $ECHO_N "(cached) $ECHO_C" >&6
8100 else
8101   ac_check_lib_save_LIBS=$LIBS
8102 LIBS="-ldld  $LIBS"
8103 cat >conftest.$ac_ext <<_ACEOF
8104 #line $LINENO "configure"
8105 /* confdefs.h.  */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h.  */
8110
8111 /* Override any gcc2 internal prototype to avoid an error.  */
8112 #ifdef __cplusplus
8113 extern "C"
8114 #endif
8115 /* We use char because int might match the return type of a gcc2
8116    builtin and then its argument prototype would still apply.  */
8117 char dld_link ();
8118 int
8119 main ()
8120 {
8121 dld_link ();
8122   ;
8123   return 0;
8124 }
8125 _ACEOF
8126 rm -f conftest.$ac_objext conftest$ac_exeext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8128   (eval $ac_link) 2>&5
8129   ac_status=$?
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); } &&
8132          { ac_try='test -s conftest$ac_exeext'
8133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134   (eval $ac_try) 2>&5
8135   ac_status=$?
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); }; }; then
8138   ac_cv_lib_dld_dld_link=yes
8139 else
8140   echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8142
8143 ac_cv_lib_dld_dld_link=no
8144 fi
8145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8146 LIBS=$ac_check_lib_save_LIBS
8147 fi
8148 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8149 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8150 if test $ac_cv_lib_dld_dld_link = yes; then
8151   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8152 fi
8153
8154
8155 fi
8156
8157
8158 fi
8159
8160
8161 fi
8162
8163
8164 fi
8165
8166
8167 fi
8168
8169     ;;
8170   esac
8171
8172   if test "x$lt_cv_dlopen" != xno; then
8173     enable_dlopen=yes
8174   else
8175     enable_dlopen=no
8176   fi
8177
8178   case $lt_cv_dlopen in
8179   dlopen)
8180     save_CPPFLAGS="$CPPFLAGS"
8181     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8182
8183     save_LDFLAGS="$LDFLAGS"
8184     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8185
8186     save_LIBS="$LIBS"
8187     LIBS="$lt_cv_dlopen_libs $LIBS"
8188
8189     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8190 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8191 if test "${lt_cv_dlopen_self+set}" = set; then
8192   echo $ECHO_N "(cached) $ECHO_C" >&6
8193 else
8194           if test "$cross_compiling" = yes; then :
8195   lt_cv_dlopen_self=cross
8196 else
8197   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8198   lt_status=$lt_dlunknown
8199   cat > conftest.$ac_ext <<EOF
8200 #line 8200 "configure"
8201 #include "confdefs.h"
8202
8203 #if HAVE_DLFCN_H
8204 #include <dlfcn.h>
8205 #endif
8206
8207 #include <stdio.h>
8208
8209 #ifdef RTLD_GLOBAL
8210 #  define LT_DLGLOBAL           RTLD_GLOBAL
8211 #else
8212 #  ifdef DL_GLOBAL
8213 #    define LT_DLGLOBAL         DL_GLOBAL
8214 #  else
8215 #    define LT_DLGLOBAL         0
8216 #  endif
8217 #endif
8218
8219 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8220    find out it does not work in some platform. */
8221 #ifndef LT_DLLAZY_OR_NOW
8222 #  ifdef RTLD_LAZY
8223 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8224 #  else
8225 #    ifdef DL_LAZY
8226 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8227 #    else
8228 #      ifdef RTLD_NOW
8229 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8230 #      else
8231 #        ifdef DL_NOW
8232 #          define LT_DLLAZY_OR_NOW      DL_NOW
8233 #        else
8234 #          define LT_DLLAZY_OR_NOW      0
8235 #        endif
8236 #      endif
8237 #    endif
8238 #  endif
8239 #endif
8240
8241 #ifdef __cplusplus
8242 extern "C" void exit (int);
8243 #endif
8244
8245 void fnord() { int i=42;}
8246 int main ()
8247 {
8248   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8249   int status = $lt_dlunknown;
8250
8251   if (self)
8252     {
8253       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8254       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8255       /* dlclose (self); */
8256     }
8257
8258     exit (status);
8259 }
8260 EOF
8261   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8262   (eval $ac_link) 2>&5
8263   ac_status=$?
8264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8266     (./conftest; exit; ) 2>/dev/null
8267     lt_status=$?
8268     case x$lt_status in
8269       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8270       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8271       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8272     esac
8273   else :
8274     # compilation failed
8275     lt_cv_dlopen_self=no
8276   fi
8277 fi
8278 rm -fr conftest*
8279
8280
8281 fi
8282 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8283 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8284
8285     if test "x$lt_cv_dlopen_self" = xyes; then
8286       LDFLAGS="$LDFLAGS $link_static_flag"
8287       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8288 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8289 if test "${lt_cv_dlopen_self_static+set}" = set; then
8290   echo $ECHO_N "(cached) $ECHO_C" >&6
8291 else
8292           if test "$cross_compiling" = yes; then :
8293   lt_cv_dlopen_self_static=cross
8294 else
8295   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8296   lt_status=$lt_dlunknown
8297   cat > conftest.$ac_ext <<EOF
8298 #line 8298 "configure"
8299 #include "confdefs.h"
8300
8301 #if HAVE_DLFCN_H
8302 #include <dlfcn.h>
8303 #endif
8304
8305 #include <stdio.h>
8306
8307 #ifdef RTLD_GLOBAL
8308 #  define LT_DLGLOBAL           RTLD_GLOBAL
8309 #else
8310 #  ifdef DL_GLOBAL
8311 #    define LT_DLGLOBAL         DL_GLOBAL
8312 #  else
8313 #    define LT_DLGLOBAL         0
8314 #  endif
8315 #endif
8316
8317 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8318    find out it does not work in some platform. */
8319 #ifndef LT_DLLAZY_OR_NOW
8320 #  ifdef RTLD_LAZY
8321 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8322 #  else
8323 #    ifdef DL_LAZY
8324 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8325 #    else
8326 #      ifdef RTLD_NOW
8327 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8328 #      else
8329 #        ifdef DL_NOW
8330 #          define LT_DLLAZY_OR_NOW      DL_NOW
8331 #        else
8332 #          define LT_DLLAZY_OR_NOW      0
8333 #        endif
8334 #      endif
8335 #    endif
8336 #  endif
8337 #endif
8338
8339 #ifdef __cplusplus
8340 extern "C" void exit (int);
8341 #endif
8342
8343 void fnord() { int i=42;}
8344 int main ()
8345 {
8346   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8347   int status = $lt_dlunknown;
8348
8349   if (self)
8350     {
8351       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8352       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8353       /* dlclose (self); */
8354     }
8355
8356     exit (status);
8357 }
8358 EOF
8359   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8360   (eval $ac_link) 2>&5
8361   ac_status=$?
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8364     (./conftest; exit; ) 2>/dev/null
8365     lt_status=$?
8366     case x$lt_status in
8367       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8368       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8369       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8370     esac
8371   else :
8372     # compilation failed
8373     lt_cv_dlopen_self_static=no
8374   fi
8375 fi
8376 rm -fr conftest*
8377
8378
8379 fi
8380 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8381 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8382     fi
8383
8384     CPPFLAGS="$save_CPPFLAGS"
8385     LDFLAGS="$save_LDFLAGS"
8386     LIBS="$save_LIBS"
8387     ;;
8388   esac
8389
8390   case $lt_cv_dlopen_self in
8391   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8392   *) enable_dlopen_self=unknown ;;
8393   esac
8394
8395   case $lt_cv_dlopen_self_static in
8396   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8397   *) enable_dlopen_self_static=unknown ;;
8398   esac
8399 fi
8400
8401
8402 # Report which librarie types wil actually be built
8403 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8404 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8405 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8406 echo "${ECHO_T}$can_build_shared" >&6
8407
8408 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8409 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8410 test "$can_build_shared" = "no" && enable_shared=no
8411
8412 # On AIX, shared libraries and static libraries use the same namespace, and
8413 # are all built from PIC.
8414 case "$host_os" in
8415 aix3*)
8416   test "$enable_shared" = yes && enable_static=no
8417   if test -n "$RANLIB"; then
8418     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8419     postinstall_cmds='$RANLIB $lib'
8420   fi
8421   ;;
8422
8423 aix4*)
8424   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8425     test "$enable_shared" = yes && enable_static=no
8426   fi
8427   ;;
8428   darwin* | rhapsody*)
8429   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8430     archive_cmds_need_lc=no
8431     case "$host_os" in
8432     rhapsody* | darwin1.[012])
8433       allow_undefined_flag='-undefined suppress'
8434       ;;
8435     *) # Darwin 1.3 on
8436       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8437       ;;
8438     esac
8439     # FIXME: Relying on posixy $() will cause problems for
8440     #        cross-compilation, but unfortunately the echo tests do not
8441     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8442     #          `"' quotes if we put them in here... so don't!
8443                 output_verbose_link_cmd='echo'
8444     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8445     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8446     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8447                   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}'
8448                   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}'
8449     hardcode_direct=no
8450     hardcode_automatic=yes
8451     hardcode_shlibpath_var=unsupported
8452     whole_archive_flag_spec='-all_load $convenience'
8453     link_all_deplibs=yes
8454     fi
8455     ;;
8456 esac
8457 echo "$as_me:$LINENO: result: $enable_shared" >&5
8458 echo "${ECHO_T}$enable_shared" >&6
8459
8460 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8461 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8462 # Make sure either enable_shared or enable_static is yes.
8463 test "$enable_shared" = yes || enable_static=yes
8464 echo "$as_me:$LINENO: result: $enable_static" >&5
8465 echo "${ECHO_T}$enable_static" >&6
8466
8467 # The else clause should only fire when bootstrapping the
8468 # libtool distribution, otherwise you forgot to ship ltmain.sh
8469 # with your package, and you will get complaints that there are
8470 # no rules to generate ltmain.sh.
8471 if test -f "$ltmain"; then
8472   # See if we are running on zsh, and set the options which allow our commands through
8473   # without removal of \ escapes.
8474   if test -n "${ZSH_VERSION+set}" ; then
8475     setopt NO_GLOB_SUBST
8476   fi
8477   # Now quote all the things that may contain metacharacters while being
8478   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8479   # variables and quote the copies for generation of the libtool script.
8480   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8481     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8482     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8483     deplibs_check_method reload_flag reload_cmds need_locks \
8484     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8485     lt_cv_sys_global_symbol_to_c_name_address \
8486     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8487     old_postinstall_cmds old_postuninstall_cmds \
8488     compiler \
8489     CC \
8490     LD \
8491     lt_prog_compiler_wl \
8492     lt_prog_compiler_pic \
8493     lt_prog_compiler_static \
8494     lt_prog_compiler_no_builtin_flag \
8495     export_dynamic_flag_spec \
8496     thread_safe_flag_spec \
8497     whole_archive_flag_spec \
8498     enable_shared_with_static_runtimes \
8499     old_archive_cmds \
8500     old_archive_from_new_cmds \
8501     predep_objects \
8502     postdep_objects \
8503     predeps \
8504     postdeps \
8505     compiler_lib_search_path \
8506     archive_cmds \
8507     archive_expsym_cmds \
8508     postinstall_cmds \
8509     postuninstall_cmds \
8510     old_archive_from_expsyms_cmds \
8511     allow_undefined_flag \
8512     no_undefined_flag \
8513     export_symbols_cmds \
8514     hardcode_libdir_flag_spec \
8515     hardcode_libdir_flag_spec_ld \
8516     hardcode_libdir_separator \
8517     hardcode_automatic \
8518     module_cmds \
8519     module_expsym_cmds \
8520     lt_cv_prog_compiler_c_o \
8521     exclude_expsyms \
8522     include_expsyms; do
8523
8524     case $var in
8525     old_archive_cmds | \
8526     old_archive_from_new_cmds | \
8527     archive_cmds | \
8528     archive_expsym_cmds | \
8529     module_cmds | \
8530     module_expsym_cmds | \
8531     old_archive_from_expsyms_cmds | \
8532     export_symbols_cmds | \
8533     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8534     postinstall_cmds | postuninstall_cmds | \
8535     old_postinstall_cmds | old_postuninstall_cmds | \
8536     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8537       # Double-quote double-evaled strings.
8538       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8539       ;;
8540     *)
8541       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8542       ;;
8543     esac
8544   done
8545
8546   case $lt_echo in
8547   *'\$0 --fallback-echo"')
8548     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8549     ;;
8550   esac
8551
8552 cfgfile="${ofile}T"
8553   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8554   $rm -f "$cfgfile"
8555   { echo "$as_me:$LINENO: creating $ofile" >&5
8556 echo "$as_me: creating $ofile" >&6;}
8557
8558   cat <<__EOF__ >> "$cfgfile"
8559 #! $SHELL
8560
8561 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8562 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8563 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8564 #
8565 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8566 # Free Software Foundation, Inc.
8567 #
8568 # This file is part of GNU Libtool:
8569 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8570 #
8571 # This program is free software; you can redistribute it and/or modify
8572 # it under the terms of the GNU General Public License as published by
8573 # the Free Software Foundation; either version 2 of the License, or
8574 # (at your option) any later version.
8575 #
8576 # This program is distributed in the hope that it will be useful, but
8577 # WITHOUT ANY WARRANTY; without even the implied warranty of
8578 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8579 # General Public License for more details.
8580 #
8581 # You should have received a copy of the GNU General Public License
8582 # along with this program; if not, write to the Free Software
8583 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8584 #
8585 # As a special exception to the GNU General Public License, if you
8586 # distribute this file as part of a program that contains a
8587 # configuration script generated by Autoconf, you may include it under
8588 # the same distribution terms that you use for the rest of that program.
8589
8590 # A sed program that does not truncate output.
8591 SED=$lt_SED
8592
8593 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8594 Xsed="$SED -e s/^X//"
8595
8596 # The HP-UX ksh and POSIX shell print the target directory to stdout
8597 # if CDPATH is set.
8598 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8599
8600 # The names of the tagged configurations supported by this script.
8601 available_tags=
8602
8603 # ### BEGIN LIBTOOL CONFIG
8604
8605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8606
8607 # Shell to use when invoking shell scripts.
8608 SHELL=$lt_SHELL
8609
8610 # Whether or not to build shared libraries.
8611 build_libtool_libs=$enable_shared
8612
8613 # Whether or not to build static libraries.
8614 build_old_libs=$enable_static
8615
8616 # Whether or not to add -lc for building shared libraries.
8617 build_libtool_need_lc=$archive_cmds_need_lc
8618
8619 # Whether or not to disallow shared libs when runtime libs are static
8620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8621
8622 # Whether or not to optimize for fast installation.
8623 fast_install=$enable_fast_install
8624
8625 # The host system.
8626 host_alias=$host_alias
8627 host=$host
8628
8629 # An echo program that does not interpret backslashes.
8630 echo=$lt_echo
8631
8632 # The archiver.
8633 AR=$lt_AR
8634 AR_FLAGS=$lt_AR_FLAGS
8635
8636 # A C compiler.
8637 LTCC=$lt_LTCC
8638
8639 # A language-specific compiler.
8640 CC=$lt_compiler
8641
8642 # Is the compiler the GNU C compiler?
8643 with_gcc=$GCC
8644
8645 # An ERE matcher.
8646 EGREP=$lt_EGREP
8647
8648 # The linker used to build libraries.
8649 LD=$lt_LD
8650
8651 # Whether we need hard or soft links.
8652 LN_S=$lt_LN_S
8653
8654 # A BSD-compatible nm program.
8655 NM=$lt_NM
8656
8657 # A symbol stripping program
8658 STRIP=$STRIP
8659
8660 # Used to examine libraries when file_magic_cmd begins "file"
8661 MAGIC_CMD=$MAGIC_CMD
8662
8663 # Used on cygwin: DLL creation program.
8664 DLLTOOL="$DLLTOOL"
8665
8666 # Used on cygwin: object dumper.
8667 OBJDUMP="$OBJDUMP"
8668
8669 # Used on cygwin: assembler.
8670 AS="$AS"
8671
8672 # The name of the directory that contains temporary libtool files.
8673 objdir=$objdir
8674
8675 # How to create reloadable object files.
8676 reload_flag=$lt_reload_flag
8677 reload_cmds=$lt_reload_cmds
8678
8679 # How to pass a linker flag through the compiler.
8680 wl=$lt_lt_prog_compiler_wl
8681
8682 # Object file suffix (normally "o").
8683 objext="$ac_objext"
8684
8685 # Old archive suffix (normally "a").
8686 libext="$libext"
8687
8688 # Shared library suffix (normally ".so").
8689 shrext='$shrext'
8690
8691 # Executable file suffix (normally "").
8692 exeext="$exeext"
8693
8694 # Additional compiler flags for building library objects.
8695 pic_flag=$lt_lt_prog_compiler_pic
8696 pic_mode=$pic_mode
8697
8698 # What is the maximum length of a command?
8699 max_cmd_len=$lt_cv_sys_max_cmd_len
8700
8701 # Does compiler simultaneously support -c and -o options?
8702 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8703
8704 # Must we lock files when doing compilation ?
8705 need_locks=$lt_need_locks
8706
8707 # Do we need the lib prefix for modules?
8708 need_lib_prefix=$need_lib_prefix
8709
8710 # Do we need a version for libraries?
8711 need_version=$need_version
8712
8713 # Whether dlopen is supported.
8714 dlopen_support=$enable_dlopen
8715
8716 # Whether dlopen of programs is supported.
8717 dlopen_self=$enable_dlopen_self
8718
8719 # Whether dlopen of statically linked programs is supported.
8720 dlopen_self_static=$enable_dlopen_self_static
8721
8722 # Compiler flag to prevent dynamic linking.
8723 link_static_flag=$lt_lt_prog_compiler_static
8724
8725 # Compiler flag to turn off builtin functions.
8726 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8727
8728 # Compiler flag to allow reflexive dlopens.
8729 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8730
8731 # Compiler flag to generate shared objects directly from archives.
8732 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8733
8734 # Compiler flag to generate thread-safe objects.
8735 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8736
8737 # Library versioning type.
8738 version_type=$version_type
8739
8740 # Format of library name prefix.
8741 libname_spec=$lt_libname_spec
8742
8743 # List of archive names.  First name is the real one, the rest are links.
8744 # The last name is the one that the linker finds with -lNAME.
8745 library_names_spec=$lt_library_names_spec
8746
8747 # The coded name of the library, if different from the real name.
8748 soname_spec=$lt_soname_spec
8749
8750 # Commands used to build and install an old-style archive.
8751 RANLIB=$lt_RANLIB
8752 old_archive_cmds=$lt_old_archive_cmds
8753 old_postinstall_cmds=$lt_old_postinstall_cmds
8754 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8755
8756 # Create an old-style archive from a shared archive.
8757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8758
8759 # Create a temporary old-style archive to link instead of a shared archive.
8760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8761
8762 # Commands used to build and install a shared archive.
8763 archive_cmds=$lt_archive_cmds
8764 archive_expsym_cmds=$lt_archive_expsym_cmds
8765 postinstall_cmds=$lt_postinstall_cmds
8766 postuninstall_cmds=$lt_postuninstall_cmds
8767
8768 # Commands used to build a loadable module (assumed same as above if empty)
8769 module_cmds=$lt_module_cmds
8770 module_expsym_cmds=$lt_module_expsym_cmds
8771
8772 # Commands to strip libraries.
8773 old_striplib=$lt_old_striplib
8774 striplib=$lt_striplib
8775
8776 # Dependencies to place before the objects being linked to create a
8777 # shared library.
8778 predep_objects=$lt_predep_objects
8779
8780 # Dependencies to place after the objects being linked to create a
8781 # shared library.
8782 postdep_objects=$lt_postdep_objects
8783
8784 # Dependencies to place before the objects being linked to create a
8785 # shared library.
8786 predeps=$lt_predeps
8787
8788 # Dependencies to place after the objects being linked to create a
8789 # shared library.
8790 postdeps=$lt_postdeps
8791
8792 # The library search path used internally by the compiler when linking
8793 # a shared library.
8794 compiler_lib_search_path=$lt_compiler_lib_search_path
8795
8796 # Method to check whether dependent libraries are shared objects.
8797 deplibs_check_method=$lt_deplibs_check_method
8798
8799 # Command to use when deplibs_check_method == file_magic.
8800 file_magic_cmd=$lt_file_magic_cmd
8801
8802 # Flag that allows shared libraries with undefined symbols to be built.
8803 allow_undefined_flag=$lt_allow_undefined_flag
8804
8805 # Flag that forces no undefined symbols.
8806 no_undefined_flag=$lt_no_undefined_flag
8807
8808 # Commands used to finish a libtool library installation in a directory.
8809 finish_cmds=$lt_finish_cmds
8810
8811 # Same as above, but a single script fragment to be evaled but not shown.
8812 finish_eval=$lt_finish_eval
8813
8814 # Take the output of nm and produce a listing of raw symbols and C names.
8815 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8816
8817 # Transform the output of nm in a proper C declaration
8818 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8819
8820 # Transform the output of nm in a C name address pair
8821 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8822
8823 # This is the shared library runtime path variable.
8824 runpath_var=$runpath_var
8825
8826 # This is the shared library path variable.
8827 shlibpath_var=$shlibpath_var
8828
8829 # Is shlibpath searched before the hard-coded library search path?
8830 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8831
8832 # How to hardcode a shared library path into an executable.
8833 hardcode_action=$hardcode_action
8834
8835 # Whether we should hardcode library paths into libraries.
8836 hardcode_into_libs=$hardcode_into_libs
8837
8838 # Flag to hardcode \$libdir into a binary during linking.
8839 # This must work even if \$libdir does not exist.
8840 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8841
8842 # If ld is used when linking, flag to hardcode \$libdir into
8843 # a binary during linking. This must work even if \$libdir does
8844 # not exist.
8845 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8846
8847 # Whether we need a single -rpath flag with a separated argument.
8848 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8849
8850 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8851 # resulting binary.
8852 hardcode_direct=$hardcode_direct
8853
8854 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8855 # resulting binary.
8856 hardcode_minus_L=$hardcode_minus_L
8857
8858 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8859 # the resulting binary.
8860 hardcode_shlibpath_var=$hardcode_shlibpath_var
8861
8862 # Set to yes if building a shared library automatically hardcodes DIR into the library
8863 # and all subsequent libraries and executables linked against it.
8864 hardcode_automatic=$hardcode_automatic
8865
8866 # Variables whose values should be saved in libtool wrapper scripts and
8867 # restored at relink time.
8868 variables_saved_for_relink="$variables_saved_for_relink"
8869
8870 # Whether libtool must link a program against all its dependency libraries.
8871 link_all_deplibs=$link_all_deplibs
8872
8873 # Compile-time system search path for libraries
8874 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8875
8876 # Run-time system search path for libraries
8877 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8878
8879 # Fix the shell variable \$srcfile for the compiler.
8880 fix_srcfile_path="$fix_srcfile_path"
8881
8882 # Set to yes if exported symbols are required.
8883 always_export_symbols=$always_export_symbols
8884
8885 # The commands to list exported symbols.
8886 export_symbols_cmds=$lt_export_symbols_cmds
8887
8888 # The commands to extract the exported symbol list from a shared archive.
8889 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8890
8891 # Symbols that should not be listed in the preloaded symbols.
8892 exclude_expsyms=$lt_exclude_expsyms
8893
8894 # Symbols that must always be exported.
8895 include_expsyms=$lt_include_expsyms
8896
8897 # ### END LIBTOOL CONFIG
8898
8899 __EOF__
8900
8901
8902   case $host_os in
8903   aix3*)
8904     cat <<\EOF >> "$cfgfile"
8905
8906 # AIX sometimes has problems with the GCC collect2 program.  For some
8907 # reason, if we set the COLLECT_NAMES environment variable, the problems
8908 # vanish in a puff of smoke.
8909 if test "X${COLLECT_NAMES+set}" != Xset; then
8910   COLLECT_NAMES=
8911   export COLLECT_NAMES
8912 fi
8913 EOF
8914     ;;
8915   esac
8916
8917   # We use sed instead of cat because bash on DJGPP gets confused if
8918   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8919   # text mode, it properly converts lines to CR/LF.  This bash problem
8920   # is reportedly fixed, but why not run on old versions too?
8921   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8922
8923   mv -f "$cfgfile" "$ofile" || \
8924     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8925   chmod +x "$ofile"
8926
8927 else
8928   # If there is no Makefile yet, we rely on a make rule to execute
8929   # `config.status --recheck' to rerun these tests and create the
8930   # libtool script then.
8931   test -f Makefile && make "$ltmain"
8932 fi
8933
8934
8935 ac_ext=c
8936 ac_cpp='$CPP $CPPFLAGS'
8937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8940
8941 CC="$lt_save_CC"
8942
8943
8944 # Check whether --with-tags or --without-tags was given.
8945 if test "${with_tags+set}" = set; then
8946   withval="$with_tags"
8947   tagnames="$withval"
8948 fi;
8949
8950 if test -f "$ltmain" && test -n "$tagnames"; then
8951   if test ! -f "${ofile}"; then
8952     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8953 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8954   fi
8955
8956   if test -z "$LTCC"; then
8957     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8958     if test -z "$LTCC"; then
8959       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8960 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8961     else
8962       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8963 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8964     fi
8965   fi
8966
8967   # Extract list of available tagged configurations in $ofile.
8968   # Note that this assumes the entire list is on one line.
8969   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8970
8971   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8972   for tagname in $tagnames; do
8973     IFS="$lt_save_ifs"
8974     # Check whether tagname contains only valid characters
8975     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8976     "") ;;
8977     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8978 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8979    { (exit 1); exit 1; }; }
8980         ;;
8981     esac
8982
8983     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8984     then
8985       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8986 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8987    { (exit 1); exit 1; }; }
8988     fi
8989
8990     # Update the list of available tags.
8991     if test -n "$tagname"; then
8992       echo appending configuration tag \"$tagname\" to $ofile
8993
8994       case $tagname in
8995       CXX)
8996         if test -n "$CXX" && test "X$CXX" != "Xno"; then
8997           ac_ext=cc
8998 ac_cpp='$CXXCPP $CPPFLAGS'
8999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9002
9003
9004
9005
9006 archive_cmds_need_lc_CXX=no
9007 allow_undefined_flag_CXX=
9008 always_export_symbols_CXX=no
9009 archive_expsym_cmds_CXX=
9010 export_dynamic_flag_spec_CXX=
9011 hardcode_direct_CXX=no
9012 hardcode_libdir_flag_spec_CXX=
9013 hardcode_libdir_flag_spec_ld_CXX=
9014 hardcode_libdir_separator_CXX=
9015 hardcode_minus_L_CXX=no
9016 hardcode_automatic_CXX=no
9017 module_cmds_CXX=
9018 module_expsym_cmds_CXX=
9019 link_all_deplibs_CXX=unknown
9020 old_archive_cmds_CXX=$old_archive_cmds
9021 no_undefined_flag_CXX=
9022 whole_archive_flag_spec_CXX=
9023 enable_shared_with_static_runtimes_CXX=no
9024
9025 # Dependencies to place before and after the object being linked:
9026 predep_objects_CXX=
9027 postdep_objects_CXX=
9028 predeps_CXX=
9029 postdeps_CXX=
9030 compiler_lib_search_path_CXX=
9031
9032 # Source file extension for C++ test sources.
9033 ac_ext=cc
9034
9035 # Object file extension for compiled C++ test sources.
9036 objext=o
9037 objext_CXX=$objext
9038
9039 # Code to be used in simple compile tests
9040 lt_simple_compile_test_code="int some_variable = 0;\n"
9041
9042 # Code to be used in simple link tests
9043 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9044
9045 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9046
9047 # If no C compiler was specified, use CC.
9048 LTCC=${LTCC-"$CC"}
9049
9050 # Allow CC to be a program name with arguments.
9051 compiler=$CC
9052
9053
9054 # Allow CC to be a program name with arguments.
9055 lt_save_CC=$CC
9056 lt_save_LD=$LD
9057 lt_save_GCC=$GCC
9058 GCC=$GXX
9059 lt_save_with_gnu_ld=$with_gnu_ld
9060 lt_save_path_LD=$lt_cv_path_LD
9061 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9062   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9063 else
9064   unset lt_cv_prog_gnu_ld
9065 fi
9066 if test -n "${lt_cv_path_LDCXX+set}"; then
9067   lt_cv_path_LD=$lt_cv_path_LDCXX
9068 else
9069   unset lt_cv_path_LD
9070 fi
9071 test -z "${LDCXX+set}" || LD=$LDCXX
9072 CC=${CXX-"c++"}
9073 compiler=$CC
9074 compiler_CXX=$CC
9075 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9076
9077 # We don't want -fno-exception wen compiling C++ code, so set the
9078 # no_builtin_flag separately
9079 if test "$GXX" = yes; then
9080   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9081 else
9082   lt_prog_compiler_no_builtin_flag_CXX=
9083 fi
9084
9085 if test "$GXX" = yes; then
9086   # Set up default GNU C++ configuration
9087
9088
9089 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9090 if test "${with_gnu_ld+set}" = set; then
9091   withval="$with_gnu_ld"
9092   test "$withval" = no || with_gnu_ld=yes
9093 else
9094   with_gnu_ld=no
9095 fi;
9096 ac_prog=ld
9097 if test "$GCC" = yes; then
9098   # Check if gcc -print-prog-name=ld gives a path.
9099   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9100 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9101   case $host in
9102   *-*-mingw*)
9103     # gcc leaves a trailing carriage return which upsets mingw
9104     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9105   *)
9106     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9107   esac
9108   case $ac_prog in
9109     # Accept absolute paths.
9110     [\\/]* | ?:[\\/]*)
9111       re_direlt='/[^/][^/]*/\.\./'
9112       # Canonicalize the path of ld
9113       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9114       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9115         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9116       done
9117       test -z "$LD" && LD="$ac_prog"
9118       ;;
9119   "")
9120     # If it fails, then pretend we aren't using GCC.
9121     ac_prog=ld
9122     ;;
9123   *)
9124     # If it is relative, then search for the first ld in PATH.
9125     with_gnu_ld=unknown
9126     ;;
9127   esac
9128 elif test "$with_gnu_ld" = yes; then
9129   echo "$as_me:$LINENO: checking for GNU ld" >&5
9130 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9131 else
9132   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9133 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9134 fi
9135 if test "${lt_cv_path_LD+set}" = set; then
9136   echo $ECHO_N "(cached) $ECHO_C" >&6
9137 else
9138   if test -z "$LD"; then
9139   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9140   for ac_dir in $PATH; do
9141     IFS="$lt_save_ifs"
9142     test -z "$ac_dir" && ac_dir=.
9143     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9144       lt_cv_path_LD="$ac_dir/$ac_prog"
9145       # Check to see if the program is GNU ld.  I'd rather use --version,
9146       # but apparently some GNU ld's only accept -v.
9147       # Break only if it was the GNU/non-GNU ld that we prefer.
9148       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9149       *GNU* | *'with BFD'*)
9150         test "$with_gnu_ld" != no && break
9151         ;;
9152       *)
9153         test "$with_gnu_ld" != yes && break
9154         ;;
9155       esac
9156     fi
9157   done
9158   IFS="$lt_save_ifs"
9159 else
9160   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9161 fi
9162 fi
9163
9164 LD="$lt_cv_path_LD"
9165 if test -n "$LD"; then
9166   echo "$as_me:$LINENO: result: $LD" >&5
9167 echo "${ECHO_T}$LD" >&6
9168 else
9169   echo "$as_me:$LINENO: result: no" >&5
9170 echo "${ECHO_T}no" >&6
9171 fi
9172 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9173 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9174    { (exit 1); exit 1; }; }
9175 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9176 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9177 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9178   echo $ECHO_N "(cached) $ECHO_C" >&6
9179 else
9180   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9181 case `"$LD" -v 2>&1 </dev/null` in
9182 *GNU* | *'with BFD'*)
9183   lt_cv_prog_gnu_ld=yes
9184   ;;
9185 *)
9186   lt_cv_prog_gnu_ld=no
9187   ;;
9188 esac
9189 fi
9190 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9191 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9192 with_gnu_ld=$lt_cv_prog_gnu_ld
9193
9194
9195
9196   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9197   # archiving commands below assume that GNU ld is being used.
9198   if test "$with_gnu_ld" = yes; then
9199     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9200     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'
9201
9202     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9203     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9204
9205     # If archive_cmds runs LD, not CC, wlarc should be empty
9206     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9207     #     investigate it a little bit more. (MM)
9208     wlarc='${wl}'
9209
9210     # ancient GNU ld didn't support --whole-archive et. al.
9211     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9212         grep 'no-whole-archive' > /dev/null; then
9213       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9214     else
9215       whole_archive_flag_spec_CXX=
9216     fi
9217   else
9218     with_gnu_ld=no
9219     wlarc=
9220
9221     # A generic and very simple default shared library creation
9222     # command for GNU C++ for the case where it uses the native
9223     # linker, instead of GNU ld.  If possible, this setting should
9224     # overridden to take advantage of the native linker features on
9225     # the platform it is being used on.
9226     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9227   fi
9228
9229   # Commands to make compiler produce verbose output that lists
9230   # what "hidden" libraries, object files and flags are used when
9231   # linking a shared library.
9232   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9233
9234 else
9235   GXX=no
9236   with_gnu_ld=no
9237   wlarc=
9238 fi
9239
9240 # PORTME: fill in a description of your system's C++ link characteristics
9241 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9242 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9243 ld_shlibs_CXX=yes
9244 case $host_os in
9245   aix3*)
9246     # FIXME: insert proper C++ library support
9247     ld_shlibs_CXX=no
9248     ;;
9249   aix4* | aix5*)
9250     if test "$host_cpu" = ia64; then
9251       # On IA64, the linker does run time linking by default, so we don't
9252       # have to do anything special.
9253       aix_use_runtimelinking=no
9254       exp_sym_flag='-Bexport'
9255       no_entry_flag=""
9256     else
9257       aix_use_runtimelinking=no
9258
9259       # Test if we are trying to use run time linking or normal
9260       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9261       # need to do runtime linking.
9262       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9263         for ld_flag in $LDFLAGS; do
9264           case $ld_flag in
9265           *-brtl*)
9266             aix_use_runtimelinking=yes
9267             break
9268             ;;
9269           esac
9270         done
9271       esac
9272
9273       exp_sym_flag='-bexport'
9274       no_entry_flag='-bnoentry'
9275     fi
9276
9277     # When large executables or shared objects are built, AIX ld can
9278     # have problems creating the table of contents.  If linking a library
9279     # or program results in "error TOC overflow" add -mminimal-toc to
9280     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9281     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9282
9283     archive_cmds_CXX=''
9284     hardcode_direct_CXX=yes
9285     hardcode_libdir_separator_CXX=':'
9286     link_all_deplibs_CXX=yes
9287
9288     if test "$GXX" = yes; then
9289       case $host_os in aix4.012|aix4.012.*)
9290       # We only want to do this on AIX 4.2 and lower, the check
9291       # below for broken collect2 doesn't work under 4.3+
9292         collect2name=`${CC} -print-prog-name=collect2`
9293         if test -f "$collect2name" && \
9294            strings "$collect2name" | grep resolve_lib_name >/dev/null
9295         then
9296           # We have reworked collect2
9297           hardcode_direct_CXX=yes
9298         else
9299           # We have old collect2
9300           hardcode_direct_CXX=unsupported
9301           # It fails to find uninstalled libraries when the uninstalled
9302           # path is not listed in the libpath.  Setting hardcode_minus_L
9303           # to unsupported forces relinking
9304           hardcode_minus_L_CXX=yes
9305           hardcode_libdir_flag_spec_CXX='-L$libdir'
9306           hardcode_libdir_separator_CXX=
9307         fi
9308       esac
9309       shared_flag='-shared'
9310     else
9311       # not using gcc
9312       if test "$host_cpu" = ia64; then
9313         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9314         # chokes on -Wl,-G. The following line is correct:
9315         shared_flag='-G'
9316       else
9317         if test "$aix_use_runtimelinking" = yes; then
9318           shared_flag='${wl}-G'
9319         else
9320           shared_flag='${wl}-bM:SRE'
9321         fi
9322       fi
9323     fi
9324
9325     # It seems that -bexpall does not export symbols beginning with
9326     # underscore (_), so it is better to generate a list of symbols to export.
9327     always_export_symbols_CXX=yes
9328     if test "$aix_use_runtimelinking" = yes; then
9329       # Warning - without using the other runtime loading flags (-brtl),
9330       # -berok will link without error, but may produce a broken library.
9331       allow_undefined_flag_CXX='-berok'
9332       # Determine the default libpath from the value encoded in an empty executable.
9333       cat >conftest.$ac_ext <<_ACEOF
9334 #line $LINENO "configure"
9335 /* confdefs.h.  */
9336 _ACEOF
9337 cat confdefs.h >>conftest.$ac_ext
9338 cat >>conftest.$ac_ext <<_ACEOF
9339 /* end confdefs.h.  */
9340
9341 int
9342 main ()
9343 {
9344
9345   ;
9346   return 0;
9347 }
9348 _ACEOF
9349 rm -f conftest.$ac_objext conftest$ac_exeext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9351   (eval $ac_link) 2>&5
9352   ac_status=$?
9353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354   (exit $ac_status); } &&
9355          { ac_try='test -s conftest$ac_exeext'
9356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357   (eval $ac_try) 2>&5
9358   ac_status=$?
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); }; }; then
9361
9362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9363 }'`
9364 # Check for a 64-bit object if we didn't find anything.
9365 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; }
9366 }'`; fi
9367 else
9368   echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9370
9371 fi
9372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9373 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9374
9375       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9376
9377       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"
9378      else
9379       if test "$host_cpu" = ia64; then
9380         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9381         allow_undefined_flag_CXX="-z nodefs"
9382         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"
9383       else
9384         # Determine the default libpath from the value encoded in an empty executable.
9385         cat >conftest.$ac_ext <<_ACEOF
9386 #line $LINENO "configure"
9387 /* confdefs.h.  */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h.  */
9392
9393 int
9394 main ()
9395 {
9396
9397   ;
9398   return 0;
9399 }
9400 _ACEOF
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403   (eval $ac_link) 2>&5
9404   ac_status=$?
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); } &&
9407          { ac_try='test -s conftest$ac_exeext'
9408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409   (eval $ac_try) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); }; }; then
9413
9414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9415 }'`
9416 # Check for a 64-bit object if we didn't find anything.
9417 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; }
9418 }'`; fi
9419 else
9420   echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9422
9423 fi
9424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9425 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9426
9427         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9428         # Warning - without using the other run time loading flags,
9429         # -berok will link without error, but may produce a broken library.
9430         no_undefined_flag_CXX=' ${wl}-bernotok'
9431         allow_undefined_flag_CXX=' ${wl}-berok'
9432         # -bexpall does not export symbols beginning with underscore (_)
9433         always_export_symbols_CXX=yes
9434         # Exported symbols can be pulled into shared objects from archives
9435         whole_archive_flag_spec_CXX=' '
9436         archive_cmds_need_lc_CXX=yes
9437         # This is similar to how AIX traditionally builds it's shared libraries.
9438         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'
9439       fi
9440     fi
9441     ;;
9442   chorus*)
9443     case $cc_basename in
9444       *)
9445         # FIXME: insert proper C++ library support
9446         ld_shlibs_CXX=no
9447         ;;
9448     esac
9449     ;;
9450
9451   cygwin* | mingw* | pw32*)
9452     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9453     # as there is no search path for DLLs.
9454     hardcode_libdir_flag_spec_CXX='-L$libdir'
9455     allow_undefined_flag_CXX=unsupported
9456     always_export_symbols_CXX=no
9457     enable_shared_with_static_runtimes_CXX=yes
9458
9459     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9460       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'
9461       # If the export-symbols file already is a .def file (1st line
9462       # is EXPORTS), use it as is; otherwise, prepend...
9463       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9464         cp $export_symbols $output_objdir/$soname.def;
9465       else
9466         echo EXPORTS > $output_objdir/$soname.def;
9467         cat $export_symbols >> $output_objdir/$soname.def;
9468       fi~
9469       $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'
9470     else
9471       ld_shlibs_CXX=no
9472     fi
9473   ;;
9474
9475   darwin* | rhapsody*)
9476    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9477     archive_cmds_need_lc_CXX=no
9478     case "$host_os" in
9479     rhapsody* | darwin1.[012])
9480       allow_undefined_flag_CXX='-undefined suppress'
9481       ;;
9482     *) # Darwin 1.3 on
9483       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9484       ;;
9485     esac
9486         lt_int_apple_cc_single_mod=no
9487         output_verbose_link_cmd='echo'
9488         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9489           lt_int_apple_cc_single_mod=yes
9490         fi
9491         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9492           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9493         else
9494         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'
9495       fi
9496       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9497
9498     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9499       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9500         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}'
9501       else
9502         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}'
9503       fi
9504         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}'
9505     hardcode_direct_CXX=no
9506     hardcode_automatic_CXX=yes
9507     hardcode_shlibpath_var_CXX=unsupported
9508     whole_archive_flag_spec_CXX='-all_load $convenience'
9509     link_all_deplibs_CXX=yes
9510    fi
9511     ;;
9512
9513   dgux*)
9514     case $cc_basename in
9515       ec++)
9516         # FIXME: insert proper C++ library support
9517         ld_shlibs_CXX=no
9518         ;;
9519       ghcx)
9520         # Green Hills C++ Compiler
9521         # FIXME: insert proper C++ library support
9522         ld_shlibs_CXX=no
9523         ;;
9524       *)
9525         # FIXME: insert proper C++ library support
9526         ld_shlibs_CXX=no
9527         ;;
9528     esac
9529     ;;
9530   freebsd12*)
9531     # C++ shared libraries reported to be fairly broken before switch to ELF
9532     ld_shlibs_CXX=no
9533     ;;
9534   freebsd-elf*)
9535     archive_cmds_need_lc_CXX=no
9536     ;;
9537   freebsd*)
9538     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9539     # conventions
9540     ld_shlibs_CXX=yes
9541     ;;
9542   gnu*)
9543     ;;
9544   hpux9*)
9545     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9546     hardcode_libdir_separator_CXX=:
9547     export_dynamic_flag_spec_CXX='${wl}-E'
9548     hardcode_direct_CXX=yes
9549     hardcode_minus_L_CXX=yes # Not in the search PATH,
9550                                 # but as the default
9551                                 # location of the library.
9552
9553     case $cc_basename in
9554     CC)
9555       # FIXME: insert proper C++ library support
9556       ld_shlibs_CXX=no
9557       ;;
9558     aCC)
9559       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'
9560       # Commands to make compiler produce verbose output that lists
9561       # what "hidden" libraries, object files and flags are used when
9562       # linking a shared library.
9563       #
9564       # There doesn't appear to be a way to prevent this compiler from
9565       # explicitly linking system object files so we need to strip them
9566       # from the output so that they don't get included in the library
9567       # dependencies.
9568       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'
9569       ;;
9570     *)
9571       if test "$GXX" = yes; then
9572         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'
9573       else
9574         # FIXME: insert proper C++ library support
9575         ld_shlibs_CXX=no
9576       fi
9577       ;;
9578     esac
9579     ;;
9580   hpux10*|hpux11*)
9581     if test $with_gnu_ld = no; then
9582       case "$host_cpu" in
9583       hppa*64*)
9584         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9585         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9586         hardcode_libdir_separator_CXX=:
9587         ;;
9588       ia64*)
9589         hardcode_libdir_flag_spec_CXX='-L$libdir'
9590         ;;
9591       *)
9592         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9593         hardcode_libdir_separator_CXX=:
9594         export_dynamic_flag_spec_CXX='${wl}-E'
9595         ;;
9596       esac
9597     fi
9598     case "$host_cpu" in
9599     hppa*64*)
9600       hardcode_direct_CXX=no
9601       hardcode_shlibpath_var_CXX=no
9602       ;;
9603     ia64*)
9604       hardcode_direct_CXX=no
9605       hardcode_shlibpath_var_CXX=no
9606       hardcode_minus_L_CXX=yes # Not in the search PATH,
9607                                               # but as the default
9608                                               # location of the library.
9609       ;;
9610     *)
9611       hardcode_direct_CXX=yes
9612       hardcode_minus_L_CXX=yes # Not in the search PATH,
9613                                               # but as the default
9614                                               # location of the library.
9615       ;;
9616     esac
9617
9618     case $cc_basename in
9619       CC)
9620         # FIXME: insert proper C++ library support
9621         ld_shlibs_CXX=no
9622         ;;
9623       aCC)
9624         case "$host_cpu" in
9625         hppa*64*|ia64*)
9626           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9627           ;;
9628         *)
9629           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9630           ;;
9631         esac
9632         # Commands to make compiler produce verbose output that lists
9633         # what "hidden" libraries, object files and flags are used when
9634         # linking a shared library.
9635         #
9636         # There doesn't appear to be a way to prevent this compiler from
9637         # explicitly linking system object files so we need to strip them
9638         # from the output so that they don't get included in the library
9639         # dependencies.
9640         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'
9641         ;;
9642       *)
9643         if test "$GXX" = yes; then
9644           if test $with_gnu_ld = no; then
9645             case "$host_cpu" in
9646             ia64*|hppa*64*)
9647               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9648               ;;
9649             *)
9650               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'
9651               ;;
9652             esac
9653           fi
9654         else
9655           # FIXME: insert proper C++ library support
9656           ld_shlibs_CXX=no
9657         fi
9658         ;;
9659     esac
9660     ;;
9661   irix5* | irix6*)
9662     case $cc_basename in
9663       CC)
9664         # SGI C++
9665         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'
9666
9667         # Archives containing C++ object files must be created using
9668         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9669         # necessary to make sure instantiated templates are included
9670         # in the archive.
9671         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9672         ;;
9673       *)
9674         if test "$GXX" = yes; then
9675           if test "$with_gnu_ld" = no; then
9676             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'
9677           else
9678             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'
9679           fi
9680         fi
9681         link_all_deplibs_CXX=yes
9682         ;;
9683     esac
9684     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9685     hardcode_libdir_separator_CXX=:
9686     ;;
9687   linux*)
9688     case $cc_basename in
9689       KCC)
9690         # Kuck and Associates, Inc. (KAI) C++ Compiler
9691
9692         # KCC will only create a shared library if the output file
9693         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9694         # to its proper name (with version) after linking.
9695         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'
9696         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'
9697         # Commands to make compiler produce verbose output that lists
9698         # what "hidden" libraries, object files and flags are used when
9699         # linking a shared library.
9700         #
9701         # There doesn't appear to be a way to prevent this compiler from
9702         # explicitly linking system object files so we need to strip them
9703         # from the output so that they don't get included in the library
9704         # dependencies.
9705         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'
9706
9707         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9708         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9709
9710         # Archives containing C++ object files must be created using
9711         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9712         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9713         ;;
9714       icpc)
9715         # Intel C++
9716         with_gnu_ld=yes
9717         archive_cmds_need_lc_CXX=no
9718         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9719         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'
9720         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9721         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9722         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9723         ;;
9724       cxx)
9725         # Compaq C++
9726         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9727         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9728
9729         runpath_var=LD_RUN_PATH
9730         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9731         hardcode_libdir_separator_CXX=:
9732
9733         # Commands to make compiler produce verbose output that lists
9734         # what "hidden" libraries, object files and flags are used when
9735         # linking a shared library.
9736         #
9737         # There doesn't appear to be a way to prevent this compiler from
9738         # explicitly linking system object files so we need to strip them
9739         # from the output so that they don't get included in the library
9740         # dependencies.
9741         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'
9742         ;;
9743     esac
9744     ;;
9745   lynxos*)
9746     # FIXME: insert proper C++ library support
9747     ld_shlibs_CXX=no
9748     ;;
9749   m88k*)
9750     # FIXME: insert proper C++ library support
9751     ld_shlibs_CXX=no
9752     ;;
9753   mvs*)
9754     case $cc_basename in
9755       cxx)
9756         # FIXME: insert proper C++ library support
9757         ld_shlibs_CXX=no
9758         ;;
9759       *)
9760         # FIXME: insert proper C++ library support
9761         ld_shlibs_CXX=no
9762         ;;
9763     esac
9764     ;;
9765   netbsd*)
9766     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9767       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9768       wlarc=
9769       hardcode_libdir_flag_spec_CXX='-R$libdir'
9770       hardcode_direct_CXX=yes
9771       hardcode_shlibpath_var_CXX=no
9772     fi
9773     # Workaround some broken pre-1.5 toolchains
9774     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9775     ;;
9776   osf3*)
9777     case $cc_basename in
9778       KCC)
9779         # Kuck and Associates, Inc. (KAI) C++ Compiler
9780
9781         # KCC will only create a shared library if the output file
9782         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9783         # to its proper name (with version) after linking.
9784         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'
9785
9786         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9787         hardcode_libdir_separator_CXX=:
9788
9789         # Archives containing C++ object files must be created using
9790         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9791         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9792
9793         ;;
9794       RCC)
9795         # Rational C++ 2.4.1
9796         # FIXME: insert proper C++ library support
9797         ld_shlibs_CXX=no
9798         ;;
9799       cxx)
9800         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9801         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'
9802
9803         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9804         hardcode_libdir_separator_CXX=:
9805
9806         # Commands to make compiler produce verbose output that lists
9807         # what "hidden" libraries, object files and flags are used when
9808         # linking a shared library.
9809         #
9810         # There doesn't appear to be a way to prevent this compiler from
9811         # explicitly linking system object files so we need to strip them
9812         # from the output so that they don't get included in the library
9813         # dependencies.
9814         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'
9815         ;;
9816       *)
9817         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9818           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9819           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'
9820
9821           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9822           hardcode_libdir_separator_CXX=:
9823
9824           # Commands to make compiler produce verbose output that lists
9825           # what "hidden" libraries, object files and flags are used when
9826           # linking a shared library.
9827           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9828
9829         else
9830           # FIXME: insert proper C++ library support
9831           ld_shlibs_CXX=no
9832         fi
9833         ;;
9834     esac
9835     ;;
9836   osf4* | osf5*)
9837     case $cc_basename in
9838       KCC)
9839         # Kuck and Associates, Inc. (KAI) C++ Compiler
9840
9841         # KCC will only create a shared library if the output file
9842         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9843         # to its proper name (with version) after linking.
9844         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'
9845
9846         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9847         hardcode_libdir_separator_CXX=:
9848
9849         # Archives containing C++ object files must be created using
9850         # the KAI C++ compiler.
9851         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9852         ;;
9853       RCC)
9854         # Rational C++ 2.4.1
9855         # FIXME: insert proper C++ library support
9856         ld_shlibs_CXX=no
9857         ;;
9858       cxx)
9859         allow_undefined_flag_CXX=' -expect_unresolved \*'
9860         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'
9861         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9862           echo "-hidden">> $lib.exp~
9863           $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~
9864           $rm $lib.exp'
9865
9866         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9867         hardcode_libdir_separator_CXX=:
9868
9869         # Commands to make compiler produce verbose output that lists
9870         # what "hidden" libraries, object files and flags are used when
9871         # linking a shared library.
9872         #
9873         # There doesn't appear to be a way to prevent this compiler from
9874         # explicitly linking system object files so we need to strip them
9875         # from the output so that they don't get included in the library
9876         # dependencies.
9877         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'
9878         ;;
9879       *)
9880         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9881           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9882          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'
9883
9884           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9885           hardcode_libdir_separator_CXX=:
9886
9887           # Commands to make compiler produce verbose output that lists
9888           # what "hidden" libraries, object files and flags are used when
9889           # linking a shared library.
9890           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9891
9892         else
9893           # FIXME: insert proper C++ library support
9894           ld_shlibs_CXX=no
9895         fi
9896         ;;
9897     esac
9898     ;;
9899   psos*)
9900     # FIXME: insert proper C++ library support
9901     ld_shlibs_CXX=no
9902     ;;
9903   sco*)
9904     archive_cmds_need_lc_CXX=no
9905     case $cc_basename in
9906       CC)
9907         # FIXME: insert proper C++ library support
9908         ld_shlibs_CXX=no
9909         ;;
9910       *)
9911         # FIXME: insert proper C++ library support
9912         ld_shlibs_CXX=no
9913         ;;
9914     esac
9915     ;;
9916   sunos4*)
9917     case $cc_basename in
9918       CC)
9919         # Sun C++ 4.x
9920         # FIXME: insert proper C++ library support
9921         ld_shlibs_CXX=no
9922         ;;
9923       lcc)
9924         # Lucid
9925         # FIXME: insert proper C++ library support
9926         ld_shlibs_CXX=no
9927         ;;
9928       *)
9929         # FIXME: insert proper C++ library support
9930         ld_shlibs_CXX=no
9931         ;;
9932     esac
9933     ;;
9934   solaris*)
9935     case $cc_basename in
9936       CC)
9937         # Sun C++ 4.2, 5.x and Centerline C++
9938         no_undefined_flag_CXX=' -zdefs'
9939         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9940         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9941         $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'
9942
9943         hardcode_libdir_flag_spec_CXX='-R$libdir'
9944         hardcode_shlibpath_var_CXX=no
9945         case $host_os in
9946           solaris2.0-5 | solaris2.0-5.*) ;;
9947           *)
9948             # The C++ compiler is used as linker so we must use $wl
9949             # flag to pass the commands to the underlying system
9950             # linker.
9951             # Supported since Solaris 2.6 (maybe 2.5.1?)
9952             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9953             ;;
9954         esac
9955         link_all_deplibs_CXX=yes
9956
9957         # Commands to make compiler produce verbose output that lists
9958         # what "hidden" libraries, object files and flags are used when
9959         # linking a shared library.
9960         #
9961         # There doesn't appear to be a way to prevent this compiler from
9962         # explicitly linking system object files so we need to strip them
9963         # from the output so that they don't get included in the library
9964         # dependencies.
9965         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'
9966
9967         # Archives containing C++ object files must be created using
9968         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9969         # necessary to make sure instantiated templates are included
9970         # in the archive.
9971         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9972         ;;
9973       gcx)
9974         # Green Hills C++ Compiler
9975         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9976
9977         # The C++ compiler must be used to create the archive.
9978         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9979         ;;
9980       *)
9981         # GNU C++ compiler with Solaris linker
9982         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9983           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9984           if $CC --version | grep -v '^2\.7' > /dev/null; then
9985             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9986             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9987                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9988
9989             # Commands to make compiler produce verbose output that lists
9990             # what "hidden" libraries, object files and flags are used when
9991             # linking a shared library.
9992             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9993           else
9994             # g++ 2.7 appears to require `-G' NOT `-shared' on this
9995             # platform.
9996             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9997             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9998                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9999
10000             # Commands to make compiler produce verbose output that lists
10001             # what "hidden" libraries, object files and flags are used when
10002             # linking a shared library.
10003             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10004           fi
10005
10006           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10007         fi
10008         ;;
10009     esac
10010     ;;
10011   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10012     archive_cmds_need_lc_CXX=no
10013     ;;
10014   tandem*)
10015     case $cc_basename in
10016       NCC)
10017         # NonStop-UX NCC 3.20
10018         # FIXME: insert proper C++ library support
10019         ld_shlibs_CXX=no
10020         ;;
10021       *)
10022         # FIXME: insert proper C++ library support
10023         ld_shlibs_CXX=no
10024         ;;
10025     esac
10026     ;;
10027   vxworks*)
10028     # FIXME: insert proper C++ library support
10029     ld_shlibs_CXX=no
10030     ;;
10031   *)
10032     # FIXME: insert proper C++ library support
10033     ld_shlibs_CXX=no
10034     ;;
10035 esac
10036 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10037 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10038 test "$ld_shlibs_CXX" = no && can_build_shared=no
10039
10040 GCC_CXX="$GXX"
10041 LD_CXX="$LD"
10042
10043
10044 cat > conftest.$ac_ext <<EOF
10045 class Foo
10046 {
10047 public:
10048   Foo (void) { a = 0; }
10049 private:
10050   int a;
10051 };
10052 EOF
10053
10054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10055   (eval $ac_compile) 2>&5
10056   ac_status=$?
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); }; then
10059   # Parse the compiler output and extract the necessary
10060   # objects, libraries and library flags.
10061
10062   # Sentinel used to keep track of whether or not we are before
10063   # the conftest object file.
10064   pre_test_object_deps_done=no
10065
10066   # The `*' in the case matches for architectures that use `case' in
10067   # $output_verbose_cmd can trigger glob expansion during the loop
10068   # eval without this substitution.
10069   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10070
10071   for p in `eval $output_verbose_link_cmd`; do
10072     case $p in
10073
10074     -L* | -R* | -l*)
10075        # Some compilers place space between "-{L,R}" and the path.
10076        # Remove the space.
10077        if test $p = "-L" \
10078           || test $p = "-R"; then
10079          prev=$p
10080          continue
10081        else
10082          prev=
10083        fi
10084
10085        if test "$pre_test_object_deps_done" = no; then
10086          case $p in
10087          -L* | -R*)
10088            # Internal compiler library paths should come after those
10089            # provided the user.  The postdeps already come after the
10090            # user supplied libs so there is no need to process them.
10091            if test -z "$compiler_lib_search_path_CXX"; then
10092              compiler_lib_search_path_CXX="${prev}${p}"
10093            else
10094              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10095            fi
10096            ;;
10097          # The "-l" case would never come before the object being
10098          # linked, so don't bother handling this case.
10099          esac
10100        else
10101          if test -z "$postdeps_CXX"; then
10102            postdeps_CXX="${prev}${p}"
10103          else
10104            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10105          fi
10106        fi
10107        ;;
10108
10109     *.$objext)
10110        # This assumes that the test object file only shows up
10111        # once in the compiler output.
10112        if test "$p" = "conftest.$objext"; then
10113          pre_test_object_deps_done=yes
10114          continue
10115        fi
10116
10117        if test "$pre_test_object_deps_done" = no; then
10118          if test -z "$predep_objects_CXX"; then
10119            predep_objects_CXX="$p"
10120          else
10121            predep_objects_CXX="$predep_objects_CXX $p"
10122          fi
10123        else
10124          if test -z "$postdep_objects_CXX"; then
10125            postdep_objects_CXX="$p"
10126          else
10127            postdep_objects_CXX="$postdep_objects_CXX $p"
10128          fi
10129        fi
10130        ;;
10131
10132     *) ;; # Ignore the rest.
10133
10134     esac
10135   done
10136
10137   # Clean up.
10138   rm -f a.out a.exe
10139 else
10140   echo "libtool.m4: error: problem compiling CXX test program"
10141 fi
10142
10143 $rm -f confest.$objext
10144
10145 case " $postdeps_CXX " in
10146 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10147 esac
10148
10149 lt_prog_compiler_wl_CXX=
10150 lt_prog_compiler_pic_CXX=
10151 lt_prog_compiler_static_CXX=
10152
10153 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10154 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10155
10156   # C++ specific cases for pic, static, wl, etc.
10157   if test "$GXX" = yes; then
10158     lt_prog_compiler_wl_CXX='-Wl,'
10159     lt_prog_compiler_static_CXX='-static'
10160
10161     case $host_os in
10162     aix*)
10163       # All AIX code is PIC.
10164       if test "$host_cpu" = ia64; then
10165         # AIX 5 now supports IA64 processor
10166         lt_prog_compiler_static_CXX='-Bstatic'
10167       fi
10168       ;;
10169     amigaos*)
10170       # FIXME: we need at least 68020 code to build shared libraries, but
10171       # adding the `-m68020' flag to GCC prevents building anything better,
10172       # like `-m68040'.
10173       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10174       ;;
10175     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10176       # PIC is the default for these OSes.
10177       ;;
10178     mingw* | os2* | pw32*)
10179       # This hack is so that the source file can tell whether it is being
10180       # built for inclusion in a dll (and should export symbols for example).
10181       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10182       ;;
10183     darwin* | rhapsody*)
10184       # PIC is the default on this platform
10185       # Common symbols not allowed in MH_DYLIB files
10186       lt_prog_compiler_pic_CXX='-fno-common'
10187       ;;
10188     *djgpp*)
10189       # DJGPP does not support shared libraries at all
10190       lt_prog_compiler_pic_CXX=
10191       ;;
10192     sysv4*MP*)
10193       if test -d /usr/nec; then
10194         lt_prog_compiler_pic_CXX=-Kconform_pic
10195       fi
10196       ;;
10197     hpux*)
10198       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10199       # not for PA HP-UX.
10200       case "$host_cpu" in
10201       hppa*64*|ia64*)
10202         ;;
10203       *)
10204         lt_prog_compiler_pic_CXX='-fPIC'
10205         ;;
10206       esac
10207       ;;
10208     *)
10209       lt_prog_compiler_pic_CXX='-fPIC'
10210       ;;
10211     esac
10212   else
10213     case $host_os in
10214       aix4* | aix5*)
10215         # All AIX code is PIC.
10216         if test "$host_cpu" = ia64; then
10217           # AIX 5 now supports IA64 processor
10218           lt_prog_compiler_static_CXX='-Bstatic'
10219         else
10220           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10221         fi
10222         ;;
10223       chorus*)
10224         case $cc_basename in
10225         cxch68)
10226           # Green Hills C++ Compiler
10227           # _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"
10228           ;;
10229         esac
10230         ;;
10231       dgux*)
10232         case $cc_basename in
10233           ec++)
10234             lt_prog_compiler_pic_CXX='-KPIC'
10235             ;;
10236           ghcx)
10237             # Green Hills C++ Compiler
10238             lt_prog_compiler_pic_CXX='-pic'
10239             ;;
10240           *)
10241             ;;
10242         esac
10243         ;;
10244       freebsd*)
10245         # FreeBSD uses GNU C++
10246         ;;
10247       hpux9* | hpux10* | hpux11*)
10248         case $cc_basename in
10249           CC)
10250             lt_prog_compiler_wl_CXX='-Wl,'
10251             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10252             if test "$host_cpu" != ia64; then
10253               lt_prog_compiler_pic_CXX='+Z'
10254             fi
10255             ;;
10256           aCC)
10257             lt_prog_compiler_wl_CXX='-Wl,'
10258             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10259             case "$host_cpu" in
10260             hppa*64*|ia64*)
10261               # +Z the default
10262               ;;
10263             *)
10264               lt_prog_compiler_pic_CXX='+Z'
10265               ;;
10266             esac
10267             ;;
10268           *)
10269             ;;
10270         esac
10271         ;;
10272       irix5* | irix6* | nonstopux*)
10273         case $cc_basename in
10274           CC)
10275             lt_prog_compiler_wl_CXX='-Wl,'
10276             lt_prog_compiler_static_CXX='-non_shared'
10277             # CC pic flag -KPIC is the default.
10278             ;;
10279           *)
10280             ;;
10281         esac
10282         ;;
10283       linux*)
10284         case $cc_basename in
10285           KCC)
10286             # KAI C++ Compiler
10287             lt_prog_compiler_wl_CXX='--backend -Wl,'
10288             lt_prog_compiler_pic_CXX='-fPIC'
10289             ;;
10290           icpc)
10291             # Intel C++
10292             lt_prog_compiler_wl_CXX='-Wl,'
10293             lt_prog_compiler_pic_CXX='-KPIC'
10294             lt_prog_compiler_static_CXX='-static'
10295             ;;
10296           cxx)
10297             # Compaq C++
10298             # Make sure the PIC flag is empty.  It appears that all Alpha
10299             # Linux and Compaq Tru64 Unix objects are PIC.
10300             lt_prog_compiler_pic_CXX=
10301             lt_prog_compiler_static_CXX='-non_shared'
10302             ;;
10303           *)
10304             ;;
10305         esac
10306         ;;
10307       lynxos*)
10308         ;;
10309       m88k*)
10310         ;;
10311       mvs*)
10312         case $cc_basename in
10313           cxx)
10314             lt_prog_compiler_pic_CXX='-W c,exportall'
10315             ;;
10316           *)
10317             ;;
10318         esac
10319         ;;
10320       netbsd*)
10321         ;;
10322       osf3* | osf4* | osf5*)
10323         case $cc_basename in
10324           KCC)
10325             lt_prog_compiler_wl_CXX='--backend -Wl,'
10326             ;;
10327           RCC)
10328             # Rational C++ 2.4.1
10329             lt_prog_compiler_pic_CXX='-pic'
10330             ;;
10331           cxx)
10332             # Digital/Compaq C++
10333             lt_prog_compiler_wl_CXX='-Wl,'
10334             # Make sure the PIC flag is empty.  It appears that all Alpha
10335             # Linux and Compaq Tru64 Unix objects are PIC.
10336             lt_prog_compiler_pic_CXX=
10337             lt_prog_compiler_static_CXX='-non_shared'
10338             ;;
10339           *)
10340             ;;
10341         esac
10342         ;;
10343       psos*)
10344         ;;
10345       sco*)
10346         case $cc_basename in
10347           CC)
10348             lt_prog_compiler_pic_CXX='-fPIC'
10349             ;;
10350           *)
10351             ;;
10352         esac
10353         ;;
10354       solaris*)
10355         case $cc_basename in
10356           CC)
10357             # Sun C++ 4.2, 5.x and Centerline C++
10358             lt_prog_compiler_pic_CXX='-KPIC'
10359             lt_prog_compiler_static_CXX='-Bstatic'
10360             lt_prog_compiler_wl_CXX='-Qoption ld '
10361             ;;
10362           gcx)
10363             # Green Hills C++ Compiler
10364             lt_prog_compiler_pic_CXX='-PIC'
10365             ;;
10366           *)
10367             ;;
10368         esac
10369         ;;
10370       sunos4*)
10371         case $cc_basename in
10372           CC)
10373             # Sun C++ 4.x
10374             lt_prog_compiler_pic_CXX='-pic'
10375             lt_prog_compiler_static_CXX='-Bstatic'
10376             ;;
10377           lcc)
10378             # Lucid
10379             lt_prog_compiler_pic_CXX='-pic'
10380             ;;
10381           *)
10382             ;;
10383         esac
10384         ;;
10385       tandem*)
10386         case $cc_basename in
10387           NCC)
10388             # NonStop-UX NCC 3.20
10389             lt_prog_compiler_pic_CXX='-KPIC'
10390             ;;
10391           *)
10392             ;;
10393         esac
10394         ;;
10395       unixware*)
10396         ;;
10397       vxworks*)
10398         ;;
10399       *)
10400         lt_prog_compiler_can_build_shared_CXX=no
10401         ;;
10402     esac
10403   fi
10404
10405 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10406 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10407
10408 #
10409 # Check to make sure the PIC flag actually works.
10410 #
10411 if test -n "$lt_prog_compiler_pic_CXX"; then
10412   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10413 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10414 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10415   echo $ECHO_N "(cached) $ECHO_C" >&6
10416 else
10417   lt_prog_compiler_pic_works_CXX=no
10418   ac_outfile=conftest.$ac_objext
10419    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10420    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10421    # Insert the option either (1) after the last *FLAGS variable, or
10422    # (2) before a word containing "conftest.", or (3) at the end.
10423    # Note that $ac_compile itself does not contain backslashes and begins
10424    # with a dollar sign (not a hyphen), so the echo should work correctly.
10425    # The option is referenced via a variable to avoid confusing sed.
10426    lt_compile=`echo "$ac_compile" | $SED \
10427    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10428    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10429    -e 's:$: $lt_compiler_flag:'`
10430    (eval echo "\"\$as_me:10430: $lt_compile\"" >&5)
10431    (eval "$lt_compile" 2>conftest.err)
10432    ac_status=$?
10433    cat conftest.err >&5
10434    echo "$as_me:10434: \$? = $ac_status" >&5
10435    if (exit $ac_status) && test -s "$ac_outfile"; then
10436      # The compiler can only warn and ignore the option if not recognized
10437      # So say no if there are warnings
10438      if test ! -s conftest.err; then
10439        lt_prog_compiler_pic_works_CXX=yes
10440      fi
10441    fi
10442    $rm conftest*
10443
10444 fi
10445 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10446 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10447
10448 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10449     case $lt_prog_compiler_pic_CXX in
10450      "" | " "*) ;;
10451      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10452      esac
10453 else
10454     lt_prog_compiler_pic_CXX=
10455      lt_prog_compiler_can_build_shared_CXX=no
10456 fi
10457
10458 fi
10459 case "$host_os" in
10460   # For platforms which do not support PIC, -DPIC is meaningless:
10461   *djgpp*)
10462     lt_prog_compiler_pic_CXX=
10463     ;;
10464   *)
10465     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10466     ;;
10467 esac
10468
10469 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10470 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10471 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10472   echo $ECHO_N "(cached) $ECHO_C" >&6
10473 else
10474   lt_cv_prog_compiler_c_o_CXX=no
10475    $rm -r conftest 2>/dev/null
10476    mkdir conftest
10477    cd conftest
10478    mkdir out
10479    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10480
10481    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10482    # that will create temporary files in the current directory regardless of
10483    # the output directory.  Thus, making CWD read-only will cause this test
10484    # to fail, enabling locking or at least warning the user not to do parallel
10485    # builds.
10486    chmod -w .
10487
10488    lt_compiler_flag="-o out/conftest2.$ac_objext"
10489    # Insert the option either (1) after the last *FLAGS variable, or
10490    # (2) before a word containing "conftest.", or (3) at the end.
10491    # Note that $ac_compile itself does not contain backslashes and begins
10492    # with a dollar sign (not a hyphen), so the echo should work correctly.
10493    lt_compile=`echo "$ac_compile" | $SED \
10494    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10495    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10496    -e 's:$: $lt_compiler_flag:'`
10497    (eval echo "\"\$as_me:10497: $lt_compile\"" >&5)
10498    (eval "$lt_compile" 2>out/conftest.err)
10499    ac_status=$?
10500    cat out/conftest.err >&5
10501    echo "$as_me:10501: \$? = $ac_status" >&5
10502    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10503    then
10504      # The compiler can only warn and ignore the option if not recognized
10505      # So say no if there are warnings
10506      if test ! -s out/conftest.err; then
10507        lt_cv_prog_compiler_c_o_CXX=yes
10508      fi
10509    fi
10510    chmod u+w .
10511    $rm conftest* out/*
10512    rmdir out
10513    cd ..
10514    rmdir conftest
10515    $rm conftest*
10516
10517 fi
10518 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10519 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10520
10521
10522 hard_links="nottested"
10523 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10524   # do not overwrite the value of need_locks provided by the user
10525   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10526 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10527   hard_links=yes
10528   $rm conftest*
10529   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10530   touch conftest.a
10531   ln conftest.a conftest.b 2>&5 || hard_links=no
10532   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10533   echo "$as_me:$LINENO: result: $hard_links" >&5
10534 echo "${ECHO_T}$hard_links" >&6
10535   if test "$hard_links" = no; then
10536     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10537 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10538     need_locks=warn
10539   fi
10540 else
10541   need_locks=no
10542 fi
10543
10544 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10545 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10546
10547   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10548   case $host_os in
10549   aix4* | aix5*)
10550     # If we're using GNU nm, then we don't want the "-C" option.
10551     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10552     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10553       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'
10554     else
10555       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'
10556     fi
10557     ;;
10558   pw32*)
10559     export_symbols_cmds_CXX="$ltdll_cmds"
10560   ;;
10561   cygwin* | mingw*)
10562     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10563   ;;
10564   *)
10565     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10566   ;;
10567   esac
10568
10569 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10570 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10571 test "$ld_shlibs_CXX" = no && can_build_shared=no
10572
10573 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10574 if test "$GCC" = yes; then
10575   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10576 fi
10577
10578 #
10579 # Do we need to explicitly link libc?
10580 #
10581 case "x$archive_cmds_need_lc_CXX" in
10582 x|xyes)
10583   # Assume -lc should be added
10584   archive_cmds_need_lc_CXX=yes
10585
10586   if test "$enable_shared" = yes && test "$GCC" = yes; then
10587     case $archive_cmds_CXX in
10588     *'~'*)
10589       # FIXME: we may have to deal with multi-command sequences.
10590       ;;
10591     '$CC '*)
10592       # Test whether the compiler implicitly links with -lc since on some
10593       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10594       # to ld, don't add -lc before -lgcc.
10595       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10596 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10597       $rm conftest*
10598       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10599
10600       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10601   (eval $ac_compile) 2>&5
10602   ac_status=$?
10603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604   (exit $ac_status); } 2>conftest.err; then
10605         soname=conftest
10606         lib=conftest
10607         libobjs=conftest.$ac_objext
10608         deplibs=
10609         wl=$lt_prog_compiler_wl_CXX
10610         compiler_flags=-v
10611         linker_flags=-v
10612         verstring=
10613         output_objdir=.
10614         libname=conftest
10615         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10616         allow_undefined_flag_CXX=
10617         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10618   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10619   ac_status=$?
10620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621   (exit $ac_status); }
10622         then
10623           archive_cmds_need_lc_CXX=no
10624         else
10625           archive_cmds_need_lc_CXX=yes
10626         fi
10627         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10628       else
10629         cat conftest.err 1>&5
10630       fi
10631       $rm conftest*
10632       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10633 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10634       ;;
10635     esac
10636   fi
10637   ;;
10638 esac
10639
10640 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10641 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10642 hardcode_action_CXX=
10643 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10644    test -n "$runpath_var CXX" || \
10645    test "X$hardcode_automatic_CXX"="Xyes" ; then
10646
10647   # We can hardcode non-existant directories.
10648   if test "$hardcode_direct_CXX" != no &&
10649      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10650      # have to relink, otherwise we might link with an installed library
10651      # when we should be linking with a yet-to-be-installed one
10652      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10653      test "$hardcode_minus_L_CXX" != no; then
10654     # Linking always hardcodes the temporary library directory.
10655     hardcode_action_CXX=relink
10656   else
10657     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10658     hardcode_action_CXX=immediate
10659   fi
10660 else
10661   # We cannot hardcode anything, or else we can only hardcode existing
10662   # directories.
10663   hardcode_action_CXX=unsupported
10664 fi
10665 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10666 echo "${ECHO_T}$hardcode_action_CXX" >&6
10667
10668 if test "$hardcode_action_CXX" = relink; then
10669   # Fast installation is not supported
10670   enable_fast_install=no
10671 elif test "$shlibpath_overrides_runpath" = yes ||
10672      test "$enable_shared" = no; then
10673   # Fast installation is not necessary
10674   enable_fast_install=needless
10675 fi
10676
10677 striplib=
10678 old_striplib=
10679 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10680 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10681 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10682   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10683   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10684   echo "$as_me:$LINENO: result: yes" >&5
10685 echo "${ECHO_T}yes" >&6
10686 else
10687 # FIXME - insert some real tests, host_os isn't really good enough
10688   case $host_os in
10689    darwin*)
10690        if test -n "$STRIP" ; then
10691          striplib="$STRIP -x"
10692          echo "$as_me:$LINENO: result: yes" >&5
10693 echo "${ECHO_T}yes" >&6
10694        else
10695   echo "$as_me:$LINENO: result: no" >&5
10696 echo "${ECHO_T}no" >&6
10697 fi
10698        ;;
10699    *)
10700   echo "$as_me:$LINENO: result: no" >&5
10701 echo "${ECHO_T}no" >&6
10702     ;;
10703   esac
10704 fi
10705
10706 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10707 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10708 library_names_spec=
10709 libname_spec='lib$name'
10710 soname_spec=
10711 shrext=".so"
10712 postinstall_cmds=
10713 postuninstall_cmds=
10714 finish_cmds=
10715 finish_eval=
10716 shlibpath_var=
10717 shlibpath_overrides_runpath=unknown
10718 version_type=none
10719 dynamic_linker="$host_os ld.so"
10720 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10721 if test "$GCC" = yes; then
10722   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10723   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10724     # if the path contains ";" then we assume it to be the separator
10725     # otherwise default to the standard path separator (i.e. ":") - it is
10726     # assumed that no part of a normal pathname contains ";" but that should
10727     # okay in the real world where ";" in dirpaths is itself problematic.
10728     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10729   else
10730     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10731   fi
10732 else
10733   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10734 fi
10735 need_lib_prefix=unknown
10736 hardcode_into_libs=no
10737
10738 # when you set need_version to no, make sure it does not cause -set_version
10739 # flags to be left without arguments
10740 need_version=unknown
10741
10742 case $host_os in
10743 aix3*)
10744   version_type=linux
10745   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10746   shlibpath_var=LIBPATH
10747
10748   # AIX 3 has no versioning support, so we append a major version to the name.
10749   soname_spec='${libname}${release}${shared_ext}$major'
10750   ;;
10751
10752 aix4* | aix5*)
10753   version_type=linux
10754   need_lib_prefix=no
10755   need_version=no
10756   hardcode_into_libs=yes
10757   if test "$host_cpu" = ia64; then
10758     # AIX 5 supports IA64
10759     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10760     shlibpath_var=LD_LIBRARY_PATH
10761   else
10762     # With GCC up to 2.95.x, collect2 would create an import file
10763     # for dependence libraries.  The import file would start with
10764     # the line `#! .'.  This would cause the generated library to
10765     # depend on `.', always an invalid library.  This was fixed in
10766     # development snapshots of GCC prior to 3.0.
10767     case $host_os in
10768       aix4 | aix4.[01] | aix4.[01].*)
10769       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10770            echo ' yes '
10771            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10772         :
10773       else
10774         can_build_shared=no
10775       fi
10776       ;;
10777     esac
10778     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10779     # soname into executable. Probably we can add versioning support to
10780     # collect2, so additional links can be useful in future.
10781     if test "$aix_use_runtimelinking" = yes; then
10782       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10783       # instead of lib<name>.a to let people know that these are not
10784       # typical AIX shared libraries.
10785       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786     else
10787       # We preserve .a as extension for shared libraries through AIX4.2
10788       # and later when we are not doing run time linking.
10789       library_names_spec='${libname}${release}.a $libname.a'
10790       soname_spec='${libname}${release}${shared_ext}$major'
10791     fi
10792     shlibpath_var=LIBPATH
10793   fi
10794   ;;
10795
10796 amigaos*)
10797   library_names_spec='$libname.ixlibrary $libname.a'
10798   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10799   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'
10800   ;;
10801
10802 beos*)
10803   library_names_spec='${libname}${shared_ext}'
10804   dynamic_linker="$host_os ld.so"
10805   shlibpath_var=LIBRARY_PATH
10806   ;;
10807
10808 bsdi4*)
10809   version_type=linux
10810   need_version=no
10811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812   soname_spec='${libname}${release}${shared_ext}$major'
10813   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10814   shlibpath_var=LD_LIBRARY_PATH
10815   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10816   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10817   # the default ld.so.conf also contains /usr/contrib/lib and
10818   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10819   # libtool to hard-code these into programs
10820   ;;
10821
10822 cygwin* | mingw* | pw32*)
10823   version_type=windows
10824   shrext=".dll"
10825   need_version=no
10826   need_lib_prefix=no
10827
10828   case $GCC,$host_os in
10829   yes,cygwin* | yes,mingw* | yes,pw32*)
10830     library_names_spec='$libname.dll.a'
10831     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10832     postinstall_cmds='base_file=`basename \${file}`~
10833       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10834       dldir=$destdir/`dirname \$dlpath`~
10835       test -d \$dldir || mkdir -p \$dldir~
10836       $install_prog $dir/$dlname \$dldir/$dlname'
10837     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10838       dlpath=$dir/\$dldll~
10839        $rm \$dlpath'
10840     shlibpath_overrides_runpath=yes
10841
10842     case $host_os in
10843     cygwin*)
10844       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10845       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10846       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10847       ;;
10848     mingw*)
10849       # MinGW DLLs use traditional 'lib' prefix
10850       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10851       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10852       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10853         # It is most probably a Windows format PATH printed by
10854         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10855         # path with ; separators, and with drive letters. We can handle the
10856         # drive letters (cygwin fileutils understands them), so leave them,
10857         # especially as we might pass files found there to a mingw objdump,
10858         # which wouldn't understand a cygwinified path. Ahh.
10859         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10860       else
10861         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10862       fi
10863       ;;
10864     pw32*)
10865       # pw32 DLLs use 'pw' prefix rather than 'lib'
10866       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10867       ;;
10868     esac
10869     ;;
10870
10871   *)
10872     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10873     ;;
10874   esac
10875   dynamic_linker='Win32 ld.exe'
10876   # FIXME: first we should search . and the directory the executable is in
10877   shlibpath_var=PATH
10878   ;;
10879
10880 darwin* | rhapsody*)
10881   dynamic_linker="$host_os dyld"
10882   version_type=darwin
10883   need_lib_prefix=no
10884   need_version=no
10885   # FIXME: Relying on posixy $() will cause problems for
10886   #        cross-compilation, but unfortunately the echo tests do not
10887   #        yet detect zsh echo's removal of \ escapes.
10888   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10889   soname_spec='${libname}${release}${major}$shared_ext'
10890   shlibpath_overrides_runpath=yes
10891   shlibpath_var=DYLD_LIBRARY_PATH
10892   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10893   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10894   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10895   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"`
10896   fi
10897   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10898   ;;
10899
10900 dgux*)
10901   version_type=linux
10902   need_lib_prefix=no
10903   need_version=no
10904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10905   soname_spec='${libname}${release}${shared_ext}$major'
10906   shlibpath_var=LD_LIBRARY_PATH
10907   ;;
10908
10909 freebsd1*)
10910   dynamic_linker=no
10911   ;;
10912
10913 freebsd*)
10914   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10915   version_type=freebsd-$objformat
10916   case $version_type in
10917     freebsd-elf*)
10918       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10919       need_version=no
10920       need_lib_prefix=no
10921       ;;
10922     freebsd-*)
10923       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10924       need_version=yes
10925       ;;
10926   esac
10927   shlibpath_var=LD_LIBRARY_PATH
10928   case $host_os in
10929   freebsd2*)
10930     shlibpath_overrides_runpath=yes
10931     ;;
10932   freebsd3.01* | freebsdelf3.01*)
10933     shlibpath_overrides_runpath=yes
10934     hardcode_into_libs=yes
10935     ;;
10936   *) # from 3.2 on
10937     shlibpath_overrides_runpath=no
10938     hardcode_into_libs=yes
10939     ;;
10940   esac
10941   ;;
10942
10943 gnu*)
10944   version_type=linux
10945   need_lib_prefix=no
10946   need_version=no
10947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10948   soname_spec='${libname}${release}${shared_ext}$major'
10949   shlibpath_var=LD_LIBRARY_PATH
10950   hardcode_into_libs=yes
10951   ;;
10952
10953 hpux9* | hpux10* | hpux11*)
10954   # Give a soname corresponding to the major version so that dld.sl refuses to
10955   # link against other versions.
10956   version_type=sunos
10957   need_lib_prefix=no
10958   need_version=no
10959   case "$host_cpu" in
10960   ia64*)
10961     shrext='.so'
10962     hardcode_into_libs=yes
10963     dynamic_linker="$host_os dld.so"
10964     shlibpath_var=LD_LIBRARY_PATH
10965     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10966     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967     soname_spec='${libname}${release}${shared_ext}$major'
10968     if test "X$HPUX_IA64_MODE" = X32; then
10969       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10970     else
10971       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10972     fi
10973     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10974     ;;
10975    hppa*64*)
10976      shrext='.sl'
10977      hardcode_into_libs=yes
10978      dynamic_linker="$host_os dld.sl"
10979      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10980      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10981      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10982      soname_spec='${libname}${release}${shared_ext}$major'
10983      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10984      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10985      ;;
10986    *)
10987     shrext='.sl'
10988     dynamic_linker="$host_os dld.sl"
10989     shlibpath_var=SHLIB_PATH
10990     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
10994   esac
10995   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10996   postinstall_cmds='chmod 555 $lib'
10997   ;;
10998
10999 irix5* | irix6* | nonstopux*)
11000   case $host_os in
11001     nonstopux*) version_type=nonstopux ;;
11002     *)
11003         if test "$lt_cv_prog_gnu_ld" = yes; then
11004                 version_type=linux
11005         else
11006                 version_type=irix
11007         fi ;;
11008   esac
11009   need_lib_prefix=no
11010   need_version=no
11011   soname_spec='${libname}${release}${shared_ext}$major'
11012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11013   case $host_os in
11014   irix5* | nonstopux*)
11015     libsuff= shlibsuff=
11016     ;;
11017   *)
11018     case $LD in # libtool.m4 will add one of these switches to LD
11019     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11020       libsuff= shlibsuff= libmagic=32-bit;;
11021     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11022       libsuff=32 shlibsuff=N32 libmagic=N32;;
11023     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11024       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11025     *) libsuff= shlibsuff= libmagic=never-match;;
11026     esac
11027     ;;
11028   esac
11029   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11030   shlibpath_overrides_runpath=no
11031   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11032   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11033   hardcode_into_libs=yes
11034   ;;
11035
11036 # No shared lib support for Linux oldld, aout, or coff.
11037 linux*oldld* | linux*aout* | linux*coff*)
11038   dynamic_linker=no
11039   ;;
11040
11041 # This must be Linux ELF.
11042 linux*)
11043   version_type=linux
11044   need_lib_prefix=no
11045   need_version=no
11046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047   soname_spec='${libname}${release}${shared_ext}$major'
11048   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11049   shlibpath_var=LD_LIBRARY_PATH
11050   shlibpath_overrides_runpath=no
11051   # This implies no fast_install, which is unacceptable.
11052   # Some rework will be needed to allow for fast_install
11053   # before this can be enabled.
11054   hardcode_into_libs=yes
11055
11056   # We used to test for /lib/ld.so.1 and disable shared libraries on
11057   # powerpc, because MkLinux only supported shared libraries with the
11058   # GNU dynamic linker.  Since this was broken with cross compilers,
11059   # most powerpc-linux boxes support dynamic linking these days and
11060   # people can always --disable-shared, the test was removed, and we
11061   # assume the GNU/Linux dynamic linker is in use.
11062   dynamic_linker='GNU/Linux ld.so'
11063   ;;
11064
11065 netbsd*)
11066   version_type=sunos
11067   need_lib_prefix=no
11068   need_version=no
11069   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11071     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11072     dynamic_linker='NetBSD (a.out) ld.so'
11073   else
11074     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11075     soname_spec='${libname}${release}${shared_ext}$major'
11076     dynamic_linker='NetBSD ld.elf_so'
11077   fi
11078   shlibpath_var=LD_LIBRARY_PATH
11079   shlibpath_overrides_runpath=yes
11080   hardcode_into_libs=yes
11081   ;;
11082
11083 newsos6)
11084   version_type=linux
11085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086   shlibpath_var=LD_LIBRARY_PATH
11087   shlibpath_overrides_runpath=yes
11088   ;;
11089
11090 nto-qnx)
11091   version_type=linux
11092   need_lib_prefix=no
11093   need_version=no
11094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095   soname_spec='${libname}${release}${shared_ext}$major'
11096   shlibpath_var=LD_LIBRARY_PATH
11097   shlibpath_overrides_runpath=yes
11098   ;;
11099
11100 openbsd*)
11101   version_type=sunos
11102   need_lib_prefix=no
11103   need_version=no
11104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11105   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11106   shlibpath_var=LD_LIBRARY_PATH
11107   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11108     case $host_os in
11109       openbsd2.[89] | openbsd2.[89].*)
11110         shlibpath_overrides_runpath=no
11111         ;;
11112       *)
11113         shlibpath_overrides_runpath=yes
11114         ;;
11115       esac
11116   else
11117     shlibpath_overrides_runpath=yes
11118   fi
11119   ;;
11120
11121 os2*)
11122   libname_spec='$name'
11123   shrext=".dll"
11124   need_lib_prefix=no
11125   library_names_spec='$libname${shared_ext} $libname.a'
11126   dynamic_linker='OS/2 ld.exe'
11127   shlibpath_var=LIBPATH
11128   ;;
11129
11130 osf3* | osf4* | osf5*)
11131   version_type=osf
11132   need_lib_prefix=no
11133   need_version=no
11134   soname_spec='${libname}${release}${shared_ext}$major'
11135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11136   shlibpath_var=LD_LIBRARY_PATH
11137   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11138   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11139   ;;
11140
11141 sco3.2v5*)
11142   version_type=osf
11143   soname_spec='${libname}${release}${shared_ext}$major'
11144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145   shlibpath_var=LD_LIBRARY_PATH
11146   ;;
11147
11148 solaris*)
11149   version_type=linux
11150   need_lib_prefix=no
11151   need_version=no
11152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153   soname_spec='${libname}${release}${shared_ext}$major'
11154   shlibpath_var=LD_LIBRARY_PATH
11155   shlibpath_overrides_runpath=yes
11156   hardcode_into_libs=yes
11157   # ldd complains unless libraries are executable
11158   postinstall_cmds='chmod +x $lib'
11159   ;;
11160
11161 sunos4*)
11162   version_type=sunos
11163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11164   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11165   shlibpath_var=LD_LIBRARY_PATH
11166   shlibpath_overrides_runpath=yes
11167   if test "$with_gnu_ld" = yes; then
11168     need_lib_prefix=no
11169   fi
11170   need_version=yes
11171   ;;
11172
11173 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11174   version_type=linux
11175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176   soname_spec='${libname}${release}${shared_ext}$major'
11177   shlibpath_var=LD_LIBRARY_PATH
11178   case $host_vendor in
11179     sni)
11180       shlibpath_overrides_runpath=no
11181       need_lib_prefix=no
11182       export_dynamic_flag_spec='${wl}-Blargedynsym'
11183       runpath_var=LD_RUN_PATH
11184       ;;
11185     siemens)
11186       need_lib_prefix=no
11187       ;;
11188     motorola)
11189       need_lib_prefix=no
11190       need_version=no
11191       shlibpath_overrides_runpath=no
11192       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11193       ;;
11194   esac
11195   ;;
11196
11197 sysv4*MP*)
11198   if test -d /usr/nec ;then
11199     version_type=linux
11200     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11201     soname_spec='$libname${shared_ext}.$major'
11202     shlibpath_var=LD_LIBRARY_PATH
11203   fi
11204   ;;
11205
11206 uts4*)
11207   version_type=linux
11208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209   soname_spec='${libname}${release}${shared_ext}$major'
11210   shlibpath_var=LD_LIBRARY_PATH
11211   ;;
11212
11213 *)
11214   dynamic_linker=no
11215   ;;
11216 esac
11217 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11218 echo "${ECHO_T}$dynamic_linker" >&6
11219 test "$dynamic_linker" = no && can_build_shared=no
11220
11221 if test "x$enable_dlopen" != xyes; then
11222   enable_dlopen=unknown
11223   enable_dlopen_self=unknown
11224   enable_dlopen_self_static=unknown
11225 else
11226   lt_cv_dlopen=no
11227   lt_cv_dlopen_libs=
11228
11229   case $host_os in
11230   beos*)
11231     lt_cv_dlopen="load_add_on"
11232     lt_cv_dlopen_libs=
11233     lt_cv_dlopen_self=yes
11234     ;;
11235
11236   mingw* | pw32*)
11237     lt_cv_dlopen="LoadLibrary"
11238     lt_cv_dlopen_libs=
11239    ;;
11240
11241   cygwin*)
11242     lt_cv_dlopen="dlopen"
11243     lt_cv_dlopen_libs=
11244    ;;
11245
11246   darwin*)
11247   # if libdl is installed we need to link against it
11248     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11249 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11250 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11251   echo $ECHO_N "(cached) $ECHO_C" >&6
11252 else
11253   ac_check_lib_save_LIBS=$LIBS
11254 LIBS="-ldl  $LIBS"
11255 cat >conftest.$ac_ext <<_ACEOF
11256 #line $LINENO "configure"
11257 /* confdefs.h.  */
11258 _ACEOF
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h.  */
11262
11263 /* Override any gcc2 internal prototype to avoid an error.  */
11264 #ifdef __cplusplus
11265 extern "C"
11266 #endif
11267 /* We use char because int might match the return type of a gcc2
11268    builtin and then its argument prototype would still apply.  */
11269 char dlopen ();
11270 int
11271 main ()
11272 {
11273 dlopen ();
11274   ;
11275   return 0;
11276 }
11277 _ACEOF
11278 rm -f conftest.$ac_objext conftest$ac_exeext
11279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11280   (eval $ac_link) 2>&5
11281   ac_status=$?
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); } &&
11284          { ac_try='test -s conftest$ac_exeext'
11285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286   (eval $ac_try) 2>&5
11287   ac_status=$?
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); }; }; then
11290   ac_cv_lib_dl_dlopen=yes
11291 else
11292   echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.$ac_ext >&5
11294
11295 ac_cv_lib_dl_dlopen=no
11296 fi
11297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11298 LIBS=$ac_check_lib_save_LIBS
11299 fi
11300 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11301 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11302 if test $ac_cv_lib_dl_dlopen = yes; then
11303   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11304 else
11305
11306     lt_cv_dlopen="dyld"
11307     lt_cv_dlopen_libs=
11308     lt_cv_dlopen_self=yes
11309
11310 fi
11311
11312    ;;
11313
11314   *)
11315     echo "$as_me:$LINENO: checking for shl_load" >&5
11316 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11317 if test "${ac_cv_func_shl_load+set}" = set; then
11318   echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320   cat >conftest.$ac_ext <<_ACEOF
11321 #line $LINENO "configure"
11322 /* confdefs.h.  */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h.  */
11327 /* System header to define __stub macros and hopefully few prototypes,
11328     which can conflict with char shl_load (); below.
11329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11330     <limits.h> exists even on freestanding compilers.  */
11331 #ifdef __STDC__
11332 # include <limits.h>
11333 #else
11334 # include <assert.h>
11335 #endif
11336 /* Override any gcc2 internal prototype to avoid an error.  */
11337 #ifdef __cplusplus
11338 extern "C"
11339 {
11340 #endif
11341 /* We use char because int might match the return type of a gcc2
11342    builtin and then its argument prototype would still apply.  */
11343 char shl_load ();
11344 /* The GNU C library defines this for functions which it implements
11345     to always fail with ENOSYS.  Some functions are actually named
11346     something starting with __ and the normal name is an alias.  */
11347 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11348 choke me
11349 #else
11350 char (*f) () = shl_load;
11351 #endif
11352 #ifdef __cplusplus
11353 }
11354 #endif
11355
11356 int
11357 main ()
11358 {
11359 return f != shl_load;
11360   ;
11361   return 0;
11362 }
11363 _ACEOF
11364 rm -f conftest.$ac_objext conftest$ac_exeext
11365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11366   (eval $ac_link) 2>&5
11367   ac_status=$?
11368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369   (exit $ac_status); } &&
11370          { ac_try='test -s conftest$ac_exeext'
11371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372   (eval $ac_try) 2>&5
11373   ac_status=$?
11374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375   (exit $ac_status); }; }; then
11376   ac_cv_func_shl_load=yes
11377 else
11378   echo "$as_me: failed program was:" >&5
11379 sed 's/^/| /' conftest.$ac_ext >&5
11380
11381 ac_cv_func_shl_load=no
11382 fi
11383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11384 fi
11385 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11386 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11387 if test $ac_cv_func_shl_load = yes; then
11388   lt_cv_dlopen="shl_load"
11389 else
11390   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11391 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11392 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11393   echo $ECHO_N "(cached) $ECHO_C" >&6
11394 else
11395   ac_check_lib_save_LIBS=$LIBS
11396 LIBS="-ldld  $LIBS"
11397 cat >conftest.$ac_ext <<_ACEOF
11398 #line $LINENO "configure"
11399 /* confdefs.h.  */
11400 _ACEOF
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h.  */
11404
11405 /* Override any gcc2 internal prototype to avoid an error.  */
11406 #ifdef __cplusplus
11407 extern "C"
11408 #endif
11409 /* We use char because int might match the return type of a gcc2
11410    builtin and then its argument prototype would still apply.  */
11411 char shl_load ();
11412 int
11413 main ()
11414 {
11415 shl_load ();
11416   ;
11417   return 0;
11418 }
11419 _ACEOF
11420 rm -f conftest.$ac_objext conftest$ac_exeext
11421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11422   (eval $ac_link) 2>&5
11423   ac_status=$?
11424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425   (exit $ac_status); } &&
11426          { ac_try='test -s conftest$ac_exeext'
11427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428   (eval $ac_try) 2>&5
11429   ac_status=$?
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); }; }; then
11432   ac_cv_lib_dld_shl_load=yes
11433 else
11434   echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11436
11437 ac_cv_lib_dld_shl_load=no
11438 fi
11439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11440 LIBS=$ac_check_lib_save_LIBS
11441 fi
11442 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11443 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11444 if test $ac_cv_lib_dld_shl_load = yes; then
11445   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11446 else
11447   echo "$as_me:$LINENO: checking for dlopen" >&5
11448 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11449 if test "${ac_cv_func_dlopen+set}" = set; then
11450   echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452   cat >conftest.$ac_ext <<_ACEOF
11453 #line $LINENO "configure"
11454 /* confdefs.h.  */
11455 _ACEOF
11456 cat confdefs.h >>conftest.$ac_ext
11457 cat >>conftest.$ac_ext <<_ACEOF
11458 /* end confdefs.h.  */
11459 /* System header to define __stub macros and hopefully few prototypes,
11460     which can conflict with char dlopen (); below.
11461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11462     <limits.h> exists even on freestanding compilers.  */
11463 #ifdef __STDC__
11464 # include <limits.h>
11465 #else
11466 # include <assert.h>
11467 #endif
11468 /* Override any gcc2 internal prototype to avoid an error.  */
11469 #ifdef __cplusplus
11470 extern "C"
11471 {
11472 #endif
11473 /* We use char because int might match the return type of a gcc2
11474    builtin and then its argument prototype would still apply.  */
11475 char dlopen ();
11476 /* The GNU C library defines this for functions which it implements
11477     to always fail with ENOSYS.  Some functions are actually named
11478     something starting with __ and the normal name is an alias.  */
11479 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11480 choke me
11481 #else
11482 char (*f) () = dlopen;
11483 #endif
11484 #ifdef __cplusplus
11485 }
11486 #endif
11487
11488 int
11489 main ()
11490 {
11491 return f != dlopen;
11492   ;
11493   return 0;
11494 }
11495 _ACEOF
11496 rm -f conftest.$ac_objext conftest$ac_exeext
11497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11498   (eval $ac_link) 2>&5
11499   ac_status=$?
11500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501   (exit $ac_status); } &&
11502          { ac_try='test -s conftest$ac_exeext'
11503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504   (eval $ac_try) 2>&5
11505   ac_status=$?
11506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507   (exit $ac_status); }; }; then
11508   ac_cv_func_dlopen=yes
11509 else
11510   echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11512
11513 ac_cv_func_dlopen=no
11514 fi
11515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11516 fi
11517 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11518 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11519 if test $ac_cv_func_dlopen = yes; then
11520   lt_cv_dlopen="dlopen"
11521 else
11522   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11523 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11524 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11525   echo $ECHO_N "(cached) $ECHO_C" >&6
11526 else
11527   ac_check_lib_save_LIBS=$LIBS
11528 LIBS="-ldl  $LIBS"
11529 cat >conftest.$ac_ext <<_ACEOF
11530 #line $LINENO "configure"
11531 /* confdefs.h.  */
11532 _ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h.  */
11536
11537 /* Override any gcc2 internal prototype to avoid an error.  */
11538 #ifdef __cplusplus
11539 extern "C"
11540 #endif
11541 /* We use char because int might match the return type of a gcc2
11542    builtin and then its argument prototype would still apply.  */
11543 char dlopen ();
11544 int
11545 main ()
11546 {
11547 dlopen ();
11548   ;
11549   return 0;
11550 }
11551 _ACEOF
11552 rm -f conftest.$ac_objext conftest$ac_exeext
11553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11554   (eval $ac_link) 2>&5
11555   ac_status=$?
11556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557   (exit $ac_status); } &&
11558          { ac_try='test -s conftest$ac_exeext'
11559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560   (eval $ac_try) 2>&5
11561   ac_status=$?
11562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563   (exit $ac_status); }; }; then
11564   ac_cv_lib_dl_dlopen=yes
11565 else
11566   echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11568
11569 ac_cv_lib_dl_dlopen=no
11570 fi
11571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11572 LIBS=$ac_check_lib_save_LIBS
11573 fi
11574 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11575 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11576 if test $ac_cv_lib_dl_dlopen = yes; then
11577   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11578 else
11579   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11580 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11581 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11582   echo $ECHO_N "(cached) $ECHO_C" >&6
11583 else
11584   ac_check_lib_save_LIBS=$LIBS
11585 LIBS="-lsvld  $LIBS"
11586 cat >conftest.$ac_ext <<_ACEOF
11587 #line $LINENO "configure"
11588 /* confdefs.h.  */
11589 _ACEOF
11590 cat confdefs.h >>conftest.$ac_ext
11591 cat >>conftest.$ac_ext <<_ACEOF
11592 /* end confdefs.h.  */
11593
11594 /* Override any gcc2 internal prototype to avoid an error.  */
11595 #ifdef __cplusplus
11596 extern "C"
11597 #endif
11598 /* We use char because int might match the return type of a gcc2
11599    builtin and then its argument prototype would still apply.  */
11600 char dlopen ();
11601 int
11602 main ()
11603 {
11604 dlopen ();
11605   ;
11606   return 0;
11607 }
11608 _ACEOF
11609 rm -f conftest.$ac_objext conftest$ac_exeext
11610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11611   (eval $ac_link) 2>&5
11612   ac_status=$?
11613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614   (exit $ac_status); } &&
11615          { ac_try='test -s conftest$ac_exeext'
11616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617   (eval $ac_try) 2>&5
11618   ac_status=$?
11619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); }; }; then
11621   ac_cv_lib_svld_dlopen=yes
11622 else
11623   echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11625
11626 ac_cv_lib_svld_dlopen=no
11627 fi
11628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11629 LIBS=$ac_check_lib_save_LIBS
11630 fi
11631 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11632 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11633 if test $ac_cv_lib_svld_dlopen = yes; then
11634   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11635 else
11636   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11637 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11638 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11639   echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641   ac_check_lib_save_LIBS=$LIBS
11642 LIBS="-ldld  $LIBS"
11643 cat >conftest.$ac_ext <<_ACEOF
11644 #line $LINENO "configure"
11645 /* confdefs.h.  */
11646 _ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h.  */
11650
11651 /* Override any gcc2 internal prototype to avoid an error.  */
11652 #ifdef __cplusplus
11653 extern "C"
11654 #endif
11655 /* We use char because int might match the return type of a gcc2
11656    builtin and then its argument prototype would still apply.  */
11657 char dld_link ();
11658 int
11659 main ()
11660 {
11661 dld_link ();
11662   ;
11663   return 0;
11664 }
11665 _ACEOF
11666 rm -f conftest.$ac_objext conftest$ac_exeext
11667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11668   (eval $ac_link) 2>&5
11669   ac_status=$?
11670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671   (exit $ac_status); } &&
11672          { ac_try='test -s conftest$ac_exeext'
11673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674   (eval $ac_try) 2>&5
11675   ac_status=$?
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); }; }; then
11678   ac_cv_lib_dld_dld_link=yes
11679 else
11680   echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11682
11683 ac_cv_lib_dld_dld_link=no
11684 fi
11685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11686 LIBS=$ac_check_lib_save_LIBS
11687 fi
11688 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11689 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11690 if test $ac_cv_lib_dld_dld_link = yes; then
11691   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11692 fi
11693
11694
11695 fi
11696
11697
11698 fi
11699
11700
11701 fi
11702
11703
11704 fi
11705
11706
11707 fi
11708
11709     ;;
11710   esac
11711
11712   if test "x$lt_cv_dlopen" != xno; then
11713     enable_dlopen=yes
11714   else
11715     enable_dlopen=no
11716   fi
11717
11718   case $lt_cv_dlopen in
11719   dlopen)
11720     save_CPPFLAGS="$CPPFLAGS"
11721     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11722
11723     save_LDFLAGS="$LDFLAGS"
11724     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11725
11726     save_LIBS="$LIBS"
11727     LIBS="$lt_cv_dlopen_libs $LIBS"
11728
11729     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11730 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11731 if test "${lt_cv_dlopen_self+set}" = set; then
11732   echo $ECHO_N "(cached) $ECHO_C" >&6
11733 else
11734           if test "$cross_compiling" = yes; then :
11735   lt_cv_dlopen_self=cross
11736 else
11737   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11738   lt_status=$lt_dlunknown
11739   cat > conftest.$ac_ext <<EOF
11740 #line 11740 "configure"
11741 #include "confdefs.h"
11742
11743 #if HAVE_DLFCN_H
11744 #include <dlfcn.h>
11745 #endif
11746
11747 #include <stdio.h>
11748
11749 #ifdef RTLD_GLOBAL
11750 #  define LT_DLGLOBAL           RTLD_GLOBAL
11751 #else
11752 #  ifdef DL_GLOBAL
11753 #    define LT_DLGLOBAL         DL_GLOBAL
11754 #  else
11755 #    define LT_DLGLOBAL         0
11756 #  endif
11757 #endif
11758
11759 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11760    find out it does not work in some platform. */
11761 #ifndef LT_DLLAZY_OR_NOW
11762 #  ifdef RTLD_LAZY
11763 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11764 #  else
11765 #    ifdef DL_LAZY
11766 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11767 #    else
11768 #      ifdef RTLD_NOW
11769 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11770 #      else
11771 #        ifdef DL_NOW
11772 #          define LT_DLLAZY_OR_NOW      DL_NOW
11773 #        else
11774 #          define LT_DLLAZY_OR_NOW      0
11775 #        endif
11776 #      endif
11777 #    endif
11778 #  endif
11779 #endif
11780
11781 #ifdef __cplusplus
11782 extern "C" void exit (int);
11783 #endif
11784
11785 void fnord() { int i=42;}
11786 int main ()
11787 {
11788   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11789   int status = $lt_dlunknown;
11790
11791   if (self)
11792     {
11793       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11794       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11795       /* dlclose (self); */
11796     }
11797
11798     exit (status);
11799 }
11800 EOF
11801   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11802   (eval $ac_link) 2>&5
11803   ac_status=$?
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11806     (./conftest; exit; ) 2>/dev/null
11807     lt_status=$?
11808     case x$lt_status in
11809       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11810       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11811       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11812     esac
11813   else :
11814     # compilation failed
11815     lt_cv_dlopen_self=no
11816   fi
11817 fi
11818 rm -fr conftest*
11819
11820
11821 fi
11822 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11823 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11824
11825     if test "x$lt_cv_dlopen_self" = xyes; then
11826       LDFLAGS="$LDFLAGS $link_static_flag"
11827       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11828 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11829 if test "${lt_cv_dlopen_self_static+set}" = set; then
11830   echo $ECHO_N "(cached) $ECHO_C" >&6
11831 else
11832           if test "$cross_compiling" = yes; then :
11833   lt_cv_dlopen_self_static=cross
11834 else
11835   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11836   lt_status=$lt_dlunknown
11837   cat > conftest.$ac_ext <<EOF
11838 #line 11838 "configure"
11839 #include "confdefs.h"
11840
11841 #if HAVE_DLFCN_H
11842 #include <dlfcn.h>
11843 #endif
11844
11845 #include <stdio.h>
11846
11847 #ifdef RTLD_GLOBAL
11848 #  define LT_DLGLOBAL           RTLD_GLOBAL
11849 #else
11850 #  ifdef DL_GLOBAL
11851 #    define LT_DLGLOBAL         DL_GLOBAL
11852 #  else
11853 #    define LT_DLGLOBAL         0
11854 #  endif
11855 #endif
11856
11857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11858    find out it does not work in some platform. */
11859 #ifndef LT_DLLAZY_OR_NOW
11860 #  ifdef RTLD_LAZY
11861 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11862 #  else
11863 #    ifdef DL_LAZY
11864 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11865 #    else
11866 #      ifdef RTLD_NOW
11867 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11868 #      else
11869 #        ifdef DL_NOW
11870 #          define LT_DLLAZY_OR_NOW      DL_NOW
11871 #        else
11872 #          define LT_DLLAZY_OR_NOW      0
11873 #        endif
11874 #      endif
11875 #    endif
11876 #  endif
11877 #endif
11878
11879 #ifdef __cplusplus
11880 extern "C" void exit (int);
11881 #endif
11882
11883 void fnord() { int i=42;}
11884 int main ()
11885 {
11886   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11887   int status = $lt_dlunknown;
11888
11889   if (self)
11890     {
11891       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11892       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11893       /* dlclose (self); */
11894     }
11895
11896     exit (status);
11897 }
11898 EOF
11899   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11900   (eval $ac_link) 2>&5
11901   ac_status=$?
11902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11904     (./conftest; exit; ) 2>/dev/null
11905     lt_status=$?
11906     case x$lt_status in
11907       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11908       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11909       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11910     esac
11911   else :
11912     # compilation failed
11913     lt_cv_dlopen_self_static=no
11914   fi
11915 fi
11916 rm -fr conftest*
11917
11918
11919 fi
11920 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11921 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11922     fi
11923
11924     CPPFLAGS="$save_CPPFLAGS"
11925     LDFLAGS="$save_LDFLAGS"
11926     LIBS="$save_LIBS"
11927     ;;
11928   esac
11929
11930   case $lt_cv_dlopen_self in
11931   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11932   *) enable_dlopen_self=unknown ;;
11933   esac
11934
11935   case $lt_cv_dlopen_self_static in
11936   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11937   *) enable_dlopen_self_static=unknown ;;
11938   esac
11939 fi
11940
11941
11942 # The else clause should only fire when bootstrapping the
11943 # libtool distribution, otherwise you forgot to ship ltmain.sh
11944 # with your package, and you will get complaints that there are
11945 # no rules to generate ltmain.sh.
11946 if test -f "$ltmain"; then
11947   # See if we are running on zsh, and set the options which allow our commands through
11948   # without removal of \ escapes.
11949   if test -n "${ZSH_VERSION+set}" ; then
11950     setopt NO_GLOB_SUBST
11951   fi
11952   # Now quote all the things that may contain metacharacters while being
11953   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11954   # variables and quote the copies for generation of the libtool script.
11955   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11956     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11957     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11958     deplibs_check_method reload_flag reload_cmds need_locks \
11959     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11960     lt_cv_sys_global_symbol_to_c_name_address \
11961     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11962     old_postinstall_cmds old_postuninstall_cmds \
11963     compiler_CXX \
11964     CC_CXX \
11965     LD_CXX \
11966     lt_prog_compiler_wl_CXX \
11967     lt_prog_compiler_pic_CXX \
11968     lt_prog_compiler_static_CXX \
11969     lt_prog_compiler_no_builtin_flag_CXX \
11970     export_dynamic_flag_spec_CXX \
11971     thread_safe_flag_spec_CXX \
11972     whole_archive_flag_spec_CXX \
11973     enable_shared_with_static_runtimes_CXX \
11974     old_archive_cmds_CXX \
11975     old_archive_from_new_cmds_CXX \
11976     predep_objects_CXX \
11977     postdep_objects_CXX \
11978     predeps_CXX \
11979     postdeps_CXX \
11980     compiler_lib_search_path_CXX \
11981     archive_cmds_CXX \
11982     archive_expsym_cmds_CXX \
11983     postinstall_cmds_CXX \
11984     postuninstall_cmds_CXX \
11985     old_archive_from_expsyms_cmds_CXX \
11986     allow_undefined_flag_CXX \
11987     no_undefined_flag_CXX \
11988     export_symbols_cmds_CXX \
11989     hardcode_libdir_flag_spec_CXX \
11990     hardcode_libdir_flag_spec_ld_CXX \
11991     hardcode_libdir_separator_CXX \
11992     hardcode_automatic_CXX \
11993     module_cmds_CXX \
11994     module_expsym_cmds_CXX \
11995     lt_cv_prog_compiler_c_o_CXX \
11996     exclude_expsyms_CXX \
11997     include_expsyms_CXX; do
11998
11999     case $var in
12000     old_archive_cmds_CXX | \
12001     old_archive_from_new_cmds_CXX | \
12002     archive_cmds_CXX | \
12003     archive_expsym_cmds_CXX | \
12004     module_cmds_CXX | \
12005     module_expsym_cmds_CXX | \
12006     old_archive_from_expsyms_cmds_CXX | \
12007     export_symbols_cmds_CXX | \
12008     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12009     postinstall_cmds | postuninstall_cmds | \
12010     old_postinstall_cmds | old_postuninstall_cmds | \
12011     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12012       # Double-quote double-evaled strings.
12013       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12014       ;;
12015     *)
12016       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12017       ;;
12018     esac
12019   done
12020
12021   case $lt_echo in
12022   *'\$0 --fallback-echo"')
12023     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12024     ;;
12025   esac
12026
12027 cfgfile="$ofile"
12028
12029   cat <<__EOF__ >> "$cfgfile"
12030 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12031
12032 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12033
12034 # Shell to use when invoking shell scripts.
12035 SHELL=$lt_SHELL
12036
12037 # Whether or not to build shared libraries.
12038 build_libtool_libs=$enable_shared
12039
12040 # Whether or not to build static libraries.
12041 build_old_libs=$enable_static
12042
12043 # Whether or not to add -lc for building shared libraries.
12044 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12045
12046 # Whether or not to disallow shared libs when runtime libs are static
12047 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12048
12049 # Whether or not to optimize for fast installation.
12050 fast_install=$enable_fast_install
12051
12052 # The host system.
12053 host_alias=$host_alias
12054 host=$host
12055
12056 # An echo program that does not interpret backslashes.
12057 echo=$lt_echo
12058
12059 # The archiver.
12060 AR=$lt_AR
12061 AR_FLAGS=$lt_AR_FLAGS
12062
12063 # A C compiler.
12064 LTCC=$lt_LTCC
12065
12066 # A language-specific compiler.
12067 CC=$lt_compiler_CXX
12068
12069 # Is the compiler the GNU C compiler?
12070 with_gcc=$GCC_CXX
12071
12072 # An ERE matcher.
12073 EGREP=$lt_EGREP
12074
12075 # The linker used to build libraries.
12076 LD=$lt_LD_CXX
12077
12078 # Whether we need hard or soft links.
12079 LN_S=$lt_LN_S
12080
12081 # A BSD-compatible nm program.
12082 NM=$lt_NM
12083
12084 # A symbol stripping program
12085 STRIP=$STRIP
12086
12087 # Used to examine libraries when file_magic_cmd begins "file"
12088 MAGIC_CMD=$MAGIC_CMD
12089
12090 # Used on cygwin: DLL creation program.
12091 DLLTOOL="$DLLTOOL"
12092
12093 # Used on cygwin: object dumper.
12094 OBJDUMP="$OBJDUMP"
12095
12096 # Used on cygwin: assembler.
12097 AS="$AS"
12098
12099 # The name of the directory that contains temporary libtool files.
12100 objdir=$objdir
12101
12102 # How to create reloadable object files.
12103 reload_flag=$lt_reload_flag
12104 reload_cmds=$lt_reload_cmds
12105
12106 # How to pass a linker flag through the compiler.
12107 wl=$lt_lt_prog_compiler_wl_CXX
12108
12109 # Object file suffix (normally "o").
12110 objext="$ac_objext"
12111
12112 # Old archive suffix (normally "a").
12113 libext="$libext"
12114
12115 # Shared library suffix (normally ".so").
12116 shrext='$shrext'
12117
12118 # Executable file suffix (normally "").
12119 exeext="$exeext"
12120
12121 # Additional compiler flags for building library objects.
12122 pic_flag=$lt_lt_prog_compiler_pic_CXX
12123 pic_mode=$pic_mode
12124
12125 # What is the maximum length of a command?
12126 max_cmd_len=$lt_cv_sys_max_cmd_len
12127
12128 # Does compiler simultaneously support -c and -o options?
12129 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12130
12131 # Must we lock files when doing compilation ?
12132 need_locks=$lt_need_locks
12133
12134 # Do we need the lib prefix for modules?
12135 need_lib_prefix=$need_lib_prefix
12136
12137 # Do we need a version for libraries?
12138 need_version=$need_version
12139
12140 # Whether dlopen is supported.
12141 dlopen_support=$enable_dlopen
12142
12143 # Whether dlopen of programs is supported.
12144 dlopen_self=$enable_dlopen_self
12145
12146 # Whether dlopen of statically linked programs is supported.
12147 dlopen_self_static=$enable_dlopen_self_static
12148
12149 # Compiler flag to prevent dynamic linking.
12150 link_static_flag=$lt_lt_prog_compiler_static_CXX
12151
12152 # Compiler flag to turn off builtin functions.
12153 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12154
12155 # Compiler flag to allow reflexive dlopens.
12156 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12157
12158 # Compiler flag to generate shared objects directly from archives.
12159 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12160
12161 # Compiler flag to generate thread-safe objects.
12162 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12163
12164 # Library versioning type.
12165 version_type=$version_type
12166
12167 # Format of library name prefix.
12168 libname_spec=$lt_libname_spec
12169
12170 # List of archive names.  First name is the real one, the rest are links.
12171 # The last name is the one that the linker finds with -lNAME.
12172 library_names_spec=$lt_library_names_spec
12173
12174 # The coded name of the library, if different from the real name.
12175 soname_spec=$lt_soname_spec
12176
12177 # Commands used to build and install an old-style archive.
12178 RANLIB=$lt_RANLIB
12179 old_archive_cmds=$lt_old_archive_cmds_CXX
12180 old_postinstall_cmds=$lt_old_postinstall_cmds
12181 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12182
12183 # Create an old-style archive from a shared archive.
12184 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12185
12186 # Create a temporary old-style archive to link instead of a shared archive.
12187 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12188
12189 # Commands used to build and install a shared archive.
12190 archive_cmds=$lt_archive_cmds_CXX
12191 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12192 postinstall_cmds=$lt_postinstall_cmds
12193 postuninstall_cmds=$lt_postuninstall_cmds
12194
12195 # Commands used to build a loadable module (assumed same as above if empty)
12196 module_cmds=$lt_module_cmds_CXX
12197 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12198
12199 # Commands to strip libraries.
12200 old_striplib=$lt_old_striplib
12201 striplib=$lt_striplib
12202
12203 # Dependencies to place before the objects being linked to create a
12204 # shared library.
12205 predep_objects=$lt_predep_objects_CXX
12206
12207 # Dependencies to place after the objects being linked to create a
12208 # shared library.
12209 postdep_objects=$lt_postdep_objects_CXX
12210
12211 # Dependencies to place before the objects being linked to create a
12212 # shared library.
12213 predeps=$lt_predeps_CXX
12214
12215 # Dependencies to place after the objects being linked to create a
12216 # shared library.
12217 postdeps=$lt_postdeps_CXX
12218
12219 # The library search path used internally by the compiler when linking
12220 # a shared library.
12221 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12222
12223 # Method to check whether dependent libraries are shared objects.
12224 deplibs_check_method=$lt_deplibs_check_method
12225
12226 # Command to use when deplibs_check_method == file_magic.
12227 file_magic_cmd=$lt_file_magic_cmd
12228
12229 # Flag that allows shared libraries with undefined symbols to be built.
12230 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12231
12232 # Flag that forces no undefined symbols.
12233 no_undefined_flag=$lt_no_undefined_flag_CXX
12234
12235 # Commands used to finish a libtool library installation in a directory.
12236 finish_cmds=$lt_finish_cmds
12237
12238 # Same as above, but a single script fragment to be evaled but not shown.
12239 finish_eval=$lt_finish_eval
12240
12241 # Take the output of nm and produce a listing of raw symbols and C names.
12242 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12243
12244 # Transform the output of nm in a proper C declaration
12245 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12246
12247 # Transform the output of nm in a C name address pair
12248 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12249
12250 # This is the shared library runtime path variable.
12251 runpath_var=$runpath_var
12252
12253 # This is the shared library path variable.
12254 shlibpath_var=$shlibpath_var
12255
12256 # Is shlibpath searched before the hard-coded library search path?
12257 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12258
12259 # How to hardcode a shared library path into an executable.
12260 hardcode_action=$hardcode_action_CXX
12261
12262 # Whether we should hardcode library paths into libraries.
12263 hardcode_into_libs=$hardcode_into_libs
12264
12265 # Flag to hardcode \$libdir into a binary during linking.
12266 # This must work even if \$libdir does not exist.
12267 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12268
12269 # If ld is used when linking, flag to hardcode \$libdir into
12270 # a binary during linking. This must work even if \$libdir does
12271 # not exist.
12272 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12273
12274 # Whether we need a single -rpath flag with a separated argument.
12275 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12276
12277 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12278 # resulting binary.
12279 hardcode_direct=$hardcode_direct_CXX
12280
12281 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12282 # resulting binary.
12283 hardcode_minus_L=$hardcode_minus_L_CXX
12284
12285 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12286 # the resulting binary.
12287 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12288
12289 # Set to yes if building a shared library automatically hardcodes DIR into the library
12290 # and all subsequent libraries and executables linked against it.
12291 hardcode_automatic=$hardcode_automatic_CXX
12292
12293 # Variables whose values should be saved in libtool wrapper scripts and
12294 # restored at relink time.
12295 variables_saved_for_relink="$variables_saved_for_relink"
12296
12297 # Whether libtool must link a program against all its dependency libraries.
12298 link_all_deplibs=$link_all_deplibs_CXX
12299
12300 # Compile-time system search path for libraries
12301 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12302
12303 # Run-time system search path for libraries
12304 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12305
12306 # Fix the shell variable \$srcfile for the compiler.
12307 fix_srcfile_path="$fix_srcfile_path_CXX"
12308
12309 # Set to yes if exported symbols are required.
12310 always_export_symbols=$always_export_symbols_CXX
12311
12312 # The commands to list exported symbols.
12313 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12314
12315 # The commands to extract the exported symbol list from a shared archive.
12316 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12317
12318 # Symbols that should not be listed in the preloaded symbols.
12319 exclude_expsyms=$lt_exclude_expsyms_CXX
12320
12321 # Symbols that must always be exported.
12322 include_expsyms=$lt_include_expsyms_CXX
12323
12324 # ### END LIBTOOL TAG CONFIG: $tagname
12325
12326 __EOF__
12327
12328
12329 else
12330   # If there is no Makefile yet, we rely on a make rule to execute
12331   # `config.status --recheck' to rerun these tests and create the
12332   # libtool script then.
12333   test -f Makefile && make "$ltmain"
12334 fi
12335
12336
12337 ac_ext=c
12338 ac_cpp='$CPP $CPPFLAGS'
12339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12342
12343 CC=$lt_save_CC
12344 LDCXX=$LD
12345 LD=$lt_save_LD
12346 GCC=$lt_save_GCC
12347 with_gnu_ldcxx=$with_gnu_ld
12348 with_gnu_ld=$lt_save_with_gnu_ld
12349 lt_cv_path_LDCXX=$lt_cv_path_LD
12350 lt_cv_path_LD=$lt_save_path_LD
12351 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12352 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12353
12354         else
12355           tagname=""
12356         fi
12357         ;;
12358
12359       F77)
12360         if test -n "$F77" && test "X$F77" != "Xno"; then
12361
12362 ac_ext=f
12363 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12364 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12365 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12366
12367
12368 archive_cmds_need_lc_F77=no
12369 allow_undefined_flag_F77=
12370 always_export_symbols_F77=no
12371 archive_expsym_cmds_F77=
12372 export_dynamic_flag_spec_F77=
12373 hardcode_direct_F77=no
12374 hardcode_libdir_flag_spec_F77=
12375 hardcode_libdir_flag_spec_ld_F77=
12376 hardcode_libdir_separator_F77=
12377 hardcode_minus_L_F77=no
12378 hardcode_automatic_F77=no
12379 module_cmds_F77=
12380 module_expsym_cmds_F77=
12381 link_all_deplibs_F77=unknown
12382 old_archive_cmds_F77=$old_archive_cmds
12383 no_undefined_flag_F77=
12384 whole_archive_flag_spec_F77=
12385 enable_shared_with_static_runtimes_F77=no
12386
12387 # Source file extension for f77 test sources.
12388 ac_ext=f
12389
12390 # Object file extension for compiled f77 test sources.
12391 objext=o
12392 objext_F77=$objext
12393
12394 # Code to be used in simple compile tests
12395 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12396
12397 # Code to be used in simple link tests
12398 lt_simple_link_test_code="      program t\n      end\n"
12399
12400 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12401
12402 # If no C compiler was specified, use CC.
12403 LTCC=${LTCC-"$CC"}
12404
12405 # Allow CC to be a program name with arguments.
12406 compiler=$CC
12407
12408
12409 # Allow CC to be a program name with arguments.
12410 lt_save_CC="$CC"
12411 CC=${F77-"f77"}
12412 compiler=$CC
12413 compiler_F77=$CC
12414 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12415
12416 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12417 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12418 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12419 echo "${ECHO_T}$can_build_shared" >&6
12420
12421 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12422 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12423 test "$can_build_shared" = "no" && enable_shared=no
12424
12425 # On AIX, shared libraries and static libraries use the same namespace, and
12426 # are all built from PIC.
12427 case "$host_os" in
12428 aix3*)
12429   test "$enable_shared" = yes && enable_static=no
12430   if test -n "$RANLIB"; then
12431     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12432     postinstall_cmds='$RANLIB $lib'
12433   fi
12434   ;;
12435 aix4*)
12436   test "$enable_shared" = yes && enable_static=no
12437   ;;
12438 esac
12439 echo "$as_me:$LINENO: result: $enable_shared" >&5
12440 echo "${ECHO_T}$enable_shared" >&6
12441
12442 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12443 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12444 # Make sure either enable_shared or enable_static is yes.
12445 test "$enable_shared" = yes || enable_static=yes
12446 echo "$as_me:$LINENO: result: $enable_static" >&5
12447 echo "${ECHO_T}$enable_static" >&6
12448
12449 test "$ld_shlibs_F77" = no && can_build_shared=no
12450
12451 GCC_F77="$G77"
12452 LD_F77="$LD"
12453
12454 lt_prog_compiler_wl_F77=
12455 lt_prog_compiler_pic_F77=
12456 lt_prog_compiler_static_F77=
12457
12458 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12459 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12460
12461   if test "$GCC" = yes; then
12462     lt_prog_compiler_wl_F77='-Wl,'
12463     lt_prog_compiler_static_F77='-static'
12464
12465     case $host_os in
12466       aix*)
12467       # All AIX code is PIC.
12468       if test "$host_cpu" = ia64; then
12469         # AIX 5 now supports IA64 processor
12470         lt_prog_compiler_static_F77='-Bstatic'
12471       fi
12472       ;;
12473
12474     amigaos*)
12475       # FIXME: we need at least 68020 code to build shared libraries, but
12476       # adding the `-m68020' flag to GCC prevents building anything better,
12477       # like `-m68040'.
12478       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12479       ;;
12480
12481     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12482       # PIC is the default for these OSes.
12483       ;;
12484
12485     mingw* | pw32* | os2*)
12486       # This hack is so that the source file can tell whether it is being
12487       # built for inclusion in a dll (and should export symbols for example).
12488       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12489       ;;
12490
12491     darwin* | rhapsody*)
12492       # PIC is the default on this platform
12493       # Common symbols not allowed in MH_DYLIB files
12494       lt_prog_compiler_pic_F77='-fno-common'
12495       ;;
12496
12497     msdosdjgpp*)
12498       # Just because we use GCC doesn't mean we suddenly get shared libraries
12499       # on systems that don't support them.
12500       lt_prog_compiler_can_build_shared_F77=no
12501       enable_shared=no
12502       ;;
12503
12504     sysv4*MP*)
12505       if test -d /usr/nec; then
12506         lt_prog_compiler_pic_F77=-Kconform_pic
12507       fi
12508       ;;
12509
12510     hpux*)
12511       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12512       # not for PA HP-UX.
12513       case "$host_cpu" in
12514       hppa*64*|ia64*)
12515         # +Z the default
12516         ;;
12517       *)
12518         lt_prog_compiler_pic_F77='-fPIC'
12519         ;;
12520       esac
12521       ;;
12522
12523     *)
12524       lt_prog_compiler_pic_F77='-fPIC'
12525       ;;
12526     esac
12527   else
12528     # PORTME Check for flag to pass linker flags through the system compiler.
12529     case $host_os in
12530     aix*)
12531       lt_prog_compiler_wl_F77='-Wl,'
12532       if test "$host_cpu" = ia64; then
12533         # AIX 5 now supports IA64 processor
12534         lt_prog_compiler_static_F77='-Bstatic'
12535       else
12536         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12537       fi
12538       ;;
12539
12540     mingw* | pw32* | os2*)
12541       # This hack is so that the source file can tell whether it is being
12542       # built for inclusion in a dll (and should export symbols for example).
12543       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12544       ;;
12545
12546     hpux9* | hpux10* | hpux11*)
12547       lt_prog_compiler_wl_F77='-Wl,'
12548       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12549       # not for PA HP-UX.
12550       case "$host_cpu" in
12551       hppa*64*|ia64*)
12552         # +Z the default
12553         ;;
12554       *)
12555         lt_prog_compiler_pic_F77='+Z'
12556         ;;
12557       esac
12558       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12559       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12560       ;;
12561
12562     irix5* | irix6* | nonstopux*)
12563       lt_prog_compiler_wl_F77='-Wl,'
12564       # PIC (with -KPIC) is the default.
12565       lt_prog_compiler_static_F77='-non_shared'
12566       ;;
12567
12568     newsos6)
12569       lt_prog_compiler_pic_F77='-KPIC'
12570       lt_prog_compiler_static_F77='-Bstatic'
12571       ;;
12572
12573     linux*)
12574       case $CC in
12575       icc|ecc)
12576         lt_prog_compiler_wl_F77='-Wl,'
12577         lt_prog_compiler_pic_F77='-KPIC'
12578         lt_prog_compiler_static_F77='-static'
12579         ;;
12580       ccc)
12581         lt_prog_compiler_wl_F77='-Wl,'
12582         # All Alpha code is PIC.
12583         lt_prog_compiler_static_F77='-non_shared'
12584         ;;
12585       esac
12586       ;;
12587
12588     osf3* | osf4* | osf5*)
12589       lt_prog_compiler_wl_F77='-Wl,'
12590       # All OSF/1 code is PIC.
12591       lt_prog_compiler_static_F77='-non_shared'
12592       ;;
12593
12594     sco3.2v5*)
12595       lt_prog_compiler_pic_F77='-Kpic'
12596       lt_prog_compiler_static_F77='-dn'
12597       ;;
12598
12599     solaris*)
12600       lt_prog_compiler_wl_F77='-Wl,'
12601       lt_prog_compiler_pic_F77='-KPIC'
12602       lt_prog_compiler_static_F77='-Bstatic'
12603       ;;
12604
12605     sunos4*)
12606       lt_prog_compiler_wl_F77='-Qoption ld '
12607       lt_prog_compiler_pic_F77='-PIC'
12608       lt_prog_compiler_static_F77='-Bstatic'
12609       ;;
12610
12611     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12612       lt_prog_compiler_wl_F77='-Wl,'
12613       lt_prog_compiler_pic_F77='-KPIC'
12614       lt_prog_compiler_static_F77='-Bstatic'
12615       ;;
12616
12617     sysv4*MP*)
12618       if test -d /usr/nec ;then
12619         lt_prog_compiler_pic_F77='-Kconform_pic'
12620         lt_prog_compiler_static_F77='-Bstatic'
12621       fi
12622       ;;
12623
12624     uts4*)
12625       lt_prog_compiler_pic_F77='-pic'
12626       lt_prog_compiler_static_F77='-Bstatic'
12627       ;;
12628
12629     *)
12630       lt_prog_compiler_can_build_shared_F77=no
12631       ;;
12632     esac
12633   fi
12634
12635 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12636 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12637
12638 #
12639 # Check to make sure the PIC flag actually works.
12640 #
12641 if test -n "$lt_prog_compiler_pic_F77"; then
12642   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12643 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12644 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12645   echo $ECHO_N "(cached) $ECHO_C" >&6
12646 else
12647   lt_prog_compiler_pic_works_F77=no
12648   ac_outfile=conftest.$ac_objext
12649    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12650    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12651    # Insert the option either (1) after the last *FLAGS variable, or
12652    # (2) before a word containing "conftest.", or (3) at the end.
12653    # Note that $ac_compile itself does not contain backslashes and begins
12654    # with a dollar sign (not a hyphen), so the echo should work correctly.
12655    # The option is referenced via a variable to avoid confusing sed.
12656    lt_compile=`echo "$ac_compile" | $SED \
12657    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12658    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12659    -e 's:$: $lt_compiler_flag:'`
12660    (eval echo "\"\$as_me:12660: $lt_compile\"" >&5)
12661    (eval "$lt_compile" 2>conftest.err)
12662    ac_status=$?
12663    cat conftest.err >&5
12664    echo "$as_me:12664: \$? = $ac_status" >&5
12665    if (exit $ac_status) && test -s "$ac_outfile"; then
12666      # The compiler can only warn and ignore the option if not recognized
12667      # So say no if there are warnings
12668      if test ! -s conftest.err; then
12669        lt_prog_compiler_pic_works_F77=yes
12670      fi
12671    fi
12672    $rm conftest*
12673
12674 fi
12675 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12676 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12677
12678 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12679     case $lt_prog_compiler_pic_F77 in
12680      "" | " "*) ;;
12681      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12682      esac
12683 else
12684     lt_prog_compiler_pic_F77=
12685      lt_prog_compiler_can_build_shared_F77=no
12686 fi
12687
12688 fi
12689 case "$host_os" in
12690   # For platforms which do not support PIC, -DPIC is meaningless:
12691   *djgpp*)
12692     lt_prog_compiler_pic_F77=
12693     ;;
12694   *)
12695     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12696     ;;
12697 esac
12698
12699 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12700 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12701 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12702   echo $ECHO_N "(cached) $ECHO_C" >&6
12703 else
12704   lt_cv_prog_compiler_c_o_F77=no
12705    $rm -r conftest 2>/dev/null
12706    mkdir conftest
12707    cd conftest
12708    mkdir out
12709    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12710
12711    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12712    # that will create temporary files in the current directory regardless of
12713    # the output directory.  Thus, making CWD read-only will cause this test
12714    # to fail, enabling locking or at least warning the user not to do parallel
12715    # builds.
12716    chmod -w .
12717
12718    lt_compiler_flag="-o out/conftest2.$ac_objext"
12719    # Insert the option either (1) after the last *FLAGS variable, or
12720    # (2) before a word containing "conftest.", or (3) at the end.
12721    # Note that $ac_compile itself does not contain backslashes and begins
12722    # with a dollar sign (not a hyphen), so the echo should work correctly.
12723    lt_compile=`echo "$ac_compile" | $SED \
12724    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12725    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12726    -e 's:$: $lt_compiler_flag:'`
12727    (eval echo "\"\$as_me:12727: $lt_compile\"" >&5)
12728    (eval "$lt_compile" 2>out/conftest.err)
12729    ac_status=$?
12730    cat out/conftest.err >&5
12731    echo "$as_me:12731: \$? = $ac_status" >&5
12732    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12733    then
12734      # The compiler can only warn and ignore the option if not recognized
12735      # So say no if there are warnings
12736      if test ! -s out/conftest.err; then
12737        lt_cv_prog_compiler_c_o_F77=yes
12738      fi
12739    fi
12740    chmod u+w .
12741    $rm conftest* out/*
12742    rmdir out
12743    cd ..
12744    rmdir conftest
12745    $rm conftest*
12746
12747 fi
12748 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12749 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12750
12751
12752 hard_links="nottested"
12753 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12754   # do not overwrite the value of need_locks provided by the user
12755   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12756 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12757   hard_links=yes
12758   $rm conftest*
12759   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12760   touch conftest.a
12761   ln conftest.a conftest.b 2>&5 || hard_links=no
12762   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12763   echo "$as_me:$LINENO: result: $hard_links" >&5
12764 echo "${ECHO_T}$hard_links" >&6
12765   if test "$hard_links" = no; then
12766     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12767 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12768     need_locks=warn
12769   fi
12770 else
12771   need_locks=no
12772 fi
12773
12774 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12775 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12776
12777   runpath_var=
12778   allow_undefined_flag_F77=
12779   enable_shared_with_static_runtimes_F77=no
12780   archive_cmds_F77=
12781   archive_expsym_cmds_F77=
12782   old_archive_From_new_cmds_F77=
12783   old_archive_from_expsyms_cmds_F77=
12784   export_dynamic_flag_spec_F77=
12785   whole_archive_flag_spec_F77=
12786   thread_safe_flag_spec_F77=
12787   hardcode_libdir_flag_spec_F77=
12788   hardcode_libdir_flag_spec_ld_F77=
12789   hardcode_libdir_separator_F77=
12790   hardcode_direct_F77=no
12791   hardcode_minus_L_F77=no
12792   hardcode_shlibpath_var_F77=unsupported
12793   link_all_deplibs_F77=unknown
12794   hardcode_automatic_F77=no
12795   module_cmds_F77=
12796   module_expsym_cmds_F77=
12797   always_export_symbols_F77=no
12798   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12799   # include_expsyms should be a list of space-separated symbols to be *always*
12800   # included in the symbol list
12801   include_expsyms_F77=
12802   # exclude_expsyms can be an extended regexp of symbols to exclude
12803   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12804   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12805   # as well as any symbol that contains `d'.
12806   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12807   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12808   # platforms (ab)use it in PIC code, but their linkers get confused if
12809   # the symbol is explicitly referenced.  Since portable code cannot
12810   # rely on this symbol name, it's probably fine to never include it in
12811   # preloaded symbol tables.
12812   extract_expsyms_cmds=
12813
12814   case $host_os in
12815   cygwin* | mingw* | pw32*)
12816     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12817     # When not using gcc, we currently assume that we are using
12818     # Microsoft Visual C++.
12819     if test "$GCC" != yes; then
12820       with_gnu_ld=no
12821     fi
12822     ;;
12823   openbsd*)
12824     with_gnu_ld=no
12825     ;;
12826   esac
12827
12828   ld_shlibs_F77=yes
12829   if test "$with_gnu_ld" = yes; then
12830     # If archive_cmds runs LD, not CC, wlarc should be empty
12831     wlarc='${wl}'
12832
12833     # See if GNU ld supports shared libraries.
12834     case $host_os in
12835     aix3* | aix4* | aix5*)
12836       # On AIX/PPC, the GNU linker is very broken
12837       if test "$host_cpu" != ia64; then
12838         ld_shlibs_F77=no
12839         cat <<EOF 1>&2
12840
12841 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12842 *** to be unable to reliably create shared libraries on AIX.
12843 *** Therefore, libtool is disabling shared libraries support.  If you
12844 *** really care for shared libraries, you may want to modify your PATH
12845 *** so that a non-GNU linker is found, and then restart.
12846
12847 EOF
12848       fi
12849       ;;
12850
12851     amigaos*)
12852       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)'
12853       hardcode_libdir_flag_spec_F77='-L$libdir'
12854       hardcode_minus_L_F77=yes
12855
12856       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12857       # that the semantics of dynamic libraries on AmigaOS, at least up
12858       # to version 4, is to share data among multiple programs linked
12859       # with the same dynamic library.  Since this doesn't match the
12860       # behavior of shared libraries on other platforms, we can't use
12861       # them.
12862       ld_shlibs_F77=no
12863       ;;
12864
12865     beos*)
12866       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12867         allow_undefined_flag_F77=unsupported
12868         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12869         # support --undefined.  This deserves some investigation.  FIXME
12870         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12871       else
12872         ld_shlibs_F77=no
12873       fi
12874       ;;
12875
12876     cygwin* | mingw* | pw32*)
12877       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12878       # as there is no search path for DLLs.
12879       hardcode_libdir_flag_spec_F77='-L$libdir'
12880       allow_undefined_flag_F77=unsupported
12881       always_export_symbols_F77=no
12882       enable_shared_with_static_runtimes_F77=yes
12883       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12884
12885       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12886         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12887         # If the export-symbols file already is a .def file (1st line
12888         # is EXPORTS), use it as is; otherwise, prepend...
12889         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12890           cp $export_symbols $output_objdir/$soname.def;
12891         else
12892           echo EXPORTS > $output_objdir/$soname.def;
12893           cat $export_symbols >> $output_objdir/$soname.def;
12894         fi~
12895         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12896       else
12897         ld_shlibs=no
12898       fi
12899       ;;
12900
12901     netbsd*)
12902       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12903         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12904         wlarc=
12905       else
12906         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12907         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12908       fi
12909       ;;
12910
12911     solaris* | sysv5*)
12912       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12913         ld_shlibs_F77=no
12914         cat <<EOF 1>&2
12915
12916 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12917 *** create shared libraries on Solaris systems.  Therefore, libtool
12918 *** is disabling shared libraries support.  We urge you to upgrade GNU
12919 *** binutils to release 2.9.1 or newer.  Another option is to modify
12920 *** your PATH or compiler configuration so that the native linker is
12921 *** used, and then restart.
12922
12923 EOF
12924       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12925         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12926         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12927       else
12928         ld_shlibs_F77=no
12929       fi
12930       ;;
12931
12932     sunos4*)
12933       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12934       wlarc=
12935       hardcode_direct_F77=yes
12936       hardcode_shlibpath_var_F77=no
12937       ;;
12938
12939     *)
12940       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12941         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12942         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12943       else
12944         ld_shlibs_F77=no
12945       fi
12946       ;;
12947     esac
12948
12949     if test "$ld_shlibs_F77" = yes; then
12950       runpath_var=LD_RUN_PATH
12951       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12952       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12953       # ancient GNU ld didn't support --whole-archive et. al.
12954       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12955         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12956       else
12957         whole_archive_flag_spec_F77=
12958       fi
12959     fi
12960   else
12961     # PORTME fill in a description of your system's linker (not GNU ld)
12962     case $host_os in
12963     aix3*)
12964       allow_undefined_flag_F77=unsupported
12965       always_export_symbols_F77=yes
12966       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'
12967       # Note: this linker hardcodes the directories in LIBPATH if there
12968       # are no directories specified by -L.
12969       hardcode_minus_L_F77=yes
12970       if test "$GCC" = yes && test -z "$link_static_flag"; then
12971         # Neither direct hardcoding nor static linking is supported with a
12972         # broken collect2.
12973         hardcode_direct_F77=unsupported
12974       fi
12975       ;;
12976
12977     aix4* | aix5*)
12978       if test "$host_cpu" = ia64; then
12979         # On IA64, the linker does run time linking by default, so we don't
12980         # have to do anything special.
12981         aix_use_runtimelinking=no
12982         exp_sym_flag='-Bexport'
12983         no_entry_flag=""
12984       else
12985         # If we're using GNU nm, then we don't want the "-C" option.
12986         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12987         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12988           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'
12989         else
12990           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'
12991         fi
12992         aix_use_runtimelinking=no
12993
12994         # Test if we are trying to use run time linking or normal
12995         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12996         # need to do runtime linking.
12997         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12998           for ld_flag in $LDFLAGS; do
12999           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13000             aix_use_runtimelinking=yes
13001             break
13002           fi
13003           done
13004         esac
13005
13006         exp_sym_flag='-bexport'
13007         no_entry_flag='-bnoentry'
13008       fi
13009
13010       # When large executables or shared objects are built, AIX ld can
13011       # have problems creating the table of contents.  If linking a library
13012       # or program results in "error TOC overflow" add -mminimal-toc to
13013       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13014       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13015
13016       archive_cmds_F77=''
13017       hardcode_direct_F77=yes
13018       hardcode_libdir_separator_F77=':'
13019       link_all_deplibs_F77=yes
13020
13021       if test "$GCC" = yes; then
13022         case $host_os in aix4.012|aix4.012.*)
13023         # We only want to do this on AIX 4.2 and lower, the check
13024         # below for broken collect2 doesn't work under 4.3+
13025           collect2name=`${CC} -print-prog-name=collect2`
13026           if test -f "$collect2name" && \
13027            strings "$collect2name" | grep resolve_lib_name >/dev/null
13028           then
13029           # We have reworked collect2
13030           hardcode_direct_F77=yes
13031           else
13032           # We have old collect2
13033           hardcode_direct_F77=unsupported
13034           # It fails to find uninstalled libraries when the uninstalled
13035           # path is not listed in the libpath.  Setting hardcode_minus_L
13036           # to unsupported forces relinking
13037           hardcode_minus_L_F77=yes
13038           hardcode_libdir_flag_spec_F77='-L$libdir'
13039           hardcode_libdir_separator_F77=
13040           fi
13041         esac
13042         shared_flag='-shared'
13043       else
13044         # not using gcc
13045         if test "$host_cpu" = ia64; then
13046         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13047         # chokes on -Wl,-G. The following line is correct:
13048           shared_flag='-G'
13049         else
13050         if test "$aix_use_runtimelinking" = yes; then
13051             shared_flag='${wl}-G'
13052           else
13053             shared_flag='${wl}-bM:SRE'
13054         fi
13055         fi
13056       fi
13057
13058       # It seems that -bexpall does not export symbols beginning with
13059       # underscore (_), so it is better to generate a list of symbols to export.
13060       always_export_symbols_F77=yes
13061       if test "$aix_use_runtimelinking" = yes; then
13062         # Warning - without using the other runtime loading flags (-brtl),
13063         # -berok will link without error, but may produce a broken library.
13064         allow_undefined_flag_F77='-berok'
13065        # Determine the default libpath from the value encoded in an empty executable.
13066        cat >conftest.$ac_ext <<_ACEOF
13067       program main
13068
13069       end
13070 _ACEOF
13071 rm -f conftest.$ac_objext conftest$ac_exeext
13072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13073   (eval $ac_link) 2>&5
13074   ac_status=$?
13075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076   (exit $ac_status); } &&
13077          { ac_try='test -s conftest$ac_exeext'
13078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079   (eval $ac_try) 2>&5
13080   ac_status=$?
13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082   (exit $ac_status); }; }; then
13083
13084 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13085 }'`
13086 # Check for a 64-bit object if we didn't find anything.
13087 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; }
13088 }'`; fi
13089 else
13090   echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13092
13093 fi
13094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13095 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13096
13097        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13098         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"
13099        else
13100         if test "$host_cpu" = ia64; then
13101           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13102           allow_undefined_flag_F77="-z nodefs"
13103           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"
13104         else
13105          # Determine the default libpath from the value encoded in an empty executable.
13106          cat >conftest.$ac_ext <<_ACEOF
13107       program main
13108
13109       end
13110 _ACEOF
13111 rm -f conftest.$ac_objext conftest$ac_exeext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13113   (eval $ac_link) 2>&5
13114   ac_status=$?
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); } &&
13117          { ac_try='test -s conftest$ac_exeext'
13118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119   (eval $ac_try) 2>&5
13120   ac_status=$?
13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122   (exit $ac_status); }; }; then
13123
13124 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13125 }'`
13126 # Check for a 64-bit object if we didn't find anything.
13127 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; }
13128 }'`; fi
13129 else
13130   echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13132
13133 fi
13134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13135 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13136
13137          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13138           # Warning - without using the other run time loading flags,
13139           # -berok will link without error, but may produce a broken library.
13140           no_undefined_flag_F77=' ${wl}-bernotok'
13141           allow_undefined_flag_F77=' ${wl}-berok'
13142           # -bexpall does not export symbols beginning with underscore (_)
13143           always_export_symbols_F77=yes
13144           # Exported symbols can be pulled into shared objects from archives
13145           whole_archive_flag_spec_F77=' '
13146           archive_cmds_need_lc_F77=yes
13147           # This is similar to how AIX traditionally builds it's shared libraries.
13148           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'
13149         fi
13150       fi
13151       ;;
13152
13153     amigaos*)
13154       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)'
13155       hardcode_libdir_flag_spec_F77='-L$libdir'
13156       hardcode_minus_L_F77=yes
13157       # see comment about different semantics on the GNU ld section
13158       ld_shlibs_F77=no
13159       ;;
13160
13161     bsdi4*)
13162       export_dynamic_flag_spec_F77=-rdynamic
13163       ;;
13164
13165     cygwin* | mingw* | pw32*)
13166       # When not using gcc, we currently assume that we are using
13167       # Microsoft Visual C++.
13168       # hardcode_libdir_flag_spec is actually meaningless, as there is
13169       # no search path for DLLs.
13170       hardcode_libdir_flag_spec_F77=' '
13171       allow_undefined_flag_F77=unsupported
13172       # Tell ltmain to make .lib files, not .a files.
13173       libext=lib
13174       # Tell ltmain to make .dll files, not .so files.
13175       shrext=".dll"
13176       # FIXME: Setting linknames here is a bad hack.
13177       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13178       # The linker will automatically build a .lib file if we build a DLL.
13179       old_archive_From_new_cmds_F77='true'
13180       # FIXME: Should let the user specify the lib program.
13181       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13182       fix_srcfile_path='`cygpath -w "$srcfile"`'
13183       enable_shared_with_static_runtimes_F77=yes
13184       ;;
13185
13186     darwin* | rhapsody*)
13187     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13188       archive_cmds_need_lc_F77=no
13189       case "$host_os" in
13190       rhapsody* | darwin1.[012])
13191         allow_undefined_flag_F77='-undefined suppress'
13192         ;;
13193       *) # Darwin 1.3 on
13194         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13195         ;;
13196       esac
13197       # FIXME: Relying on posixy $() will cause problems for
13198       #        cross-compilation, but unfortunately the echo tests do not
13199       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13200       #        `"' quotes if we put them in here... so don't!
13201         lt_int_apple_cc_single_mod=no
13202         output_verbose_link_cmd='echo'
13203         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13204           lt_int_apple_cc_single_mod=yes
13205         fi
13206         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13207           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13208         else
13209         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'
13210       fi
13211       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13212       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13213         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13214           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}'
13215         else
13216           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}'
13217         fi
13218           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}'
13219       hardcode_direct_F77=no
13220       hardcode_automatic_F77=yes
13221       hardcode_shlibpath_var_F77=unsupported
13222       whole_archive_flag_spec_F77='-all_load $convenience'
13223       link_all_deplibs_F77=yes
13224     fi
13225       ;;
13226
13227     dgux*)
13228       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13229       hardcode_libdir_flag_spec_F77='-L$libdir'
13230       hardcode_shlibpath_var_F77=no
13231       ;;
13232
13233     freebsd1*)
13234       ld_shlibs_F77=no
13235       ;;
13236
13237     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13238     # support.  Future versions do this automatically, but an explicit c++rt0.o
13239     # does not break anything, and helps significantly (at the cost of a little
13240     # extra space).
13241     freebsd2.2*)
13242       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13243       hardcode_libdir_flag_spec_F77='-R$libdir'
13244       hardcode_direct_F77=yes
13245       hardcode_shlibpath_var_F77=no
13246       ;;
13247
13248     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13249     freebsd2*)
13250       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13251       hardcode_direct_F77=yes
13252       hardcode_minus_L_F77=yes
13253       hardcode_shlibpath_var_F77=no
13254       ;;
13255
13256     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13257     freebsd*)
13258       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13259       hardcode_libdir_flag_spec_F77='-R$libdir'
13260       hardcode_direct_F77=yes
13261       hardcode_shlibpath_var_F77=no
13262       ;;
13263
13264     hpux9*)
13265       if test "$GCC" = yes; then
13266         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'
13267       else
13268         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'
13269       fi
13270       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13271       hardcode_libdir_separator_F77=:
13272       hardcode_direct_F77=yes
13273
13274       # hardcode_minus_L: Not really in the search PATH,
13275       # but as the default location of the library.
13276       hardcode_minus_L_F77=yes
13277       export_dynamic_flag_spec_F77='${wl}-E'
13278       ;;
13279
13280     hpux10* | hpux11*)
13281       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13282         case "$host_cpu" in
13283         hppa*64*|ia64*)
13284           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13285           ;;
13286         *)
13287           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13288           ;;
13289         esac
13290       else
13291         case "$host_cpu" in
13292         hppa*64*|ia64*)
13293           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13294           ;;
13295         *)
13296           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13297           ;;
13298         esac
13299       fi
13300       if test "$with_gnu_ld" = no; then
13301         case "$host_cpu" in
13302         hppa*64*)
13303           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13304           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13305           hardcode_libdir_separator_F77=:
13306           hardcode_direct_F77=no
13307           hardcode_shlibpath_var_F77=no
13308           ;;
13309         ia64*)
13310           hardcode_libdir_flag_spec_F77='-L$libdir'
13311           hardcode_direct_F77=no
13312           hardcode_shlibpath_var_F77=no
13313
13314           # hardcode_minus_L: Not really in the search PATH,
13315           # but as the default location of the library.
13316           hardcode_minus_L_F77=yes
13317           ;;
13318         *)
13319           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13320           hardcode_libdir_separator_F77=:
13321           hardcode_direct_F77=yes
13322           export_dynamic_flag_spec_F77='${wl}-E'
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         esac
13329       fi
13330       ;;
13331
13332     irix5* | irix6* | nonstopux*)
13333       if test "$GCC" = yes; then
13334         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'
13335       else
13336         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'
13337         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13338       fi
13339       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13340       hardcode_libdir_separator_F77=:
13341       link_all_deplibs_F77=yes
13342       ;;
13343
13344     netbsd*)
13345       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13346         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13347       else
13348         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13349       fi
13350       hardcode_libdir_flag_spec_F77='-R$libdir'
13351       hardcode_direct_F77=yes
13352       hardcode_shlibpath_var_F77=no
13353       ;;
13354
13355     newsos6)
13356       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13357       hardcode_direct_F77=yes
13358       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13359       hardcode_libdir_separator_F77=:
13360       hardcode_shlibpath_var_F77=no
13361       ;;
13362
13363     openbsd*)
13364       hardcode_direct_F77=yes
13365       hardcode_shlibpath_var_F77=no
13366       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13367         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13368         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13369         export_dynamic_flag_spec_F77='${wl}-E'
13370       else
13371        case $host_os in
13372          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13373            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13374            hardcode_libdir_flag_spec_F77='-R$libdir'
13375            ;;
13376          *)
13377            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13378            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13379            ;;
13380        esac
13381       fi
13382       ;;
13383
13384     os2*)
13385       hardcode_libdir_flag_spec_F77='-L$libdir'
13386       hardcode_minus_L_F77=yes
13387       allow_undefined_flag_F77=unsupported
13388       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'
13389       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13390       ;;
13391
13392     osf3*)
13393       if test "$GCC" = yes; then
13394         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13395         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'
13396       else
13397         allow_undefined_flag_F77=' -expect_unresolved \*'
13398         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'
13399       fi
13400       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13401       hardcode_libdir_separator_F77=:
13402       ;;
13403
13404     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13405       if test "$GCC" = yes; then
13406         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13407         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13408         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13409       else
13410         allow_undefined_flag_F77=' -expect_unresolved \*'
13411         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'
13412         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~
13413         $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'
13414
13415         # Both c and cxx compiler support -rpath directly
13416         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13417       fi
13418       hardcode_libdir_separator_F77=:
13419       ;;
13420
13421     sco3.2v5*)
13422       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13423       hardcode_shlibpath_var_F77=no
13424       export_dynamic_flag_spec_F77='${wl}-Bexport'
13425       runpath_var=LD_RUN_PATH
13426       hardcode_runpath_var=yes
13427       ;;
13428
13429     solaris*)
13430       no_undefined_flag_F77=' -z text'
13431       if test "$GCC" = yes; then
13432         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13433         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13434           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13435       else
13436         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13437         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13438         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13439       fi
13440       hardcode_libdir_flag_spec_F77='-R$libdir'
13441       hardcode_shlibpath_var_F77=no
13442       case $host_os in
13443       solaris2.[0-5] | solaris2.[0-5].*) ;;
13444       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13445         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13446       esac
13447       link_all_deplibs_F77=yes
13448       ;;
13449
13450     sunos4*)
13451       if test "x$host_vendor" = xsequent; then
13452         # Use $CC to link under sequent, because it throws in some extra .o
13453         # files that make .init and .fini sections work.
13454         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13455       else
13456         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13457       fi
13458       hardcode_libdir_flag_spec_F77='-L$libdir'
13459       hardcode_direct_F77=yes
13460       hardcode_minus_L_F77=yes
13461       hardcode_shlibpath_var_F77=no
13462       ;;
13463
13464     sysv4)
13465       case $host_vendor in
13466         sni)
13467           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13468           hardcode_direct_F77=yes # is this really true???
13469         ;;
13470         siemens)
13471           ## LD is ld it makes a PLAMLIB
13472           ## CC just makes a GrossModule.
13473           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13474           reload_cmds_F77='$CC -r -o $output$reload_objs'
13475           hardcode_direct_F77=no
13476         ;;
13477         motorola)
13478           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13479           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13480         ;;
13481       esac
13482       runpath_var='LD_RUN_PATH'
13483       hardcode_shlibpath_var_F77=no
13484       ;;
13485
13486     sysv4.3*)
13487       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13488       hardcode_shlibpath_var_F77=no
13489       export_dynamic_flag_spec_F77='-Bexport'
13490       ;;
13491
13492     sysv4*MP*)
13493       if test -d /usr/nec; then
13494         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13495         hardcode_shlibpath_var_F77=no
13496         runpath_var=LD_RUN_PATH
13497         hardcode_runpath_var=yes
13498         ld_shlibs_F77=yes
13499       fi
13500       ;;
13501
13502     sysv4.2uw2*)
13503       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13504       hardcode_direct_F77=yes
13505       hardcode_minus_L_F77=no
13506       hardcode_shlibpath_var_F77=no
13507       hardcode_runpath_var=yes
13508       runpath_var=LD_RUN_PATH
13509       ;;
13510
13511    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13512       no_undefined_flag_F77='${wl}-z ${wl}text'
13513       if test "$GCC" = yes; then
13514         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13515       else
13516         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13517       fi
13518       runpath_var='LD_RUN_PATH'
13519       hardcode_shlibpath_var_F77=no
13520       ;;
13521
13522     sysv5*)
13523       no_undefined_flag_F77=' -z text'
13524       # $CC -shared without GNU ld will not create a library from C++
13525       # object files and a static libstdc++, better avoid it by now
13526       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13527       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13528                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13529       hardcode_libdir_flag_spec_F77=
13530       hardcode_shlibpath_var_F77=no
13531       runpath_var='LD_RUN_PATH'
13532       ;;
13533
13534     uts4*)
13535       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13536       hardcode_libdir_flag_spec_F77='-L$libdir'
13537       hardcode_shlibpath_var_F77=no
13538       ;;
13539
13540     *)
13541       ld_shlibs_F77=no
13542       ;;
13543     esac
13544   fi
13545
13546 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13547 echo "${ECHO_T}$ld_shlibs_F77" >&6
13548 test "$ld_shlibs_F77" = no && can_build_shared=no
13549
13550 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13551 if test "$GCC" = yes; then
13552   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13553 fi
13554
13555 #
13556 # Do we need to explicitly link libc?
13557 #
13558 case "x$archive_cmds_need_lc_F77" in
13559 x|xyes)
13560   # Assume -lc should be added
13561   archive_cmds_need_lc_F77=yes
13562
13563   if test "$enable_shared" = yes && test "$GCC" = yes; then
13564     case $archive_cmds_F77 in
13565     *'~'*)
13566       # FIXME: we may have to deal with multi-command sequences.
13567       ;;
13568     '$CC '*)
13569       # Test whether the compiler implicitly links with -lc since on some
13570       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13571       # to ld, don't add -lc before -lgcc.
13572       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13573 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13574       $rm conftest*
13575       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13576
13577       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13578   (eval $ac_compile) 2>&5
13579   ac_status=$?
13580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581   (exit $ac_status); } 2>conftest.err; then
13582         soname=conftest
13583         lib=conftest
13584         libobjs=conftest.$ac_objext
13585         deplibs=
13586         wl=$lt_prog_compiler_wl_F77
13587         compiler_flags=-v
13588         linker_flags=-v
13589         verstring=
13590         output_objdir=.
13591         libname=conftest
13592         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13593         allow_undefined_flag_F77=
13594         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13595   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13596   ac_status=$?
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); }
13599         then
13600           archive_cmds_need_lc_F77=no
13601         else
13602           archive_cmds_need_lc_F77=yes
13603         fi
13604         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13605       else
13606         cat conftest.err 1>&5
13607       fi
13608       $rm conftest*
13609       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13610 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13611       ;;
13612     esac
13613   fi
13614   ;;
13615 esac
13616
13617 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13618 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13619 hardcode_action_F77=
13620 if test -n "$hardcode_libdir_flag_spec_F77" || \
13621    test -n "$runpath_var F77" || \
13622    test "X$hardcode_automatic_F77"="Xyes" ; then
13623
13624   # We can hardcode non-existant directories.
13625   if test "$hardcode_direct_F77" != no &&
13626      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13627      # have to relink, otherwise we might link with an installed library
13628      # when we should be linking with a yet-to-be-installed one
13629      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13630      test "$hardcode_minus_L_F77" != no; then
13631     # Linking always hardcodes the temporary library directory.
13632     hardcode_action_F77=relink
13633   else
13634     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13635     hardcode_action_F77=immediate
13636   fi
13637 else
13638   # We cannot hardcode anything, or else we can only hardcode existing
13639   # directories.
13640   hardcode_action_F77=unsupported
13641 fi
13642 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13643 echo "${ECHO_T}$hardcode_action_F77" >&6
13644
13645 if test "$hardcode_action_F77" = relink; then
13646   # Fast installation is not supported
13647   enable_fast_install=no
13648 elif test "$shlibpath_overrides_runpath" = yes ||
13649      test "$enable_shared" = no; then
13650   # Fast installation is not necessary
13651   enable_fast_install=needless
13652 fi
13653
13654 striplib=
13655 old_striplib=
13656 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13657 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13658 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13659   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13660   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13661   echo "$as_me:$LINENO: result: yes" >&5
13662 echo "${ECHO_T}yes" >&6
13663 else
13664 # FIXME - insert some real tests, host_os isn't really good enough
13665   case $host_os in
13666    darwin*)
13667        if test -n "$STRIP" ; then
13668          striplib="$STRIP -x"
13669          echo "$as_me:$LINENO: result: yes" >&5
13670 echo "${ECHO_T}yes" >&6
13671        else
13672   echo "$as_me:$LINENO: result: no" >&5
13673 echo "${ECHO_T}no" >&6
13674 fi
13675        ;;
13676    *)
13677   echo "$as_me:$LINENO: result: no" >&5
13678 echo "${ECHO_T}no" >&6
13679     ;;
13680   esac
13681 fi
13682
13683 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13684 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13685 library_names_spec=
13686 libname_spec='lib$name'
13687 soname_spec=
13688 shrext=".so"
13689 postinstall_cmds=
13690 postuninstall_cmds=
13691 finish_cmds=
13692 finish_eval=
13693 shlibpath_var=
13694 shlibpath_overrides_runpath=unknown
13695 version_type=none
13696 dynamic_linker="$host_os ld.so"
13697 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13698 if test "$GCC" = yes; then
13699   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13700   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13701     # if the path contains ";" then we assume it to be the separator
13702     # otherwise default to the standard path separator (i.e. ":") - it is
13703     # assumed that no part of a normal pathname contains ";" but that should
13704     # okay in the real world where ";" in dirpaths is itself problematic.
13705     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13706   else
13707     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13708   fi
13709 else
13710   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13711 fi
13712 need_lib_prefix=unknown
13713 hardcode_into_libs=no
13714
13715 # when you set need_version to no, make sure it does not cause -set_version
13716 # flags to be left without arguments
13717 need_version=unknown
13718
13719 case $host_os in
13720 aix3*)
13721   version_type=linux
13722   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13723   shlibpath_var=LIBPATH
13724
13725   # AIX 3 has no versioning support, so we append a major version to the name.
13726   soname_spec='${libname}${release}${shared_ext}$major'
13727   ;;
13728
13729 aix4* | aix5*)
13730   version_type=linux
13731   need_lib_prefix=no
13732   need_version=no
13733   hardcode_into_libs=yes
13734   if test "$host_cpu" = ia64; then
13735     # AIX 5 supports IA64
13736     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13737     shlibpath_var=LD_LIBRARY_PATH
13738   else
13739     # With GCC up to 2.95.x, collect2 would create an import file
13740     # for dependence libraries.  The import file would start with
13741     # the line `#! .'.  This would cause the generated library to
13742     # depend on `.', always an invalid library.  This was fixed in
13743     # development snapshots of GCC prior to 3.0.
13744     case $host_os in
13745       aix4 | aix4.[01] | aix4.[01].*)
13746       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13747            echo ' yes '
13748            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13749         :
13750       else
13751         can_build_shared=no
13752       fi
13753       ;;
13754     esac
13755     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13756     # soname into executable. Probably we can add versioning support to
13757     # collect2, so additional links can be useful in future.
13758     if test "$aix_use_runtimelinking" = yes; then
13759       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13760       # instead of lib<name>.a to let people know that these are not
13761       # typical AIX shared libraries.
13762       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13763     else
13764       # We preserve .a as extension for shared libraries through AIX4.2
13765       # and later when we are not doing run time linking.
13766       library_names_spec='${libname}${release}.a $libname.a'
13767       soname_spec='${libname}${release}${shared_ext}$major'
13768     fi
13769     shlibpath_var=LIBPATH
13770   fi
13771   ;;
13772
13773 amigaos*)
13774   library_names_spec='$libname.ixlibrary $libname.a'
13775   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13776   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'
13777   ;;
13778
13779 beos*)
13780   library_names_spec='${libname}${shared_ext}'
13781   dynamic_linker="$host_os ld.so"
13782   shlibpath_var=LIBRARY_PATH
13783   ;;
13784
13785 bsdi4*)
13786   version_type=linux
13787   need_version=no
13788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13789   soname_spec='${libname}${release}${shared_ext}$major'
13790   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13791   shlibpath_var=LD_LIBRARY_PATH
13792   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13793   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13794   # the default ld.so.conf also contains /usr/contrib/lib and
13795   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13796   # libtool to hard-code these into programs
13797   ;;
13798
13799 cygwin* | mingw* | pw32*)
13800   version_type=windows
13801   shrext=".dll"
13802   need_version=no
13803   need_lib_prefix=no
13804
13805   case $GCC,$host_os in
13806   yes,cygwin* | yes,mingw* | yes,pw32*)
13807     library_names_spec='$libname.dll.a'
13808     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13809     postinstall_cmds='base_file=`basename \${file}`~
13810       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13811       dldir=$destdir/`dirname \$dlpath`~
13812       test -d \$dldir || mkdir -p \$dldir~
13813       $install_prog $dir/$dlname \$dldir/$dlname'
13814     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13815       dlpath=$dir/\$dldll~
13816        $rm \$dlpath'
13817     shlibpath_overrides_runpath=yes
13818
13819     case $host_os in
13820     cygwin*)
13821       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13822       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13823       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13824       ;;
13825     mingw*)
13826       # MinGW DLLs use traditional 'lib' prefix
13827       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13828       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13829       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13830         # It is most probably a Windows format PATH printed by
13831         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13832         # path with ; separators, and with drive letters. We can handle the
13833         # drive letters (cygwin fileutils understands them), so leave them,
13834         # especially as we might pass files found there to a mingw objdump,
13835         # which wouldn't understand a cygwinified path. Ahh.
13836         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13837       else
13838         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13839       fi
13840       ;;
13841     pw32*)
13842       # pw32 DLLs use 'pw' prefix rather than 'lib'
13843       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13844       ;;
13845     esac
13846     ;;
13847
13848   *)
13849     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13850     ;;
13851   esac
13852   dynamic_linker='Win32 ld.exe'
13853   # FIXME: first we should search . and the directory the executable is in
13854   shlibpath_var=PATH
13855   ;;
13856
13857 darwin* | rhapsody*)
13858   dynamic_linker="$host_os dyld"
13859   version_type=darwin
13860   need_lib_prefix=no
13861   need_version=no
13862   # FIXME: Relying on posixy $() will cause problems for
13863   #        cross-compilation, but unfortunately the echo tests do not
13864   #        yet detect zsh echo's removal of \ escapes.
13865   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13866   soname_spec='${libname}${release}${major}$shared_ext'
13867   shlibpath_overrides_runpath=yes
13868   shlibpath_var=DYLD_LIBRARY_PATH
13869   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13870   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13871   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13872   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"`
13873   fi
13874   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13875   ;;
13876
13877 dgux*)
13878   version_type=linux
13879   need_lib_prefix=no
13880   need_version=no
13881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13882   soname_spec='${libname}${release}${shared_ext}$major'
13883   shlibpath_var=LD_LIBRARY_PATH
13884   ;;
13885
13886 freebsd1*)
13887   dynamic_linker=no
13888   ;;
13889
13890 freebsd*)
13891   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13892   version_type=freebsd-$objformat
13893   case $version_type in
13894     freebsd-elf*)
13895       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13896       need_version=no
13897       need_lib_prefix=no
13898       ;;
13899     freebsd-*)
13900       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13901       need_version=yes
13902       ;;
13903   esac
13904   shlibpath_var=LD_LIBRARY_PATH
13905   case $host_os in
13906   freebsd2*)
13907     shlibpath_overrides_runpath=yes
13908     ;;
13909   freebsd3.01* | freebsdelf3.01*)
13910     shlibpath_overrides_runpath=yes
13911     hardcode_into_libs=yes
13912     ;;
13913   *) # from 3.2 on
13914     shlibpath_overrides_runpath=no
13915     hardcode_into_libs=yes
13916     ;;
13917   esac
13918   ;;
13919
13920 gnu*)
13921   version_type=linux
13922   need_lib_prefix=no
13923   need_version=no
13924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13925   soname_spec='${libname}${release}${shared_ext}$major'
13926   shlibpath_var=LD_LIBRARY_PATH
13927   hardcode_into_libs=yes
13928   ;;
13929
13930 hpux9* | hpux10* | hpux11*)
13931   # Give a soname corresponding to the major version so that dld.sl refuses to
13932   # link against other versions.
13933   version_type=sunos
13934   need_lib_prefix=no
13935   need_version=no
13936   case "$host_cpu" in
13937   ia64*)
13938     shrext='.so'
13939     hardcode_into_libs=yes
13940     dynamic_linker="$host_os dld.so"
13941     shlibpath_var=LD_LIBRARY_PATH
13942     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13943     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13944     soname_spec='${libname}${release}${shared_ext}$major'
13945     if test "X$HPUX_IA64_MODE" = X32; then
13946       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13947     else
13948       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13949     fi
13950     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13951     ;;
13952    hppa*64*)
13953      shrext='.sl'
13954      hardcode_into_libs=yes
13955      dynamic_linker="$host_os dld.sl"
13956      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13957      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13958      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13959      soname_spec='${libname}${release}${shared_ext}$major'
13960      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13961      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13962      ;;
13963    *)
13964     shrext='.sl'
13965     dynamic_linker="$host_os dld.sl"
13966     shlibpath_var=SHLIB_PATH
13967     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
13971   esac
13972   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13973   postinstall_cmds='chmod 555 $lib'
13974   ;;
13975
13976 irix5* | irix6* | nonstopux*)
13977   case $host_os in
13978     nonstopux*) version_type=nonstopux ;;
13979     *)
13980         if test "$lt_cv_prog_gnu_ld" = yes; then
13981                 version_type=linux
13982         else
13983                 version_type=irix
13984         fi ;;
13985   esac
13986   need_lib_prefix=no
13987   need_version=no
13988   soname_spec='${libname}${release}${shared_ext}$major'
13989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13990   case $host_os in
13991   irix5* | nonstopux*)
13992     libsuff= shlibsuff=
13993     ;;
13994   *)
13995     case $LD in # libtool.m4 will add one of these switches to LD
13996     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13997       libsuff= shlibsuff= libmagic=32-bit;;
13998     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13999       libsuff=32 shlibsuff=N32 libmagic=N32;;
14000     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14001       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14002     *) libsuff= shlibsuff= libmagic=never-match;;
14003     esac
14004     ;;
14005   esac
14006   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14007   shlibpath_overrides_runpath=no
14008   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14009   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14010   hardcode_into_libs=yes
14011   ;;
14012
14013 # No shared lib support for Linux oldld, aout, or coff.
14014 linux*oldld* | linux*aout* | linux*coff*)
14015   dynamic_linker=no
14016   ;;
14017
14018 # This must be Linux ELF.
14019 linux*)
14020   version_type=linux
14021   need_lib_prefix=no
14022   need_version=no
14023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14024   soname_spec='${libname}${release}${shared_ext}$major'
14025   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14026   shlibpath_var=LD_LIBRARY_PATH
14027   shlibpath_overrides_runpath=no
14028   # This implies no fast_install, which is unacceptable.
14029   # Some rework will be needed to allow for fast_install
14030   # before this can be enabled.
14031   hardcode_into_libs=yes
14032
14033   # We used to test for /lib/ld.so.1 and disable shared libraries on
14034   # powerpc, because MkLinux only supported shared libraries with the
14035   # GNU dynamic linker.  Since this was broken with cross compilers,
14036   # most powerpc-linux boxes support dynamic linking these days and
14037   # people can always --disable-shared, the test was removed, and we
14038   # assume the GNU/Linux dynamic linker is in use.
14039   dynamic_linker='GNU/Linux ld.so'
14040   ;;
14041
14042 netbsd*)
14043   version_type=sunos
14044   need_lib_prefix=no
14045   need_version=no
14046   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14048     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14049     dynamic_linker='NetBSD (a.out) ld.so'
14050   else
14051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14052     soname_spec='${libname}${release}${shared_ext}$major'
14053     dynamic_linker='NetBSD ld.elf_so'
14054   fi
14055   shlibpath_var=LD_LIBRARY_PATH
14056   shlibpath_overrides_runpath=yes
14057   hardcode_into_libs=yes
14058   ;;
14059
14060 newsos6)
14061   version_type=linux
14062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14063   shlibpath_var=LD_LIBRARY_PATH
14064   shlibpath_overrides_runpath=yes
14065   ;;
14066
14067 nto-qnx)
14068   version_type=linux
14069   need_lib_prefix=no
14070   need_version=no
14071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14072   soname_spec='${libname}${release}${shared_ext}$major'
14073   shlibpath_var=LD_LIBRARY_PATH
14074   shlibpath_overrides_runpath=yes
14075   ;;
14076
14077 openbsd*)
14078   version_type=sunos
14079   need_lib_prefix=no
14080   need_version=no
14081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14082   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14083   shlibpath_var=LD_LIBRARY_PATH
14084   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14085     case $host_os in
14086       openbsd2.[89] | openbsd2.[89].*)
14087         shlibpath_overrides_runpath=no
14088         ;;
14089       *)
14090         shlibpath_overrides_runpath=yes
14091         ;;
14092       esac
14093   else
14094     shlibpath_overrides_runpath=yes
14095   fi
14096   ;;
14097
14098 os2*)
14099   libname_spec='$name'
14100   shrext=".dll"
14101   need_lib_prefix=no
14102   library_names_spec='$libname${shared_ext} $libname.a'
14103   dynamic_linker='OS/2 ld.exe'
14104   shlibpath_var=LIBPATH
14105   ;;
14106
14107 osf3* | osf4* | osf5*)
14108   version_type=osf
14109   need_lib_prefix=no
14110   need_version=no
14111   soname_spec='${libname}${release}${shared_ext}$major'
14112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14113   shlibpath_var=LD_LIBRARY_PATH
14114   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14115   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14116   ;;
14117
14118 sco3.2v5*)
14119   version_type=osf
14120   soname_spec='${libname}${release}${shared_ext}$major'
14121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14122   shlibpath_var=LD_LIBRARY_PATH
14123   ;;
14124
14125 solaris*)
14126   version_type=linux
14127   need_lib_prefix=no
14128   need_version=no
14129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14130   soname_spec='${libname}${release}${shared_ext}$major'
14131   shlibpath_var=LD_LIBRARY_PATH
14132   shlibpath_overrides_runpath=yes
14133   hardcode_into_libs=yes
14134   # ldd complains unless libraries are executable
14135   postinstall_cmds='chmod +x $lib'
14136   ;;
14137
14138 sunos4*)
14139   version_type=sunos
14140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14141   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14142   shlibpath_var=LD_LIBRARY_PATH
14143   shlibpath_overrides_runpath=yes
14144   if test "$with_gnu_ld" = yes; then
14145     need_lib_prefix=no
14146   fi
14147   need_version=yes
14148   ;;
14149
14150 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14151   version_type=linux
14152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14153   soname_spec='${libname}${release}${shared_ext}$major'
14154   shlibpath_var=LD_LIBRARY_PATH
14155   case $host_vendor in
14156     sni)
14157       shlibpath_overrides_runpath=no
14158       need_lib_prefix=no
14159       export_dynamic_flag_spec='${wl}-Blargedynsym'
14160       runpath_var=LD_RUN_PATH
14161       ;;
14162     siemens)
14163       need_lib_prefix=no
14164       ;;
14165     motorola)
14166       need_lib_prefix=no
14167       need_version=no
14168       shlibpath_overrides_runpath=no
14169       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14170       ;;
14171   esac
14172   ;;
14173
14174 sysv4*MP*)
14175   if test -d /usr/nec ;then
14176     version_type=linux
14177     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14178     soname_spec='$libname${shared_ext}.$major'
14179     shlibpath_var=LD_LIBRARY_PATH
14180   fi
14181   ;;
14182
14183 uts4*)
14184   version_type=linux
14185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14186   soname_spec='${libname}${release}${shared_ext}$major'
14187   shlibpath_var=LD_LIBRARY_PATH
14188   ;;
14189
14190 *)
14191   dynamic_linker=no
14192   ;;
14193 esac
14194 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14195 echo "${ECHO_T}$dynamic_linker" >&6
14196 test "$dynamic_linker" = no && can_build_shared=no
14197
14198
14199 # The else clause should only fire when bootstrapping the
14200 # libtool distribution, otherwise you forgot to ship ltmain.sh
14201 # with your package, and you will get complaints that there are
14202 # no rules to generate ltmain.sh.
14203 if test -f "$ltmain"; then
14204   # See if we are running on zsh, and set the options which allow our commands through
14205   # without removal of \ escapes.
14206   if test -n "${ZSH_VERSION+set}" ; then
14207     setopt NO_GLOB_SUBST
14208   fi
14209   # Now quote all the things that may contain metacharacters while being
14210   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14211   # variables and quote the copies for generation of the libtool script.
14212   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14213     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14214     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14215     deplibs_check_method reload_flag reload_cmds need_locks \
14216     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14217     lt_cv_sys_global_symbol_to_c_name_address \
14218     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14219     old_postinstall_cmds old_postuninstall_cmds \
14220     compiler_F77 \
14221     CC_F77 \
14222     LD_F77 \
14223     lt_prog_compiler_wl_F77 \
14224     lt_prog_compiler_pic_F77 \
14225     lt_prog_compiler_static_F77 \
14226     lt_prog_compiler_no_builtin_flag_F77 \
14227     export_dynamic_flag_spec_F77 \
14228     thread_safe_flag_spec_F77 \
14229     whole_archive_flag_spec_F77 \
14230     enable_shared_with_static_runtimes_F77 \
14231     old_archive_cmds_F77 \
14232     old_archive_from_new_cmds_F77 \
14233     predep_objects_F77 \
14234     postdep_objects_F77 \
14235     predeps_F77 \
14236     postdeps_F77 \
14237     compiler_lib_search_path_F77 \
14238     archive_cmds_F77 \
14239     archive_expsym_cmds_F77 \
14240     postinstall_cmds_F77 \
14241     postuninstall_cmds_F77 \
14242     old_archive_from_expsyms_cmds_F77 \
14243     allow_undefined_flag_F77 \
14244     no_undefined_flag_F77 \
14245     export_symbols_cmds_F77 \
14246     hardcode_libdir_flag_spec_F77 \
14247     hardcode_libdir_flag_spec_ld_F77 \
14248     hardcode_libdir_separator_F77 \
14249     hardcode_automatic_F77 \
14250     module_cmds_F77 \
14251     module_expsym_cmds_F77 \
14252     lt_cv_prog_compiler_c_o_F77 \
14253     exclude_expsyms_F77 \
14254     include_expsyms_F77; do
14255
14256     case $var in
14257     old_archive_cmds_F77 | \
14258     old_archive_from_new_cmds_F77 | \
14259     archive_cmds_F77 | \
14260     archive_expsym_cmds_F77 | \
14261     module_cmds_F77 | \
14262     module_expsym_cmds_F77 | \
14263     old_archive_from_expsyms_cmds_F77 | \
14264     export_symbols_cmds_F77 | \
14265     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14266     postinstall_cmds | postuninstall_cmds | \
14267     old_postinstall_cmds | old_postuninstall_cmds | \
14268     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14269       # Double-quote double-evaled strings.
14270       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14271       ;;
14272     *)
14273       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14274       ;;
14275     esac
14276   done
14277
14278   case $lt_echo in
14279   *'\$0 --fallback-echo"')
14280     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14281     ;;
14282   esac
14283
14284 cfgfile="$ofile"
14285
14286   cat <<__EOF__ >> "$cfgfile"
14287 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14288
14289 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14290
14291 # Shell to use when invoking shell scripts.
14292 SHELL=$lt_SHELL
14293
14294 # Whether or not to build shared libraries.
14295 build_libtool_libs=$enable_shared
14296
14297 # Whether or not to build static libraries.
14298 build_old_libs=$enable_static
14299
14300 # Whether or not to add -lc for building shared libraries.
14301 build_libtool_need_lc=$archive_cmds_need_lc_F77
14302
14303 # Whether or not to disallow shared libs when runtime libs are static
14304 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14305
14306 # Whether or not to optimize for fast installation.
14307 fast_install=$enable_fast_install
14308
14309 # The host system.
14310 host_alias=$host_alias
14311 host=$host
14312
14313 # An echo program that does not interpret backslashes.
14314 echo=$lt_echo
14315
14316 # The archiver.
14317 AR=$lt_AR
14318 AR_FLAGS=$lt_AR_FLAGS
14319
14320 # A C compiler.
14321 LTCC=$lt_LTCC
14322
14323 # A language-specific compiler.
14324 CC=$lt_compiler_F77
14325
14326 # Is the compiler the GNU C compiler?
14327 with_gcc=$GCC_F77
14328
14329 # An ERE matcher.
14330 EGREP=$lt_EGREP
14331
14332 # The linker used to build libraries.
14333 LD=$lt_LD_F77
14334
14335 # Whether we need hard or soft links.
14336 LN_S=$lt_LN_S
14337
14338 # A BSD-compatible nm program.
14339 NM=$lt_NM
14340
14341 # A symbol stripping program
14342 STRIP=$STRIP
14343
14344 # Used to examine libraries when file_magic_cmd begins "file"
14345 MAGIC_CMD=$MAGIC_CMD
14346
14347 # Used on cygwin: DLL creation program.
14348 DLLTOOL="$DLLTOOL"
14349
14350 # Used on cygwin: object dumper.
14351 OBJDUMP="$OBJDUMP"
14352
14353 # Used on cygwin: assembler.
14354 AS="$AS"
14355
14356 # The name of the directory that contains temporary libtool files.
14357 objdir=$objdir
14358
14359 # How to create reloadable object files.
14360 reload_flag=$lt_reload_flag
14361 reload_cmds=$lt_reload_cmds
14362
14363 # How to pass a linker flag through the compiler.
14364 wl=$lt_lt_prog_compiler_wl_F77
14365
14366 # Object file suffix (normally "o").
14367 objext="$ac_objext"
14368
14369 # Old archive suffix (normally "a").
14370 libext="$libext"
14371
14372 # Shared library suffix (normally ".so").
14373 shrext='$shrext'
14374
14375 # Executable file suffix (normally "").
14376 exeext="$exeext"
14377
14378 # Additional compiler flags for building library objects.
14379 pic_flag=$lt_lt_prog_compiler_pic_F77
14380 pic_mode=$pic_mode
14381
14382 # What is the maximum length of a command?
14383 max_cmd_len=$lt_cv_sys_max_cmd_len
14384
14385 # Does compiler simultaneously support -c and -o options?
14386 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14387
14388 # Must we lock files when doing compilation ?
14389 need_locks=$lt_need_locks
14390
14391 # Do we need the lib prefix for modules?
14392 need_lib_prefix=$need_lib_prefix
14393
14394 # Do we need a version for libraries?
14395 need_version=$need_version
14396
14397 # Whether dlopen is supported.
14398 dlopen_support=$enable_dlopen
14399
14400 # Whether dlopen of programs is supported.
14401 dlopen_self=$enable_dlopen_self
14402
14403 # Whether dlopen of statically linked programs is supported.
14404 dlopen_self_static=$enable_dlopen_self_static
14405
14406 # Compiler flag to prevent dynamic linking.
14407 link_static_flag=$lt_lt_prog_compiler_static_F77
14408
14409 # Compiler flag to turn off builtin functions.
14410 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14411
14412 # Compiler flag to allow reflexive dlopens.
14413 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14414
14415 # Compiler flag to generate shared objects directly from archives.
14416 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14417
14418 # Compiler flag to generate thread-safe objects.
14419 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14420
14421 # Library versioning type.
14422 version_type=$version_type
14423
14424 # Format of library name prefix.
14425 libname_spec=$lt_libname_spec
14426
14427 # List of archive names.  First name is the real one, the rest are links.
14428 # The last name is the one that the linker finds with -lNAME.
14429 library_names_spec=$lt_library_names_spec
14430
14431 # The coded name of the library, if different from the real name.
14432 soname_spec=$lt_soname_spec
14433
14434 # Commands used to build and install an old-style archive.
14435 RANLIB=$lt_RANLIB
14436 old_archive_cmds=$lt_old_archive_cmds_F77
14437 old_postinstall_cmds=$lt_old_postinstall_cmds
14438 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14439
14440 # Create an old-style archive from a shared archive.
14441 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14442
14443 # Create a temporary old-style archive to link instead of a shared archive.
14444 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14445
14446 # Commands used to build and install a shared archive.
14447 archive_cmds=$lt_archive_cmds_F77
14448 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14449 postinstall_cmds=$lt_postinstall_cmds
14450 postuninstall_cmds=$lt_postuninstall_cmds
14451
14452 # Commands used to build a loadable module (assumed same as above if empty)
14453 module_cmds=$lt_module_cmds_F77
14454 module_expsym_cmds=$lt_module_expsym_cmds_F77
14455
14456 # Commands to strip libraries.
14457 old_striplib=$lt_old_striplib
14458 striplib=$lt_striplib
14459
14460 # Dependencies to place before the objects being linked to create a
14461 # shared library.
14462 predep_objects=$lt_predep_objects_F77
14463
14464 # Dependencies to place after the objects being linked to create a
14465 # shared library.
14466 postdep_objects=$lt_postdep_objects_F77
14467
14468 # Dependencies to place before the objects being linked to create a
14469 # shared library.
14470 predeps=$lt_predeps_F77
14471
14472 # Dependencies to place after the objects being linked to create a
14473 # shared library.
14474 postdeps=$lt_postdeps_F77
14475
14476 # The library search path used internally by the compiler when linking
14477 # a shared library.
14478 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14479
14480 # Method to check whether dependent libraries are shared objects.
14481 deplibs_check_method=$lt_deplibs_check_method
14482
14483 # Command to use when deplibs_check_method == file_magic.
14484 file_magic_cmd=$lt_file_magic_cmd
14485
14486 # Flag that allows shared libraries with undefined symbols to be built.
14487 allow_undefined_flag=$lt_allow_undefined_flag_F77
14488
14489 # Flag that forces no undefined symbols.
14490 no_undefined_flag=$lt_no_undefined_flag_F77
14491
14492 # Commands used to finish a libtool library installation in a directory.
14493 finish_cmds=$lt_finish_cmds
14494
14495 # Same as above, but a single script fragment to be evaled but not shown.
14496 finish_eval=$lt_finish_eval
14497
14498 # Take the output of nm and produce a listing of raw symbols and C names.
14499 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14500
14501 # Transform the output of nm in a proper C declaration
14502 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14503
14504 # Transform the output of nm in a C name address pair
14505 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14506
14507 # This is the shared library runtime path variable.
14508 runpath_var=$runpath_var
14509
14510 # This is the shared library path variable.
14511 shlibpath_var=$shlibpath_var
14512
14513 # Is shlibpath searched before the hard-coded library search path?
14514 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14515
14516 # How to hardcode a shared library path into an executable.
14517 hardcode_action=$hardcode_action_F77
14518
14519 # Whether we should hardcode library paths into libraries.
14520 hardcode_into_libs=$hardcode_into_libs
14521
14522 # Flag to hardcode \$libdir into a binary during linking.
14523 # This must work even if \$libdir does not exist.
14524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14525
14526 # If ld is used when linking, flag to hardcode \$libdir into
14527 # a binary during linking. This must work even if \$libdir does
14528 # not exist.
14529 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14530
14531 # Whether we need a single -rpath flag with a separated argument.
14532 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14533
14534 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14535 # resulting binary.
14536 hardcode_direct=$hardcode_direct_F77
14537
14538 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14539 # resulting binary.
14540 hardcode_minus_L=$hardcode_minus_L_F77
14541
14542 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14543 # the resulting binary.
14544 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14545
14546 # Set to yes if building a shared library automatically hardcodes DIR into the library
14547 # and all subsequent libraries and executables linked against it.
14548 hardcode_automatic=$hardcode_automatic_F77
14549
14550 # Variables whose values should be saved in libtool wrapper scripts and
14551 # restored at relink time.
14552 variables_saved_for_relink="$variables_saved_for_relink"
14553
14554 # Whether libtool must link a program against all its dependency libraries.
14555 link_all_deplibs=$link_all_deplibs_F77
14556
14557 # Compile-time system search path for libraries
14558 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14559
14560 # Run-time system search path for libraries
14561 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14562
14563 # Fix the shell variable \$srcfile for the compiler.
14564 fix_srcfile_path="$fix_srcfile_path_F77"
14565
14566 # Set to yes if exported symbols are required.
14567 always_export_symbols=$always_export_symbols_F77
14568
14569 # The commands to list exported symbols.
14570 export_symbols_cmds=$lt_export_symbols_cmds_F77
14571
14572 # The commands to extract the exported symbol list from a shared archive.
14573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14574
14575 # Symbols that should not be listed in the preloaded symbols.
14576 exclude_expsyms=$lt_exclude_expsyms_F77
14577
14578 # Symbols that must always be exported.
14579 include_expsyms=$lt_include_expsyms_F77
14580
14581 # ### END LIBTOOL TAG CONFIG: $tagname
14582
14583 __EOF__
14584
14585
14586 else
14587   # If there is no Makefile yet, we rely on a make rule to execute
14588   # `config.status --recheck' to rerun these tests and create the
14589   # libtool script then.
14590   test -f Makefile && make "$ltmain"
14591 fi
14592
14593
14594 ac_ext=c
14595 ac_cpp='$CPP $CPPFLAGS'
14596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14599
14600 CC="$lt_save_CC"
14601
14602         else
14603           tagname=""
14604         fi
14605         ;;
14606
14607       GCJ)
14608         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14609
14610
14611
14612 # Source file extension for Java test sources.
14613 ac_ext=java
14614
14615 # Object file extension for compiled Java test sources.
14616 objext=o
14617 objext_GCJ=$objext
14618
14619 # Code to be used in simple compile tests
14620 lt_simple_compile_test_code="class foo {}\n"
14621
14622 # Code to be used in simple link tests
14623 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14624
14625 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14626
14627 # If no C compiler was specified, use CC.
14628 LTCC=${LTCC-"$CC"}
14629
14630 # Allow CC to be a program name with arguments.
14631 compiler=$CC
14632
14633
14634 # Allow CC to be a program name with arguments.
14635 lt_save_CC="$CC"
14636 CC=${GCJ-"gcj"}
14637 compiler=$CC
14638 compiler_GCJ=$CC
14639
14640 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14641 archive_cmds_need_lc_GCJ=no
14642
14643
14644 lt_prog_compiler_no_builtin_flag_GCJ=
14645
14646 if test "$GCC" = yes; then
14647   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14648
14649   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14650 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14651 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14652   echo $ECHO_N "(cached) $ECHO_C" >&6
14653 else
14654   lt_cv_prog_compiler_rtti_exceptions=no
14655   ac_outfile=conftest.$ac_objext
14656    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14657    lt_compiler_flag="-fno-rtti -fno-exceptions"
14658    # Insert the option either (1) after the last *FLAGS variable, or
14659    # (2) before a word containing "conftest.", or (3) at the end.
14660    # Note that $ac_compile itself does not contain backslashes and begins
14661    # with a dollar sign (not a hyphen), so the echo should work correctly.
14662    # The option is referenced via a variable to avoid confusing sed.
14663    lt_compile=`echo "$ac_compile" | $SED \
14664    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14665    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14666    -e 's:$: $lt_compiler_flag:'`
14667    (eval echo "\"\$as_me:14667: $lt_compile\"" >&5)
14668    (eval "$lt_compile" 2>conftest.err)
14669    ac_status=$?
14670    cat conftest.err >&5
14671    echo "$as_me:14671: \$? = $ac_status" >&5
14672    if (exit $ac_status) && test -s "$ac_outfile"; then
14673      # The compiler can only warn and ignore the option if not recognized
14674      # So say no if there are warnings
14675      if test ! -s conftest.err; then
14676        lt_cv_prog_compiler_rtti_exceptions=yes
14677      fi
14678    fi
14679    $rm conftest*
14680
14681 fi
14682 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14683 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14684
14685 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14686     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14687 else
14688     :
14689 fi
14690
14691 fi
14692
14693 lt_prog_compiler_wl_GCJ=
14694 lt_prog_compiler_pic_GCJ=
14695 lt_prog_compiler_static_GCJ=
14696
14697 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14698 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14699
14700   if test "$GCC" = yes; then
14701     lt_prog_compiler_wl_GCJ='-Wl,'
14702     lt_prog_compiler_static_GCJ='-static'
14703
14704     case $host_os in
14705       aix*)
14706       # All AIX code is PIC.
14707       if test "$host_cpu" = ia64; then
14708         # AIX 5 now supports IA64 processor
14709         lt_prog_compiler_static_GCJ='-Bstatic'
14710       fi
14711       ;;
14712
14713     amigaos*)
14714       # FIXME: we need at least 68020 code to build shared libraries, but
14715       # adding the `-m68020' flag to GCC prevents building anything better,
14716       # like `-m68040'.
14717       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14718       ;;
14719
14720     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14721       # PIC is the default for these OSes.
14722       ;;
14723
14724     mingw* | pw32* | os2*)
14725       # This hack is so that the source file can tell whether it is being
14726       # built for inclusion in a dll (and should export symbols for example).
14727       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14728       ;;
14729
14730     darwin* | rhapsody*)
14731       # PIC is the default on this platform
14732       # Common symbols not allowed in MH_DYLIB files
14733       lt_prog_compiler_pic_GCJ='-fno-common'
14734       ;;
14735
14736     msdosdjgpp*)
14737       # Just because we use GCC doesn't mean we suddenly get shared libraries
14738       # on systems that don't support them.
14739       lt_prog_compiler_can_build_shared_GCJ=no
14740       enable_shared=no
14741       ;;
14742
14743     sysv4*MP*)
14744       if test -d /usr/nec; then
14745         lt_prog_compiler_pic_GCJ=-Kconform_pic
14746       fi
14747       ;;
14748
14749     hpux*)
14750       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14751       # not for PA HP-UX.
14752       case "$host_cpu" in
14753       hppa*64*|ia64*)
14754         # +Z the default
14755         ;;
14756       *)
14757         lt_prog_compiler_pic_GCJ='-fPIC'
14758         ;;
14759       esac
14760       ;;
14761
14762     *)
14763       lt_prog_compiler_pic_GCJ='-fPIC'
14764       ;;
14765     esac
14766   else
14767     # PORTME Check for flag to pass linker flags through the system compiler.
14768     case $host_os in
14769     aix*)
14770       lt_prog_compiler_wl_GCJ='-Wl,'
14771       if test "$host_cpu" = ia64; then
14772         # AIX 5 now supports IA64 processor
14773         lt_prog_compiler_static_GCJ='-Bstatic'
14774       else
14775         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14776       fi
14777       ;;
14778
14779     mingw* | pw32* | os2*)
14780       # This hack is so that the source file can tell whether it is being
14781       # built for inclusion in a dll (and should export symbols for example).
14782       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14783       ;;
14784
14785     hpux9* | hpux10* | hpux11*)
14786       lt_prog_compiler_wl_GCJ='-Wl,'
14787       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14788       # not for PA HP-UX.
14789       case "$host_cpu" in
14790       hppa*64*|ia64*)
14791         # +Z the default
14792         ;;
14793       *)
14794         lt_prog_compiler_pic_GCJ='+Z'
14795         ;;
14796       esac
14797       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14798       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14799       ;;
14800
14801     irix5* | irix6* | nonstopux*)
14802       lt_prog_compiler_wl_GCJ='-Wl,'
14803       # PIC (with -KPIC) is the default.
14804       lt_prog_compiler_static_GCJ='-non_shared'
14805       ;;
14806
14807     newsos6)
14808       lt_prog_compiler_pic_GCJ='-KPIC'
14809       lt_prog_compiler_static_GCJ='-Bstatic'
14810       ;;
14811
14812     linux*)
14813       case $CC in
14814       icc|ecc)
14815         lt_prog_compiler_wl_GCJ='-Wl,'
14816         lt_prog_compiler_pic_GCJ='-KPIC'
14817         lt_prog_compiler_static_GCJ='-static'
14818         ;;
14819       ccc)
14820         lt_prog_compiler_wl_GCJ='-Wl,'
14821         # All Alpha code is PIC.
14822         lt_prog_compiler_static_GCJ='-non_shared'
14823         ;;
14824       esac
14825       ;;
14826
14827     osf3* | osf4* | osf5*)
14828       lt_prog_compiler_wl_GCJ='-Wl,'
14829       # All OSF/1 code is PIC.
14830       lt_prog_compiler_static_GCJ='-non_shared'
14831       ;;
14832
14833     sco3.2v5*)
14834       lt_prog_compiler_pic_GCJ='-Kpic'
14835       lt_prog_compiler_static_GCJ='-dn'
14836       ;;
14837
14838     solaris*)
14839       lt_prog_compiler_wl_GCJ='-Wl,'
14840       lt_prog_compiler_pic_GCJ='-KPIC'
14841       lt_prog_compiler_static_GCJ='-Bstatic'
14842       ;;
14843
14844     sunos4*)
14845       lt_prog_compiler_wl_GCJ='-Qoption ld '
14846       lt_prog_compiler_pic_GCJ='-PIC'
14847       lt_prog_compiler_static_GCJ='-Bstatic'
14848       ;;
14849
14850     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14851       lt_prog_compiler_wl_GCJ='-Wl,'
14852       lt_prog_compiler_pic_GCJ='-KPIC'
14853       lt_prog_compiler_static_GCJ='-Bstatic'
14854       ;;
14855
14856     sysv4*MP*)
14857       if test -d /usr/nec ;then
14858         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14859         lt_prog_compiler_static_GCJ='-Bstatic'
14860       fi
14861       ;;
14862
14863     uts4*)
14864       lt_prog_compiler_pic_GCJ='-pic'
14865       lt_prog_compiler_static_GCJ='-Bstatic'
14866       ;;
14867
14868     *)
14869       lt_prog_compiler_can_build_shared_GCJ=no
14870       ;;
14871     esac
14872   fi
14873
14874 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14875 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14876
14877 #
14878 # Check to make sure the PIC flag actually works.
14879 #
14880 if test -n "$lt_prog_compiler_pic_GCJ"; then
14881   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14882 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14883 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14884   echo $ECHO_N "(cached) $ECHO_C" >&6
14885 else
14886   lt_prog_compiler_pic_works_GCJ=no
14887   ac_outfile=conftest.$ac_objext
14888    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14889    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14890    # Insert the option either (1) after the last *FLAGS variable, or
14891    # (2) before a word containing "conftest.", or (3) at the end.
14892    # Note that $ac_compile itself does not contain backslashes and begins
14893    # with a dollar sign (not a hyphen), so the echo should work correctly.
14894    # The option is referenced via a variable to avoid confusing sed.
14895    lt_compile=`echo "$ac_compile" | $SED \
14896    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14897    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14898    -e 's:$: $lt_compiler_flag:'`
14899    (eval echo "\"\$as_me:14899: $lt_compile\"" >&5)
14900    (eval "$lt_compile" 2>conftest.err)
14901    ac_status=$?
14902    cat conftest.err >&5
14903    echo "$as_me:14903: \$? = $ac_status" >&5
14904    if (exit $ac_status) && test -s "$ac_outfile"; then
14905      # The compiler can only warn and ignore the option if not recognized
14906      # So say no if there are warnings
14907      if test ! -s conftest.err; then
14908        lt_prog_compiler_pic_works_GCJ=yes
14909      fi
14910    fi
14911    $rm conftest*
14912
14913 fi
14914 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14915 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14916
14917 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14918     case $lt_prog_compiler_pic_GCJ in
14919      "" | " "*) ;;
14920      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14921      esac
14922 else
14923     lt_prog_compiler_pic_GCJ=
14924      lt_prog_compiler_can_build_shared_GCJ=no
14925 fi
14926
14927 fi
14928 case "$host_os" in
14929   # For platforms which do not support PIC, -DPIC is meaningless:
14930   *djgpp*)
14931     lt_prog_compiler_pic_GCJ=
14932     ;;
14933   *)
14934     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14935     ;;
14936 esac
14937
14938 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14939 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14940 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14941   echo $ECHO_N "(cached) $ECHO_C" >&6
14942 else
14943   lt_cv_prog_compiler_c_o_GCJ=no
14944    $rm -r conftest 2>/dev/null
14945    mkdir conftest
14946    cd conftest
14947    mkdir out
14948    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14949
14950    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14951    # that will create temporary files in the current directory regardless of
14952    # the output directory.  Thus, making CWD read-only will cause this test
14953    # to fail, enabling locking or at least warning the user not to do parallel
14954    # builds.
14955    chmod -w .
14956
14957    lt_compiler_flag="-o out/conftest2.$ac_objext"
14958    # Insert the option either (1) after the last *FLAGS variable, or
14959    # (2) before a word containing "conftest.", or (3) at the end.
14960    # Note that $ac_compile itself does not contain backslashes and begins
14961    # with a dollar sign (not a hyphen), so the echo should work correctly.
14962    lt_compile=`echo "$ac_compile" | $SED \
14963    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14964    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14965    -e 's:$: $lt_compiler_flag:'`
14966    (eval echo "\"\$as_me:14966: $lt_compile\"" >&5)
14967    (eval "$lt_compile" 2>out/conftest.err)
14968    ac_status=$?
14969    cat out/conftest.err >&5
14970    echo "$as_me:14970: \$? = $ac_status" >&5
14971    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14972    then
14973      # The compiler can only warn and ignore the option if not recognized
14974      # So say no if there are warnings
14975      if test ! -s out/conftest.err; then
14976        lt_cv_prog_compiler_c_o_GCJ=yes
14977      fi
14978    fi
14979    chmod u+w .
14980    $rm conftest* out/*
14981    rmdir out
14982    cd ..
14983    rmdir conftest
14984    $rm conftest*
14985
14986 fi
14987 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14988 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14989
14990
14991 hard_links="nottested"
14992 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14993   # do not overwrite the value of need_locks provided by the user
14994   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14995 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14996   hard_links=yes
14997   $rm conftest*
14998   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14999   touch conftest.a
15000   ln conftest.a conftest.b 2>&5 || hard_links=no
15001   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15002   echo "$as_me:$LINENO: result: $hard_links" >&5
15003 echo "${ECHO_T}$hard_links" >&6
15004   if test "$hard_links" = no; then
15005     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15006 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15007     need_locks=warn
15008   fi
15009 else
15010   need_locks=no
15011 fi
15012
15013 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15014 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15015
15016   runpath_var=
15017   allow_undefined_flag_GCJ=
15018   enable_shared_with_static_runtimes_GCJ=no
15019   archive_cmds_GCJ=
15020   archive_expsym_cmds_GCJ=
15021   old_archive_From_new_cmds_GCJ=
15022   old_archive_from_expsyms_cmds_GCJ=
15023   export_dynamic_flag_spec_GCJ=
15024   whole_archive_flag_spec_GCJ=
15025   thread_safe_flag_spec_GCJ=
15026   hardcode_libdir_flag_spec_GCJ=
15027   hardcode_libdir_flag_spec_ld_GCJ=
15028   hardcode_libdir_separator_GCJ=
15029   hardcode_direct_GCJ=no
15030   hardcode_minus_L_GCJ=no
15031   hardcode_shlibpath_var_GCJ=unsupported
15032   link_all_deplibs_GCJ=unknown
15033   hardcode_automatic_GCJ=no
15034   module_cmds_GCJ=
15035   module_expsym_cmds_GCJ=
15036   always_export_symbols_GCJ=no
15037   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15038   # include_expsyms should be a list of space-separated symbols to be *always*
15039   # included in the symbol list
15040   include_expsyms_GCJ=
15041   # exclude_expsyms can be an extended regexp of symbols to exclude
15042   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15043   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15044   # as well as any symbol that contains `d'.
15045   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15046   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15047   # platforms (ab)use it in PIC code, but their linkers get confused if
15048   # the symbol is explicitly referenced.  Since portable code cannot
15049   # rely on this symbol name, it's probably fine to never include it in
15050   # preloaded symbol tables.
15051   extract_expsyms_cmds=
15052
15053   case $host_os in
15054   cygwin* | mingw* | pw32*)
15055     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15056     # When not using gcc, we currently assume that we are using
15057     # Microsoft Visual C++.
15058     if test "$GCC" != yes; then
15059       with_gnu_ld=no
15060     fi
15061     ;;
15062   openbsd*)
15063     with_gnu_ld=no
15064     ;;
15065   esac
15066
15067   ld_shlibs_GCJ=yes
15068   if test "$with_gnu_ld" = yes; then
15069     # If archive_cmds runs LD, not CC, wlarc should be empty
15070     wlarc='${wl}'
15071
15072     # See if GNU ld supports shared libraries.
15073     case $host_os in
15074     aix3* | aix4* | aix5*)
15075       # On AIX/PPC, the GNU linker is very broken
15076       if test "$host_cpu" != ia64; then
15077         ld_shlibs_GCJ=no
15078         cat <<EOF 1>&2
15079
15080 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15081 *** to be unable to reliably create shared libraries on AIX.
15082 *** Therefore, libtool is disabling shared libraries support.  If you
15083 *** really care for shared libraries, you may want to modify your PATH
15084 *** so that a non-GNU linker is found, and then restart.
15085
15086 EOF
15087       fi
15088       ;;
15089
15090     amigaos*)
15091       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)'
15092       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15093       hardcode_minus_L_GCJ=yes
15094
15095       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15096       # that the semantics of dynamic libraries on AmigaOS, at least up
15097       # to version 4, is to share data among multiple programs linked
15098       # with the same dynamic library.  Since this doesn't match the
15099       # behavior of shared libraries on other platforms, we can't use
15100       # them.
15101       ld_shlibs_GCJ=no
15102       ;;
15103
15104     beos*)
15105       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15106         allow_undefined_flag_GCJ=unsupported
15107         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15108         # support --undefined.  This deserves some investigation.  FIXME
15109         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15110       else
15111         ld_shlibs_GCJ=no
15112       fi
15113       ;;
15114
15115     cygwin* | mingw* | pw32*)
15116       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15117       # as there is no search path for DLLs.
15118       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15119       allow_undefined_flag_GCJ=unsupported
15120       always_export_symbols_GCJ=no
15121       enable_shared_with_static_runtimes_GCJ=yes
15122       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15123
15124       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15125         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15126         # If the export-symbols file already is a .def file (1st line
15127         # is EXPORTS), use it as is; otherwise, prepend...
15128         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15129           cp $export_symbols $output_objdir/$soname.def;
15130         else
15131           echo EXPORTS > $output_objdir/$soname.def;
15132           cat $export_symbols >> $output_objdir/$soname.def;
15133         fi~
15134         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15135       else
15136         ld_shlibs=no
15137       fi
15138       ;;
15139
15140     netbsd*)
15141       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15142         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15143         wlarc=
15144       else
15145         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15146         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15147       fi
15148       ;;
15149
15150     solaris* | sysv5*)
15151       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15152         ld_shlibs_GCJ=no
15153         cat <<EOF 1>&2
15154
15155 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15156 *** create shared libraries on Solaris systems.  Therefore, libtool
15157 *** is disabling shared libraries support.  We urge you to upgrade GNU
15158 *** binutils to release 2.9.1 or newer.  Another option is to modify
15159 *** your PATH or compiler configuration so that the native linker is
15160 *** used, and then restart.
15161
15162 EOF
15163       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15164         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15165         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15166       else
15167         ld_shlibs_GCJ=no
15168       fi
15169       ;;
15170
15171     sunos4*)
15172       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15173       wlarc=
15174       hardcode_direct_GCJ=yes
15175       hardcode_shlibpath_var_GCJ=no
15176       ;;
15177
15178     *)
15179       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15180         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15181         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15182       else
15183         ld_shlibs_GCJ=no
15184       fi
15185       ;;
15186     esac
15187
15188     if test "$ld_shlibs_GCJ" = yes; then
15189       runpath_var=LD_RUN_PATH
15190       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15191       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15192       # ancient GNU ld didn't support --whole-archive et. al.
15193       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15194         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15195       else
15196         whole_archive_flag_spec_GCJ=
15197       fi
15198     fi
15199   else
15200     # PORTME fill in a description of your system's linker (not GNU ld)
15201     case $host_os in
15202     aix3*)
15203       allow_undefined_flag_GCJ=unsupported
15204       always_export_symbols_GCJ=yes
15205       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'
15206       # Note: this linker hardcodes the directories in LIBPATH if there
15207       # are no directories specified by -L.
15208       hardcode_minus_L_GCJ=yes
15209       if test "$GCC" = yes && test -z "$link_static_flag"; then
15210         # Neither direct hardcoding nor static linking is supported with a
15211         # broken collect2.
15212         hardcode_direct_GCJ=unsupported
15213       fi
15214       ;;
15215
15216     aix4* | aix5*)
15217       if test "$host_cpu" = ia64; then
15218         # On IA64, the linker does run time linking by default, so we don't
15219         # have to do anything special.
15220         aix_use_runtimelinking=no
15221         exp_sym_flag='-Bexport'
15222         no_entry_flag=""
15223       else
15224         # If we're using GNU nm, then we don't want the "-C" option.
15225         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15226         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15227           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'
15228         else
15229           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'
15230         fi
15231         aix_use_runtimelinking=no
15232
15233         # Test if we are trying to use run time linking or normal
15234         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15235         # need to do runtime linking.
15236         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15237           for ld_flag in $LDFLAGS; do
15238           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15239             aix_use_runtimelinking=yes
15240             break
15241           fi
15242           done
15243         esac
15244
15245         exp_sym_flag='-bexport'
15246         no_entry_flag='-bnoentry'
15247       fi
15248
15249       # When large executables or shared objects are built, AIX ld can
15250       # have problems creating the table of contents.  If linking a library
15251       # or program results in "error TOC overflow" add -mminimal-toc to
15252       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15253       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15254
15255       archive_cmds_GCJ=''
15256       hardcode_direct_GCJ=yes
15257       hardcode_libdir_separator_GCJ=':'
15258       link_all_deplibs_GCJ=yes
15259
15260       if test "$GCC" = yes; then
15261         case $host_os in aix4.012|aix4.012.*)
15262         # We only want to do this on AIX 4.2 and lower, the check
15263         # below for broken collect2 doesn't work under 4.3+
15264           collect2name=`${CC} -print-prog-name=collect2`
15265           if test -f "$collect2name" && \
15266            strings "$collect2name" | grep resolve_lib_name >/dev/null
15267           then
15268           # We have reworked collect2
15269           hardcode_direct_GCJ=yes
15270           else
15271           # We have old collect2
15272           hardcode_direct_GCJ=unsupported
15273           # It fails to find uninstalled libraries when the uninstalled
15274           # path is not listed in the libpath.  Setting hardcode_minus_L
15275           # to unsupported forces relinking
15276           hardcode_minus_L_GCJ=yes
15277           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15278           hardcode_libdir_separator_GCJ=
15279           fi
15280         esac
15281         shared_flag='-shared'
15282       else
15283         # not using gcc
15284         if test "$host_cpu" = ia64; then
15285         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15286         # chokes on -Wl,-G. The following line is correct:
15287           shared_flag='-G'
15288         else
15289         if test "$aix_use_runtimelinking" = yes; then
15290             shared_flag='${wl}-G'
15291           else
15292             shared_flag='${wl}-bM:SRE'
15293         fi
15294         fi
15295       fi
15296
15297       # It seems that -bexpall does not export symbols beginning with
15298       # underscore (_), so it is better to generate a list of symbols to export.
15299       always_export_symbols_GCJ=yes
15300       if test "$aix_use_runtimelinking" = yes; then
15301         # Warning - without using the other runtime loading flags (-brtl),
15302         # -berok will link without error, but may produce a broken library.
15303         allow_undefined_flag_GCJ='-berok'
15304        # Determine the default libpath from the value encoded in an empty executable.
15305        cat >conftest.$ac_ext <<_ACEOF
15306 #line $LINENO "configure"
15307 /* confdefs.h.  */
15308 _ACEOF
15309 cat confdefs.h >>conftest.$ac_ext
15310 cat >>conftest.$ac_ext <<_ACEOF
15311 /* end confdefs.h.  */
15312
15313 int
15314 main ()
15315 {
15316
15317   ;
15318   return 0;
15319 }
15320 _ACEOF
15321 rm -f conftest.$ac_objext conftest$ac_exeext
15322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15323   (eval $ac_link) 2>&5
15324   ac_status=$?
15325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326   (exit $ac_status); } &&
15327          { ac_try='test -s conftest$ac_exeext'
15328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329   (eval $ac_try) 2>&5
15330   ac_status=$?
15331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332   (exit $ac_status); }; }; then
15333
15334 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15335 }'`
15336 # Check for a 64-bit object if we didn't find anything.
15337 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; }
15338 }'`; fi
15339 else
15340   echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15342
15343 fi
15344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15345 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15346
15347        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15348         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"
15349        else
15350         if test "$host_cpu" = ia64; then
15351           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15352           allow_undefined_flag_GCJ="-z nodefs"
15353           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"
15354         else
15355          # Determine the default libpath from the value encoded in an empty executable.
15356          cat >conftest.$ac_ext <<_ACEOF
15357 #line $LINENO "configure"
15358 /* confdefs.h.  */
15359 _ACEOF
15360 cat confdefs.h >>conftest.$ac_ext
15361 cat >>conftest.$ac_ext <<_ACEOF
15362 /* end confdefs.h.  */
15363
15364 int
15365 main ()
15366 {
15367
15368   ;
15369   return 0;
15370 }
15371 _ACEOF
15372 rm -f conftest.$ac_objext conftest$ac_exeext
15373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15374   (eval $ac_link) 2>&5
15375   ac_status=$?
15376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); } &&
15378          { ac_try='test -s conftest$ac_exeext'
15379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380   (eval $ac_try) 2>&5
15381   ac_status=$?
15382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383   (exit $ac_status); }; }; then
15384
15385 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15386 }'`
15387 # Check for a 64-bit object if we didn't find anything.
15388 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; }
15389 }'`; fi
15390 else
15391   echo "$as_me: failed program was:" >&5
15392 sed 's/^/| /' conftest.$ac_ext >&5
15393
15394 fi
15395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15396 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15397
15398          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15399           # Warning - without using the other run time loading flags,
15400           # -berok will link without error, but may produce a broken library.
15401           no_undefined_flag_GCJ=' ${wl}-bernotok'
15402           allow_undefined_flag_GCJ=' ${wl}-berok'
15403           # -bexpall does not export symbols beginning with underscore (_)
15404           always_export_symbols_GCJ=yes
15405           # Exported symbols can be pulled into shared objects from archives
15406           whole_archive_flag_spec_GCJ=' '
15407           archive_cmds_need_lc_GCJ=yes
15408           # This is similar to how AIX traditionally builds it's shared libraries.
15409           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'
15410         fi
15411       fi
15412       ;;
15413
15414     amigaos*)
15415       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)'
15416       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15417       hardcode_minus_L_GCJ=yes
15418       # see comment about different semantics on the GNU ld section
15419       ld_shlibs_GCJ=no
15420       ;;
15421
15422     bsdi4*)
15423       export_dynamic_flag_spec_GCJ=-rdynamic
15424       ;;
15425
15426     cygwin* | mingw* | pw32*)
15427       # When not using gcc, we currently assume that we are using
15428       # Microsoft Visual C++.
15429       # hardcode_libdir_flag_spec is actually meaningless, as there is
15430       # no search path for DLLs.
15431       hardcode_libdir_flag_spec_GCJ=' '
15432       allow_undefined_flag_GCJ=unsupported
15433       # Tell ltmain to make .lib files, not .a files.
15434       libext=lib
15435       # Tell ltmain to make .dll files, not .so files.
15436       shrext=".dll"
15437       # FIXME: Setting linknames here is a bad hack.
15438       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15439       # The linker will automatically build a .lib file if we build a DLL.
15440       old_archive_From_new_cmds_GCJ='true'
15441       # FIXME: Should let the user specify the lib program.
15442       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15443       fix_srcfile_path='`cygpath -w "$srcfile"`'
15444       enable_shared_with_static_runtimes_GCJ=yes
15445       ;;
15446
15447     darwin* | rhapsody*)
15448     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15449       archive_cmds_need_lc_GCJ=no
15450       case "$host_os" in
15451       rhapsody* | darwin1.[012])
15452         allow_undefined_flag_GCJ='-undefined suppress'
15453         ;;
15454       *) # Darwin 1.3 on
15455         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15456         ;;
15457       esac
15458       # FIXME: Relying on posixy $() will cause problems for
15459       #        cross-compilation, but unfortunately the echo tests do not
15460       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15461       #        `"' quotes if we put them in here... so don't!
15462         lt_int_apple_cc_single_mod=no
15463         output_verbose_link_cmd='echo'
15464         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15465           lt_int_apple_cc_single_mod=yes
15466         fi
15467         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15468           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15469         else
15470         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'
15471       fi
15472       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15473       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15474         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15475           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}'
15476         else
15477           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}'
15478         fi
15479           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}'
15480       hardcode_direct_GCJ=no
15481       hardcode_automatic_GCJ=yes
15482       hardcode_shlibpath_var_GCJ=unsupported
15483       whole_archive_flag_spec_GCJ='-all_load $convenience'
15484       link_all_deplibs_GCJ=yes
15485     fi
15486       ;;
15487
15488     dgux*)
15489       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15490       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15491       hardcode_shlibpath_var_GCJ=no
15492       ;;
15493
15494     freebsd1*)
15495       ld_shlibs_GCJ=no
15496       ;;
15497
15498     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15499     # support.  Future versions do this automatically, but an explicit c++rt0.o
15500     # does not break anything, and helps significantly (at the cost of a little
15501     # extra space).
15502     freebsd2.2*)
15503       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15504       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15505       hardcode_direct_GCJ=yes
15506       hardcode_shlibpath_var_GCJ=no
15507       ;;
15508
15509     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15510     freebsd2*)
15511       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15512       hardcode_direct_GCJ=yes
15513       hardcode_minus_L_GCJ=yes
15514       hardcode_shlibpath_var_GCJ=no
15515       ;;
15516
15517     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15518     freebsd*)
15519       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15520       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15521       hardcode_direct_GCJ=yes
15522       hardcode_shlibpath_var_GCJ=no
15523       ;;
15524
15525     hpux9*)
15526       if test "$GCC" = yes; then
15527         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'
15528       else
15529         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'
15530       fi
15531       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15532       hardcode_libdir_separator_GCJ=:
15533       hardcode_direct_GCJ=yes
15534
15535       # hardcode_minus_L: Not really in the search PATH,
15536       # but as the default location of the library.
15537       hardcode_minus_L_GCJ=yes
15538       export_dynamic_flag_spec_GCJ='${wl}-E'
15539       ;;
15540
15541     hpux10* | hpux11*)
15542       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15543         case "$host_cpu" in
15544         hppa*64*|ia64*)
15545           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15546           ;;
15547         *)
15548           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15549           ;;
15550         esac
15551       else
15552         case "$host_cpu" in
15553         hppa*64*|ia64*)
15554           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15555           ;;
15556         *)
15557           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15558           ;;
15559         esac
15560       fi
15561       if test "$with_gnu_ld" = no; then
15562         case "$host_cpu" in
15563         hppa*64*)
15564           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15565           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15566           hardcode_libdir_separator_GCJ=:
15567           hardcode_direct_GCJ=no
15568           hardcode_shlibpath_var_GCJ=no
15569           ;;
15570         ia64*)
15571           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15572           hardcode_direct_GCJ=no
15573           hardcode_shlibpath_var_GCJ=no
15574
15575           # hardcode_minus_L: Not really in the search PATH,
15576           # but as the default location of the library.
15577           hardcode_minus_L_GCJ=yes
15578           ;;
15579         *)
15580           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15581           hardcode_libdir_separator_GCJ=:
15582           hardcode_direct_GCJ=yes
15583           export_dynamic_flag_spec_GCJ='${wl}-E'
15584
15585           # hardcode_minus_L: Not really in the search PATH,
15586           # but as the default location of the library.
15587           hardcode_minus_L_GCJ=yes
15588           ;;
15589         esac
15590       fi
15591       ;;
15592
15593     irix5* | irix6* | nonstopux*)
15594       if test "$GCC" = yes; then
15595         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'
15596       else
15597         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'
15598         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15599       fi
15600       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15601       hardcode_libdir_separator_GCJ=:
15602       link_all_deplibs_GCJ=yes
15603       ;;
15604
15605     netbsd*)
15606       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15607         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15608       else
15609         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15610       fi
15611       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15612       hardcode_direct_GCJ=yes
15613       hardcode_shlibpath_var_GCJ=no
15614       ;;
15615
15616     newsos6)
15617       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15618       hardcode_direct_GCJ=yes
15619       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15620       hardcode_libdir_separator_GCJ=:
15621       hardcode_shlibpath_var_GCJ=no
15622       ;;
15623
15624     openbsd*)
15625       hardcode_direct_GCJ=yes
15626       hardcode_shlibpath_var_GCJ=no
15627       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15628         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15629         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15630         export_dynamic_flag_spec_GCJ='${wl}-E'
15631       else
15632        case $host_os in
15633          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15634            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15635            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15636            ;;
15637          *)
15638            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15639            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15640            ;;
15641        esac
15642       fi
15643       ;;
15644
15645     os2*)
15646       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15647       hardcode_minus_L_GCJ=yes
15648       allow_undefined_flag_GCJ=unsupported
15649       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'
15650       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15651       ;;
15652
15653     osf3*)
15654       if test "$GCC" = yes; then
15655         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15656         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'
15657       else
15658         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15659         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'
15660       fi
15661       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15662       hardcode_libdir_separator_GCJ=:
15663       ;;
15664
15665     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15666       if test "$GCC" = yes; then
15667         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15668         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15669         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15670       else
15671         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15672         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'
15673         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~
15674         $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'
15675
15676         # Both c and cxx compiler support -rpath directly
15677         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15678       fi
15679       hardcode_libdir_separator_GCJ=:
15680       ;;
15681
15682     sco3.2v5*)
15683       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15684       hardcode_shlibpath_var_GCJ=no
15685       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15686       runpath_var=LD_RUN_PATH
15687       hardcode_runpath_var=yes
15688       ;;
15689
15690     solaris*)
15691       no_undefined_flag_GCJ=' -z text'
15692       if test "$GCC" = yes; then
15693         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15694         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15695           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15696       else
15697         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15699         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15700       fi
15701       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15702       hardcode_shlibpath_var_GCJ=no
15703       case $host_os in
15704       solaris2.[0-5] | solaris2.[0-5].*) ;;
15705       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15706         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15707       esac
15708       link_all_deplibs_GCJ=yes
15709       ;;
15710
15711     sunos4*)
15712       if test "x$host_vendor" = xsequent; then
15713         # Use $CC to link under sequent, because it throws in some extra .o
15714         # files that make .init and .fini sections work.
15715         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15716       else
15717         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15718       fi
15719       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15720       hardcode_direct_GCJ=yes
15721       hardcode_minus_L_GCJ=yes
15722       hardcode_shlibpath_var_GCJ=no
15723       ;;
15724
15725     sysv4)
15726       case $host_vendor in
15727         sni)
15728           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15729           hardcode_direct_GCJ=yes # is this really true???
15730         ;;
15731         siemens)
15732           ## LD is ld it makes a PLAMLIB
15733           ## CC just makes a GrossModule.
15734           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15735           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15736           hardcode_direct_GCJ=no
15737         ;;
15738         motorola)
15739           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15740           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15741         ;;
15742       esac
15743       runpath_var='LD_RUN_PATH'
15744       hardcode_shlibpath_var_GCJ=no
15745       ;;
15746
15747     sysv4.3*)
15748       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15749       hardcode_shlibpath_var_GCJ=no
15750       export_dynamic_flag_spec_GCJ='-Bexport'
15751       ;;
15752
15753     sysv4*MP*)
15754       if test -d /usr/nec; then
15755         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15756         hardcode_shlibpath_var_GCJ=no
15757         runpath_var=LD_RUN_PATH
15758         hardcode_runpath_var=yes
15759         ld_shlibs_GCJ=yes
15760       fi
15761       ;;
15762
15763     sysv4.2uw2*)
15764       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15765       hardcode_direct_GCJ=yes
15766       hardcode_minus_L_GCJ=no
15767       hardcode_shlibpath_var_GCJ=no
15768       hardcode_runpath_var=yes
15769       runpath_var=LD_RUN_PATH
15770       ;;
15771
15772    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15773       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15774       if test "$GCC" = yes; then
15775         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15776       else
15777         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15778       fi
15779       runpath_var='LD_RUN_PATH'
15780       hardcode_shlibpath_var_GCJ=no
15781       ;;
15782
15783     sysv5*)
15784       no_undefined_flag_GCJ=' -z text'
15785       # $CC -shared without GNU ld will not create a library from C++
15786       # object files and a static libstdc++, better avoid it by now
15787       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15788       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15789                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15790       hardcode_libdir_flag_spec_GCJ=
15791       hardcode_shlibpath_var_GCJ=no
15792       runpath_var='LD_RUN_PATH'
15793       ;;
15794
15795     uts4*)
15796       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15797       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15798       hardcode_shlibpath_var_GCJ=no
15799       ;;
15800
15801     *)
15802       ld_shlibs_GCJ=no
15803       ;;
15804     esac
15805   fi
15806
15807 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15808 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15809 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15810
15811 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15812 if test "$GCC" = yes; then
15813   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15814 fi
15815
15816 #
15817 # Do we need to explicitly link libc?
15818 #
15819 case "x$archive_cmds_need_lc_GCJ" in
15820 x|xyes)
15821   # Assume -lc should be added
15822   archive_cmds_need_lc_GCJ=yes
15823
15824   if test "$enable_shared" = yes && test "$GCC" = yes; then
15825     case $archive_cmds_GCJ in
15826     *'~'*)
15827       # FIXME: we may have to deal with multi-command sequences.
15828       ;;
15829     '$CC '*)
15830       # Test whether the compiler implicitly links with -lc since on some
15831       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15832       # to ld, don't add -lc before -lgcc.
15833       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15834 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15835       $rm conftest*
15836       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15837
15838       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15839   (eval $ac_compile) 2>&5
15840   ac_status=$?
15841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842   (exit $ac_status); } 2>conftest.err; then
15843         soname=conftest
15844         lib=conftest
15845         libobjs=conftest.$ac_objext
15846         deplibs=
15847         wl=$lt_prog_compiler_wl_GCJ
15848         compiler_flags=-v
15849         linker_flags=-v
15850         verstring=
15851         output_objdir=.
15852         libname=conftest
15853         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15854         allow_undefined_flag_GCJ=
15855         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15856   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15857   ac_status=$?
15858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859   (exit $ac_status); }
15860         then
15861           archive_cmds_need_lc_GCJ=no
15862         else
15863           archive_cmds_need_lc_GCJ=yes
15864         fi
15865         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15866       else
15867         cat conftest.err 1>&5
15868       fi
15869       $rm conftest*
15870       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15871 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15872       ;;
15873     esac
15874   fi
15875   ;;
15876 esac
15877
15878 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15879 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15880 hardcode_action_GCJ=
15881 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15882    test -n "$runpath_var GCJ" || \
15883    test "X$hardcode_automatic_GCJ"="Xyes" ; then
15884
15885   # We can hardcode non-existant directories.
15886   if test "$hardcode_direct_GCJ" != no &&
15887      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15888      # have to relink, otherwise we might link with an installed library
15889      # when we should be linking with a yet-to-be-installed one
15890      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15891      test "$hardcode_minus_L_GCJ" != no; then
15892     # Linking always hardcodes the temporary library directory.
15893     hardcode_action_GCJ=relink
15894   else
15895     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15896     hardcode_action_GCJ=immediate
15897   fi
15898 else
15899   # We cannot hardcode anything, or else we can only hardcode existing
15900   # directories.
15901   hardcode_action_GCJ=unsupported
15902 fi
15903 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15904 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15905
15906 if test "$hardcode_action_GCJ" = relink; then
15907   # Fast installation is not supported
15908   enable_fast_install=no
15909 elif test "$shlibpath_overrides_runpath" = yes ||
15910      test "$enable_shared" = no; then
15911   # Fast installation is not necessary
15912   enable_fast_install=needless
15913 fi
15914
15915 striplib=
15916 old_striplib=
15917 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15918 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15919 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15920   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15921   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15922   echo "$as_me:$LINENO: result: yes" >&5
15923 echo "${ECHO_T}yes" >&6
15924 else
15925 # FIXME - insert some real tests, host_os isn't really good enough
15926   case $host_os in
15927    darwin*)
15928        if test -n "$STRIP" ; then
15929          striplib="$STRIP -x"
15930          echo "$as_me:$LINENO: result: yes" >&5
15931 echo "${ECHO_T}yes" >&6
15932        else
15933   echo "$as_me:$LINENO: result: no" >&5
15934 echo "${ECHO_T}no" >&6
15935 fi
15936        ;;
15937    *)
15938   echo "$as_me:$LINENO: result: no" >&5
15939 echo "${ECHO_T}no" >&6
15940     ;;
15941   esac
15942 fi
15943
15944 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15945 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15946 library_names_spec=
15947 libname_spec='lib$name'
15948 soname_spec=
15949 shrext=".so"
15950 postinstall_cmds=
15951 postuninstall_cmds=
15952 finish_cmds=
15953 finish_eval=
15954 shlibpath_var=
15955 shlibpath_overrides_runpath=unknown
15956 version_type=none
15957 dynamic_linker="$host_os ld.so"
15958 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15959 if test "$GCC" = yes; then
15960   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15961   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15962     # if the path contains ";" then we assume it to be the separator
15963     # otherwise default to the standard path separator (i.e. ":") - it is
15964     # assumed that no part of a normal pathname contains ";" but that should
15965     # okay in the real world where ";" in dirpaths is itself problematic.
15966     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15967   else
15968     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15969   fi
15970 else
15971   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15972 fi
15973 need_lib_prefix=unknown
15974 hardcode_into_libs=no
15975
15976 # when you set need_version to no, make sure it does not cause -set_version
15977 # flags to be left without arguments
15978 need_version=unknown
15979
15980 case $host_os in
15981 aix3*)
15982   version_type=linux
15983   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15984   shlibpath_var=LIBPATH
15985
15986   # AIX 3 has no versioning support, so we append a major version to the name.
15987   soname_spec='${libname}${release}${shared_ext}$major'
15988   ;;
15989
15990 aix4* | aix5*)
15991   version_type=linux
15992   need_lib_prefix=no
15993   need_version=no
15994   hardcode_into_libs=yes
15995   if test "$host_cpu" = ia64; then
15996     # AIX 5 supports IA64
15997     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15998     shlibpath_var=LD_LIBRARY_PATH
15999   else
16000     # With GCC up to 2.95.x, collect2 would create an import file
16001     # for dependence libraries.  The import file would start with
16002     # the line `#! .'.  This would cause the generated library to
16003     # depend on `.', always an invalid library.  This was fixed in
16004     # development snapshots of GCC prior to 3.0.
16005     case $host_os in
16006       aix4 | aix4.[01] | aix4.[01].*)
16007       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16008            echo ' yes '
16009            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16010         :
16011       else
16012         can_build_shared=no
16013       fi
16014       ;;
16015     esac
16016     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16017     # soname into executable. Probably we can add versioning support to
16018     # collect2, so additional links can be useful in future.
16019     if test "$aix_use_runtimelinking" = yes; then
16020       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16021       # instead of lib<name>.a to let people know that these are not
16022       # typical AIX shared libraries.
16023       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16024     else
16025       # We preserve .a as extension for shared libraries through AIX4.2
16026       # and later when we are not doing run time linking.
16027       library_names_spec='${libname}${release}.a $libname.a'
16028       soname_spec='${libname}${release}${shared_ext}$major'
16029     fi
16030     shlibpath_var=LIBPATH
16031   fi
16032   ;;
16033
16034 amigaos*)
16035   library_names_spec='$libname.ixlibrary $libname.a'
16036   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16037   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'
16038   ;;
16039
16040 beos*)
16041   library_names_spec='${libname}${shared_ext}'
16042   dynamic_linker="$host_os ld.so"
16043   shlibpath_var=LIBRARY_PATH
16044   ;;
16045
16046 bsdi4*)
16047   version_type=linux
16048   need_version=no
16049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050   soname_spec='${libname}${release}${shared_ext}$major'
16051   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16052   shlibpath_var=LD_LIBRARY_PATH
16053   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16054   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16055   # the default ld.so.conf also contains /usr/contrib/lib and
16056   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16057   # libtool to hard-code these into programs
16058   ;;
16059
16060 cygwin* | mingw* | pw32*)
16061   version_type=windows
16062   shrext=".dll"
16063   need_version=no
16064   need_lib_prefix=no
16065
16066   case $GCC,$host_os in
16067   yes,cygwin* | yes,mingw* | yes,pw32*)
16068     library_names_spec='$libname.dll.a'
16069     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16070     postinstall_cmds='base_file=`basename \${file}`~
16071       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16072       dldir=$destdir/`dirname \$dlpath`~
16073       test -d \$dldir || mkdir -p \$dldir~
16074       $install_prog $dir/$dlname \$dldir/$dlname'
16075     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16076       dlpath=$dir/\$dldll~
16077        $rm \$dlpath'
16078     shlibpath_overrides_runpath=yes
16079
16080     case $host_os in
16081     cygwin*)
16082       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16083       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16084       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16085       ;;
16086     mingw*)
16087       # MinGW DLLs use traditional 'lib' prefix
16088       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16089       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16090       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16091         # It is most probably a Windows format PATH printed by
16092         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16093         # path with ; separators, and with drive letters. We can handle the
16094         # drive letters (cygwin fileutils understands them), so leave them,
16095         # especially as we might pass files found there to a mingw objdump,
16096         # which wouldn't understand a cygwinified path. Ahh.
16097         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16098       else
16099         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16100       fi
16101       ;;
16102     pw32*)
16103       # pw32 DLLs use 'pw' prefix rather than 'lib'
16104       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16105       ;;
16106     esac
16107     ;;
16108
16109   *)
16110     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16111     ;;
16112   esac
16113   dynamic_linker='Win32 ld.exe'
16114   # FIXME: first we should search . and the directory the executable is in
16115   shlibpath_var=PATH
16116   ;;
16117
16118 darwin* | rhapsody*)
16119   dynamic_linker="$host_os dyld"
16120   version_type=darwin
16121   need_lib_prefix=no
16122   need_version=no
16123   # FIXME: Relying on posixy $() will cause problems for
16124   #        cross-compilation, but unfortunately the echo tests do not
16125   #        yet detect zsh echo's removal of \ escapes.
16126   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16127   soname_spec='${libname}${release}${major}$shared_ext'
16128   shlibpath_overrides_runpath=yes
16129   shlibpath_var=DYLD_LIBRARY_PATH
16130   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16131   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16132   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16133   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"`
16134   fi
16135   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16136   ;;
16137
16138 dgux*)
16139   version_type=linux
16140   need_lib_prefix=no
16141   need_version=no
16142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16143   soname_spec='${libname}${release}${shared_ext}$major'
16144   shlibpath_var=LD_LIBRARY_PATH
16145   ;;
16146
16147 freebsd1*)
16148   dynamic_linker=no
16149   ;;
16150
16151 freebsd*)
16152   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16153   version_type=freebsd-$objformat
16154   case $version_type in
16155     freebsd-elf*)
16156       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16157       need_version=no
16158       need_lib_prefix=no
16159       ;;
16160     freebsd-*)
16161       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16162       need_version=yes
16163       ;;
16164   esac
16165   shlibpath_var=LD_LIBRARY_PATH
16166   case $host_os in
16167   freebsd2*)
16168     shlibpath_overrides_runpath=yes
16169     ;;
16170   freebsd3.01* | freebsdelf3.01*)
16171     shlibpath_overrides_runpath=yes
16172     hardcode_into_libs=yes
16173     ;;
16174   *) # from 3.2 on
16175     shlibpath_overrides_runpath=no
16176     hardcode_into_libs=yes
16177     ;;
16178   esac
16179   ;;
16180
16181 gnu*)
16182   version_type=linux
16183   need_lib_prefix=no
16184   need_version=no
16185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16186   soname_spec='${libname}${release}${shared_ext}$major'
16187   shlibpath_var=LD_LIBRARY_PATH
16188   hardcode_into_libs=yes
16189   ;;
16190
16191 hpux9* | hpux10* | hpux11*)
16192   # Give a soname corresponding to the major version so that dld.sl refuses to
16193   # link against other versions.
16194   version_type=sunos
16195   need_lib_prefix=no
16196   need_version=no
16197   case "$host_cpu" in
16198   ia64*)
16199     shrext='.so'
16200     hardcode_into_libs=yes
16201     dynamic_linker="$host_os dld.so"
16202     shlibpath_var=LD_LIBRARY_PATH
16203     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16204     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16205     soname_spec='${libname}${release}${shared_ext}$major'
16206     if test "X$HPUX_IA64_MODE" = X32; then
16207       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16208     else
16209       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16210     fi
16211     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16212     ;;
16213    hppa*64*)
16214      shrext='.sl'
16215      hardcode_into_libs=yes
16216      dynamic_linker="$host_os dld.sl"
16217      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16218      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16219      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16220      soname_spec='${libname}${release}${shared_ext}$major'
16221      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16222      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16223      ;;
16224    *)
16225     shrext='.sl'
16226     dynamic_linker="$host_os dld.sl"
16227     shlibpath_var=SHLIB_PATH
16228     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16229     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16230     soname_spec='${libname}${release}${shared_ext}$major'
16231     ;;
16232   esac
16233   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16234   postinstall_cmds='chmod 555 $lib'
16235   ;;
16236
16237 irix5* | irix6* | nonstopux*)
16238   case $host_os in
16239     nonstopux*) version_type=nonstopux ;;
16240     *)
16241         if test "$lt_cv_prog_gnu_ld" = yes; then
16242                 version_type=linux
16243         else
16244                 version_type=irix
16245         fi ;;
16246   esac
16247   need_lib_prefix=no
16248   need_version=no
16249   soname_spec='${libname}${release}${shared_ext}$major'
16250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16251   case $host_os in
16252   irix5* | nonstopux*)
16253     libsuff= shlibsuff=
16254     ;;
16255   *)
16256     case $LD in # libtool.m4 will add one of these switches to LD
16257     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16258       libsuff= shlibsuff= libmagic=32-bit;;
16259     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16260       libsuff=32 shlibsuff=N32 libmagic=N32;;
16261     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16262       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16263     *) libsuff= shlibsuff= libmagic=never-match;;
16264     esac
16265     ;;
16266   esac
16267   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16268   shlibpath_overrides_runpath=no
16269   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16270   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16271   hardcode_into_libs=yes
16272   ;;
16273
16274 # No shared lib support for Linux oldld, aout, or coff.
16275 linux*oldld* | linux*aout* | linux*coff*)
16276   dynamic_linker=no
16277   ;;
16278
16279 # This must be Linux ELF.
16280 linux*)
16281   version_type=linux
16282   need_lib_prefix=no
16283   need_version=no
16284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16285   soname_spec='${libname}${release}${shared_ext}$major'
16286   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16287   shlibpath_var=LD_LIBRARY_PATH
16288   shlibpath_overrides_runpath=no
16289   # This implies no fast_install, which is unacceptable.
16290   # Some rework will be needed to allow for fast_install
16291   # before this can be enabled.
16292   hardcode_into_libs=yes
16293
16294   # We used to test for /lib/ld.so.1 and disable shared libraries on
16295   # powerpc, because MkLinux only supported shared libraries with the
16296   # GNU dynamic linker.  Since this was broken with cross compilers,
16297   # most powerpc-linux boxes support dynamic linking these days and
16298   # people can always --disable-shared, the test was removed, and we
16299   # assume the GNU/Linux dynamic linker is in use.
16300   dynamic_linker='GNU/Linux ld.so'
16301   ;;
16302
16303 netbsd*)
16304   version_type=sunos
16305   need_lib_prefix=no
16306   need_version=no
16307   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16308     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16309     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16310     dynamic_linker='NetBSD (a.out) ld.so'
16311   else
16312     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16313     soname_spec='${libname}${release}${shared_ext}$major'
16314     dynamic_linker='NetBSD ld.elf_so'
16315   fi
16316   shlibpath_var=LD_LIBRARY_PATH
16317   shlibpath_overrides_runpath=yes
16318   hardcode_into_libs=yes
16319   ;;
16320
16321 newsos6)
16322   version_type=linux
16323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16324   shlibpath_var=LD_LIBRARY_PATH
16325   shlibpath_overrides_runpath=yes
16326   ;;
16327
16328 nto-qnx)
16329   version_type=linux
16330   need_lib_prefix=no
16331   need_version=no
16332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16333   soname_spec='${libname}${release}${shared_ext}$major'
16334   shlibpath_var=LD_LIBRARY_PATH
16335   shlibpath_overrides_runpath=yes
16336   ;;
16337
16338 openbsd*)
16339   version_type=sunos
16340   need_lib_prefix=no
16341   need_version=no
16342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16343   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16344   shlibpath_var=LD_LIBRARY_PATH
16345   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16346     case $host_os in
16347       openbsd2.[89] | openbsd2.[89].*)
16348         shlibpath_overrides_runpath=no
16349         ;;
16350       *)
16351         shlibpath_overrides_runpath=yes
16352         ;;
16353       esac
16354   else
16355     shlibpath_overrides_runpath=yes
16356   fi
16357   ;;
16358
16359 os2*)
16360   libname_spec='$name'
16361   shrext=".dll"
16362   need_lib_prefix=no
16363   library_names_spec='$libname${shared_ext} $libname.a'
16364   dynamic_linker='OS/2 ld.exe'
16365   shlibpath_var=LIBPATH
16366   ;;
16367
16368 osf3* | osf4* | osf5*)
16369   version_type=osf
16370   need_lib_prefix=no
16371   need_version=no
16372   soname_spec='${libname}${release}${shared_ext}$major'
16373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16374   shlibpath_var=LD_LIBRARY_PATH
16375   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16376   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16377   ;;
16378
16379 sco3.2v5*)
16380   version_type=osf
16381   soname_spec='${libname}${release}${shared_ext}$major'
16382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16383   shlibpath_var=LD_LIBRARY_PATH
16384   ;;
16385
16386 solaris*)
16387   version_type=linux
16388   need_lib_prefix=no
16389   need_version=no
16390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391   soname_spec='${libname}${release}${shared_ext}$major'
16392   shlibpath_var=LD_LIBRARY_PATH
16393   shlibpath_overrides_runpath=yes
16394   hardcode_into_libs=yes
16395   # ldd complains unless libraries are executable
16396   postinstall_cmds='chmod +x $lib'
16397   ;;
16398
16399 sunos4*)
16400   version_type=sunos
16401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16402   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16403   shlibpath_var=LD_LIBRARY_PATH
16404   shlibpath_overrides_runpath=yes
16405   if test "$with_gnu_ld" = yes; then
16406     need_lib_prefix=no
16407   fi
16408   need_version=yes
16409   ;;
16410
16411 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16412   version_type=linux
16413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16414   soname_spec='${libname}${release}${shared_ext}$major'
16415   shlibpath_var=LD_LIBRARY_PATH
16416   case $host_vendor in
16417     sni)
16418       shlibpath_overrides_runpath=no
16419       need_lib_prefix=no
16420       export_dynamic_flag_spec='${wl}-Blargedynsym'
16421       runpath_var=LD_RUN_PATH
16422       ;;
16423     siemens)
16424       need_lib_prefix=no
16425       ;;
16426     motorola)
16427       need_lib_prefix=no
16428       need_version=no
16429       shlibpath_overrides_runpath=no
16430       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16431       ;;
16432   esac
16433   ;;
16434
16435 sysv4*MP*)
16436   if test -d /usr/nec ;then
16437     version_type=linux
16438     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16439     soname_spec='$libname${shared_ext}.$major'
16440     shlibpath_var=LD_LIBRARY_PATH
16441   fi
16442   ;;
16443
16444 uts4*)
16445   version_type=linux
16446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16447   soname_spec='${libname}${release}${shared_ext}$major'
16448   shlibpath_var=LD_LIBRARY_PATH
16449   ;;
16450
16451 *)
16452   dynamic_linker=no
16453   ;;
16454 esac
16455 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16456 echo "${ECHO_T}$dynamic_linker" >&6
16457 test "$dynamic_linker" = no && can_build_shared=no
16458
16459 if test "x$enable_dlopen" != xyes; then
16460   enable_dlopen=unknown
16461   enable_dlopen_self=unknown
16462   enable_dlopen_self_static=unknown
16463 else
16464   lt_cv_dlopen=no
16465   lt_cv_dlopen_libs=
16466
16467   case $host_os in
16468   beos*)
16469     lt_cv_dlopen="load_add_on"
16470     lt_cv_dlopen_libs=
16471     lt_cv_dlopen_self=yes
16472     ;;
16473
16474   mingw* | pw32*)
16475     lt_cv_dlopen="LoadLibrary"
16476     lt_cv_dlopen_libs=
16477    ;;
16478
16479   cygwin*)
16480     lt_cv_dlopen="dlopen"
16481     lt_cv_dlopen_libs=
16482    ;;
16483
16484   darwin*)
16485   # if libdl is installed we need to link against it
16486     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16487 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16488 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16489   echo $ECHO_N "(cached) $ECHO_C" >&6
16490 else
16491   ac_check_lib_save_LIBS=$LIBS
16492 LIBS="-ldl  $LIBS"
16493 cat >conftest.$ac_ext <<_ACEOF
16494 #line $LINENO "configure"
16495 /* confdefs.h.  */
16496 _ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h.  */
16500
16501 /* Override any gcc2 internal prototype to avoid an error.  */
16502 #ifdef __cplusplus
16503 extern "C"
16504 #endif
16505 /* We use char because int might match the return type of a gcc2
16506    builtin and then its argument prototype would still apply.  */
16507 char dlopen ();
16508 int
16509 main ()
16510 {
16511 dlopen ();
16512   ;
16513   return 0;
16514 }
16515 _ACEOF
16516 rm -f conftest.$ac_objext conftest$ac_exeext
16517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16518   (eval $ac_link) 2>&5
16519   ac_status=$?
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); } &&
16522          { ac_try='test -s conftest$ac_exeext'
16523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524   (eval $ac_try) 2>&5
16525   ac_status=$?
16526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527   (exit $ac_status); }; }; then
16528   ac_cv_lib_dl_dlopen=yes
16529 else
16530   echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.$ac_ext >&5
16532
16533 ac_cv_lib_dl_dlopen=no
16534 fi
16535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16536 LIBS=$ac_check_lib_save_LIBS
16537 fi
16538 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16539 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16540 if test $ac_cv_lib_dl_dlopen = yes; then
16541   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16542 else
16543
16544     lt_cv_dlopen="dyld"
16545     lt_cv_dlopen_libs=
16546     lt_cv_dlopen_self=yes
16547
16548 fi
16549
16550    ;;
16551
16552   *)
16553     echo "$as_me:$LINENO: checking for shl_load" >&5
16554 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16555 if test "${ac_cv_func_shl_load+set}" = set; then
16556   echo $ECHO_N "(cached) $ECHO_C" >&6
16557 else
16558   cat >conftest.$ac_ext <<_ACEOF
16559 #line $LINENO "configure"
16560 /* confdefs.h.  */
16561 _ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h.  */
16565 /* System header to define __stub macros and hopefully few prototypes,
16566     which can conflict with char shl_load (); below.
16567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16568     <limits.h> exists even on freestanding compilers.  */
16569 #ifdef __STDC__
16570 # include <limits.h>
16571 #else
16572 # include <assert.h>
16573 #endif
16574 /* Override any gcc2 internal prototype to avoid an error.  */
16575 #ifdef __cplusplus
16576 extern "C"
16577 {
16578 #endif
16579 /* We use char because int might match the return type of a gcc2
16580    builtin and then its argument prototype would still apply.  */
16581 char shl_load ();
16582 /* The GNU C library defines this for functions which it implements
16583     to always fail with ENOSYS.  Some functions are actually named
16584     something starting with __ and the normal name is an alias.  */
16585 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16586 choke me
16587 #else
16588 char (*f) () = shl_load;
16589 #endif
16590 #ifdef __cplusplus
16591 }
16592 #endif
16593
16594 int
16595 main ()
16596 {
16597 return f != shl_load;
16598   ;
16599   return 0;
16600 }
16601 _ACEOF
16602 rm -f conftest.$ac_objext conftest$ac_exeext
16603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16604   (eval $ac_link) 2>&5
16605   ac_status=$?
16606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); } &&
16608          { ac_try='test -s conftest$ac_exeext'
16609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610   (eval $ac_try) 2>&5
16611   ac_status=$?
16612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613   (exit $ac_status); }; }; then
16614   ac_cv_func_shl_load=yes
16615 else
16616   echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16618
16619 ac_cv_func_shl_load=no
16620 fi
16621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16622 fi
16623 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16624 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16625 if test $ac_cv_func_shl_load = yes; then
16626   lt_cv_dlopen="shl_load"
16627 else
16628   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16629 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16630 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16631   echo $ECHO_N "(cached) $ECHO_C" >&6
16632 else
16633   ac_check_lib_save_LIBS=$LIBS
16634 LIBS="-ldld  $LIBS"
16635 cat >conftest.$ac_ext <<_ACEOF
16636 #line $LINENO "configure"
16637 /* confdefs.h.  */
16638 _ACEOF
16639 cat confdefs.h >>conftest.$ac_ext
16640 cat >>conftest.$ac_ext <<_ACEOF
16641 /* end confdefs.h.  */
16642
16643 /* Override any gcc2 internal prototype to avoid an error.  */
16644 #ifdef __cplusplus
16645 extern "C"
16646 #endif
16647 /* We use char because int might match the return type of a gcc2
16648    builtin and then its argument prototype would still apply.  */
16649 char shl_load ();
16650 int
16651 main ()
16652 {
16653 shl_load ();
16654   ;
16655   return 0;
16656 }
16657 _ACEOF
16658 rm -f conftest.$ac_objext conftest$ac_exeext
16659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16660   (eval $ac_link) 2>&5
16661   ac_status=$?
16662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); } &&
16664          { ac_try='test -s conftest$ac_exeext'
16665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666   (eval $ac_try) 2>&5
16667   ac_status=$?
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); }; }; then
16670   ac_cv_lib_dld_shl_load=yes
16671 else
16672   echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16674
16675 ac_cv_lib_dld_shl_load=no
16676 fi
16677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16678 LIBS=$ac_check_lib_save_LIBS
16679 fi
16680 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16681 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16682 if test $ac_cv_lib_dld_shl_load = yes; then
16683   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16684 else
16685   echo "$as_me:$LINENO: checking for dlopen" >&5
16686 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16687 if test "${ac_cv_func_dlopen+set}" = set; then
16688   echo $ECHO_N "(cached) $ECHO_C" >&6
16689 else
16690   cat >conftest.$ac_ext <<_ACEOF
16691 #line $LINENO "configure"
16692 /* confdefs.h.  */
16693 _ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h.  */
16697 /* System header to define __stub macros and hopefully few prototypes,
16698     which can conflict with char dlopen (); below.
16699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16700     <limits.h> exists even on freestanding compilers.  */
16701 #ifdef __STDC__
16702 # include <limits.h>
16703 #else
16704 # include <assert.h>
16705 #endif
16706 /* Override any gcc2 internal prototype to avoid an error.  */
16707 #ifdef __cplusplus
16708 extern "C"
16709 {
16710 #endif
16711 /* We use char because int might match the return type of a gcc2
16712    builtin and then its argument prototype would still apply.  */
16713 char dlopen ();
16714 /* The GNU C library defines this for functions which it implements
16715     to always fail with ENOSYS.  Some functions are actually named
16716     something starting with __ and the normal name is an alias.  */
16717 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16718 choke me
16719 #else
16720 char (*f) () = dlopen;
16721 #endif
16722 #ifdef __cplusplus
16723 }
16724 #endif
16725
16726 int
16727 main ()
16728 {
16729 return f != dlopen;
16730   ;
16731   return 0;
16732 }
16733 _ACEOF
16734 rm -f conftest.$ac_objext conftest$ac_exeext
16735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16736   (eval $ac_link) 2>&5
16737   ac_status=$?
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); } &&
16740          { ac_try='test -s conftest$ac_exeext'
16741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742   (eval $ac_try) 2>&5
16743   ac_status=$?
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); }; }; then
16746   ac_cv_func_dlopen=yes
16747 else
16748   echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16750
16751 ac_cv_func_dlopen=no
16752 fi
16753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16754 fi
16755 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16756 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16757 if test $ac_cv_func_dlopen = yes; then
16758   lt_cv_dlopen="dlopen"
16759 else
16760   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16761 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16762 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16763   echo $ECHO_N "(cached) $ECHO_C" >&6
16764 else
16765   ac_check_lib_save_LIBS=$LIBS
16766 LIBS="-ldl  $LIBS"
16767 cat >conftest.$ac_ext <<_ACEOF
16768 #line $LINENO "configure"
16769 /* confdefs.h.  */
16770 _ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h.  */
16774
16775 /* Override any gcc2 internal prototype to avoid an error.  */
16776 #ifdef __cplusplus
16777 extern "C"
16778 #endif
16779 /* We use char because int might match the return type of a gcc2
16780    builtin and then its argument prototype would still apply.  */
16781 char dlopen ();
16782 int
16783 main ()
16784 {
16785 dlopen ();
16786   ;
16787   return 0;
16788 }
16789 _ACEOF
16790 rm -f conftest.$ac_objext conftest$ac_exeext
16791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16792   (eval $ac_link) 2>&5
16793   ac_status=$?
16794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795   (exit $ac_status); } &&
16796          { ac_try='test -s conftest$ac_exeext'
16797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798   (eval $ac_try) 2>&5
16799   ac_status=$?
16800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801   (exit $ac_status); }; }; then
16802   ac_cv_lib_dl_dlopen=yes
16803 else
16804   echo "$as_me: failed program was:" >&5
16805 sed 's/^/| /' conftest.$ac_ext >&5
16806
16807 ac_cv_lib_dl_dlopen=no
16808 fi
16809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16810 LIBS=$ac_check_lib_save_LIBS
16811 fi
16812 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16813 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16814 if test $ac_cv_lib_dl_dlopen = yes; then
16815   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16816 else
16817   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16818 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16819 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16820   echo $ECHO_N "(cached) $ECHO_C" >&6
16821 else
16822   ac_check_lib_save_LIBS=$LIBS
16823 LIBS="-lsvld  $LIBS"
16824 cat >conftest.$ac_ext <<_ACEOF
16825 #line $LINENO "configure"
16826 /* confdefs.h.  */
16827 _ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h.  */
16831
16832 /* Override any gcc2 internal prototype to avoid an error.  */
16833 #ifdef __cplusplus
16834 extern "C"
16835 #endif
16836 /* We use char because int might match the return type of a gcc2
16837    builtin and then its argument prototype would still apply.  */
16838 char dlopen ();
16839 int
16840 main ()
16841 {
16842 dlopen ();
16843   ;
16844   return 0;
16845 }
16846 _ACEOF
16847 rm -f conftest.$ac_objext conftest$ac_exeext
16848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16849   (eval $ac_link) 2>&5
16850   ac_status=$?
16851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852   (exit $ac_status); } &&
16853          { ac_try='test -s conftest$ac_exeext'
16854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855   (eval $ac_try) 2>&5
16856   ac_status=$?
16857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858   (exit $ac_status); }; }; then
16859   ac_cv_lib_svld_dlopen=yes
16860 else
16861   echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16863
16864 ac_cv_lib_svld_dlopen=no
16865 fi
16866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16867 LIBS=$ac_check_lib_save_LIBS
16868 fi
16869 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16870 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16871 if test $ac_cv_lib_svld_dlopen = yes; then
16872   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16873 else
16874   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16875 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16876 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16877   echo $ECHO_N "(cached) $ECHO_C" >&6
16878 else
16879   ac_check_lib_save_LIBS=$LIBS
16880 LIBS="-ldld  $LIBS"
16881 cat >conftest.$ac_ext <<_ACEOF
16882 #line $LINENO "configure"
16883 /* confdefs.h.  */
16884 _ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h.  */
16888
16889 /* Override any gcc2 internal prototype to avoid an error.  */
16890 #ifdef __cplusplus
16891 extern "C"
16892 #endif
16893 /* We use char because int might match the return type of a gcc2
16894    builtin and then its argument prototype would still apply.  */
16895 char dld_link ();
16896 int
16897 main ()
16898 {
16899 dld_link ();
16900   ;
16901   return 0;
16902 }
16903 _ACEOF
16904 rm -f conftest.$ac_objext conftest$ac_exeext
16905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16906   (eval $ac_link) 2>&5
16907   ac_status=$?
16908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909   (exit $ac_status); } &&
16910          { ac_try='test -s conftest$ac_exeext'
16911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16912   (eval $ac_try) 2>&5
16913   ac_status=$?
16914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915   (exit $ac_status); }; }; then
16916   ac_cv_lib_dld_dld_link=yes
16917 else
16918   echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16920
16921 ac_cv_lib_dld_dld_link=no
16922 fi
16923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16924 LIBS=$ac_check_lib_save_LIBS
16925 fi
16926 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16927 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16928 if test $ac_cv_lib_dld_dld_link = yes; then
16929   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16930 fi
16931
16932
16933 fi
16934
16935
16936 fi
16937
16938
16939 fi
16940
16941
16942 fi
16943
16944
16945 fi
16946
16947     ;;
16948   esac
16949
16950   if test "x$lt_cv_dlopen" != xno; then
16951     enable_dlopen=yes
16952   else
16953     enable_dlopen=no
16954   fi
16955
16956   case $lt_cv_dlopen in
16957   dlopen)
16958     save_CPPFLAGS="$CPPFLAGS"
16959     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16960
16961     save_LDFLAGS="$LDFLAGS"
16962     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16963
16964     save_LIBS="$LIBS"
16965     LIBS="$lt_cv_dlopen_libs $LIBS"
16966
16967     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16968 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16969 if test "${lt_cv_dlopen_self+set}" = set; then
16970   echo $ECHO_N "(cached) $ECHO_C" >&6
16971 else
16972           if test "$cross_compiling" = yes; then :
16973   lt_cv_dlopen_self=cross
16974 else
16975   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16976   lt_status=$lt_dlunknown
16977   cat > conftest.$ac_ext <<EOF
16978 #line 16978 "configure"
16979 #include "confdefs.h"
16980
16981 #if HAVE_DLFCN_H
16982 #include <dlfcn.h>
16983 #endif
16984
16985 #include <stdio.h>
16986
16987 #ifdef RTLD_GLOBAL
16988 #  define LT_DLGLOBAL           RTLD_GLOBAL
16989 #else
16990 #  ifdef DL_GLOBAL
16991 #    define LT_DLGLOBAL         DL_GLOBAL
16992 #  else
16993 #    define LT_DLGLOBAL         0
16994 #  endif
16995 #endif
16996
16997 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16998    find out it does not work in some platform. */
16999 #ifndef LT_DLLAZY_OR_NOW
17000 #  ifdef RTLD_LAZY
17001 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17002 #  else
17003 #    ifdef DL_LAZY
17004 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17005 #    else
17006 #      ifdef RTLD_NOW
17007 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17008 #      else
17009 #        ifdef DL_NOW
17010 #          define LT_DLLAZY_OR_NOW      DL_NOW
17011 #        else
17012 #          define LT_DLLAZY_OR_NOW      0
17013 #        endif
17014 #      endif
17015 #    endif
17016 #  endif
17017 #endif
17018
17019 #ifdef __cplusplus
17020 extern "C" void exit (int);
17021 #endif
17022
17023 void fnord() { int i=42;}
17024 int main ()
17025 {
17026   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17027   int status = $lt_dlunknown;
17028
17029   if (self)
17030     {
17031       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17032       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17033       /* dlclose (self); */
17034     }
17035
17036     exit (status);
17037 }
17038 EOF
17039   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17040   (eval $ac_link) 2>&5
17041   ac_status=$?
17042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17044     (./conftest; exit; ) 2>/dev/null
17045     lt_status=$?
17046     case x$lt_status in
17047       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17048       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17049       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17050     esac
17051   else :
17052     # compilation failed
17053     lt_cv_dlopen_self=no
17054   fi
17055 fi
17056 rm -fr conftest*
17057
17058
17059 fi
17060 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17061 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17062
17063     if test "x$lt_cv_dlopen_self" = xyes; then
17064       LDFLAGS="$LDFLAGS $link_static_flag"
17065       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17066 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17067 if test "${lt_cv_dlopen_self_static+set}" = set; then
17068   echo $ECHO_N "(cached) $ECHO_C" >&6
17069 else
17070           if test "$cross_compiling" = yes; then :
17071   lt_cv_dlopen_self_static=cross
17072 else
17073   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17074   lt_status=$lt_dlunknown
17075   cat > conftest.$ac_ext <<EOF
17076 #line 17076 "configure"
17077 #include "confdefs.h"
17078
17079 #if HAVE_DLFCN_H
17080 #include <dlfcn.h>
17081 #endif
17082
17083 #include <stdio.h>
17084
17085 #ifdef RTLD_GLOBAL
17086 #  define LT_DLGLOBAL           RTLD_GLOBAL
17087 #else
17088 #  ifdef DL_GLOBAL
17089 #    define LT_DLGLOBAL         DL_GLOBAL
17090 #  else
17091 #    define LT_DLGLOBAL         0
17092 #  endif
17093 #endif
17094
17095 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17096    find out it does not work in some platform. */
17097 #ifndef LT_DLLAZY_OR_NOW
17098 #  ifdef RTLD_LAZY
17099 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17100 #  else
17101 #    ifdef DL_LAZY
17102 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17103 #    else
17104 #      ifdef RTLD_NOW
17105 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17106 #      else
17107 #        ifdef DL_NOW
17108 #          define LT_DLLAZY_OR_NOW      DL_NOW
17109 #        else
17110 #          define LT_DLLAZY_OR_NOW      0
17111 #        endif
17112 #      endif
17113 #    endif
17114 #  endif
17115 #endif
17116
17117 #ifdef __cplusplus
17118 extern "C" void exit (int);
17119 #endif
17120
17121 void fnord() { int i=42;}
17122 int main ()
17123 {
17124   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17125   int status = $lt_dlunknown;
17126
17127   if (self)
17128     {
17129       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17130       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17131       /* dlclose (self); */
17132     }
17133
17134     exit (status);
17135 }
17136 EOF
17137   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17138   (eval $ac_link) 2>&5
17139   ac_status=$?
17140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17142     (./conftest; exit; ) 2>/dev/null
17143     lt_status=$?
17144     case x$lt_status in
17145       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17146       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17147       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17148     esac
17149   else :
17150     # compilation failed
17151     lt_cv_dlopen_self_static=no
17152   fi
17153 fi
17154 rm -fr conftest*
17155
17156
17157 fi
17158 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17159 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17160     fi
17161
17162     CPPFLAGS="$save_CPPFLAGS"
17163     LDFLAGS="$save_LDFLAGS"
17164     LIBS="$save_LIBS"
17165     ;;
17166   esac
17167
17168   case $lt_cv_dlopen_self in
17169   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17170   *) enable_dlopen_self=unknown ;;
17171   esac
17172
17173   case $lt_cv_dlopen_self_static in
17174   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17175   *) enable_dlopen_self_static=unknown ;;
17176   esac
17177 fi
17178
17179
17180 # The else clause should only fire when bootstrapping the
17181 # libtool distribution, otherwise you forgot to ship ltmain.sh
17182 # with your package, and you will get complaints that there are
17183 # no rules to generate ltmain.sh.
17184 if test -f "$ltmain"; then
17185   # See if we are running on zsh, and set the options which allow our commands through
17186   # without removal of \ escapes.
17187   if test -n "${ZSH_VERSION+set}" ; then
17188     setopt NO_GLOB_SUBST
17189   fi
17190   # Now quote all the things that may contain metacharacters while being
17191   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17192   # variables and quote the copies for generation of the libtool script.
17193   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17194     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17195     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17196     deplibs_check_method reload_flag reload_cmds need_locks \
17197     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17198     lt_cv_sys_global_symbol_to_c_name_address \
17199     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17200     old_postinstall_cmds old_postuninstall_cmds \
17201     compiler_GCJ \
17202     CC_GCJ \
17203     LD_GCJ \
17204     lt_prog_compiler_wl_GCJ \
17205     lt_prog_compiler_pic_GCJ \
17206     lt_prog_compiler_static_GCJ \
17207     lt_prog_compiler_no_builtin_flag_GCJ \
17208     export_dynamic_flag_spec_GCJ \
17209     thread_safe_flag_spec_GCJ \
17210     whole_archive_flag_spec_GCJ \
17211     enable_shared_with_static_runtimes_GCJ \
17212     old_archive_cmds_GCJ \
17213     old_archive_from_new_cmds_GCJ \
17214     predep_objects_GCJ \
17215     postdep_objects_GCJ \
17216     predeps_GCJ \
17217     postdeps_GCJ \
17218     compiler_lib_search_path_GCJ \
17219     archive_cmds_GCJ \
17220     archive_expsym_cmds_GCJ \
17221     postinstall_cmds_GCJ \
17222     postuninstall_cmds_GCJ \
17223     old_archive_from_expsyms_cmds_GCJ \
17224     allow_undefined_flag_GCJ \
17225     no_undefined_flag_GCJ \
17226     export_symbols_cmds_GCJ \
17227     hardcode_libdir_flag_spec_GCJ \
17228     hardcode_libdir_flag_spec_ld_GCJ \
17229     hardcode_libdir_separator_GCJ \
17230     hardcode_automatic_GCJ \
17231     module_cmds_GCJ \
17232     module_expsym_cmds_GCJ \
17233     lt_cv_prog_compiler_c_o_GCJ \
17234     exclude_expsyms_GCJ \
17235     include_expsyms_GCJ; do
17236
17237     case $var in
17238     old_archive_cmds_GCJ | \
17239     old_archive_from_new_cmds_GCJ | \
17240     archive_cmds_GCJ | \
17241     archive_expsym_cmds_GCJ | \
17242     module_cmds_GCJ | \
17243     module_expsym_cmds_GCJ | \
17244     old_archive_from_expsyms_cmds_GCJ | \
17245     export_symbols_cmds_GCJ | \
17246     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17247     postinstall_cmds | postuninstall_cmds | \
17248     old_postinstall_cmds | old_postuninstall_cmds | \
17249     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17250       # Double-quote double-evaled strings.
17251       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17252       ;;
17253     *)
17254       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17255       ;;
17256     esac
17257   done
17258
17259   case $lt_echo in
17260   *'\$0 --fallback-echo"')
17261     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17262     ;;
17263   esac
17264
17265 cfgfile="$ofile"
17266
17267   cat <<__EOF__ >> "$cfgfile"
17268 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17269
17270 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17271
17272 # Shell to use when invoking shell scripts.
17273 SHELL=$lt_SHELL
17274
17275 # Whether or not to build shared libraries.
17276 build_libtool_libs=$enable_shared
17277
17278 # Whether or not to build static libraries.
17279 build_old_libs=$enable_static
17280
17281 # Whether or not to add -lc for building shared libraries.
17282 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17283
17284 # Whether or not to disallow shared libs when runtime libs are static
17285 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17286
17287 # Whether or not to optimize for fast installation.
17288 fast_install=$enable_fast_install
17289
17290 # The host system.
17291 host_alias=$host_alias
17292 host=$host
17293
17294 # An echo program that does not interpret backslashes.
17295 echo=$lt_echo
17296
17297 # The archiver.
17298 AR=$lt_AR
17299 AR_FLAGS=$lt_AR_FLAGS
17300
17301 # A C compiler.
17302 LTCC=$lt_LTCC
17303
17304 # A language-specific compiler.
17305 CC=$lt_compiler_GCJ
17306
17307 # Is the compiler the GNU C compiler?
17308 with_gcc=$GCC_GCJ
17309
17310 # An ERE matcher.
17311 EGREP=$lt_EGREP
17312
17313 # The linker used to build libraries.
17314 LD=$lt_LD_GCJ
17315
17316 # Whether we need hard or soft links.
17317 LN_S=$lt_LN_S
17318
17319 # A BSD-compatible nm program.
17320 NM=$lt_NM
17321
17322 # A symbol stripping program
17323 STRIP=$STRIP
17324
17325 # Used to examine libraries when file_magic_cmd begins "file"
17326 MAGIC_CMD=$MAGIC_CMD
17327
17328 # Used on cygwin: DLL creation program.
17329 DLLTOOL="$DLLTOOL"
17330
17331 # Used on cygwin: object dumper.
17332 OBJDUMP="$OBJDUMP"
17333
17334 # Used on cygwin: assembler.
17335 AS="$AS"
17336
17337 # The name of the directory that contains temporary libtool files.
17338 objdir=$objdir
17339
17340 # How to create reloadable object files.
17341 reload_flag=$lt_reload_flag
17342 reload_cmds=$lt_reload_cmds
17343
17344 # How to pass a linker flag through the compiler.
17345 wl=$lt_lt_prog_compiler_wl_GCJ
17346
17347 # Object file suffix (normally "o").
17348 objext="$ac_objext"
17349
17350 # Old archive suffix (normally "a").
17351 libext="$libext"
17352
17353 # Shared library suffix (normally ".so").
17354 shrext='$shrext'
17355
17356 # Executable file suffix (normally "").
17357 exeext="$exeext"
17358
17359 # Additional compiler flags for building library objects.
17360 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17361 pic_mode=$pic_mode
17362
17363 # What is the maximum length of a command?
17364 max_cmd_len=$lt_cv_sys_max_cmd_len
17365
17366 # Does compiler simultaneously support -c and -o options?
17367 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17368
17369 # Must we lock files when doing compilation ?
17370 need_locks=$lt_need_locks
17371
17372 # Do we need the lib prefix for modules?
17373 need_lib_prefix=$need_lib_prefix
17374
17375 # Do we need a version for libraries?
17376 need_version=$need_version
17377
17378 # Whether dlopen is supported.
17379 dlopen_support=$enable_dlopen
17380
17381 # Whether dlopen of programs is supported.
17382 dlopen_self=$enable_dlopen_self
17383
17384 # Whether dlopen of statically linked programs is supported.
17385 dlopen_self_static=$enable_dlopen_self_static
17386
17387 # Compiler flag to prevent dynamic linking.
17388 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17389
17390 # Compiler flag to turn off builtin functions.
17391 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17392
17393 # Compiler flag to allow reflexive dlopens.
17394 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17395
17396 # Compiler flag to generate shared objects directly from archives.
17397 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17398
17399 # Compiler flag to generate thread-safe objects.
17400 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17401
17402 # Library versioning type.
17403 version_type=$version_type
17404
17405 # Format of library name prefix.
17406 libname_spec=$lt_libname_spec
17407
17408 # List of archive names.  First name is the real one, the rest are links.
17409 # The last name is the one that the linker finds with -lNAME.
17410 library_names_spec=$lt_library_names_spec
17411
17412 # The coded name of the library, if different from the real name.
17413 soname_spec=$lt_soname_spec
17414
17415 # Commands used to build and install an old-style archive.
17416 RANLIB=$lt_RANLIB
17417 old_archive_cmds=$lt_old_archive_cmds_GCJ
17418 old_postinstall_cmds=$lt_old_postinstall_cmds
17419 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17420
17421 # Create an old-style archive from a shared archive.
17422 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17423
17424 # Create a temporary old-style archive to link instead of a shared archive.
17425 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17426
17427 # Commands used to build and install a shared archive.
17428 archive_cmds=$lt_archive_cmds_GCJ
17429 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17430 postinstall_cmds=$lt_postinstall_cmds
17431 postuninstall_cmds=$lt_postuninstall_cmds
17432
17433 # Commands used to build a loadable module (assumed same as above if empty)
17434 module_cmds=$lt_module_cmds_GCJ
17435 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17436
17437 # Commands to strip libraries.
17438 old_striplib=$lt_old_striplib
17439 striplib=$lt_striplib
17440
17441 # Dependencies to place before the objects being linked to create a
17442 # shared library.
17443 predep_objects=$lt_predep_objects_GCJ
17444
17445 # Dependencies to place after the objects being linked to create a
17446 # shared library.
17447 postdep_objects=$lt_postdep_objects_GCJ
17448
17449 # Dependencies to place before the objects being linked to create a
17450 # shared library.
17451 predeps=$lt_predeps_GCJ
17452
17453 # Dependencies to place after the objects being linked to create a
17454 # shared library.
17455 postdeps=$lt_postdeps_GCJ
17456
17457 # The library search path used internally by the compiler when linking
17458 # a shared library.
17459 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17460
17461 # Method to check whether dependent libraries are shared objects.
17462 deplibs_check_method=$lt_deplibs_check_method
17463
17464 # Command to use when deplibs_check_method == file_magic.
17465 file_magic_cmd=$lt_file_magic_cmd
17466
17467 # Flag that allows shared libraries with undefined symbols to be built.
17468 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17469
17470 # Flag that forces no undefined symbols.
17471 no_undefined_flag=$lt_no_undefined_flag_GCJ
17472
17473 # Commands used to finish a libtool library installation in a directory.
17474 finish_cmds=$lt_finish_cmds
17475
17476 # Same as above, but a single script fragment to be evaled but not shown.
17477 finish_eval=$lt_finish_eval
17478
17479 # Take the output of nm and produce a listing of raw symbols and C names.
17480 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17481
17482 # Transform the output of nm in a proper C declaration
17483 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17484
17485 # Transform the output of nm in a C name address pair
17486 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17487
17488 # This is the shared library runtime path variable.
17489 runpath_var=$runpath_var
17490
17491 # This is the shared library path variable.
17492 shlibpath_var=$shlibpath_var
17493
17494 # Is shlibpath searched before the hard-coded library search path?
17495 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17496
17497 # How to hardcode a shared library path into an executable.
17498 hardcode_action=$hardcode_action_GCJ
17499
17500 # Whether we should hardcode library paths into libraries.
17501 hardcode_into_libs=$hardcode_into_libs
17502
17503 # Flag to hardcode \$libdir into a binary during linking.
17504 # This must work even if \$libdir does not exist.
17505 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17506
17507 # If ld is used when linking, flag to hardcode \$libdir into
17508 # a binary during linking. This must work even if \$libdir does
17509 # not exist.
17510 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17511
17512 # Whether we need a single -rpath flag with a separated argument.
17513 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17514
17515 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17516 # resulting binary.
17517 hardcode_direct=$hardcode_direct_GCJ
17518
17519 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17520 # resulting binary.
17521 hardcode_minus_L=$hardcode_minus_L_GCJ
17522
17523 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17524 # the resulting binary.
17525 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17526
17527 # Set to yes if building a shared library automatically hardcodes DIR into the library
17528 # and all subsequent libraries and executables linked against it.
17529 hardcode_automatic=$hardcode_automatic_GCJ
17530
17531 # Variables whose values should be saved in libtool wrapper scripts and
17532 # restored at relink time.
17533 variables_saved_for_relink="$variables_saved_for_relink"
17534
17535 # Whether libtool must link a program against all its dependency libraries.
17536 link_all_deplibs=$link_all_deplibs_GCJ
17537
17538 # Compile-time system search path for libraries
17539 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17540
17541 # Run-time system search path for libraries
17542 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17543
17544 # Fix the shell variable \$srcfile for the compiler.
17545 fix_srcfile_path="$fix_srcfile_path_GCJ"
17546
17547 # Set to yes if exported symbols are required.
17548 always_export_symbols=$always_export_symbols_GCJ
17549
17550 # The commands to list exported symbols.
17551 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17552
17553 # The commands to extract the exported symbol list from a shared archive.
17554 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17555
17556 # Symbols that should not be listed in the preloaded symbols.
17557 exclude_expsyms=$lt_exclude_expsyms_GCJ
17558
17559 # Symbols that must always be exported.
17560 include_expsyms=$lt_include_expsyms_GCJ
17561
17562 # ### END LIBTOOL TAG CONFIG: $tagname
17563
17564 __EOF__
17565
17566
17567 else
17568   # If there is no Makefile yet, we rely on a make rule to execute
17569   # `config.status --recheck' to rerun these tests and create the
17570   # libtool script then.
17571   test -f Makefile && make "$ltmain"
17572 fi
17573
17574
17575 ac_ext=c
17576 ac_cpp='$CPP $CPPFLAGS'
17577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17580
17581 CC="$lt_save_CC"
17582
17583         else
17584           tagname=""
17585         fi
17586         ;;
17587
17588       RC)
17589
17590
17591
17592 # Source file extension for RC test sources.
17593 ac_ext=rc
17594
17595 # Object file extension for compiled RC test sources.
17596 objext=o
17597 objext_RC=$objext
17598
17599 # Code to be used in simple compile tests
17600 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17601
17602 # Code to be used in simple link tests
17603 lt_simple_link_test_code="$lt_simple_compile_test_code"
17604
17605 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17606
17607 # If no C compiler was specified, use CC.
17608 LTCC=${LTCC-"$CC"}
17609
17610 # Allow CC to be a program name with arguments.
17611 compiler=$CC
17612
17613
17614 # Allow CC to be a program name with arguments.
17615 lt_save_CC="$CC"
17616 CC=${RC-"windres"}
17617 compiler=$CC
17618 compiler_RC=$CC
17619 lt_cv_prog_compiler_c_o_RC=yes
17620
17621 # The else clause should only fire when bootstrapping the
17622 # libtool distribution, otherwise you forgot to ship ltmain.sh
17623 # with your package, and you will get complaints that there are
17624 # no rules to generate ltmain.sh.
17625 if test -f "$ltmain"; then
17626   # See if we are running on zsh, and set the options which allow our commands through
17627   # without removal of \ escapes.
17628   if test -n "${ZSH_VERSION+set}" ; then
17629     setopt NO_GLOB_SUBST
17630   fi
17631   # Now quote all the things that may contain metacharacters while being
17632   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17633   # variables and quote the copies for generation of the libtool script.
17634   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17635     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17636     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17637     deplibs_check_method reload_flag reload_cmds need_locks \
17638     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17639     lt_cv_sys_global_symbol_to_c_name_address \
17640     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17641     old_postinstall_cmds old_postuninstall_cmds \
17642     compiler_RC \
17643     CC_RC \
17644     LD_RC \
17645     lt_prog_compiler_wl_RC \
17646     lt_prog_compiler_pic_RC \
17647     lt_prog_compiler_static_RC \
17648     lt_prog_compiler_no_builtin_flag_RC \
17649     export_dynamic_flag_spec_RC \
17650     thread_safe_flag_spec_RC \
17651     whole_archive_flag_spec_RC \
17652     enable_shared_with_static_runtimes_RC \
17653     old_archive_cmds_RC \
17654     old_archive_from_new_cmds_RC \
17655     predep_objects_RC \
17656     postdep_objects_RC \
17657     predeps_RC \
17658     postdeps_RC \
17659     compiler_lib_search_path_RC \
17660     archive_cmds_RC \
17661     archive_expsym_cmds_RC \
17662     postinstall_cmds_RC \
17663     postuninstall_cmds_RC \
17664     old_archive_from_expsyms_cmds_RC \
17665     allow_undefined_flag_RC \
17666     no_undefined_flag_RC \
17667     export_symbols_cmds_RC \
17668     hardcode_libdir_flag_spec_RC \
17669     hardcode_libdir_flag_spec_ld_RC \
17670     hardcode_libdir_separator_RC \
17671     hardcode_automatic_RC \
17672     module_cmds_RC \
17673     module_expsym_cmds_RC \
17674     lt_cv_prog_compiler_c_o_RC \
17675     exclude_expsyms_RC \
17676     include_expsyms_RC; do
17677
17678     case $var in
17679     old_archive_cmds_RC | \
17680     old_archive_from_new_cmds_RC | \
17681     archive_cmds_RC | \
17682     archive_expsym_cmds_RC | \
17683     module_cmds_RC | \
17684     module_expsym_cmds_RC | \
17685     old_archive_from_expsyms_cmds_RC | \
17686     export_symbols_cmds_RC | \
17687     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17688     postinstall_cmds | postuninstall_cmds | \
17689     old_postinstall_cmds | old_postuninstall_cmds | \
17690     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17691       # Double-quote double-evaled strings.
17692       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17693       ;;
17694     *)
17695       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17696       ;;
17697     esac
17698   done
17699
17700   case $lt_echo in
17701   *'\$0 --fallback-echo"')
17702     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17703     ;;
17704   esac
17705
17706 cfgfile="$ofile"
17707
17708   cat <<__EOF__ >> "$cfgfile"
17709 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17710
17711 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17712
17713 # Shell to use when invoking shell scripts.
17714 SHELL=$lt_SHELL
17715
17716 # Whether or not to build shared libraries.
17717 build_libtool_libs=$enable_shared
17718
17719 # Whether or not to build static libraries.
17720 build_old_libs=$enable_static
17721
17722 # Whether or not to add -lc for building shared libraries.
17723 build_libtool_need_lc=$archive_cmds_need_lc_RC
17724
17725 # Whether or not to disallow shared libs when runtime libs are static
17726 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17727
17728 # Whether or not to optimize for fast installation.
17729 fast_install=$enable_fast_install
17730
17731 # The host system.
17732 host_alias=$host_alias
17733 host=$host
17734
17735 # An echo program that does not interpret backslashes.
17736 echo=$lt_echo
17737
17738 # The archiver.
17739 AR=$lt_AR
17740 AR_FLAGS=$lt_AR_FLAGS
17741
17742 # A C compiler.
17743 LTCC=$lt_LTCC
17744
17745 # A language-specific compiler.
17746 CC=$lt_compiler_RC
17747
17748 # Is the compiler the GNU C compiler?
17749 with_gcc=$GCC_RC
17750
17751 # An ERE matcher.
17752 EGREP=$lt_EGREP
17753
17754 # The linker used to build libraries.
17755 LD=$lt_LD_RC
17756
17757 # Whether we need hard or soft links.
17758 LN_S=$lt_LN_S
17759
17760 # A BSD-compatible nm program.
17761 NM=$lt_NM
17762
17763 # A symbol stripping program
17764 STRIP=$STRIP
17765
17766 # Used to examine libraries when file_magic_cmd begins "file"
17767 MAGIC_CMD=$MAGIC_CMD
17768
17769 # Used on cygwin: DLL creation program.
17770 DLLTOOL="$DLLTOOL"
17771
17772 # Used on cygwin: object dumper.
17773 OBJDUMP="$OBJDUMP"
17774
17775 # Used on cygwin: assembler.
17776 AS="$AS"
17777
17778 # The name of the directory that contains temporary libtool files.
17779 objdir=$objdir
17780
17781 # How to create reloadable object files.
17782 reload_flag=$lt_reload_flag
17783 reload_cmds=$lt_reload_cmds
17784
17785 # How to pass a linker flag through the compiler.
17786 wl=$lt_lt_prog_compiler_wl_RC
17787
17788 # Object file suffix (normally "o").
17789 objext="$ac_objext"
17790
17791 # Old archive suffix (normally "a").
17792 libext="$libext"
17793
17794 # Shared library suffix (normally ".so").
17795 shrext='$shrext'
17796
17797 # Executable file suffix (normally "").
17798 exeext="$exeext"
17799
17800 # Additional compiler flags for building library objects.
17801 pic_flag=$lt_lt_prog_compiler_pic_RC
17802 pic_mode=$pic_mode
17803
17804 # What is the maximum length of a command?
17805 max_cmd_len=$lt_cv_sys_max_cmd_len
17806
17807 # Does compiler simultaneously support -c and -o options?
17808 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17809
17810 # Must we lock files when doing compilation ?
17811 need_locks=$lt_need_locks
17812
17813 # Do we need the lib prefix for modules?
17814 need_lib_prefix=$need_lib_prefix
17815
17816 # Do we need a version for libraries?
17817 need_version=$need_version
17818
17819 # Whether dlopen is supported.
17820 dlopen_support=$enable_dlopen
17821
17822 # Whether dlopen of programs is supported.
17823 dlopen_self=$enable_dlopen_self
17824
17825 # Whether dlopen of statically linked programs is supported.
17826 dlopen_self_static=$enable_dlopen_self_static
17827
17828 # Compiler flag to prevent dynamic linking.
17829 link_static_flag=$lt_lt_prog_compiler_static_RC
17830
17831 # Compiler flag to turn off builtin functions.
17832 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17833
17834 # Compiler flag to allow reflexive dlopens.
17835 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17836
17837 # Compiler flag to generate shared objects directly from archives.
17838 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17839
17840 # Compiler flag to generate thread-safe objects.
17841 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17842
17843 # Library versioning type.
17844 version_type=$version_type
17845
17846 # Format of library name prefix.
17847 libname_spec=$lt_libname_spec
17848
17849 # List of archive names.  First name is the real one, the rest are links.
17850 # The last name is the one that the linker finds with -lNAME.
17851 library_names_spec=$lt_library_names_spec
17852
17853 # The coded name of the library, if different from the real name.
17854 soname_spec=$lt_soname_spec
17855
17856 # Commands used to build and install an old-style archive.
17857 RANLIB=$lt_RANLIB
17858 old_archive_cmds=$lt_old_archive_cmds_RC
17859 old_postinstall_cmds=$lt_old_postinstall_cmds
17860 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17861
17862 # Create an old-style archive from a shared archive.
17863 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17864
17865 # Create a temporary old-style archive to link instead of a shared archive.
17866 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17867
17868 # Commands used to build and install a shared archive.
17869 archive_cmds=$lt_archive_cmds_RC
17870 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17871 postinstall_cmds=$lt_postinstall_cmds
17872 postuninstall_cmds=$lt_postuninstall_cmds
17873
17874 # Commands used to build a loadable module (assumed same as above if empty)
17875 module_cmds=$lt_module_cmds_RC
17876 module_expsym_cmds=$lt_module_expsym_cmds_RC
17877
17878 # Commands to strip libraries.
17879 old_striplib=$lt_old_striplib
17880 striplib=$lt_striplib
17881
17882 # Dependencies to place before the objects being linked to create a
17883 # shared library.
17884 predep_objects=$lt_predep_objects_RC
17885
17886 # Dependencies to place after the objects being linked to create a
17887 # shared library.
17888 postdep_objects=$lt_postdep_objects_RC
17889
17890 # Dependencies to place before the objects being linked to create a
17891 # shared library.
17892 predeps=$lt_predeps_RC
17893
17894 # Dependencies to place after the objects being linked to create a
17895 # shared library.
17896 postdeps=$lt_postdeps_RC
17897
17898 # The library search path used internally by the compiler when linking
17899 # a shared library.
17900 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17901
17902 # Method to check whether dependent libraries are shared objects.
17903 deplibs_check_method=$lt_deplibs_check_method
17904
17905 # Command to use when deplibs_check_method == file_magic.
17906 file_magic_cmd=$lt_file_magic_cmd
17907
17908 # Flag that allows shared libraries with undefined symbols to be built.
17909 allow_undefined_flag=$lt_allow_undefined_flag_RC
17910
17911 # Flag that forces no undefined symbols.
17912 no_undefined_flag=$lt_no_undefined_flag_RC
17913
17914 # Commands used to finish a libtool library installation in a directory.
17915 finish_cmds=$lt_finish_cmds
17916
17917 # Same as above, but a single script fragment to be evaled but not shown.
17918 finish_eval=$lt_finish_eval
17919
17920 # Take the output of nm and produce a listing of raw symbols and C names.
17921 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17922
17923 # Transform the output of nm in a proper C declaration
17924 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17925
17926 # Transform the output of nm in a C name address pair
17927 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17928
17929 # This is the shared library runtime path variable.
17930 runpath_var=$runpath_var
17931
17932 # This is the shared library path variable.
17933 shlibpath_var=$shlibpath_var
17934
17935 # Is shlibpath searched before the hard-coded library search path?
17936 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17937
17938 # How to hardcode a shared library path into an executable.
17939 hardcode_action=$hardcode_action_RC
17940
17941 # Whether we should hardcode library paths into libraries.
17942 hardcode_into_libs=$hardcode_into_libs
17943
17944 # Flag to hardcode \$libdir into a binary during linking.
17945 # This must work even if \$libdir does not exist.
17946 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17947
17948 # If ld is used when linking, flag to hardcode \$libdir into
17949 # a binary during linking. This must work even if \$libdir does
17950 # not exist.
17951 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17952
17953 # Whether we need a single -rpath flag with a separated argument.
17954 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17955
17956 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17957 # resulting binary.
17958 hardcode_direct=$hardcode_direct_RC
17959
17960 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17961 # resulting binary.
17962 hardcode_minus_L=$hardcode_minus_L_RC
17963
17964 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17965 # the resulting binary.
17966 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17967
17968 # Set to yes if building a shared library automatically hardcodes DIR into the library
17969 # and all subsequent libraries and executables linked against it.
17970 hardcode_automatic=$hardcode_automatic_RC
17971
17972 # Variables whose values should be saved in libtool wrapper scripts and
17973 # restored at relink time.
17974 variables_saved_for_relink="$variables_saved_for_relink"
17975
17976 # Whether libtool must link a program against all its dependency libraries.
17977 link_all_deplibs=$link_all_deplibs_RC
17978
17979 # Compile-time system search path for libraries
17980 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17981
17982 # Run-time system search path for libraries
17983 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17984
17985 # Fix the shell variable \$srcfile for the compiler.
17986 fix_srcfile_path="$fix_srcfile_path_RC"
17987
17988 # Set to yes if exported symbols are required.
17989 always_export_symbols=$always_export_symbols_RC
17990
17991 # The commands to list exported symbols.
17992 export_symbols_cmds=$lt_export_symbols_cmds_RC
17993
17994 # The commands to extract the exported symbol list from a shared archive.
17995 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17996
17997 # Symbols that should not be listed in the preloaded symbols.
17998 exclude_expsyms=$lt_exclude_expsyms_RC
17999
18000 # Symbols that must always be exported.
18001 include_expsyms=$lt_include_expsyms_RC
18002
18003 # ### END LIBTOOL TAG CONFIG: $tagname
18004
18005 __EOF__
18006
18007
18008 else
18009   # If there is no Makefile yet, we rely on a make rule to execute
18010   # `config.status --recheck' to rerun these tests and create the
18011   # libtool script then.
18012   test -f Makefile && make "$ltmain"
18013 fi
18014
18015
18016 ac_ext=c
18017 ac_cpp='$CPP $CPPFLAGS'
18018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18021
18022 CC="$lt_save_CC"
18023
18024         ;;
18025
18026       *)
18027         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18028 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18029    { (exit 1); exit 1; }; }
18030         ;;
18031       esac
18032
18033       # Append the new tag name to the list of available tags.
18034       if test -n "$tagname" ; then
18035       available_tags="$available_tags $tagname"
18036     fi
18037     fi
18038   done
18039   IFS="$lt_save_ifs"
18040
18041   # Now substitute the updated list of available tags.
18042   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18043     mv "${ofile}T" "$ofile"
18044     chmod +x "$ofile"
18045   else
18046     rm -f "${ofile}T"
18047     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18048 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18049    { (exit 1); exit 1; }; }
18050   fi
18051 fi
18052
18053
18054
18055 # This can be used to rebuild libtool when needed
18056 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18057
18058 # Always use our own libtool.
18059 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18060
18061 # Prevent multiple expansion
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083 # Extract the first word of "dot", so it can be a program name with args.
18084 set dummy dot; ac_word=$2
18085 echo "$as_me:$LINENO: checking for $ac_word" >&5
18086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18087 if test "${ac_cv_path_DOT+set}" = set; then
18088   echo $ECHO_N "(cached) $ECHO_C" >&6
18089 else
18090   case $DOT in
18091   [\\/]* | ?:[\\/]*)
18092   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18093   ;;
18094   *)
18095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18096 for as_dir in $PATH
18097 do
18098   IFS=$as_save_IFS
18099   test -z "$as_dir" && as_dir=.
18100   for ac_exec_ext in '' $ac_executable_extensions; do
18101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18102     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18104     break 2
18105   fi
18106 done
18107 done
18108
18109   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18110   ;;
18111 esac
18112 fi
18113 DOT=$ac_cv_path_DOT
18114
18115 if test -n "$DOT"; then
18116   echo "$as_me:$LINENO: result: $DOT" >&5
18117 echo "${ECHO_T}$DOT" >&6
18118 else
18119   echo "$as_me:$LINENO: result: no" >&5
18120 echo "${ECHO_T}no" >&6
18121 fi
18122
18123 # Extract the first word of "etags", so it can be a program name with args.
18124 set dummy etags; ac_word=$2
18125 echo "$as_me:$LINENO: checking for $ac_word" >&5
18126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18127 if test "${ac_cv_path_ETAGS+set}" = set; then
18128   echo $ECHO_N "(cached) $ECHO_C" >&6
18129 else
18130   case $ETAGS in
18131   [\\/]* | ?:[\\/]*)
18132   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18133   ;;
18134   *)
18135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18136 for as_dir in $PATH
18137 do
18138   IFS=$as_save_IFS
18139   test -z "$as_dir" && as_dir=.
18140   for ac_exec_ext in '' $ac_executable_extensions; do
18141   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18142     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18144     break 2
18145   fi
18146 done
18147 done
18148
18149   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18150   ;;
18151 esac
18152 fi
18153 ETAGS=$ac_cv_path_ETAGS
18154
18155 if test -n "$ETAGS"; then
18156   echo "$as_me:$LINENO: result: $ETAGS" >&5
18157 echo "${ECHO_T}$ETAGS" >&6
18158 else
18159   echo "$as_me:$LINENO: result: no" >&5
18160 echo "${ECHO_T}no" >&6
18161 fi
18162
18163 etags_version=`$ETAGS --version 2>&1`
18164 case "$etags_version" in
18165         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18166         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18167         *) ETAGSFLAGS="" ;;
18168 esac
18169 ETAGSFLAGS=$ETAGSFLAGS
18170
18171 # Extract the first word of "python", so it can be a program name with args.
18172 set dummy python; ac_word=$2
18173 echo "$as_me:$LINENO: checking for $ac_word" >&5
18174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18175 if test "${ac_cv_path_PYTHON+set}" = set; then
18176   echo $ECHO_N "(cached) $ECHO_C" >&6
18177 else
18178   case $PYTHON in
18179   [\\/]* | ?:[\\/]*)
18180   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18181   ;;
18182   *)
18183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18184 for as_dir in $PATH
18185 do
18186   IFS=$as_save_IFS
18187   test -z "$as_dir" && as_dir=.
18188   for ac_exec_ext in '' $ac_executable_extensions; do
18189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18190     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18192     break 2
18193   fi
18194 done
18195 done
18196
18197   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18198   ;;
18199 esac
18200 fi
18201 PYTHON=$ac_cv_path_PYTHON
18202
18203 if test -n "$PYTHON"; then
18204   echo "$as_me:$LINENO: result: $PYTHON" >&5
18205 echo "${ECHO_T}$PYTHON" >&6
18206 else
18207   echo "$as_me:$LINENO: result: no" >&5
18208 echo "${ECHO_T}no" >&6
18209 fi
18210
18211 if test "$PYTHON" = "false"
18212 then
18213         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18214 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18215 fi
18216 # Extract the first word of "qmtest", so it can be a program name with args.
18217 set dummy qmtest; ac_word=$2
18218 echo "$as_me:$LINENO: checking for $ac_word" >&5
18219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18220 if test "${ac_cv_path_QMTEST+set}" = set; then
18221   echo $ECHO_N "(cached) $ECHO_C" >&6
18222 else
18223   case $QMTEST in
18224   [\\/]* | ?:[\\/]*)
18225   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18226   ;;
18227   *)
18228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18229 for as_dir in $PATH
18230 do
18231   IFS=$as_save_IFS
18232   test -z "$as_dir" && as_dir=.
18233   for ac_exec_ext in '' $ac_executable_extensions; do
18234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18235     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18237     break 2
18238   fi
18239 done
18240 done
18241
18242   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18243   ;;
18244 esac
18245 fi
18246 QMTEST=$ac_cv_path_QMTEST
18247
18248 if test -n "$QMTEST"; then
18249   echo "$as_me:$LINENO: result: $QMTEST" >&5
18250 echo "${ECHO_T}$QMTEST" >&6
18251 else
18252   echo "$as_me:$LINENO: result: no" >&5
18253 echo "${ECHO_T}no" >&6
18254 fi
18255
18256 if test "$QMTEST" = "false"
18257 then
18258         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18259 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18260 fi
18261
18262 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18263 pymajor=`echo $pyversion | cut -d. -f1`
18264 pyminor=`echo $pyversion | cut -d. -f2`
18265
18266 if test "$pymajor" -ge "2"
18267 then
18268         if test "$pymajor" -eq "2"
18269         then
18270                 if test "$pyminor" -lt "2"
18271                 then
18272                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18273 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18274                 fi
18275         fi
18276 else
18277         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18278 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18279 fi
18280
18281
18282
18283
18284 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18285 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18286 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18287   echo $ECHO_N "(cached) $ECHO_C" >&6
18288 else
18289   ac_check_lib_save_LIBS=$LIBS
18290 LIBS="-lelf  $LIBS"
18291 cat >conftest.$ac_ext <<_ACEOF
18292 #line $LINENO "configure"
18293 /* confdefs.h.  */
18294 _ACEOF
18295 cat confdefs.h >>conftest.$ac_ext
18296 cat >>conftest.$ac_ext <<_ACEOF
18297 /* end confdefs.h.  */
18298
18299 /* Override any gcc2 internal prototype to avoid an error.  */
18300 #ifdef __cplusplus
18301 extern "C"
18302 #endif
18303 /* We use char because int might match the return type of a gcc2
18304    builtin and then its argument prototype would still apply.  */
18305 char elf_begin ();
18306 int
18307 main ()
18308 {
18309 elf_begin ();
18310   ;
18311   return 0;
18312 }
18313 _ACEOF
18314 rm -f conftest.$ac_objext conftest$ac_exeext
18315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18316   (eval $ac_link) 2>&5
18317   ac_status=$?
18318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319   (exit $ac_status); } &&
18320          { ac_try='test -s conftest$ac_exeext'
18321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18322   (eval $ac_try) 2>&5
18323   ac_status=$?
18324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325   (exit $ac_status); }; }; then
18326   ac_cv_lib_elf_elf_begin=yes
18327 else
18328   echo "$as_me: failed program was:" >&5
18329 sed 's/^/| /' conftest.$ac_ext >&5
18330
18331 ac_cv_lib_elf_elf_begin=no
18332 fi
18333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18334 LIBS=$ac_check_lib_save_LIBS
18335 fi
18336 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18337 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18338 if test $ac_cv_lib_elf_elf_begin = yes; then
18339   cat >>confdefs.h <<_ACEOF
18340 #define HAVE_LIBELF 1
18341 _ACEOF
18342
18343   LIBS="-lelf $LIBS"
18344
18345 fi
18346
18347
18348 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18349 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18350 if test "${ac_cv_search_dlopen+set}" = set; then
18351   echo $ECHO_N "(cached) $ECHO_C" >&6
18352 else
18353   ac_func_search_save_LIBS=$LIBS
18354 ac_cv_search_dlopen=no
18355 cat >conftest.$ac_ext <<_ACEOF
18356 #line $LINENO "configure"
18357 /* confdefs.h.  */
18358 _ACEOF
18359 cat confdefs.h >>conftest.$ac_ext
18360 cat >>conftest.$ac_ext <<_ACEOF
18361 /* end confdefs.h.  */
18362
18363 /* Override any gcc2 internal prototype to avoid an error.  */
18364 #ifdef __cplusplus
18365 extern "C"
18366 #endif
18367 /* We use char because int might match the return type of a gcc2
18368    builtin and then its argument prototype would still apply.  */
18369 char dlopen ();
18370 int
18371 main ()
18372 {
18373 dlopen ();
18374   ;
18375   return 0;
18376 }
18377 _ACEOF
18378 rm -f conftest.$ac_objext conftest$ac_exeext
18379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18380   (eval $ac_link) 2>&5
18381   ac_status=$?
18382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383   (exit $ac_status); } &&
18384          { ac_try='test -s conftest$ac_exeext'
18385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386   (eval $ac_try) 2>&5
18387   ac_status=$?
18388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389   (exit $ac_status); }; }; then
18390   ac_cv_search_dlopen="none required"
18391 else
18392   echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18394
18395 fi
18396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18397 if test "$ac_cv_search_dlopen" = no; then
18398   for ac_lib in dl; do
18399     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18400     cat >conftest.$ac_ext <<_ACEOF
18401 #line $LINENO "configure"
18402 /* confdefs.h.  */
18403 _ACEOF
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h.  */
18407
18408 /* Override any gcc2 internal prototype to avoid an error.  */
18409 #ifdef __cplusplus
18410 extern "C"
18411 #endif
18412 /* We use char because int might match the return type of a gcc2
18413    builtin and then its argument prototype would still apply.  */
18414 char dlopen ();
18415 int
18416 main ()
18417 {
18418 dlopen ();
18419   ;
18420   return 0;
18421 }
18422 _ACEOF
18423 rm -f conftest.$ac_objext conftest$ac_exeext
18424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18425   (eval $ac_link) 2>&5
18426   ac_status=$?
18427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428   (exit $ac_status); } &&
18429          { ac_try='test -s conftest$ac_exeext'
18430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431   (eval $ac_try) 2>&5
18432   ac_status=$?
18433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434   (exit $ac_status); }; }; then
18435   ac_cv_search_dlopen="-l$ac_lib"
18436 break
18437 else
18438   echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18440
18441 fi
18442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18443   done
18444 fi
18445 LIBS=$ac_func_search_save_LIBS
18446 fi
18447 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18448 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18449 if test "$ac_cv_search_dlopen" != no; then
18450   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18451
18452 cat >>confdefs.h <<\_ACEOF
18453 #define HAVE_DLOPEN 1
18454 _ACEOF
18455
18456 else
18457   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18458 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18459 fi
18460
18461
18462 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18463 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18464 if test "${ac_cv_search_mallinfo+set}" = set; then
18465   echo $ECHO_N "(cached) $ECHO_C" >&6
18466 else
18467   ac_func_search_save_LIBS=$LIBS
18468 ac_cv_search_mallinfo=no
18469 cat >conftest.$ac_ext <<_ACEOF
18470 #line $LINENO "configure"
18471 /* confdefs.h.  */
18472 _ACEOF
18473 cat confdefs.h >>conftest.$ac_ext
18474 cat >>conftest.$ac_ext <<_ACEOF
18475 /* end confdefs.h.  */
18476
18477 /* Override any gcc2 internal prototype to avoid an error.  */
18478 #ifdef __cplusplus
18479 extern "C"
18480 #endif
18481 /* We use char because int might match the return type of a gcc2
18482    builtin and then its argument prototype would still apply.  */
18483 char mallinfo ();
18484 int
18485 main ()
18486 {
18487 mallinfo ();
18488   ;
18489   return 0;
18490 }
18491 _ACEOF
18492 rm -f conftest.$ac_objext conftest$ac_exeext
18493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18494   (eval $ac_link) 2>&5
18495   ac_status=$?
18496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497   (exit $ac_status); } &&
18498          { ac_try='test -s conftest$ac_exeext'
18499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500   (eval $ac_try) 2>&5
18501   ac_status=$?
18502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503   (exit $ac_status); }; }; then
18504   ac_cv_search_mallinfo="none required"
18505 else
18506   echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.$ac_ext >&5
18508
18509 fi
18510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18511 if test "$ac_cv_search_mallinfo" = no; then
18512   for ac_lib in malloc; do
18513     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18514     cat >conftest.$ac_ext <<_ACEOF
18515 #line $LINENO "configure"
18516 /* confdefs.h.  */
18517 _ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h.  */
18521
18522 /* Override any gcc2 internal prototype to avoid an error.  */
18523 #ifdef __cplusplus
18524 extern "C"
18525 #endif
18526 /* We use char because int might match the return type of a gcc2
18527    builtin and then its argument prototype would still apply.  */
18528 char mallinfo ();
18529 int
18530 main ()
18531 {
18532 mallinfo ();
18533   ;
18534   return 0;
18535 }
18536 _ACEOF
18537 rm -f conftest.$ac_objext conftest$ac_exeext
18538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18539   (eval $ac_link) 2>&5
18540   ac_status=$?
18541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542   (exit $ac_status); } &&
18543          { ac_try='test -s conftest$ac_exeext'
18544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545   (eval $ac_try) 2>&5
18546   ac_status=$?
18547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548   (exit $ac_status); }; }; then
18549   ac_cv_search_mallinfo="-l$ac_lib"
18550 break
18551 else
18552   echo "$as_me: failed program was:" >&5
18553 sed 's/^/| /' conftest.$ac_ext >&5
18554
18555 fi
18556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18557   done
18558 fi
18559 LIBS=$ac_func_search_save_LIBS
18560 fi
18561 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18562 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18563 if test "$ac_cv_search_mallinfo" != no; then
18564   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18565
18566 cat >>confdefs.h <<\_ACEOF
18567 #define HAVE_MALLINFO 1
18568 _ACEOF
18569
18570 fi
18571
18572
18573 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18574 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18575 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18576   echo $ECHO_N "(cached) $ECHO_C" >&6
18577 else
18578   ac_func_search_save_LIBS=$LIBS
18579 ac_cv_search_pthread_mutex_lock=no
18580 cat >conftest.$ac_ext <<_ACEOF
18581 #line $LINENO "configure"
18582 /* confdefs.h.  */
18583 _ACEOF
18584 cat confdefs.h >>conftest.$ac_ext
18585 cat >>conftest.$ac_ext <<_ACEOF
18586 /* end confdefs.h.  */
18587
18588 /* Override any gcc2 internal prototype to avoid an error.  */
18589 #ifdef __cplusplus
18590 extern "C"
18591 #endif
18592 /* We use char because int might match the return type of a gcc2
18593    builtin and then its argument prototype would still apply.  */
18594 char pthread_mutex_lock ();
18595 int
18596 main ()
18597 {
18598 pthread_mutex_lock ();
18599   ;
18600   return 0;
18601 }
18602 _ACEOF
18603 rm -f conftest.$ac_objext conftest$ac_exeext
18604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18605   (eval $ac_link) 2>&5
18606   ac_status=$?
18607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608   (exit $ac_status); } &&
18609          { ac_try='test -s conftest$ac_exeext'
18610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611   (eval $ac_try) 2>&5
18612   ac_status=$?
18613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614   (exit $ac_status); }; }; then
18615   ac_cv_search_pthread_mutex_lock="none required"
18616 else
18617   echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18619
18620 fi
18621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18622 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18623   for ac_lib in pthread; do
18624     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18625     cat >conftest.$ac_ext <<_ACEOF
18626 #line $LINENO "configure"
18627 /* confdefs.h.  */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h.  */
18632
18633 /* Override any gcc2 internal prototype to avoid an error.  */
18634 #ifdef __cplusplus
18635 extern "C"
18636 #endif
18637 /* We use char because int might match the return type of a gcc2
18638    builtin and then its argument prototype would still apply.  */
18639 char pthread_mutex_lock ();
18640 int
18641 main ()
18642 {
18643 pthread_mutex_lock ();
18644   ;
18645   return 0;
18646 }
18647 _ACEOF
18648 rm -f conftest.$ac_objext conftest$ac_exeext
18649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18650   (eval $ac_link) 2>&5
18651   ac_status=$?
18652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653   (exit $ac_status); } &&
18654          { ac_try='test -s conftest$ac_exeext'
18655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656   (eval $ac_try) 2>&5
18657   ac_status=$?
18658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659   (exit $ac_status); }; }; then
18660   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18661 break
18662 else
18663   echo "$as_me: failed program was:" >&5
18664 sed 's/^/| /' conftest.$ac_ext >&5
18665
18666 fi
18667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18668   done
18669 fi
18670 LIBS=$ac_func_search_save_LIBS
18671 fi
18672 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18673 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18674 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18675   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18676
18677 cat >>confdefs.h <<\_ACEOF
18678 #define HAVE_PTHREAD_MUTEX_LOCK 1
18679 _ACEOF
18680
18681 fi
18682
18683
18684 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18685 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18686 if test "${ac_cv_header_stdc+set}" = set; then
18687   echo $ECHO_N "(cached) $ECHO_C" >&6
18688 else
18689   cat >conftest.$ac_ext <<_ACEOF
18690 #line $LINENO "configure"
18691 /* confdefs.h.  */
18692 _ACEOF
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h.  */
18696 #include <stdlib.h>
18697 #include <stdarg.h>
18698 #include <string.h>
18699 #include <float.h>
18700
18701 int
18702 main ()
18703 {
18704
18705   ;
18706   return 0;
18707 }
18708 _ACEOF
18709 rm -f conftest.$ac_objext
18710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18711   (eval $ac_compile) 2>&5
18712   ac_status=$?
18713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714   (exit $ac_status); } &&
18715          { ac_try='test -s conftest.$ac_objext'
18716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717   (eval $ac_try) 2>&5
18718   ac_status=$?
18719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720   (exit $ac_status); }; }; then
18721   ac_cv_header_stdc=yes
18722 else
18723   echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18725
18726 ac_cv_header_stdc=no
18727 fi
18728 rm -f conftest.$ac_objext conftest.$ac_ext
18729
18730 if test $ac_cv_header_stdc = yes; then
18731   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18732   cat >conftest.$ac_ext <<_ACEOF
18733 #line $LINENO "configure"
18734 /* confdefs.h.  */
18735 _ACEOF
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h.  */
18739 #include <string.h>
18740
18741 _ACEOF
18742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18743   $EGREP "memchr" >/dev/null 2>&1; then
18744   :
18745 else
18746   ac_cv_header_stdc=no
18747 fi
18748 rm -f conftest*
18749
18750 fi
18751
18752 if test $ac_cv_header_stdc = yes; then
18753   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18754   cat >conftest.$ac_ext <<_ACEOF
18755 #line $LINENO "configure"
18756 /* confdefs.h.  */
18757 _ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h.  */
18761 #include <stdlib.h>
18762
18763 _ACEOF
18764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18765   $EGREP "free" >/dev/null 2>&1; then
18766   :
18767 else
18768   ac_cv_header_stdc=no
18769 fi
18770 rm -f conftest*
18771
18772 fi
18773
18774 if test $ac_cv_header_stdc = yes; then
18775   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18776   if test "$cross_compiling" = yes; then
18777   :
18778 else
18779   cat >conftest.$ac_ext <<_ACEOF
18780 #line $LINENO "configure"
18781 /* confdefs.h.  */
18782 _ACEOF
18783 cat confdefs.h >>conftest.$ac_ext
18784 cat >>conftest.$ac_ext <<_ACEOF
18785 /* end confdefs.h.  */
18786 #include <ctype.h>
18787 #if ((' ' & 0x0FF) == 0x020)
18788 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18789 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18790 #else
18791 # define ISLOWER(c) \
18792                    (('a' <= (c) && (c) <= 'i') \
18793                      || ('j' <= (c) && (c) <= 'r') \
18794                      || ('s' <= (c) && (c) <= 'z'))
18795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18796 #endif
18797
18798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18799 int
18800 main ()
18801 {
18802   int i;
18803   for (i = 0; i < 256; i++)
18804     if (XOR (islower (i), ISLOWER (i))
18805         || toupper (i) != TOUPPER (i))
18806       exit(2);
18807   exit (0);
18808 }
18809 _ACEOF
18810 rm -f conftest$ac_exeext
18811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18812   (eval $ac_link) 2>&5
18813   ac_status=$?
18814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815   (exit $ac_status); } && { ac_try='./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   :
18822 else
18823   echo "$as_me: program exited with status $ac_status" >&5
18824 echo "$as_me: failed program was:" >&5
18825 sed 's/^/| /' conftest.$ac_ext >&5
18826
18827 ( exit $ac_status )
18828 ac_cv_header_stdc=no
18829 fi
18830 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18831 fi
18832 fi
18833 fi
18834 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18835 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18836 if test $ac_cv_header_stdc = yes; then
18837
18838 cat >>confdefs.h <<\_ACEOF
18839 #define STDC_HEADERS 1
18840 _ACEOF
18841
18842 fi
18843
18844 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18845 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18846 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18847   echo $ECHO_N "(cached) $ECHO_C" >&6
18848 else
18849   cat >conftest.$ac_ext <<_ACEOF
18850 #line $LINENO "configure"
18851 /* confdefs.h.  */
18852 _ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h.  */
18856 #include <sys/types.h>
18857 #include <sys/wait.h>
18858 #ifndef WEXITSTATUS
18859 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18860 #endif
18861 #ifndef WIFEXITED
18862 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18863 #endif
18864
18865 int
18866 main ()
18867 {
18868   int s;
18869   wait (&s);
18870   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18871   ;
18872   return 0;
18873 }
18874 _ACEOF
18875 rm -f conftest.$ac_objext
18876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18877   (eval $ac_compile) 2>&5
18878   ac_status=$?
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); } &&
18881          { ac_try='test -s conftest.$ac_objext'
18882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883   (eval $ac_try) 2>&5
18884   ac_status=$?
18885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); }; }; then
18887   ac_cv_header_sys_wait_h=yes
18888 else
18889   echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18891
18892 ac_cv_header_sys_wait_h=no
18893 fi
18894 rm -f conftest.$ac_objext conftest.$ac_ext
18895 fi
18896 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18897 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18898 if test $ac_cv_header_sys_wait_h = yes; then
18899
18900 cat >>confdefs.h <<\_ACEOF
18901 #define HAVE_SYS_WAIT_H 1
18902 _ACEOF
18903
18904 fi
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h
18917 do
18918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18920   echo "$as_me:$LINENO: checking for $ac_header" >&5
18921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18923   echo $ECHO_N "(cached) $ECHO_C" >&6
18924 fi
18925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18927 else
18928   # Is the header compilable?
18929 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18931 cat >conftest.$ac_ext <<_ACEOF
18932 #line $LINENO "configure"
18933 /* confdefs.h.  */
18934 _ACEOF
18935 cat confdefs.h >>conftest.$ac_ext
18936 cat >>conftest.$ac_ext <<_ACEOF
18937 /* end confdefs.h.  */
18938 $ac_includes_default
18939 #include <$ac_header>
18940 _ACEOF
18941 rm -f conftest.$ac_objext
18942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18943   (eval $ac_compile) 2>&5
18944   ac_status=$?
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); } &&
18947          { ac_try='test -s conftest.$ac_objext'
18948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18949   (eval $ac_try) 2>&5
18950   ac_status=$?
18951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952   (exit $ac_status); }; }; then
18953   ac_header_compiler=yes
18954 else
18955   echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18957
18958 ac_header_compiler=no
18959 fi
18960 rm -f conftest.$ac_objext conftest.$ac_ext
18961 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18962 echo "${ECHO_T}$ac_header_compiler" >&6
18963
18964 # Is the header present?
18965 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18967 cat >conftest.$ac_ext <<_ACEOF
18968 #line $LINENO "configure"
18969 /* confdefs.h.  */
18970 _ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h.  */
18974 #include <$ac_header>
18975 _ACEOF
18976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18977   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18978   ac_status=$?
18979   grep -v '^ *+' conftest.er1 >conftest.err
18980   rm -f conftest.er1
18981   cat conftest.err >&5
18982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983   (exit $ac_status); } >/dev/null; then
18984   if test -s conftest.err; then
18985     ac_cpp_err=$ac_c_preproc_warn_flag
18986   else
18987     ac_cpp_err=
18988   fi
18989 else
18990   ac_cpp_err=yes
18991 fi
18992 if test -z "$ac_cpp_err"; then
18993   ac_header_preproc=yes
18994 else
18995   echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18997
18998   ac_header_preproc=no
18999 fi
19000 rm -f conftest.err conftest.$ac_ext
19001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19002 echo "${ECHO_T}$ac_header_preproc" >&6
19003
19004 # So?  What about this header?
19005 case $ac_header_compiler:$ac_header_preproc in
19006   yes:no )
19007     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19008 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19009     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19011     (
19012       cat <<\_ASBOX
19013 ## ------------------------------------ ##
19014 ## Report this to bug-autoconf@gnu.org. ##
19015 ## ------------------------------------ ##
19016 _ASBOX
19017     ) |
19018       sed "s/^/$as_me: WARNING:     /" >&2
19019     ;;
19020   no:yes )
19021     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19023     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19027     (
19028       cat <<\_ASBOX
19029 ## ------------------------------------ ##
19030 ## Report this to bug-autoconf@gnu.org. ##
19031 ## ------------------------------------ ##
19032 _ASBOX
19033     ) |
19034       sed "s/^/$as_me: WARNING:     /" >&2
19035     ;;
19036 esac
19037 echo "$as_me:$LINENO: checking for $ac_header" >&5
19038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19040   echo $ECHO_N "(cached) $ECHO_C" >&6
19041 else
19042   eval "$as_ac_Header=$ac_header_preproc"
19043 fi
19044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19046
19047 fi
19048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19049   cat >>confdefs.h <<_ACEOF
19050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19051 _ACEOF
19052
19053 fi
19054
19055 done
19056
19057
19058 echo "$as_me:$LINENO: checking for pid_t" >&5
19059 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19060 if test "${ac_cv_type_pid_t+set}" = set; then
19061   echo $ECHO_N "(cached) $ECHO_C" >&6
19062 else
19063   cat >conftest.$ac_ext <<_ACEOF
19064 #line $LINENO "configure"
19065 /* confdefs.h.  */
19066 _ACEOF
19067 cat confdefs.h >>conftest.$ac_ext
19068 cat >>conftest.$ac_ext <<_ACEOF
19069 /* end confdefs.h.  */
19070 $ac_includes_default
19071 int
19072 main ()
19073 {
19074 if ((pid_t *) 0)
19075   return 0;
19076 if (sizeof (pid_t))
19077   return 0;
19078   ;
19079   return 0;
19080 }
19081 _ACEOF
19082 rm -f conftest.$ac_objext
19083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19084   (eval $ac_compile) 2>&5
19085   ac_status=$?
19086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087   (exit $ac_status); } &&
19088          { ac_try='test -s conftest.$ac_objext'
19089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19090   (eval $ac_try) 2>&5
19091   ac_status=$?
19092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093   (exit $ac_status); }; }; then
19094   ac_cv_type_pid_t=yes
19095 else
19096   echo "$as_me: failed program was:" >&5
19097 sed 's/^/| /' conftest.$ac_ext >&5
19098
19099 ac_cv_type_pid_t=no
19100 fi
19101 rm -f conftest.$ac_objext conftest.$ac_ext
19102 fi
19103 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19104 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19105 if test $ac_cv_type_pid_t = yes; then
19106   :
19107 else
19108
19109 cat >>confdefs.h <<_ACEOF
19110 #define pid_t int
19111 _ACEOF
19112
19113 fi
19114
19115 echo "$as_me:$LINENO: checking for size_t" >&5
19116 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19117 if test "${ac_cv_type_size_t+set}" = set; then
19118   echo $ECHO_N "(cached) $ECHO_C" >&6
19119 else
19120   cat >conftest.$ac_ext <<_ACEOF
19121 #line $LINENO "configure"
19122 /* confdefs.h.  */
19123 _ACEOF
19124 cat confdefs.h >>conftest.$ac_ext
19125 cat >>conftest.$ac_ext <<_ACEOF
19126 /* end confdefs.h.  */
19127 $ac_includes_default
19128 int
19129 main ()
19130 {
19131 if ((size_t *) 0)
19132   return 0;
19133 if (sizeof (size_t))
19134   return 0;
19135   ;
19136   return 0;
19137 }
19138 _ACEOF
19139 rm -f conftest.$ac_objext
19140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19141   (eval $ac_compile) 2>&5
19142   ac_status=$?
19143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144   (exit $ac_status); } &&
19145          { ac_try='test -s conftest.$ac_objext'
19146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19147   (eval $ac_try) 2>&5
19148   ac_status=$?
19149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150   (exit $ac_status); }; }; then
19151   ac_cv_type_size_t=yes
19152 else
19153   echo "$as_me: failed program was:" >&5
19154 sed 's/^/| /' conftest.$ac_ext >&5
19155
19156 ac_cv_type_size_t=no
19157 fi
19158 rm -f conftest.$ac_objext conftest.$ac_ext
19159 fi
19160 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19161 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19162 if test $ac_cv_type_size_t = yes; then
19163   :
19164 else
19165
19166 cat >>confdefs.h <<_ACEOF
19167 #define size_t unsigned
19168 _ACEOF
19169
19170 fi
19171
19172 echo "$as_me:$LINENO: checking for int64_t" >&5
19173 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19174 if test "${ac_cv_type_int64_t+set}" = set; then
19175   echo $ECHO_N "(cached) $ECHO_C" >&6
19176 else
19177   cat >conftest.$ac_ext <<_ACEOF
19178 #line $LINENO "configure"
19179 /* confdefs.h.  */
19180 _ACEOF
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h.  */
19184 $ac_includes_default
19185 int
19186 main ()
19187 {
19188 if ((int64_t *) 0)
19189   return 0;
19190 if (sizeof (int64_t))
19191   return 0;
19192   ;
19193   return 0;
19194 }
19195 _ACEOF
19196 rm -f conftest.$ac_objext
19197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19198   (eval $ac_compile) 2>&5
19199   ac_status=$?
19200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201   (exit $ac_status); } &&
19202          { ac_try='test -s conftest.$ac_objext'
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   ac_cv_type_int64_t=yes
19209 else
19210   echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19212
19213 ac_cv_type_int64_t=no
19214 fi
19215 rm -f conftest.$ac_objext conftest.$ac_ext
19216 fi
19217 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19218 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19219 if test $ac_cv_type_int64_t = yes; then
19220
19221 cat >>confdefs.h <<_ACEOF
19222 #define HAVE_INT64_T 1
19223 _ACEOF
19224
19225
19226 else
19227   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19228 echo "$as_me: error: Type int64_t required but not found" >&2;}
19229    { (exit 1); exit 1; }; }
19230 fi
19231
19232 echo "$as_me:$LINENO: checking for uint64_t" >&5
19233 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19234 if test "${ac_cv_type_uint64_t+set}" = set; then
19235   echo $ECHO_N "(cached) $ECHO_C" >&6
19236 else
19237   cat >conftest.$ac_ext <<_ACEOF
19238 #line $LINENO "configure"
19239 /* confdefs.h.  */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h.  */
19244 $ac_includes_default
19245 int
19246 main ()
19247 {
19248 if ((uint64_t *) 0)
19249   return 0;
19250 if (sizeof (uint64_t))
19251   return 0;
19252   ;
19253   return 0;
19254 }
19255 _ACEOF
19256 rm -f conftest.$ac_objext
19257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19258   (eval $ac_compile) 2>&5
19259   ac_status=$?
19260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); } &&
19262          { ac_try='test -s conftest.$ac_objext'
19263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19264   (eval $ac_try) 2>&5
19265   ac_status=$?
19266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267   (exit $ac_status); }; }; then
19268   ac_cv_type_uint64_t=yes
19269 else
19270   echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19272
19273 ac_cv_type_uint64_t=no
19274 fi
19275 rm -f conftest.$ac_objext conftest.$ac_ext
19276 fi
19277 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19278 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19279 if test $ac_cv_type_uint64_t = yes; then
19280
19281 cat >>confdefs.h <<_ACEOF
19282 #define HAVE_UINT64_T 1
19283 _ACEOF
19284
19285
19286 else
19287   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19288 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19289    { (exit 1); exit 1; }; }
19290 fi
19291
19292 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19293 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19294 if test "${ac_cv_header_time+set}" = set; then
19295   echo $ECHO_N "(cached) $ECHO_C" >&6
19296 else
19297   cat >conftest.$ac_ext <<_ACEOF
19298 #line $LINENO "configure"
19299 /* confdefs.h.  */
19300 _ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h.  */
19304 #include <sys/types.h>
19305 #include <sys/time.h>
19306 #include <time.h>
19307
19308 int
19309 main ()
19310 {
19311 if ((struct tm *) 0)
19312 return 0;
19313   ;
19314   return 0;
19315 }
19316 _ACEOF
19317 rm -f conftest.$ac_objext
19318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19319   (eval $ac_compile) 2>&5
19320   ac_status=$?
19321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322   (exit $ac_status); } &&
19323          { ac_try='test -s conftest.$ac_objext'
19324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325   (eval $ac_try) 2>&5
19326   ac_status=$?
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); }; }; then
19329   ac_cv_header_time=yes
19330 else
19331   echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19333
19334 ac_cv_header_time=no
19335 fi
19336 rm -f conftest.$ac_objext conftest.$ac_ext
19337 fi
19338 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19339 echo "${ECHO_T}$ac_cv_header_time" >&6
19340 if test $ac_cv_header_time = yes; then
19341
19342 cat >>confdefs.h <<\_ACEOF
19343 #define TIME_WITH_SYS_TIME 1
19344 _ACEOF
19345
19346 fi
19347
19348 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19349 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19350 if test "${ac_cv_struct_tm+set}" = set; then
19351   echo $ECHO_N "(cached) $ECHO_C" >&6
19352 else
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 <sys/types.h>
19361 #include <time.h>
19362
19363 int
19364 main ()
19365 {
19366 struct tm *tp; tp->tm_sec;
19367   ;
19368   return 0;
19369 }
19370 _ACEOF
19371 rm -f conftest.$ac_objext
19372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19373   (eval $ac_compile) 2>&5
19374   ac_status=$?
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); } &&
19377          { ac_try='test -s conftest.$ac_objext'
19378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379   (eval $ac_try) 2>&5
19380   ac_status=$?
19381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382   (exit $ac_status); }; }; then
19383   ac_cv_struct_tm=time.h
19384 else
19385   echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19387
19388 ac_cv_struct_tm=sys/time.h
19389 fi
19390 rm -f conftest.$ac_objext conftest.$ac_ext
19391 fi
19392 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19393 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19394 if test $ac_cv_struct_tm = sys/time.h; then
19395
19396 cat >>confdefs.h <<\_ACEOF
19397 #define TM_IN_SYS_TIME 1
19398 _ACEOF
19399
19400 fi
19401
19402
19403
19404
19405
19406         ac_ext=c
19407 ac_cpp='$CPP $CPPFLAGS'
19408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19411
19412         if test "$cross_compiling" = yes; then
19413   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19414 See \`config.log' for more details." >&5
19415 echo "$as_me: error: cannot run test program while cross compiling
19416 See \`config.log' for more details." >&2;}
19417    { (exit 1); exit 1; }; }
19418 else
19419   cat >conftest.$ac_ext <<_ACEOF
19420 #line $LINENO "configure"
19421 /* confdefs.h.  */
19422 _ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h.  */
19426 #include <stdio.h>
19427                                  #include <stdlib.h>
19428 int
19429 main ()
19430 {
19431
19432                                  volatile double A, B;
19433                                  char Buffer[100];
19434                                  A = 1;
19435                                  A /= 10.0;
19436                                  sprintf(Buffer, "%a", A);
19437                                  B = atof(Buffer);
19438                                  if (A != B)
19439                                                          return (1);
19440                                  if (A != 0x1.999999999999ap-4)
19441                                                          return (1);
19442                                  return (0);
19443   ;
19444   return 0;
19445 }
19446 _ACEOF
19447 rm -f conftest$ac_exeext
19448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19449   (eval $ac_link) 2>&5
19450   ac_status=$?
19451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454   (eval $ac_try) 2>&5
19455   ac_status=$?
19456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); }; }; then
19458   ac_c_printf_a=yes
19459 else
19460   echo "$as_me: program exited with status $ac_status" >&5
19461 echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.$ac_ext >&5
19463
19464 ( exit $ac_status )
19465 ac_c_printf_a=no
19466 fi
19467 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19468 fi
19469         ac_ext=c
19470 ac_cpp='$CPP $CPPFLAGS'
19471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19474
19475         if test "$ac_c_printf_a" = "yes"; then
19476
19477 cat >>confdefs.h <<\_ACEOF
19478 #define HAVE_PRINTF_A 1
19479 _ACEOF
19480
19481         fi
19482
19483
19484 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19485 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19486 if test "${ac_cv_cxx_namespaces+set}" = set; then
19487   echo $ECHO_N "(cached) $ECHO_C" >&6
19488 else
19489
19490
19491  ac_ext=cc
19492 ac_cpp='$CXXCPP $CPPFLAGS'
19493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19496
19497  cat >conftest.$ac_ext <<_ACEOF
19498 #line $LINENO "configure"
19499 /* confdefs.h.  */
19500 _ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h.  */
19504 namespace Outer { namespace Inner { int i = 0; }}
19505 int
19506 main ()
19507 {
19508 using namespace Outer::Inner; return i;
19509   ;
19510   return 0;
19511 }
19512 _ACEOF
19513 rm -f conftest.$ac_objext
19514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19515   (eval $ac_compile) 2>&5
19516   ac_status=$?
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); } &&
19519          { ac_try='test -s conftest.$ac_objext'
19520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521   (eval $ac_try) 2>&5
19522   ac_status=$?
19523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524   (exit $ac_status); }; }; then
19525   ac_cv_cxx_namespaces=yes
19526 else
19527   echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19529
19530 ac_cv_cxx_namespaces=no
19531 fi
19532 rm -f conftest.$ac_objext conftest.$ac_ext
19533  ac_ext=c
19534 ac_cpp='$CPP $CPPFLAGS'
19535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19538
19539
19540 fi
19541 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
19542 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
19543 if test "$ac_cv_cxx_namespaces" = yes; then
19544
19545 cat >>confdefs.h <<\_ACEOF
19546 #define HAVE_NAMESPACES
19547 _ACEOF
19548
19549 fi
19550
19551 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
19552 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
19553 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
19554   echo $ECHO_N "(cached) $ECHO_C" >&6
19555 else
19556
19557
19558
19559   ac_ext=cc
19560 ac_cpp='$CXXCPP $CPPFLAGS'
19561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19564
19565   cat >conftest.$ac_ext <<_ACEOF
19566 #line $LINENO "configure"
19567 /* confdefs.h.  */
19568 _ACEOF
19569 cat confdefs.h >>conftest.$ac_ext
19570 cat >>conftest.$ac_ext <<_ACEOF
19571 /* end confdefs.h.  */
19572 #include <ext/hash_map>
19573 #ifdef HAVE_NAMESPACES
19574 using namespace std;
19575 #endif
19576 int
19577 main ()
19578 {
19579 hash_map<int, int> t;
19580   ;
19581   return 0;
19582 }
19583 _ACEOF
19584 rm -f conftest.$ac_objext
19585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19586   (eval $ac_compile) 2>&5
19587   ac_status=$?
19588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589   (exit $ac_status); } &&
19590          { ac_try='test -s conftest.$ac_objext'
19591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592   (eval $ac_try) 2>&5
19593   ac_status=$?
19594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595   (exit $ac_status); }; }; then
19596   ac_cv_cxx_have_std_ext_hash_map=yes
19597 else
19598   echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19600
19601 ac_cv_cxx_have_std_ext_hash_map=no
19602 fi
19603 rm -f conftest.$ac_objext conftest.$ac_ext
19604   ac_ext=c
19605 ac_cpp='$CPP $CPPFLAGS'
19606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19609
19610 fi
19611 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
19612 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
19613  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
19614
19615 cat >>confdefs.h <<\_ACEOF
19616 #define HAVE_STD_EXT_HASH_MAP
19617 _ACEOF
19618
19619  fi
19620  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
19621 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
19622 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
19623   echo $ECHO_N "(cached) $ECHO_C" >&6
19624 else
19625
19626
19627
19628   ac_ext=cc
19629 ac_cpp='$CXXCPP $CPPFLAGS'
19630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19633
19634   cat >conftest.$ac_ext <<_ACEOF
19635 #line $LINENO "configure"
19636 /* confdefs.h.  */
19637 _ACEOF
19638 cat confdefs.h >>conftest.$ac_ext
19639 cat >>conftest.$ac_ext <<_ACEOF
19640 /* end confdefs.h.  */
19641 #include <ext/hash_map>
19642 #ifdef HAVE_NAMESPACES
19643 using namespace __gnu_cxx;
19644 #endif
19645 int
19646 main ()
19647 {
19648 hash_map<int,int> t;
19649   ;
19650   return 0;
19651 }
19652 _ACEOF
19653 rm -f conftest.$ac_objext
19654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19655   (eval $ac_compile) 2>&5
19656   ac_status=$?
19657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658   (exit $ac_status); } &&
19659          { ac_try='test -s conftest.$ac_objext'
19660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661   (eval $ac_try) 2>&5
19662   ac_status=$?
19663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664   (exit $ac_status); }; }; then
19665   ac_cv_cxx_have_gnu_ext_hash_map=yes
19666 else
19667   echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19669
19670 ac_cv_cxx_have_gnu_ext_hash_map=no
19671 fi
19672 rm -f conftest.$ac_objext conftest.$ac_ext
19673   ac_ext=c
19674 ac_cpp='$CPP $CPPFLAGS'
19675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19678
19679 fi
19680 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
19681 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
19682  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
19683
19684 cat >>confdefs.h <<\_ACEOF
19685 #define HAVE_GNU_EXT_HASH_MAP
19686 _ACEOF
19687
19688  fi
19689  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
19690 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
19691 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
19692   echo $ECHO_N "(cached) $ECHO_C" >&6
19693 else
19694
19695
19696
19697   ac_ext=cc
19698 ac_cpp='$CXXCPP $CPPFLAGS'
19699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19702
19703   cat >conftest.$ac_ext <<_ACEOF
19704 #line $LINENO "configure"
19705 /* confdefs.h.  */
19706 _ACEOF
19707 cat confdefs.h >>conftest.$ac_ext
19708 cat >>conftest.$ac_ext <<_ACEOF
19709 /* end confdefs.h.  */
19710 #include <hash_map>
19711 int
19712 main ()
19713 {
19714 hash_map<int,int> t;
19715   ;
19716   return 0;
19717 }
19718 _ACEOF
19719 rm -f conftest.$ac_objext
19720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19721   (eval $ac_compile) 2>&5
19722   ac_status=$?
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); } &&
19725          { ac_try='test -s conftest.$ac_objext'
19726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727   (eval $ac_try) 2>&5
19728   ac_status=$?
19729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730   (exit $ac_status); }; }; then
19731   ac_cv_cxx_have_global_hash_map=yes
19732 else
19733   echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19735
19736 ac_cv_cxx_have_global_hash_map=no
19737 fi
19738 rm -f conftest.$ac_objext conftest.$ac_ext
19739   ac_ext=c
19740 ac_cpp='$CPP $CPPFLAGS'
19741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19744
19745 fi
19746 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
19747 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
19748  if test "$ac_cv_cxx_have_global_hash_map" = yes; then
19749
19750 cat >>confdefs.h <<\_ACEOF
19751 #define HAVE_GLOBAL_HASH_MAP
19752 _ACEOF
19753
19754  fi
19755 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
19756 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
19757 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
19758   echo $ECHO_N "(cached) $ECHO_C" >&6
19759 else
19760
19761
19762
19763   ac_ext=cc
19764 ac_cpp='$CXXCPP $CPPFLAGS'
19765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19768
19769   cat >conftest.$ac_ext <<_ACEOF
19770 #line $LINENO "configure"
19771 /* confdefs.h.  */
19772 _ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h.  */
19776 #include <ext/hash_set>
19777 #ifdef HAVE_NAMESPACES
19778 using namespace std;
19779 #endif
19780 int
19781 main ()
19782 {
19783 hash_set<int> t;
19784   ;
19785   return 0;
19786 }
19787 _ACEOF
19788 rm -f conftest.$ac_objext
19789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19790   (eval $ac_compile) 2>&5
19791   ac_status=$?
19792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793   (exit $ac_status); } &&
19794          { ac_try='test -s conftest.$ac_objext'
19795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796   (eval $ac_try) 2>&5
19797   ac_status=$?
19798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799   (exit $ac_status); }; }; then
19800   ac_cv_cxx_have_std_ext_hash_set=yes
19801 else
19802   echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19804
19805 ac_cv_cxx_have_std_ext_hash_set=no
19806 fi
19807 rm -f conftest.$ac_objext conftest.$ac_ext
19808   ac_ext=c
19809 ac_cpp='$CPP $CPPFLAGS'
19810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19813
19814 fi
19815 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
19816 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
19817  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
19818
19819 cat >>confdefs.h <<\_ACEOF
19820 #define HAVE_STD_EXT_HASH_SET
19821 _ACEOF
19822
19823  fi
19824  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
19825 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
19826 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
19827   echo $ECHO_N "(cached) $ECHO_C" >&6
19828 else
19829
19830
19831
19832   ac_ext=cc
19833 ac_cpp='$CXXCPP $CPPFLAGS'
19834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19837
19838   cat >conftest.$ac_ext <<_ACEOF
19839 #line $LINENO "configure"
19840 /* confdefs.h.  */
19841 _ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h.  */
19845 #include <ext/hash_set>
19846 #ifdef HAVE_NAMESPACES
19847 using namespace __gnu_cxx;
19848 #endif
19849 int
19850 main ()
19851 {
19852 hash_set<int> t;
19853   ;
19854   return 0;
19855 }
19856 _ACEOF
19857 rm -f conftest.$ac_objext
19858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19859   (eval $ac_compile) 2>&5
19860   ac_status=$?
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); } &&
19863          { ac_try='test -s conftest.$ac_objext'
19864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865   (eval $ac_try) 2>&5
19866   ac_status=$?
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); }; }; then
19869   ac_cv_cxx_have_gnu_ext_hash_set=yes
19870 else
19871   echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19873
19874 ac_cv_cxx_have_gnu_ext_hash_set=no
19875 fi
19876 rm -f conftest.$ac_objext conftest.$ac_ext
19877   ac_ext=c
19878 ac_cpp='$CPP $CPPFLAGS'
19879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19882
19883 fi
19884 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
19885 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
19886  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
19887
19888 cat >>confdefs.h <<\_ACEOF
19889 #define HAVE_GNU_EXT_HASH_SET
19890 _ACEOF
19891
19892  fi
19893  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
19894 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
19895 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
19896   echo $ECHO_N "(cached) $ECHO_C" >&6
19897 else
19898
19899
19900
19901   ac_ext=cc
19902 ac_cpp='$CXXCPP $CPPFLAGS'
19903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19906
19907   cat >conftest.$ac_ext <<_ACEOF
19908 #line $LINENO "configure"
19909 /* confdefs.h.  */
19910 _ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h.  */
19914 #include <hash_set>
19915 int
19916 main ()
19917 {
19918 hash_set<int> t; return 0;
19919   ;
19920   return 0;
19921 }
19922 _ACEOF
19923 rm -f conftest.$ac_objext
19924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19925   (eval $ac_compile) 2>&5
19926   ac_status=$?
19927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928   (exit $ac_status); } &&
19929          { ac_try='test -s conftest.$ac_objext'
19930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931   (eval $ac_try) 2>&5
19932   ac_status=$?
19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934   (exit $ac_status); }; }; then
19935   ac_cv_cxx_have_global_hash_set=yes
19936 else
19937   echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.$ac_ext >&5
19939
19940 ac_cv_cxx_have_global_hash_set=no
19941 fi
19942 rm -f conftest.$ac_objext conftest.$ac_ext
19943   ac_ext=c
19944 ac_cpp='$CPP $CPPFLAGS'
19945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19948
19949 fi
19950 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
19951 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
19952  if test "$ac_cv_cxx_have_global_hash_set" = yes; then
19953
19954 cat >>confdefs.h <<\_ACEOF
19955 #define HAVE_GLOBAL_HASH_SET
19956 _ACEOF
19957
19958  fi
19959 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
19960 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
19961 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
19962   echo $ECHO_N "(cached) $ECHO_C" >&6
19963 else
19964
19965
19966
19967   ac_ext=cc
19968 ac_cpp='$CXXCPP $CPPFLAGS'
19969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19972
19973   cat >conftest.$ac_ext <<_ACEOF
19974 #line $LINENO "configure"
19975 /* confdefs.h.  */
19976 _ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h.  */
19980 #include <ext/slist>
19981 #ifdef HAVE_NAMESPACES
19982 using namespace std;
19983 #endif
19984 int
19985 main ()
19986 {
19987 slist<int> s; return 0;
19988   ;
19989   return 0;
19990 }
19991 _ACEOF
19992 rm -f conftest.$ac_objext
19993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19994   (eval $ac_compile) 2>&5
19995   ac_status=$?
19996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997   (exit $ac_status); } &&
19998          { ac_try='test -s conftest.$ac_objext'
19999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000   (eval $ac_try) 2>&5
20001   ac_status=$?
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); }; }; then
20004   ac_cv_cxx_have_ext_slist=std
20005 else
20006   echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20008
20009 ac_cv_cxx_have_ext_slist=no
20010 fi
20011 rm -f conftest.$ac_objext conftest.$ac_ext
20012   cat >conftest.$ac_ext <<_ACEOF
20013 #line $LINENO "configure"
20014 /* confdefs.h.  */
20015 _ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h.  */
20019 #include <ext/slist>
20020 #ifdef HAVE_NAMESPACES
20021 using namespace __gnu_cxx;
20022 #endif
20023 int
20024 main ()
20025 {
20026 slist<int> s; return 0;
20027   ;
20028   return 0;
20029 }
20030 _ACEOF
20031 rm -f conftest.$ac_objext
20032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20033   (eval $ac_compile) 2>&5
20034   ac_status=$?
20035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036   (exit $ac_status); } &&
20037          { ac_try='test -s conftest.$ac_objext'
20038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20039   (eval $ac_try) 2>&5
20040   ac_status=$?
20041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042   (exit $ac_status); }; }; then
20043   ac_cv_cxx_have_ext_slist=gnu
20044 else
20045   echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20047
20048 ac_cv_cxx_have_ext_slist=no
20049 fi
20050 rm -f conftest.$ac_objext conftest.$ac_ext
20051
20052   ac_ext=c
20053 ac_cpp='$CPP $CPPFLAGS'
20054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20057
20058
20059 fi
20060 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20061 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20062 if test "$ac_cv_cxx_have_ext_slist" = std; then
20063
20064 cat >>confdefs.h <<\_ACEOF
20065 #define HAVE_EXT_SLIST std
20066 _ACEOF
20067
20068 fi
20069 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20070
20071 cat >>confdefs.h <<\_ACEOF
20072 #define HAVE_EXT_SLIST gnu
20073 _ACEOF
20074
20075 fi
20076
20077 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20078 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20079 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20080   echo $ECHO_N "(cached) $ECHO_C" >&6
20081 else
20082
20083
20084
20085   ac_ext=cc
20086 ac_cpp='$CXXCPP $CPPFLAGS'
20087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20090
20091   cat >conftest.$ac_ext <<_ACEOF
20092 #line $LINENO "configure"
20093 /* confdefs.h.  */
20094 _ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h.  */
20098 #include <iterator>
20099 #ifdef HAVE_NAMESPACES
20100 using namespace std;
20101 #endif
20102 int
20103 main ()
20104 {
20105 iterator<int,int,int> t; return 0;
20106   ;
20107   return 0;
20108 }
20109 _ACEOF
20110 rm -f conftest.$ac_objext
20111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20112   (eval $ac_compile) 2>&5
20113   ac_status=$?
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); } &&
20116          { ac_try='test -s conftest.$ac_objext'
20117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118   (eval $ac_try) 2>&5
20119   ac_status=$?
20120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121   (exit $ac_status); }; }; then
20122   ac_cv_cxx_have_std_iterator=yes
20123 else
20124   echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20126
20127 ac_cv_cxx_have_std_iterator=no
20128 fi
20129 rm -f conftest.$ac_objext conftest.$ac_ext
20130   ac_ext=c
20131 ac_cpp='$CPP $CPPFLAGS'
20132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20135
20136
20137 fi
20138 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20139 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20140 if test "$ac_cv_cxx_have_std_iterator" = yes; then
20141
20142 cat >>confdefs.h <<\_ACEOF
20143 #define HAVE_STD_ITERATOR
20144 _ACEOF
20145
20146 fi
20147
20148 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20149 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20150 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20151   echo $ECHO_N "(cached) $ECHO_C" >&6
20152 else
20153
20154
20155
20156   ac_ext=cc
20157 ac_cpp='$CXXCPP $CPPFLAGS'
20158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20161
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 #include <iterator>
20170 #ifdef HAVE_NAMESPACES
20171 using namespace std;
20172 #endif
20173 int
20174 main ()
20175 {
20176 bidirectional_iterator<int,int> t; 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_cxx_have_bi_iterator=yes
20194 else
20195   echo "$as_me: failed program was:" >&5
20196 sed 's/^/| /' conftest.$ac_ext >&5
20197
20198 ac_cv_cxx_have_bi_iterator=no
20199 fi
20200 rm -f conftest.$ac_objext conftest.$ac_ext
20201   ac_ext=c
20202 ac_cpp='$CPP $CPPFLAGS'
20203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20206
20207
20208 fi
20209 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20210 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20211 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20212
20213 cat >>confdefs.h <<\_ACEOF
20214 #define HAVE_BI_ITERATOR
20215 _ACEOF
20216
20217 fi
20218
20219 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20220 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20221 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20222   echo $ECHO_N "(cached) $ECHO_C" >&6
20223 else
20224
20225
20226
20227   ac_ext=cc
20228 ac_cpp='$CXXCPP $CPPFLAGS'
20229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20232
20233   cat >conftest.$ac_ext <<_ACEOF
20234 #line $LINENO "configure"
20235 /* confdefs.h.  */
20236 _ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h.  */
20240 #include <iterator>
20241 #ifdef HAVE_NAMESPACES
20242 using namespace std;
20243 #endif
20244 int
20245 main ()
20246 {
20247 forward_iterator<int,int> t; return 0;
20248   ;
20249   return 0;
20250 }
20251 _ACEOF
20252 rm -f conftest.$ac_objext
20253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20254   (eval $ac_compile) 2>&5
20255   ac_status=$?
20256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257   (exit $ac_status); } &&
20258          { ac_try='test -s conftest.$ac_objext'
20259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20260   (eval $ac_try) 2>&5
20261   ac_status=$?
20262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263   (exit $ac_status); }; }; then
20264   ac_cv_cxx_have_fwd_iterator=yes
20265 else
20266   echo "$as_me: failed program was:" >&5
20267 sed 's/^/| /' conftest.$ac_ext >&5
20268
20269 ac_cv_cxx_have_fwd_iterator=no
20270 fi
20271 rm -f conftest.$ac_objext conftest.$ac_ext
20272   ac_ext=c
20273 ac_cpp='$CPP $CPPFLAGS'
20274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20277
20278
20279 fi
20280 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20281 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20282 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20283
20284 cat >>confdefs.h <<\_ACEOF
20285 #define HAVE_FWD_ITERATOR
20286 _ACEOF
20287
20288 fi
20289
20290
20291 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20292 # for constant arguments.  Useless!
20293 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20294 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20295 if test "${ac_cv_working_alloca_h+set}" = set; then
20296   echo $ECHO_N "(cached) $ECHO_C" >&6
20297 else
20298   cat >conftest.$ac_ext <<_ACEOF
20299 #line $LINENO "configure"
20300 /* confdefs.h.  */
20301 _ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h.  */
20305 #include <alloca.h>
20306 int
20307 main ()
20308 {
20309 char *p = (char *) alloca (2 * sizeof (int));
20310   ;
20311   return 0;
20312 }
20313 _ACEOF
20314 rm -f conftest.$ac_objext conftest$ac_exeext
20315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20316   (eval $ac_link) 2>&5
20317   ac_status=$?
20318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319   (exit $ac_status); } &&
20320          { ac_try='test -s conftest$ac_exeext'
20321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322   (eval $ac_try) 2>&5
20323   ac_status=$?
20324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325   (exit $ac_status); }; }; then
20326   ac_cv_working_alloca_h=yes
20327 else
20328   echo "$as_me: failed program was:" >&5
20329 sed 's/^/| /' conftest.$ac_ext >&5
20330
20331 ac_cv_working_alloca_h=no
20332 fi
20333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20334 fi
20335 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20336 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20337 if test $ac_cv_working_alloca_h = yes; then
20338
20339 cat >>confdefs.h <<\_ACEOF
20340 #define HAVE_ALLOCA_H 1
20341 _ACEOF
20342
20343 fi
20344
20345 echo "$as_me:$LINENO: checking for alloca" >&5
20346 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20347 if test "${ac_cv_func_alloca_works+set}" = set; then
20348   echo $ECHO_N "(cached) $ECHO_C" >&6
20349 else
20350   cat >conftest.$ac_ext <<_ACEOF
20351 #line $LINENO "configure"
20352 /* confdefs.h.  */
20353 _ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h.  */
20357 #ifdef __GNUC__
20358 # define alloca __builtin_alloca
20359 #else
20360 # ifdef _MSC_VER
20361 #  include <malloc.h>
20362 #  define alloca _alloca
20363 # else
20364 #  if HAVE_ALLOCA_H
20365 #   include <alloca.h>
20366 #  else
20367 #   ifdef _AIX
20368  #pragma alloca
20369 #   else
20370 #    ifndef alloca /* predefined by HP cc +Olibcalls */
20371 char *alloca ();
20372 #    endif
20373 #   endif
20374 #  endif
20375 # endif
20376 #endif
20377
20378 int
20379 main ()
20380 {
20381 char *p = (char *) alloca (1);
20382   ;
20383   return 0;
20384 }
20385 _ACEOF
20386 rm -f conftest.$ac_objext conftest$ac_exeext
20387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20388   (eval $ac_link) 2>&5
20389   ac_status=$?
20390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391   (exit $ac_status); } &&
20392          { ac_try='test -s conftest$ac_exeext'
20393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394   (eval $ac_try) 2>&5
20395   ac_status=$?
20396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); }; }; then
20398   ac_cv_func_alloca_works=yes
20399 else
20400   echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20402
20403 ac_cv_func_alloca_works=no
20404 fi
20405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20406 fi
20407 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20408 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20409
20410 if test $ac_cv_func_alloca_works = yes; then
20411
20412 cat >>confdefs.h <<\_ACEOF
20413 #define HAVE_ALLOCA 1
20414 _ACEOF
20415
20416 else
20417   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20418 # that cause trouble.  Some versions do not even contain alloca or
20419 # contain a buggy version.  If you still want to use their alloca,
20420 # use ar to extract alloca.o from them instead of compiling alloca.c.
20421
20422 ALLOCA=alloca.$ac_objext
20423
20424 cat >>confdefs.h <<\_ACEOF
20425 #define C_ALLOCA 1
20426 _ACEOF
20427
20428
20429 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20430 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20431 if test "${ac_cv_os_cray+set}" = set; then
20432   echo $ECHO_N "(cached) $ECHO_C" >&6
20433 else
20434   cat >conftest.$ac_ext <<_ACEOF
20435 #line $LINENO "configure"
20436 /* confdefs.h.  */
20437 _ACEOF
20438 cat confdefs.h >>conftest.$ac_ext
20439 cat >>conftest.$ac_ext <<_ACEOF
20440 /* end confdefs.h.  */
20441 #if defined(CRAY) && ! defined(CRAY2)
20442 webecray
20443 #else
20444 wenotbecray
20445 #endif
20446
20447 _ACEOF
20448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20449   $EGREP "webecray" >/dev/null 2>&1; then
20450   ac_cv_os_cray=yes
20451 else
20452   ac_cv_os_cray=no
20453 fi
20454 rm -f conftest*
20455
20456 fi
20457 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20458 echo "${ECHO_T}$ac_cv_os_cray" >&6
20459 if test $ac_cv_os_cray = yes; then
20460   for ac_func in _getb67 GETB67 getb67; do
20461     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20462 echo "$as_me:$LINENO: checking for $ac_func" >&5
20463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20464 if eval "test \"\${$as_ac_var+set}\" = set"; then
20465   echo $ECHO_N "(cached) $ECHO_C" >&6
20466 else
20467   cat >conftest.$ac_ext <<_ACEOF
20468 #line $LINENO "configure"
20469 /* confdefs.h.  */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h.  */
20474 /* System header to define __stub macros and hopefully few prototypes,
20475     which can conflict with char $ac_func (); below.
20476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20477     <limits.h> exists even on freestanding compilers.  */
20478 #ifdef __STDC__
20479 # include <limits.h>
20480 #else
20481 # include <assert.h>
20482 #endif
20483 /* Override any gcc2 internal prototype to avoid an error.  */
20484 #ifdef __cplusplus
20485 extern "C"
20486 {
20487 #endif
20488 /* We use char because int might match the return type of a gcc2
20489    builtin and then its argument prototype would still apply.  */
20490 char $ac_func ();
20491 /* The GNU C library defines this for functions which it implements
20492     to always fail with ENOSYS.  Some functions are actually named
20493     something starting with __ and the normal name is an alias.  */
20494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20495 choke me
20496 #else
20497 char (*f) () = $ac_func;
20498 #endif
20499 #ifdef __cplusplus
20500 }
20501 #endif
20502
20503 int
20504 main ()
20505 {
20506 return f != $ac_func;
20507   ;
20508   return 0;
20509 }
20510 _ACEOF
20511 rm -f conftest.$ac_objext conftest$ac_exeext
20512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20513   (eval $ac_link) 2>&5
20514   ac_status=$?
20515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516   (exit $ac_status); } &&
20517          { ac_try='test -s conftest$ac_exeext'
20518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20519   (eval $ac_try) 2>&5
20520   ac_status=$?
20521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522   (exit $ac_status); }; }; then
20523   eval "$as_ac_var=yes"
20524 else
20525   echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20527
20528 eval "$as_ac_var=no"
20529 fi
20530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20531 fi
20532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20534 if test `eval echo '${'$as_ac_var'}'` = yes; then
20535
20536 cat >>confdefs.h <<_ACEOF
20537 #define CRAY_STACKSEG_END $ac_func
20538 _ACEOF
20539
20540     break
20541 fi
20542
20543   done
20544 fi
20545
20546 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20547 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20548 if test "${ac_cv_c_stack_direction+set}" = set; then
20549   echo $ECHO_N "(cached) $ECHO_C" >&6
20550 else
20551   if test "$cross_compiling" = yes; then
20552   ac_cv_c_stack_direction=0
20553 else
20554   cat >conftest.$ac_ext <<_ACEOF
20555 #line $LINENO "configure"
20556 /* confdefs.h.  */
20557 _ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h.  */
20561 int
20562 find_stack_direction ()
20563 {
20564   static char *addr = 0;
20565   auto char dummy;
20566   if (addr == 0)
20567     {
20568       addr = &dummy;
20569       return find_stack_direction ();
20570     }
20571   else
20572     return (&dummy > addr) ? 1 : -1;
20573 }
20574
20575 int
20576 main ()
20577 {
20578   exit (find_stack_direction () < 0);
20579 }
20580 _ACEOF
20581 rm -f conftest$ac_exeext
20582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20583   (eval $ac_link) 2>&5
20584   ac_status=$?
20585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20588   (eval $ac_try) 2>&5
20589   ac_status=$?
20590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591   (exit $ac_status); }; }; then
20592   ac_cv_c_stack_direction=1
20593 else
20594   echo "$as_me: program exited with status $ac_status" >&5
20595 echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20597
20598 ( exit $ac_status )
20599 ac_cv_c_stack_direction=-1
20600 fi
20601 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20602 fi
20603 fi
20604 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20605 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20606
20607 cat >>confdefs.h <<_ACEOF
20608 #define STACK_DIRECTION $ac_cv_c_stack_direction
20609 _ACEOF
20610
20611
20612 fi
20613
20614
20615
20616 for ac_header in stdlib.h unistd.h
20617 do
20618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20620   echo "$as_me:$LINENO: checking for $ac_header" >&5
20621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20623   echo $ECHO_N "(cached) $ECHO_C" >&6
20624 fi
20625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20627 else
20628   # Is the header compilable?
20629 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20631 cat >conftest.$ac_ext <<_ACEOF
20632 #line $LINENO "configure"
20633 /* confdefs.h.  */
20634 _ACEOF
20635 cat confdefs.h >>conftest.$ac_ext
20636 cat >>conftest.$ac_ext <<_ACEOF
20637 /* end confdefs.h.  */
20638 $ac_includes_default
20639 #include <$ac_header>
20640 _ACEOF
20641 rm -f conftest.$ac_objext
20642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20643   (eval $ac_compile) 2>&5
20644   ac_status=$?
20645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646   (exit $ac_status); } &&
20647          { ac_try='test -s conftest.$ac_objext'
20648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20649   (eval $ac_try) 2>&5
20650   ac_status=$?
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); }; }; then
20653   ac_header_compiler=yes
20654 else
20655   echo "$as_me: failed program was:" >&5
20656 sed 's/^/| /' conftest.$ac_ext >&5
20657
20658 ac_header_compiler=no
20659 fi
20660 rm -f conftest.$ac_objext conftest.$ac_ext
20661 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20662 echo "${ECHO_T}$ac_header_compiler" >&6
20663
20664 # Is the header present?
20665 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20667 cat >conftest.$ac_ext <<_ACEOF
20668 #line $LINENO "configure"
20669 /* confdefs.h.  */
20670 _ACEOF
20671 cat confdefs.h >>conftest.$ac_ext
20672 cat >>conftest.$ac_ext <<_ACEOF
20673 /* end confdefs.h.  */
20674 #include <$ac_header>
20675 _ACEOF
20676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20677   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20678   ac_status=$?
20679   grep -v '^ *+' conftest.er1 >conftest.err
20680   rm -f conftest.er1
20681   cat conftest.err >&5
20682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683   (exit $ac_status); } >/dev/null; then
20684   if test -s conftest.err; then
20685     ac_cpp_err=$ac_c_preproc_warn_flag
20686   else
20687     ac_cpp_err=
20688   fi
20689 else
20690   ac_cpp_err=yes
20691 fi
20692 if test -z "$ac_cpp_err"; then
20693   ac_header_preproc=yes
20694 else
20695   echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20697
20698   ac_header_preproc=no
20699 fi
20700 rm -f conftest.err conftest.$ac_ext
20701 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20702 echo "${ECHO_T}$ac_header_preproc" >&6
20703
20704 # So?  What about this header?
20705 case $ac_header_compiler:$ac_header_preproc in
20706   yes:no )
20707     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20711     (
20712       cat <<\_ASBOX
20713 ## ------------------------------------ ##
20714 ## Report this to bug-autoconf@gnu.org. ##
20715 ## ------------------------------------ ##
20716 _ASBOX
20717     ) |
20718       sed "s/^/$as_me: WARNING:     /" >&2
20719     ;;
20720   no:yes )
20721     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20723     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20724 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20727     (
20728       cat <<\_ASBOX
20729 ## ------------------------------------ ##
20730 ## Report this to bug-autoconf@gnu.org. ##
20731 ## ------------------------------------ ##
20732 _ASBOX
20733     ) |
20734       sed "s/^/$as_me: WARNING:     /" >&2
20735     ;;
20736 esac
20737 echo "$as_me:$LINENO: checking for $ac_header" >&5
20738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20740   echo $ECHO_N "(cached) $ECHO_C" >&6
20741 else
20742   eval "$as_ac_Header=$ac_header_preproc"
20743 fi
20744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20746
20747 fi
20748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20749   cat >>confdefs.h <<_ACEOF
20750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20751 _ACEOF
20752
20753 fi
20754
20755 done
20756
20757
20758 for ac_func in getpagesize
20759 do
20760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20761 echo "$as_me:$LINENO: checking for $ac_func" >&5
20762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20763 if eval "test \"\${$as_ac_var+set}\" = set"; then
20764   echo $ECHO_N "(cached) $ECHO_C" >&6
20765 else
20766   cat >conftest.$ac_ext <<_ACEOF
20767 #line $LINENO "configure"
20768 /* confdefs.h.  */
20769 _ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h.  */
20773 /* System header to define __stub macros and hopefully few prototypes,
20774     which can conflict with char $ac_func (); below.
20775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20776     <limits.h> exists even on freestanding compilers.  */
20777 #ifdef __STDC__
20778 # include <limits.h>
20779 #else
20780 # include <assert.h>
20781 #endif
20782 /* Override any gcc2 internal prototype to avoid an error.  */
20783 #ifdef __cplusplus
20784 extern "C"
20785 {
20786 #endif
20787 /* We use char because int might match the return type of a gcc2
20788    builtin and then its argument prototype would still apply.  */
20789 char $ac_func ();
20790 /* The GNU C library defines this for functions which it implements
20791     to always fail with ENOSYS.  Some functions are actually named
20792     something starting with __ and the normal name is an alias.  */
20793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20794 choke me
20795 #else
20796 char (*f) () = $ac_func;
20797 #endif
20798 #ifdef __cplusplus
20799 }
20800 #endif
20801
20802 int
20803 main ()
20804 {
20805 return f != $ac_func;
20806   ;
20807   return 0;
20808 }
20809 _ACEOF
20810 rm -f conftest.$ac_objext conftest$ac_exeext
20811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20812   (eval $ac_link) 2>&5
20813   ac_status=$?
20814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815   (exit $ac_status); } &&
20816          { ac_try='test -s conftest$ac_exeext'
20817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818   (eval $ac_try) 2>&5
20819   ac_status=$?
20820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821   (exit $ac_status); }; }; then
20822   eval "$as_ac_var=yes"
20823 else
20824   echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20826
20827 eval "$as_ac_var=no"
20828 fi
20829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20830 fi
20831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20833 if test `eval echo '${'$as_ac_var'}'` = yes; then
20834   cat >>confdefs.h <<_ACEOF
20835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20836 _ACEOF
20837
20838 fi
20839 done
20840
20841 echo "$as_me:$LINENO: checking for working mmap" >&5
20842 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20843 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20844   echo $ECHO_N "(cached) $ECHO_C" >&6
20845 else
20846   if test "$cross_compiling" = yes; then
20847   ac_cv_func_mmap_fixed_mapped=no
20848 else
20849   cat >conftest.$ac_ext <<_ACEOF
20850 #line $LINENO "configure"
20851 /* confdefs.h.  */
20852 _ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h.  */
20856 $ac_includes_default
20857 /* malloc might have been renamed as rpl_malloc. */
20858 #undef malloc
20859
20860 /* Thanks to Mike Haertel and Jim Avera for this test.
20861    Here is a matrix of mmap possibilities:
20862         mmap private not fixed
20863         mmap private fixed at somewhere currently unmapped
20864         mmap private fixed at somewhere already mapped
20865         mmap shared not fixed
20866         mmap shared fixed at somewhere currently unmapped
20867         mmap shared fixed at somewhere already mapped
20868    For private mappings, we should verify that changes cannot be read()
20869    back from the file, nor mmap's back from the file at a different
20870    address.  (There have been systems where private was not correctly
20871    implemented like the infamous i386 svr4.0, and systems where the
20872    VM page cache was not coherent with the file system buffer cache
20873    like early versions of FreeBSD and possibly contemporary NetBSD.)
20874    For shared mappings, we should conversely verify that changes get
20875    propagated back to all the places they're supposed to be.
20876
20877    Grep wants private fixed already mapped.
20878    The main things grep needs to know about mmap are:
20879    * does it exist and is it safe to write into the mmap'd area
20880    * how to use it (BSD variants)  */
20881
20882 #include <fcntl.h>
20883 #include <sys/mman.h>
20884
20885 #if !STDC_HEADERS && !HAVE_STDLIB_H
20886 char *malloc ();
20887 #endif
20888
20889 /* This mess was copied from the GNU getpagesize.h.  */
20890 #if !HAVE_GETPAGESIZE
20891 /* Assume that all systems that can run configure have sys/param.h.  */
20892 # if !HAVE_SYS_PARAM_H
20893 #  define HAVE_SYS_PARAM_H 1
20894 # endif
20895
20896 # ifdef _SC_PAGESIZE
20897 #  define getpagesize() sysconf(_SC_PAGESIZE)
20898 # else /* no _SC_PAGESIZE */
20899 #  if HAVE_SYS_PARAM_H
20900 #   include <sys/param.h>
20901 #   ifdef EXEC_PAGESIZE
20902 #    define getpagesize() EXEC_PAGESIZE
20903 #   else /* no EXEC_PAGESIZE */
20904 #    ifdef NBPG
20905 #     define getpagesize() NBPG * CLSIZE
20906 #     ifndef CLSIZE
20907 #      define CLSIZE 1
20908 #     endif /* no CLSIZE */
20909 #    else /* no NBPG */
20910 #     ifdef NBPC
20911 #      define getpagesize() NBPC
20912 #     else /* no NBPC */
20913 #      ifdef PAGESIZE
20914 #       define getpagesize() PAGESIZE
20915 #      endif /* PAGESIZE */
20916 #     endif /* no NBPC */
20917 #    endif /* no NBPG */
20918 #   endif /* no EXEC_PAGESIZE */
20919 #  else /* no HAVE_SYS_PARAM_H */
20920 #   define getpagesize() 8192   /* punt totally */
20921 #  endif /* no HAVE_SYS_PARAM_H */
20922 # endif /* no _SC_PAGESIZE */
20923
20924 #endif /* no HAVE_GETPAGESIZE */
20925
20926 int
20927 main ()
20928 {
20929   char *data, *data2, *data3;
20930   int i, pagesize;
20931   int fd;
20932
20933   pagesize = getpagesize ();
20934
20935   /* First, make a file with some known garbage in it. */
20936   data = (char *) malloc (pagesize);
20937   if (!data)
20938     exit (1);
20939   for (i = 0; i < pagesize; ++i)
20940     *(data + i) = rand ();
20941   umask (0);
20942   fd = creat ("conftest.mmap", 0600);
20943   if (fd < 0)
20944     exit (1);
20945   if (write (fd, data, pagesize) != pagesize)
20946     exit (1);
20947   close (fd);
20948
20949   /* Next, try to mmap the file at a fixed address which already has
20950      something else allocated at it.  If we can, also make sure that
20951      we see the same garbage.  */
20952   fd = open ("conftest.mmap", O_RDWR);
20953   if (fd < 0)
20954     exit (1);
20955   data2 = (char *) malloc (2 * pagesize);
20956   if (!data2)
20957     exit (1);
20958   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
20959   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20960                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20961     exit (1);
20962   for (i = 0; i < pagesize; ++i)
20963     if (*(data + i) != *(data2 + i))
20964       exit (1);
20965
20966   /* Finally, make sure that changes to the mapped area do not
20967      percolate back to the file as seen by read().  (This is a bug on
20968      some variants of i386 svr4.0.)  */
20969   for (i = 0; i < pagesize; ++i)
20970     *(data2 + i) = *(data2 + i) + 1;
20971   data3 = (char *) malloc (pagesize);
20972   if (!data3)
20973     exit (1);
20974   if (read (fd, data3, pagesize) != pagesize)
20975     exit (1);
20976   for (i = 0; i < pagesize; ++i)
20977     if (*(data + i) != *(data3 + i))
20978       exit (1);
20979   close (fd);
20980   exit (0);
20981 }
20982 _ACEOF
20983 rm -f conftest$ac_exeext
20984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20985   (eval $ac_link) 2>&5
20986   ac_status=$?
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990   (eval $ac_try) 2>&5
20991   ac_status=$?
20992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993   (exit $ac_status); }; }; then
20994   ac_cv_func_mmap_fixed_mapped=yes
20995 else
20996   echo "$as_me: program exited with status $ac_status" >&5
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
20999
21000 ( exit $ac_status )
21001 ac_cv_func_mmap_fixed_mapped=no
21002 fi
21003 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21004 fi
21005 fi
21006 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21007 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21008 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21009
21010 cat >>confdefs.h <<\_ACEOF
21011 #define HAVE_MMAP 1
21012 _ACEOF
21013
21014 fi
21015 rm -f conftest.mmap
21016
21017 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21018 then
21019         { { echo "$as_me:$LINENO: error: mmap() required but not found" >&5
21020 echo "$as_me: error: mmap() required but not found" >&2;}
21021    { (exit 1); exit 1; }; }
21022 fi
21023 echo "$as_me:$LINENO: checking for mmap of files" >&5
21024 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21025 if test "${ac_cv_func_mmap_file+set}" = set; then
21026   echo $ECHO_N "(cached) $ECHO_C" >&6
21027 else
21028
21029
21030   ac_ext=c
21031 ac_cpp='$CPP $CPPFLAGS'
21032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21035
21036   if test "$cross_compiling" = yes; then
21037   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21038 See \`config.log' for more details." >&5
21039 echo "$as_me: error: cannot run test program while cross compiling
21040 See \`config.log' for more details." >&2;}
21041    { (exit 1); exit 1; }; }
21042 else
21043   cat >conftest.$ac_ext <<_ACEOF
21044 #line $LINENO "configure"
21045 /* confdefs.h.  */
21046 _ACEOF
21047 cat confdefs.h >>conftest.$ac_ext
21048 cat >>conftest.$ac_ext <<_ACEOF
21049 /* end confdefs.h.  */
21050
21051 #ifdef HAVE_SYS_TYPES_H
21052 #include <sys/types.h>
21053 #endif
21054
21055 #ifdef HAVE_SYS_MMAN_H
21056 #include <sys/mman.h>
21057 #endif
21058
21059 #ifdef HAVE_FCNTL_H
21060 #include <fcntl.h>
21061 #endif
21062
21063   int fd;
21064   int main () {
21065   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
21066 _ACEOF
21067 rm -f conftest$ac_exeext
21068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21069   (eval $ac_link) 2>&5
21070   ac_status=$?
21071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074   (eval $ac_try) 2>&5
21075   ac_status=$?
21076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077   (exit $ac_status); }; }; then
21078   ac_cv_func_mmap_file=yes
21079 else
21080   echo "$as_me: program exited with status $ac_status" >&5
21081 echo "$as_me: failed program was:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21083
21084 ( exit $ac_status )
21085 ac_cv_func_mmap_file=no
21086 fi
21087 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21088 fi
21089   ac_ext=c
21090 ac_cpp='$CPP $CPPFLAGS'
21091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21094
21095
21096 fi
21097 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21098 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21099 if test "$ac_cv_func_mmap_file" = yes; then
21100
21101 cat >>confdefs.h <<\_ACEOF
21102 #define HAVE_MMAP_FILE
21103 _ACEOF
21104
21105    MMAP_FILE=yes
21106
21107 fi
21108
21109 if test "$ac_cv_func_mmap_file" = "no"
21110 then
21111         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21112 echo "$as_me: error: mmap() of files required but not found" >&2;}
21113    { (exit 1); exit 1; }; }
21114 fi
21115 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21116 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21117 if test "${ac_cv_header_mmap_anon+set}" = set; then
21118   echo $ECHO_N "(cached) $ECHO_C" >&6
21119 else
21120
21121
21122   ac_ext=c
21123 ac_cpp='$CPP $CPPFLAGS'
21124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21127
21128   cat >conftest.$ac_ext <<_ACEOF
21129 #line $LINENO "configure"
21130 /* confdefs.h.  */
21131 _ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h.  */
21135 #include <sys/mman.h>
21136   #include <unistd.h>
21137   #include <fcntl.h>
21138 int
21139 main ()
21140 {
21141 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21142   ;
21143   return 0;
21144 }
21145 _ACEOF
21146 rm -f conftest.$ac_objext
21147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21148   (eval $ac_compile) 2>&5
21149   ac_status=$?
21150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151   (exit $ac_status); } &&
21152          { ac_try='test -s conftest.$ac_objext'
21153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21154   (eval $ac_try) 2>&5
21155   ac_status=$?
21156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157   (exit $ac_status); }; }; then
21158   ac_cv_header_mmap_anon=yes
21159 else
21160   echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21162
21163 ac_cv_header_mmap_anon=no
21164 fi
21165 rm -f conftest.$ac_objext conftest.$ac_ext
21166   ac_ext=c
21167 ac_cpp='$CPP $CPPFLAGS'
21168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21171
21172
21173 fi
21174 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21175 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21176 if test "$ac_cv_header_mmap_anon" = yes; then
21177
21178 cat >>confdefs.h <<\_ACEOF
21179 #define HAVE_MMAP_ANONYMOUS
21180 _ACEOF
21181
21182 fi
21183
21184 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21185 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21186 if test "${ac_cv_type_signal+set}" = set; then
21187   echo $ECHO_N "(cached) $ECHO_C" >&6
21188 else
21189   cat >conftest.$ac_ext <<_ACEOF
21190 #line $LINENO "configure"
21191 /* confdefs.h.  */
21192 _ACEOF
21193 cat confdefs.h >>conftest.$ac_ext
21194 cat >>conftest.$ac_ext <<_ACEOF
21195 /* end confdefs.h.  */
21196 #include <sys/types.h>
21197 #include <signal.h>
21198 #ifdef signal
21199 # undef signal
21200 #endif
21201 #ifdef __cplusplus
21202 extern "C" void (*signal (int, void (*)(int)))(int);
21203 #else
21204 void (*signal ()) ();
21205 #endif
21206
21207 int
21208 main ()
21209 {
21210 int i;
21211   ;
21212   return 0;
21213 }
21214 _ACEOF
21215 rm -f conftest.$ac_objext
21216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21217   (eval $ac_compile) 2>&5
21218   ac_status=$?
21219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220   (exit $ac_status); } &&
21221          { ac_try='test -s conftest.$ac_objext'
21222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21223   (eval $ac_try) 2>&5
21224   ac_status=$?
21225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226   (exit $ac_status); }; }; then
21227   ac_cv_type_signal=void
21228 else
21229   echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21231
21232 ac_cv_type_signal=int
21233 fi
21234 rm -f conftest.$ac_objext conftest.$ac_ext
21235 fi
21236 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21237 echo "${ECHO_T}$ac_cv_type_signal" >&6
21238
21239 cat >>confdefs.h <<_ACEOF
21240 #define RETSIGTYPE $ac_cv_type_signal
21241 _ACEOF
21242
21243
21244
21245
21246
21247
21248
21249 for ac_func in getcwd gettimeofday strdup strtoq strtoll
21250 do
21251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21252 echo "$as_me:$LINENO: checking for $ac_func" >&5
21253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21254 if eval "test \"\${$as_ac_var+set}\" = set"; then
21255   echo $ECHO_N "(cached) $ECHO_C" >&6
21256 else
21257   cat >conftest.$ac_ext <<_ACEOF
21258 #line $LINENO "configure"
21259 /* confdefs.h.  */
21260 _ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h.  */
21264 /* System header to define __stub macros and hopefully few prototypes,
21265     which can conflict with char $ac_func (); below.
21266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21267     <limits.h> exists even on freestanding compilers.  */
21268 #ifdef __STDC__
21269 # include <limits.h>
21270 #else
21271 # include <assert.h>
21272 #endif
21273 /* Override any gcc2 internal prototype to avoid an error.  */
21274 #ifdef __cplusplus
21275 extern "C"
21276 {
21277 #endif
21278 /* We use char because int might match the return type of a gcc2
21279    builtin and then its argument prototype would still apply.  */
21280 char $ac_func ();
21281 /* The GNU C library defines this for functions which it implements
21282     to always fail with ENOSYS.  Some functions are actually named
21283     something starting with __ and the normal name is an alias.  */
21284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21285 choke me
21286 #else
21287 char (*f) () = $ac_func;
21288 #endif
21289 #ifdef __cplusplus
21290 }
21291 #endif
21292
21293 int
21294 main ()
21295 {
21296 return f != $ac_func;
21297   ;
21298   return 0;
21299 }
21300 _ACEOF
21301 rm -f conftest.$ac_objext conftest$ac_exeext
21302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21303   (eval $ac_link) 2>&5
21304   ac_status=$?
21305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306   (exit $ac_status); } &&
21307          { ac_try='test -s conftest$ac_exeext'
21308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309   (eval $ac_try) 2>&5
21310   ac_status=$?
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); }; }; then
21313   eval "$as_ac_var=yes"
21314 else
21315   echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21317
21318 eval "$as_ac_var=no"
21319 fi
21320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21321 fi
21322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21324 if test `eval echo '${'$as_ac_var'}'` = yes; then
21325   cat >>confdefs.h <<_ACEOF
21326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21327 _ACEOF
21328
21329 fi
21330 done
21331
21332 echo "$as_me:$LINENO: checking for mprotect" >&5
21333 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21334 if test "${ac_cv_func_mprotect+set}" = set; then
21335   echo $ECHO_N "(cached) $ECHO_C" >&6
21336 else
21337   cat >conftest.$ac_ext <<_ACEOF
21338 #line $LINENO "configure"
21339 /* confdefs.h.  */
21340 _ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h.  */
21344 /* System header to define __stub macros and hopefully few prototypes,
21345     which can conflict with char mprotect (); below.
21346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21347     <limits.h> exists even on freestanding compilers.  */
21348 #ifdef __STDC__
21349 # include <limits.h>
21350 #else
21351 # include <assert.h>
21352 #endif
21353 /* Override any gcc2 internal prototype to avoid an error.  */
21354 #ifdef __cplusplus
21355 extern "C"
21356 {
21357 #endif
21358 /* We use char because int might match the return type of a gcc2
21359    builtin and then its argument prototype would still apply.  */
21360 char mprotect ();
21361 /* The GNU C library defines this for functions which it implements
21362     to always fail with ENOSYS.  Some functions are actually named
21363     something starting with __ and the normal name is an alias.  */
21364 #if defined (__stub_mprotect) || defined (__stub___mprotect)
21365 choke me
21366 #else
21367 char (*f) () = mprotect;
21368 #endif
21369 #ifdef __cplusplus
21370 }
21371 #endif
21372
21373 int
21374 main ()
21375 {
21376 return f != mprotect;
21377   ;
21378   return 0;
21379 }
21380 _ACEOF
21381 rm -f conftest.$ac_objext conftest$ac_exeext
21382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21383   (eval $ac_link) 2>&5
21384   ac_status=$?
21385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386   (exit $ac_status); } &&
21387          { ac_try='test -s conftest$ac_exeext'
21388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389   (eval $ac_try) 2>&5
21390   ac_status=$?
21391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392   (exit $ac_status); }; }; then
21393   ac_cv_func_mprotect=yes
21394 else
21395   echo "$as_me: failed program was:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21397
21398 ac_cv_func_mprotect=no
21399 fi
21400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21401 fi
21402 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21403 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21404 if test $ac_cv_func_mprotect = yes; then
21405   :
21406 else
21407   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21408 echo "$as_me: error: Function mprotect() required but not found" >&2;}
21409    { (exit 1); exit 1; }; }
21410 fi
21411
21412
21413
21414
21415
21416   ac_ext=c
21417 ac_cpp='$CPP $CPPFLAGS'
21418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21421
21422   oldcflags="$CFLAGS"
21423   CFLAGS="$CFLAGS -Wl,-R."
21424   cat >conftest.$ac_ext <<_ACEOF
21425 int main() { return 0; }
21426 _ACEOF
21427 rm -f conftest.$ac_objext conftest$ac_exeext
21428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21429   (eval $ac_link) 2>&5
21430   ac_status=$?
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); } &&
21433          { ac_try='test -s conftest$ac_exeext'
21434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435   (eval $ac_try) 2>&5
21436   ac_status=$?
21437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438   (exit $ac_status); }; }; then
21439   ac_cv_link_use_r=yes
21440 else
21441   echo "$as_me: failed program was:" >&5
21442 sed 's/^/| /' conftest.$ac_ext >&5
21443
21444 ac_cv_link_use_r=no
21445 fi
21446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21447   CFLAGS="$oldcflags"
21448   ac_ext=c
21449 ac_cpp='$CPP $CPPFLAGS'
21450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21453
21454   if test "$ac_cv_link_use_r" = yes
21455   then
21456
21457 cat >>confdefs.h <<\_ACEOF
21458 #define HAVE_LINK_R 1
21459 _ACEOF
21460
21461   fi
21462
21463
21464 # Check whether --enable-optimized or --disable-optimized was given.
21465 if test "${enable_optimized+set}" = set; then
21466   enableval="$enable_optimized"
21467
21468 else
21469   enableval=no
21470 fi;
21471 if test ${enableval} = "no"
21472 then
21473         ENABLE_OPTIMIZED=
21474
21475 else
21476         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21477
21478 fi
21479
21480 # Check whether --enable-spec2000 or --disable-spec2000 was given.
21481 if test "${enable_spec2000+set}" = set; then
21482   enableval="$enable_spec2000"
21483
21484 else
21485   enableval=no
21486 fi;
21487 if test ${enableval} = "no"
21488 then
21489         if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
21490         then
21491                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21492
21493                 USE_SPEC=USE_SPEC=1
21494
21495         else
21496                 USE_SPEC=
21497
21498
21499         fi
21500 else
21501         if test ${enableval} = ""
21502         then
21503                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21504
21505         else
21506                 SPEC_ROOT=${enableval}
21507
21508         fi
21509         USE_SPEC=USE_SPEC=1
21510
21511 fi
21512
21513 # Check whether --enable-spec95 or --disable-spec95 was given.
21514 if test "${enable_spec95+set}" = set; then
21515   enableval="$enable_spec95"
21516
21517 else
21518   enableval=no
21519 fi;
21520 if test ${enableval} = "no"
21521 then
21522         if test -d /home/vadve/shared/benchmarks/spec95_sparcv9/benchspec
21523         then
21524                 SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95_sparcv9/benchspec
21525
21526                 USE_SPEC95=USE_SPEC95=1
21527
21528         else
21529                 USE_SPEC95=
21530
21531
21532         fi
21533 else
21534         if test ${enableval} = ""
21535         then
21536                 SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95_sparcv9/benchspec
21537
21538         else
21539                 SPEC95_ROOT=${enableval}
21540
21541         fi
21542         USE_SPEC95=USE_SPEC95=1
21543
21544 fi
21545
21546 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21547 if test "${enable_precompiled_bytecode+set}" = set; then
21548   enableval="$enable_precompiled_bytecode"
21549
21550 else
21551   enableval=no
21552 fi;
21553 if test ${enableval} = "no"
21554 then
21555         UPB=
21556
21557 else
21558         UPB=USE_PRECOMPILED_BYTECODE=1
21559
21560 fi
21561
21562 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
21563 if test "${enable_llc_diffs+set}" = set; then
21564   enableval="$enable_llc_diffs"
21565
21566 else
21567   enableval=yes
21568 fi;
21569 if test ${enableval} = "no"
21570 then
21571         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
21572
21573 else
21574         DISABLE_LLC_DIFFS=
21575
21576 fi
21577
21578 # Check whether --enable-jit or --disable-jit was given.
21579 if test "${enable_jit+set}" = set; then
21580   enableval="$enable_jit"
21581
21582 else
21583   enableval=default
21584 fi;
21585 if test ${enableval} = "no"
21586 then
21587         JIT=
21588
21589 else
21590         case $target in
21591                 *i*86*)
21592                         JIT=TARGET_HAS_JIT=1
21593
21594                         ;;
21595                 *sparc*)
21596                         JIT=TARGET_HAS_JIT=1
21597
21598                         ;;
21599                 *)
21600                         JIT=
21601
21602                         ;;
21603         esac
21604 fi
21605
21606
21607 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
21608 if test "${with_llvmgccdir+set}" = set; then
21609   withval="$with_llvmgccdir"
21610   LLVMGCCDIR=$withval
21611
21612 fi;
21613 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
21614 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
21615 LLVM_GCC_CHECK=no
21616 if test -d "$LLVMGCCDIR"
21617 then
21618         if test -x "$LLVMGCCDIR/bin/gcc"
21619         then
21620                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
21621         fi
21622 fi
21623 llvmgccwarn=no
21624 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
21625 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
21626 if test "$LLVM_GCC_CHECK" = "no"
21627 then
21628     llvmgccwarn=yes
21629 fi
21630 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
21631 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
21632 LLVM_GCC_SANE=no
21633 if test -x "$LLVM_GCC_CHECK"
21634 then
21635         cp /dev/null conftest.c
21636     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
21637         if test $? -eq 0
21638         then
21639                 LLVM_GCC_SANE=yes
21640         fi
21641         rm conftest.c
21642         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
21643         LLVMCC1=$llvmcc1path
21644
21645         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
21646         LLVMCC1PLUS=$llvmcc1pluspath
21647
21648 fi
21649 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
21650 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
21651 if test "$LLVM_GCC_SANE" = "no"
21652 then
21653         llvmgccwarn=yes
21654 fi
21655
21656
21657 # Check whether --with-bcrepos or --without-bcrepos was given.
21658 if test "${with_bcrepos+set}" = set; then
21659   withval="$with_bcrepos"
21660   BCR=$withval
21661
21662 else
21663   BCR=/home/vadve/lattner/LLVMPrograms
21664
21665 fi;
21666
21667
21668 # Check whether --with-papi or --without-papi was given.
21669 if test "${with_papi+set}" = set; then
21670   withval="$with_papi"
21671   PAPIDIR=$withval
21672
21673 else
21674   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
21675
21676 fi;
21677
21678 echo "$as_me:$LINENO: checking for shared library suffix" >&5
21679 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
21680 eval "SHLIBEXT=$shrext"
21681 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
21682 echo "${ECHO_T}$SHLIBEXT" >&6
21683 SHLIBEXT=$SHLIBEXT
21684
21685
21686 cat >>confdefs.h <<_ACEOF
21687 #define SHLIBEXT "$SHLIBEXT"
21688 _ACEOF
21689
21690
21691           ac_config_files="$ac_config_files Makefile.config"
21692 cat >confcache <<\_ACEOF
21693 # This file is a shell script that caches the results of configure
21694 # tests run on this system so they can be shared between configure
21695 # scripts and configure runs, see configure's option --config-cache.
21696 # It is not useful on other systems.  If it contains results you don't
21697 # want to keep, you may remove or edit it.
21698 #
21699 # config.status only pays attention to the cache file if you give it
21700 # the --recheck option to rerun configure.
21701 #
21702 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21703 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21704 # following values.
21705
21706 _ACEOF
21707
21708 # The following way of writing the cache mishandles newlines in values,
21709 # but we know of no workaround that is simple, portable, and efficient.
21710 # So, don't put newlines in cache variables' values.
21711 # Ultrix sh set writes to stderr and can't be redirected directly,
21712 # and sets the high bit in the cache file unless we assign to the vars.
21713 {
21714   (set) 2>&1 |
21715     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21716     *ac_space=\ *)
21717       # `set' does not quote correctly, so add quotes (double-quote
21718       # substitution turns \\\\ into \\, and sed turns \\ into \).
21719       sed -n \
21720         "s/'/'\\\\''/g;
21721           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21722       ;;
21723     *)
21724       # `set' quotes correctly as required by POSIX, so do not add quotes.
21725       sed -n \
21726         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21727       ;;
21728     esac;
21729 } |
21730   sed '
21731      t clear
21732      : clear
21733      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21734      t end
21735      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21736      : end' >>confcache
21737 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21738   if test -w $cache_file; then
21739     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21740     cat confcache >$cache_file
21741   else
21742     echo "not updating unwritable cache $cache_file"
21743   fi
21744 fi
21745 rm -f confcache
21746
21747 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21748 # Let make expand exec_prefix.
21749 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21750
21751 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21752 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21753 # trailing colons and then remove the whole line if VPATH becomes empty
21754 # (actually we leave an empty line to preserve line numbers).
21755 if test "x$srcdir" = x.; then
21756   ac_vpsub='/^[         ]*VPATH[        ]*=/{
21757 s/:*\$(srcdir):*/:/;
21758 s/:*\${srcdir}:*/:/;
21759 s/:*@srcdir@:*/:/;
21760 s/^\([^=]*=[    ]*\):*/\1/;
21761 s/:*$//;
21762 s/^[^=]*=[      ]*$//;
21763 }'
21764 fi
21765
21766 DEFS=-DHAVE_CONFIG_H
21767
21768 ac_libobjs=
21769 ac_ltlibobjs=
21770 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21771   # 1. Remove the extension, and $U if already installed.
21772   ac_i=`echo "$ac_i" |
21773          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21774   # 2. Add them.
21775   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21776   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21777 done
21778 LIBOBJS=$ac_libobjs
21779
21780 LTLIBOBJS=$ac_ltlibobjs
21781
21782
21783
21784 : ${CONFIG_STATUS=./config.status}
21785 ac_clean_files_save=$ac_clean_files
21786 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21787 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21788 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21789 cat >$CONFIG_STATUS <<_ACEOF
21790 #! $SHELL
21791 # Generated by $as_me.
21792 # Run this file to recreate the current configuration.
21793 # Compiler output produced by configure, useful for debugging
21794 # configure, is in config.log if it exists.
21795
21796 debug=false
21797 ac_cs_recheck=false
21798 ac_cs_silent=false
21799 SHELL=\${CONFIG_SHELL-$SHELL}
21800 _ACEOF
21801
21802 cat >>$CONFIG_STATUS <<\_ACEOF
21803 ## --------------------- ##
21804 ## M4sh Initialization.  ##
21805 ## --------------------- ##
21806
21807 # Be Bourne compatible
21808 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21809   emulate sh
21810   NULLCMD=:
21811   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21812   # is contrary to our usage.  Disable this feature.
21813   alias -g '${1+"$@"}'='"$@"'
21814 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21815   set -o posix
21816 fi
21817
21818 # Support unset when possible.
21819 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
21820   as_unset=unset
21821 else
21822   as_unset=false
21823 fi
21824
21825
21826 # Work around bugs in pre-3.0 UWIN ksh.
21827 $as_unset ENV MAIL MAILPATH
21828 PS1='$ '
21829 PS2='> '
21830 PS4='+ '
21831
21832 # NLS nuisances.
21833 for as_var in \
21834   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21835   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21836   LC_TELEPHONE LC_TIME
21837 do
21838   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
21839     eval $as_var=C; export $as_var
21840   else
21841     $as_unset $as_var
21842   fi
21843 done
21844
21845 # Required to use basename.
21846 if expr a : '\(a\)' >/dev/null 2>&1; then
21847   as_expr=expr
21848 else
21849   as_expr=false
21850 fi
21851
21852 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21853   as_basename=basename
21854 else
21855   as_basename=false
21856 fi
21857
21858
21859 # Name of the executable.
21860 as_me=`$as_basename "$0" ||
21861 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21862          X"$0" : 'X\(//\)$' \| \
21863          X"$0" : 'X\(/\)$' \| \
21864          .     : '\(.\)' 2>/dev/null ||
21865 echo X/"$0" |
21866     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21867           /^X\/\(\/\/\)$/{ s//\1/; q; }
21868           /^X\/\(\/\).*/{ s//\1/; q; }
21869           s/.*/./; q'`
21870
21871
21872 # PATH needs CR, and LINENO needs CR and PATH.
21873 # Avoid depending upon Character Ranges.
21874 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21875 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21876 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21877 as_cr_digits='0123456789'
21878 as_cr_alnum=$as_cr_Letters$as_cr_digits
21879
21880 # The user is always right.
21881 if test "${PATH_SEPARATOR+set}" != set; then
21882   echo "#! /bin/sh" >conf$$.sh
21883   echo  "exit 0"   >>conf$$.sh
21884   chmod +x conf$$.sh
21885   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21886     PATH_SEPARATOR=';'
21887   else
21888     PATH_SEPARATOR=:
21889   fi
21890   rm -f conf$$.sh
21891 fi
21892
21893
21894   as_lineno_1=$LINENO
21895   as_lineno_2=$LINENO
21896   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21897   test "x$as_lineno_1" != "x$as_lineno_2" &&
21898   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21899   # Find who we are.  Look in the path if we contain no path at all
21900   # relative or not.
21901   case $0 in
21902     *[\\/]* ) as_myself=$0 ;;
21903     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21904 for as_dir in $PATH
21905 do
21906   IFS=$as_save_IFS
21907   test -z "$as_dir" && as_dir=.
21908   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21909 done
21910
21911        ;;
21912   esac
21913   # We did not find ourselves, most probably we were run as `sh COMMAND'
21914   # in which case we are not to be found in the path.
21915   if test "x$as_myself" = x; then
21916     as_myself=$0
21917   fi
21918   if test ! -f "$as_myself"; then
21919     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21920 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21921    { (exit 1); exit 1; }; }
21922   fi
21923   case $CONFIG_SHELL in
21924   '')
21925     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21926 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21927 do
21928   IFS=$as_save_IFS
21929   test -z "$as_dir" && as_dir=.
21930   for as_base in sh bash ksh sh5; do
21931          case $as_dir in
21932          /*)
21933            if ("$as_dir/$as_base" -c '
21934   as_lineno_1=$LINENO
21935   as_lineno_2=$LINENO
21936   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21937   test "x$as_lineno_1" != "x$as_lineno_2" &&
21938   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21939              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21940              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21941              CONFIG_SHELL=$as_dir/$as_base
21942              export CONFIG_SHELL
21943              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21944            fi;;
21945          esac
21946        done
21947 done
21948 ;;
21949   esac
21950
21951   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21952   # uniformly replaced by the line number.  The first 'sed' inserts a
21953   # line-number line before each line; the second 'sed' does the real
21954   # work.  The second script uses 'N' to pair each line-number line
21955   # with the numbered line, and appends trailing '-' during
21956   # substitution so that $LINENO is not a special case at line end.
21957   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21958   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21959   sed '=' <$as_myself |
21960     sed '
21961       N
21962       s,$,-,
21963       : loop
21964       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21965       t loop
21966       s,-$,,
21967       s,^['$as_cr_digits']*\n,,
21968     ' >$as_me.lineno &&
21969   chmod +x $as_me.lineno ||
21970     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21971 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21972    { (exit 1); exit 1; }; }
21973
21974   # Don't try to exec as it changes $[0], causing all sort of problems
21975   # (the dirname of $[0] is not the place where we might find the
21976   # original and so on.  Autoconf is especially sensible to this).
21977   . ./$as_me.lineno
21978   # Exit status is that of the last command.
21979   exit
21980 }
21981
21982
21983 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21984   *c*,-n*) ECHO_N= ECHO_C='
21985 ' ECHO_T='      ' ;;
21986   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21987   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21988 esac
21989
21990 if expr a : '\(a\)' >/dev/null 2>&1; then
21991   as_expr=expr
21992 else
21993   as_expr=false
21994 fi
21995
21996 rm -f conf$$ conf$$.exe conf$$.file
21997 echo >conf$$.file
21998 if ln -s conf$$.file conf$$ 2>/dev/null; then
21999   # We could just check for DJGPP; but this test a) works b) is more generic
22000   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22001   if test -f conf$$.exe; then
22002     # Don't use ln at all; we don't have any links
22003     as_ln_s='cp -p'
22004   else
22005     as_ln_s='ln -s'
22006   fi
22007 elif ln conf$$.file conf$$ 2>/dev/null; then
22008   as_ln_s=ln
22009 else
22010   as_ln_s='cp -p'
22011 fi
22012 rm -f conf$$ conf$$.exe conf$$.file
22013
22014 if mkdir -p . 2>/dev/null; then
22015   as_mkdir_p=:
22016 else
22017   as_mkdir_p=false
22018 fi
22019
22020 as_executable_p="test -f"
22021
22022 # Sed expression to map a string onto a valid CPP name.
22023 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22024
22025 # Sed expression to map a string onto a valid variable name.
22026 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22027
22028
22029 # IFS
22030 # We need space, tab and new line, in precisely that order.
22031 as_nl='
22032 '
22033 IFS="   $as_nl"
22034
22035 # CDPATH.
22036 $as_unset CDPATH
22037
22038 exec 6>&1
22039
22040 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22041 # report actual input values of CONFIG_FILES etc. instead of their
22042 # values after options handling.  Logging --version etc. is OK.
22043 exec 5>>config.log
22044 {
22045   echo
22046   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22047 ## Running $as_me. ##
22048 _ASBOX
22049 } >&5
22050 cat >&5 <<_CSEOF
22051
22052 This file was extended by [LLVM] $as_me [1.1], which was
22053 generated by GNU Autoconf 2.57.  Invocation command line was
22054
22055   CONFIG_FILES    = $CONFIG_FILES
22056   CONFIG_HEADERS  = $CONFIG_HEADERS
22057   CONFIG_LINKS    = $CONFIG_LINKS
22058   CONFIG_COMMANDS = $CONFIG_COMMANDS
22059   $ $0 $@
22060
22061 _CSEOF
22062 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22063 echo >&5
22064 _ACEOF
22065
22066 # Files that config.status was made for.
22067 if test -n "$ac_config_files"; then
22068   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22069 fi
22070
22071 if test -n "$ac_config_headers"; then
22072   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22073 fi
22074
22075 if test -n "$ac_config_links"; then
22076   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22077 fi
22078
22079 if test -n "$ac_config_commands"; then
22080   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22081 fi
22082
22083 cat >>$CONFIG_STATUS <<\_ACEOF
22084
22085 ac_cs_usage="\
22086 \`$as_me' instantiates files from templates according to the
22087 current configuration.
22088
22089 Usage: $0 [OPTIONS] [FILE]...
22090
22091   -h, --help       print this help, then exit
22092   -V, --version    print version number, then exit
22093   -q, --quiet      do not print progress messages
22094   -d, --debug      don't remove temporary files
22095       --recheck    update $as_me by reconfiguring in the same conditions
22096   --file=FILE[:TEMPLATE]
22097                    instantiate the configuration file FILE
22098   --header=FILE[:TEMPLATE]
22099                    instantiate the configuration header FILE
22100
22101 Configuration files:
22102 $config_files
22103
22104 Configuration headers:
22105 $config_headers
22106
22107 Configuration commands:
22108 $config_commands
22109
22110 Report bugs to <bug-autoconf@gnu.org>."
22111 _ACEOF
22112
22113 cat >>$CONFIG_STATUS <<_ACEOF
22114 ac_cs_version="\\
22115 [LLVM] config.status [1.1]
22116 configured by $0, generated by GNU Autoconf 2.57,
22117   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22118
22119 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22120 Free Software Foundation, Inc.
22121 This config.status script is free software; the Free Software Foundation
22122 gives unlimited permission to copy, distribute and modify it."
22123 srcdir=$srcdir
22124 INSTALL="$INSTALL"
22125 _ACEOF
22126
22127 cat >>$CONFIG_STATUS <<\_ACEOF
22128 # If no file are specified by the user, then we need to provide default
22129 # value.  By we need to know if files were specified by the user.
22130 ac_need_defaults=:
22131 while test $# != 0
22132 do
22133   case $1 in
22134   --*=*)
22135     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22136     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22137     ac_shift=:
22138     ;;
22139   -*)
22140     ac_option=$1
22141     ac_optarg=$2
22142     ac_shift=shift
22143     ;;
22144   *) # This is not an option, so the user has probably given explicit
22145      # arguments.
22146      ac_option=$1
22147      ac_need_defaults=false;;
22148   esac
22149
22150   case $ac_option in
22151   # Handling of the options.
22152 _ACEOF
22153 cat >>$CONFIG_STATUS <<\_ACEOF
22154   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22155     ac_cs_recheck=: ;;
22156   --version | --vers* | -V )
22157     echo "$ac_cs_version"; exit 0 ;;
22158   --he | --h)
22159     # Conflict between --help and --header
22160     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22161 Try \`$0 --help' for more information." >&5
22162 echo "$as_me: error: ambiguous option: $1
22163 Try \`$0 --help' for more information." >&2;}
22164    { (exit 1); exit 1; }; };;
22165   --help | --hel | -h )
22166     echo "$ac_cs_usage"; exit 0 ;;
22167   --debug | --d* | -d )
22168     debug=: ;;
22169   --file | --fil | --fi | --f )
22170     $ac_shift
22171     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22172     ac_need_defaults=false;;
22173   --header | --heade | --head | --hea )
22174     $ac_shift
22175     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22176     ac_need_defaults=false;;
22177   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22178   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22179     ac_cs_silent=: ;;
22180
22181   # This is an error.
22182   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22183 Try \`$0 --help' for more information." >&5
22184 echo "$as_me: error: unrecognized option: $1
22185 Try \`$0 --help' for more information." >&2;}
22186    { (exit 1); exit 1; }; } ;;
22187
22188   *) ac_config_targets="$ac_config_targets $1" ;;
22189
22190   esac
22191   shift
22192 done
22193
22194 ac_configure_extra_args=
22195
22196 if $ac_cs_silent; then
22197   exec 6>/dev/null
22198   ac_configure_extra_args="$ac_configure_extra_args --silent"
22199 fi
22200
22201 _ACEOF
22202 cat >>$CONFIG_STATUS <<_ACEOF
22203 if \$ac_cs_recheck; then
22204   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22205   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22206 fi
22207
22208 _ACEOF
22209
22210 cat >>$CONFIG_STATUS <<_ACEOF
22211 #
22212 # INIT-COMMANDS section.
22213 #
22214
22215 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22216 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
22217 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22218 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22219 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22220 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22221 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22222 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
22223 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22224 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22225 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22226 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
22227 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
22228 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22229 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22230 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22231 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22232 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22233 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22234 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22235 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22236 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22237 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
22238 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
22239 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22240 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
22241 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
22242 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
22243 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22244 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
22245 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22246 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22247 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22248 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22249 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22250 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22251 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22252 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22253 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22254 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22255 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22256 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22257 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
22258 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22259 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
22260 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22261 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
22262 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
22263
22264 _ACEOF
22265
22266
22267
22268 cat >>$CONFIG_STATUS <<\_ACEOF
22269 for ac_config_target in $ac_config_targets
22270 do
22271   case "$ac_config_target" in
22272   # Handling of arguments.
22273   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22274   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22275   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22276   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22277   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22278   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22279   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22280   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22281   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
22282   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22283   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22284   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22285   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
22286   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
22287   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22288   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22289   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22290   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22291   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22292   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22293   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22294   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22295   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22296   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
22297   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
22298   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22299   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
22300   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
22301   "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
22302   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22303   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
22304   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22305   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22306   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22307   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22308   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22309   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22310   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22311   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22312   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22313   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22314   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22315   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22316   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
22317   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22318   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
22319   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22320   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22321   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22322   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22323   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22324 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22325    { (exit 1); exit 1; }; };;
22326   esac
22327 done
22328
22329 # If the user did not use the arguments to specify the items to instantiate,
22330 # then the envvar interface is used.  Set only those that are not.
22331 # We use the long form for the default assignment because of an extremely
22332 # bizarre bug on SunOS 4.1.3.
22333 if $ac_need_defaults; then
22334   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22335   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22336   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22337 fi
22338
22339 # Have a temporary directory for convenience.  Make it in the build tree
22340 # simply because there is no reason to put it here, and in addition,
22341 # creating and moving files from /tmp can sometimes cause problems.
22342 # Create a temporary directory, and hook for its removal unless debugging.
22343 $debug ||
22344 {
22345   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22346   trap '{ (exit 1); exit 1; }' 1 2 13 15
22347 }
22348
22349 # Create a (secure) tmp directory for tmp files.
22350
22351 {
22352   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22353   test -n "$tmp" && test -d "$tmp"
22354 }  ||
22355 {
22356   tmp=./confstat$$-$RANDOM
22357   (umask 077 && mkdir $tmp)
22358 } ||
22359 {
22360    echo "$me: cannot create a temporary directory in ." >&2
22361    { (exit 1); exit 1; }
22362 }
22363
22364 _ACEOF
22365
22366 cat >>$CONFIG_STATUS <<_ACEOF
22367
22368 #
22369 # CONFIG_FILES section.
22370 #
22371
22372 # No need to generate the scripts if there are no CONFIG_FILES.
22373 # This happens for instance when ./config.status config.h
22374 if test -n "\$CONFIG_FILES"; then
22375   # Protect against being on the right side of a sed subst in config.status.
22376   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22377    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22378 s,@SHELL@,$SHELL,;t t
22379 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22380 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22381 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22382 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22383 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22384 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22385 s,@exec_prefix@,$exec_prefix,;t t
22386 s,@prefix@,$prefix,;t t
22387 s,@program_transform_name@,$program_transform_name,;t t
22388 s,@bindir@,$bindir,;t t
22389 s,@sbindir@,$sbindir,;t t
22390 s,@libexecdir@,$libexecdir,;t t
22391 s,@datadir@,$datadir,;t t
22392 s,@sysconfdir@,$sysconfdir,;t t
22393 s,@sharedstatedir@,$sharedstatedir,;t t
22394 s,@localstatedir@,$localstatedir,;t t
22395 s,@libdir@,$libdir,;t t
22396 s,@includedir@,$includedir,;t t
22397 s,@oldincludedir@,$oldincludedir,;t t
22398 s,@infodir@,$infodir,;t t
22399 s,@mandir@,$mandir,;t t
22400 s,@build_alias@,$build_alias,;t t
22401 s,@host_alias@,$host_alias,;t t
22402 s,@target_alias@,$target_alias,;t t
22403 s,@DEFS@,$DEFS,;t t
22404 s,@ECHO_C@,$ECHO_C,;t t
22405 s,@ECHO_N@,$ECHO_N,;t t
22406 s,@ECHO_T@,$ECHO_T,;t t
22407 s,@LIBS@,$LIBS,;t t
22408 s,@subdirs@,$subdirs,;t t
22409 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22410 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22411 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22412 s,@build@,$build,;t t
22413 s,@build_cpu@,$build_cpu,;t t
22414 s,@build_vendor@,$build_vendor,;t t
22415 s,@build_os@,$build_os,;t t
22416 s,@host@,$host,;t t
22417 s,@host_cpu@,$host_cpu,;t t
22418 s,@host_vendor@,$host_vendor,;t t
22419 s,@host_os@,$host_os,;t t
22420 s,@target@,$target,;t t
22421 s,@target_cpu@,$target_cpu,;t t
22422 s,@target_vendor@,$target_vendor,;t t
22423 s,@target_os@,$target_os,;t t
22424 s,@OS@,$OS,;t t
22425 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22426 s,@ARCH@,$ARCH,;t t
22427 s,@CXX@,$CXX,;t t
22428 s,@CXXFLAGS@,$CXXFLAGS,;t t
22429 s,@LDFLAGS@,$LDFLAGS,;t t
22430 s,@CPPFLAGS@,$CPPFLAGS,;t t
22431 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22432 s,@EXEEXT@,$EXEEXT,;t t
22433 s,@OBJEXT@,$OBJEXT,;t t
22434 s,@CC@,$CC,;t t
22435 s,@CFLAGS@,$CFLAGS,;t t
22436 s,@ac_ct_CC@,$ac_ct_CC,;t t
22437 s,@CPP@,$CPP,;t t
22438 s,@ifGNUmake@,$ifGNUmake,;t t
22439 s,@LEX@,$LEX,;t t
22440 s,@LEXLIB@,$LEXLIB,;t t
22441 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22442 s,@YACC@,$YACC,;t t
22443 s,@BISON@,$BISON,;t t
22444 s,@EGREP@,$EGREP,;t t
22445 s,@LN_S@,$LN_S,;t t
22446 s,@ECHO@,$ECHO,;t t
22447 s,@AR@,$AR,;t t
22448 s,@ac_ct_AR@,$ac_ct_AR,;t t
22449 s,@RANLIB@,$RANLIB,;t t
22450 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22451 s,@STRIP@,$STRIP,;t t
22452 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22453 s,@CXXCPP@,$CXXCPP,;t t
22454 s,@F77@,$F77,;t t
22455 s,@FFLAGS@,$FFLAGS,;t t
22456 s,@ac_ct_F77@,$ac_ct_F77,;t t
22457 s,@LIBTOOL@,$LIBTOOL,;t t
22458 s,@DOT@,$DOT,;t t
22459 s,@ETAGS@,$ETAGS,;t t
22460 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
22461 s,@PYTHON@,$PYTHON,;t t
22462 s,@QMTEST@,$QMTEST,;t t
22463 s,@ALLOCA@,$ALLOCA,;t t
22464 s,@MMAP_FILE@,$MMAP_FILE,;t t
22465 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22466 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
22467 s,@USE_SPEC@,$USE_SPEC,;t t
22468 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
22469 s,@USE_SPEC95@,$USE_SPEC95,;t t
22470 s,@UPB@,$UPB,;t t
22471 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22472 s,@JIT@,$JIT,;t t
22473 s,@LLVMCC1@,$LLVMCC1,;t t
22474 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
22475 s,@BCR@,$BCR,;t t
22476 s,@PAPIDIR@,$PAPIDIR,;t t
22477 s,@SHLIBEXT@,$SHLIBEXT,;t t
22478 s,@LIBOBJS@,$LIBOBJS,;t t
22479 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22480 CEOF
22481
22482 _ACEOF
22483
22484   cat >>$CONFIG_STATUS <<\_ACEOF
22485   # Split the substitutions into bite-sized pieces for seds with
22486   # small command number limits, like on Digital OSF/1 and HP-UX.
22487   ac_max_sed_lines=48
22488   ac_sed_frag=1 # Number of current file.
22489   ac_beg=1 # First line for current file.
22490   ac_end=$ac_max_sed_lines # Line after last line for current file.
22491   ac_more_lines=:
22492   ac_sed_cmds=
22493   while $ac_more_lines; do
22494     if test $ac_beg -gt 1; then
22495       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22496     else
22497       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22498     fi
22499     if test ! -s $tmp/subs.frag; then
22500       ac_more_lines=false
22501     else
22502       # The purpose of the label and of the branching condition is to
22503       # speed up the sed processing (if there are no `@' at all, there
22504       # is no need to browse any of the substitutions).
22505       # These are the two extra sed commands mentioned above.
22506       (echo ':t
22507   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22508       if test -z "$ac_sed_cmds"; then
22509         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22510       else
22511         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22512       fi
22513       ac_sed_frag=`expr $ac_sed_frag + 1`
22514       ac_beg=$ac_end
22515       ac_end=`expr $ac_end + $ac_max_sed_lines`
22516     fi
22517   done
22518   if test -z "$ac_sed_cmds"; then
22519     ac_sed_cmds=cat
22520   fi
22521 fi # test -n "$CONFIG_FILES"
22522
22523 _ACEOF
22524 cat >>$CONFIG_STATUS <<\_ACEOF
22525 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22526   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22527   case $ac_file in
22528   - | *:- | *:-:* ) # input from stdin
22529         cat >$tmp/stdin
22530         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22531         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22532   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22533         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22534   * )   ac_file_in=$ac_file.in ;;
22535   esac
22536
22537   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22538   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22539 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22540          X"$ac_file" : 'X\(//\)[^/]' \| \
22541          X"$ac_file" : 'X\(//\)$' \| \
22542          X"$ac_file" : 'X\(/\)' \| \
22543          .     : '\(.\)' 2>/dev/null ||
22544 echo X"$ac_file" |
22545     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22546           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22547           /^X\(\/\/\)$/{ s//\1/; q; }
22548           /^X\(\/\).*/{ s//\1/; q; }
22549           s/.*/./; q'`
22550   { if $as_mkdir_p; then
22551     mkdir -p "$ac_dir"
22552   else
22553     as_dir="$ac_dir"
22554     as_dirs=
22555     while test ! -d "$as_dir"; do
22556       as_dirs="$as_dir $as_dirs"
22557       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22559          X"$as_dir" : 'X\(//\)[^/]' \| \
22560          X"$as_dir" : 'X\(//\)$' \| \
22561          X"$as_dir" : 'X\(/\)' \| \
22562          .     : '\(.\)' 2>/dev/null ||
22563 echo X"$as_dir" |
22564     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22565           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22566           /^X\(\/\/\)$/{ s//\1/; q; }
22567           /^X\(\/\).*/{ s//\1/; q; }
22568           s/.*/./; q'`
22569     done
22570     test ! -n "$as_dirs" || mkdir $as_dirs
22571   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22572 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22573    { (exit 1); exit 1; }; }; }
22574
22575   ac_builddir=.
22576
22577 if test "$ac_dir" != .; then
22578   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22579   # A "../" for each directory in $ac_dir_suffix.
22580   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22581 else
22582   ac_dir_suffix= ac_top_builddir=
22583 fi
22584
22585 case $srcdir in
22586   .)  # No --srcdir option.  We are building in place.
22587     ac_srcdir=.
22588     if test -z "$ac_top_builddir"; then
22589        ac_top_srcdir=.
22590     else
22591        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22592     fi ;;
22593   [\\/]* | ?:[\\/]* )  # Absolute path.
22594     ac_srcdir=$srcdir$ac_dir_suffix;
22595     ac_top_srcdir=$srcdir ;;
22596   *) # Relative path.
22597     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22598     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22599 esac
22600 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22601 # absolute.
22602 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22603 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
22604 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22605 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22606
22607
22608   case $INSTALL in
22609   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22610   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22611   esac
22612
22613   if test x"$ac_file" != x-; then
22614     { echo "$as_me:$LINENO: creating $ac_file" >&5
22615 echo "$as_me: creating $ac_file" >&6;}
22616     rm -f "$ac_file"
22617   fi
22618   # Let's still pretend it is `configure' which instantiates (i.e., don't
22619   # use $as_me), people would be surprised to read:
22620   #    /* config.h.  Generated by config.status.  */
22621   if test x"$ac_file" = x-; then
22622     configure_input=
22623   else
22624     configure_input="$ac_file.  "
22625   fi
22626   configure_input=$configure_input"Generated from `echo $ac_file_in |
22627                                      sed 's,.*/,,'` by configure."
22628
22629   # First look for the input files in the build tree, otherwise in the
22630   # src tree.
22631   ac_file_inputs=`IFS=:
22632     for f in $ac_file_in; do
22633       case $f in
22634       -) echo $tmp/stdin ;;
22635       [\\/$]*)
22636          # Absolute (can't be DOS-style, as IFS=:)
22637          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22638 echo "$as_me: error: cannot find input file: $f" >&2;}
22639    { (exit 1); exit 1; }; }
22640          echo $f;;
22641       *) # Relative
22642          if test -f "$f"; then
22643            # Build tree
22644            echo $f
22645          elif test -f "$srcdir/$f"; then
22646            # Source tree
22647            echo $srcdir/$f
22648          else
22649            # /dev/null tree
22650            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22651 echo "$as_me: error: cannot find input file: $f" >&2;}
22652    { (exit 1); exit 1; }; }
22653          fi;;
22654       esac
22655     done` || { (exit 1); exit 1; }
22656 _ACEOF
22657 cat >>$CONFIG_STATUS <<_ACEOF
22658   sed "$ac_vpsub
22659 $extrasub
22660 _ACEOF
22661 cat >>$CONFIG_STATUS <<\_ACEOF
22662 :t
22663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22664 s,@configure_input@,$configure_input,;t t
22665 s,@srcdir@,$ac_srcdir,;t t
22666 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22667 s,@top_srcdir@,$ac_top_srcdir,;t t
22668 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22669 s,@builddir@,$ac_builddir,;t t
22670 s,@abs_builddir@,$ac_abs_builddir,;t t
22671 s,@top_builddir@,$ac_top_builddir,;t t
22672 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22673 s,@INSTALL@,$ac_INSTALL,;t t
22674 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22675   rm -f $tmp/stdin
22676   if test x"$ac_file" != x-; then
22677     mv $tmp/out $ac_file
22678   else
22679     cat $tmp/out
22680     rm -f $tmp/out
22681   fi
22682
22683 done
22684 _ACEOF
22685 cat >>$CONFIG_STATUS <<\_ACEOF
22686
22687 #
22688 # CONFIG_HEADER section.
22689 #
22690
22691 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22692 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22693 #
22694 # ac_d sets the value in "#define NAME VALUE" lines.
22695 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
22696 ac_dB='[        ].*$,\1#\2'
22697 ac_dC=' '
22698 ac_dD=',;t'
22699 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22700 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22701 ac_uB='$,\1#\2define\3'
22702 ac_uC=' '
22703 ac_uD=',;t'
22704
22705 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22706   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22707   case $ac_file in
22708   - | *:- | *:-:* ) # input from stdin
22709         cat >$tmp/stdin
22710         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22711         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22712   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22713         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22714   * )   ac_file_in=$ac_file.in ;;
22715   esac
22716
22717   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22718 echo "$as_me: creating $ac_file" >&6;}
22719
22720   # First look for the input files in the build tree, otherwise in the
22721   # src tree.
22722   ac_file_inputs=`IFS=:
22723     for f in $ac_file_in; do
22724       case $f in
22725       -) echo $tmp/stdin ;;
22726       [\\/$]*)
22727          # Absolute (can't be DOS-style, as IFS=:)
22728          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22729 echo "$as_me: error: cannot find input file: $f" >&2;}
22730    { (exit 1); exit 1; }; }
22731          echo $f;;
22732       *) # Relative
22733          if test -f "$f"; then
22734            # Build tree
22735            echo $f
22736          elif test -f "$srcdir/$f"; then
22737            # Source tree
22738            echo $srcdir/$f
22739          else
22740            # /dev/null tree
22741            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22742 echo "$as_me: error: cannot find input file: $f" >&2;}
22743    { (exit 1); exit 1; }; }
22744          fi;;
22745       esac
22746     done` || { (exit 1); exit 1; }
22747   # Remove the trailing spaces.
22748   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
22749
22750 _ACEOF
22751
22752 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22753 # `conftest.undefs', that substitutes the proper values into
22754 # config.h.in to produce config.h.  The first handles `#define'
22755 # templates, and the second `#undef' templates.
22756 # And first: Protect against being on the right side of a sed subst in
22757 # config.status.  Protect against being in an unquoted here document
22758 # in config.status.
22759 rm -f conftest.defines conftest.undefs
22760 # Using a here document instead of a string reduces the quoting nightmare.
22761 # Putting comments in sed scripts is not portable.
22762 #
22763 # `end' is used to avoid that the second main sed command (meant for
22764 # 0-ary CPP macros) applies to n-ary macro definitions.
22765 # See the Autoconf documentation for `clear'.
22766 cat >confdef2sed.sed <<\_ACEOF
22767 s/[\\&,]/\\&/g
22768 s,[\\$`],\\&,g
22769 t clear
22770 : clear
22771 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22772 t end
22773 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22774 : end
22775 _ACEOF
22776 # If some macros were called several times there might be several times
22777 # the same #defines, which is useless.  Nevertheless, we may not want to
22778 # sort them, since we want the *last* AC-DEFINE to be honored.
22779 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22780 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22781 rm -f confdef2sed.sed
22782
22783 # This sed command replaces #undef with comments.  This is necessary, for
22784 # example, in the case of _POSIX_SOURCE, which is predefined and required
22785 # on some systems where configure will not decide to define it.
22786 cat >>conftest.undefs <<\_ACEOF
22787 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22788 _ACEOF
22789
22790 # Break up conftest.defines because some shells have a limit on the size
22791 # of here documents, and old seds have small limits too (100 cmds).
22792 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22793 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22794 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22795 echo '  :' >>$CONFIG_STATUS
22796 rm -f conftest.tail
22797 while grep . conftest.defines >/dev/null
22798 do
22799   # Write a limited-size here document to $tmp/defines.sed.
22800   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22801   # Speed up: don't consider the non `#define' lines.
22802   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
22803   # Work around the forget-to-reset-the-flag bug.
22804   echo 't clr' >>$CONFIG_STATUS
22805   echo ': clr' >>$CONFIG_STATUS
22806   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22807   echo 'CEOF
22808   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22809   rm -f $tmp/in
22810   mv $tmp/out $tmp/in
22811 ' >>$CONFIG_STATUS
22812   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22813   rm -f conftest.defines
22814   mv conftest.tail conftest.defines
22815 done
22816 rm -f conftest.defines
22817 echo '  fi # grep' >>$CONFIG_STATUS
22818 echo >>$CONFIG_STATUS
22819
22820 # Break up conftest.undefs because some shells have a limit on the size
22821 # of here documents, and old seds have small limits too (100 cmds).
22822 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22823 rm -f conftest.tail
22824 while grep . conftest.undefs >/dev/null
22825 do
22826   # Write a limited-size here document to $tmp/undefs.sed.
22827   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22828   # Speed up: don't consider the non `#undef'
22829   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22830   # Work around the forget-to-reset-the-flag bug.
22831   echo 't clr' >>$CONFIG_STATUS
22832   echo ': clr' >>$CONFIG_STATUS
22833   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22834   echo 'CEOF
22835   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22836   rm -f $tmp/in
22837   mv $tmp/out $tmp/in
22838 ' >>$CONFIG_STATUS
22839   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22840   rm -f conftest.undefs
22841   mv conftest.tail conftest.undefs
22842 done
22843 rm -f conftest.undefs
22844
22845 cat >>$CONFIG_STATUS <<\_ACEOF
22846   # Let's still pretend it is `configure' which instantiates (i.e., don't
22847   # use $as_me), people would be surprised to read:
22848   #    /* config.h.  Generated by config.status.  */
22849   if test x"$ac_file" = x-; then
22850     echo "/* Generated by configure.  */" >$tmp/config.h
22851   else
22852     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22853   fi
22854   cat $tmp/in >>$tmp/config.h
22855   rm -f $tmp/in
22856   if test x"$ac_file" != x-; then
22857     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22858       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22859 echo "$as_me: $ac_file is unchanged" >&6;}
22860     else
22861       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22862 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22863          X"$ac_file" : 'X\(//\)[^/]' \| \
22864          X"$ac_file" : 'X\(//\)$' \| \
22865          X"$ac_file" : 'X\(/\)' \| \
22866          .     : '\(.\)' 2>/dev/null ||
22867 echo X"$ac_file" |
22868     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22869           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22870           /^X\(\/\/\)$/{ s//\1/; q; }
22871           /^X\(\/\).*/{ s//\1/; q; }
22872           s/.*/./; q'`
22873       { if $as_mkdir_p; then
22874     mkdir -p "$ac_dir"
22875   else
22876     as_dir="$ac_dir"
22877     as_dirs=
22878     while test ! -d "$as_dir"; do
22879       as_dirs="$as_dir $as_dirs"
22880       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22881 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22882          X"$as_dir" : 'X\(//\)[^/]' \| \
22883          X"$as_dir" : 'X\(//\)$' \| \
22884          X"$as_dir" : 'X\(/\)' \| \
22885          .     : '\(.\)' 2>/dev/null ||
22886 echo X"$as_dir" |
22887     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22888           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22889           /^X\(\/\/\)$/{ s//\1/; q; }
22890           /^X\(\/\).*/{ s//\1/; q; }
22891           s/.*/./; q'`
22892     done
22893     test ! -n "$as_dirs" || mkdir $as_dirs
22894   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22895 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22896    { (exit 1); exit 1; }; }; }
22897
22898       rm -f $ac_file
22899       mv $tmp/config.h $ac_file
22900     fi
22901   else
22902     cat $tmp/config.h
22903     rm -f $tmp/config.h
22904   fi
22905 done
22906 _ACEOF
22907 cat >>$CONFIG_STATUS <<\_ACEOF
22908
22909 #
22910 # CONFIG_COMMANDS section.
22911 #
22912 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22913   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22914   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22915   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22916 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22917          X"$ac_dest" : 'X\(//\)[^/]' \| \
22918          X"$ac_dest" : 'X\(//\)$' \| \
22919          X"$ac_dest" : 'X\(/\)' \| \
22920          .     : '\(.\)' 2>/dev/null ||
22921 echo X"$ac_dest" |
22922     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22923           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22924           /^X\(\/\/\)$/{ s//\1/; q; }
22925           /^X\(\/\).*/{ s//\1/; q; }
22926           s/.*/./; q'`
22927   ac_builddir=.
22928
22929 if test "$ac_dir" != .; then
22930   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22931   # A "../" for each directory in $ac_dir_suffix.
22932   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22933 else
22934   ac_dir_suffix= ac_top_builddir=
22935 fi
22936
22937 case $srcdir in
22938   .)  # No --srcdir option.  We are building in place.
22939     ac_srcdir=.
22940     if test -z "$ac_top_builddir"; then
22941        ac_top_srcdir=.
22942     else
22943        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22944     fi ;;
22945   [\\/]* | ?:[\\/]* )  # Absolute path.
22946     ac_srcdir=$srcdir$ac_dir_suffix;
22947     ac_top_srcdir=$srcdir ;;
22948   *) # Relative path.
22949     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22950     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22951 esac
22952 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22953 # absolute.
22954 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22955 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
22956 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22957 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22958
22959
22960   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22961 echo "$as_me: executing $ac_dest commands" >&6;}
22962   case $ac_dest in
22963     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
22964     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
22965     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
22966     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22967     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
22968     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22969     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
22970     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
22971     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
22972     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
22973     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
22974     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
22975     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
22976     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
22977     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
22978     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
22979     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
22980     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
22981     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
22982     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
22983     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
22984     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
22985     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
22986     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
22987     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
22988     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
22989     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 ;;
22990     test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
22991     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
22992     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
22993     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 ;;
22994     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 ;;
22995     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 ;;
22996     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 ;;
22997     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 ;;
22998     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 ;;
22999     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 ;;
23000     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 ;;
23001     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 ;;
23002     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 ;;
23003     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 ;;
23004     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 ;;
23005     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 ;;
23006     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23007     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
23008     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
23009     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
23010     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
23011   esac
23012 done
23013 _ACEOF
23014
23015 cat >>$CONFIG_STATUS <<\_ACEOF
23016
23017 { (exit 0); exit 0; }
23018 _ACEOF
23019 chmod +x $CONFIG_STATUS
23020 ac_clean_files=$ac_clean_files_save
23021
23022
23023 # configure is writing to config.log, and then calls config.status.
23024 # config.status does its own redirection, appending to config.log.
23025 # Unfortunately, on DOS this fails, as config.log is still kept open
23026 # by configure, so config.status won't be able to write to it; its
23027 # output is simply discarded.  So we exec the FD to /dev/null,
23028 # effectively closing config.log, so it can be properly (re)opened and
23029 # appended to by config.status.  When coming back to configure, we
23030 # need to make the FD available again.
23031 if test "$no_create" != yes; then
23032   ac_cs_success=:
23033   ac_config_status_args=
23034   test "$silent" = yes &&
23035     ac_config_status_args="$ac_config_status_args --quiet"
23036   exec 5>/dev/null
23037   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23038   exec 5>>config.log
23039   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23040   # would make configure fail if this is the last instruction.
23041   $ac_cs_success || { (exit 1); exit 1; }
23042 fi
23043
23044 #
23045 # CONFIG_SUBDIRS section.
23046 #
23047 if test "$no_recursion" != yes; then
23048
23049   # Remove --cache-file and --srcdir arguments so they do not pile up.
23050   ac_sub_configure_args=
23051   ac_prev=
23052   for ac_arg in $ac_configure_args; do
23053     if test -n "$ac_prev"; then
23054       ac_prev=
23055       continue
23056     fi
23057     case $ac_arg in
23058     -cache-file | --cache-file | --cache-fil | --cache-fi \
23059     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23060       ac_prev=cache_file ;;
23061     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23062     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23063     | --c=*)
23064       ;;
23065     --config-cache | -C)
23066       ;;
23067     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23068       ac_prev=srcdir ;;
23069     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23070       ;;
23071     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23072       ac_prev=prefix ;;
23073     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23074       ;;
23075     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23076     esac
23077   done
23078
23079   # Always prepend --prefix to ensure using the same prefix
23080   # in subdir configurations.
23081   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23082
23083   ac_popdir=`pwd`
23084   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23085
23086     # Do not complain, so a configure script can configure whichever
23087     # parts of a large source tree are present.
23088     test -d $srcdir/$ac_dir || continue
23089
23090     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23091 echo "$as_me: configuring in $ac_dir" >&6;}
23092     { if $as_mkdir_p; then
23093     mkdir -p "$ac_dir"
23094   else
23095     as_dir="$ac_dir"
23096     as_dirs=
23097     while test ! -d "$as_dir"; do
23098       as_dirs="$as_dir $as_dirs"
23099       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23100 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23101          X"$as_dir" : 'X\(//\)[^/]' \| \
23102          X"$as_dir" : 'X\(//\)$' \| \
23103          X"$as_dir" : 'X\(/\)' \| \
23104          .     : '\(.\)' 2>/dev/null ||
23105 echo X"$as_dir" |
23106     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23107           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23108           /^X\(\/\/\)$/{ s//\1/; q; }
23109           /^X\(\/\).*/{ s//\1/; q; }
23110           s/.*/./; q'`
23111     done
23112     test ! -n "$as_dirs" || mkdir $as_dirs
23113   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23114 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23115    { (exit 1); exit 1; }; }; }
23116
23117     ac_builddir=.
23118
23119 if test "$ac_dir" != .; then
23120   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23121   # A "../" for each directory in $ac_dir_suffix.
23122   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23123 else
23124   ac_dir_suffix= ac_top_builddir=
23125 fi
23126
23127 case $srcdir in
23128   .)  # No --srcdir option.  We are building in place.
23129     ac_srcdir=.
23130     if test -z "$ac_top_builddir"; then
23131        ac_top_srcdir=.
23132     else
23133        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23134     fi ;;
23135   [\\/]* | ?:[\\/]* )  # Absolute path.
23136     ac_srcdir=$srcdir$ac_dir_suffix;
23137     ac_top_srcdir=$srcdir ;;
23138   *) # Relative path.
23139     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23140     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23141 esac
23142 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23143 # absolute.
23144 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23145 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23146 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23147 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23148
23149
23150     cd $ac_dir
23151
23152     # Check for guested configure; otherwise get Cygnus style configure.
23153     if test -f $ac_srcdir/configure.gnu; then
23154       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23155     elif test -f $ac_srcdir/configure; then
23156       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23157     elif test -f $ac_srcdir/configure.in; then
23158       ac_sub_configure=$ac_configure
23159     else
23160       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23161 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23162       ac_sub_configure=
23163     fi
23164
23165     # The recursion is here.
23166     if test -n "$ac_sub_configure"; then
23167       # Make the cache file name correct relative to the subdirectory.
23168       case $cache_file in
23169       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23170       *) # Relative path.
23171         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23172       esac
23173
23174       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23175 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23176       # The eval makes quoting arguments work.
23177       eval $ac_sub_configure $ac_sub_configure_args \
23178            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23179         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23180 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23181    { (exit 1); exit 1; }; }
23182     fi
23183
23184     cd $ac_popdir
23185   done
23186 fi
23187
23188
23189 if test $llvmgccwarn = yes
23190 then
23191         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23192 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23193         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23194 echo "$as_me: WARNING: ***** appear to be working." >&2;}
23195         { echo "$as_me:$LINENO: WARNING: ***** " >&5
23196 echo "$as_me: WARNING: ***** " >&2;}
23197         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23198 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23199         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23200 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23201         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23202 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
23203 fi
23204