All directory targets now install the Makefile only if it is missing.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.0]'
426 PACKAGE_STRING='[LLVM] [1.0]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 ac_subdirs_all="$ac_subdirs_all projects/sample"
430 ac_subdirs_all="$ac_subdirs_all projects/reopt"
431 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
434 #include <stdio.h>
435 #if HAVE_SYS_TYPES_H
436 # include <sys/types.h>
437 #endif
438 #if HAVE_SYS_STAT_H
439 # include <sys/stat.h>
440 #endif
441 #if STDC_HEADERS
442 # include <stdlib.h>
443 # include <stddef.h>
444 #else
445 # if HAVE_STDLIB_H
446 #  include <stdlib.h>
447 # endif
448 #endif
449 #if HAVE_STRING_H
450 # if !STDC_HEADERS && HAVE_MEMORY_H
451 #  include <memory.h>
452 # endif
453 # include <string.h>
454 #endif
455 #if HAVE_STRINGS_H
456 # include <strings.h>
457 #endif
458 #if HAVE_INTTYPES_H
459 # include <inttypes.h>
460 #else
461 # if HAVE_STDINT_H
462 #  include <stdint.h>
463 # endif
464 #endif
465 #if HAVE_UNISTD_H
466 # include <unistd.h>
467 #endif"
468
469 ac_unique_file=""Makefile.config.in""
470 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR PURIFY LTLIBOBJS'
471 ac_subst_files=''
472
473 # Initialize some variables set by options.
474 ac_init_help=
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
478 cache_file=/dev/null
479 exec_prefix=NONE
480 no_create=
481 no_recursion=
482 prefix=NONE
483 program_prefix=NONE
484 program_suffix=NONE
485 program_transform_name=s,x,x,
486 silent=
487 site=
488 srcdir=
489 verbose=
490 x_includes=NONE
491 x_libraries=NONE
492
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
510
511 ac_prev=
512 for ac_option
513 do
514   # If the previous option needs an argument, assign it.
515   if test -n "$ac_prev"; then
516     eval "$ac_prev=\$ac_option"
517     ac_prev=
518     continue
519   fi
520
521   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523   # Accept the important Cygnus configure options, so we can diagnose typos.
524
525   case $ac_option in
526
527   -bindir | --bindir | --bindi | --bind | --bin | --bi)
528     ac_prev=bindir ;;
529   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530     bindir=$ac_optarg ;;
531
532   -build | --build | --buil | --bui | --bu)
533     ac_prev=build_alias ;;
534   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535     build_alias=$ac_optarg ;;
536
537   -cache-file | --cache-file | --cache-fil | --cache-fi \
538   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539     ac_prev=cache_file ;;
540   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542     cache_file=$ac_optarg ;;
543
544   --config-cache | -C)
545     cache_file=config.cache ;;
546
547   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548     ac_prev=datadir ;;
549   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550   | --da=*)
551     datadir=$ac_optarg ;;
552
553   -disable-* | --disable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     eval "enable_$ac_feature=no" ;;
561
562   -enable-* | --enable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     case $ac_option in
570       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571       *) ac_optarg=yes ;;
572     esac
573     eval "enable_$ac_feature='$ac_optarg'" ;;
574
575   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577   | --exec | --exe | --ex)
578     ac_prev=exec_prefix ;;
579   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581   | --exec=* | --exe=* | --ex=*)
582     exec_prefix=$ac_optarg ;;
583
584   -gas | --gas | --ga | --g)
585     # Obsolete; use --with-gas.
586     with_gas=yes ;;
587
588   -help | --help | --hel | --he | -h)
589     ac_init_help=long ;;
590   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591     ac_init_help=recursive ;;
592   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593     ac_init_help=short ;;
594
595   -host | --host | --hos | --ho)
596     ac_prev=host_alias ;;
597   -host=* | --host=* | --hos=* | --ho=*)
598     host_alias=$ac_optarg ;;
599
600   -includedir | --includedir | --includedi | --included | --include \
601   | --includ | --inclu | --incl | --inc)
602     ac_prev=includedir ;;
603   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604   | --includ=* | --inclu=* | --incl=* | --inc=*)
605     includedir=$ac_optarg ;;
606
607   -infodir | --infodir | --infodi | --infod | --info | --inf)
608     ac_prev=infodir ;;
609   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610     infodir=$ac_optarg ;;
611
612   -libdir | --libdir | --libdi | --libd)
613     ac_prev=libdir ;;
614   -libdir=* | --libdir=* | --libdi=* | --libd=*)
615     libdir=$ac_optarg ;;
616
617   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618   | --libexe | --libex | --libe)
619     ac_prev=libexecdir ;;
620   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621   | --libexe=* | --libex=* | --libe=*)
622     libexecdir=$ac_optarg ;;
623
624   -localstatedir | --localstatedir | --localstatedi | --localstated \
625   | --localstate | --localstat | --localsta | --localst \
626   | --locals | --local | --loca | --loc | --lo)
627     ac_prev=localstatedir ;;
628   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631     localstatedir=$ac_optarg ;;
632
633   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634     ac_prev=mandir ;;
635   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636     mandir=$ac_optarg ;;
637
638   -nfp | --nfp | --nf)
639     # Obsolete; use --without-fp.
640     with_fp=no ;;
641
642   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643   | --no-cr | --no-c | -n)
644     no_create=yes ;;
645
646   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648     no_recursion=yes ;;
649
650   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652   | --oldin | --oldi | --old | --ol | --o)
653     ac_prev=oldincludedir ;;
654   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657     oldincludedir=$ac_optarg ;;
658
659   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660     ac_prev=prefix ;;
661   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662     prefix=$ac_optarg ;;
663
664   -program-prefix | --program-prefix | --program-prefi | --program-pref \
665   | --program-pre | --program-pr | --program-p)
666     ac_prev=program_prefix ;;
667   -program-prefix=* | --program-prefix=* | --program-prefi=* \
668   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669     program_prefix=$ac_optarg ;;
670
671   -program-suffix | --program-suffix | --program-suffi | --program-suff \
672   | --program-suf | --program-su | --program-s)
673     ac_prev=program_suffix ;;
674   -program-suffix=* | --program-suffix=* | --program-suffi=* \
675   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676     program_suffix=$ac_optarg ;;
677
678   -program-transform-name | --program-transform-name \
679   | --program-transform-nam | --program-transform-na \
680   | --program-transform-n | --program-transform- \
681   | --program-transform | --program-transfor \
682   | --program-transfo | --program-transf \
683   | --program-trans | --program-tran \
684   | --progr-tra | --program-tr | --program-t)
685     ac_prev=program_transform_name ;;
686   -program-transform-name=* | --program-transform-name=* \
687   | --program-transform-nam=* | --program-transform-na=* \
688   | --program-transform-n=* | --program-transform-=* \
689   | --program-transform=* | --program-transfor=* \
690   | --program-transfo=* | --program-transf=* \
691   | --program-trans=* | --program-tran=* \
692   | --progr-tra=* | --program-tr=* | --program-t=*)
693     program_transform_name=$ac_optarg ;;
694
695   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696   | -silent | --silent | --silen | --sile | --sil)
697     silent=yes ;;
698
699   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700     ac_prev=sbindir ;;
701   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702   | --sbi=* | --sb=*)
703     sbindir=$ac_optarg ;;
704
705   -sharedstatedir | --sharedstatedir | --sharedstatedi \
706   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707   | --sharedst | --shareds | --shared | --share | --shar \
708   | --sha | --sh)
709     ac_prev=sharedstatedir ;;
710   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713   | --sha=* | --sh=*)
714     sharedstatedir=$ac_optarg ;;
715
716   -site | --site | --sit)
717     ac_prev=site ;;
718   -site=* | --site=* | --sit=*)
719     site=$ac_optarg ;;
720
721   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722     ac_prev=srcdir ;;
723   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724     srcdir=$ac_optarg ;;
725
726   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727   | --syscon | --sysco | --sysc | --sys | --sy)
728     ac_prev=sysconfdir ;;
729   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731     sysconfdir=$ac_optarg ;;
732
733   -target | --target | --targe | --targ | --tar | --ta | --t)
734     ac_prev=target_alias ;;
735   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736     target_alias=$ac_optarg ;;
737
738   -v | -verbose | --verbose | --verbos | --verbo | --verb)
739     verbose=yes ;;
740
741   -version | --version | --versio | --versi | --vers | -V)
742     ac_init_version=: ;;
743
744   -with-* | --with-*)
745     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746     # Reject names that are not valid shell variable names.
747     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748       { echo "$as_me: error: invalid package name: $ac_package" >&2
749    { (exit 1); exit 1; }; }
750     ac_package=`echo $ac_package| sed 's/-/_/g'`
751     case $ac_option in
752       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753       *) ac_optarg=yes ;;
754     esac
755     eval "with_$ac_package='$ac_optarg'" ;;
756
757   -without-* | --without-*)
758     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759     # Reject names that are not valid shell variable names.
760     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761       { echo "$as_me: error: invalid package name: $ac_package" >&2
762    { (exit 1); exit 1; }; }
763     ac_package=`echo $ac_package | sed 's/-/_/g'`
764     eval "with_$ac_package=no" ;;
765
766   --x)
767     # Obsolete; use --with-x.
768     with_x=yes ;;
769
770   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771   | --x-incl | --x-inc | --x-in | --x-i)
772     ac_prev=x_includes ;;
773   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775     x_includes=$ac_optarg ;;
776
777   -x-libraries | --x-libraries | --x-librarie | --x-librari \
778   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779     ac_prev=x_libraries ;;
780   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782     x_libraries=$ac_optarg ;;
783
784   -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786    { (exit 1); exit 1; }; }
787     ;;
788
789   *=*)
790     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791     # Reject names that are not valid shell variable names.
792     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794    { (exit 1); exit 1; }; }
795     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796     eval "$ac_envvar='$ac_optarg'"
797     export $ac_envvar ;;
798
799   *)
800     # FIXME: should be removed in autoconf 3.0.
801     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805     ;;
806
807   esac
808 done
809
810 if test -n "$ac_prev"; then
811   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812   { echo "$as_me: error: missing argument to $ac_option" >&2
813    { (exit 1); exit 1; }; }
814 fi
815
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
818 do
819   eval ac_val=$`echo $ac_var`
820   case $ac_val in
821     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823    { (exit 1); exit 1; }; };;
824   esac
825 done
826
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829               localstatedir libdir includedir oldincludedir infodir mandir
830 do
831   eval ac_val=$`echo $ac_var`
832   case $ac_val in
833     [\\/$]* | ?:[\\/]* ) ;;
834     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835    { (exit 1); exit 1; }; };;
836   esac
837 done
838
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
842 build=$build_alias
843 host=$host_alias
844 target=$target_alias
845
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848   if test "x$build_alias" = x; then
849     cross_compiling=maybe
850     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851     If a cross compiler is detected then cross compile mode will be used." >&2
852   elif test "x$build_alias" != "x$host_alias"; then
853     cross_compiling=yes
854   fi
855 fi
856
857 ac_tool_prefix=
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860 test "$silent" = yes && exec 6>/dev/null
861
862
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865   ac_srcdir_defaulted=yes
866   # Try the directory containing this script, then its parent.
867   ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869          X"$0" : 'X\(//\)[^/]' \| \
870          X"$0" : 'X\(//\)$' \| \
871          X"$0" : 'X\(/\)' \| \
872          .     : '\(.\)' 2>/dev/null ||
873 echo X"$0" |
874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876           /^X\(\/\/\)$/{ s//\1/; q; }
877           /^X\(\/\).*/{ s//\1/; q; }
878           s/.*/./; q'`
879   srcdir=$ac_confdir
880   if test ! -r $srcdir/$ac_unique_file; then
881     srcdir=..
882   fi
883 else
884   ac_srcdir_defaulted=no
885 fi
886 if test ! -r $srcdir/$ac_unique_file; then
887   if test "$ac_srcdir_defaulted" = yes; then
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889    { (exit 1); exit 1; }; }
890   else
891     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892    { (exit 1); exit 1; }; }
893   fi
894 fi
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897    { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CXX_set=${CXX+set}
912 ac_env_CXX_value=$CXX
913 ac_cv_env_CXX_set=${CXX+set}
914 ac_cv_env_CXX_value=$CXX
915 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_env_CXXFLAGS_value=$CXXFLAGS
917 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CC_set=${CC+set}
928 ac_env_CC_value=$CC
929 ac_cv_env_CC_set=${CC+set}
930 ac_cv_env_CC_value=$CC
931 ac_env_CFLAGS_set=${CFLAGS+set}
932 ac_env_CFLAGS_value=$CFLAGS
933 ac_cv_env_CFLAGS_set=${CFLAGS+set}
934 ac_cv_env_CFLAGS_value=$CFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
939 ac_env_CXXCPP_set=${CXXCPP+set}
940 ac_env_CXXCPP_value=$CXXCPP
941 ac_cv_env_CXXCPP_set=${CXXCPP+set}
942 ac_cv_env_CXXCPP_value=$CXXCPP
943 ac_env_F77_set=${F77+set}
944 ac_env_F77_value=$F77
945 ac_cv_env_F77_set=${F77+set}
946 ac_cv_env_F77_value=$F77
947 ac_env_FFLAGS_set=${FFLAGS+set}
948 ac_env_FFLAGS_value=$FFLAGS
949 ac_cv_env_FFLAGS_set=${FFLAGS+set}
950 ac_cv_env_FFLAGS_value=$FFLAGS
951
952 #
953 # Report the --help message.
954 #
955 if test "$ac_init_help" = "long"; then
956   # Omit some internal or obsolete options to make the list less imposing.
957   # This message is too long to be a string in the A/UX 3.1 sh.
958   cat <<_ACEOF
959 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
960
961 Usage: $0 [OPTION]... [VAR=VALUE]...
962
963 To assign environment variables (e.g., CC, CFLAGS...), specify them as
964 VAR=VALUE.  See below for descriptions of some of the useful variables.
965
966 Defaults for the options are specified in brackets.
967
968 Configuration:
969   -h, --help              display this help and exit
970       --help=short        display options specific to this package
971       --help=recursive    display the short help of all the included packages
972   -V, --version           display version information and exit
973   -q, --quiet, --silent   do not print \`checking...' messages
974       --cache-file=FILE   cache test results in FILE [disabled]
975   -C, --config-cache      alias for \`--cache-file=config.cache'
976   -n, --no-create         do not create output files
977       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
978
979 _ACEOF
980
981   cat <<_ACEOF
982 Installation directories:
983   --prefix=PREFIX         install architecture-independent files in PREFIX
984                           [$ac_default_prefix]
985   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
986                           [PREFIX]
987
988 By default, \`make install' will install all the files in
989 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
990 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991 for instance \`--prefix=\$HOME'.
992
993 For better control, use the options below.
994
995 Fine tuning of the installation directories:
996   --bindir=DIR           user executables [EPREFIX/bin]
997   --sbindir=DIR          system admin executables [EPREFIX/sbin]
998   --libexecdir=DIR       program executables [EPREFIX/libexec]
999   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1000   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1001   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1002   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1003   --libdir=DIR           object code libraries [EPREFIX/lib]
1004   --includedir=DIR       C header files [PREFIX/include]
1005   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1006   --infodir=DIR          info documentation [PREFIX/info]
1007   --mandir=DIR           man documentation [PREFIX/man]
1008 _ACEOF
1009
1010   cat <<\_ACEOF
1011
1012 System types:
1013   --build=BUILD     configure for building on BUILD [guessed]
1014   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1015   --target=TARGET   configure for building compilers for TARGET [HOST]
1016 _ACEOF
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020   case $ac_init_help in
1021      short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1022    esac
1023   cat <<\_ACEOF
1024
1025 Optional Features:
1026   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1027   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1028   --enable-shared[=PKGS]
1029                           build shared libraries [default=yes]
1030   --enable-static[=PKGS]
1031                           build static libraries [default=yes]
1032   --enable-fast-install[=PKGS]
1033                           optimize for fast installation [default=yes]
1034   --disable-libtool-lock  avoid locking (might break parallel builds)
1035   --enable-purify         Compile with purify (default is NO)
1036   --enable-optimized      Compile with optimizations enabled (default is NO)
1037   --enable-spec           Compile SPEC 2000 benchmarks (default is NO)
1038   --enable-precompiled_bytecode
1039                           Use pre-compiled bytecode (default is NO)
1040   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1041   --enable-jit            Enable Just In Time Compiling (default is YES)
1042
1043 Optional Packages:
1044   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047   --with-pic              try to use only PIC/non-PIC objects [default=use
1048                           both]
1049   --with-tags[=TAGS]
1050                           include additional configurations [automatic]
1051   --with-llvmgccdir       Location of LLVM GCC front-end
1052   --with-bcrepos          Location of Bytecode Repository
1053   --with-papi             Location of PAPI
1054   --with-purify           Location of purify program
1055
1056 Some influential environment variables:
1057   CXX         C++ compiler command
1058   CXXFLAGS    C++ compiler flags
1059   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1060               nonstandard directory <lib dir>
1061   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062               headers in a nonstandard directory <include dir>
1063   CC          C compiler command
1064   CFLAGS      C compiler flags
1065   CPP         C preprocessor
1066   CXXCPP      C++ preprocessor
1067   F77         Fortran 77 compiler command
1068   FFLAGS      Fortran 77 compiler flags
1069
1070 Use these variables to override the choices made by `configure' or to help
1071 it to find libraries and programs with nonstandard names/locations.
1072
1073 Report bugs to <llvmbugs@cs.uiuc.edu>.
1074 _ACEOF
1075 fi
1076
1077 if test "$ac_init_help" = "recursive"; then
1078   # If there are subdirs, report their specific --help.
1079   ac_popdir=`pwd`
1080   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081     test -d $ac_dir || continue
1082     ac_builddir=.
1083
1084 if test "$ac_dir" != .; then
1085   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086   # A "../" for each directory in $ac_dir_suffix.
1087   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 else
1089   ac_dir_suffix= ac_top_builddir=
1090 fi
1091
1092 case $srcdir in
1093   .)  # No --srcdir option.  We are building in place.
1094     ac_srcdir=.
1095     if test -z "$ac_top_builddir"; then
1096        ac_top_srcdir=.
1097     else
1098        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099     fi ;;
1100   [\\/]* | ?:[\\/]* )  # Absolute path.
1101     ac_srcdir=$srcdir$ac_dir_suffix;
1102     ac_top_srcdir=$srcdir ;;
1103   *) # Relative path.
1104     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106 esac
1107 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108 # absolute.
1109 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1110 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1111 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113
1114     cd $ac_dir
1115     # Check for guested configure; otherwise get Cygnus style configure.
1116     if test -f $ac_srcdir/configure.gnu; then
1117       echo
1118       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1119     elif test -f $ac_srcdir/configure; then
1120       echo
1121       $SHELL $ac_srcdir/configure  --help=recursive
1122     elif test -f $ac_srcdir/configure.ac ||
1123            test -f $ac_srcdir/configure.in; then
1124       echo
1125       $ac_configure --help
1126     else
1127       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128     fi
1129     cd $ac_popdir
1130   done
1131 fi
1132
1133 test -n "$ac_init_help" && exit 0
1134 if $ac_init_version; then
1135   cat <<\_ACEOF
1136 [LLVM] configure [1.0]
1137 generated by GNU Autoconf 2.57
1138
1139 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140 Free Software Foundation, Inc.
1141 This configure script is free software; the Free Software Foundation
1142 gives unlimited permission to copy, distribute and modify it.
1143 _ACEOF
1144   exit 0
1145 fi
1146 exec 5>config.log
1147 cat >&5 <<_ACEOF
1148 This file contains any messages produced by compilers while
1149 running configure, to aid debugging if configure makes a mistake.
1150
1151 It was created by [LLVM] $as_me [1.0], which was
1152 generated by GNU Autoconf 2.57.  Invocation command line was
1153
1154   $ $0 $@
1155
1156 _ACEOF
1157 {
1158 cat <<_ASUNAME
1159 ## --------- ##
1160 ## Platform. ##
1161 ## --------- ##
1162
1163 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1171
1172 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1173 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1174 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1176 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1177 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1178 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1179
1180 _ASUNAME
1181
1182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183 for as_dir in $PATH
1184 do
1185   IFS=$as_save_IFS
1186   test -z "$as_dir" && as_dir=.
1187   echo "PATH: $as_dir"
1188 done
1189
1190 } >&5
1191
1192 cat >&5 <<_ACEOF
1193
1194
1195 ## ----------- ##
1196 ## Core tests. ##
1197 ## ----------- ##
1198
1199 _ACEOF
1200
1201
1202 # Keep a trace of the command line.
1203 # Strip out --no-create and --no-recursion so they do not pile up.
1204 # Strip out --silent because we don't want to record it for future runs.
1205 # Also quote any args containing shell meta-characters.
1206 # Make two passes to allow for proper duplicate-argument suppression.
1207 ac_configure_args=
1208 ac_configure_args0=
1209 ac_configure_args1=
1210 ac_sep=
1211 ac_must_keep_next=false
1212 for ac_pass in 1 2
1213 do
1214   for ac_arg
1215   do
1216     case $ac_arg in
1217     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219     | -silent | --silent | --silen | --sile | --sil)
1220       continue ;;
1221     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223     esac
1224     case $ac_pass in
1225     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226     2)
1227       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228       if test $ac_must_keep_next = true; then
1229         ac_must_keep_next=false # Got value, back to normal.
1230       else
1231         case $ac_arg in
1232           *=* | --config-cache | -C | -disable-* | --disable-* \
1233           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235           | -with-* | --with-* | -without-* | --without-* | --x)
1236             case "$ac_configure_args0 " in
1237               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238             esac
1239             ;;
1240           -* ) ac_must_keep_next=true ;;
1241         esac
1242       fi
1243       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244       # Get rid of the leading space.
1245       ac_sep=" "
1246       ;;
1247     esac
1248   done
1249 done
1250 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252
1253 # When interrupted or exit'd, cleanup temporary files, and complete
1254 # config.log.  We remove comments because anyway the quotes in there
1255 # would cause problems or look ugly.
1256 # WARNING: Be sure not to use single quotes in there, as some shells,
1257 # such as our DU 5.0 friend, will then `close' the trap.
1258 trap 'exit_status=$?
1259   # Save into config.log some information that might help in debugging.
1260   {
1261     echo
1262
1263     cat <<\_ASBOX
1264 ## ---------------- ##
1265 ## Cache variables. ##
1266 ## ---------------- ##
1267 _ASBOX
1268     echo
1269     # The following way of writing the cache mishandles newlines in values,
1270 {
1271   (set) 2>&1 |
1272     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273     *ac_space=\ *)
1274       sed -n \
1275         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277       ;;
1278     *)
1279       sed -n \
1280         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281       ;;
1282     esac;
1283 }
1284     echo
1285
1286     cat <<\_ASBOX
1287 ## ----------------- ##
1288 ## Output variables. ##
1289 ## ----------------- ##
1290 _ASBOX
1291     echo
1292     for ac_var in $ac_subst_vars
1293     do
1294       eval ac_val=$`echo $ac_var`
1295       echo "$ac_var='"'"'$ac_val'"'"'"
1296     done | sort
1297     echo
1298
1299     if test -n "$ac_subst_files"; then
1300       cat <<\_ASBOX
1301 ## ------------- ##
1302 ## Output files. ##
1303 ## ------------- ##
1304 _ASBOX
1305       echo
1306       for ac_var in $ac_subst_files
1307       do
1308         eval ac_val=$`echo $ac_var`
1309         echo "$ac_var='"'"'$ac_val'"'"'"
1310       done | sort
1311       echo
1312     fi
1313
1314     if test -s confdefs.h; then
1315       cat <<\_ASBOX
1316 ## ----------- ##
1317 ## confdefs.h. ##
1318 ## ----------- ##
1319 _ASBOX
1320       echo
1321       sed "/^$/d" confdefs.h | sort
1322       echo
1323     fi
1324     test "$ac_signal" != 0 &&
1325       echo "$as_me: caught signal $ac_signal"
1326     echo "$as_me: exit $exit_status"
1327   } >&5
1328   rm -f core core.* *.core &&
1329   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330     exit $exit_status
1331      ' 0
1332 for ac_signal in 1 2 13 15; do
1333   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334 done
1335 ac_signal=0
1336
1337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1338 rm -rf conftest* confdefs.h
1339 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 echo >confdefs.h
1341
1342 # Predefined preprocessor variables.
1343
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_NAME "$PACKAGE_NAME"
1346 _ACEOF
1347
1348
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351 _ACEOF
1352
1353
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1356 _ACEOF
1357
1358
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_STRING "$PACKAGE_STRING"
1361 _ACEOF
1362
1363
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366 _ACEOF
1367
1368
1369 # Let the site file select an alternate cache file if it wants to.
1370 # Prefer explicitly selected file to automatically selected ones.
1371 if test -z "$CONFIG_SITE"; then
1372   if test "x$prefix" != xNONE; then
1373     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374   else
1375     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376   fi
1377 fi
1378 for ac_site_file in $CONFIG_SITE; do
1379   if test -r "$ac_site_file"; then
1380     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381 echo "$as_me: loading site script $ac_site_file" >&6;}
1382     sed 's/^/| /' "$ac_site_file" >&5
1383     . "$ac_site_file"
1384   fi
1385 done
1386
1387 if test -r "$cache_file"; then
1388   # Some versions of bash will fail to source /dev/null (special
1389   # files actually), so we avoid doing that.
1390   if test -f "$cache_file"; then
1391     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392 echo "$as_me: loading cache $cache_file" >&6;}
1393     case $cache_file in
1394       [\\/]* | ?:[\\/]* ) . $cache_file;;
1395       *)                      . ./$cache_file;;
1396     esac
1397   fi
1398 else
1399   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400 echo "$as_me: creating cache $cache_file" >&6;}
1401   >$cache_file
1402 fi
1403
1404 # Check that the precious variables saved in the cache have kept the same
1405 # value.
1406 ac_cache_corrupted=false
1407 for ac_var in `(set) 2>&1 |
1408                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410   eval ac_new_set=\$ac_env_${ac_var}_set
1411   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412   eval ac_new_val="\$ac_env_${ac_var}_value"
1413   case $ac_old_set,$ac_new_set in
1414     set,)
1415       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417       ac_cache_corrupted=: ;;
1418     ,set)
1419       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421       ac_cache_corrupted=: ;;
1422     ,);;
1423     *)
1424       if test "x$ac_old_val" != "x$ac_new_val"; then
1425         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1428 echo "$as_me:   former value:  $ac_old_val" >&2;}
1429         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1430 echo "$as_me:   current value: $ac_new_val" >&2;}
1431         ac_cache_corrupted=:
1432       fi;;
1433   esac
1434   # Pass precious variables to config.status.
1435   if test "$ac_new_set" = set; then
1436     case $ac_new_val in
1437     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439     *) ac_arg=$ac_var=$ac_new_val ;;
1440     esac
1441     case " $ac_configure_args " in
1442       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1443       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1444     esac
1445   fi
1446 done
1447 if $ac_cache_corrupted; then
1448   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452    { (exit 1); exit 1; }; }
1453 fi
1454
1455 ac_ext=c
1456 ac_cpp='$CPP $CPPFLAGS'
1457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488 ac_aux_dir=
1489 for ac_dir in autoconf $srcdir/autoconf; do
1490   if test -f $ac_dir/install-sh; then
1491     ac_aux_dir=$ac_dir
1492     ac_install_sh="$ac_aux_dir/install-sh -c"
1493     break
1494   elif test -f $ac_dir/install.sh; then
1495     ac_aux_dir=$ac_dir
1496     ac_install_sh="$ac_aux_dir/install.sh -c"
1497     break
1498   elif test -f $ac_dir/shtool; then
1499     ac_aux_dir=$ac_dir
1500     ac_install_sh="$ac_aux_dir/shtool install -c"
1501     break
1502   fi
1503 done
1504 if test -z "$ac_aux_dir"; then
1505   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1506 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1507    { (exit 1); exit 1; }; }
1508 fi
1509 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
1513
1514 if test ${srcdir} != "."
1515 then
1516         if test -f ${srcdir}/include/Config/config.h
1517         then
1518                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1519 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1520    { (exit 1); exit 1; }; }
1521         fi
1522 fi
1523
1524 if test -d ${srcdir}/projects/sample
1525 then
1526
1527
1528 subdirs="$subdirs projects/sample"
1529
1530 fi
1531
1532 if test -d ${srcdir}/projects/reopt
1533 then
1534
1535
1536 subdirs="$subdirs projects/reopt"
1537
1538 fi
1539
1540 if test -d ${srcdir}/projects/poolalloc
1541 then
1542
1543
1544 subdirs="$subdirs projects/poolalloc"
1545
1546 fi
1547
1548           ac_config_headers="$ac_config_headers include/Config/config.h"
1549
1550           ac_config_commands="$ac_config_commands Makefile"
1551
1552
1553           ac_config_commands="$ac_config_commands Makefile.common"
1554
1555
1556           ac_config_commands="$ac_config_commands lib/Makefile"
1557
1558
1559           ac_config_commands="$ac_config_commands runtime/Makefile"
1560
1561
1562           ac_config_commands="$ac_config_commands test/Makefile"
1563
1564
1565           ac_config_commands="$ac_config_commands test/Makefile.tests"
1566
1567
1568           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1569
1570
1571           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1572
1573
1574           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1575
1576
1577           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1578
1579
1580           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1584
1585
1586           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1587
1588
1589           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1590
1591
1592           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1593
1594
1595           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1596
1597
1598           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1599
1600
1601           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1602
1603
1604           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1605
1606
1607           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1611
1612
1613           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1617
1618
1619           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1623
1624
1625           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1626
1627
1628           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1629
1630
1631           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1632
1633
1634           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1635
1636
1637           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1638
1639
1640           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1641
1642
1643           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1644
1645
1646           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1647
1648
1649           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1650
1651
1652           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1653
1654
1655           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1656
1657
1658           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1659
1660
1661           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1662
1663
1664           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1665
1666
1667           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1668
1669
1670           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1671
1672
1673           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1674
1675
1676           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1677
1678
1679           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1680
1681
1682           ac_config_commands="$ac_config_commands tools/Makefile"
1683
1684
1685           ac_config_commands="$ac_config_commands utils/Makefile"
1686
1687
1688           ac_config_commands="$ac_config_commands projects/Makefile"
1689
1690
1691           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
1692
1693
1694           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
1695
1696
1697           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
1698
1699
1700           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
1701
1702
1703           ac_config_commands="$ac_config_commands projects/Stacker/Makefile"
1704
1705
1706           ac_config_commands="$ac_config_commands projects/Stacker/lib/Makefile"
1707
1708
1709           ac_config_commands="$ac_config_commands projects/Stacker/lib/compiler/Makefile"
1710
1711
1712           ac_config_commands="$ac_config_commands projects/Stacker/lib/runtime/Makefile"
1713
1714
1715           ac_config_commands="$ac_config_commands projects/Stacker/tools/Makefile"
1716
1717
1718           ac_config_commands="$ac_config_commands projects/Stacker/tools/stkrc/Makefile"
1719
1720
1721           ac_config_commands="$ac_config_commands projects/Stacker/test/Makefile"
1722
1723
1724           ac_config_commands="$ac_config_commands projects/Stacker/samples/Makefile"
1725
1726
1727
1728
1729 # Find a good install program.  We prefer a C program (faster),
1730 # so one script is as good as another.  But avoid the broken or
1731 # incompatible versions:
1732 # SysV /etc/install, /usr/sbin/install
1733 # SunOS /usr/etc/install
1734 # IRIX /sbin/install
1735 # AIX /bin/install
1736 # AmigaOS /C/install, which installs bootblocks on floppy discs
1737 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1738 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1739 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1740 # ./install, which can be erroneously created by make from ./install.sh.
1741 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1742 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1743 if test -z "$INSTALL"; then
1744 if test "${ac_cv_path_install+set}" = set; then
1745   echo $ECHO_N "(cached) $ECHO_C" >&6
1746 else
1747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 for as_dir in $PATH
1749 do
1750   IFS=$as_save_IFS
1751   test -z "$as_dir" && as_dir=.
1752   # Account for people who put trailing slashes in PATH elements.
1753 case $as_dir/ in
1754   ./ | .// | /cC/* | \
1755   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1756   /usr/ucb/* ) ;;
1757   *)
1758     # OSF1 and SCO ODT 3.0 have their own names for install.
1759     # Don't use installbsd from OSF since it installs stuff as root
1760     # by default.
1761     for ac_prog in ginstall scoinst install; do
1762       for ac_exec_ext in '' $ac_executable_extensions; do
1763         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1764           if test $ac_prog = install &&
1765             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1766             # AIX install.  It has an incompatible calling convention.
1767             :
1768           elif test $ac_prog = install &&
1769             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1770             # program-specific install script used by HP pwplus--don't use.
1771             :
1772           else
1773             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1774             break 3
1775           fi
1776         fi
1777       done
1778     done
1779     ;;
1780 esac
1781 done
1782
1783
1784 fi
1785   if test "${ac_cv_path_install+set}" = set; then
1786     INSTALL=$ac_cv_path_install
1787   else
1788     # As a last resort, use the slow shell script.  We don't cache a
1789     # path for INSTALL within a source directory, because that will
1790     # break other packages using the cache if that directory is
1791     # removed, or if the path is relative.
1792     INSTALL=$ac_install_sh
1793   fi
1794 fi
1795 echo "$as_me:$LINENO: result: $INSTALL" >&5
1796 echo "${ECHO_T}$INSTALL" >&6
1797
1798 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1799 # It thinks the first close brace ends the variable substitution.
1800 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1801
1802 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1803
1804 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1805
1806
1807 # Make sure we can run config.sub.
1808 $ac_config_sub sun4 >/dev/null 2>&1 ||
1809   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1810 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1811    { (exit 1); exit 1; }; }
1812
1813 echo "$as_me:$LINENO: checking build system type" >&5
1814 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1815 if test "${ac_cv_build+set}" = set; then
1816   echo $ECHO_N "(cached) $ECHO_C" >&6
1817 else
1818   ac_cv_build_alias=$build_alias
1819 test -z "$ac_cv_build_alias" &&
1820   ac_cv_build_alias=`$ac_config_guess`
1821 test -z "$ac_cv_build_alias" &&
1822   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1823 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1824    { (exit 1); exit 1; }; }
1825 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1826   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1827 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1828    { (exit 1); exit 1; }; }
1829
1830 fi
1831 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1832 echo "${ECHO_T}$ac_cv_build" >&6
1833 build=$ac_cv_build
1834 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1835 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1836 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1837
1838
1839 echo "$as_me:$LINENO: checking host system type" >&5
1840 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1841 if test "${ac_cv_host+set}" = set; then
1842   echo $ECHO_N "(cached) $ECHO_C" >&6
1843 else
1844   ac_cv_host_alias=$host_alias
1845 test -z "$ac_cv_host_alias" &&
1846   ac_cv_host_alias=$ac_cv_build_alias
1847 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1848   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1849 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1850    { (exit 1); exit 1; }; }
1851
1852 fi
1853 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1854 echo "${ECHO_T}$ac_cv_host" >&6
1855 host=$ac_cv_host
1856 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1857 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1858 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1859
1860
1861 echo "$as_me:$LINENO: checking target system type" >&5
1862 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1863 if test "${ac_cv_target+set}" = set; then
1864   echo $ECHO_N "(cached) $ECHO_C" >&6
1865 else
1866   ac_cv_target_alias=$target_alias
1867 test "x$ac_cv_target_alias" = "x" &&
1868   ac_cv_target_alias=$ac_cv_host_alias
1869 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1870   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1871 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1872    { (exit 1); exit 1; }; }
1873
1874 fi
1875 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1876 echo "${ECHO_T}$ac_cv_target" >&6
1877 target=$ac_cv_target
1878 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1879 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1880 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1881
1882
1883 # The aliases save the names the user supplied, while $host etc.
1884 # will get canonicalized.
1885 test -n "$target_alias" &&
1886   test "$program_prefix$program_suffix$program_transform_name" = \
1887     NONENONEs,x,x, &&
1888   program_prefix=${target_alias}-
1889
1890 case $build in
1891         *-*-linux*)
1892              OS=Linux
1893
1894                          if test -d /home/vadve/lattner/local/x86/llvm-gcc
1895                          then
1896                            LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1897
1898                          fi
1899                  ;;
1900
1901         *-*-solaris*)
1902              OS=SunOS
1903
1904                          if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1905                          then
1906                    LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1907
1908                          fi
1909                  ;;
1910
1911         *-*-darwin*)
1912              OS=Darwin
1913
1914                  ;;
1915
1916         *)       OS=Unknown
1917
1918                  ;;
1919 esac
1920
1921 case $target in
1922         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1923
1924                             ;;
1925 esac
1926
1927 case $target in
1928         i*86-*)           ARCH=x86
1929
1930                           ;;
1931         sparc*-*)         ARCH=Sparc
1932
1933                           ;;
1934         powerpc*-*)       ARCH=PowerPC
1935
1936                           ;;
1937         *)                ARCH=Unknown
1938
1939                           ;;
1940 esac
1941
1942
1943 ac_ext=cc
1944 ac_cpp='$CXXCPP $CPPFLAGS'
1945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1948 if test -n "$ac_tool_prefix"; then
1949   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1950   do
1951     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_CXX+set}" = set; then
1956   echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958   if test -n "$CXX"; then
1959   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1960 else
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 for as_dir in $PATH
1963 do
1964   IFS=$as_save_IFS
1965   test -z "$as_dir" && as_dir=.
1966   for ac_exec_ext in '' $ac_executable_extensions; do
1967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970     break 2
1971   fi
1972 done
1973 done
1974
1975 fi
1976 fi
1977 CXX=$ac_cv_prog_CXX
1978 if test -n "$CXX"; then
1979   echo "$as_me:$LINENO: result: $CXX" >&5
1980 echo "${ECHO_T}$CXX" >&6
1981 else
1982   echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6
1984 fi
1985
1986     test -n "$CXX" && break
1987   done
1988 fi
1989 if test -z "$CXX"; then
1990   ac_ct_CXX=$CXX
1991   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1992 do
1993   # Extract the first word of "$ac_prog", so it can be a program name with args.
1994 set dummy $ac_prog; ac_word=$2
1995 echo "$as_me:$LINENO: checking for $ac_word" >&5
1996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1998   echo $ECHO_N "(cached) $ECHO_C" >&6
1999 else
2000   if test -n "$ac_ct_CXX"; then
2001   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2002 else
2003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004 for as_dir in $PATH
2005 do
2006   IFS=$as_save_IFS
2007   test -z "$as_dir" && as_dir=.
2008   for ac_exec_ext in '' $ac_executable_extensions; do
2009   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2010     ac_cv_prog_ac_ct_CXX="$ac_prog"
2011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012     break 2
2013   fi
2014 done
2015 done
2016
2017 fi
2018 fi
2019 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2020 if test -n "$ac_ct_CXX"; then
2021   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2022 echo "${ECHO_T}$ac_ct_CXX" >&6
2023 else
2024   echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6
2026 fi
2027
2028   test -n "$ac_ct_CXX" && break
2029 done
2030 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2031
2032   CXX=$ac_ct_CXX
2033 fi
2034
2035
2036 # Provide some information about the compiler.
2037 echo "$as_me:$LINENO:" \
2038      "checking for C++ compiler version" >&5
2039 ac_compiler=`set X $ac_compile; echo $2`
2040 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2041   (eval $ac_compiler --version </dev/null >&5) 2>&5
2042   ac_status=$?
2043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044   (exit $ac_status); }
2045 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2046   (eval $ac_compiler -v </dev/null >&5) 2>&5
2047   ac_status=$?
2048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049   (exit $ac_status); }
2050 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2051   (eval $ac_compiler -V </dev/null >&5) 2>&5
2052   ac_status=$?
2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054   (exit $ac_status); }
2055
2056 cat >conftest.$ac_ext <<_ACEOF
2057 #line $LINENO "configure"
2058 /* confdefs.h.  */
2059 _ACEOF
2060 cat confdefs.h >>conftest.$ac_ext
2061 cat >>conftest.$ac_ext <<_ACEOF
2062 /* end confdefs.h.  */
2063
2064 int
2065 main ()
2066 {
2067
2068   ;
2069   return 0;
2070 }
2071 _ACEOF
2072 ac_clean_files_save=$ac_clean_files
2073 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2074 # Try to create an executable without -o first, disregard a.out.
2075 # It will help us diagnose broken compilers, and finding out an intuition
2076 # of exeext.
2077 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2078 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2079 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2080 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2081   (eval $ac_link_default) 2>&5
2082   ac_status=$?
2083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084   (exit $ac_status); }; then
2085   # Find the output, starting from the most likely.  This scheme is
2086 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2087 # resort.
2088
2089 # Be careful to initialize this variable, since it used to be cached.
2090 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2091 ac_cv_exeext=
2092 # b.out is created by i960 compilers.
2093 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2094 do
2095   test -f "$ac_file" || continue
2096   case $ac_file in
2097     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2098         ;;
2099     conftest.$ac_ext )
2100         # This is the source file.
2101         ;;
2102     [ab].out )
2103         # We found the default executable, but exeext='' is most
2104         # certainly right.
2105         break;;
2106     *.* )
2107         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2108         # FIXME: I believe we export ac_cv_exeext for Libtool,
2109         # but it would be cool to find out if it's true.  Does anybody
2110         # maintain Libtool? --akim.
2111         export ac_cv_exeext
2112         break;;
2113     * )
2114         break;;
2115   esac
2116 done
2117 else
2118   echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2120
2121 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: C++ compiler cannot create executables
2124 See \`config.log' for more details." >&2;}
2125    { (exit 77); exit 77; }; }
2126 fi
2127
2128 ac_exeext=$ac_cv_exeext
2129 echo "$as_me:$LINENO: result: $ac_file" >&5
2130 echo "${ECHO_T}$ac_file" >&6
2131
2132 # Check the compiler produces executables we can run.  If not, either
2133 # the compiler is broken, or we cross compile.
2134 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2135 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2136 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2137 # If not cross compiling, check that we can run a simple program.
2138 if test "$cross_compiling" != yes; then
2139   if { ac_try='./$ac_file'
2140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141   (eval $ac_try) 2>&5
2142   ac_status=$?
2143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144   (exit $ac_status); }; }; then
2145     cross_compiling=no
2146   else
2147     if test "$cross_compiling" = maybe; then
2148         cross_compiling=yes
2149     else
2150         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2151 If you meant to cross compile, use \`--host'.
2152 See \`config.log' for more details." >&5
2153 echo "$as_me: error: cannot run C++ compiled programs.
2154 If you meant to cross compile, use \`--host'.
2155 See \`config.log' for more details." >&2;}
2156    { (exit 1); exit 1; }; }
2157     fi
2158   fi
2159 fi
2160 echo "$as_me:$LINENO: result: yes" >&5
2161 echo "${ECHO_T}yes" >&6
2162
2163 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2164 ac_clean_files=$ac_clean_files_save
2165 # Check the compiler produces executables we can run.  If not, either
2166 # the compiler is broken, or we cross compile.
2167 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2168 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2169 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2170 echo "${ECHO_T}$cross_compiling" >&6
2171
2172 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2173 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2175   (eval $ac_link) 2>&5
2176   ac_status=$?
2177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178   (exit $ac_status); }; then
2179   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2180 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2181 # work properly (i.e., refer to `conftest.exe'), while it won't with
2182 # `rm'.
2183 for ac_file in conftest.exe conftest conftest.*; do
2184   test -f "$ac_file" || continue
2185   case $ac_file in
2186     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2187     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188           export ac_cv_exeext
2189           break;;
2190     * ) break;;
2191   esac
2192 done
2193 else
2194   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2195 See \`config.log' for more details." >&5
2196 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2197 See \`config.log' for more details." >&2;}
2198    { (exit 1); exit 1; }; }
2199 fi
2200
2201 rm -f conftest$ac_cv_exeext
2202 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2203 echo "${ECHO_T}$ac_cv_exeext" >&6
2204
2205 rm -f conftest.$ac_ext
2206 EXEEXT=$ac_cv_exeext
2207 ac_exeext=$EXEEXT
2208 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2209 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2210 if test "${ac_cv_objext+set}" = set; then
2211   echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213   cat >conftest.$ac_ext <<_ACEOF
2214 #line $LINENO "configure"
2215 /* confdefs.h.  */
2216 _ACEOF
2217 cat confdefs.h >>conftest.$ac_ext
2218 cat >>conftest.$ac_ext <<_ACEOF
2219 /* end confdefs.h.  */
2220
2221 int
2222 main ()
2223 {
2224
2225   ;
2226   return 0;
2227 }
2228 _ACEOF
2229 rm -f conftest.o conftest.obj
2230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231   (eval $ac_compile) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; then
2235   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2236   case $ac_file in
2237     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2238     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2239        break;;
2240   esac
2241 done
2242 else
2243   echo "$as_me: failed program was:" >&5
2244 sed 's/^/| /' conftest.$ac_ext >&5
2245
2246 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2247 See \`config.log' for more details." >&5
2248 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2249 See \`config.log' for more details." >&2;}
2250    { (exit 1); exit 1; }; }
2251 fi
2252
2253 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2254 fi
2255 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2256 echo "${ECHO_T}$ac_cv_objext" >&6
2257 OBJEXT=$ac_cv_objext
2258 ac_objext=$OBJEXT
2259 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2260 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2261 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2262   echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264   cat >conftest.$ac_ext <<_ACEOF
2265 #line $LINENO "configure"
2266 /* confdefs.h.  */
2267 _ACEOF
2268 cat confdefs.h >>conftest.$ac_ext
2269 cat >>conftest.$ac_ext <<_ACEOF
2270 /* end confdefs.h.  */
2271
2272 int
2273 main ()
2274 {
2275 #ifndef __GNUC__
2276        choke me
2277 #endif
2278
2279   ;
2280   return 0;
2281 }
2282 _ACEOF
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285   (eval $ac_compile) 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); } &&
2289          { ac_try='test -s conftest.$ac_objext'
2290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291   (eval $ac_try) 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); }; }; then
2295   ac_compiler_gnu=yes
2296 else
2297   echo "$as_me: failed program was:" >&5
2298 sed 's/^/| /' conftest.$ac_ext >&5
2299
2300 ac_compiler_gnu=no
2301 fi
2302 rm -f conftest.$ac_objext conftest.$ac_ext
2303 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2304
2305 fi
2306 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2307 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2308 GXX=`test $ac_compiler_gnu = yes && echo yes`
2309 ac_test_CXXFLAGS=${CXXFLAGS+set}
2310 ac_save_CXXFLAGS=$CXXFLAGS
2311 CXXFLAGS="-g"
2312 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2313 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2314 if test "${ac_cv_prog_cxx_g+set}" = set; then
2315   echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317   cat >conftest.$ac_ext <<_ACEOF
2318 #line $LINENO "configure"
2319 /* confdefs.h.  */
2320 _ACEOF
2321 cat confdefs.h >>conftest.$ac_ext
2322 cat >>conftest.$ac_ext <<_ACEOF
2323 /* end confdefs.h.  */
2324
2325 int
2326 main ()
2327 {
2328
2329   ;
2330   return 0;
2331 }
2332 _ACEOF
2333 rm -f conftest.$ac_objext
2334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2335   (eval $ac_compile) 2>&5
2336   ac_status=$?
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); } &&
2339          { ac_try='test -s conftest.$ac_objext'
2340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341   (eval $ac_try) 2>&5
2342   ac_status=$?
2343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344   (exit $ac_status); }; }; then
2345   ac_cv_prog_cxx_g=yes
2346 else
2347   echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2349
2350 ac_cv_prog_cxx_g=no
2351 fi
2352 rm -f conftest.$ac_objext conftest.$ac_ext
2353 fi
2354 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2355 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2356 if test "$ac_test_CXXFLAGS" = set; then
2357   CXXFLAGS=$ac_save_CXXFLAGS
2358 elif test $ac_cv_prog_cxx_g = yes; then
2359   if test "$GXX" = yes; then
2360     CXXFLAGS="-g -O2"
2361   else
2362     CXXFLAGS="-g"
2363   fi
2364 else
2365   if test "$GXX" = yes; then
2366     CXXFLAGS="-O2"
2367   else
2368     CXXFLAGS=
2369   fi
2370 fi
2371 for ac_declaration in \
2372    ''\
2373    '#include <stdlib.h>' \
2374    'extern "C" void std::exit (int) throw (); using std::exit;' \
2375    'extern "C" void std::exit (int); using std::exit;' \
2376    'extern "C" void exit (int) throw ();' \
2377    'extern "C" void exit (int);' \
2378    'void exit (int);'
2379 do
2380   cat >conftest.$ac_ext <<_ACEOF
2381 #line $LINENO "configure"
2382 /* confdefs.h.  */
2383 _ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h.  */
2387 #include <stdlib.h>
2388 $ac_declaration
2389 int
2390 main ()
2391 {
2392 exit (42);
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399   (eval $ac_compile) 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); } &&
2403          { ac_try='test -s conftest.$ac_objext'
2404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405   (eval $ac_try) 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; }; then
2409   :
2410 else
2411   echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2413
2414 continue
2415 fi
2416 rm -f conftest.$ac_objext conftest.$ac_ext
2417   cat >conftest.$ac_ext <<_ACEOF
2418 #line $LINENO "configure"
2419 /* confdefs.h.  */
2420 _ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h.  */
2424 $ac_declaration
2425 int
2426 main ()
2427 {
2428 exit (42);
2429   ;
2430   return 0;
2431 }
2432 _ACEOF
2433 rm -f conftest.$ac_objext
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435   (eval $ac_compile) 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); } &&
2439          { ac_try='test -s conftest.$ac_objext'
2440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441   (eval $ac_try) 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); }; }; then
2445   break
2446 else
2447   echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2449
2450 fi
2451 rm -f conftest.$ac_objext conftest.$ac_ext
2452 done
2453 rm -f conftest*
2454 if test -n "$ac_declaration"; then
2455   echo '#ifdef __cplusplus' >>confdefs.h
2456   echo $ac_declaration      >>confdefs.h
2457   echo '#endif'             >>confdefs.h
2458 fi
2459
2460 ac_ext=c
2461 ac_cpp='$CPP $CPPFLAGS'
2462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2465
2466 ac_ext=c
2467 ac_cpp='$CPP $CPPFLAGS'
2468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471 if test -n "$ac_tool_prefix"; then
2472   for ac_prog in gcc
2473   do
2474     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2475 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2476 echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2478 if test "${ac_cv_prog_CC+set}" = set; then
2479   echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481   if test -n "$CC"; then
2482   ac_cv_prog_CC="$CC" # Let the user override the test.
2483 else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH
2486 do
2487   IFS=$as_save_IFS
2488   test -z "$as_dir" && as_dir=.
2489   for ac_exec_ext in '' $ac_executable_extensions; do
2490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2493     break 2
2494   fi
2495 done
2496 done
2497
2498 fi
2499 fi
2500 CC=$ac_cv_prog_CC
2501 if test -n "$CC"; then
2502   echo "$as_me:$LINENO: result: $CC" >&5
2503 echo "${ECHO_T}$CC" >&6
2504 else
2505   echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6
2507 fi
2508
2509     test -n "$CC" && break
2510   done
2511 fi
2512 if test -z "$CC"; then
2513   ac_ct_CC=$CC
2514   for ac_prog in gcc
2515 do
2516   # Extract the first word of "$ac_prog", so it can be a program name with args.
2517 set dummy $ac_prog; ac_word=$2
2518 echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2521   echo $ECHO_N "(cached) $ECHO_C" >&6
2522 else
2523   if test -n "$ac_ct_CC"; then
2524   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2528 do
2529   IFS=$as_save_IFS
2530   test -z "$as_dir" && as_dir=.
2531   for ac_exec_ext in '' $ac_executable_extensions; do
2532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2533     ac_cv_prog_ac_ct_CC="$ac_prog"
2534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535     break 2
2536   fi
2537 done
2538 done
2539
2540 fi
2541 fi
2542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2543 if test -n "$ac_ct_CC"; then
2544   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2545 echo "${ECHO_T}$ac_ct_CC" >&6
2546 else
2547   echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6
2549 fi
2550
2551   test -n "$ac_ct_CC" && break
2552 done
2553
2554   CC=$ac_ct_CC
2555 fi
2556
2557
2558 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2559 See \`config.log' for more details." >&5
2560 echo "$as_me: error: no acceptable C compiler found in \$PATH
2561 See \`config.log' for more details." >&2;}
2562    { (exit 1); exit 1; }; }
2563
2564 # Provide some information about the compiler.
2565 echo "$as_me:$LINENO:" \
2566      "checking for C compiler version" >&5
2567 ac_compiler=`set X $ac_compile; echo $2`
2568 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2569   (eval $ac_compiler --version </dev/null >&5) 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); }
2573 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2574   (eval $ac_compiler -v </dev/null >&5) 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); }
2578 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2579   (eval $ac_compiler -V </dev/null >&5) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }
2583
2584 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2585 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2586 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2587   echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589   cat >conftest.$ac_ext <<_ACEOF
2590 #line $LINENO "configure"
2591 /* confdefs.h.  */
2592 _ACEOF
2593 cat confdefs.h >>conftest.$ac_ext
2594 cat >>conftest.$ac_ext <<_ACEOF
2595 /* end confdefs.h.  */
2596
2597 int
2598 main ()
2599 {
2600 #ifndef __GNUC__
2601        choke me
2602 #endif
2603
2604   ;
2605   return 0;
2606 }
2607 _ACEOF
2608 rm -f conftest.$ac_objext
2609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2610   (eval $ac_compile) 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); } &&
2614          { ac_try='test -s conftest.$ac_objext'
2615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616   (eval $ac_try) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; }; then
2620   ac_compiler_gnu=yes
2621 else
2622   echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2624
2625 ac_compiler_gnu=no
2626 fi
2627 rm -f conftest.$ac_objext conftest.$ac_ext
2628 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2629
2630 fi
2631 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2632 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2633 GCC=`test $ac_compiler_gnu = yes && echo yes`
2634 ac_test_CFLAGS=${CFLAGS+set}
2635 ac_save_CFLAGS=$CFLAGS
2636 CFLAGS="-g"
2637 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2638 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2639 if test "${ac_cv_prog_cc_g+set}" = set; then
2640   echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642   cat >conftest.$ac_ext <<_ACEOF
2643 #line $LINENO "configure"
2644 /* confdefs.h.  */
2645 _ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h.  */
2649
2650 int
2651 main ()
2652 {
2653
2654   ;
2655   return 0;
2656 }
2657 _ACEOF
2658 rm -f conftest.$ac_objext
2659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2660   (eval $ac_compile) 2>&5
2661   ac_status=$?
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); } &&
2664          { ac_try='test -s conftest.$ac_objext'
2665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666   (eval $ac_try) 2>&5
2667   ac_status=$?
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); }; }; then
2670   ac_cv_prog_cc_g=yes
2671 else
2672   echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2674
2675 ac_cv_prog_cc_g=no
2676 fi
2677 rm -f conftest.$ac_objext conftest.$ac_ext
2678 fi
2679 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2680 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2681 if test "$ac_test_CFLAGS" = set; then
2682   CFLAGS=$ac_save_CFLAGS
2683 elif test $ac_cv_prog_cc_g = yes; then
2684   if test "$GCC" = yes; then
2685     CFLAGS="-g -O2"
2686   else
2687     CFLAGS="-g"
2688   fi
2689 else
2690   if test "$GCC" = yes; then
2691     CFLAGS="-O2"
2692   else
2693     CFLAGS=
2694   fi
2695 fi
2696 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2697 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2698 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2699   echo $ECHO_N "(cached) $ECHO_C" >&6
2700 else
2701   ac_cv_prog_cc_stdc=no
2702 ac_save_CC=$CC
2703 cat >conftest.$ac_ext <<_ACEOF
2704 #line $LINENO "configure"
2705 /* confdefs.h.  */
2706 _ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h.  */
2710 #include <stdarg.h>
2711 #include <stdio.h>
2712 #include <sys/types.h>
2713 #include <sys/stat.h>
2714 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2715 struct buf { int x; };
2716 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2717 static char *e (p, i)
2718      char **p;
2719      int i;
2720 {
2721   return p[i];
2722 }
2723 static char *f (char * (*g) (char **, int), char **p, ...)
2724 {
2725   char *s;
2726   va_list v;
2727   va_start (v,p);
2728   s = g (p, va_arg (v,int));
2729   va_end (v);
2730   return s;
2731 }
2732 int test (int i, double x);
2733 struct s1 {int (*f) (int a);};
2734 struct s2 {int (*f) (double a);};
2735 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2736 int argc;
2737 char **argv;
2738 int
2739 main ()
2740 {
2741 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2742   ;
2743   return 0;
2744 }
2745 _ACEOF
2746 # Don't try gcc -ansi; that turns off useful extensions and
2747 # breaks some systems' header files.
2748 # AIX                   -qlanglvl=ansi
2749 # Ultrix and OSF/1      -std1
2750 # HP-UX 10.20 and later -Ae
2751 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2752 # SVR4                  -Xc -D__EXTENSIONS__
2753 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2754 do
2755   CC="$ac_save_CC $ac_arg"
2756   rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758   (eval $ac_compile) 2>&5
2759   ac_status=$?
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); } &&
2762          { ac_try='test -s conftest.$ac_objext'
2763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764   (eval $ac_try) 2>&5
2765   ac_status=$?
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); }; }; then
2768   ac_cv_prog_cc_stdc=$ac_arg
2769 break
2770 else
2771   echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2773
2774 fi
2775 rm -f conftest.$ac_objext
2776 done
2777 rm -f conftest.$ac_ext conftest.$ac_objext
2778 CC=$ac_save_CC
2779
2780 fi
2781
2782 case "x$ac_cv_prog_cc_stdc" in
2783   x|xno)
2784     echo "$as_me:$LINENO: result: none needed" >&5
2785 echo "${ECHO_T}none needed" >&6 ;;
2786   *)
2787     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2788 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2789     CC="$CC $ac_cv_prog_cc_stdc" ;;
2790 esac
2791
2792 # Some people use a C++ compiler to compile C.  Since we use `exit',
2793 # in C++ we need to declare it.  In case someone uses the same compiler
2794 # for both compiling C and C++ we need to have the C++ compiler decide
2795 # the declaration of exit, since it's the most demanding environment.
2796 cat >conftest.$ac_ext <<_ACEOF
2797 #ifndef __cplusplus
2798   choke me
2799 #endif
2800 _ACEOF
2801 rm -f conftest.$ac_objext
2802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2803   (eval $ac_compile) 2>&5
2804   ac_status=$?
2805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806   (exit $ac_status); } &&
2807          { ac_try='test -s conftest.$ac_objext'
2808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809   (eval $ac_try) 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); }; }; then
2813   for ac_declaration in \
2814    ''\
2815    '#include <stdlib.h>' \
2816    'extern "C" void std::exit (int) throw (); using std::exit;' \
2817    'extern "C" void std::exit (int); using std::exit;' \
2818    'extern "C" void exit (int) throw ();' \
2819    'extern "C" void exit (int);' \
2820    'void exit (int);'
2821 do
2822   cat >conftest.$ac_ext <<_ACEOF
2823 #line $LINENO "configure"
2824 /* confdefs.h.  */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h.  */
2829 #include <stdlib.h>
2830 $ac_declaration
2831 int
2832 main ()
2833 {
2834 exit (42);
2835   ;
2836   return 0;
2837 }
2838 _ACEOF
2839 rm -f conftest.$ac_objext
2840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841   (eval $ac_compile) 2>&5
2842   ac_status=$?
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); } &&
2845          { ac_try='test -s conftest.$ac_objext'
2846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847   (eval $ac_try) 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; }; then
2851   :
2852 else
2853   echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2855
2856 continue
2857 fi
2858 rm -f conftest.$ac_objext conftest.$ac_ext
2859   cat >conftest.$ac_ext <<_ACEOF
2860 #line $LINENO "configure"
2861 /* confdefs.h.  */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h.  */
2866 $ac_declaration
2867 int
2868 main ()
2869 {
2870 exit (42);
2871   ;
2872   return 0;
2873 }
2874 _ACEOF
2875 rm -f conftest.$ac_objext
2876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2877   (eval $ac_compile) 2>&5
2878   ac_status=$?
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); } &&
2881          { ac_try='test -s conftest.$ac_objext'
2882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883   (eval $ac_try) 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); }; }; then
2887   break
2888 else
2889   echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2891
2892 fi
2893 rm -f conftest.$ac_objext conftest.$ac_ext
2894 done
2895 rm -f conftest*
2896 if test -n "$ac_declaration"; then
2897   echo '#ifdef __cplusplus' >>confdefs.h
2898   echo $ac_declaration      >>confdefs.h
2899   echo '#endif'             >>confdefs.h
2900 fi
2901
2902 else
2903   echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2905
2906 fi
2907 rm -f conftest.$ac_objext conftest.$ac_ext
2908 ac_ext=c
2909 ac_cpp='$CPP $CPPFLAGS'
2910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913
2914 ac_ext=c
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2920 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2921 # On Suns, sometimes $CPP names a directory.
2922 if test -n "$CPP" && test -d "$CPP"; then
2923   CPP=
2924 fi
2925 if test -z "$CPP"; then
2926   if test "${ac_cv_prog_CPP+set}" = set; then
2927   echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929       # Double quotes because CPP needs to be expanded
2930     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2931     do
2932       ac_preproc_ok=false
2933 for ac_c_preproc_warn_flag in '' yes
2934 do
2935   # Use a header file that comes with gcc, so configuring glibc
2936   # with a fresh cross-compiler works.
2937   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2938   # <limits.h> exists even on freestanding compilers.
2939   # On the NeXT, cc -E runs the code through the compiler's parser,
2940   # not just through cpp. "Syntax error" is here to catch this case.
2941   cat >conftest.$ac_ext <<_ACEOF
2942 #line $LINENO "configure"
2943 /* confdefs.h.  */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h.  */
2948 #ifdef __STDC__
2949 # include <limits.h>
2950 #else
2951 # include <assert.h>
2952 #endif
2953                      Syntax error
2954 _ACEOF
2955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2957   ac_status=$?
2958   grep -v '^ *+' conftest.er1 >conftest.err
2959   rm -f conftest.er1
2960   cat conftest.err >&5
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); } >/dev/null; then
2963   if test -s conftest.err; then
2964     ac_cpp_err=$ac_c_preproc_warn_flag
2965   else
2966     ac_cpp_err=
2967   fi
2968 else
2969   ac_cpp_err=yes
2970 fi
2971 if test -z "$ac_cpp_err"; then
2972   :
2973 else
2974   echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977   # Broken: fails on valid input.
2978 continue
2979 fi
2980 rm -f conftest.err conftest.$ac_ext
2981
2982   # OK, works on sane cases.  Now check whether non-existent headers
2983   # can be detected and how.
2984   cat >conftest.$ac_ext <<_ACEOF
2985 #line $LINENO "configure"
2986 /* confdefs.h.  */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h.  */
2991 #include <ac_nonexistent.h>
2992 _ACEOF
2993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2995   ac_status=$?
2996   grep -v '^ *+' conftest.er1 >conftest.err
2997   rm -f conftest.er1
2998   cat conftest.err >&5
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); } >/dev/null; then
3001   if test -s conftest.err; then
3002     ac_cpp_err=$ac_c_preproc_warn_flag
3003   else
3004     ac_cpp_err=
3005   fi
3006 else
3007   ac_cpp_err=yes
3008 fi
3009 if test -z "$ac_cpp_err"; then
3010   # Broken: success on invalid input.
3011 continue
3012 else
3013   echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3015
3016   # Passes both tests.
3017 ac_preproc_ok=:
3018 break
3019 fi
3020 rm -f conftest.err conftest.$ac_ext
3021
3022 done
3023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3024 rm -f conftest.err conftest.$ac_ext
3025 if $ac_preproc_ok; then
3026   break
3027 fi
3028
3029     done
3030     ac_cv_prog_CPP=$CPP
3031
3032 fi
3033   CPP=$ac_cv_prog_CPP
3034 else
3035   ac_cv_prog_CPP=$CPP
3036 fi
3037 echo "$as_me:$LINENO: result: $CPP" >&5
3038 echo "${ECHO_T}$CPP" >&6
3039 ac_preproc_ok=false
3040 for ac_c_preproc_warn_flag in '' yes
3041 do
3042   # Use a header file that comes with gcc, so configuring glibc
3043   # with a fresh cross-compiler works.
3044   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3045   # <limits.h> exists even on freestanding compilers.
3046   # On the NeXT, cc -E runs the code through the compiler's parser,
3047   # not just through cpp. "Syntax error" is here to catch this case.
3048   cat >conftest.$ac_ext <<_ACEOF
3049 #line $LINENO "configure"
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055 #ifdef __STDC__
3056 # include <limits.h>
3057 #else
3058 # include <assert.h>
3059 #endif
3060                      Syntax error
3061 _ACEOF
3062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3064   ac_status=$?
3065   grep -v '^ *+' conftest.er1 >conftest.err
3066   rm -f conftest.er1
3067   cat conftest.err >&5
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } >/dev/null; then
3070   if test -s conftest.err; then
3071     ac_cpp_err=$ac_c_preproc_warn_flag
3072   else
3073     ac_cpp_err=
3074   fi
3075 else
3076   ac_cpp_err=yes
3077 fi
3078 if test -z "$ac_cpp_err"; then
3079   :
3080 else
3081   echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084   # Broken: fails on valid input.
3085 continue
3086 fi
3087 rm -f conftest.err conftest.$ac_ext
3088
3089   # OK, works on sane cases.  Now check whether non-existent headers
3090   # can be detected and how.
3091   cat >conftest.$ac_ext <<_ACEOF
3092 #line $LINENO "configure"
3093 /* confdefs.h.  */
3094 _ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h.  */
3098 #include <ac_nonexistent.h>
3099 _ACEOF
3100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } >/dev/null; then
3108   if test -s conftest.err; then
3109     ac_cpp_err=$ac_c_preproc_warn_flag
3110   else
3111     ac_cpp_err=
3112   fi
3113 else
3114   ac_cpp_err=yes
3115 fi
3116 if test -z "$ac_cpp_err"; then
3117   # Broken: success on invalid input.
3118 continue
3119 else
3120   echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3122
3123   # Passes both tests.
3124 ac_preproc_ok=:
3125 break
3126 fi
3127 rm -f conftest.err conftest.$ac_ext
3128
3129 done
3130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3131 rm -f conftest.err conftest.$ac_ext
3132 if $ac_preproc_ok; then
3133   :
3134 else
3135   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3136 See \`config.log' for more details." >&5
3137 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3138 See \`config.log' for more details." >&2;}
3139    { (exit 1); exit 1; }; }
3140 fi
3141
3142 ac_ext=c
3143 ac_cpp='$CPP $CPPFLAGS'
3144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147
3148
3149 if test "$GCC" != "yes"
3150 then
3151         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3152 echo "$as_me: error: gcc required but not found" >&2;}
3153    { (exit 1); exit 1; }; }
3154 fi
3155
3156 if test "$GXX" != "yes"
3157 then
3158         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3159 echo "$as_me: error: g++ required but not found" >&2;}
3160    { (exit 1); exit 1; }; }
3161 fi
3162
3163 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3164 if test "$gccmajor" -lt "3"
3165 then
3166         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3167 echo "$as_me: error: gcc 3.x required" >&2;}
3168    { (exit 1); exit 1; }; }
3169 fi
3170
3171  echo "$as_me:$LINENO: checking for GNU make" >&5
3172 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3173 if test "${_cv_gnu_make_command+set}" = set; then
3174   echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176   _cv_gnu_make_command='' ;
3177                 for a in "$MAKE" make gmake gnumake ; do
3178                         if test -z "$a" ; then continue ; fi ;
3179                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3180                                 _cv_gnu_make_command=$a ;
3181                                 break;
3182                         fi
3183                 done ;
3184
3185 fi
3186 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3187 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3188         if test  "x$_cv_gnu_make_command" != "x"  ; then
3189                 ifGNUmake='' ;
3190         else
3191                 ifGNUmake='#' ;
3192                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3193 echo "${ECHO_T}\"Not found\"" >&6;
3194         fi
3195
3196
3197 if test -z "$_cv_gnu_make_command"
3198 then
3199         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3200 echo "$as_me: error: GNU Make required but not found" >&2;}
3201    { (exit 1); exit 1; }; }
3202 fi
3203
3204
3205 echo "$as_me:$LINENO: checking " >&5
3206 echo $ECHO_N "checking ... $ECHO_C" >&6
3207 if test "${ac_cv_has_flex+set}" = set; then
3208   echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210   for ac_prog in flex lex
3211 do
3212   # Extract the first word of "$ac_prog", so it can be a program name with args.
3213 set dummy $ac_prog; ac_word=$2
3214 echo "$as_me:$LINENO: checking for $ac_word" >&5
3215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3216 if test "${ac_cv_prog_LEX+set}" = set; then
3217   echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219   if test -n "$LEX"; then
3220   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3221 else
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH
3224 do
3225   IFS=$as_save_IFS
3226   test -z "$as_dir" && as_dir=.
3227   for ac_exec_ext in '' $ac_executable_extensions; do
3228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229     ac_cv_prog_LEX="$ac_prog"
3230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3231     break 2
3232   fi
3233 done
3234 done
3235
3236 fi
3237 fi
3238 LEX=$ac_cv_prog_LEX
3239 if test -n "$LEX"; then
3240   echo "$as_me:$LINENO: result: $LEX" >&5
3241 echo "${ECHO_T}$LEX" >&6
3242 else
3243   echo "$as_me:$LINENO: result: no" >&5
3244 echo "${ECHO_T}no" >&6
3245 fi
3246
3247   test -n "$LEX" && break
3248 done
3249 test -n "$LEX" || LEX=":"
3250
3251 if test -z "$LEXLIB"
3252 then
3253   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3254 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3255 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3256   echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258   ac_check_lib_save_LIBS=$LIBS
3259 LIBS="-lfl  $LIBS"
3260 cat >conftest.$ac_ext <<_ACEOF
3261 #line $LINENO "configure"
3262 /* confdefs.h.  */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h.  */
3267
3268 /* Override any gcc2 internal prototype to avoid an error.  */
3269 #ifdef __cplusplus
3270 extern "C"
3271 #endif
3272 /* We use char because int might match the return type of a gcc2
3273    builtin and then its argument prototype would still apply.  */
3274 char yywrap ();
3275 int
3276 main ()
3277 {
3278 yywrap ();
3279   ;
3280   return 0;
3281 }
3282 _ACEOF
3283 rm -f conftest.$ac_objext conftest$ac_exeext
3284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3285   (eval $ac_link) 2>&5
3286   ac_status=$?
3287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288   (exit $ac_status); } &&
3289          { ac_try='test -s conftest$ac_exeext'
3290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291   (eval $ac_try) 2>&5
3292   ac_status=$?
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); }; }; then
3295   ac_cv_lib_fl_yywrap=yes
3296 else
3297   echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3299
3300 ac_cv_lib_fl_yywrap=no
3301 fi
3302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3303 LIBS=$ac_check_lib_save_LIBS
3304 fi
3305 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3306 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3307 if test $ac_cv_lib_fl_yywrap = yes; then
3308   LEXLIB="-lfl"
3309 else
3310   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3311 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3312 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3313   echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315   ac_check_lib_save_LIBS=$LIBS
3316 LIBS="-ll  $LIBS"
3317 cat >conftest.$ac_ext <<_ACEOF
3318 #line $LINENO "configure"
3319 /* confdefs.h.  */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h.  */
3324
3325 /* Override any gcc2 internal prototype to avoid an error.  */
3326 #ifdef __cplusplus
3327 extern "C"
3328 #endif
3329 /* We use char because int might match the return type of a gcc2
3330    builtin and then its argument prototype would still apply.  */
3331 char yywrap ();
3332 int
3333 main ()
3334 {
3335 yywrap ();
3336   ;
3337   return 0;
3338 }
3339 _ACEOF
3340 rm -f conftest.$ac_objext conftest$ac_exeext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3342   (eval $ac_link) 2>&5
3343   ac_status=$?
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); } &&
3346          { ac_try='test -s conftest$ac_exeext'
3347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348   (eval $ac_try) 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); }; }; then
3352   ac_cv_lib_l_yywrap=yes
3353 else
3354   echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3356
3357 ac_cv_lib_l_yywrap=no
3358 fi
3359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3360 LIBS=$ac_check_lib_save_LIBS
3361 fi
3362 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3363 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3364 if test $ac_cv_lib_l_yywrap = yes; then
3365   LEXLIB="-ll"
3366 fi
3367
3368 fi
3369
3370 fi
3371
3372 if test "x$LEX" != "x:"; then
3373   echo "$as_me:$LINENO: checking lex output file root" >&5
3374 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3375 if test "${ac_cv_prog_lex_root+set}" = set; then
3376   echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378   # The minimal lex program is just a single line: %%.  But some broken lexes
3379 # (Solaris, I think it was) want two %% lines, so accommodate them.
3380 cat >conftest.l <<_ACEOF
3381 %%
3382 %%
3383 _ACEOF
3384 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3385   (eval $LEX conftest.l) 2>&5
3386   ac_status=$?
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); }
3389 if test -f lex.yy.c; then
3390   ac_cv_prog_lex_root=lex.yy
3391 elif test -f lexyy.c; then
3392   ac_cv_prog_lex_root=lexyy
3393 else
3394   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3395 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3396    { (exit 1); exit 1; }; }
3397 fi
3398 fi
3399 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3400 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3401 rm -f conftest.l
3402 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3403
3404 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3405 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3406 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3407   echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409   # POSIX says lex can declare yytext either as a pointer or an array; the
3410 # default is implementation-dependent. Figure out which it is, since
3411 # not all implementations provide the %pointer and %array declarations.
3412 ac_cv_prog_lex_yytext_pointer=no
3413 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3414 ac_save_LIBS=$LIBS
3415 LIBS="$LIBS $LEXLIB"
3416 cat >conftest.$ac_ext <<_ACEOF
3417 `cat $LEX_OUTPUT_ROOT.c`
3418 _ACEOF
3419 rm -f conftest.$ac_objext conftest$ac_exeext
3420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3421   (eval $ac_link) 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); } &&
3425          { ac_try='test -s conftest$ac_exeext'
3426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427   (eval $ac_try) 2>&5
3428   ac_status=$?
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); }; }; then
3431   ac_cv_prog_lex_yytext_pointer=yes
3432 else
3433   echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436 fi
3437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3438 LIBS=$ac_save_LIBS
3439 rm -f "${LEX_OUTPUT_ROOT}.c"
3440
3441 fi
3442 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3443 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3444 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3445
3446 cat >>confdefs.h <<\_ACEOF
3447 #define YYTEXT_POINTER 1
3448 _ACEOF
3449
3450 fi
3451
3452 fi
3453
3454 fi
3455 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3456 echo "${ECHO_T}$ac_cv_has_flex" >&6
3457 if test "$LEX" != "flex"; then
3458   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3459 echo "$as_me: error: flex not found but required" >&2;}
3460    { (exit 1); exit 1; }; }
3461 fi
3462
3463 echo "$as_me:$LINENO: checking " >&5
3464 echo $ECHO_N "checking ... $ECHO_C" >&6
3465 if test "${ac_cv_has_bison+set}" = set; then
3466   echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468   for ac_prog in 'bison -y' byacc
3469 do
3470   # Extract the first word of "$ac_prog", so it can be a program name with args.
3471 set dummy $ac_prog; ac_word=$2
3472 echo "$as_me:$LINENO: checking for $ac_word" >&5
3473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474 if test "${ac_cv_prog_YACC+set}" = set; then
3475   echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477   if test -n "$YACC"; then
3478   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3479 else
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483   IFS=$as_save_IFS
3484   test -z "$as_dir" && as_dir=.
3485   for ac_exec_ext in '' $ac_executable_extensions; do
3486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487     ac_cv_prog_YACC="$ac_prog"
3488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489     break 2
3490   fi
3491 done
3492 done
3493
3494 fi
3495 fi
3496 YACC=$ac_cv_prog_YACC
3497 if test -n "$YACC"; then
3498   echo "$as_me:$LINENO: result: $YACC" >&5
3499 echo "${ECHO_T}$YACC" >&6
3500 else
3501   echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6
3503 fi
3504
3505   test -n "$YACC" && break
3506 done
3507 test -n "$YACC" || YACC="yacc"
3508
3509
3510 fi
3511 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3512 echo "${ECHO_T}$ac_cv_has_bison" >&6
3513 if test "$YACC" != "bison -y"; then
3514   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3515 echo "$as_me: error: bison not found but required" >&2;}
3516    { (exit 1); exit 1; }; }
3517 else
3518   YACC=bison
3519
3520 fi
3521
3522
3523 # Check whether --enable-shared or --disable-shared was given.
3524 if test "${enable_shared+set}" = set; then
3525   enableval="$enable_shared"
3526   p=${PACKAGE-default}
3527     case $enableval in
3528     yes) enable_shared=yes ;;
3529     no) enable_shared=no ;;
3530     *)
3531       enable_shared=no
3532       # Look at the argument we got.  We use all the common list separators.
3533       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3534       for pkg in $enableval; do
3535         IFS="$lt_save_ifs"
3536         if test "X$pkg" = "X$p"; then
3537           enable_shared=yes
3538         fi
3539       done
3540       IFS="$lt_save_ifs"
3541       ;;
3542     esac
3543 else
3544   enable_shared=yes
3545 fi;
3546
3547 # Check whether --enable-static or --disable-static was given.
3548 if test "${enable_static+set}" = set; then
3549   enableval="$enable_static"
3550   p=${PACKAGE-default}
3551     case $enableval in
3552     yes) enable_static=yes ;;
3553     no) enable_static=no ;;
3554     *)
3555      enable_static=no
3556       # Look at the argument we got.  We use all the common list separators.
3557       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3558       for pkg in $enableval; do
3559         IFS="$lt_save_ifs"
3560         if test "X$pkg" = "X$p"; then
3561           enable_static=yes
3562         fi
3563       done
3564       IFS="$lt_save_ifs"
3565       ;;
3566     esac
3567 else
3568   enable_static=yes
3569 fi;
3570
3571 # Check whether --enable-fast-install or --disable-fast-install was given.
3572 if test "${enable_fast_install+set}" = set; then
3573   enableval="$enable_fast_install"
3574   p=${PACKAGE-default}
3575     case $enableval in
3576     yes) enable_fast_install=yes ;;
3577     no) enable_fast_install=no ;;
3578     *)
3579       enable_fast_install=no
3580       # Look at the argument we got.  We use all the common list separators.
3581       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3582       for pkg in $enableval; do
3583         IFS="$lt_save_ifs"
3584         if test "X$pkg" = "X$p"; then
3585           enable_fast_install=yes
3586         fi
3587       done
3588       IFS="$lt_save_ifs"
3589       ;;
3590     esac
3591 else
3592   enable_fast_install=yes
3593 fi;
3594
3595 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3596 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3597 if test "${lt_cv_path_SED+set}" = set; then
3598   echo $ECHO_N "(cached) $ECHO_C" >&6
3599 else
3600   # Loop through the user's path and test for sed and gsed.
3601 # Then use that list of sed's as ones to test for truncation.
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3604 do
3605   IFS=$as_save_IFS
3606   test -z "$as_dir" && as_dir=.
3607   for lt_ac_prog in sed gsed; do
3608     for ac_exec_ext in '' $ac_executable_extensions; do
3609       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3610         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3611       fi
3612     done
3613   done
3614 done
3615 lt_ac_max=0
3616 lt_ac_count=0
3617 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3618 # along with /bin/sed that truncates output.
3619 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3620   test ! -f $lt_ac_sed && break
3621   cat /dev/null > conftest.in
3622   lt_ac_count=0
3623   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3624   # Check for GNU sed and select it if it is found.
3625   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3626     lt_cv_path_SED=$lt_ac_sed
3627     break
3628   fi
3629   while true; do
3630     cat conftest.in conftest.in >conftest.tmp
3631     mv conftest.tmp conftest.in
3632     cp conftest.in conftest.nl
3633     echo >>conftest.nl
3634     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3635     cmp -s conftest.out conftest.nl || break
3636     # 10000 chars as input seems more than enough
3637     test $lt_ac_count -gt 10 && break
3638     lt_ac_count=`expr $lt_ac_count + 1`
3639     if test $lt_ac_count -gt $lt_ac_max; then
3640       lt_ac_max=$lt_ac_count
3641       lt_cv_path_SED=$lt_ac_sed
3642     fi
3643   done
3644 done
3645 SED=$lt_cv_path_SED
3646
3647 fi
3648
3649 echo "$as_me:$LINENO: result: $SED" >&5
3650 echo "${ECHO_T}$SED" >&6
3651
3652 echo "$as_me:$LINENO: checking for egrep" >&5
3653 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3654 if test "${ac_cv_prog_egrep+set}" = set; then
3655   echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3658     then ac_cv_prog_egrep='grep -E'
3659     else ac_cv_prog_egrep='egrep'
3660     fi
3661 fi
3662 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3663 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3664  EGREP=$ac_cv_prog_egrep
3665
3666
3667
3668 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3669 if test "${with_gnu_ld+set}" = set; then
3670   withval="$with_gnu_ld"
3671   test "$withval" = no || with_gnu_ld=yes
3672 else
3673   with_gnu_ld=no
3674 fi;
3675 ac_prog=ld
3676 if test "$GCC" = yes; then
3677   # Check if gcc -print-prog-name=ld gives a path.
3678   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3679 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3680   case $host in
3681   *-*-mingw*)
3682     # gcc leaves a trailing carriage return which upsets mingw
3683     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3684   *)
3685     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3686   esac
3687   case $ac_prog in
3688     # Accept absolute paths.
3689     [\\/]* | ?:[\\/]*)
3690       re_direlt='/[^/][^/]*/\.\./'
3691       # Canonicalize the path of ld
3692       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3693       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3694         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3695       done
3696       test -z "$LD" && LD="$ac_prog"
3697       ;;
3698   "")
3699     # If it fails, then pretend we aren't using GCC.
3700     ac_prog=ld
3701     ;;
3702   *)
3703     # If it is relative, then search for the first ld in PATH.
3704     with_gnu_ld=unknown
3705     ;;
3706   esac
3707 elif test "$with_gnu_ld" = yes; then
3708   echo "$as_me:$LINENO: checking for GNU ld" >&5
3709 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3710 else
3711   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3712 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3713 fi
3714 if test "${lt_cv_path_LD+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   if test -z "$LD"; then
3718   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3719   for ac_dir in $PATH; do
3720     IFS="$lt_save_ifs"
3721     test -z "$ac_dir" && ac_dir=.
3722     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3723       lt_cv_path_LD="$ac_dir/$ac_prog"
3724       # Check to see if the program is GNU ld.  I'd rather use --version,
3725       # but apparently some GNU ld's only accept -v.
3726       # Break only if it was the GNU/non-GNU ld that we prefer.
3727       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3728       *GNU* | *'with BFD'*)
3729         test "$with_gnu_ld" != no && break
3730         ;;
3731       *)
3732         test "$with_gnu_ld" != yes && break
3733         ;;
3734       esac
3735     fi
3736   done
3737   IFS="$lt_save_ifs"
3738 else
3739   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3740 fi
3741 fi
3742
3743 LD="$lt_cv_path_LD"
3744 if test -n "$LD"; then
3745   echo "$as_me:$LINENO: result: $LD" >&5
3746 echo "${ECHO_T}$LD" >&6
3747 else
3748   echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6
3750 fi
3751 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3752 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3753    { (exit 1); exit 1; }; }
3754 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3755 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3756 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3760 case `"$LD" -v 2>&1 </dev/null` in
3761 *GNU* | *'with BFD'*)
3762   lt_cv_prog_gnu_ld=yes
3763   ;;
3764 *)
3765   lt_cv_prog_gnu_ld=no
3766   ;;
3767 esac
3768 fi
3769 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3770 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3771 with_gnu_ld=$lt_cv_prog_gnu_ld
3772
3773
3774 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3775 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3776 if test "${lt_cv_ld_reload_flag+set}" = set; then
3777   echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779   lt_cv_ld_reload_flag='-r'
3780 fi
3781 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3782 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3783 reload_flag=$lt_cv_ld_reload_flag
3784 case $reload_flag in
3785 "" | " "*) ;;
3786 *) reload_flag=" $reload_flag" ;;
3787 esac
3788 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3789
3790 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3791 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3792 if test "${lt_cv_path_NM+set}" = set; then
3793   echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795   if test -n "$NM"; then
3796   # Let the user override the test.
3797   lt_cv_path_NM="$NM"
3798 else
3799   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3800   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3801     IFS="$lt_save_ifs"
3802     test -z "$ac_dir" && ac_dir=.
3803     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3804     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3805       # Check to see if the nm accepts a BSD-compat flag.
3806       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3807       #   nm: unknown option "B" ignored
3808       # Tru64's nm complains that /dev/null is an invalid object file
3809       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3810       */dev/null* | *'Invalid file or object type'*)
3811         lt_cv_path_NM="$tmp_nm -B"
3812         break
3813         ;;
3814       *)
3815         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3816         */dev/null*)
3817           lt_cv_path_NM="$tmp_nm -p"
3818           break
3819           ;;
3820         *)
3821           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3822           continue # so that we can try to find one that supports BSD flags
3823           ;;
3824         esac
3825       esac
3826     fi
3827   done
3828   IFS="$lt_save_ifs"
3829   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3830 fi
3831 fi
3832 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3833 echo "${ECHO_T}$lt_cv_path_NM" >&6
3834 NM="$lt_cv_path_NM"
3835
3836 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3837 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3838 LN_S=$as_ln_s
3839 if test "$LN_S" = "ln -s"; then
3840   echo "$as_me:$LINENO: result: yes" >&5
3841 echo "${ECHO_T}yes" >&6
3842 else
3843   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3844 echo "${ECHO_T}no, using $LN_S" >&6
3845 fi
3846
3847 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3848 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3849 if test "${lt_cv_deplibs_check_method+set}" = set; then
3850   echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852   lt_cv_file_magic_cmd='$MAGIC_CMD'
3853 lt_cv_file_magic_test_file=
3854 lt_cv_deplibs_check_method='unknown'
3855 # Need to set the preceding variable on all platforms that support
3856 # interlibrary dependencies.
3857 # 'none' -- dependencies not supported.
3858 # `unknown' -- same as none, but documents that we really don't know.
3859 # 'pass_all' -- all dependencies passed with no checks.
3860 # 'test_compile' -- check by making test program.
3861 # 'file_magic [[regex]]' -- check by looking for files in library path
3862 # which responds to the $file_magic_cmd with a given extended regex.
3863 # If you have `file' or equivalent on your system and you're not sure
3864 # whether `pass_all' will *always* work, you probably want this one.
3865
3866 case $host_os in
3867 aix4* | aix5*)
3868   lt_cv_deplibs_check_method=pass_all
3869   ;;
3870
3871 beos*)
3872   lt_cv_deplibs_check_method=pass_all
3873   ;;
3874
3875 bsdi4*)
3876   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3877   lt_cv_file_magic_cmd='/usr/bin/file -L'
3878   lt_cv_file_magic_test_file=/shlib/libc.so
3879   ;;
3880
3881 cygwin* | mingw* | pw32*)
3882   # win32_libid is a shell function defined in ltmain.sh
3883   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3884   lt_cv_file_magic_cmd='win32_libid'
3885   ;;
3886
3887 darwin* | rhapsody*)
3888   # this will be overwritten by pass_all, but leave it in just in case
3889   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3890   lt_cv_file_magic_cmd='/usr/bin/file -L'
3891   case "$host_os" in
3892   rhapsody* | darwin1.[012])
3893     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3894     ;;
3895   *) # Darwin 1.3 on
3896     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3897     ;;
3898   esac
3899   lt_cv_deplibs_check_method=pass_all
3900   ;;
3901
3902 freebsd*)
3903   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3904     case $host_cpu in
3905     i*86 )
3906       # Not sure whether the presence of OpenBSD here was a mistake.
3907       # Let's accept both of them until this is cleared up.
3908       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3909       lt_cv_file_magic_cmd=/usr/bin/file
3910       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3911       ;;
3912     esac
3913   else
3914     lt_cv_deplibs_check_method=pass_all
3915   fi
3916   ;;
3917
3918 gnu*)
3919   lt_cv_deplibs_check_method=pass_all
3920   ;;
3921
3922 hpux10.20* | hpux11*)
3923   lt_cv_file_magic_cmd=/usr/bin/file
3924   case "$host_cpu" in
3925   ia64*)
3926     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3927     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3928     ;;
3929   hppa*64*)
3930     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]'
3931     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3932     ;;
3933   *)
3934     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3935     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3936     ;;
3937   esac
3938   ;;
3939
3940 irix5* | irix6* | nonstopux*)
3941   case $host_os in
3942   irix5* | nonstopux*)
3943     # this will be overridden with pass_all, but let us keep it just in case
3944     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3945     ;;
3946   *)
3947     case $LD in
3948     *-32|*"-32 ") libmagic=32-bit;;
3949     *-n32|*"-n32 ") libmagic=N32;;
3950     *-64|*"-64 ") libmagic=64-bit;;
3951     *) libmagic=never-match;;
3952     esac
3953     # this will be overridden with pass_all, but let us keep it just in case
3954     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3955     ;;
3956   esac
3957   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3958   lt_cv_deplibs_check_method=pass_all
3959   ;;
3960
3961 # This must be Linux ELF.
3962 linux*)
3963   case $host_cpu in
3964   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3965     lt_cv_deplibs_check_method=pass_all ;;
3966   *)
3967     # glibc up to 2.1.1 does not perform some relocations on ARM
3968     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3969   esac
3970   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3971   ;;
3972
3973 netbsd*)
3974   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3975     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3976   else
3977     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3978   fi
3979   ;;
3980
3981 newos6*)
3982   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3983   lt_cv_file_magic_cmd=/usr/bin/file
3984   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3985   ;;
3986
3987 nto-qnx)
3988   lt_cv_deplibs_check_method=unknown
3989   ;;
3990
3991 openbsd*)
3992   lt_cv_file_magic_cmd=/usr/bin/file
3993   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3994   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3995     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3996   else
3997     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3998   fi
3999   ;;
4000
4001 osf3* | osf4* | osf5*)
4002   # this will be overridden with pass_all, but let us keep it just in case
4003   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4004   lt_cv_file_magic_test_file=/shlib/libc.so
4005   lt_cv_deplibs_check_method=pass_all
4006   ;;
4007
4008 sco3.2v5*)
4009   lt_cv_deplibs_check_method=pass_all
4010   ;;
4011
4012 solaris*)
4013   lt_cv_deplibs_check_method=pass_all
4014   lt_cv_file_magic_test_file=/lib/libc.so
4015   ;;
4016
4017 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4018   case $host_vendor in
4019   motorola)
4020     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]'
4021     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4022     ;;
4023   ncr)
4024     lt_cv_deplibs_check_method=pass_all
4025     ;;
4026   sequent)
4027     lt_cv_file_magic_cmd='/bin/file'
4028     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4029     ;;
4030   sni)
4031     lt_cv_file_magic_cmd='/bin/file'
4032     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4033     lt_cv_file_magic_test_file=/lib/libc.so
4034     ;;
4035   siemens)
4036     lt_cv_deplibs_check_method=pass_all
4037     ;;
4038   esac
4039   ;;
4040
4041 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4042   lt_cv_deplibs_check_method=pass_all
4043   ;;
4044 esac
4045
4046 fi
4047 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4048 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4049 file_magic_cmd=$lt_cv_file_magic_cmd
4050 deplibs_check_method=$lt_cv_deplibs_check_method
4051 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4052
4053
4054
4055
4056 # If no C compiler was specified, use CC.
4057 LTCC=${LTCC-"$CC"}
4058
4059 # Allow CC to be a program name with arguments.
4060 compiler=$CC
4061
4062 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4063 if test "${enable_libtool_lock+set}" = set; then
4064   enableval="$enable_libtool_lock"
4065
4066 fi;
4067 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4068
4069 # Some flags need to be propagated to the compiler or linker for good
4070 # libtool support.
4071 case $host in
4072 ia64-*-hpux*)
4073   # Find out which ABI we are using.
4074   echo 'int i;' > conftest.$ac_ext
4075   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076   (eval $ac_compile) 2>&5
4077   ac_status=$?
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); }; then
4080     case `/usr/bin/file conftest.$ac_objext` in
4081     *ELF-32*)
4082       HPUX_IA64_MODE="32"
4083       ;;
4084     *ELF-64*)
4085       HPUX_IA64_MODE="64"
4086       ;;
4087     esac
4088   fi
4089   rm -rf conftest*
4090   ;;
4091 *-*-irix6*)
4092   # Find out which ABI we are using.
4093   echo '#line 4093 "configure"' > conftest.$ac_ext
4094   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095   (eval $ac_compile) 2>&5
4096   ac_status=$?
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); }; then
4099    if test "$lt_cv_prog_gnu_ld" = yes; then
4100     case `/usr/bin/file conftest.$ac_objext` in
4101     *32-bit*)
4102       LD="${LD-ld} -melf32bsmip"
4103       ;;
4104     *N32*)
4105       LD="${LD-ld} -melf32bmipn32"
4106       ;;
4107     *64-bit*)
4108       LD="${LD-ld} -melf64bmip"
4109       ;;
4110     esac
4111    else
4112     case `/usr/bin/file conftest.$ac_objext` in
4113     *32-bit*)
4114       LD="${LD-ld} -32"
4115       ;;
4116     *N32*)
4117       LD="${LD-ld} -n32"
4118       ;;
4119     *64-bit*)
4120       LD="${LD-ld} -64"
4121       ;;
4122     esac
4123    fi
4124   fi
4125   rm -rf conftest*
4126   ;;
4127
4128 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4129   # Find out which ABI we are using.
4130   echo 'int i;' > conftest.$ac_ext
4131   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4132   (eval $ac_compile) 2>&5
4133   ac_status=$?
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); }; then
4136     case "`/usr/bin/file conftest.o`" in
4137     *32-bit*)
4138       case $host in
4139         x86_64-*linux*)
4140           LD="${LD-ld} -m elf_i386"
4141           ;;
4142         ppc64-*linux*)
4143           LD="${LD-ld} -m elf32ppclinux"
4144           ;;
4145         s390x-*linux*)
4146           LD="${LD-ld} -m elf_s390"
4147           ;;
4148         sparc64-*linux*)
4149           LD="${LD-ld} -m elf32_sparc"
4150           ;;
4151       esac
4152       ;;
4153     *64-bit*)
4154       case $host in
4155         x86_64-*linux*)
4156           LD="${LD-ld} -m elf_x86_64"
4157           ;;
4158         ppc*-*linux*|powerpc*-*linux*)
4159           LD="${LD-ld} -m elf64ppc"
4160           ;;
4161         s390*-*linux*)
4162           LD="${LD-ld} -m elf64_s390"
4163           ;;
4164         sparc*-*linux*)
4165           LD="${LD-ld} -m elf64_sparc"
4166           ;;
4167       esac
4168       ;;
4169     esac
4170   fi
4171   rm -rf conftest*
4172   ;;
4173
4174 *-*-sco3.2v5*)
4175   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4176   SAVE_CFLAGS="$CFLAGS"
4177   CFLAGS="$CFLAGS -belf"
4178   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4179 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4180 if test "${lt_cv_cc_needs_belf+set}" = set; then
4181   echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183   ac_ext=c
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188
4189      cat >conftest.$ac_ext <<_ACEOF
4190 #line $LINENO "configure"
4191 /* confdefs.h.  */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h.  */
4196
4197 int
4198 main ()
4199 {
4200
4201   ;
4202   return 0;
4203 }
4204 _ACEOF
4205 rm -f conftest.$ac_objext conftest$ac_exeext
4206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4207   (eval $ac_link) 2>&5
4208   ac_status=$?
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); } &&
4211          { ac_try='test -s conftest$ac_exeext'
4212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213   (eval $ac_try) 2>&5
4214   ac_status=$?
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); }; }; then
4217   lt_cv_cc_needs_belf=yes
4218 else
4219   echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4221
4222 lt_cv_cc_needs_belf=no
4223 fi
4224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4225      ac_ext=c
4226 ac_cpp='$CPP $CPPFLAGS'
4227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230
4231 fi
4232 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4233 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4234   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4235     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4236     CFLAGS="$SAVE_CFLAGS"
4237   fi
4238   ;;
4239
4240 esac
4241
4242 need_locks="$enable_libtool_lock"
4243
4244
4245
4246 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4247 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4248 if test "${ac_cv_header_stdc+set}" = set; then
4249   echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251   cat >conftest.$ac_ext <<_ACEOF
4252 #line $LINENO "configure"
4253 /* confdefs.h.  */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h.  */
4258 #include <stdlib.h>
4259 #include <stdarg.h>
4260 #include <string.h>
4261 #include <float.h>
4262
4263 int
4264 main ()
4265 {
4266
4267   ;
4268   return 0;
4269 }
4270 _ACEOF
4271 rm -f conftest.$ac_objext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4273   (eval $ac_compile) 2>&5
4274   ac_status=$?
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); } &&
4277          { ac_try='test -s conftest.$ac_objext'
4278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279   (eval $ac_try) 2>&5
4280   ac_status=$?
4281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282   (exit $ac_status); }; }; then
4283   ac_cv_header_stdc=yes
4284 else
4285   echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4287
4288 ac_cv_header_stdc=no
4289 fi
4290 rm -f conftest.$ac_objext conftest.$ac_ext
4291
4292 if test $ac_cv_header_stdc = yes; then
4293   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4294   cat >conftest.$ac_ext <<_ACEOF
4295 #line $LINENO "configure"
4296 /* confdefs.h.  */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h.  */
4301 #include <string.h>
4302
4303 _ACEOF
4304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4305   $EGREP "memchr" >/dev/null 2>&1; then
4306   :
4307 else
4308   ac_cv_header_stdc=no
4309 fi
4310 rm -f conftest*
4311
4312 fi
4313
4314 if test $ac_cv_header_stdc = yes; then
4315   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4316   cat >conftest.$ac_ext <<_ACEOF
4317 #line $LINENO "configure"
4318 /* confdefs.h.  */
4319 _ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h.  */
4323 #include <stdlib.h>
4324
4325 _ACEOF
4326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4327   $EGREP "free" >/dev/null 2>&1; then
4328   :
4329 else
4330   ac_cv_header_stdc=no
4331 fi
4332 rm -f conftest*
4333
4334 fi
4335
4336 if test $ac_cv_header_stdc = yes; then
4337   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4338   if test "$cross_compiling" = yes; then
4339   :
4340 else
4341   cat >conftest.$ac_ext <<_ACEOF
4342 #line $LINENO "configure"
4343 /* confdefs.h.  */
4344 _ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h.  */
4348 #include <ctype.h>
4349 #if ((' ' & 0x0FF) == 0x020)
4350 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4351 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4352 #else
4353 # define ISLOWER(c) \
4354                    (('a' <= (c) && (c) <= 'i') \
4355                      || ('j' <= (c) && (c) <= 'r') \
4356                      || ('s' <= (c) && (c) <= 'z'))
4357 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4358 #endif
4359
4360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4361 int
4362 main ()
4363 {
4364   int i;
4365   for (i = 0; i < 256; i++)
4366     if (XOR (islower (i), ISLOWER (i))
4367         || toupper (i) != TOUPPER (i))
4368       exit(2);
4369   exit (0);
4370 }
4371 _ACEOF
4372 rm -f conftest$ac_exeext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4374   (eval $ac_link) 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379   (eval $ac_try) 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); }; }; then
4383   :
4384 else
4385   echo "$as_me: program exited with status $ac_status" >&5
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4388
4389 ( exit $ac_status )
4390 ac_cv_header_stdc=no
4391 fi
4392 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4393 fi
4394 fi
4395 fi
4396 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4397 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4398 if test $ac_cv_header_stdc = yes; then
4399
4400 cat >>confdefs.h <<\_ACEOF
4401 #define STDC_HEADERS 1
4402 _ACEOF
4403
4404 fi
4405
4406 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4417                   inttypes.h stdint.h unistd.h
4418 do
4419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4420 echo "$as_me:$LINENO: checking for $ac_header" >&5
4421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   cat >conftest.$ac_ext <<_ACEOF
4426 #line $LINENO "configure"
4427 /* confdefs.h.  */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h.  */
4432 $ac_includes_default
4433
4434 #include <$ac_header>
4435 _ACEOF
4436 rm -f conftest.$ac_objext
4437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4438   (eval $ac_compile) 2>&5
4439   ac_status=$?
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); } &&
4442          { ac_try='test -s conftest.$ac_objext'
4443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444   (eval $ac_try) 2>&5
4445   ac_status=$?
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); }; }; then
4448   eval "$as_ac_Header=yes"
4449 else
4450   echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4452
4453 eval "$as_ac_Header=no"
4454 fi
4455 rm -f conftest.$ac_objext conftest.$ac_ext
4456 fi
4457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4460   cat >>confdefs.h <<_ACEOF
4461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4462 _ACEOF
4463
4464 fi
4465
4466 done
4467
4468
4469
4470 for ac_header in dlfcn.h
4471 do
4472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4474   echo "$as_me:$LINENO: checking for $ac_header" >&5
4475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 fi
4479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4481 else
4482   # Is the header compilable?
4483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4485 cat >conftest.$ac_ext <<_ACEOF
4486 #line $LINENO "configure"
4487 /* confdefs.h.  */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h.  */
4492 $ac_includes_default
4493 #include <$ac_header>
4494 _ACEOF
4495 rm -f conftest.$ac_objext
4496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4497   (eval $ac_compile) 2>&5
4498   ac_status=$?
4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500   (exit $ac_status); } &&
4501          { ac_try='test -s conftest.$ac_objext'
4502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503   (eval $ac_try) 2>&5
4504   ac_status=$?
4505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506   (exit $ac_status); }; }; then
4507   ac_header_compiler=yes
4508 else
4509   echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4511
4512 ac_header_compiler=no
4513 fi
4514 rm -f conftest.$ac_objext conftest.$ac_ext
4515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4516 echo "${ECHO_T}$ac_header_compiler" >&6
4517
4518 # Is the header present?
4519 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4521 cat >conftest.$ac_ext <<_ACEOF
4522 #line $LINENO "configure"
4523 /* confdefs.h.  */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h.  */
4528 #include <$ac_header>
4529 _ACEOF
4530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4531   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4532   ac_status=$?
4533   grep -v '^ *+' conftest.er1 >conftest.err
4534   rm -f conftest.er1
4535   cat conftest.err >&5
4536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); } >/dev/null; then
4538   if test -s conftest.err; then
4539     ac_cpp_err=$ac_c_preproc_warn_flag
4540   else
4541     ac_cpp_err=
4542   fi
4543 else
4544   ac_cpp_err=yes
4545 fi
4546 if test -z "$ac_cpp_err"; then
4547   ac_header_preproc=yes
4548 else
4549   echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4551
4552   ac_header_preproc=no
4553 fi
4554 rm -f conftest.err conftest.$ac_ext
4555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4556 echo "${ECHO_T}$ac_header_preproc" >&6
4557
4558 # So?  What about this header?
4559 case $ac_header_compiler:$ac_header_preproc in
4560   yes:no )
4561     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4565     (
4566       cat <<\_ASBOX
4567 ## ------------------------------------ ##
4568 ## Report this to bug-autoconf@gnu.org. ##
4569 ## ------------------------------------ ##
4570 _ASBOX
4571     ) |
4572       sed "s/^/$as_me: WARNING:     /" >&2
4573     ;;
4574   no:yes )
4575     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4577     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4581     (
4582       cat <<\_ASBOX
4583 ## ------------------------------------ ##
4584 ## Report this to bug-autoconf@gnu.org. ##
4585 ## ------------------------------------ ##
4586 _ASBOX
4587     ) |
4588       sed "s/^/$as_me: WARNING:     /" >&2
4589     ;;
4590 esac
4591 echo "$as_me:$LINENO: checking for $ac_header" >&5
4592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596   eval "$as_ac_Header=$ac_header_preproc"
4597 fi
4598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4600
4601 fi
4602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4603   cat >>confdefs.h <<_ACEOF
4604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4605 _ACEOF
4606
4607 fi
4608
4609 done
4610
4611 ac_ext=cc
4612 ac_cpp='$CXXCPP $CPPFLAGS'
4613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4616 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4617 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4618 if test -z "$CXXCPP"; then
4619   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4620   echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622       # Double quotes because CXXCPP needs to be expanded
4623     for CXXCPP in "$CXX -E" "/lib/cpp"
4624     do
4625       ac_preproc_ok=false
4626 for ac_cxx_preproc_warn_flag in '' yes
4627 do
4628   # Use a header file that comes with gcc, so configuring glibc
4629   # with a fresh cross-compiler works.
4630   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4631   # <limits.h> exists even on freestanding compilers.
4632   # On the NeXT, cc -E runs the code through the compiler's parser,
4633   # not just through cpp. "Syntax error" is here to catch this case.
4634   cat >conftest.$ac_ext <<_ACEOF
4635 #line $LINENO "configure"
4636 /* confdefs.h.  */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h.  */
4641 #ifdef __STDC__
4642 # include <limits.h>
4643 #else
4644 # include <assert.h>
4645 #endif
4646                      Syntax error
4647 _ACEOF
4648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4649   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4650   ac_status=$?
4651   grep -v '^ *+' conftest.er1 >conftest.err
4652   rm -f conftest.er1
4653   cat conftest.err >&5
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); } >/dev/null; then
4656   if test -s conftest.err; then
4657     ac_cpp_err=$ac_cxx_preproc_warn_flag
4658   else
4659     ac_cpp_err=
4660   fi
4661 else
4662   ac_cpp_err=yes
4663 fi
4664 if test -z "$ac_cpp_err"; then
4665   :
4666 else
4667   echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4669
4670   # Broken: fails on valid input.
4671 continue
4672 fi
4673 rm -f conftest.err conftest.$ac_ext
4674
4675   # OK, works on sane cases.  Now check whether non-existent headers
4676   # can be detected and how.
4677   cat >conftest.$ac_ext <<_ACEOF
4678 #line $LINENO "configure"
4679 /* confdefs.h.  */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h.  */
4684 #include <ac_nonexistent.h>
4685 _ACEOF
4686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4687   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4688   ac_status=$?
4689   grep -v '^ *+' conftest.er1 >conftest.err
4690   rm -f conftest.er1
4691   cat conftest.err >&5
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); } >/dev/null; then
4694   if test -s conftest.err; then
4695     ac_cpp_err=$ac_cxx_preproc_warn_flag
4696   else
4697     ac_cpp_err=
4698   fi
4699 else
4700   ac_cpp_err=yes
4701 fi
4702 if test -z "$ac_cpp_err"; then
4703   # Broken: success on invalid input.
4704 continue
4705 else
4706   echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4708
4709   # Passes both tests.
4710 ac_preproc_ok=:
4711 break
4712 fi
4713 rm -f conftest.err conftest.$ac_ext
4714
4715 done
4716 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4717 rm -f conftest.err conftest.$ac_ext
4718 if $ac_preproc_ok; then
4719   break
4720 fi
4721
4722     done
4723     ac_cv_prog_CXXCPP=$CXXCPP
4724
4725 fi
4726   CXXCPP=$ac_cv_prog_CXXCPP
4727 else
4728   ac_cv_prog_CXXCPP=$CXXCPP
4729 fi
4730 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4731 echo "${ECHO_T}$CXXCPP" >&6
4732 ac_preproc_ok=false
4733 for ac_cxx_preproc_warn_flag in '' yes
4734 do
4735   # Use a header file that comes with gcc, so configuring glibc
4736   # with a fresh cross-compiler works.
4737   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4738   # <limits.h> exists even on freestanding compilers.
4739   # On the NeXT, cc -E runs the code through the compiler's parser,
4740   # not just through cpp. "Syntax error" is here to catch this case.
4741   cat >conftest.$ac_ext <<_ACEOF
4742 #line $LINENO "configure"
4743 /* confdefs.h.  */
4744 _ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h.  */
4748 #ifdef __STDC__
4749 # include <limits.h>
4750 #else
4751 # include <assert.h>
4752 #endif
4753                      Syntax error
4754 _ACEOF
4755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4756   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4757   ac_status=$?
4758   grep -v '^ *+' conftest.er1 >conftest.err
4759   rm -f conftest.er1
4760   cat conftest.err >&5
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); } >/dev/null; then
4763   if test -s conftest.err; then
4764     ac_cpp_err=$ac_cxx_preproc_warn_flag
4765   else
4766     ac_cpp_err=
4767   fi
4768 else
4769   ac_cpp_err=yes
4770 fi
4771 if test -z "$ac_cpp_err"; then
4772   :
4773 else
4774   echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4776
4777   # Broken: fails on valid input.
4778 continue
4779 fi
4780 rm -f conftest.err conftest.$ac_ext
4781
4782   # OK, works on sane cases.  Now check whether non-existent headers
4783   # can be detected and how.
4784   cat >conftest.$ac_ext <<_ACEOF
4785 #line $LINENO "configure"
4786 /* confdefs.h.  */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h.  */
4791 #include <ac_nonexistent.h>
4792 _ACEOF
4793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4794   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4795   ac_status=$?
4796   grep -v '^ *+' conftest.er1 >conftest.err
4797   rm -f conftest.er1
4798   cat conftest.err >&5
4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800   (exit $ac_status); } >/dev/null; then
4801   if test -s conftest.err; then
4802     ac_cpp_err=$ac_cxx_preproc_warn_flag
4803   else
4804     ac_cpp_err=
4805   fi
4806 else
4807   ac_cpp_err=yes
4808 fi
4809 if test -z "$ac_cpp_err"; then
4810   # Broken: success on invalid input.
4811 continue
4812 else
4813   echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4815
4816   # Passes both tests.
4817 ac_preproc_ok=:
4818 break
4819 fi
4820 rm -f conftest.err conftest.$ac_ext
4821
4822 done
4823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4824 rm -f conftest.err conftest.$ac_ext
4825 if $ac_preproc_ok; then
4826   :
4827 else
4828   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4829 See \`config.log' for more details." >&5
4830 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4831 See \`config.log' for more details." >&2;}
4832    { (exit 1); exit 1; }; }
4833 fi
4834
4835 ac_ext=cc
4836 ac_cpp='$CXXCPP $CPPFLAGS'
4837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4840
4841
4842 ac_ext=f
4843 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4844 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4846 if test -n "$ac_tool_prefix"; then
4847   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4848   do
4849     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_prog_F77+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   if test -n "$F77"; then
4857   ac_cv_prog_F77="$F77" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862   IFS=$as_save_IFS
4863   test -z "$as_dir" && as_dir=.
4864   for ac_exec_ext in '' $ac_executable_extensions; do
4865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868     break 2
4869   fi
4870 done
4871 done
4872
4873 fi
4874 fi
4875 F77=$ac_cv_prog_F77
4876 if test -n "$F77"; then
4877   echo "$as_me:$LINENO: result: $F77" >&5
4878 echo "${ECHO_T}$F77" >&6
4879 else
4880   echo "$as_me:$LINENO: result: no" >&5
4881 echo "${ECHO_T}no" >&6
4882 fi
4883
4884     test -n "$F77" && break
4885   done
4886 fi
4887 if test -z "$F77"; then
4888   ac_ct_F77=$F77
4889   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4890 do
4891   # Extract the first word of "$ac_prog", so it can be a program name with args.
4892 set dummy $ac_prog; ac_word=$2
4893 echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4895 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4896   echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898   if test -n "$ac_ct_F77"; then
4899   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906   for ac_exec_ext in '' $ac_executable_extensions; do
4907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908     ac_cv_prog_ac_ct_F77="$ac_prog"
4909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913 done
4914
4915 fi
4916 fi
4917 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4918 if test -n "$ac_ct_F77"; then
4919   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4920 echo "${ECHO_T}$ac_ct_F77" >&6
4921 else
4922   echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6
4924 fi
4925
4926   test -n "$ac_ct_F77" && break
4927 done
4928
4929   F77=$ac_ct_F77
4930 fi
4931
4932
4933 # Provide some information about the compiler.
4934 echo "$as_me:4934:" \
4935      "checking for Fortran 77 compiler version" >&5
4936 ac_compiler=`set X $ac_compile; echo $2`
4937 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4938   (eval $ac_compiler --version </dev/null >&5) 2>&5
4939   ac_status=$?
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); }
4942 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4943   (eval $ac_compiler -v </dev/null >&5) 2>&5
4944   ac_status=$?
4945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946   (exit $ac_status); }
4947 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4948   (eval $ac_compiler -V </dev/null >&5) 2>&5
4949   ac_status=$?
4950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951   (exit $ac_status); }
4952
4953 # If we don't use `.F' as extension, the preprocessor is not run on the
4954 # input file.
4955 ac_save_ext=$ac_ext
4956 ac_ext=F
4957 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4958 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4959 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4960   echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962   cat >conftest.$ac_ext <<_ACEOF
4963       program main
4964 #ifndef __GNUC__
4965        choke me
4966 #endif
4967
4968       end
4969 _ACEOF
4970 rm -f conftest.$ac_objext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972   (eval $ac_compile) 2>&5
4973   ac_status=$?
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); } &&
4976          { ac_try='test -s conftest.$ac_objext'
4977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978   (eval $ac_try) 2>&5
4979   ac_status=$?
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); }; }; then
4982   ac_compiler_gnu=yes
4983 else
4984   echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4986
4987 ac_compiler_gnu=no
4988 fi
4989 rm -f conftest.$ac_objext conftest.$ac_ext
4990 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4991
4992 fi
4993 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4994 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4995 ac_ext=$ac_save_ext
4996 G77=`test $ac_compiler_gnu = yes && echo yes`
4997 ac_test_FFLAGS=${FFLAGS+set}
4998 ac_save_FFLAGS=$FFLAGS
4999 FFLAGS=
5000 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5001 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5002 if test "${ac_cv_prog_f77_g+set}" = set; then
5003   echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005   FFLAGS=-g
5006 cat >conftest.$ac_ext <<_ACEOF
5007       program main
5008
5009       end
5010 _ACEOF
5011 rm -f conftest.$ac_objext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013   (eval $ac_compile) 2>&5
5014   ac_status=$?
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); } &&
5017          { ac_try='test -s conftest.$ac_objext'
5018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019   (eval $ac_try) 2>&5
5020   ac_status=$?
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); }; }; then
5023   ac_cv_prog_f77_g=yes
5024 else
5025   echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5027
5028 ac_cv_prog_f77_g=no
5029 fi
5030 rm -f conftest.$ac_objext conftest.$ac_ext
5031
5032 fi
5033 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5034 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5035 if test "$ac_test_FFLAGS" = set; then
5036   FFLAGS=$ac_save_FFLAGS
5037 elif test $ac_cv_prog_f77_g = yes; then
5038   if test "$G77" = yes; then
5039     FFLAGS="-g -O2"
5040   else
5041     FFLAGS="-g"
5042   fi
5043 else
5044   if test "$G77" = yes; then
5045     FFLAGS="-O2"
5046   else
5047     FFLAGS=
5048   fi
5049 fi
5050 ac_ext=c
5051 ac_cpp='$CPP $CPPFLAGS'
5052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5055
5056
5057
5058 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5059
5060 # find the maximum length of command line arguments
5061 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5062 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5063 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066     i=0
5067   testring="ABCD"
5068
5069   case $build_os in
5070   msdosdjgpp*)
5071     # On DJGPP, this test can blow up pretty badly due to problems in libc
5072     # (any single argument exceeding 2000 bytes causes a buffer overrun
5073     # during glob expansion).  Even if it were fixed, the result of this
5074     # check would be larger than it should be.
5075     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5076     ;;
5077
5078   gnu*)
5079     # Under GNU Hurd, this test is not required because there is
5080     # no limit to the length of command line arguments.
5081     # Libtool will interpret -1 as no limit whatsoever
5082     lt_cv_sys_max_cmd_len=-1;
5083     ;;
5084
5085   cygwin* | mingw*)
5086     # On Win9x/ME, this test blows up -- it succeeds, but takes
5087     # about 5 minutes as the teststring grows exponentially.
5088     # Worse, since 9x/ME are not pre-emptively multitasking,
5089     # you end up with a "frozen" computer, even though with patience
5090     # the test eventually succeeds (with a max line length of 256k).
5091     # Instead, let's just punt: use the minimum linelength reported by
5092     # all of the supported platforms: 8192 (on NT/2K/XP).
5093     lt_cv_sys_max_cmd_len=8192;
5094     ;;
5095
5096  *)
5097     # If test is not a shell built-in, we'll probably end up computing a
5098     # maximum length that is only half of the actual maximum length, but
5099     # we can't tell.
5100     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5101                = "XX$testring") >/dev/null 2>&1 &&
5102             new_result=`expr "X$testring" : ".*" 2>&1` &&
5103             lt_cv_sys_max_cmd_len=$new_result &&
5104             test $i != 17 # 1/2 MB should be enough
5105     do
5106       i=`expr $i + 1`
5107       testring=$testring$testring
5108     done
5109     testring=
5110     # Add a significant safety factor because C++ compilers can tack on massive
5111     # amounts of additional arguments before passing them to the linker.
5112     # It appears as though 1/2 is a usable value.
5113     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5114     ;;
5115   esac
5116
5117 fi
5118
5119 if test -n $lt_cv_sys_max_cmd_len ; then
5120   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5121 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5122 else
5123   echo "$as_me:$LINENO: result: none" >&5
5124 echo "${ECHO_T}none" >&6
5125 fi
5126
5127
5128
5129
5130 # Check for command to grab the raw symbol name followed by C symbol from nm.
5131 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5132 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5133 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5134   echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136
5137 # These are sane defaults that work on at least a few old systems.
5138 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5139
5140 # Character class describing NM global symbol codes.
5141 symcode='[BCDEGRST]'
5142
5143 # Regexp to match symbols that can be accessed directly from C.
5144 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5145
5146 # Transform the above into a raw symbol and a C symbol.
5147 symxfrm='\1 \2\3 \3'
5148
5149 # Transform an extracted symbol line into a proper C declaration
5150 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5151
5152 # Transform an extracted symbol line into symbol name and symbol address
5153 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'"
5154
5155 # Define system-specific variables.
5156 case $host_os in
5157 aix*)
5158   symcode='[BCDT]'
5159   ;;
5160 cygwin* | mingw* | pw32*)
5161   symcode='[ABCDGISTW]'
5162   ;;
5163 hpux*) # Its linker distinguishes data from code symbols
5164   if test "$host_cpu" = ia64; then
5165     symcode='[ABCDEGRST]'
5166   fi
5167   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5168   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'"
5169   ;;
5170 irix* | nonstopux*)
5171   symcode='[BCDEGRST]'
5172   ;;
5173 osf*)
5174   symcode='[BCDEGQRST]'
5175   ;;
5176 solaris* | sysv5*)
5177   symcode='[BDT]'
5178   ;;
5179 sysv4)
5180   symcode='[DFNSTU]'
5181   ;;
5182 esac
5183
5184 # Handle CRLF in mingw tool chain
5185 opt_cr=
5186 case $build_os in
5187 mingw*)
5188   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5189   ;;
5190 esac
5191
5192 # If we're using GNU nm, then use its standard symbol codes.
5193 case `$NM -V 2>&1` in
5194 *GNU* | *'with BFD'*)
5195   symcode='[ABCDGISTW]' ;;
5196 esac
5197
5198 # Try without a prefix undercore, then with it.
5199 for ac_symprfx in "" "_"; do
5200
5201   # Write the raw and C identifiers.
5202   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5203
5204   # Check to see that the pipe works correctly.
5205   pipe_works=no
5206
5207   rm -f conftest*
5208   cat > conftest.$ac_ext <<EOF
5209 #ifdef __cplusplus
5210 extern "C" {
5211 #endif
5212 char nm_test_var;
5213 void nm_test_func(){}
5214 #ifdef __cplusplus
5215 }
5216 #endif
5217 int main(){nm_test_var='a';nm_test_func();return(0);}
5218 EOF
5219
5220   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5221   (eval $ac_compile) 2>&5
5222   ac_status=$?
5223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224   (exit $ac_status); }; then
5225     # Now try to grab the symbols.
5226     nlist=conftest.nm
5227     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5228   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5229   ac_status=$?
5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); } && test -s "$nlist"; then
5232       # Try sorting and uniquifying the output.
5233       if sort "$nlist" | uniq > "$nlist"T; then
5234         mv -f "$nlist"T "$nlist"
5235       else
5236         rm -f "$nlist"T
5237       fi
5238
5239       # Make sure that we snagged all the symbols we need.
5240       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5241         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5242           cat <<EOF > conftest.$ac_ext
5243 #ifdef __cplusplus
5244 extern "C" {
5245 #endif
5246
5247 EOF
5248           # Now generate the symbol file.
5249           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5250
5251           cat <<EOF >> conftest.$ac_ext
5252 #if defined (__STDC__) && __STDC__
5253 # define lt_ptr_t void *
5254 #else
5255 # define lt_ptr_t char *
5256 # define const
5257 #endif
5258
5259 /* The mapping between symbol names and symbols. */
5260 const struct {
5261   const char *name;
5262   lt_ptr_t address;
5263 }
5264 lt_preloaded_symbols[] =
5265 {
5266 EOF
5267           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5268           cat <<\EOF >> conftest.$ac_ext
5269   {0, (lt_ptr_t) 0}
5270 };
5271
5272 #ifdef __cplusplus
5273 }
5274 #endif
5275 EOF
5276           # Now try linking the two files.
5277           mv conftest.$ac_objext conftstm.$ac_objext
5278           lt_save_LIBS="$LIBS"
5279           lt_save_CFLAGS="$CFLAGS"
5280           LIBS="conftstm.$ac_objext"
5281           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5282           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5283   (eval $ac_link) 2>&5
5284   ac_status=$?
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5287             pipe_works=yes
5288           fi
5289           LIBS="$lt_save_LIBS"
5290           CFLAGS="$lt_save_CFLAGS"
5291         else
5292           echo "cannot find nm_test_func in $nlist" >&5
5293         fi
5294       else
5295         echo "cannot find nm_test_var in $nlist" >&5
5296       fi
5297     else
5298       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5299     fi
5300   else
5301     echo "$progname: failed program was:" >&5
5302     cat conftest.$ac_ext >&5
5303   fi
5304   rm -f conftest* conftst*
5305
5306   # Do not use the global_symbol_pipe unless it works.
5307   if test "$pipe_works" = yes; then
5308     break
5309   else
5310     lt_cv_sys_global_symbol_pipe=
5311   fi
5312 done
5313
5314 fi
5315
5316 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5317   lt_cv_sys_global_symbol_to_cdecl=
5318 fi
5319 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5320   echo "$as_me:$LINENO: result: failed" >&5
5321 echo "${ECHO_T}failed" >&6
5322 else
5323   echo "$as_me:$LINENO: result: ok" >&5
5324 echo "${ECHO_T}ok" >&6
5325 fi
5326
5327 echo "$as_me:$LINENO: checking for objdir" >&5
5328 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5329 if test "${lt_cv_objdir+set}" = set; then
5330   echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332   rm -f .libs 2>/dev/null
5333 mkdir .libs 2>/dev/null
5334 if test -d .libs; then
5335   lt_cv_objdir=.libs
5336 else
5337   # MS-DOS does not allow filenames that begin with a dot.
5338   lt_cv_objdir=_libs
5339 fi
5340 rmdir .libs 2>/dev/null
5341 fi
5342 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5343 echo "${ECHO_T}$lt_cv_objdir" >&6
5344 objdir=$lt_cv_objdir
5345
5346
5347
5348
5349
5350 case $host_os in
5351 aix3*)
5352   # AIX sometimes has problems with the GCC collect2 program.  For some
5353   # reason, if we set the COLLECT_NAMES environment variable, the problems
5354   # vanish in a puff of smoke.
5355   if test "X${COLLECT_NAMES+set}" != Xset; then
5356     COLLECT_NAMES=
5357     export COLLECT_NAMES
5358   fi
5359   ;;
5360 esac
5361
5362 # Sed substitution that helps us do robust quoting.  It backslashifies
5363 # metacharacters that are still active within double-quoted strings.
5364 Xsed='sed -e s/^X//'
5365 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5366
5367 # Same as above, but do not quote variable references.
5368 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5369
5370 # Sed substitution to delay expansion of an escaped shell variable in a
5371 # double_quote_subst'ed string.
5372 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5373
5374 # Sed substitution to avoid accidental globbing in evaled expressions
5375 no_glob_subst='s/\*/\\\*/g'
5376
5377 # Constants:
5378 rm="rm -f"
5379
5380 # Global variables:
5381 default_ofile=mklib
5382 can_build_shared=yes
5383
5384 # All known linkers require a `.a' archive for static linking (except M$VC,
5385 # which needs '.lib').
5386 libext=a
5387 ltmain="$ac_aux_dir/ltmain.sh"
5388 ofile="$default_ofile"
5389 with_gnu_ld="$lt_cv_prog_gnu_ld"
5390
5391 if test -n "$ac_tool_prefix"; then
5392   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5393 set dummy ${ac_tool_prefix}ar; ac_word=$2
5394 echo "$as_me:$LINENO: checking for $ac_word" >&5
5395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5396 if test "${ac_cv_prog_AR+set}" = set; then
5397   echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399   if test -n "$AR"; then
5400   ac_cv_prog_AR="$AR" # Let the user override the test.
5401 else
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5404 do
5405   IFS=$as_save_IFS
5406   test -z "$as_dir" && as_dir=.
5407   for ac_exec_ext in '' $ac_executable_extensions; do
5408   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409     ac_cv_prog_AR="${ac_tool_prefix}ar"
5410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411     break 2
5412   fi
5413 done
5414 done
5415
5416 fi
5417 fi
5418 AR=$ac_cv_prog_AR
5419 if test -n "$AR"; then
5420   echo "$as_me:$LINENO: result: $AR" >&5
5421 echo "${ECHO_T}$AR" >&6
5422 else
5423   echo "$as_me:$LINENO: result: no" >&5
5424 echo "${ECHO_T}no" >&6
5425 fi
5426
5427 fi
5428 if test -z "$ac_cv_prog_AR"; then
5429   ac_ct_AR=$AR
5430   # Extract the first word of "ar", so it can be a program name with args.
5431 set dummy ar; ac_word=$2
5432 echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5435   echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437   if test -n "$ac_ct_AR"; then
5438   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5439 else
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5442 do
5443   IFS=$as_save_IFS
5444   test -z "$as_dir" && as_dir=.
5445   for ac_exec_ext in '' $ac_executable_extensions; do
5446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447     ac_cv_prog_ac_ct_AR="ar"
5448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449     break 2
5450   fi
5451 done
5452 done
5453
5454   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5455 fi
5456 fi
5457 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5458 if test -n "$ac_ct_AR"; then
5459   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5460 echo "${ECHO_T}$ac_ct_AR" >&6
5461 else
5462   echo "$as_me:$LINENO: result: no" >&5
5463 echo "${ECHO_T}no" >&6
5464 fi
5465
5466   AR=$ac_ct_AR
5467 else
5468   AR="$ac_cv_prog_AR"
5469 fi
5470
5471 if test -n "$ac_tool_prefix"; then
5472   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5473 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5474 echo "$as_me:$LINENO: checking for $ac_word" >&5
5475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5476 if test "${ac_cv_prog_RANLIB+set}" = set; then
5477   echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479   if test -n "$RANLIB"; then
5480   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5481 else
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5484 do
5485   IFS=$as_save_IFS
5486   test -z "$as_dir" && as_dir=.
5487   for ac_exec_ext in '' $ac_executable_extensions; do
5488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491     break 2
5492   fi
5493 done
5494 done
5495
5496 fi
5497 fi
5498 RANLIB=$ac_cv_prog_RANLIB
5499 if test -n "$RANLIB"; then
5500   echo "$as_me:$LINENO: result: $RANLIB" >&5
5501 echo "${ECHO_T}$RANLIB" >&6
5502 else
5503   echo "$as_me:$LINENO: result: no" >&5
5504 echo "${ECHO_T}no" >&6
5505 fi
5506
5507 fi
5508 if test -z "$ac_cv_prog_RANLIB"; then
5509   ac_ct_RANLIB=$RANLIB
5510   # Extract the first word of "ranlib", so it can be a program name with args.
5511 set dummy ranlib; ac_word=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517   if test -n "$ac_ct_RANLIB"; then
5518   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5519 else
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5522 do
5523   IFS=$as_save_IFS
5524   test -z "$as_dir" && as_dir=.
5525   for ac_exec_ext in '' $ac_executable_extensions; do
5526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527     ac_cv_prog_ac_ct_RANLIB="ranlib"
5528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5529     break 2
5530   fi
5531 done
5532 done
5533
5534   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5535 fi
5536 fi
5537 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5538 if test -n "$ac_ct_RANLIB"; then
5539   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5540 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5541 else
5542   echo "$as_me:$LINENO: result: no" >&5
5543 echo "${ECHO_T}no" >&6
5544 fi
5545
5546   RANLIB=$ac_ct_RANLIB
5547 else
5548   RANLIB="$ac_cv_prog_RANLIB"
5549 fi
5550
5551 if test -n "$ac_tool_prefix"; then
5552   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5553 set dummy ${ac_tool_prefix}strip; ac_word=$2
5554 echo "$as_me:$LINENO: checking for $ac_word" >&5
5555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5556 if test "${ac_cv_prog_STRIP+set}" = set; then
5557   echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559   if test -n "$STRIP"; then
5560   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5561 else
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5564 do
5565   IFS=$as_save_IFS
5566   test -z "$as_dir" && as_dir=.
5567   for ac_exec_ext in '' $ac_executable_extensions; do
5568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571     break 2
5572   fi
5573 done
5574 done
5575
5576 fi
5577 fi
5578 STRIP=$ac_cv_prog_STRIP
5579 if test -n "$STRIP"; then
5580   echo "$as_me:$LINENO: result: $STRIP" >&5
5581 echo "${ECHO_T}$STRIP" >&6
5582 else
5583   echo "$as_me:$LINENO: result: no" >&5
5584 echo "${ECHO_T}no" >&6
5585 fi
5586
5587 fi
5588 if test -z "$ac_cv_prog_STRIP"; then
5589   ac_ct_STRIP=$STRIP
5590   # Extract the first word of "strip", so it can be a program name with args.
5591 set dummy strip; ac_word=$2
5592 echo "$as_me:$LINENO: checking for $ac_word" >&5
5593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5594 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5595   echo $ECHO_N "(cached) $ECHO_C" >&6
5596 else
5597   if test -n "$ac_ct_STRIP"; then
5598   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5599 else
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5602 do
5603   IFS=$as_save_IFS
5604   test -z "$as_dir" && as_dir=.
5605   for ac_exec_ext in '' $ac_executable_extensions; do
5606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607     ac_cv_prog_ac_ct_STRIP="strip"
5608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5609     break 2
5610   fi
5611 done
5612 done
5613
5614   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5615 fi
5616 fi
5617 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5618 if test -n "$ac_ct_STRIP"; then
5619   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5620 echo "${ECHO_T}$ac_ct_STRIP" >&6
5621 else
5622   echo "$as_me:$LINENO: result: no" >&5
5623 echo "${ECHO_T}no" >&6
5624 fi
5625
5626   STRIP=$ac_ct_STRIP
5627 else
5628   STRIP="$ac_cv_prog_STRIP"
5629 fi
5630
5631
5632 old_CC="$CC"
5633 old_CFLAGS="$CFLAGS"
5634
5635 # Set sane defaults for various variables
5636 test -z "$AR" && AR=ar
5637 test -z "$AR_FLAGS" && AR_FLAGS=cru
5638 test -z "$AS" && AS=as
5639 test -z "$CC" && CC=cc
5640 test -z "$LTCC" && LTCC=$CC
5641 test -z "$DLLTOOL" && DLLTOOL=dlltool
5642 test -z "$LD" && LD=ld
5643 test -z "$LN_S" && LN_S="ln -s"
5644 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5645 test -z "$NM" && NM=nm
5646 test -z "$SED" && SED=sed
5647 test -z "$OBJDUMP" && OBJDUMP=objdump
5648 test -z "$RANLIB" && RANLIB=:
5649 test -z "$STRIP" && STRIP=:
5650 test -z "$ac_objext" && ac_objext=o
5651
5652 # Determine commands to create old-style static archives.
5653 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5654 old_postinstall_cmds='chmod 644 $oldlib'
5655 old_postuninstall_cmds=
5656
5657 if test -n "$RANLIB"; then
5658   case $host_os in
5659   openbsd*)
5660     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5661     ;;
5662   *)
5663     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5664     ;;
5665   esac
5666   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5667 fi
5668
5669 # Only perform the check for file, if the check method requires it
5670 case $deplibs_check_method in
5671 file_magic*)
5672   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5673     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5674 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5675 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5676   echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678   case $MAGIC_CMD in
5679 [\\/*] |  ?:[\\/]*)
5680   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5681   ;;
5682 *)
5683   lt_save_MAGIC_CMD="$MAGIC_CMD"
5684   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5685   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5686   for ac_dir in $ac_dummy; do
5687     IFS="$lt_save_ifs"
5688     test -z "$ac_dir" && ac_dir=.
5689     if test -f $ac_dir/${ac_tool_prefix}file; then
5690       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5691       if test -n "$file_magic_test_file"; then
5692         case $deplibs_check_method in
5693         "file_magic "*)
5694           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5695           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5696           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5697             $EGREP "$file_magic_regex" > /dev/null; then
5698             :
5699           else
5700             cat <<EOF 1>&2
5701
5702 *** Warning: the command libtool uses to detect shared libraries,
5703 *** $file_magic_cmd, produces output that libtool cannot recognize.
5704 *** The result is that libtool may fail to recognize shared libraries
5705 *** as such.  This will affect the creation of libtool libraries that
5706 *** depend on shared libraries, but programs linked with such libtool
5707 *** libraries will work regardless of this problem.  Nevertheless, you
5708 *** may want to report the problem to your system manager and/or to
5709 *** bug-libtool@gnu.org
5710
5711 EOF
5712           fi ;;
5713         esac
5714       fi
5715       break
5716     fi
5717   done
5718   IFS="$lt_save_ifs"
5719   MAGIC_CMD="$lt_save_MAGIC_CMD"
5720   ;;
5721 esac
5722 fi
5723
5724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5725 if test -n "$MAGIC_CMD"; then
5726   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5727 echo "${ECHO_T}$MAGIC_CMD" >&6
5728 else
5729   echo "$as_me:$LINENO: result: no" >&5
5730 echo "${ECHO_T}no" >&6
5731 fi
5732
5733 if test -z "$lt_cv_path_MAGIC_CMD"; then
5734   if test -n "$ac_tool_prefix"; then
5735     echo "$as_me:$LINENO: checking for file" >&5
5736 echo $ECHO_N "checking for file... $ECHO_C" >&6
5737 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5738   echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5740   case $MAGIC_CMD in
5741 [\\/*] |  ?:[\\/]*)
5742   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5743   ;;
5744 *)
5745   lt_save_MAGIC_CMD="$MAGIC_CMD"
5746   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5747   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5748   for ac_dir in $ac_dummy; do
5749     IFS="$lt_save_ifs"
5750     test -z "$ac_dir" && ac_dir=.
5751     if test -f $ac_dir/file; then
5752       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5753       if test -n "$file_magic_test_file"; then
5754         case $deplibs_check_method in
5755         "file_magic "*)
5756           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5757           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5758           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5759             $EGREP "$file_magic_regex" > /dev/null; then
5760             :
5761           else
5762             cat <<EOF 1>&2
5763
5764 *** Warning: the command libtool uses to detect shared libraries,
5765 *** $file_magic_cmd, produces output that libtool cannot recognize.
5766 *** The result is that libtool may fail to recognize shared libraries
5767 *** as such.  This will affect the creation of libtool libraries that
5768 *** depend on shared libraries, but programs linked with such libtool
5769 *** libraries will work regardless of this problem.  Nevertheless, you
5770 *** may want to report the problem to your system manager and/or to
5771 *** bug-libtool@gnu.org
5772
5773 EOF
5774           fi ;;
5775         esac
5776       fi
5777       break
5778     fi
5779   done
5780   IFS="$lt_save_ifs"
5781   MAGIC_CMD="$lt_save_MAGIC_CMD"
5782   ;;
5783 esac
5784 fi
5785
5786 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5787 if test -n "$MAGIC_CMD"; then
5788   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5789 echo "${ECHO_T}$MAGIC_CMD" >&6
5790 else
5791   echo "$as_me:$LINENO: result: no" >&5
5792 echo "${ECHO_T}no" >&6
5793 fi
5794
5795   else
5796     MAGIC_CMD=:
5797   fi
5798 fi
5799
5800   fi
5801   ;;
5802 esac
5803
5804 enable_dlopen=no
5805 enable_win32_dll=no
5806
5807 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5808 if test "${enable_libtool_lock+set}" = set; then
5809   enableval="$enable_libtool_lock"
5810
5811 fi;
5812 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5813
5814
5815 # Check whether --with-pic or --without-pic was given.
5816 if test "${with_pic+set}" = set; then
5817   withval="$with_pic"
5818   pic_mode="$withval"
5819 else
5820   pic_mode=default
5821 fi;
5822 test -z "$pic_mode" && pic_mode=default
5823
5824 # Use C for the default configuration in the libtool script
5825 tagname=
5826 lt_save_CC="$CC"
5827 ac_ext=c
5828 ac_cpp='$CPP $CPPFLAGS'
5829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5832
5833
5834 # Source file extension for C test sources.
5835 ac_ext=c
5836
5837 # Object file extension for compiled C test sources.
5838 objext=o
5839 objext=$objext
5840
5841 # Code to be used in simple compile tests
5842 lt_simple_compile_test_code="int some_variable = 0;\n"
5843
5844 # Code to be used in simple link tests
5845 lt_simple_link_test_code='int main(){return(0);}\n'
5846
5847
5848 # If no C compiler was specified, use CC.
5849 LTCC=${LTCC-"$CC"}
5850
5851 # Allow CC to be a program name with arguments.
5852 compiler=$CC
5853
5854
5855 #
5856 # Check for any special shared library compilation flags.
5857 #
5858 lt_prog_cc_shlib=
5859 if test "$GCC" = no; then
5860   case $host_os in
5861   sco3.2v5*)
5862     lt_prog_cc_shlib='-belf'
5863     ;;
5864   esac
5865 fi
5866 if test -n "$lt_prog_cc_shlib"; then
5867   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5868 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5869   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5870   else
5871     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5872 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5873     lt_cv_prog_cc_can_build_shared=no
5874   fi
5875 fi
5876
5877
5878 #
5879 # Check to make sure the static flag actually works.
5880 #
5881 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5882 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5883 if test "${lt_prog_compiler_static_works+set}" = set; then
5884   echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886   lt_prog_compiler_static_works=no
5887    save_LDFLAGS="$LDFLAGS"
5888    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5889    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5890    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5891      # The compiler can only warn and ignore the option if not recognized
5892      # So say no if there are warnings
5893      if test -s conftest.err; then
5894        # Append any errors to the config.log.
5895        cat conftest.err 1>&5
5896      else
5897        lt_prog_compiler_static_works=yes
5898      fi
5899    fi
5900    $rm conftest*
5901    LDFLAGS="$save_LDFLAGS"
5902
5903 fi
5904 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5905 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5906
5907 if test x"$lt_prog_compiler_static_works" = xyes; then
5908     :
5909 else
5910     lt_prog_compiler_static=
5911 fi
5912
5913
5914
5915 ## CAVEAT EMPTOR:
5916 ## There is no encapsulation within the following macros, do not change
5917 ## the running order or otherwise move them around unless you know exactly
5918 ## what you are doing...
5919
5920 lt_prog_compiler_no_builtin_flag=
5921
5922 if test "$GCC" = yes; then
5923   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5924
5925   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5926 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5927 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5928   echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930   lt_cv_prog_compiler_rtti_exceptions=no
5931   ac_outfile=conftest.$ac_objext
5932    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5933    lt_compiler_flag="-fno-rtti -fno-exceptions"
5934    # Insert the option either (1) after the last *FLAGS variable, or
5935    # (2) before a word containing "conftest.", or (3) at the end.
5936    # Note that $ac_compile itself does not contain backslashes and begins
5937    # with a dollar sign (not a hyphen), so the echo should work correctly.
5938    # The option is referenced via a variable to avoid confusing sed.
5939    lt_compile=`echo "$ac_compile" | $SED \
5940    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5941    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5942    -e 's:$: $lt_compiler_flag:'`
5943    (eval echo "\"\$as_me:5943: $lt_compile\"" >&5)
5944    (eval "$lt_compile" 2>conftest.err)
5945    ac_status=$?
5946    cat conftest.err >&5
5947    echo "$as_me:5947: \$? = $ac_status" >&5
5948    if (exit $ac_status) && test -s "$ac_outfile"; then
5949      # The compiler can only warn and ignore the option if not recognized
5950      # So say no if there are warnings
5951      if test ! -s conftest.err; then
5952        lt_cv_prog_compiler_rtti_exceptions=yes
5953      fi
5954    fi
5955    $rm conftest*
5956
5957 fi
5958 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5959 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5960
5961 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5962     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5963 else
5964     :
5965 fi
5966
5967 fi
5968
5969 lt_prog_compiler_wl=
5970 lt_prog_compiler_pic=
5971 lt_prog_compiler_static=
5972
5973 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5974 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5975
5976   if test "$GCC" = yes; then
5977     lt_prog_compiler_wl='-Wl,'
5978     lt_prog_compiler_static='-static'
5979
5980     case $host_os in
5981       aix*)
5982       # All AIX code is PIC.
5983       if test "$host_cpu" = ia64; then
5984         # AIX 5 now supports IA64 processor
5985         lt_prog_compiler_static='-Bstatic'
5986       fi
5987       ;;
5988
5989     amigaos*)
5990       # FIXME: we need at least 68020 code to build shared libraries, but
5991       # adding the `-m68020' flag to GCC prevents building anything better,
5992       # like `-m68040'.
5993       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5994       ;;
5995
5996     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5997       # PIC is the default for these OSes.
5998       ;;
5999
6000     mingw* | pw32* | os2*)
6001       # This hack is so that the source file can tell whether it is being
6002       # built for inclusion in a dll (and should export symbols for example).
6003       lt_prog_compiler_pic='-DDLL_EXPORT'
6004       ;;
6005
6006     darwin* | rhapsody*)
6007       # PIC is the default on this platform
6008       # Common symbols not allowed in MH_DYLIB files
6009       lt_prog_compiler_pic='-fno-common'
6010       ;;
6011
6012     msdosdjgpp*)
6013       # Just because we use GCC doesn't mean we suddenly get shared libraries
6014       # on systems that don't support them.
6015       lt_prog_compiler_can_build_shared=no
6016       enable_shared=no
6017       ;;
6018
6019     sysv4*MP*)
6020       if test -d /usr/nec; then
6021         lt_prog_compiler_pic=-Kconform_pic
6022       fi
6023       ;;
6024
6025     hpux*)
6026       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6027       # not for PA HP-UX.
6028       case "$host_cpu" in
6029       hppa*64*|ia64*)
6030         # +Z the default
6031         ;;
6032       *)
6033         lt_prog_compiler_pic='-fPIC'
6034         ;;
6035       esac
6036       ;;
6037
6038     *)
6039       lt_prog_compiler_pic='-fPIC'
6040       ;;
6041     esac
6042   else
6043     # PORTME Check for flag to pass linker flags through the system compiler.
6044     case $host_os in
6045     aix*)
6046       lt_prog_compiler_wl='-Wl,'
6047       if test "$host_cpu" = ia64; then
6048         # AIX 5 now supports IA64 processor
6049         lt_prog_compiler_static='-Bstatic'
6050       else
6051         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6052       fi
6053       ;;
6054
6055     mingw* | pw32* | os2*)
6056       # This hack is so that the source file can tell whether it is being
6057       # built for inclusion in a dll (and should export symbols for example).
6058       lt_prog_compiler_pic='-DDLL_EXPORT'
6059       ;;
6060
6061     hpux9* | hpux10* | hpux11*)
6062       lt_prog_compiler_wl='-Wl,'
6063       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6064       # not for PA HP-UX.
6065       case "$host_cpu" in
6066       hppa*64*|ia64*)
6067         # +Z the default
6068         ;;
6069       *)
6070         lt_prog_compiler_pic='+Z'
6071         ;;
6072       esac
6073       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6074       lt_prog_compiler_static='${wl}-a ${wl}archive'
6075       ;;
6076
6077     irix5* | irix6* | nonstopux*)
6078       lt_prog_compiler_wl='-Wl,'
6079       # PIC (with -KPIC) is the default.
6080       lt_prog_compiler_static='-non_shared'
6081       ;;
6082
6083     newsos6)
6084       lt_prog_compiler_pic='-KPIC'
6085       lt_prog_compiler_static='-Bstatic'
6086       ;;
6087
6088     linux*)
6089       case $CC in
6090       icc|ecc)
6091         lt_prog_compiler_wl='-Wl,'
6092         lt_prog_compiler_pic='-KPIC'
6093         lt_prog_compiler_static='-static'
6094         ;;
6095       ccc)
6096         lt_prog_compiler_wl='-Wl,'
6097         # All Alpha code is PIC.
6098         lt_prog_compiler_static='-non_shared'
6099         ;;
6100       esac
6101       ;;
6102
6103     osf3* | osf4* | osf5*)
6104       lt_prog_compiler_wl='-Wl,'
6105       # All OSF/1 code is PIC.
6106       lt_prog_compiler_static='-non_shared'
6107       ;;
6108
6109     sco3.2v5*)
6110       lt_prog_compiler_pic='-Kpic'
6111       lt_prog_compiler_static='-dn'
6112       ;;
6113
6114     solaris*)
6115       lt_prog_compiler_wl='-Wl,'
6116       lt_prog_compiler_pic='-KPIC'
6117       lt_prog_compiler_static='-Bstatic'
6118       ;;
6119
6120     sunos4*)
6121       lt_prog_compiler_wl='-Qoption ld '
6122       lt_prog_compiler_pic='-PIC'
6123       lt_prog_compiler_static='-Bstatic'
6124       ;;
6125
6126     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6127       lt_prog_compiler_wl='-Wl,'
6128       lt_prog_compiler_pic='-KPIC'
6129       lt_prog_compiler_static='-Bstatic'
6130       ;;
6131
6132     sysv4*MP*)
6133       if test -d /usr/nec ;then
6134         lt_prog_compiler_pic='-Kconform_pic'
6135         lt_prog_compiler_static='-Bstatic'
6136       fi
6137       ;;
6138
6139     uts4*)
6140       lt_prog_compiler_pic='-pic'
6141       lt_prog_compiler_static='-Bstatic'
6142       ;;
6143
6144     *)
6145       lt_prog_compiler_can_build_shared=no
6146       ;;
6147     esac
6148   fi
6149
6150 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6151 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6152
6153 #
6154 # Check to make sure the PIC flag actually works.
6155 #
6156 if test -n "$lt_prog_compiler_pic"; then
6157   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6158 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6159 if test "${lt_prog_compiler_pic_works+set}" = set; then
6160   echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162   lt_prog_compiler_pic_works=no
6163   ac_outfile=conftest.$ac_objext
6164    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6165    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6166    # Insert the option either (1) after the last *FLAGS variable, or
6167    # (2) before a word containing "conftest.", or (3) at the end.
6168    # Note that $ac_compile itself does not contain backslashes and begins
6169    # with a dollar sign (not a hyphen), so the echo should work correctly.
6170    # The option is referenced via a variable to avoid confusing sed.
6171    lt_compile=`echo "$ac_compile" | $SED \
6172    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6173    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6174    -e 's:$: $lt_compiler_flag:'`
6175    (eval echo "\"\$as_me:6175: $lt_compile\"" >&5)
6176    (eval "$lt_compile" 2>conftest.err)
6177    ac_status=$?
6178    cat conftest.err >&5
6179    echo "$as_me:6179: \$? = $ac_status" >&5
6180    if (exit $ac_status) && test -s "$ac_outfile"; then
6181      # The compiler can only warn and ignore the option if not recognized
6182      # So say no if there are warnings
6183      if test ! -s conftest.err; then
6184        lt_prog_compiler_pic_works=yes
6185      fi
6186    fi
6187    $rm conftest*
6188
6189 fi
6190 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6191 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6192
6193 if test x"$lt_prog_compiler_pic_works" = xyes; then
6194     case $lt_prog_compiler_pic in
6195      "" | " "*) ;;
6196      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6197      esac
6198 else
6199     lt_prog_compiler_pic=
6200      lt_prog_compiler_can_build_shared=no
6201 fi
6202
6203 fi
6204 case "$host_os" in
6205   # For platforms which do not support PIC, -DPIC is meaningless:
6206   *djgpp*)
6207     lt_prog_compiler_pic=
6208     ;;
6209   *)
6210     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6211     ;;
6212 esac
6213
6214 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6215 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6216 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   lt_cv_prog_compiler_c_o=no
6220    $rm -r conftest 2>/dev/null
6221    mkdir conftest
6222    cd conftest
6223    mkdir out
6224    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6225
6226    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6227    # that will create temporary files in the current directory regardless of
6228    # the output directory.  Thus, making CWD read-only will cause this test
6229    # to fail, enabling locking or at least warning the user not to do parallel
6230    # builds.
6231    chmod -w .
6232
6233    lt_compiler_flag="-o out/conftest2.$ac_objext"
6234    # Insert the option either (1) after the last *FLAGS variable, or
6235    # (2) before a word containing "conftest.", or (3) at the end.
6236    # Note that $ac_compile itself does not contain backslashes and begins
6237    # with a dollar sign (not a hyphen), so the echo should work correctly.
6238    lt_compile=`echo "$ac_compile" | $SED \
6239    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6240    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6241    -e 's:$: $lt_compiler_flag:'`
6242    (eval echo "\"\$as_me:6242: $lt_compile\"" >&5)
6243    (eval "$lt_compile" 2>out/conftest.err)
6244    ac_status=$?
6245    cat out/conftest.err >&5
6246    echo "$as_me:6246: \$? = $ac_status" >&5
6247    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6248    then
6249      # The compiler can only warn and ignore the option if not recognized
6250      # So say no if there are warnings
6251      if test ! -s out/conftest.err; then
6252        lt_cv_prog_compiler_c_o=yes
6253      fi
6254    fi
6255    chmod u+w .
6256    $rm conftest* out/*
6257    rmdir out
6258    cd ..
6259    rmdir conftest
6260    $rm conftest*
6261
6262 fi
6263 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6264 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6265
6266
6267 hard_links="nottested"
6268 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6269   # do not overwrite the value of need_locks provided by the user
6270   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6271 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6272   hard_links=yes
6273   $rm conftest*
6274   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6275   touch conftest.a
6276   ln conftest.a conftest.b 2>&5 || hard_links=no
6277   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6278   echo "$as_me:$LINENO: result: $hard_links" >&5
6279 echo "${ECHO_T}$hard_links" >&6
6280   if test "$hard_links" = no; then
6281     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6282 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6283     need_locks=warn
6284   fi
6285 else
6286   need_locks=no
6287 fi
6288
6289 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6290 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6291
6292   runpath_var=
6293   allow_undefined_flag=
6294   enable_shared_with_static_runtimes=no
6295   archive_cmds=
6296   archive_expsym_cmds=
6297   old_archive_From_new_cmds=
6298   old_archive_from_expsyms_cmds=
6299   export_dynamic_flag_spec=
6300   whole_archive_flag_spec=
6301   thread_safe_flag_spec=
6302   hardcode_libdir_flag_spec=
6303   hardcode_libdir_flag_spec_ld=
6304   hardcode_libdir_separator=
6305   hardcode_direct=no
6306   hardcode_minus_L=no
6307   hardcode_shlibpath_var=unsupported
6308   link_all_deplibs=unknown
6309   hardcode_automatic=no
6310   module_cmds=
6311   module_expsym_cmds=
6312   always_export_symbols=no
6313   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6314   # include_expsyms should be a list of space-separated symbols to be *always*
6315   # included in the symbol list
6316   include_expsyms=
6317   # exclude_expsyms can be an extended regexp of symbols to exclude
6318   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6319   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6320   # as well as any symbol that contains `d'.
6321   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6322   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6323   # platforms (ab)use it in PIC code, but their linkers get confused if
6324   # the symbol is explicitly referenced.  Since portable code cannot
6325   # rely on this symbol name, it's probably fine to never include it in
6326   # preloaded symbol tables.
6327   extract_expsyms_cmds=
6328
6329   case $host_os in
6330   cygwin* | mingw* | pw32*)
6331     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6332     # When not using gcc, we currently assume that we are using
6333     # Microsoft Visual C++.
6334     if test "$GCC" != yes; then
6335       with_gnu_ld=no
6336     fi
6337     ;;
6338   openbsd*)
6339     with_gnu_ld=no
6340     ;;
6341   esac
6342
6343   ld_shlibs=yes
6344   if test "$with_gnu_ld" = yes; then
6345     # If archive_cmds runs LD, not CC, wlarc should be empty
6346     wlarc='${wl}'
6347
6348     # See if GNU ld supports shared libraries.
6349     case $host_os in
6350     aix3* | aix4* | aix5*)
6351       # On AIX/PPC, the GNU linker is very broken
6352       if test "$host_cpu" != ia64; then
6353         ld_shlibs=no
6354         cat <<EOF 1>&2
6355
6356 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6357 *** to be unable to reliably create shared libraries on AIX.
6358 *** Therefore, libtool is disabling shared libraries support.  If you
6359 *** really care for shared libraries, you may want to modify your PATH
6360 *** so that a non-GNU linker is found, and then restart.
6361
6362 EOF
6363       fi
6364       ;;
6365
6366     amigaos*)
6367       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)'
6368       hardcode_libdir_flag_spec='-L$libdir'
6369       hardcode_minus_L=yes
6370
6371       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6372       # that the semantics of dynamic libraries on AmigaOS, at least up
6373       # to version 4, is to share data among multiple programs linked
6374       # with the same dynamic library.  Since this doesn't match the
6375       # behavior of shared libraries on other platforms, we can't use
6376       # them.
6377       ld_shlibs=no
6378       ;;
6379
6380     beos*)
6381       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6382         allow_undefined_flag=unsupported
6383         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6384         # support --undefined.  This deserves some investigation.  FIXME
6385         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6386       else
6387         ld_shlibs=no
6388       fi
6389       ;;
6390
6391     cygwin* | mingw* | pw32*)
6392       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6393       # as there is no search path for DLLs.
6394       hardcode_libdir_flag_spec='-L$libdir'
6395       allow_undefined_flag=unsupported
6396       always_export_symbols=no
6397       enable_shared_with_static_runtimes=yes
6398       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6399
6400       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6401         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6402         # If the export-symbols file already is a .def file (1st line
6403         # is EXPORTS), use it as is; otherwise, prepend...
6404         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6405           cp $export_symbols $output_objdir/$soname.def;
6406         else
6407           echo EXPORTS > $output_objdir/$soname.def;
6408           cat $export_symbols >> $output_objdir/$soname.def;
6409         fi~
6410         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6411       else
6412         ld_shlibs=no
6413       fi
6414       ;;
6415
6416     netbsd*)
6417       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6418         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6419         wlarc=
6420       else
6421         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6422         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6423       fi
6424       ;;
6425
6426     solaris* | sysv5*)
6427       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6428         ld_shlibs=no
6429         cat <<EOF 1>&2
6430
6431 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6432 *** create shared libraries on Solaris systems.  Therefore, libtool
6433 *** is disabling shared libraries support.  We urge you to upgrade GNU
6434 *** binutils to release 2.9.1 or newer.  Another option is to modify
6435 *** your PATH or compiler configuration so that the native linker is
6436 *** used, and then restart.
6437
6438 EOF
6439       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6440         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6441         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6442       else
6443         ld_shlibs=no
6444       fi
6445       ;;
6446
6447     sunos4*)
6448       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6449       wlarc=
6450       hardcode_direct=yes
6451       hardcode_shlibpath_var=no
6452       ;;
6453
6454     *)
6455       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6456         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6457         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6458       else
6459         ld_shlibs=no
6460       fi
6461       ;;
6462     esac
6463
6464     if test "$ld_shlibs" = yes; then
6465       runpath_var=LD_RUN_PATH
6466       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6467       export_dynamic_flag_spec='${wl}--export-dynamic'
6468       # ancient GNU ld didn't support --whole-archive et. al.
6469       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6470         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6471       else
6472         whole_archive_flag_spec=
6473       fi
6474     fi
6475   else
6476     # PORTME fill in a description of your system's linker (not GNU ld)
6477     case $host_os in
6478     aix3*)
6479       allow_undefined_flag=unsupported
6480       always_export_symbols=yes
6481       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'
6482       # Note: this linker hardcodes the directories in LIBPATH if there
6483       # are no directories specified by -L.
6484       hardcode_minus_L=yes
6485       if test "$GCC" = yes && test -z "$link_static_flag"; then
6486         # Neither direct hardcoding nor static linking is supported with a
6487         # broken collect2.
6488         hardcode_direct=unsupported
6489       fi
6490       ;;
6491
6492     aix4* | aix5*)
6493       if test "$host_cpu" = ia64; then
6494         # On IA64, the linker does run time linking by default, so we don't
6495         # have to do anything special.
6496         aix_use_runtimelinking=no
6497         exp_sym_flag='-Bexport'
6498         no_entry_flag=""
6499       else
6500         # If we're using GNU nm, then we don't want the "-C" option.
6501         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6502         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6503           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'
6504         else
6505           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'
6506         fi
6507         aix_use_runtimelinking=no
6508
6509         # Test if we are trying to use run time linking or normal
6510         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6511         # need to do runtime linking.
6512         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6513           for ld_flag in $LDFLAGS; do
6514           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6515             aix_use_runtimelinking=yes
6516             break
6517           fi
6518           done
6519         esac
6520
6521         exp_sym_flag='-bexport'
6522         no_entry_flag='-bnoentry'
6523       fi
6524
6525       # When large executables or shared objects are built, AIX ld can
6526       # have problems creating the table of contents.  If linking a library
6527       # or program results in "error TOC overflow" add -mminimal-toc to
6528       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6529       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6530
6531       archive_cmds=''
6532       hardcode_direct=yes
6533       hardcode_libdir_separator=':'
6534       link_all_deplibs=yes
6535
6536       if test "$GCC" = yes; then
6537         case $host_os in aix4.012|aix4.012.*)
6538         # We only want to do this on AIX 4.2 and lower, the check
6539         # below for broken collect2 doesn't work under 4.3+
6540           collect2name=`${CC} -print-prog-name=collect2`
6541           if test -f "$collect2name" && \
6542            strings "$collect2name" | grep resolve_lib_name >/dev/null
6543           then
6544           # We have reworked collect2
6545           hardcode_direct=yes
6546           else
6547           # We have old collect2
6548           hardcode_direct=unsupported
6549           # It fails to find uninstalled libraries when the uninstalled
6550           # path is not listed in the libpath.  Setting hardcode_minus_L
6551           # to unsupported forces relinking
6552           hardcode_minus_L=yes
6553           hardcode_libdir_flag_spec='-L$libdir'
6554           hardcode_libdir_separator=
6555           fi
6556         esac
6557         shared_flag='-shared'
6558       else
6559         # not using gcc
6560         if test "$host_cpu" = ia64; then
6561         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6562         # chokes on -Wl,-G. The following line is correct:
6563           shared_flag='-G'
6564         else
6565         if test "$aix_use_runtimelinking" = yes; then
6566             shared_flag='${wl}-G'
6567           else
6568             shared_flag='${wl}-bM:SRE'
6569         fi
6570         fi
6571       fi
6572
6573       # It seems that -bexpall does not export symbols beginning with
6574       # underscore (_), so it is better to generate a list of symbols to export.
6575       always_export_symbols=yes
6576       if test "$aix_use_runtimelinking" = yes; then
6577         # Warning - without using the other runtime loading flags (-brtl),
6578         # -berok will link without error, but may produce a broken library.
6579         allow_undefined_flag='-berok'
6580        # Determine the default libpath from the value encoded in an empty executable.
6581        cat >conftest.$ac_ext <<_ACEOF
6582 #line $LINENO "configure"
6583 /* confdefs.h.  */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h.  */
6588
6589 int
6590 main ()
6591 {
6592
6593   ;
6594   return 0;
6595 }
6596 _ACEOF
6597 rm -f conftest.$ac_objext conftest$ac_exeext
6598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6599   (eval $ac_link) 2>&5
6600   ac_status=$?
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); } &&
6603          { ac_try='test -s conftest$ac_exeext'
6604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605   (eval $ac_try) 2>&5
6606   ac_status=$?
6607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); }; }; then
6609
6610 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6611 }'`
6612 # Check for a 64-bit object if we didn't find anything.
6613 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; }
6614 }'`; fi
6615 else
6616   echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6618
6619 fi
6620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6621 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6622
6623        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6624         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"
6625        else
6626         if test "$host_cpu" = ia64; then
6627           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6628           allow_undefined_flag="-z nodefs"
6629           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"
6630         else
6631          # Determine the default libpath from the value encoded in an empty executable.
6632          cat >conftest.$ac_ext <<_ACEOF
6633 #line $LINENO "configure"
6634 /* confdefs.h.  */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h.  */
6639
6640 int
6641 main ()
6642 {
6643
6644   ;
6645   return 0;
6646 }
6647 _ACEOF
6648 rm -f conftest.$ac_objext conftest$ac_exeext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6650   (eval $ac_link) 2>&5
6651   ac_status=$?
6652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653   (exit $ac_status); } &&
6654          { ac_try='test -s conftest$ac_exeext'
6655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656   (eval $ac_try) 2>&5
6657   ac_status=$?
6658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659   (exit $ac_status); }; }; then
6660
6661 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6662 }'`
6663 # Check for a 64-bit object if we didn't find anything.
6664 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; }
6665 }'`; fi
6666 else
6667   echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6669
6670 fi
6671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6672 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6673
6674          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6675           # Warning - without using the other run time loading flags,
6676           # -berok will link without error, but may produce a broken library.
6677           no_undefined_flag=' ${wl}-bernotok'
6678           allow_undefined_flag=' ${wl}-berok'
6679           # -bexpall does not export symbols beginning with underscore (_)
6680           always_export_symbols=yes
6681           # Exported symbols can be pulled into shared objects from archives
6682           whole_archive_flag_spec=' '
6683           archive_cmds_need_lc=yes
6684           # This is similar to how AIX traditionally builds it's shared libraries.
6685           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'
6686         fi
6687       fi
6688       ;;
6689
6690     amigaos*)
6691       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)'
6692       hardcode_libdir_flag_spec='-L$libdir'
6693       hardcode_minus_L=yes
6694       # see comment about different semantics on the GNU ld section
6695       ld_shlibs=no
6696       ;;
6697
6698     bsdi4*)
6699       export_dynamic_flag_spec=-rdynamic
6700       ;;
6701
6702     cygwin* | mingw* | pw32*)
6703       # When not using gcc, we currently assume that we are using
6704       # Microsoft Visual C++.
6705       # hardcode_libdir_flag_spec is actually meaningless, as there is
6706       # no search path for DLLs.
6707       hardcode_libdir_flag_spec=' '
6708       allow_undefined_flag=unsupported
6709       # Tell ltmain to make .lib files, not .a files.
6710       libext=lib
6711       # Tell ltmain to make .dll files, not .so files.
6712       shrext=".dll"
6713       # FIXME: Setting linknames here is a bad hack.
6714       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6715       # The linker will automatically build a .lib file if we build a DLL.
6716       old_archive_From_new_cmds='true'
6717       # FIXME: Should let the user specify the lib program.
6718       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6719       fix_srcfile_path='`cygpath -w "$srcfile"`'
6720       enable_shared_with_static_runtimes=yes
6721       ;;
6722
6723     darwin* | rhapsody*)
6724     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6725       archive_cmds_need_lc=no
6726       case "$host_os" in
6727       rhapsody* | darwin1.[012])
6728         allow_undefined_flag='-undefined suppress'
6729         ;;
6730       *) # Darwin 1.3 on
6731         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6732         ;;
6733       esac
6734       # FIXME: Relying on posixy $() will cause problems for
6735       #        cross-compilation, but unfortunately the echo tests do not
6736       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6737       #        `"' quotes if we put them in here... so don't!
6738         lt_int_apple_cc_single_mod=no
6739         output_verbose_link_cmd='echo'
6740         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6741           lt_int_apple_cc_single_mod=yes
6742         fi
6743         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6744           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6745         else
6746         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'
6747       fi
6748       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6749       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6750         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6751           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}'
6752         else
6753           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}'
6754         fi
6755           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}'
6756       hardcode_direct=no
6757       hardcode_automatic=yes
6758       hardcode_shlibpath_var=unsupported
6759       whole_archive_flag_spec='-all_load $convenience'
6760       link_all_deplibs=yes
6761     fi
6762       ;;
6763
6764     dgux*)
6765       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6766       hardcode_libdir_flag_spec='-L$libdir'
6767       hardcode_shlibpath_var=no
6768       ;;
6769
6770     freebsd1*)
6771       ld_shlibs=no
6772       ;;
6773
6774     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6775     # support.  Future versions do this automatically, but an explicit c++rt0.o
6776     # does not break anything, and helps significantly (at the cost of a little
6777     # extra space).
6778     freebsd2.2*)
6779       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6780       hardcode_libdir_flag_spec='-R$libdir'
6781       hardcode_direct=yes
6782       hardcode_shlibpath_var=no
6783       ;;
6784
6785     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6786     freebsd2*)
6787       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6788       hardcode_direct=yes
6789       hardcode_minus_L=yes
6790       hardcode_shlibpath_var=no
6791       ;;
6792
6793     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6794     freebsd*)
6795       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6796       hardcode_libdir_flag_spec='-R$libdir'
6797       hardcode_direct=yes
6798       hardcode_shlibpath_var=no
6799       ;;
6800
6801     hpux9*)
6802       if test "$GCC" = yes; then
6803         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'
6804       else
6805         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'
6806       fi
6807       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6808       hardcode_libdir_separator=:
6809       hardcode_direct=yes
6810
6811       # hardcode_minus_L: Not really in the search PATH,
6812       # but as the default location of the library.
6813       hardcode_minus_L=yes
6814       export_dynamic_flag_spec='${wl}-E'
6815       ;;
6816
6817     hpux10* | hpux11*)
6818       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6819         case "$host_cpu" in
6820         hppa*64*|ia64*)
6821           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6822           ;;
6823         *)
6824           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6825           ;;
6826         esac
6827       else
6828         case "$host_cpu" in
6829         hppa*64*|ia64*)
6830           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6831           ;;
6832         *)
6833           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6834           ;;
6835         esac
6836       fi
6837       if test "$with_gnu_ld" = no; then
6838         case "$host_cpu" in
6839         hppa*64*)
6840           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6841           hardcode_libdir_flag_spec_ld='+b $libdir'
6842           hardcode_libdir_separator=:
6843           hardcode_direct=no
6844           hardcode_shlibpath_var=no
6845           ;;
6846         ia64*)
6847           hardcode_libdir_flag_spec='-L$libdir'
6848           hardcode_direct=no
6849           hardcode_shlibpath_var=no
6850
6851           # hardcode_minus_L: Not really in the search PATH,
6852           # but as the default location of the library.
6853           hardcode_minus_L=yes
6854           ;;
6855         *)
6856           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6857           hardcode_libdir_separator=:
6858           hardcode_direct=yes
6859           export_dynamic_flag_spec='${wl}-E'
6860
6861           # hardcode_minus_L: Not really in the search PATH,
6862           # but as the default location of the library.
6863           hardcode_minus_L=yes
6864           ;;
6865         esac
6866       fi
6867       ;;
6868
6869     irix5* | irix6* | nonstopux*)
6870       if test "$GCC" = yes; then
6871         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'
6872       else
6873         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'
6874         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6875       fi
6876       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6877       hardcode_libdir_separator=:
6878       link_all_deplibs=yes
6879       ;;
6880
6881     netbsd*)
6882       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6883         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6884       else
6885         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6886       fi
6887       hardcode_libdir_flag_spec='-R$libdir'
6888       hardcode_direct=yes
6889       hardcode_shlibpath_var=no
6890       ;;
6891
6892     newsos6)
6893       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6894       hardcode_direct=yes
6895       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6896       hardcode_libdir_separator=:
6897       hardcode_shlibpath_var=no
6898       ;;
6899
6900     openbsd*)
6901       hardcode_direct=yes
6902       hardcode_shlibpath_var=no
6903       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6904         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6905         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6906         export_dynamic_flag_spec='${wl}-E'
6907       else
6908        case $host_os in
6909          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6910            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6911            hardcode_libdir_flag_spec='-R$libdir'
6912            ;;
6913          *)
6914            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6915            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6916            ;;
6917        esac
6918       fi
6919       ;;
6920
6921     os2*)
6922       hardcode_libdir_flag_spec='-L$libdir'
6923       hardcode_minus_L=yes
6924       allow_undefined_flag=unsupported
6925       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'
6926       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6927       ;;
6928
6929     osf3*)
6930       if test "$GCC" = yes; then
6931         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6932         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'
6933       else
6934         allow_undefined_flag=' -expect_unresolved \*'
6935         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'
6936       fi
6937       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6938       hardcode_libdir_separator=:
6939       ;;
6940
6941     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6942       if test "$GCC" = yes; then
6943         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6944         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'
6945         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6946       else
6947         allow_undefined_flag=' -expect_unresolved \*'
6948         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'
6949         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6950         $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'
6951
6952         # Both c and cxx compiler support -rpath directly
6953         hardcode_libdir_flag_spec='-rpath $libdir'
6954       fi
6955       hardcode_libdir_separator=:
6956       ;;
6957
6958     sco3.2v5*)
6959       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6960       hardcode_shlibpath_var=no
6961       export_dynamic_flag_spec='${wl}-Bexport'
6962       runpath_var=LD_RUN_PATH
6963       hardcode_runpath_var=yes
6964       ;;
6965
6966     solaris*)
6967       no_undefined_flag=' -z text'
6968       if test "$GCC" = yes; then
6969         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6970         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6971           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6972       else
6973         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6974         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6975         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6976       fi
6977       hardcode_libdir_flag_spec='-R$libdir'
6978       hardcode_shlibpath_var=no
6979       case $host_os in
6980       solaris2.[0-5] | solaris2.[0-5].*) ;;
6981       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6982         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6983       esac
6984       link_all_deplibs=yes
6985       ;;
6986
6987     sunos4*)
6988       if test "x$host_vendor" = xsequent; then
6989         # Use $CC to link under sequent, because it throws in some extra .o
6990         # files that make .init and .fini sections work.
6991         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6992       else
6993         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6994       fi
6995       hardcode_libdir_flag_spec='-L$libdir'
6996       hardcode_direct=yes
6997       hardcode_minus_L=yes
6998       hardcode_shlibpath_var=no
6999       ;;
7000
7001     sysv4)
7002       case $host_vendor in
7003         sni)
7004           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7005           hardcode_direct=yes # is this really true???
7006         ;;
7007         siemens)
7008           ## LD is ld it makes a PLAMLIB
7009           ## CC just makes a GrossModule.
7010           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7011           reload_cmds='$CC -r -o $output$reload_objs'
7012           hardcode_direct=no
7013         ;;
7014         motorola)
7015           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7016           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7017         ;;
7018       esac
7019       runpath_var='LD_RUN_PATH'
7020       hardcode_shlibpath_var=no
7021       ;;
7022
7023     sysv4.3*)
7024       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7025       hardcode_shlibpath_var=no
7026       export_dynamic_flag_spec='-Bexport'
7027       ;;
7028
7029     sysv4*MP*)
7030       if test -d /usr/nec; then
7031         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7032         hardcode_shlibpath_var=no
7033         runpath_var=LD_RUN_PATH
7034         hardcode_runpath_var=yes
7035         ld_shlibs=yes
7036       fi
7037       ;;
7038
7039     sysv4.2uw2*)
7040       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7041       hardcode_direct=yes
7042       hardcode_minus_L=no
7043       hardcode_shlibpath_var=no
7044       hardcode_runpath_var=yes
7045       runpath_var=LD_RUN_PATH
7046       ;;
7047
7048    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7049       no_undefined_flag='${wl}-z ${wl}text'
7050       if test "$GCC" = yes; then
7051         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7052       else
7053         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7054       fi
7055       runpath_var='LD_RUN_PATH'
7056       hardcode_shlibpath_var=no
7057       ;;
7058
7059     sysv5*)
7060       no_undefined_flag=' -z text'
7061       # $CC -shared without GNU ld will not create a library from C++
7062       # object files and a static libstdc++, better avoid it by now
7063       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7064       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7065                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7066       hardcode_libdir_flag_spec=
7067       hardcode_shlibpath_var=no
7068       runpath_var='LD_RUN_PATH'
7069       ;;
7070
7071     uts4*)
7072       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7073       hardcode_libdir_flag_spec='-L$libdir'
7074       hardcode_shlibpath_var=no
7075       ;;
7076
7077     *)
7078       ld_shlibs=no
7079       ;;
7080     esac
7081   fi
7082
7083 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7084 echo "${ECHO_T}$ld_shlibs" >&6
7085 test "$ld_shlibs" = no && can_build_shared=no
7086
7087 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7088 if test "$GCC" = yes; then
7089   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7090 fi
7091
7092 #
7093 # Do we need to explicitly link libc?
7094 #
7095 case "x$archive_cmds_need_lc" in
7096 x|xyes)
7097   # Assume -lc should be added
7098   archive_cmds_need_lc=yes
7099
7100   if test "$enable_shared" = yes && test "$GCC" = yes; then
7101     case $archive_cmds in
7102     *'~'*)
7103       # FIXME: we may have to deal with multi-command sequences.
7104       ;;
7105     '$CC '*)
7106       # Test whether the compiler implicitly links with -lc since on some
7107       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7108       # to ld, don't add -lc before -lgcc.
7109       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7110 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7111       $rm conftest*
7112       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7113
7114       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7115   (eval $ac_compile) 2>&5
7116   ac_status=$?
7117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118   (exit $ac_status); } 2>conftest.err; then
7119         soname=conftest
7120         lib=conftest
7121         libobjs=conftest.$ac_objext
7122         deplibs=
7123         wl=$lt_prog_compiler_wl
7124         compiler_flags=-v
7125         linker_flags=-v
7126         verstring=
7127         output_objdir=.
7128         libname=conftest
7129         lt_save_allow_undefined_flag=$allow_undefined_flag
7130         allow_undefined_flag=
7131         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7132   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7133   ac_status=$?
7134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135   (exit $ac_status); }
7136         then
7137           archive_cmds_need_lc=no
7138         else
7139           archive_cmds_need_lc=yes
7140         fi
7141         allow_undefined_flag=$lt_save_allow_undefined_flag
7142       else
7143         cat conftest.err 1>&5
7144       fi
7145       $rm conftest*
7146       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7147 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7148       ;;
7149     esac
7150   fi
7151   ;;
7152 esac
7153
7154 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7155 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7156 hardcode_action=
7157 if test -n "$hardcode_libdir_flag_spec" || \
7158    test -n "$runpath_var " || \
7159    test "X$hardcode_automatic"="Xyes" ; then
7160
7161   # We can hardcode non-existant directories.
7162   if test "$hardcode_direct" != no &&
7163      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7164      # have to relink, otherwise we might link with an installed library
7165      # when we should be linking with a yet-to-be-installed one
7166      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7167      test "$hardcode_minus_L" != no; then
7168     # Linking always hardcodes the temporary library directory.
7169     hardcode_action=relink
7170   else
7171     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7172     hardcode_action=immediate
7173   fi
7174 else
7175   # We cannot hardcode anything, or else we can only hardcode existing
7176   # directories.
7177   hardcode_action=unsupported
7178 fi
7179 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7180 echo "${ECHO_T}$hardcode_action" >&6
7181
7182 if test "$hardcode_action" = relink; then
7183   # Fast installation is not supported
7184   enable_fast_install=no
7185 elif test "$shlibpath_overrides_runpath" = yes ||
7186      test "$enable_shared" = no; then
7187   # Fast installation is not necessary
7188   enable_fast_install=needless
7189 fi
7190
7191 striplib=
7192 old_striplib=
7193 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7194 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7195 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7196   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7197   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7198   echo "$as_me:$LINENO: result: yes" >&5
7199 echo "${ECHO_T}yes" >&6
7200 else
7201 # FIXME - insert some real tests, host_os isn't really good enough
7202   case $host_os in
7203    darwin*)
7204        if test -n "$STRIP" ; then
7205          striplib="$STRIP -x"
7206          echo "$as_me:$LINENO: result: yes" >&5
7207 echo "${ECHO_T}yes" >&6
7208        else
7209   echo "$as_me:$LINENO: result: no" >&5
7210 echo "${ECHO_T}no" >&6
7211 fi
7212        ;;
7213    *)
7214   echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6
7216     ;;
7217   esac
7218 fi
7219
7220 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7221 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7222 library_names_spec=
7223 libname_spec='lib$name'
7224 soname_spec=
7225 shrext=".so"
7226 postinstall_cmds=
7227 postuninstall_cmds=
7228 finish_cmds=
7229 finish_eval=
7230 shlibpath_var=
7231 shlibpath_overrides_runpath=unknown
7232 version_type=none
7233 dynamic_linker="$host_os ld.so"
7234 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7235 if test "$GCC" = yes; then
7236   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7237   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7238     # if the path contains ";" then we assume it to be the separator
7239     # otherwise default to the standard path separator (i.e. ":") - it is
7240     # assumed that no part of a normal pathname contains ";" but that should
7241     # okay in the real world where ";" in dirpaths is itself problematic.
7242     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7243   else
7244     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7245   fi
7246 else
7247   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7248 fi
7249 need_lib_prefix=unknown
7250 hardcode_into_libs=no
7251
7252 # when you set need_version to no, make sure it does not cause -set_version
7253 # flags to be left without arguments
7254 need_version=unknown
7255
7256 case $host_os in
7257 aix3*)
7258   version_type=linux
7259   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7260   shlibpath_var=LIBPATH
7261
7262   # AIX 3 has no versioning support, so we append a major version to the name.
7263   soname_spec='${libname}${release}${shared_ext}$major'
7264   ;;
7265
7266 aix4* | aix5*)
7267   version_type=linux
7268   need_lib_prefix=no
7269   need_version=no
7270   hardcode_into_libs=yes
7271   if test "$host_cpu" = ia64; then
7272     # AIX 5 supports IA64
7273     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7274     shlibpath_var=LD_LIBRARY_PATH
7275   else
7276     # With GCC up to 2.95.x, collect2 would create an import file
7277     # for dependence libraries.  The import file would start with
7278     # the line `#! .'.  This would cause the generated library to
7279     # depend on `.', always an invalid library.  This was fixed in
7280     # development snapshots of GCC prior to 3.0.
7281     case $host_os in
7282       aix4 | aix4.[01] | aix4.[01].*)
7283       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7284            echo ' yes '
7285            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7286         :
7287       else
7288         can_build_shared=no
7289       fi
7290       ;;
7291     esac
7292     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7293     # soname into executable. Probably we can add versioning support to
7294     # collect2, so additional links can be useful in future.
7295     if test "$aix_use_runtimelinking" = yes; then
7296       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7297       # instead of lib<name>.a to let people know that these are not
7298       # typical AIX shared libraries.
7299       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7300     else
7301       # We preserve .a as extension for shared libraries through AIX4.2
7302       # and later when we are not doing run time linking.
7303       library_names_spec='${libname}${release}.a $libname.a'
7304       soname_spec='${libname}${release}${shared_ext}$major'
7305     fi
7306     shlibpath_var=LIBPATH
7307   fi
7308   ;;
7309
7310 amigaos*)
7311   library_names_spec='$libname.ixlibrary $libname.a'
7312   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7313   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'
7314   ;;
7315
7316 beos*)
7317   library_names_spec='${libname}${shared_ext}'
7318   dynamic_linker="$host_os ld.so"
7319   shlibpath_var=LIBRARY_PATH
7320   ;;
7321
7322 bsdi4*)
7323   version_type=linux
7324   need_version=no
7325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7326   soname_spec='${libname}${release}${shared_ext}$major'
7327   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7328   shlibpath_var=LD_LIBRARY_PATH
7329   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7330   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7331   # the default ld.so.conf also contains /usr/contrib/lib and
7332   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7333   # libtool to hard-code these into programs
7334   ;;
7335
7336 cygwin* | mingw* | pw32*)
7337   version_type=windows
7338   shrext=".dll"
7339   need_version=no
7340   need_lib_prefix=no
7341
7342   case $GCC,$host_os in
7343   yes,cygwin* | yes,mingw* | yes,pw32*)
7344     library_names_spec='$libname.dll.a'
7345     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7346     postinstall_cmds='base_file=`basename \${file}`~
7347       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7348       dldir=$destdir/`dirname \$dlpath`~
7349       test -d \$dldir || mkdir -p \$dldir~
7350       $install_prog $dir/$dlname \$dldir/$dlname'
7351     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7352       dlpath=$dir/\$dldll~
7353        $rm \$dlpath'
7354     shlibpath_overrides_runpath=yes
7355
7356     case $host_os in
7357     cygwin*)
7358       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7359       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7360       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7361       ;;
7362     mingw*)
7363       # MinGW DLLs use traditional 'lib' prefix
7364       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7365       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7366       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7367         # It is most probably a Windows format PATH printed by
7368         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7369         # path with ; separators, and with drive letters. We can handle the
7370         # drive letters (cygwin fileutils understands them), so leave them,
7371         # especially as we might pass files found there to a mingw objdump,
7372         # which wouldn't understand a cygwinified path. Ahh.
7373         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7374       else
7375         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7376       fi
7377       ;;
7378     pw32*)
7379       # pw32 DLLs use 'pw' prefix rather than 'lib'
7380       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7381       ;;
7382     esac
7383     ;;
7384
7385   *)
7386     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7387     ;;
7388   esac
7389   dynamic_linker='Win32 ld.exe'
7390   # FIXME: first we should search . and the directory the executable is in
7391   shlibpath_var=PATH
7392   ;;
7393
7394 darwin* | rhapsody*)
7395   dynamic_linker="$host_os dyld"
7396   version_type=darwin
7397   need_lib_prefix=no
7398   need_version=no
7399   # FIXME: Relying on posixy $() will cause problems for
7400   #        cross-compilation, but unfortunately the echo tests do not
7401   #        yet detect zsh echo's removal of \ escapes.
7402   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7403   soname_spec='${libname}${release}${major}$shared_ext'
7404   shlibpath_overrides_runpath=yes
7405   shlibpath_var=DYLD_LIBRARY_PATH
7406   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7407   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7408   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7409   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"`
7410   fi
7411   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7412   ;;
7413
7414 dgux*)
7415   version_type=linux
7416   need_lib_prefix=no
7417   need_version=no
7418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7419   soname_spec='${libname}${release}${shared_ext}$major'
7420   shlibpath_var=LD_LIBRARY_PATH
7421   ;;
7422
7423 freebsd1*)
7424   dynamic_linker=no
7425   ;;
7426
7427 freebsd*)
7428   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7429   version_type=freebsd-$objformat
7430   case $version_type in
7431     freebsd-elf*)
7432       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7433       need_version=no
7434       need_lib_prefix=no
7435       ;;
7436     freebsd-*)
7437       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7438       need_version=yes
7439       ;;
7440   esac
7441   shlibpath_var=LD_LIBRARY_PATH
7442   case $host_os in
7443   freebsd2*)
7444     shlibpath_overrides_runpath=yes
7445     ;;
7446   freebsd3.01* | freebsdelf3.01*)
7447     shlibpath_overrides_runpath=yes
7448     hardcode_into_libs=yes
7449     ;;
7450   *) # from 3.2 on
7451     shlibpath_overrides_runpath=no
7452     hardcode_into_libs=yes
7453     ;;
7454   esac
7455   ;;
7456
7457 gnu*)
7458   version_type=linux
7459   need_lib_prefix=no
7460   need_version=no
7461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7462   soname_spec='${libname}${release}${shared_ext}$major'
7463   shlibpath_var=LD_LIBRARY_PATH
7464   hardcode_into_libs=yes
7465   ;;
7466
7467 hpux9* | hpux10* | hpux11*)
7468   # Give a soname corresponding to the major version so that dld.sl refuses to
7469   # link against other versions.
7470   version_type=sunos
7471   need_lib_prefix=no
7472   need_version=no
7473   case "$host_cpu" in
7474   ia64*)
7475     shrext='.so'
7476     hardcode_into_libs=yes
7477     dynamic_linker="$host_os dld.so"
7478     shlibpath_var=LD_LIBRARY_PATH
7479     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7480     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7481     soname_spec='${libname}${release}${shared_ext}$major'
7482     if test "X$HPUX_IA64_MODE" = X32; then
7483       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7484     else
7485       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7486     fi
7487     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7488     ;;
7489    hppa*64*)
7490      shrext='.sl'
7491      hardcode_into_libs=yes
7492      dynamic_linker="$host_os dld.sl"
7493      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7494      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7495      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7496      soname_spec='${libname}${release}${shared_ext}$major'
7497      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7498      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7499      ;;
7500    *)
7501     shrext='.sl'
7502     dynamic_linker="$host_os dld.sl"
7503     shlibpath_var=SHLIB_PATH
7504     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7505     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7506     soname_spec='${libname}${release}${shared_ext}$major'
7507     ;;
7508   esac
7509   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7510   postinstall_cmds='chmod 555 $lib'
7511   ;;
7512
7513 irix5* | irix6* | nonstopux*)
7514   case $host_os in
7515     nonstopux*) version_type=nonstopux ;;
7516     *)
7517         if test "$lt_cv_prog_gnu_ld" = yes; then
7518                 version_type=linux
7519         else
7520                 version_type=irix
7521         fi ;;
7522   esac
7523   need_lib_prefix=no
7524   need_version=no
7525   soname_spec='${libname}${release}${shared_ext}$major'
7526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7527   case $host_os in
7528   irix5* | nonstopux*)
7529     libsuff= shlibsuff=
7530     ;;
7531   *)
7532     case $LD in # libtool.m4 will add one of these switches to LD
7533     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7534       libsuff= shlibsuff= libmagic=32-bit;;
7535     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7536       libsuff=32 shlibsuff=N32 libmagic=N32;;
7537     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7538       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7539     *) libsuff= shlibsuff= libmagic=never-match;;
7540     esac
7541     ;;
7542   esac
7543   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7544   shlibpath_overrides_runpath=no
7545   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7546   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7547   hardcode_into_libs=yes
7548   ;;
7549
7550 # No shared lib support for Linux oldld, aout, or coff.
7551 linux*oldld* | linux*aout* | linux*coff*)
7552   dynamic_linker=no
7553   ;;
7554
7555 # This must be Linux ELF.
7556 linux*)
7557   version_type=linux
7558   need_lib_prefix=no
7559   need_version=no
7560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7561   soname_spec='${libname}${release}${shared_ext}$major'
7562   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7563   shlibpath_var=LD_LIBRARY_PATH
7564   shlibpath_overrides_runpath=no
7565   # This implies no fast_install, which is unacceptable.
7566   # Some rework will be needed to allow for fast_install
7567   # before this can be enabled.
7568   hardcode_into_libs=yes
7569
7570   # We used to test for /lib/ld.so.1 and disable shared libraries on
7571   # powerpc, because MkLinux only supported shared libraries with the
7572   # GNU dynamic linker.  Since this was broken with cross compilers,
7573   # most powerpc-linux boxes support dynamic linking these days and
7574   # people can always --disable-shared, the test was removed, and we
7575   # assume the GNU/Linux dynamic linker is in use.
7576   dynamic_linker='GNU/Linux ld.so'
7577   ;;
7578
7579 netbsd*)
7580   version_type=sunos
7581   need_lib_prefix=no
7582   need_version=no
7583   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7584     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7585     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7586     dynamic_linker='NetBSD (a.out) ld.so'
7587   else
7588     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7589     soname_spec='${libname}${release}${shared_ext}$major'
7590     dynamic_linker='NetBSD ld.elf_so'
7591   fi
7592   shlibpath_var=LD_LIBRARY_PATH
7593   shlibpath_overrides_runpath=yes
7594   hardcode_into_libs=yes
7595   ;;
7596
7597 newsos6)
7598   version_type=linux
7599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7600   shlibpath_var=LD_LIBRARY_PATH
7601   shlibpath_overrides_runpath=yes
7602   ;;
7603
7604 nto-qnx)
7605   version_type=linux
7606   need_lib_prefix=no
7607   need_version=no
7608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7609   soname_spec='${libname}${release}${shared_ext}$major'
7610   shlibpath_var=LD_LIBRARY_PATH
7611   shlibpath_overrides_runpath=yes
7612   ;;
7613
7614 openbsd*)
7615   version_type=sunos
7616   need_lib_prefix=no
7617   need_version=no
7618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7619   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7620   shlibpath_var=LD_LIBRARY_PATH
7621   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7622     case $host_os in
7623       openbsd2.[89] | openbsd2.[89].*)
7624         shlibpath_overrides_runpath=no
7625         ;;
7626       *)
7627         shlibpath_overrides_runpath=yes
7628         ;;
7629       esac
7630   else
7631     shlibpath_overrides_runpath=yes
7632   fi
7633   ;;
7634
7635 os2*)
7636   libname_spec='$name'
7637   shrext=".dll"
7638   need_lib_prefix=no
7639   library_names_spec='$libname${shared_ext} $libname.a'
7640   dynamic_linker='OS/2 ld.exe'
7641   shlibpath_var=LIBPATH
7642   ;;
7643
7644 osf3* | osf4* | osf5*)
7645   version_type=osf
7646   need_lib_prefix=no
7647   need_version=no
7648   soname_spec='${libname}${release}${shared_ext}$major'
7649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7650   shlibpath_var=LD_LIBRARY_PATH
7651   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7652   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7653   ;;
7654
7655 sco3.2v5*)
7656   version_type=osf
7657   soname_spec='${libname}${release}${shared_ext}$major'
7658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7659   shlibpath_var=LD_LIBRARY_PATH
7660   ;;
7661
7662 solaris*)
7663   version_type=linux
7664   need_lib_prefix=no
7665   need_version=no
7666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7667   soname_spec='${libname}${release}${shared_ext}$major'
7668   shlibpath_var=LD_LIBRARY_PATH
7669   shlibpath_overrides_runpath=yes
7670   hardcode_into_libs=yes
7671   # ldd complains unless libraries are executable
7672   postinstall_cmds='chmod +x $lib'
7673   ;;
7674
7675 sunos4*)
7676   version_type=sunos
7677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7678   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7679   shlibpath_var=LD_LIBRARY_PATH
7680   shlibpath_overrides_runpath=yes
7681   if test "$with_gnu_ld" = yes; then
7682     need_lib_prefix=no
7683   fi
7684   need_version=yes
7685   ;;
7686
7687 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7688   version_type=linux
7689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7690   soname_spec='${libname}${release}${shared_ext}$major'
7691   shlibpath_var=LD_LIBRARY_PATH
7692   case $host_vendor in
7693     sni)
7694       shlibpath_overrides_runpath=no
7695       need_lib_prefix=no
7696       export_dynamic_flag_spec='${wl}-Blargedynsym'
7697       runpath_var=LD_RUN_PATH
7698       ;;
7699     siemens)
7700       need_lib_prefix=no
7701       ;;
7702     motorola)
7703       need_lib_prefix=no
7704       need_version=no
7705       shlibpath_overrides_runpath=no
7706       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7707       ;;
7708   esac
7709   ;;
7710
7711 sysv4*MP*)
7712   if test -d /usr/nec ;then
7713     version_type=linux
7714     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7715     soname_spec='$libname${shared_ext}.$major'
7716     shlibpath_var=LD_LIBRARY_PATH
7717   fi
7718   ;;
7719
7720 uts4*)
7721   version_type=linux
7722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7723   soname_spec='${libname}${release}${shared_ext}$major'
7724   shlibpath_var=LD_LIBRARY_PATH
7725   ;;
7726
7727 *)
7728   dynamic_linker=no
7729   ;;
7730 esac
7731 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7732 echo "${ECHO_T}$dynamic_linker" >&6
7733 test "$dynamic_linker" = no && can_build_shared=no
7734
7735 if test "x$enable_dlopen" != xyes; then
7736   enable_dlopen=unknown
7737   enable_dlopen_self=unknown
7738   enable_dlopen_self_static=unknown
7739 else
7740   lt_cv_dlopen=no
7741   lt_cv_dlopen_libs=
7742
7743   case $host_os in
7744   beos*)
7745     lt_cv_dlopen="load_add_on"
7746     lt_cv_dlopen_libs=
7747     lt_cv_dlopen_self=yes
7748     ;;
7749
7750   mingw* | pw32*)
7751     lt_cv_dlopen="LoadLibrary"
7752     lt_cv_dlopen_libs=
7753    ;;
7754
7755   cygwin*)
7756     lt_cv_dlopen="dlopen"
7757     lt_cv_dlopen_libs=
7758    ;;
7759
7760   darwin*)
7761   # if libdl is installed we need to link against it
7762     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7763 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7764 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7765   echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
7767   ac_check_lib_save_LIBS=$LIBS
7768 LIBS="-ldl  $LIBS"
7769 cat >conftest.$ac_ext <<_ACEOF
7770 #line $LINENO "configure"
7771 /* confdefs.h.  */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h.  */
7776
7777 /* Override any gcc2 internal prototype to avoid an error.  */
7778 #ifdef __cplusplus
7779 extern "C"
7780 #endif
7781 /* We use char because int might match the return type of a gcc2
7782    builtin and then its argument prototype would still apply.  */
7783 char dlopen ();
7784 int
7785 main ()
7786 {
7787 dlopen ();
7788   ;
7789   return 0;
7790 }
7791 _ACEOF
7792 rm -f conftest.$ac_objext conftest$ac_exeext
7793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7794   (eval $ac_link) 2>&5
7795   ac_status=$?
7796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797   (exit $ac_status); } &&
7798          { ac_try='test -s conftest$ac_exeext'
7799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800   (eval $ac_try) 2>&5
7801   ac_status=$?
7802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803   (exit $ac_status); }; }; then
7804   ac_cv_lib_dl_dlopen=yes
7805 else
7806   echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7808
7809 ac_cv_lib_dl_dlopen=no
7810 fi
7811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7812 LIBS=$ac_check_lib_save_LIBS
7813 fi
7814 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7815 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7816 if test $ac_cv_lib_dl_dlopen = yes; then
7817   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7818 else
7819
7820     lt_cv_dlopen="dyld"
7821     lt_cv_dlopen_libs=
7822     lt_cv_dlopen_self=yes
7823
7824 fi
7825
7826    ;;
7827
7828   *)
7829     echo "$as_me:$LINENO: checking for shl_load" >&5
7830 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7831 if test "${ac_cv_func_shl_load+set}" = set; then
7832   echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834   cat >conftest.$ac_ext <<_ACEOF
7835 #line $LINENO "configure"
7836 /* confdefs.h.  */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h.  */
7841 /* System header to define __stub macros and hopefully few prototypes,
7842     which can conflict with char shl_load (); below.
7843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7844     <limits.h> exists even on freestanding compilers.  */
7845 #ifdef __STDC__
7846 # include <limits.h>
7847 #else
7848 # include <assert.h>
7849 #endif
7850 /* Override any gcc2 internal prototype to avoid an error.  */
7851 #ifdef __cplusplus
7852 extern "C"
7853 {
7854 #endif
7855 /* We use char because int might match the return type of a gcc2
7856    builtin and then its argument prototype would still apply.  */
7857 char shl_load ();
7858 /* The GNU C library defines this for functions which it implements
7859     to always fail with ENOSYS.  Some functions are actually named
7860     something starting with __ and the normal name is an alias.  */
7861 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7862 choke me
7863 #else
7864 char (*f) () = shl_load;
7865 #endif
7866 #ifdef __cplusplus
7867 }
7868 #endif
7869
7870 int
7871 main ()
7872 {
7873 return f != shl_load;
7874   ;
7875   return 0;
7876 }
7877 _ACEOF
7878 rm -f conftest.$ac_objext conftest$ac_exeext
7879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7880   (eval $ac_link) 2>&5
7881   ac_status=$?
7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883   (exit $ac_status); } &&
7884          { ac_try='test -s conftest$ac_exeext'
7885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886   (eval $ac_try) 2>&5
7887   ac_status=$?
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); }; }; then
7890   ac_cv_func_shl_load=yes
7891 else
7892   echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7894
7895 ac_cv_func_shl_load=no
7896 fi
7897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7898 fi
7899 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7900 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7901 if test $ac_cv_func_shl_load = yes; then
7902   lt_cv_dlopen="shl_load"
7903 else
7904   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7905 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7906 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7907   echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909   ac_check_lib_save_LIBS=$LIBS
7910 LIBS="-ldld  $LIBS"
7911 cat >conftest.$ac_ext <<_ACEOF
7912 #line $LINENO "configure"
7913 /* confdefs.h.  */
7914 _ACEOF
7915 cat confdefs.h >>conftest.$ac_ext
7916 cat >>conftest.$ac_ext <<_ACEOF
7917 /* end confdefs.h.  */
7918
7919 /* Override any gcc2 internal prototype to avoid an error.  */
7920 #ifdef __cplusplus
7921 extern "C"
7922 #endif
7923 /* We use char because int might match the return type of a gcc2
7924    builtin and then its argument prototype would still apply.  */
7925 char shl_load ();
7926 int
7927 main ()
7928 {
7929 shl_load ();
7930   ;
7931   return 0;
7932 }
7933 _ACEOF
7934 rm -f conftest.$ac_objext conftest$ac_exeext
7935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7936   (eval $ac_link) 2>&5
7937   ac_status=$?
7938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); } &&
7940          { ac_try='test -s conftest$ac_exeext'
7941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942   (eval $ac_try) 2>&5
7943   ac_status=$?
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); }; }; then
7946   ac_cv_lib_dld_shl_load=yes
7947 else
7948   echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7950
7951 ac_cv_lib_dld_shl_load=no
7952 fi
7953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7954 LIBS=$ac_check_lib_save_LIBS
7955 fi
7956 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7957 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7958 if test $ac_cv_lib_dld_shl_load = yes; then
7959   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7960 else
7961   echo "$as_me:$LINENO: checking for dlopen" >&5
7962 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7963 if test "${ac_cv_func_dlopen+set}" = set; then
7964   echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966   cat >conftest.$ac_ext <<_ACEOF
7967 #line $LINENO "configure"
7968 /* confdefs.h.  */
7969 _ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h.  */
7973 /* System header to define __stub macros and hopefully few prototypes,
7974     which can conflict with char dlopen (); below.
7975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7976     <limits.h> exists even on freestanding compilers.  */
7977 #ifdef __STDC__
7978 # include <limits.h>
7979 #else
7980 # include <assert.h>
7981 #endif
7982 /* Override any gcc2 internal prototype to avoid an error.  */
7983 #ifdef __cplusplus
7984 extern "C"
7985 {
7986 #endif
7987 /* We use char because int might match the return type of a gcc2
7988    builtin and then its argument prototype would still apply.  */
7989 char dlopen ();
7990 /* The GNU C library defines this for functions which it implements
7991     to always fail with ENOSYS.  Some functions are actually named
7992     something starting with __ and the normal name is an alias.  */
7993 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7994 choke me
7995 #else
7996 char (*f) () = dlopen;
7997 #endif
7998 #ifdef __cplusplus
7999 }
8000 #endif
8001
8002 int
8003 main ()
8004 {
8005 return f != dlopen;
8006   ;
8007   return 0;
8008 }
8009 _ACEOF
8010 rm -f conftest.$ac_objext conftest$ac_exeext
8011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8012   (eval $ac_link) 2>&5
8013   ac_status=$?
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); } &&
8016          { ac_try='test -s conftest$ac_exeext'
8017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018   (eval $ac_try) 2>&5
8019   ac_status=$?
8020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021   (exit $ac_status); }; }; then
8022   ac_cv_func_dlopen=yes
8023 else
8024   echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8026
8027 ac_cv_func_dlopen=no
8028 fi
8029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8030 fi
8031 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8032 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8033 if test $ac_cv_func_dlopen = yes; then
8034   lt_cv_dlopen="dlopen"
8035 else
8036   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8037 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8038 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8039   echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041   ac_check_lib_save_LIBS=$LIBS
8042 LIBS="-ldl  $LIBS"
8043 cat >conftest.$ac_ext <<_ACEOF
8044 #line $LINENO "configure"
8045 /* confdefs.h.  */
8046 _ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h.  */
8050
8051 /* Override any gcc2 internal prototype to avoid an error.  */
8052 #ifdef __cplusplus
8053 extern "C"
8054 #endif
8055 /* We use char because int might match the return type of a gcc2
8056    builtin and then its argument prototype would still apply.  */
8057 char dlopen ();
8058 int
8059 main ()
8060 {
8061 dlopen ();
8062   ;
8063   return 0;
8064 }
8065 _ACEOF
8066 rm -f conftest.$ac_objext conftest$ac_exeext
8067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8068   (eval $ac_link) 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); } &&
8072          { ac_try='test -s conftest$ac_exeext'
8073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074   (eval $ac_try) 2>&5
8075   ac_status=$?
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); }; }; then
8078   ac_cv_lib_dl_dlopen=yes
8079 else
8080   echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8082
8083 ac_cv_lib_dl_dlopen=no
8084 fi
8085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8086 LIBS=$ac_check_lib_save_LIBS
8087 fi
8088 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8089 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8090 if test $ac_cv_lib_dl_dlopen = yes; then
8091   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8092 else
8093   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8094 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8095 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8096   echo $ECHO_N "(cached) $ECHO_C" >&6
8097 else
8098   ac_check_lib_save_LIBS=$LIBS
8099 LIBS="-lsvld  $LIBS"
8100 cat >conftest.$ac_ext <<_ACEOF
8101 #line $LINENO "configure"
8102 /* confdefs.h.  */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h.  */
8107
8108 /* Override any gcc2 internal prototype to avoid an error.  */
8109 #ifdef __cplusplus
8110 extern "C"
8111 #endif
8112 /* We use char because int might match the return type of a gcc2
8113    builtin and then its argument prototype would still apply.  */
8114 char dlopen ();
8115 int
8116 main ()
8117 {
8118 dlopen ();
8119   ;
8120   return 0;
8121 }
8122 _ACEOF
8123 rm -f conftest.$ac_objext conftest$ac_exeext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8125   (eval $ac_link) 2>&5
8126   ac_status=$?
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); } &&
8129          { ac_try='test -s conftest$ac_exeext'
8130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131   (eval $ac_try) 2>&5
8132   ac_status=$?
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); }; }; then
8135   ac_cv_lib_svld_dlopen=yes
8136 else
8137   echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8139
8140 ac_cv_lib_svld_dlopen=no
8141 fi
8142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8143 LIBS=$ac_check_lib_save_LIBS
8144 fi
8145 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8146 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8147 if test $ac_cv_lib_svld_dlopen = yes; then
8148   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8149 else
8150   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8151 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8152 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8153   echo $ECHO_N "(cached) $ECHO_C" >&6
8154 else
8155   ac_check_lib_save_LIBS=$LIBS
8156 LIBS="-ldld  $LIBS"
8157 cat >conftest.$ac_ext <<_ACEOF
8158 #line $LINENO "configure"
8159 /* confdefs.h.  */
8160 _ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h.  */
8164
8165 /* Override any gcc2 internal prototype to avoid an error.  */
8166 #ifdef __cplusplus
8167 extern "C"
8168 #endif
8169 /* We use char because int might match the return type of a gcc2
8170    builtin and then its argument prototype would still apply.  */
8171 char dld_link ();
8172 int
8173 main ()
8174 {
8175 dld_link ();
8176   ;
8177   return 0;
8178 }
8179 _ACEOF
8180 rm -f conftest.$ac_objext conftest$ac_exeext
8181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8182   (eval $ac_link) 2>&5
8183   ac_status=$?
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); } &&
8186          { ac_try='test -s conftest$ac_exeext'
8187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188   (eval $ac_try) 2>&5
8189   ac_status=$?
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); }; }; then
8192   ac_cv_lib_dld_dld_link=yes
8193 else
8194   echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8196
8197 ac_cv_lib_dld_dld_link=no
8198 fi
8199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8200 LIBS=$ac_check_lib_save_LIBS
8201 fi
8202 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8203 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8204 if test $ac_cv_lib_dld_dld_link = yes; then
8205   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8206 fi
8207
8208
8209 fi
8210
8211
8212 fi
8213
8214
8215 fi
8216
8217
8218 fi
8219
8220
8221 fi
8222
8223     ;;
8224   esac
8225
8226   if test "x$lt_cv_dlopen" != xno; then
8227     enable_dlopen=yes
8228   else
8229     enable_dlopen=no
8230   fi
8231
8232   case $lt_cv_dlopen in
8233   dlopen)
8234     save_CPPFLAGS="$CPPFLAGS"
8235     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8236
8237     save_LDFLAGS="$LDFLAGS"
8238     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8239
8240     save_LIBS="$LIBS"
8241     LIBS="$lt_cv_dlopen_libs $LIBS"
8242
8243     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8244 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8245 if test "${lt_cv_dlopen_self+set}" = set; then
8246   echo $ECHO_N "(cached) $ECHO_C" >&6
8247 else
8248           if test "$cross_compiling" = yes; then :
8249   lt_cv_dlopen_self=cross
8250 else
8251   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8252   lt_status=$lt_dlunknown
8253   cat > conftest.$ac_ext <<EOF
8254 #line 8254 "configure"
8255 #include "confdefs.h"
8256
8257 #if HAVE_DLFCN_H
8258 #include <dlfcn.h>
8259 #endif
8260
8261 #include <stdio.h>
8262
8263 #ifdef RTLD_GLOBAL
8264 #  define LT_DLGLOBAL           RTLD_GLOBAL
8265 #else
8266 #  ifdef DL_GLOBAL
8267 #    define LT_DLGLOBAL         DL_GLOBAL
8268 #  else
8269 #    define LT_DLGLOBAL         0
8270 #  endif
8271 #endif
8272
8273 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8274    find out it does not work in some platform. */
8275 #ifndef LT_DLLAZY_OR_NOW
8276 #  ifdef RTLD_LAZY
8277 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8278 #  else
8279 #    ifdef DL_LAZY
8280 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8281 #    else
8282 #      ifdef RTLD_NOW
8283 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8284 #      else
8285 #        ifdef DL_NOW
8286 #          define LT_DLLAZY_OR_NOW      DL_NOW
8287 #        else
8288 #          define LT_DLLAZY_OR_NOW      0
8289 #        endif
8290 #      endif
8291 #    endif
8292 #  endif
8293 #endif
8294
8295 #ifdef __cplusplus
8296 extern "C" void exit (int);
8297 #endif
8298
8299 void fnord() { int i=42;}
8300 int main ()
8301 {
8302   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8303   int status = $lt_dlunknown;
8304
8305   if (self)
8306     {
8307       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8308       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8309       /* dlclose (self); */
8310     }
8311
8312     exit (status);
8313 }
8314 EOF
8315   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8316   (eval $ac_link) 2>&5
8317   ac_status=$?
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8320     (./conftest; exit; ) 2>/dev/null
8321     lt_status=$?
8322     case x$lt_status in
8323       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8324       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8325       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8326     esac
8327   else :
8328     # compilation failed
8329     lt_cv_dlopen_self=no
8330   fi
8331 fi
8332 rm -fr conftest*
8333
8334
8335 fi
8336 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8337 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8338
8339     if test "x$lt_cv_dlopen_self" = xyes; then
8340       LDFLAGS="$LDFLAGS $link_static_flag"
8341       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8342 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8343 if test "${lt_cv_dlopen_self_static+set}" = set; then
8344   echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346           if test "$cross_compiling" = yes; then :
8347   lt_cv_dlopen_self_static=cross
8348 else
8349   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8350   lt_status=$lt_dlunknown
8351   cat > conftest.$ac_ext <<EOF
8352 #line 8352 "configure"
8353 #include "confdefs.h"
8354
8355 #if HAVE_DLFCN_H
8356 #include <dlfcn.h>
8357 #endif
8358
8359 #include <stdio.h>
8360
8361 #ifdef RTLD_GLOBAL
8362 #  define LT_DLGLOBAL           RTLD_GLOBAL
8363 #else
8364 #  ifdef DL_GLOBAL
8365 #    define LT_DLGLOBAL         DL_GLOBAL
8366 #  else
8367 #    define LT_DLGLOBAL         0
8368 #  endif
8369 #endif
8370
8371 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8372    find out it does not work in some platform. */
8373 #ifndef LT_DLLAZY_OR_NOW
8374 #  ifdef RTLD_LAZY
8375 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8376 #  else
8377 #    ifdef DL_LAZY
8378 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8379 #    else
8380 #      ifdef RTLD_NOW
8381 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8382 #      else
8383 #        ifdef DL_NOW
8384 #          define LT_DLLAZY_OR_NOW      DL_NOW
8385 #        else
8386 #          define LT_DLLAZY_OR_NOW      0
8387 #        endif
8388 #      endif
8389 #    endif
8390 #  endif
8391 #endif
8392
8393 #ifdef __cplusplus
8394 extern "C" void exit (int);
8395 #endif
8396
8397 void fnord() { int i=42;}
8398 int main ()
8399 {
8400   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8401   int status = $lt_dlunknown;
8402
8403   if (self)
8404     {
8405       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8406       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8407       /* dlclose (self); */
8408     }
8409
8410     exit (status);
8411 }
8412 EOF
8413   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8414   (eval $ac_link) 2>&5
8415   ac_status=$?
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8418     (./conftest; exit; ) 2>/dev/null
8419     lt_status=$?
8420     case x$lt_status in
8421       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8422       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8423       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8424     esac
8425   else :
8426     # compilation failed
8427     lt_cv_dlopen_self_static=no
8428   fi
8429 fi
8430 rm -fr conftest*
8431
8432
8433 fi
8434 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8435 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8436     fi
8437
8438     CPPFLAGS="$save_CPPFLAGS"
8439     LDFLAGS="$save_LDFLAGS"
8440     LIBS="$save_LIBS"
8441     ;;
8442   esac
8443
8444   case $lt_cv_dlopen_self in
8445   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8446   *) enable_dlopen_self=unknown ;;
8447   esac
8448
8449   case $lt_cv_dlopen_self_static in
8450   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8451   *) enable_dlopen_self_static=unknown ;;
8452   esac
8453 fi
8454
8455
8456 # Report which librarie types wil actually be built
8457 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8458 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8459 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8460 echo "${ECHO_T}$can_build_shared" >&6
8461
8462 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8463 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8464 test "$can_build_shared" = "no" && enable_shared=no
8465
8466 # On AIX, shared libraries and static libraries use the same namespace, and
8467 # are all built from PIC.
8468 case "$host_os" in
8469 aix3*)
8470   test "$enable_shared" = yes && enable_static=no
8471   if test -n "$RANLIB"; then
8472     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8473     postinstall_cmds='$RANLIB $lib'
8474   fi
8475   ;;
8476
8477 aix4*)
8478   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8479     test "$enable_shared" = yes && enable_static=no
8480   fi
8481   ;;
8482   darwin* | rhapsody*)
8483   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8484     archive_cmds_need_lc=no
8485     case "$host_os" in
8486     rhapsody* | darwin1.[012])
8487       allow_undefined_flag='-undefined suppress'
8488       ;;
8489     *) # Darwin 1.3 on
8490       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8491       ;;
8492     esac
8493     # FIXME: Relying on posixy $() will cause problems for
8494     #        cross-compilation, but unfortunately the echo tests do not
8495     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8496     #          `"' quotes if we put them in here... so don't!
8497                 output_verbose_link_cmd='echo'
8498     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8499     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8500     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8501                   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}'
8502                   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}'
8503     hardcode_direct=no
8504     hardcode_automatic=yes
8505     hardcode_shlibpath_var=unsupported
8506     whole_archive_flag_spec='-all_load $convenience'
8507     link_all_deplibs=yes
8508     fi
8509     ;;
8510 esac
8511 echo "$as_me:$LINENO: result: $enable_shared" >&5
8512 echo "${ECHO_T}$enable_shared" >&6
8513
8514 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8515 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8516 # Make sure either enable_shared or enable_static is yes.
8517 test "$enable_shared" = yes || enable_static=yes
8518 echo "$as_me:$LINENO: result: $enable_static" >&5
8519 echo "${ECHO_T}$enable_static" >&6
8520
8521 # The else clause should only fire when bootstrapping the
8522 # libtool distribution, otherwise you forgot to ship ltmain.sh
8523 # with your package, and you will get complaints that there are
8524 # no rules to generate ltmain.sh.
8525 if test -f "$ltmain"; then
8526   # See if we are running on zsh, and set the options which allow our commands through
8527   # without removal of \ escapes.
8528   if test -n "${ZSH_VERSION+set}" ; then
8529     setopt NO_GLOB_SUBST
8530   fi
8531   # Now quote all the things that may contain metacharacters while being
8532   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8533   # variables and quote the copies for generation of the libtool script.
8534   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8535     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8536     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8537     deplibs_check_method reload_flag reload_cmds need_locks \
8538     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8539     lt_cv_sys_global_symbol_to_c_name_address \
8540     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8541     old_postinstall_cmds old_postuninstall_cmds \
8542     compiler \
8543     CC \
8544     LD \
8545     lt_prog_compiler_wl \
8546     lt_prog_compiler_pic \
8547     lt_prog_compiler_static \
8548     lt_prog_compiler_no_builtin_flag \
8549     export_dynamic_flag_spec \
8550     thread_safe_flag_spec \
8551     whole_archive_flag_spec \
8552     enable_shared_with_static_runtimes \
8553     old_archive_cmds \
8554     old_archive_from_new_cmds \
8555     predep_objects \
8556     postdep_objects \
8557     predeps \
8558     postdeps \
8559     compiler_lib_search_path \
8560     archive_cmds \
8561     archive_expsym_cmds \
8562     postinstall_cmds \
8563     postuninstall_cmds \
8564     old_archive_from_expsyms_cmds \
8565     allow_undefined_flag \
8566     no_undefined_flag \
8567     export_symbols_cmds \
8568     hardcode_libdir_flag_spec \
8569     hardcode_libdir_flag_spec_ld \
8570     hardcode_libdir_separator \
8571     hardcode_automatic \
8572     module_cmds \
8573     module_expsym_cmds \
8574     lt_cv_prog_compiler_c_o \
8575     exclude_expsyms \
8576     include_expsyms; do
8577
8578     case $var in
8579     old_archive_cmds | \
8580     old_archive_from_new_cmds | \
8581     archive_cmds | \
8582     archive_expsym_cmds | \
8583     module_cmds | \
8584     module_expsym_cmds | \
8585     old_archive_from_expsyms_cmds | \
8586     export_symbols_cmds | \
8587     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8588     postinstall_cmds | postuninstall_cmds | \
8589     old_postinstall_cmds | old_postuninstall_cmds | \
8590     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8591       # Double-quote double-evaled strings.
8592       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8593       ;;
8594     *)
8595       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8596       ;;
8597     esac
8598   done
8599
8600   case $lt_echo in
8601   *'\$0 --fallback-echo"')
8602     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8603     ;;
8604   esac
8605
8606 cfgfile="${ofile}T"
8607   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8608   $rm -f "$cfgfile"
8609   { echo "$as_me:$LINENO: creating $ofile" >&5
8610 echo "$as_me: creating $ofile" >&6;}
8611
8612   cat <<__EOF__ >> "$cfgfile"
8613 #! $SHELL
8614
8615 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8616 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8617 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8618 #
8619 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8620 # Free Software Foundation, Inc.
8621 #
8622 # This file is part of GNU Libtool:
8623 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8624 #
8625 # This program is free software; you can redistribute it and/or modify
8626 # it under the terms of the GNU General Public License as published by
8627 # the Free Software Foundation; either version 2 of the License, or
8628 # (at your option) any later version.
8629 #
8630 # This program is distributed in the hope that it will be useful, but
8631 # WITHOUT ANY WARRANTY; without even the implied warranty of
8632 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8633 # General Public License for more details.
8634 #
8635 # You should have received a copy of the GNU General Public License
8636 # along with this program; if not, write to the Free Software
8637 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8638 #
8639 # As a special exception to the GNU General Public License, if you
8640 # distribute this file as part of a program that contains a
8641 # configuration script generated by Autoconf, you may include it under
8642 # the same distribution terms that you use for the rest of that program.
8643
8644 # A sed program that does not truncate output.
8645 SED=$lt_SED
8646
8647 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8648 Xsed="$SED -e s/^X//"
8649
8650 # The HP-UX ksh and POSIX shell print the target directory to stdout
8651 # if CDPATH is set.
8652 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8653
8654 # The names of the tagged configurations supported by this script.
8655 available_tags=
8656
8657 # ### BEGIN LIBTOOL CONFIG
8658
8659 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8660
8661 # Shell to use when invoking shell scripts.
8662 SHELL=$lt_SHELL
8663
8664 # Whether or not to build shared libraries.
8665 build_libtool_libs=$enable_shared
8666
8667 # Whether or not to build static libraries.
8668 build_old_libs=$enable_static
8669
8670 # Whether or not to add -lc for building shared libraries.
8671 build_libtool_need_lc=$archive_cmds_need_lc
8672
8673 # Whether or not to disallow shared libs when runtime libs are static
8674 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8675
8676 # Whether or not to optimize for fast installation.
8677 fast_install=$enable_fast_install
8678
8679 # The host system.
8680 host_alias=$host_alias
8681 host=$host
8682
8683 # An echo program that does not interpret backslashes.
8684 echo=$lt_echo
8685
8686 # The archiver.
8687 AR=$lt_AR
8688 AR_FLAGS=$lt_AR_FLAGS
8689
8690 # A C compiler.
8691 LTCC=$lt_LTCC
8692
8693 # A language-specific compiler.
8694 CC=$lt_compiler
8695
8696 # Is the compiler the GNU C compiler?
8697 with_gcc=$GCC
8698
8699 # An ERE matcher.
8700 EGREP=$lt_EGREP
8701
8702 # The linker used to build libraries.
8703 LD=$lt_LD
8704
8705 # Whether we need hard or soft links.
8706 LN_S=$lt_LN_S
8707
8708 # A BSD-compatible nm program.
8709 NM=$lt_NM
8710
8711 # A symbol stripping program
8712 STRIP=$STRIP
8713
8714 # Used to examine libraries when file_magic_cmd begins "file"
8715 MAGIC_CMD=$MAGIC_CMD
8716
8717 # Used on cygwin: DLL creation program.
8718 DLLTOOL="$DLLTOOL"
8719
8720 # Used on cygwin: object dumper.
8721 OBJDUMP="$OBJDUMP"
8722
8723 # Used on cygwin: assembler.
8724 AS="$AS"
8725
8726 # The name of the directory that contains temporary libtool files.
8727 objdir=$objdir
8728
8729 # How to create reloadable object files.
8730 reload_flag=$lt_reload_flag
8731 reload_cmds=$lt_reload_cmds
8732
8733 # How to pass a linker flag through the compiler.
8734 wl=$lt_lt_prog_compiler_wl
8735
8736 # Object file suffix (normally "o").
8737 objext="$ac_objext"
8738
8739 # Old archive suffix (normally "a").
8740 libext="$libext"
8741
8742 # Shared library suffix (normally ".so").
8743 shrext='$shrext'
8744
8745 # Executable file suffix (normally "").
8746 exeext="$exeext"
8747
8748 # Additional compiler flags for building library objects.
8749 pic_flag=$lt_lt_prog_compiler_pic
8750 pic_mode=$pic_mode
8751
8752 # What is the maximum length of a command?
8753 max_cmd_len=$lt_cv_sys_max_cmd_len
8754
8755 # Does compiler simultaneously support -c and -o options?
8756 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8757
8758 # Must we lock files when doing compilation ?
8759 need_locks=$lt_need_locks
8760
8761 # Do we need the lib prefix for modules?
8762 need_lib_prefix=$need_lib_prefix
8763
8764 # Do we need a version for libraries?
8765 need_version=$need_version
8766
8767 # Whether dlopen is supported.
8768 dlopen_support=$enable_dlopen
8769
8770 # Whether dlopen of programs is supported.
8771 dlopen_self=$enable_dlopen_self
8772
8773 # Whether dlopen of statically linked programs is supported.
8774 dlopen_self_static=$enable_dlopen_self_static
8775
8776 # Compiler flag to prevent dynamic linking.
8777 link_static_flag=$lt_lt_prog_compiler_static
8778
8779 # Compiler flag to turn off builtin functions.
8780 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8781
8782 # Compiler flag to allow reflexive dlopens.
8783 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8784
8785 # Compiler flag to generate shared objects directly from archives.
8786 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8787
8788 # Compiler flag to generate thread-safe objects.
8789 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8790
8791 # Library versioning type.
8792 version_type=$version_type
8793
8794 # Format of library name prefix.
8795 libname_spec=$lt_libname_spec
8796
8797 # List of archive names.  First name is the real one, the rest are links.
8798 # The last name is the one that the linker finds with -lNAME.
8799 library_names_spec=$lt_library_names_spec
8800
8801 # The coded name of the library, if different from the real name.
8802 soname_spec=$lt_soname_spec
8803
8804 # Commands used to build and install an old-style archive.
8805 RANLIB=$lt_RANLIB
8806 old_archive_cmds=$lt_old_archive_cmds
8807 old_postinstall_cmds=$lt_old_postinstall_cmds
8808 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8809
8810 # Create an old-style archive from a shared archive.
8811 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8812
8813 # Create a temporary old-style archive to link instead of a shared archive.
8814 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8815
8816 # Commands used to build and install a shared archive.
8817 archive_cmds=$lt_archive_cmds
8818 archive_expsym_cmds=$lt_archive_expsym_cmds
8819 postinstall_cmds=$lt_postinstall_cmds
8820 postuninstall_cmds=$lt_postuninstall_cmds
8821
8822 # Commands used to build a loadable module (assumed same as above if empty)
8823 module_cmds=$lt_module_cmds
8824 module_expsym_cmds=$lt_module_expsym_cmds
8825
8826 # Commands to strip libraries.
8827 old_striplib=$lt_old_striplib
8828 striplib=$lt_striplib
8829
8830 # Dependencies to place before the objects being linked to create a
8831 # shared library.
8832 predep_objects=$lt_predep_objects
8833
8834 # Dependencies to place after the objects being linked to create a
8835 # shared library.
8836 postdep_objects=$lt_postdep_objects
8837
8838 # Dependencies to place before the objects being linked to create a
8839 # shared library.
8840 predeps=$lt_predeps
8841
8842 # Dependencies to place after the objects being linked to create a
8843 # shared library.
8844 postdeps=$lt_postdeps
8845
8846 # The library search path used internally by the compiler when linking
8847 # a shared library.
8848 compiler_lib_search_path=$lt_compiler_lib_search_path
8849
8850 # Method to check whether dependent libraries are shared objects.
8851 deplibs_check_method=$lt_deplibs_check_method
8852
8853 # Command to use when deplibs_check_method == file_magic.
8854 file_magic_cmd=$lt_file_magic_cmd
8855
8856 # Flag that allows shared libraries with undefined symbols to be built.
8857 allow_undefined_flag=$lt_allow_undefined_flag
8858
8859 # Flag that forces no undefined symbols.
8860 no_undefined_flag=$lt_no_undefined_flag
8861
8862 # Commands used to finish a libtool library installation in a directory.
8863 finish_cmds=$lt_finish_cmds
8864
8865 # Same as above, but a single script fragment to be evaled but not shown.
8866 finish_eval=$lt_finish_eval
8867
8868 # Take the output of nm and produce a listing of raw symbols and C names.
8869 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8870
8871 # Transform the output of nm in a proper C declaration
8872 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8873
8874 # Transform the output of nm in a C name address pair
8875 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8876
8877 # This is the shared library runtime path variable.
8878 runpath_var=$runpath_var
8879
8880 # This is the shared library path variable.
8881 shlibpath_var=$shlibpath_var
8882
8883 # Is shlibpath searched before the hard-coded library search path?
8884 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8885
8886 # How to hardcode a shared library path into an executable.
8887 hardcode_action=$hardcode_action
8888
8889 # Whether we should hardcode library paths into libraries.
8890 hardcode_into_libs=$hardcode_into_libs
8891
8892 # Flag to hardcode \$libdir into a binary during linking.
8893 # This must work even if \$libdir does not exist.
8894 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8895
8896 # If ld is used when linking, flag to hardcode \$libdir into
8897 # a binary during linking. This must work even if \$libdir does
8898 # not exist.
8899 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8900
8901 # Whether we need a single -rpath flag with a separated argument.
8902 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8903
8904 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8905 # resulting binary.
8906 hardcode_direct=$hardcode_direct
8907
8908 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8909 # resulting binary.
8910 hardcode_minus_L=$hardcode_minus_L
8911
8912 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8913 # the resulting binary.
8914 hardcode_shlibpath_var=$hardcode_shlibpath_var
8915
8916 # Set to yes if building a shared library automatically hardcodes DIR into the library
8917 # and all subsequent libraries and executables linked against it.
8918 hardcode_automatic=$hardcode_automatic
8919
8920 # Variables whose values should be saved in libtool wrapper scripts and
8921 # restored at relink time.
8922 variables_saved_for_relink="$variables_saved_for_relink"
8923
8924 # Whether libtool must link a program against all its dependency libraries.
8925 link_all_deplibs=$link_all_deplibs
8926
8927 # Compile-time system search path for libraries
8928 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8929
8930 # Run-time system search path for libraries
8931 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8932
8933 # Fix the shell variable \$srcfile for the compiler.
8934 fix_srcfile_path="$fix_srcfile_path"
8935
8936 # Set to yes if exported symbols are required.
8937 always_export_symbols=$always_export_symbols
8938
8939 # The commands to list exported symbols.
8940 export_symbols_cmds=$lt_export_symbols_cmds
8941
8942 # The commands to extract the exported symbol list from a shared archive.
8943 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8944
8945 # Symbols that should not be listed in the preloaded symbols.
8946 exclude_expsyms=$lt_exclude_expsyms
8947
8948 # Symbols that must always be exported.
8949 include_expsyms=$lt_include_expsyms
8950
8951 # ### END LIBTOOL CONFIG
8952
8953 __EOF__
8954
8955
8956   case $host_os in
8957   aix3*)
8958     cat <<\EOF >> "$cfgfile"
8959
8960 # AIX sometimes has problems with the GCC collect2 program.  For some
8961 # reason, if we set the COLLECT_NAMES environment variable, the problems
8962 # vanish in a puff of smoke.
8963 if test "X${COLLECT_NAMES+set}" != Xset; then
8964   COLLECT_NAMES=
8965   export COLLECT_NAMES
8966 fi
8967 EOF
8968     ;;
8969   esac
8970
8971   # We use sed instead of cat because bash on DJGPP gets confused if
8972   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8973   # text mode, it properly converts lines to CR/LF.  This bash problem
8974   # is reportedly fixed, but why not run on old versions too?
8975   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8976
8977   mv -f "$cfgfile" "$ofile" || \
8978     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8979   chmod +x "$ofile"
8980
8981 else
8982   # If there is no Makefile yet, we rely on a make rule to execute
8983   # `config.status --recheck' to rerun these tests and create the
8984   # libtool script then.
8985   test -f Makefile && make "$ltmain"
8986 fi
8987
8988
8989 ac_ext=c
8990 ac_cpp='$CPP $CPPFLAGS'
8991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8994
8995 CC="$lt_save_CC"
8996
8997
8998 # Check whether --with-tags or --without-tags was given.
8999 if test "${with_tags+set}" = set; then
9000   withval="$with_tags"
9001   tagnames="$withval"
9002 fi;
9003
9004 if test -f "$ltmain" && test -n "$tagnames"; then
9005   if test ! -f "${ofile}"; then
9006     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9007 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9008   fi
9009
9010   if test -z "$LTCC"; then
9011     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9012     if test -z "$LTCC"; then
9013       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9014 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9015     else
9016       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9017 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9018     fi
9019   fi
9020
9021   # Extract list of available tagged configurations in $ofile.
9022   # Note that this assumes the entire list is on one line.
9023   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9024
9025   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9026   for tagname in $tagnames; do
9027     IFS="$lt_save_ifs"
9028     # Check whether tagname contains only valid characters
9029     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9030     "") ;;
9031     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9032 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9033    { (exit 1); exit 1; }; }
9034         ;;
9035     esac
9036
9037     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9038     then
9039       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9040 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9041    { (exit 1); exit 1; }; }
9042     fi
9043
9044     # Update the list of available tags.
9045     if test -n "$tagname"; then
9046       echo appending configuration tag \"$tagname\" to $ofile
9047
9048       case $tagname in
9049       CXX)
9050         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9051           ac_ext=cc
9052 ac_cpp='$CXXCPP $CPPFLAGS'
9053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9056
9057
9058
9059
9060 archive_cmds_need_lc_CXX=no
9061 allow_undefined_flag_CXX=
9062 always_export_symbols_CXX=no
9063 archive_expsym_cmds_CXX=
9064 export_dynamic_flag_spec_CXX=
9065 hardcode_direct_CXX=no
9066 hardcode_libdir_flag_spec_CXX=
9067 hardcode_libdir_flag_spec_ld_CXX=
9068 hardcode_libdir_separator_CXX=
9069 hardcode_minus_L_CXX=no
9070 hardcode_automatic_CXX=no
9071 module_cmds_CXX=
9072 module_expsym_cmds_CXX=
9073 link_all_deplibs_CXX=unknown
9074 old_archive_cmds_CXX=$old_archive_cmds
9075 no_undefined_flag_CXX=
9076 whole_archive_flag_spec_CXX=
9077 enable_shared_with_static_runtimes_CXX=no
9078
9079 # Dependencies to place before and after the object being linked:
9080 predep_objects_CXX=
9081 postdep_objects_CXX=
9082 predeps_CXX=
9083 postdeps_CXX=
9084 compiler_lib_search_path_CXX=
9085
9086 # Source file extension for C++ test sources.
9087 ac_ext=cc
9088
9089 # Object file extension for compiled C++ test sources.
9090 objext=o
9091 objext_CXX=$objext
9092
9093 # Code to be used in simple compile tests
9094 lt_simple_compile_test_code="int some_variable = 0;\n"
9095
9096 # Code to be used in simple link tests
9097 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9098
9099 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9100
9101 # If no C compiler was specified, use CC.
9102 LTCC=${LTCC-"$CC"}
9103
9104 # Allow CC to be a program name with arguments.
9105 compiler=$CC
9106
9107
9108 # Allow CC to be a program name with arguments.
9109 lt_save_CC=$CC
9110 lt_save_LD=$LD
9111 lt_save_GCC=$GCC
9112 GCC=$GXX
9113 lt_save_with_gnu_ld=$with_gnu_ld
9114 lt_save_path_LD=$lt_cv_path_LD
9115 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9116   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9117 else
9118   unset lt_cv_prog_gnu_ld
9119 fi
9120 if test -n "${lt_cv_path_LDCXX+set}"; then
9121   lt_cv_path_LD=$lt_cv_path_LDCXX
9122 else
9123   unset lt_cv_path_LD
9124 fi
9125 test -z "${LDCXX+set}" || LD=$LDCXX
9126 CC=${CXX-"c++"}
9127 compiler=$CC
9128 compiler_CXX=$CC
9129 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9130
9131 # We don't want -fno-exception wen compiling C++ code, so set the
9132 # no_builtin_flag separately
9133 if test "$GXX" = yes; then
9134   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9135 else
9136   lt_prog_compiler_no_builtin_flag_CXX=
9137 fi
9138
9139 if test "$GXX" = yes; then
9140   # Set up default GNU C++ configuration
9141
9142
9143 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9144 if test "${with_gnu_ld+set}" = set; then
9145   withval="$with_gnu_ld"
9146   test "$withval" = no || with_gnu_ld=yes
9147 else
9148   with_gnu_ld=no
9149 fi;
9150 ac_prog=ld
9151 if test "$GCC" = yes; then
9152   # Check if gcc -print-prog-name=ld gives a path.
9153   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9154 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9155   case $host in
9156   *-*-mingw*)
9157     # gcc leaves a trailing carriage return which upsets mingw
9158     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9159   *)
9160     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9161   esac
9162   case $ac_prog in
9163     # Accept absolute paths.
9164     [\\/]* | ?:[\\/]*)
9165       re_direlt='/[^/][^/]*/\.\./'
9166       # Canonicalize the path of ld
9167       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9168       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9169         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9170       done
9171       test -z "$LD" && LD="$ac_prog"
9172       ;;
9173   "")
9174     # If it fails, then pretend we aren't using GCC.
9175     ac_prog=ld
9176     ;;
9177   *)
9178     # If it is relative, then search for the first ld in PATH.
9179     with_gnu_ld=unknown
9180     ;;
9181   esac
9182 elif test "$with_gnu_ld" = yes; then
9183   echo "$as_me:$LINENO: checking for GNU ld" >&5
9184 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9185 else
9186   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9187 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9188 fi
9189 if test "${lt_cv_path_LD+set}" = set; then
9190   echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
9192   if test -z "$LD"; then
9193   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9194   for ac_dir in $PATH; do
9195     IFS="$lt_save_ifs"
9196     test -z "$ac_dir" && ac_dir=.
9197     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9198       lt_cv_path_LD="$ac_dir/$ac_prog"
9199       # Check to see if the program is GNU ld.  I'd rather use --version,
9200       # but apparently some GNU ld's only accept -v.
9201       # Break only if it was the GNU/non-GNU ld that we prefer.
9202       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9203       *GNU* | *'with BFD'*)
9204         test "$with_gnu_ld" != no && break
9205         ;;
9206       *)
9207         test "$with_gnu_ld" != yes && break
9208         ;;
9209       esac
9210     fi
9211   done
9212   IFS="$lt_save_ifs"
9213 else
9214   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9215 fi
9216 fi
9217
9218 LD="$lt_cv_path_LD"
9219 if test -n "$LD"; then
9220   echo "$as_me:$LINENO: result: $LD" >&5
9221 echo "${ECHO_T}$LD" >&6
9222 else
9223   echo "$as_me:$LINENO: result: no" >&5
9224 echo "${ECHO_T}no" >&6
9225 fi
9226 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9227 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9228    { (exit 1); exit 1; }; }
9229 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9230 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9231 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9232   echo $ECHO_N "(cached) $ECHO_C" >&6
9233 else
9234   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9235 case `"$LD" -v 2>&1 </dev/null` in
9236 *GNU* | *'with BFD'*)
9237   lt_cv_prog_gnu_ld=yes
9238   ;;
9239 *)
9240   lt_cv_prog_gnu_ld=no
9241   ;;
9242 esac
9243 fi
9244 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9245 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9246 with_gnu_ld=$lt_cv_prog_gnu_ld
9247
9248
9249
9250   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9251   # archiving commands below assume that GNU ld is being used.
9252   if test "$with_gnu_ld" = yes; then
9253     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9254     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'
9255
9256     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9257     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9258
9259     # If archive_cmds runs LD, not CC, wlarc should be empty
9260     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9261     #     investigate it a little bit more. (MM)
9262     wlarc='${wl}'
9263
9264     # ancient GNU ld didn't support --whole-archive et. al.
9265     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9266         grep 'no-whole-archive' > /dev/null; then
9267       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9268     else
9269       whole_archive_flag_spec_CXX=
9270     fi
9271   else
9272     with_gnu_ld=no
9273     wlarc=
9274
9275     # A generic and very simple default shared library creation
9276     # command for GNU C++ for the case where it uses the native
9277     # linker, instead of GNU ld.  If possible, this setting should
9278     # overridden to take advantage of the native linker features on
9279     # the platform it is being used on.
9280     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9281   fi
9282
9283   # Commands to make compiler produce verbose output that lists
9284   # what "hidden" libraries, object files and flags are used when
9285   # linking a shared library.
9286   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9287
9288 else
9289   GXX=no
9290   with_gnu_ld=no
9291   wlarc=
9292 fi
9293
9294 # PORTME: fill in a description of your system's C++ link characteristics
9295 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9296 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9297 ld_shlibs_CXX=yes
9298 case $host_os in
9299   aix3*)
9300     # FIXME: insert proper C++ library support
9301     ld_shlibs_CXX=no
9302     ;;
9303   aix4* | aix5*)
9304     if test "$host_cpu" = ia64; then
9305       # On IA64, the linker does run time linking by default, so we don't
9306       # have to do anything special.
9307       aix_use_runtimelinking=no
9308       exp_sym_flag='-Bexport'
9309       no_entry_flag=""
9310     else
9311       aix_use_runtimelinking=no
9312
9313       # Test if we are trying to use run time linking or normal
9314       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9315       # need to do runtime linking.
9316       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9317         for ld_flag in $LDFLAGS; do
9318           case $ld_flag in
9319           *-brtl*)
9320             aix_use_runtimelinking=yes
9321             break
9322             ;;
9323           esac
9324         done
9325       esac
9326
9327       exp_sym_flag='-bexport'
9328       no_entry_flag='-bnoentry'
9329     fi
9330
9331     # When large executables or shared objects are built, AIX ld can
9332     # have problems creating the table of contents.  If linking a library
9333     # or program results in "error TOC overflow" add -mminimal-toc to
9334     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9335     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9336
9337     archive_cmds_CXX=''
9338     hardcode_direct_CXX=yes
9339     hardcode_libdir_separator_CXX=':'
9340     link_all_deplibs_CXX=yes
9341
9342     if test "$GXX" = yes; then
9343       case $host_os in aix4.012|aix4.012.*)
9344       # We only want to do this on AIX 4.2 and lower, the check
9345       # below for broken collect2 doesn't work under 4.3+
9346         collect2name=`${CC} -print-prog-name=collect2`
9347         if test -f "$collect2name" && \
9348            strings "$collect2name" | grep resolve_lib_name >/dev/null
9349         then
9350           # We have reworked collect2
9351           hardcode_direct_CXX=yes
9352         else
9353           # We have old collect2
9354           hardcode_direct_CXX=unsupported
9355           # It fails to find uninstalled libraries when the uninstalled
9356           # path is not listed in the libpath.  Setting hardcode_minus_L
9357           # to unsupported forces relinking
9358           hardcode_minus_L_CXX=yes
9359           hardcode_libdir_flag_spec_CXX='-L$libdir'
9360           hardcode_libdir_separator_CXX=
9361         fi
9362       esac
9363       shared_flag='-shared'
9364     else
9365       # not using gcc
9366       if test "$host_cpu" = ia64; then
9367         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9368         # chokes on -Wl,-G. The following line is correct:
9369         shared_flag='-G'
9370       else
9371         if test "$aix_use_runtimelinking" = yes; then
9372           shared_flag='${wl}-G'
9373         else
9374           shared_flag='${wl}-bM:SRE'
9375         fi
9376       fi
9377     fi
9378
9379     # It seems that -bexpall does not export symbols beginning with
9380     # underscore (_), so it is better to generate a list of symbols to export.
9381     always_export_symbols_CXX=yes
9382     if test "$aix_use_runtimelinking" = yes; then
9383       # Warning - without using the other runtime loading flags (-brtl),
9384       # -berok will link without error, but may produce a broken library.
9385       allow_undefined_flag_CXX='-berok'
9386       # Determine the default libpath from the value encoded in an empty executable.
9387       cat >conftest.$ac_ext <<_ACEOF
9388 #line $LINENO "configure"
9389 /* confdefs.h.  */
9390 _ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h.  */
9394
9395 int
9396 main ()
9397 {
9398
9399   ;
9400   return 0;
9401 }
9402 _ACEOF
9403 rm -f conftest.$ac_objext conftest$ac_exeext
9404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9405   (eval $ac_link) 2>&5
9406   ac_status=$?
9407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408   (exit $ac_status); } &&
9409          { ac_try='test -s conftest$ac_exeext'
9410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411   (eval $ac_try) 2>&5
9412   ac_status=$?
9413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); }; }; then
9415
9416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9417 }'`
9418 # Check for a 64-bit object if we didn't find anything.
9419 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; }
9420 }'`; fi
9421 else
9422   echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9424
9425 fi
9426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9427 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9428
9429       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9430
9431       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"
9432      else
9433       if test "$host_cpu" = ia64; then
9434         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9435         allow_undefined_flag_CXX="-z nodefs"
9436         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"
9437       else
9438         # Determine the default libpath from the value encoded in an empty executable.
9439         cat >conftest.$ac_ext <<_ACEOF
9440 #line $LINENO "configure"
9441 /* confdefs.h.  */
9442 _ACEOF
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h.  */
9446
9447 int
9448 main ()
9449 {
9450
9451   ;
9452   return 0;
9453 }
9454 _ACEOF
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9457   (eval $ac_link) 2>&5
9458   ac_status=$?
9459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460   (exit $ac_status); } &&
9461          { ac_try='test -s conftest$ac_exeext'
9462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463   (eval $ac_try) 2>&5
9464   ac_status=$?
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); }; }; then
9467
9468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9469 }'`
9470 # Check for a 64-bit object if we didn't find anything.
9471 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; }
9472 }'`; fi
9473 else
9474   echo "$as_me: failed program was:" >&5
9475 sed 's/^/| /' conftest.$ac_ext >&5
9476
9477 fi
9478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9479 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9480
9481         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9482         # Warning - without using the other run time loading flags,
9483         # -berok will link without error, but may produce a broken library.
9484         no_undefined_flag_CXX=' ${wl}-bernotok'
9485         allow_undefined_flag_CXX=' ${wl}-berok'
9486         # -bexpall does not export symbols beginning with underscore (_)
9487         always_export_symbols_CXX=yes
9488         # Exported symbols can be pulled into shared objects from archives
9489         whole_archive_flag_spec_CXX=' '
9490         archive_cmds_need_lc_CXX=yes
9491         # This is similar to how AIX traditionally builds it's shared libraries.
9492         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'
9493       fi
9494     fi
9495     ;;
9496   chorus*)
9497     case $cc_basename in
9498       *)
9499         # FIXME: insert proper C++ library support
9500         ld_shlibs_CXX=no
9501         ;;
9502     esac
9503     ;;
9504
9505   cygwin* | mingw* | pw32*)
9506     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9507     # as there is no search path for DLLs.
9508     hardcode_libdir_flag_spec_CXX='-L$libdir'
9509     allow_undefined_flag_CXX=unsupported
9510     always_export_symbols_CXX=no
9511     enable_shared_with_static_runtimes_CXX=yes
9512
9513     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9514       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'
9515       # If the export-symbols file already is a .def file (1st line
9516       # is EXPORTS), use it as is; otherwise, prepend...
9517       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9518         cp $export_symbols $output_objdir/$soname.def;
9519       else
9520         echo EXPORTS > $output_objdir/$soname.def;
9521         cat $export_symbols >> $output_objdir/$soname.def;
9522       fi~
9523       $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'
9524     else
9525       ld_shlibs_CXX=no
9526     fi
9527   ;;
9528
9529   darwin* | rhapsody*)
9530    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9531     archive_cmds_need_lc_CXX=no
9532     case "$host_os" in
9533     rhapsody* | darwin1.[012])
9534       allow_undefined_flag_CXX='-undefined suppress'
9535       ;;
9536     *) # Darwin 1.3 on
9537       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9538       ;;
9539     esac
9540         lt_int_apple_cc_single_mod=no
9541         output_verbose_link_cmd='echo'
9542         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9543           lt_int_apple_cc_single_mod=yes
9544         fi
9545         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9546           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9547         else
9548         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'
9549       fi
9550       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9551
9552     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9553       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9554         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}'
9555       else
9556         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}'
9557       fi
9558         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}'
9559     hardcode_direct_CXX=no
9560     hardcode_automatic_CXX=yes
9561     hardcode_shlibpath_var_CXX=unsupported
9562     whole_archive_flag_spec_CXX='-all_load $convenience'
9563     link_all_deplibs_CXX=yes
9564    fi
9565     ;;
9566
9567   dgux*)
9568     case $cc_basename in
9569       ec++)
9570         # FIXME: insert proper C++ library support
9571         ld_shlibs_CXX=no
9572         ;;
9573       ghcx)
9574         # Green Hills C++ Compiler
9575         # FIXME: insert proper C++ library support
9576         ld_shlibs_CXX=no
9577         ;;
9578       *)
9579         # FIXME: insert proper C++ library support
9580         ld_shlibs_CXX=no
9581         ;;
9582     esac
9583     ;;
9584   freebsd12*)
9585     # C++ shared libraries reported to be fairly broken before switch to ELF
9586     ld_shlibs_CXX=no
9587     ;;
9588   freebsd-elf*)
9589     archive_cmds_need_lc_CXX=no
9590     ;;
9591   freebsd*)
9592     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9593     # conventions
9594     ld_shlibs_CXX=yes
9595     ;;
9596   gnu*)
9597     ;;
9598   hpux9*)
9599     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9600     hardcode_libdir_separator_CXX=:
9601     export_dynamic_flag_spec_CXX='${wl}-E'
9602     hardcode_direct_CXX=yes
9603     hardcode_minus_L_CXX=yes # Not in the search PATH,
9604                                 # but as the default
9605                                 # location of the library.
9606
9607     case $cc_basename in
9608     CC)
9609       # FIXME: insert proper C++ library support
9610       ld_shlibs_CXX=no
9611       ;;
9612     aCC)
9613       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'
9614       # Commands to make compiler produce verbose output that lists
9615       # what "hidden" libraries, object files and flags are used when
9616       # linking a shared library.
9617       #
9618       # There doesn't appear to be a way to prevent this compiler from
9619       # explicitly linking system object files so we need to strip them
9620       # from the output so that they don't get included in the library
9621       # dependencies.
9622       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'
9623       ;;
9624     *)
9625       if test "$GXX" = yes; then
9626         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'
9627       else
9628         # FIXME: insert proper C++ library support
9629         ld_shlibs_CXX=no
9630       fi
9631       ;;
9632     esac
9633     ;;
9634   hpux10*|hpux11*)
9635     if test $with_gnu_ld = no; then
9636       case "$host_cpu" in
9637       hppa*64*)
9638         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9639         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9640         hardcode_libdir_separator_CXX=:
9641         ;;
9642       ia64*)
9643         hardcode_libdir_flag_spec_CXX='-L$libdir'
9644         ;;
9645       *)
9646         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9647         hardcode_libdir_separator_CXX=:
9648         export_dynamic_flag_spec_CXX='${wl}-E'
9649         ;;
9650       esac
9651     fi
9652     case "$host_cpu" in
9653     hppa*64*)
9654       hardcode_direct_CXX=no
9655       hardcode_shlibpath_var_CXX=no
9656       ;;
9657     ia64*)
9658       hardcode_direct_CXX=no
9659       hardcode_shlibpath_var_CXX=no
9660       hardcode_minus_L_CXX=yes # Not in the search PATH,
9661                                               # but as the default
9662                                               # location of the library.
9663       ;;
9664     *)
9665       hardcode_direct_CXX=yes
9666       hardcode_minus_L_CXX=yes # Not in the search PATH,
9667                                               # but as the default
9668                                               # location of the library.
9669       ;;
9670     esac
9671
9672     case $cc_basename in
9673       CC)
9674         # FIXME: insert proper C++ library support
9675         ld_shlibs_CXX=no
9676         ;;
9677       aCC)
9678         case "$host_cpu" in
9679         hppa*64*|ia64*)
9680           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9681           ;;
9682         *)
9683           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9684           ;;
9685         esac
9686         # Commands to make compiler produce verbose output that lists
9687         # what "hidden" libraries, object files and flags are used when
9688         # linking a shared library.
9689         #
9690         # There doesn't appear to be a way to prevent this compiler from
9691         # explicitly linking system object files so we need to strip them
9692         # from the output so that they don't get included in the library
9693         # dependencies.
9694         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'
9695         ;;
9696       *)
9697         if test "$GXX" = yes; then
9698           if test $with_gnu_ld = no; then
9699             case "$host_cpu" in
9700             ia64*|hppa*64*)
9701               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9702               ;;
9703             *)
9704               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'
9705               ;;
9706             esac
9707           fi
9708         else
9709           # FIXME: insert proper C++ library support
9710           ld_shlibs_CXX=no
9711         fi
9712         ;;
9713     esac
9714     ;;
9715   irix5* | irix6*)
9716     case $cc_basename in
9717       CC)
9718         # SGI C++
9719         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'
9720
9721         # Archives containing C++ object files must be created using
9722         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9723         # necessary to make sure instantiated templates are included
9724         # in the archive.
9725         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9726         ;;
9727       *)
9728         if test "$GXX" = yes; then
9729           if test "$with_gnu_ld" = no; then
9730             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'
9731           else
9732             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'
9733           fi
9734         fi
9735         link_all_deplibs_CXX=yes
9736         ;;
9737     esac
9738     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9739     hardcode_libdir_separator_CXX=:
9740     ;;
9741   linux*)
9742     case $cc_basename in
9743       KCC)
9744         # Kuck and Associates, Inc. (KAI) C++ Compiler
9745
9746         # KCC will only create a shared library if the output file
9747         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9748         # to its proper name (with version) after linking.
9749         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'
9750         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'
9751         # Commands to make compiler produce verbose output that lists
9752         # what "hidden" libraries, object files and flags are used when
9753         # linking a shared library.
9754         #
9755         # There doesn't appear to be a way to prevent this compiler from
9756         # explicitly linking system object files so we need to strip them
9757         # from the output so that they don't get included in the library
9758         # dependencies.
9759         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'
9760
9761         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9762         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9763
9764         # Archives containing C++ object files must be created using
9765         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9766         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9767         ;;
9768       icpc)
9769         # Intel C++
9770         with_gnu_ld=yes
9771         archive_cmds_need_lc_CXX=no
9772         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9773         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'
9774         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9775         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9776         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9777         ;;
9778       cxx)
9779         # Compaq C++
9780         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9781         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'
9782
9783         runpath_var=LD_RUN_PATH
9784         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9785         hardcode_libdir_separator_CXX=:
9786
9787         # Commands to make compiler produce verbose output that lists
9788         # what "hidden" libraries, object files and flags are used when
9789         # linking a shared library.
9790         #
9791         # There doesn't appear to be a way to prevent this compiler from
9792         # explicitly linking system object files so we need to strip them
9793         # from the output so that they don't get included in the library
9794         # dependencies.
9795         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'
9796         ;;
9797     esac
9798     ;;
9799   lynxos*)
9800     # FIXME: insert proper C++ library support
9801     ld_shlibs_CXX=no
9802     ;;
9803   m88k*)
9804     # FIXME: insert proper C++ library support
9805     ld_shlibs_CXX=no
9806     ;;
9807   mvs*)
9808     case $cc_basename in
9809       cxx)
9810         # FIXME: insert proper C++ library support
9811         ld_shlibs_CXX=no
9812         ;;
9813       *)
9814         # FIXME: insert proper C++ library support
9815         ld_shlibs_CXX=no
9816         ;;
9817     esac
9818     ;;
9819   netbsd*)
9820     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9821       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9822       wlarc=
9823       hardcode_libdir_flag_spec_CXX='-R$libdir'
9824       hardcode_direct_CXX=yes
9825       hardcode_shlibpath_var_CXX=no
9826     fi
9827     # Workaround some broken pre-1.5 toolchains
9828     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9829     ;;
9830   osf3*)
9831     case $cc_basename in
9832       KCC)
9833         # Kuck and Associates, Inc. (KAI) C++ Compiler
9834
9835         # KCC will only create a shared library if the output file
9836         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9837         # to its proper name (with version) after linking.
9838         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'
9839
9840         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9841         hardcode_libdir_separator_CXX=:
9842
9843         # Archives containing C++ object files must be created using
9844         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9845         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9846
9847         ;;
9848       RCC)
9849         # Rational C++ 2.4.1
9850         # FIXME: insert proper C++ library support
9851         ld_shlibs_CXX=no
9852         ;;
9853       cxx)
9854         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9855         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'
9856
9857         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9858         hardcode_libdir_separator_CXX=:
9859
9860         # Commands to make compiler produce verbose output that lists
9861         # what "hidden" libraries, object files and flags are used when
9862         # linking a shared library.
9863         #
9864         # There doesn't appear to be a way to prevent this compiler from
9865         # explicitly linking system object files so we need to strip them
9866         # from the output so that they don't get included in the library
9867         # dependencies.
9868         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'
9869         ;;
9870       *)
9871         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9872           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9873           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'
9874
9875           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9876           hardcode_libdir_separator_CXX=:
9877
9878           # Commands to make compiler produce verbose output that lists
9879           # what "hidden" libraries, object files and flags are used when
9880           # linking a shared library.
9881           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9882
9883         else
9884           # FIXME: insert proper C++ library support
9885           ld_shlibs_CXX=no
9886         fi
9887         ;;
9888     esac
9889     ;;
9890   osf4* | osf5*)
9891     case $cc_basename in
9892       KCC)
9893         # Kuck and Associates, Inc. (KAI) C++ Compiler
9894
9895         # KCC will only create a shared library if the output file
9896         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9897         # to its proper name (with version) after linking.
9898         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'
9899
9900         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9901         hardcode_libdir_separator_CXX=:
9902
9903         # Archives containing C++ object files must be created using
9904         # the KAI C++ compiler.
9905         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9906         ;;
9907       RCC)
9908         # Rational C++ 2.4.1
9909         # FIXME: insert proper C++ library support
9910         ld_shlibs_CXX=no
9911         ;;
9912       cxx)
9913         allow_undefined_flag_CXX=' -expect_unresolved \*'
9914         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'
9915         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9916           echo "-hidden">> $lib.exp~
9917           $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~
9918           $rm $lib.exp'
9919
9920         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9921         hardcode_libdir_separator_CXX=:
9922
9923         # Commands to make compiler produce verbose output that lists
9924         # what "hidden" libraries, object files and flags are used when
9925         # linking a shared library.
9926         #
9927         # There doesn't appear to be a way to prevent this compiler from
9928         # explicitly linking system object files so we need to strip them
9929         # from the output so that they don't get included in the library
9930         # dependencies.
9931         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'
9932         ;;
9933       *)
9934         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9935           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9936          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'
9937
9938           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9939           hardcode_libdir_separator_CXX=:
9940
9941           # Commands to make compiler produce verbose output that lists
9942           # what "hidden" libraries, object files and flags are used when
9943           # linking a shared library.
9944           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9945
9946         else
9947           # FIXME: insert proper C++ library support
9948           ld_shlibs_CXX=no
9949         fi
9950         ;;
9951     esac
9952     ;;
9953   psos*)
9954     # FIXME: insert proper C++ library support
9955     ld_shlibs_CXX=no
9956     ;;
9957   sco*)
9958     archive_cmds_need_lc_CXX=no
9959     case $cc_basename in
9960       CC)
9961         # FIXME: insert proper C++ library support
9962         ld_shlibs_CXX=no
9963         ;;
9964       *)
9965         # FIXME: insert proper C++ library support
9966         ld_shlibs_CXX=no
9967         ;;
9968     esac
9969     ;;
9970   sunos4*)
9971     case $cc_basename in
9972       CC)
9973         # Sun C++ 4.x
9974         # FIXME: insert proper C++ library support
9975         ld_shlibs_CXX=no
9976         ;;
9977       lcc)
9978         # Lucid
9979         # FIXME: insert proper C++ library support
9980         ld_shlibs_CXX=no
9981         ;;
9982       *)
9983         # FIXME: insert proper C++ library support
9984         ld_shlibs_CXX=no
9985         ;;
9986     esac
9987     ;;
9988   solaris*)
9989     case $cc_basename in
9990       CC)
9991         # Sun C++ 4.2, 5.x and Centerline C++
9992         no_undefined_flag_CXX=' -zdefs'
9993         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9994         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9995         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9996
9997         hardcode_libdir_flag_spec_CXX='-R$libdir'
9998         hardcode_shlibpath_var_CXX=no
9999         case $host_os in
10000           solaris2.0-5 | solaris2.0-5.*) ;;
10001           *)
10002             # The C++ compiler is used as linker so we must use $wl
10003             # flag to pass the commands to the underlying system
10004             # linker.
10005             # Supported since Solaris 2.6 (maybe 2.5.1?)
10006             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10007             ;;
10008         esac
10009         link_all_deplibs_CXX=yes
10010
10011         # Commands to make compiler produce verbose output that lists
10012         # what "hidden" libraries, object files and flags are used when
10013         # linking a shared library.
10014         #
10015         # There doesn't appear to be a way to prevent this compiler from
10016         # explicitly linking system object files so we need to strip them
10017         # from the output so that they don't get included in the library
10018         # dependencies.
10019         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'
10020
10021         # Archives containing C++ object files must be created using
10022         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10023         # necessary to make sure instantiated templates are included
10024         # in the archive.
10025         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10026         ;;
10027       gcx)
10028         # Green Hills C++ Compiler
10029         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10030
10031         # The C++ compiler must be used to create the archive.
10032         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10033         ;;
10034       *)
10035         # GNU C++ compiler with Solaris linker
10036         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10037           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10038           if $CC --version | grep -v '^2\.7' > /dev/null; then
10039             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10040             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10041                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10042
10043             # Commands to make compiler produce verbose output that lists
10044             # what "hidden" libraries, object files and flags are used when
10045             # linking a shared library.
10046             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10047           else
10048             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10049             # platform.
10050             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10051             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10052                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10053
10054             # Commands to make compiler produce verbose output that lists
10055             # what "hidden" libraries, object files and flags are used when
10056             # linking a shared library.
10057             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10058           fi
10059
10060           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10061         fi
10062         ;;
10063     esac
10064     ;;
10065   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10066     archive_cmds_need_lc_CXX=no
10067     ;;
10068   tandem*)
10069     case $cc_basename in
10070       NCC)
10071         # NonStop-UX NCC 3.20
10072         # FIXME: insert proper C++ library support
10073         ld_shlibs_CXX=no
10074         ;;
10075       *)
10076         # FIXME: insert proper C++ library support
10077         ld_shlibs_CXX=no
10078         ;;
10079     esac
10080     ;;
10081   vxworks*)
10082     # FIXME: insert proper C++ library support
10083     ld_shlibs_CXX=no
10084     ;;
10085   *)
10086     # FIXME: insert proper C++ library support
10087     ld_shlibs_CXX=no
10088     ;;
10089 esac
10090 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10091 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10092 test "$ld_shlibs_CXX" = no && can_build_shared=no
10093
10094 GCC_CXX="$GXX"
10095 LD_CXX="$LD"
10096
10097 ## CAVEAT EMPTOR:
10098 ## There is no encapsulation within the following macros, do not change
10099 ## the running order or otherwise move them around unless you know exactly
10100 ## what you are doing...
10101
10102 cat > conftest.$ac_ext <<EOF
10103 class Foo
10104 {
10105 public:
10106   Foo (void) { a = 0; }
10107 private:
10108   int a;
10109 };
10110 EOF
10111
10112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10113   (eval $ac_compile) 2>&5
10114   ac_status=$?
10115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116   (exit $ac_status); }; then
10117   # Parse the compiler output and extract the necessary
10118   # objects, libraries and library flags.
10119
10120   # Sentinel used to keep track of whether or not we are before
10121   # the conftest object file.
10122   pre_test_object_deps_done=no
10123
10124   # The `*' in the case matches for architectures that use `case' in
10125   # $output_verbose_cmd can trigger glob expansion during the loop
10126   # eval without this substitution.
10127   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10128
10129   for p in `eval $output_verbose_link_cmd`; do
10130     case $p in
10131
10132     -L* | -R* | -l*)
10133        # Some compilers place space between "-{L,R}" and the path.
10134        # Remove the space.
10135        if test $p = "-L" \
10136           || test $p = "-R"; then
10137          prev=$p
10138          continue
10139        else
10140          prev=
10141        fi
10142
10143        if test "$pre_test_object_deps_done" = no; then
10144          case $p in
10145          -L* | -R*)
10146            # Internal compiler library paths should come after those
10147            # provided the user.  The postdeps already come after the
10148            # user supplied libs so there is no need to process them.
10149            if test -z "$compiler_lib_search_path_CXX"; then
10150              compiler_lib_search_path_CXX="${prev}${p}"
10151            else
10152              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10153            fi
10154            ;;
10155          # The "-l" case would never come before the object being
10156          # linked, so don't bother handling this case.
10157          esac
10158        else
10159          if test -z "$postdeps_CXX"; then
10160            postdeps_CXX="${prev}${p}"
10161          else
10162            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10163          fi
10164        fi
10165        ;;
10166
10167     *.$objext)
10168        # This assumes that the test object file only shows up
10169        # once in the compiler output.
10170        if test "$p" = "conftest.$objext"; then
10171          pre_test_object_deps_done=yes
10172          continue
10173        fi
10174
10175        if test "$pre_test_object_deps_done" = no; then
10176          if test -z "$predep_objects_CXX"; then
10177            predep_objects_CXX="$p"
10178          else
10179            predep_objects_CXX="$predep_objects_CXX $p"
10180          fi
10181        else
10182          if test -z "$postdep_objects_CXX"; then
10183            postdep_objects_CXX="$p"
10184          else
10185            postdep_objects_CXX="$postdep_objects_CXX $p"
10186          fi
10187        fi
10188        ;;
10189
10190     *) ;; # Ignore the rest.
10191
10192     esac
10193   done
10194
10195   # Clean up.
10196   rm -f a.out a.exe
10197 else
10198   echo "libtool.m4: error: problem compiling CXX test program"
10199 fi
10200
10201 $rm -f confest.$objext
10202
10203 case " $postdeps_CXX " in
10204 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10205 esac
10206
10207 lt_prog_compiler_wl_CXX=
10208 lt_prog_compiler_pic_CXX=
10209 lt_prog_compiler_static_CXX=
10210
10211 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10212 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10213
10214   # C++ specific cases for pic, static, wl, etc.
10215   if test "$GXX" = yes; then
10216     lt_prog_compiler_wl_CXX='-Wl,'
10217     lt_prog_compiler_static_CXX='-static'
10218
10219     case $host_os in
10220     aix*)
10221       # All AIX code is PIC.
10222       if test "$host_cpu" = ia64; then
10223         # AIX 5 now supports IA64 processor
10224         lt_prog_compiler_static_CXX='-Bstatic'
10225       fi
10226       ;;
10227     amigaos*)
10228       # FIXME: we need at least 68020 code to build shared libraries, but
10229       # adding the `-m68020' flag to GCC prevents building anything better,
10230       # like `-m68040'.
10231       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10232       ;;
10233     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10234       # PIC is the default for these OSes.
10235       ;;
10236     mingw* | os2* | pw32*)
10237       # This hack is so that the source file can tell whether it is being
10238       # built for inclusion in a dll (and should export symbols for example).
10239       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10240       ;;
10241     darwin* | rhapsody*)
10242       # PIC is the default on this platform
10243       # Common symbols not allowed in MH_DYLIB files
10244       lt_prog_compiler_pic_CXX='-fno-common'
10245       ;;
10246     *djgpp*)
10247       # DJGPP does not support shared libraries at all
10248       lt_prog_compiler_pic_CXX=
10249       ;;
10250     sysv4*MP*)
10251       if test -d /usr/nec; then
10252         lt_prog_compiler_pic_CXX=-Kconform_pic
10253       fi
10254       ;;
10255     hpux*)
10256       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10257       # not for PA HP-UX.
10258       case "$host_cpu" in
10259       hppa*64*|ia64*)
10260         ;;
10261       *)
10262         lt_prog_compiler_pic_CXX='-fPIC'
10263         ;;
10264       esac
10265       ;;
10266     *)
10267       lt_prog_compiler_pic_CXX='-fPIC'
10268       ;;
10269     esac
10270   else
10271     case $host_os in
10272       aix4* | aix5*)
10273         # All AIX code is PIC.
10274         if test "$host_cpu" = ia64; then
10275           # AIX 5 now supports IA64 processor
10276           lt_prog_compiler_static_CXX='-Bstatic'
10277         else
10278           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10279         fi
10280         ;;
10281       chorus*)
10282         case $cc_basename in
10283         cxch68)
10284           # Green Hills C++ Compiler
10285           # _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"
10286           ;;
10287         esac
10288         ;;
10289       dgux*)
10290         case $cc_basename in
10291           ec++)
10292             lt_prog_compiler_pic_CXX='-KPIC'
10293             ;;
10294           ghcx)
10295             # Green Hills C++ Compiler
10296             lt_prog_compiler_pic_CXX='-pic'
10297             ;;
10298           *)
10299             ;;
10300         esac
10301         ;;
10302       freebsd*)
10303         # FreeBSD uses GNU C++
10304         ;;
10305       hpux9* | hpux10* | hpux11*)
10306         case $cc_basename in
10307           CC)
10308             lt_prog_compiler_wl_CXX='-Wl,'
10309             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10310             if test "$host_cpu" != ia64; then
10311               lt_prog_compiler_pic_CXX='+Z'
10312             fi
10313             ;;
10314           aCC)
10315             lt_prog_compiler_wl_CXX='-Wl,'
10316             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10317             case "$host_cpu" in
10318             hppa*64*|ia64*)
10319               # +Z the default
10320               ;;
10321             *)
10322               lt_prog_compiler_pic_CXX='+Z'
10323               ;;
10324             esac
10325             ;;
10326           *)
10327             ;;
10328         esac
10329         ;;
10330       irix5* | irix6* | nonstopux*)
10331         case $cc_basename in
10332           CC)
10333             lt_prog_compiler_wl_CXX='-Wl,'
10334             lt_prog_compiler_static_CXX='-non_shared'
10335             # CC pic flag -KPIC is the default.
10336             ;;
10337           *)
10338             ;;
10339         esac
10340         ;;
10341       linux*)
10342         case $cc_basename in
10343           KCC)
10344             # KAI C++ Compiler
10345             lt_prog_compiler_wl_CXX='--backend -Wl,'
10346             lt_prog_compiler_pic_CXX='-fPIC'
10347             ;;
10348           icpc)
10349             # Intel C++
10350             lt_prog_compiler_wl_CXX='-Wl,'
10351             lt_prog_compiler_pic_CXX='-KPIC'
10352             lt_prog_compiler_static_CXX='-static'
10353             ;;
10354           cxx)
10355             # Compaq C++
10356             # Make sure the PIC flag is empty.  It appears that all Alpha
10357             # Linux and Compaq Tru64 Unix objects are PIC.
10358             lt_prog_compiler_pic_CXX=
10359             lt_prog_compiler_static_CXX='-non_shared'
10360             ;;
10361           *)
10362             ;;
10363         esac
10364         ;;
10365       lynxos*)
10366         ;;
10367       m88k*)
10368         ;;
10369       mvs*)
10370         case $cc_basename in
10371           cxx)
10372             lt_prog_compiler_pic_CXX='-W c,exportall'
10373             ;;
10374           *)
10375             ;;
10376         esac
10377         ;;
10378       netbsd*)
10379         ;;
10380       osf3* | osf4* | osf5*)
10381         case $cc_basename in
10382           KCC)
10383             lt_prog_compiler_wl_CXX='--backend -Wl,'
10384             ;;
10385           RCC)
10386             # Rational C++ 2.4.1
10387             lt_prog_compiler_pic_CXX='-pic'
10388             ;;
10389           cxx)
10390             # Digital/Compaq C++
10391             lt_prog_compiler_wl_CXX='-Wl,'
10392             # Make sure the PIC flag is empty.  It appears that all Alpha
10393             # Linux and Compaq Tru64 Unix objects are PIC.
10394             lt_prog_compiler_pic_CXX=
10395             lt_prog_compiler_static_CXX='-non_shared'
10396             ;;
10397           *)
10398             ;;
10399         esac
10400         ;;
10401       psos*)
10402         ;;
10403       sco*)
10404         case $cc_basename in
10405           CC)
10406             lt_prog_compiler_pic_CXX='-fPIC'
10407             ;;
10408           *)
10409             ;;
10410         esac
10411         ;;
10412       solaris*)
10413         case $cc_basename in
10414           CC)
10415             # Sun C++ 4.2, 5.x and Centerline C++
10416             lt_prog_compiler_pic_CXX='-KPIC'
10417             lt_prog_compiler_static_CXX='-Bstatic'
10418             lt_prog_compiler_wl_CXX='-Qoption ld '
10419             ;;
10420           gcx)
10421             # Green Hills C++ Compiler
10422             lt_prog_compiler_pic_CXX='-PIC'
10423             ;;
10424           *)
10425             ;;
10426         esac
10427         ;;
10428       sunos4*)
10429         case $cc_basename in
10430           CC)
10431             # Sun C++ 4.x
10432             lt_prog_compiler_pic_CXX='-pic'
10433             lt_prog_compiler_static_CXX='-Bstatic'
10434             ;;
10435           lcc)
10436             # Lucid
10437             lt_prog_compiler_pic_CXX='-pic'
10438             ;;
10439           *)
10440             ;;
10441         esac
10442         ;;
10443       tandem*)
10444         case $cc_basename in
10445           NCC)
10446             # NonStop-UX NCC 3.20
10447             lt_prog_compiler_pic_CXX='-KPIC'
10448             ;;
10449           *)
10450             ;;
10451         esac
10452         ;;
10453       unixware*)
10454         ;;
10455       vxworks*)
10456         ;;
10457       *)
10458         lt_prog_compiler_can_build_shared_CXX=no
10459         ;;
10460     esac
10461   fi
10462
10463 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10464 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10465
10466 #
10467 # Check to make sure the PIC flag actually works.
10468 #
10469 if test -n "$lt_prog_compiler_pic_CXX"; then
10470   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10471 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10472 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10473   echo $ECHO_N "(cached) $ECHO_C" >&6
10474 else
10475   lt_prog_compiler_pic_works_CXX=no
10476   ac_outfile=conftest.$ac_objext
10477    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10478    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10479    # Insert the option either (1) after the last *FLAGS variable, or
10480    # (2) before a word containing "conftest.", or (3) at the end.
10481    # Note that $ac_compile itself does not contain backslashes and begins
10482    # with a dollar sign (not a hyphen), so the echo should work correctly.
10483    # The option is referenced via a variable to avoid confusing sed.
10484    lt_compile=`echo "$ac_compile" | $SED \
10485    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10486    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10487    -e 's:$: $lt_compiler_flag:'`
10488    (eval echo "\"\$as_me:10488: $lt_compile\"" >&5)
10489    (eval "$lt_compile" 2>conftest.err)
10490    ac_status=$?
10491    cat conftest.err >&5
10492    echo "$as_me:10492: \$? = $ac_status" >&5
10493    if (exit $ac_status) && test -s "$ac_outfile"; then
10494      # The compiler can only warn and ignore the option if not recognized
10495      # So say no if there are warnings
10496      if test ! -s conftest.err; then
10497        lt_prog_compiler_pic_works_CXX=yes
10498      fi
10499    fi
10500    $rm conftest*
10501
10502 fi
10503 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10504 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10505
10506 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10507     case $lt_prog_compiler_pic_CXX in
10508      "" | " "*) ;;
10509      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10510      esac
10511 else
10512     lt_prog_compiler_pic_CXX=
10513      lt_prog_compiler_can_build_shared_CXX=no
10514 fi
10515
10516 fi
10517 case "$host_os" in
10518   # For platforms which do not support PIC, -DPIC is meaningless:
10519   *djgpp*)
10520     lt_prog_compiler_pic_CXX=
10521     ;;
10522   *)
10523     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10524     ;;
10525 esac
10526
10527 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10528 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10529 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10530   echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10532   lt_cv_prog_compiler_c_o_CXX=no
10533    $rm -r conftest 2>/dev/null
10534    mkdir conftest
10535    cd conftest
10536    mkdir out
10537    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10538
10539    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10540    # that will create temporary files in the current directory regardless of
10541    # the output directory.  Thus, making CWD read-only will cause this test
10542    # to fail, enabling locking or at least warning the user not to do parallel
10543    # builds.
10544    chmod -w .
10545
10546    lt_compiler_flag="-o out/conftest2.$ac_objext"
10547    # Insert the option either (1) after the last *FLAGS variable, or
10548    # (2) before a word containing "conftest.", or (3) at the end.
10549    # Note that $ac_compile itself does not contain backslashes and begins
10550    # with a dollar sign (not a hyphen), so the echo should work correctly.
10551    lt_compile=`echo "$ac_compile" | $SED \
10552    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10553    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10554    -e 's:$: $lt_compiler_flag:'`
10555    (eval echo "\"\$as_me:10555: $lt_compile\"" >&5)
10556    (eval "$lt_compile" 2>out/conftest.err)
10557    ac_status=$?
10558    cat out/conftest.err >&5
10559    echo "$as_me:10559: \$? = $ac_status" >&5
10560    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10561    then
10562      # The compiler can only warn and ignore the option if not recognized
10563      # So say no if there are warnings
10564      if test ! -s out/conftest.err; then
10565        lt_cv_prog_compiler_c_o_CXX=yes
10566      fi
10567    fi
10568    chmod u+w .
10569    $rm conftest* out/*
10570    rmdir out
10571    cd ..
10572    rmdir conftest
10573    $rm conftest*
10574
10575 fi
10576 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10577 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10578
10579
10580 hard_links="nottested"
10581 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10582   # do not overwrite the value of need_locks provided by the user
10583   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10584 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10585   hard_links=yes
10586   $rm conftest*
10587   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10588   touch conftest.a
10589   ln conftest.a conftest.b 2>&5 || hard_links=no
10590   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10591   echo "$as_me:$LINENO: result: $hard_links" >&5
10592 echo "${ECHO_T}$hard_links" >&6
10593   if test "$hard_links" = no; then
10594     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10595 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10596     need_locks=warn
10597   fi
10598 else
10599   need_locks=no
10600 fi
10601
10602 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10603 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10604
10605   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10606   case $host_os in
10607   aix4* | aix5*)
10608     # If we're using GNU nm, then we don't want the "-C" option.
10609     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10610     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10611       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'
10612     else
10613       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'
10614     fi
10615     ;;
10616   pw32*)
10617     export_symbols_cmds_CXX="$ltdll_cmds"
10618   ;;
10619   cygwin* | mingw*)
10620     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10621   ;;
10622   *)
10623     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10624   ;;
10625   esac
10626
10627 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10628 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10629 test "$ld_shlibs_CXX" = no && can_build_shared=no
10630
10631 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10632 if test "$GCC" = yes; then
10633   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10634 fi
10635
10636 #
10637 # Do we need to explicitly link libc?
10638 #
10639 case "x$archive_cmds_need_lc_CXX" in
10640 x|xyes)
10641   # Assume -lc should be added
10642   archive_cmds_need_lc_CXX=yes
10643
10644   if test "$enable_shared" = yes && test "$GCC" = yes; then
10645     case $archive_cmds_CXX in
10646     *'~'*)
10647       # FIXME: we may have to deal with multi-command sequences.
10648       ;;
10649     '$CC '*)
10650       # Test whether the compiler implicitly links with -lc since on some
10651       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10652       # to ld, don't add -lc before -lgcc.
10653       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10654 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10655       $rm conftest*
10656       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10657
10658       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10659   (eval $ac_compile) 2>&5
10660   ac_status=$?
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); } 2>conftest.err; then
10663         soname=conftest
10664         lib=conftest
10665         libobjs=conftest.$ac_objext
10666         deplibs=
10667         wl=$lt_prog_compiler_wl_CXX
10668         compiler_flags=-v
10669         linker_flags=-v
10670         verstring=
10671         output_objdir=.
10672         libname=conftest
10673         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10674         allow_undefined_flag_CXX=
10675         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10676   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10677   ac_status=$?
10678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679   (exit $ac_status); }
10680         then
10681           archive_cmds_need_lc_CXX=no
10682         else
10683           archive_cmds_need_lc_CXX=yes
10684         fi
10685         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10686       else
10687         cat conftest.err 1>&5
10688       fi
10689       $rm conftest*
10690       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10691 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10692       ;;
10693     esac
10694   fi
10695   ;;
10696 esac
10697
10698 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10699 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10700 hardcode_action_CXX=
10701 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10702    test -n "$runpath_var CXX" || \
10703    test "X$hardcode_automatic_CXX"="Xyes" ; then
10704
10705   # We can hardcode non-existant directories.
10706   if test "$hardcode_direct_CXX" != no &&
10707      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10708      # have to relink, otherwise we might link with an installed library
10709      # when we should be linking with a yet-to-be-installed one
10710      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10711      test "$hardcode_minus_L_CXX" != no; then
10712     # Linking always hardcodes the temporary library directory.
10713     hardcode_action_CXX=relink
10714   else
10715     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10716     hardcode_action_CXX=immediate
10717   fi
10718 else
10719   # We cannot hardcode anything, or else we can only hardcode existing
10720   # directories.
10721   hardcode_action_CXX=unsupported
10722 fi
10723 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10724 echo "${ECHO_T}$hardcode_action_CXX" >&6
10725
10726 if test "$hardcode_action_CXX" = relink; then
10727   # Fast installation is not supported
10728   enable_fast_install=no
10729 elif test "$shlibpath_overrides_runpath" = yes ||
10730      test "$enable_shared" = no; then
10731   # Fast installation is not necessary
10732   enable_fast_install=needless
10733 fi
10734
10735 striplib=
10736 old_striplib=
10737 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10738 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10739 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10740   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10741   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10742   echo "$as_me:$LINENO: result: yes" >&5
10743 echo "${ECHO_T}yes" >&6
10744 else
10745 # FIXME - insert some real tests, host_os isn't really good enough
10746   case $host_os in
10747    darwin*)
10748        if test -n "$STRIP" ; then
10749          striplib="$STRIP -x"
10750          echo "$as_me:$LINENO: result: yes" >&5
10751 echo "${ECHO_T}yes" >&6
10752        else
10753   echo "$as_me:$LINENO: result: no" >&5
10754 echo "${ECHO_T}no" >&6
10755 fi
10756        ;;
10757    *)
10758   echo "$as_me:$LINENO: result: no" >&5
10759 echo "${ECHO_T}no" >&6
10760     ;;
10761   esac
10762 fi
10763
10764 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10765 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10766 library_names_spec=
10767 libname_spec='lib$name'
10768 soname_spec=
10769 shrext=".so"
10770 postinstall_cmds=
10771 postuninstall_cmds=
10772 finish_cmds=
10773 finish_eval=
10774 shlibpath_var=
10775 shlibpath_overrides_runpath=unknown
10776 version_type=none
10777 dynamic_linker="$host_os ld.so"
10778 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10779 if test "$GCC" = yes; then
10780   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10781   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10782     # if the path contains ";" then we assume it to be the separator
10783     # otherwise default to the standard path separator (i.e. ":") - it is
10784     # assumed that no part of a normal pathname contains ";" but that should
10785     # okay in the real world where ";" in dirpaths is itself problematic.
10786     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10787   else
10788     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10789   fi
10790 else
10791   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10792 fi
10793 need_lib_prefix=unknown
10794 hardcode_into_libs=no
10795
10796 # when you set need_version to no, make sure it does not cause -set_version
10797 # flags to be left without arguments
10798 need_version=unknown
10799
10800 case $host_os in
10801 aix3*)
10802   version_type=linux
10803   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10804   shlibpath_var=LIBPATH
10805
10806   # AIX 3 has no versioning support, so we append a major version to the name.
10807   soname_spec='${libname}${release}${shared_ext}$major'
10808   ;;
10809
10810 aix4* | aix5*)
10811   version_type=linux
10812   need_lib_prefix=no
10813   need_version=no
10814   hardcode_into_libs=yes
10815   if test "$host_cpu" = ia64; then
10816     # AIX 5 supports IA64
10817     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10818     shlibpath_var=LD_LIBRARY_PATH
10819   else
10820     # With GCC up to 2.95.x, collect2 would create an import file
10821     # for dependence libraries.  The import file would start with
10822     # the line `#! .'.  This would cause the generated library to
10823     # depend on `.', always an invalid library.  This was fixed in
10824     # development snapshots of GCC prior to 3.0.
10825     case $host_os in
10826       aix4 | aix4.[01] | aix4.[01].*)
10827       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10828            echo ' yes '
10829            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10830         :
10831       else
10832         can_build_shared=no
10833       fi
10834       ;;
10835     esac
10836     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10837     # soname into executable. Probably we can add versioning support to
10838     # collect2, so additional links can be useful in future.
10839     if test "$aix_use_runtimelinking" = yes; then
10840       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10841       # instead of lib<name>.a to let people know that these are not
10842       # typical AIX shared libraries.
10843       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10844     else
10845       # We preserve .a as extension for shared libraries through AIX4.2
10846       # and later when we are not doing run time linking.
10847       library_names_spec='${libname}${release}.a $libname.a'
10848       soname_spec='${libname}${release}${shared_ext}$major'
10849     fi
10850     shlibpath_var=LIBPATH
10851   fi
10852   ;;
10853
10854 amigaos*)
10855   library_names_spec='$libname.ixlibrary $libname.a'
10856   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10857   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'
10858   ;;
10859
10860 beos*)
10861   library_names_spec='${libname}${shared_ext}'
10862   dynamic_linker="$host_os ld.so"
10863   shlibpath_var=LIBRARY_PATH
10864   ;;
10865
10866 bsdi4*)
10867   version_type=linux
10868   need_version=no
10869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10870   soname_spec='${libname}${release}${shared_ext}$major'
10871   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10872   shlibpath_var=LD_LIBRARY_PATH
10873   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10874   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10875   # the default ld.so.conf also contains /usr/contrib/lib and
10876   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10877   # libtool to hard-code these into programs
10878   ;;
10879
10880 cygwin* | mingw* | pw32*)
10881   version_type=windows
10882   shrext=".dll"
10883   need_version=no
10884   need_lib_prefix=no
10885
10886   case $GCC,$host_os in
10887   yes,cygwin* | yes,mingw* | yes,pw32*)
10888     library_names_spec='$libname.dll.a'
10889     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10890     postinstall_cmds='base_file=`basename \${file}`~
10891       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10892       dldir=$destdir/`dirname \$dlpath`~
10893       test -d \$dldir || mkdir -p \$dldir~
10894       $install_prog $dir/$dlname \$dldir/$dlname'
10895     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10896       dlpath=$dir/\$dldll~
10897        $rm \$dlpath'
10898     shlibpath_overrides_runpath=yes
10899
10900     case $host_os in
10901     cygwin*)
10902       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10903       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10904       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10905       ;;
10906     mingw*)
10907       # MinGW DLLs use traditional 'lib' prefix
10908       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10909       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10910       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10911         # It is most probably a Windows format PATH printed by
10912         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10913         # path with ; separators, and with drive letters. We can handle the
10914         # drive letters (cygwin fileutils understands them), so leave them,
10915         # especially as we might pass files found there to a mingw objdump,
10916         # which wouldn't understand a cygwinified path. Ahh.
10917         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10918       else
10919         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10920       fi
10921       ;;
10922     pw32*)
10923       # pw32 DLLs use 'pw' prefix rather than 'lib'
10924       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10925       ;;
10926     esac
10927     ;;
10928
10929   *)
10930     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10931     ;;
10932   esac
10933   dynamic_linker='Win32 ld.exe'
10934   # FIXME: first we should search . and the directory the executable is in
10935   shlibpath_var=PATH
10936   ;;
10937
10938 darwin* | rhapsody*)
10939   dynamic_linker="$host_os dyld"
10940   version_type=darwin
10941   need_lib_prefix=no
10942   need_version=no
10943   # FIXME: Relying on posixy $() will cause problems for
10944   #        cross-compilation, but unfortunately the echo tests do not
10945   #        yet detect zsh echo's removal of \ escapes.
10946   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10947   soname_spec='${libname}${release}${major}$shared_ext'
10948   shlibpath_overrides_runpath=yes
10949   shlibpath_var=DYLD_LIBRARY_PATH
10950   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10951   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10952   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10953   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"`
10954   fi
10955   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10956   ;;
10957
10958 dgux*)
10959   version_type=linux
10960   need_lib_prefix=no
10961   need_version=no
10962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10963   soname_spec='${libname}${release}${shared_ext}$major'
10964   shlibpath_var=LD_LIBRARY_PATH
10965   ;;
10966
10967 freebsd1*)
10968   dynamic_linker=no
10969   ;;
10970
10971 freebsd*)
10972   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10973   version_type=freebsd-$objformat
10974   case $version_type in
10975     freebsd-elf*)
10976       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10977       need_version=no
10978       need_lib_prefix=no
10979       ;;
10980     freebsd-*)
10981       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10982       need_version=yes
10983       ;;
10984   esac
10985   shlibpath_var=LD_LIBRARY_PATH
10986   case $host_os in
10987   freebsd2*)
10988     shlibpath_overrides_runpath=yes
10989     ;;
10990   freebsd3.01* | freebsdelf3.01*)
10991     shlibpath_overrides_runpath=yes
10992     hardcode_into_libs=yes
10993     ;;
10994   *) # from 3.2 on
10995     shlibpath_overrides_runpath=no
10996     hardcode_into_libs=yes
10997     ;;
10998   esac
10999   ;;
11000
11001 gnu*)
11002   version_type=linux
11003   need_lib_prefix=no
11004   need_version=no
11005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11006   soname_spec='${libname}${release}${shared_ext}$major'
11007   shlibpath_var=LD_LIBRARY_PATH
11008   hardcode_into_libs=yes
11009   ;;
11010
11011 hpux9* | hpux10* | hpux11*)
11012   # Give a soname corresponding to the major version so that dld.sl refuses to
11013   # link against other versions.
11014   version_type=sunos
11015   need_lib_prefix=no
11016   need_version=no
11017   case "$host_cpu" in
11018   ia64*)
11019     shrext='.so'
11020     hardcode_into_libs=yes
11021     dynamic_linker="$host_os dld.so"
11022     shlibpath_var=LD_LIBRARY_PATH
11023     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11024     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025     soname_spec='${libname}${release}${shared_ext}$major'
11026     if test "X$HPUX_IA64_MODE" = X32; then
11027       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11028     else
11029       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11030     fi
11031     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11032     ;;
11033    hppa*64*)
11034      shrext='.sl'
11035      hardcode_into_libs=yes
11036      dynamic_linker="$host_os dld.sl"
11037      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11038      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11039      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040      soname_spec='${libname}${release}${shared_ext}$major'
11041      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11042      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11043      ;;
11044    *)
11045     shrext='.sl'
11046     dynamic_linker="$host_os dld.sl"
11047     shlibpath_var=SHLIB_PATH
11048     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11050     soname_spec='${libname}${release}${shared_ext}$major'
11051     ;;
11052   esac
11053   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11054   postinstall_cmds='chmod 555 $lib'
11055   ;;
11056
11057 irix5* | irix6* | nonstopux*)
11058   case $host_os in
11059     nonstopux*) version_type=nonstopux ;;
11060     *)
11061         if test "$lt_cv_prog_gnu_ld" = yes; then
11062                 version_type=linux
11063         else
11064                 version_type=irix
11065         fi ;;
11066   esac
11067   need_lib_prefix=no
11068   need_version=no
11069   soname_spec='${libname}${release}${shared_ext}$major'
11070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11071   case $host_os in
11072   irix5* | nonstopux*)
11073     libsuff= shlibsuff=
11074     ;;
11075   *)
11076     case $LD in # libtool.m4 will add one of these switches to LD
11077     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11078       libsuff= shlibsuff= libmagic=32-bit;;
11079     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11080       libsuff=32 shlibsuff=N32 libmagic=N32;;
11081     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11082       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11083     *) libsuff= shlibsuff= libmagic=never-match;;
11084     esac
11085     ;;
11086   esac
11087   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11088   shlibpath_overrides_runpath=no
11089   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11090   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11091   hardcode_into_libs=yes
11092   ;;
11093
11094 # No shared lib support for Linux oldld, aout, or coff.
11095 linux*oldld* | linux*aout* | linux*coff*)
11096   dynamic_linker=no
11097   ;;
11098
11099 # This must be Linux ELF.
11100 linux*)
11101   version_type=linux
11102   need_lib_prefix=no
11103   need_version=no
11104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105   soname_spec='${libname}${release}${shared_ext}$major'
11106   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11107   shlibpath_var=LD_LIBRARY_PATH
11108   shlibpath_overrides_runpath=no
11109   # This implies no fast_install, which is unacceptable.
11110   # Some rework will be needed to allow for fast_install
11111   # before this can be enabled.
11112   hardcode_into_libs=yes
11113
11114   # We used to test for /lib/ld.so.1 and disable shared libraries on
11115   # powerpc, because MkLinux only supported shared libraries with the
11116   # GNU dynamic linker.  Since this was broken with cross compilers,
11117   # most powerpc-linux boxes support dynamic linking these days and
11118   # people can always --disable-shared, the test was removed, and we
11119   # assume the GNU/Linux dynamic linker is in use.
11120   dynamic_linker='GNU/Linux ld.so'
11121   ;;
11122
11123 netbsd*)
11124   version_type=sunos
11125   need_lib_prefix=no
11126   need_version=no
11127   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11129     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11130     dynamic_linker='NetBSD (a.out) ld.so'
11131   else
11132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11133     soname_spec='${libname}${release}${shared_ext}$major'
11134     dynamic_linker='NetBSD ld.elf_so'
11135   fi
11136   shlibpath_var=LD_LIBRARY_PATH
11137   shlibpath_overrides_runpath=yes
11138   hardcode_into_libs=yes
11139   ;;
11140
11141 newsos6)
11142   version_type=linux
11143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11144   shlibpath_var=LD_LIBRARY_PATH
11145   shlibpath_overrides_runpath=yes
11146   ;;
11147
11148 nto-qnx)
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   ;;
11157
11158 openbsd*)
11159   version_type=sunos
11160   need_lib_prefix=no
11161   need_version=no
11162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11163   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11164   shlibpath_var=LD_LIBRARY_PATH
11165   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11166     case $host_os in
11167       openbsd2.[89] | openbsd2.[89].*)
11168         shlibpath_overrides_runpath=no
11169         ;;
11170       *)
11171         shlibpath_overrides_runpath=yes
11172         ;;
11173       esac
11174   else
11175     shlibpath_overrides_runpath=yes
11176   fi
11177   ;;
11178
11179 os2*)
11180   libname_spec='$name'
11181   shrext=".dll"
11182   need_lib_prefix=no
11183   library_names_spec='$libname${shared_ext} $libname.a'
11184   dynamic_linker='OS/2 ld.exe'
11185   shlibpath_var=LIBPATH
11186   ;;
11187
11188 osf3* | osf4* | osf5*)
11189   version_type=osf
11190   need_lib_prefix=no
11191   need_version=no
11192   soname_spec='${libname}${release}${shared_ext}$major'
11193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194   shlibpath_var=LD_LIBRARY_PATH
11195   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11196   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11197   ;;
11198
11199 sco3.2v5*)
11200   version_type=osf
11201   soname_spec='${libname}${release}${shared_ext}$major'
11202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11203   shlibpath_var=LD_LIBRARY_PATH
11204   ;;
11205
11206 solaris*)
11207   version_type=linux
11208   need_lib_prefix=no
11209   need_version=no
11210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11211   soname_spec='${libname}${release}${shared_ext}$major'
11212   shlibpath_var=LD_LIBRARY_PATH
11213   shlibpath_overrides_runpath=yes
11214   hardcode_into_libs=yes
11215   # ldd complains unless libraries are executable
11216   postinstall_cmds='chmod +x $lib'
11217   ;;
11218
11219 sunos4*)
11220   version_type=sunos
11221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11222   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11223   shlibpath_var=LD_LIBRARY_PATH
11224   shlibpath_overrides_runpath=yes
11225   if test "$with_gnu_ld" = yes; then
11226     need_lib_prefix=no
11227   fi
11228   need_version=yes
11229   ;;
11230
11231 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11232   version_type=linux
11233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11234   soname_spec='${libname}${release}${shared_ext}$major'
11235   shlibpath_var=LD_LIBRARY_PATH
11236   case $host_vendor in
11237     sni)
11238       shlibpath_overrides_runpath=no
11239       need_lib_prefix=no
11240       export_dynamic_flag_spec='${wl}-Blargedynsym'
11241       runpath_var=LD_RUN_PATH
11242       ;;
11243     siemens)
11244       need_lib_prefix=no
11245       ;;
11246     motorola)
11247       need_lib_prefix=no
11248       need_version=no
11249       shlibpath_overrides_runpath=no
11250       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11251       ;;
11252   esac
11253   ;;
11254
11255 sysv4*MP*)
11256   if test -d /usr/nec ;then
11257     version_type=linux
11258     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11259     soname_spec='$libname${shared_ext}.$major'
11260     shlibpath_var=LD_LIBRARY_PATH
11261   fi
11262   ;;
11263
11264 uts4*)
11265   version_type=linux
11266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267   soname_spec='${libname}${release}${shared_ext}$major'
11268   shlibpath_var=LD_LIBRARY_PATH
11269   ;;
11270
11271 *)
11272   dynamic_linker=no
11273   ;;
11274 esac
11275 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11276 echo "${ECHO_T}$dynamic_linker" >&6
11277 test "$dynamic_linker" = no && can_build_shared=no
11278
11279 if test "x$enable_dlopen" != xyes; then
11280   enable_dlopen=unknown
11281   enable_dlopen_self=unknown
11282   enable_dlopen_self_static=unknown
11283 else
11284   lt_cv_dlopen=no
11285   lt_cv_dlopen_libs=
11286
11287   case $host_os in
11288   beos*)
11289     lt_cv_dlopen="load_add_on"
11290     lt_cv_dlopen_libs=
11291     lt_cv_dlopen_self=yes
11292     ;;
11293
11294   mingw* | pw32*)
11295     lt_cv_dlopen="LoadLibrary"
11296     lt_cv_dlopen_libs=
11297    ;;
11298
11299   cygwin*)
11300     lt_cv_dlopen="dlopen"
11301     lt_cv_dlopen_libs=
11302    ;;
11303
11304   darwin*)
11305   # if libdl is installed we need to link against it
11306     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11307 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11308 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11309   echo $ECHO_N "(cached) $ECHO_C" >&6
11310 else
11311   ac_check_lib_save_LIBS=$LIBS
11312 LIBS="-ldl  $LIBS"
11313 cat >conftest.$ac_ext <<_ACEOF
11314 #line $LINENO "configure"
11315 /* confdefs.h.  */
11316 _ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h.  */
11320
11321 /* Override any gcc2 internal prototype to avoid an error.  */
11322 #ifdef __cplusplus
11323 extern "C"
11324 #endif
11325 /* We use char because int might match the return type of a gcc2
11326    builtin and then its argument prototype would still apply.  */
11327 char dlopen ();
11328 int
11329 main ()
11330 {
11331 dlopen ();
11332   ;
11333   return 0;
11334 }
11335 _ACEOF
11336 rm -f conftest.$ac_objext conftest$ac_exeext
11337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11338   (eval $ac_link) 2>&5
11339   ac_status=$?
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); } &&
11342          { ac_try='test -s conftest$ac_exeext'
11343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344   (eval $ac_try) 2>&5
11345   ac_status=$?
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); }; }; then
11348   ac_cv_lib_dl_dlopen=yes
11349 else
11350   echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11352
11353 ac_cv_lib_dl_dlopen=no
11354 fi
11355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11356 LIBS=$ac_check_lib_save_LIBS
11357 fi
11358 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11359 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11360 if test $ac_cv_lib_dl_dlopen = yes; then
11361   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11362 else
11363
11364     lt_cv_dlopen="dyld"
11365     lt_cv_dlopen_libs=
11366     lt_cv_dlopen_self=yes
11367
11368 fi
11369
11370    ;;
11371
11372   *)
11373     echo "$as_me:$LINENO: checking for shl_load" >&5
11374 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11375 if test "${ac_cv_func_shl_load+set}" = set; then
11376   echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378   cat >conftest.$ac_ext <<_ACEOF
11379 #line $LINENO "configure"
11380 /* confdefs.h.  */
11381 _ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h.  */
11385 /* System header to define __stub macros and hopefully few prototypes,
11386     which can conflict with char shl_load (); below.
11387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11388     <limits.h> exists even on freestanding compilers.  */
11389 #ifdef __STDC__
11390 # include <limits.h>
11391 #else
11392 # include <assert.h>
11393 #endif
11394 /* Override any gcc2 internal prototype to avoid an error.  */
11395 #ifdef __cplusplus
11396 extern "C"
11397 {
11398 #endif
11399 /* We use char because int might match the return type of a gcc2
11400    builtin and then its argument prototype would still apply.  */
11401 char shl_load ();
11402 /* The GNU C library defines this for functions which it implements
11403     to always fail with ENOSYS.  Some functions are actually named
11404     something starting with __ and the normal name is an alias.  */
11405 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11406 choke me
11407 #else
11408 char (*f) () = shl_load;
11409 #endif
11410 #ifdef __cplusplus
11411 }
11412 #endif
11413
11414 int
11415 main ()
11416 {
11417 return f != shl_load;
11418   ;
11419   return 0;
11420 }
11421 _ACEOF
11422 rm -f conftest.$ac_objext conftest$ac_exeext
11423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11424   (eval $ac_link) 2>&5
11425   ac_status=$?
11426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427   (exit $ac_status); } &&
11428          { ac_try='test -s conftest$ac_exeext'
11429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430   (eval $ac_try) 2>&5
11431   ac_status=$?
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); }; }; then
11434   ac_cv_func_shl_load=yes
11435 else
11436   echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11438
11439 ac_cv_func_shl_load=no
11440 fi
11441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11442 fi
11443 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11444 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11445 if test $ac_cv_func_shl_load = yes; then
11446   lt_cv_dlopen="shl_load"
11447 else
11448   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11449 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11450 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11451   echo $ECHO_N "(cached) $ECHO_C" >&6
11452 else
11453   ac_check_lib_save_LIBS=$LIBS
11454 LIBS="-ldld  $LIBS"
11455 cat >conftest.$ac_ext <<_ACEOF
11456 #line $LINENO "configure"
11457 /* confdefs.h.  */
11458 _ACEOF
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>conftest.$ac_ext <<_ACEOF
11461 /* end confdefs.h.  */
11462
11463 /* Override any gcc2 internal prototype to avoid an error.  */
11464 #ifdef __cplusplus
11465 extern "C"
11466 #endif
11467 /* We use char because int might match the return type of a gcc2
11468    builtin and then its argument prototype would still apply.  */
11469 char shl_load ();
11470 int
11471 main ()
11472 {
11473 shl_load ();
11474   ;
11475   return 0;
11476 }
11477 _ACEOF
11478 rm -f conftest.$ac_objext conftest$ac_exeext
11479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11480   (eval $ac_link) 2>&5
11481   ac_status=$?
11482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483   (exit $ac_status); } &&
11484          { ac_try='test -s conftest$ac_exeext'
11485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486   (eval $ac_try) 2>&5
11487   ac_status=$?
11488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489   (exit $ac_status); }; }; then
11490   ac_cv_lib_dld_shl_load=yes
11491 else
11492   echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11494
11495 ac_cv_lib_dld_shl_load=no
11496 fi
11497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11498 LIBS=$ac_check_lib_save_LIBS
11499 fi
11500 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11501 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11502 if test $ac_cv_lib_dld_shl_load = yes; then
11503   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11504 else
11505   echo "$as_me:$LINENO: checking for dlopen" >&5
11506 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11507 if test "${ac_cv_func_dlopen+set}" = set; then
11508   echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510   cat >conftest.$ac_ext <<_ACEOF
11511 #line $LINENO "configure"
11512 /* confdefs.h.  */
11513 _ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h.  */
11517 /* System header to define __stub macros and hopefully few prototypes,
11518     which can conflict with char dlopen (); below.
11519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11520     <limits.h> exists even on freestanding compilers.  */
11521 #ifdef __STDC__
11522 # include <limits.h>
11523 #else
11524 # include <assert.h>
11525 #endif
11526 /* Override any gcc2 internal prototype to avoid an error.  */
11527 #ifdef __cplusplus
11528 extern "C"
11529 {
11530 #endif
11531 /* We use char because int might match the return type of a gcc2
11532    builtin and then its argument prototype would still apply.  */
11533 char dlopen ();
11534 /* The GNU C library defines this for functions which it implements
11535     to always fail with ENOSYS.  Some functions are actually named
11536     something starting with __ and the normal name is an alias.  */
11537 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11538 choke me
11539 #else
11540 char (*f) () = dlopen;
11541 #endif
11542 #ifdef __cplusplus
11543 }
11544 #endif
11545
11546 int
11547 main ()
11548 {
11549 return f != dlopen;
11550   ;
11551   return 0;
11552 }
11553 _ACEOF
11554 rm -f conftest.$ac_objext conftest$ac_exeext
11555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11556   (eval $ac_link) 2>&5
11557   ac_status=$?
11558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); } &&
11560          { ac_try='test -s conftest$ac_exeext'
11561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562   (eval $ac_try) 2>&5
11563   ac_status=$?
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); }; }; then
11566   ac_cv_func_dlopen=yes
11567 else
11568   echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11570
11571 ac_cv_func_dlopen=no
11572 fi
11573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11574 fi
11575 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11576 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11577 if test $ac_cv_func_dlopen = yes; then
11578   lt_cv_dlopen="dlopen"
11579 else
11580   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11581 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11582 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11583   echo $ECHO_N "(cached) $ECHO_C" >&6
11584 else
11585   ac_check_lib_save_LIBS=$LIBS
11586 LIBS="-ldl  $LIBS"
11587 cat >conftest.$ac_ext <<_ACEOF
11588 #line $LINENO "configure"
11589 /* confdefs.h.  */
11590 _ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h.  */
11594
11595 /* Override any gcc2 internal prototype to avoid an error.  */
11596 #ifdef __cplusplus
11597 extern "C"
11598 #endif
11599 /* We use char because int might match the return type of a gcc2
11600    builtin and then its argument prototype would still apply.  */
11601 char dlopen ();
11602 int
11603 main ()
11604 {
11605 dlopen ();
11606   ;
11607   return 0;
11608 }
11609 _ACEOF
11610 rm -f conftest.$ac_objext conftest$ac_exeext
11611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11612   (eval $ac_link) 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); } &&
11616          { ac_try='test -s conftest$ac_exeext'
11617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618   (eval $ac_try) 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); }; }; then
11622   ac_cv_lib_dl_dlopen=yes
11623 else
11624   echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11626
11627 ac_cv_lib_dl_dlopen=no
11628 fi
11629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11630 LIBS=$ac_check_lib_save_LIBS
11631 fi
11632 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11633 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11634 if test $ac_cv_lib_dl_dlopen = yes; then
11635   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11636 else
11637   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11638 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11639 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11640   echo $ECHO_N "(cached) $ECHO_C" >&6
11641 else
11642   ac_check_lib_save_LIBS=$LIBS
11643 LIBS="-lsvld  $LIBS"
11644 cat >conftest.$ac_ext <<_ACEOF
11645 #line $LINENO "configure"
11646 /* confdefs.h.  */
11647 _ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h.  */
11651
11652 /* Override any gcc2 internal prototype to avoid an error.  */
11653 #ifdef __cplusplus
11654 extern "C"
11655 #endif
11656 /* We use char because int might match the return type of a gcc2
11657    builtin and then its argument prototype would still apply.  */
11658 char dlopen ();
11659 int
11660 main ()
11661 {
11662 dlopen ();
11663   ;
11664   return 0;
11665 }
11666 _ACEOF
11667 rm -f conftest.$ac_objext conftest$ac_exeext
11668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11669   (eval $ac_link) 2>&5
11670   ac_status=$?
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); } &&
11673          { ac_try='test -s conftest$ac_exeext'
11674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675   (eval $ac_try) 2>&5
11676   ac_status=$?
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); }; }; then
11679   ac_cv_lib_svld_dlopen=yes
11680 else
11681   echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11683
11684 ac_cv_lib_svld_dlopen=no
11685 fi
11686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11687 LIBS=$ac_check_lib_save_LIBS
11688 fi
11689 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11690 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11691 if test $ac_cv_lib_svld_dlopen = yes; then
11692   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11693 else
11694   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11695 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11696 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11697   echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699   ac_check_lib_save_LIBS=$LIBS
11700 LIBS="-ldld  $LIBS"
11701 cat >conftest.$ac_ext <<_ACEOF
11702 #line $LINENO "configure"
11703 /* confdefs.h.  */
11704 _ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h.  */
11708
11709 /* Override any gcc2 internal prototype to avoid an error.  */
11710 #ifdef __cplusplus
11711 extern "C"
11712 #endif
11713 /* We use char because int might match the return type of a gcc2
11714    builtin and then its argument prototype would still apply.  */
11715 char dld_link ();
11716 int
11717 main ()
11718 {
11719 dld_link ();
11720   ;
11721   return 0;
11722 }
11723 _ACEOF
11724 rm -f conftest.$ac_objext conftest$ac_exeext
11725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11726   (eval $ac_link) 2>&5
11727   ac_status=$?
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); } &&
11730          { ac_try='test -s conftest$ac_exeext'
11731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732   (eval $ac_try) 2>&5
11733   ac_status=$?
11734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735   (exit $ac_status); }; }; then
11736   ac_cv_lib_dld_dld_link=yes
11737 else
11738   echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11740
11741 ac_cv_lib_dld_dld_link=no
11742 fi
11743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11744 LIBS=$ac_check_lib_save_LIBS
11745 fi
11746 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11747 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11748 if test $ac_cv_lib_dld_dld_link = yes; then
11749   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11750 fi
11751
11752
11753 fi
11754
11755
11756 fi
11757
11758
11759 fi
11760
11761
11762 fi
11763
11764
11765 fi
11766
11767     ;;
11768   esac
11769
11770   if test "x$lt_cv_dlopen" != xno; then
11771     enable_dlopen=yes
11772   else
11773     enable_dlopen=no
11774   fi
11775
11776   case $lt_cv_dlopen in
11777   dlopen)
11778     save_CPPFLAGS="$CPPFLAGS"
11779     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11780
11781     save_LDFLAGS="$LDFLAGS"
11782     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11783
11784     save_LIBS="$LIBS"
11785     LIBS="$lt_cv_dlopen_libs $LIBS"
11786
11787     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11788 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11789 if test "${lt_cv_dlopen_self+set}" = set; then
11790   echo $ECHO_N "(cached) $ECHO_C" >&6
11791 else
11792           if test "$cross_compiling" = yes; then :
11793   lt_cv_dlopen_self=cross
11794 else
11795   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11796   lt_status=$lt_dlunknown
11797   cat > conftest.$ac_ext <<EOF
11798 #line 11798 "configure"
11799 #include "confdefs.h"
11800
11801 #if HAVE_DLFCN_H
11802 #include <dlfcn.h>
11803 #endif
11804
11805 #include <stdio.h>
11806
11807 #ifdef RTLD_GLOBAL
11808 #  define LT_DLGLOBAL           RTLD_GLOBAL
11809 #else
11810 #  ifdef DL_GLOBAL
11811 #    define LT_DLGLOBAL         DL_GLOBAL
11812 #  else
11813 #    define LT_DLGLOBAL         0
11814 #  endif
11815 #endif
11816
11817 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11818    find out it does not work in some platform. */
11819 #ifndef LT_DLLAZY_OR_NOW
11820 #  ifdef RTLD_LAZY
11821 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11822 #  else
11823 #    ifdef DL_LAZY
11824 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11825 #    else
11826 #      ifdef RTLD_NOW
11827 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11828 #      else
11829 #        ifdef DL_NOW
11830 #          define LT_DLLAZY_OR_NOW      DL_NOW
11831 #        else
11832 #          define LT_DLLAZY_OR_NOW      0
11833 #        endif
11834 #      endif
11835 #    endif
11836 #  endif
11837 #endif
11838
11839 #ifdef __cplusplus
11840 extern "C" void exit (int);
11841 #endif
11842
11843 void fnord() { int i=42;}
11844 int main ()
11845 {
11846   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11847   int status = $lt_dlunknown;
11848
11849   if (self)
11850     {
11851       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11852       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11853       /* dlclose (self); */
11854     }
11855
11856     exit (status);
11857 }
11858 EOF
11859   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11860   (eval $ac_link) 2>&5
11861   ac_status=$?
11862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11864     (./conftest; exit; ) 2>/dev/null
11865     lt_status=$?
11866     case x$lt_status in
11867       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11868       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11869       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11870     esac
11871   else :
11872     # compilation failed
11873     lt_cv_dlopen_self=no
11874   fi
11875 fi
11876 rm -fr conftest*
11877
11878
11879 fi
11880 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11881 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11882
11883     if test "x$lt_cv_dlopen_self" = xyes; then
11884       LDFLAGS="$LDFLAGS $link_static_flag"
11885       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11886 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11887 if test "${lt_cv_dlopen_self_static+set}" = set; then
11888   echo $ECHO_N "(cached) $ECHO_C" >&6
11889 else
11890           if test "$cross_compiling" = yes; then :
11891   lt_cv_dlopen_self_static=cross
11892 else
11893   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11894   lt_status=$lt_dlunknown
11895   cat > conftest.$ac_ext <<EOF
11896 #line 11896 "configure"
11897 #include "confdefs.h"
11898
11899 #if HAVE_DLFCN_H
11900 #include <dlfcn.h>
11901 #endif
11902
11903 #include <stdio.h>
11904
11905 #ifdef RTLD_GLOBAL
11906 #  define LT_DLGLOBAL           RTLD_GLOBAL
11907 #else
11908 #  ifdef DL_GLOBAL
11909 #    define LT_DLGLOBAL         DL_GLOBAL
11910 #  else
11911 #    define LT_DLGLOBAL         0
11912 #  endif
11913 #endif
11914
11915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11916    find out it does not work in some platform. */
11917 #ifndef LT_DLLAZY_OR_NOW
11918 #  ifdef RTLD_LAZY
11919 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11920 #  else
11921 #    ifdef DL_LAZY
11922 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11923 #    else
11924 #      ifdef RTLD_NOW
11925 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11926 #      else
11927 #        ifdef DL_NOW
11928 #          define LT_DLLAZY_OR_NOW      DL_NOW
11929 #        else
11930 #          define LT_DLLAZY_OR_NOW      0
11931 #        endif
11932 #      endif
11933 #    endif
11934 #  endif
11935 #endif
11936
11937 #ifdef __cplusplus
11938 extern "C" void exit (int);
11939 #endif
11940
11941 void fnord() { int i=42;}
11942 int main ()
11943 {
11944   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11945   int status = $lt_dlunknown;
11946
11947   if (self)
11948     {
11949       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11950       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11951       /* dlclose (self); */
11952     }
11953
11954     exit (status);
11955 }
11956 EOF
11957   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11958   (eval $ac_link) 2>&5
11959   ac_status=$?
11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11962     (./conftest; exit; ) 2>/dev/null
11963     lt_status=$?
11964     case x$lt_status in
11965       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11966       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11967       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11968     esac
11969   else :
11970     # compilation failed
11971     lt_cv_dlopen_self_static=no
11972   fi
11973 fi
11974 rm -fr conftest*
11975
11976
11977 fi
11978 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11979 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11980     fi
11981
11982     CPPFLAGS="$save_CPPFLAGS"
11983     LDFLAGS="$save_LDFLAGS"
11984     LIBS="$save_LIBS"
11985     ;;
11986   esac
11987
11988   case $lt_cv_dlopen_self in
11989   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11990   *) enable_dlopen_self=unknown ;;
11991   esac
11992
11993   case $lt_cv_dlopen_self_static in
11994   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11995   *) enable_dlopen_self_static=unknown ;;
11996   esac
11997 fi
11998
11999
12000 # The else clause should only fire when bootstrapping the
12001 # libtool distribution, otherwise you forgot to ship ltmain.sh
12002 # with your package, and you will get complaints that there are
12003 # no rules to generate ltmain.sh.
12004 if test -f "$ltmain"; then
12005   # See if we are running on zsh, and set the options which allow our commands through
12006   # without removal of \ escapes.
12007   if test -n "${ZSH_VERSION+set}" ; then
12008     setopt NO_GLOB_SUBST
12009   fi
12010   # Now quote all the things that may contain metacharacters while being
12011   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12012   # variables and quote the copies for generation of the libtool script.
12013   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12014     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12015     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12016     deplibs_check_method reload_flag reload_cmds need_locks \
12017     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12018     lt_cv_sys_global_symbol_to_c_name_address \
12019     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12020     old_postinstall_cmds old_postuninstall_cmds \
12021     compiler_CXX \
12022     CC_CXX \
12023     LD_CXX \
12024     lt_prog_compiler_wl_CXX \
12025     lt_prog_compiler_pic_CXX \
12026     lt_prog_compiler_static_CXX \
12027     lt_prog_compiler_no_builtin_flag_CXX \
12028     export_dynamic_flag_spec_CXX \
12029     thread_safe_flag_spec_CXX \
12030     whole_archive_flag_spec_CXX \
12031     enable_shared_with_static_runtimes_CXX \
12032     old_archive_cmds_CXX \
12033     old_archive_from_new_cmds_CXX \
12034     predep_objects_CXX \
12035     postdep_objects_CXX \
12036     predeps_CXX \
12037     postdeps_CXX \
12038     compiler_lib_search_path_CXX \
12039     archive_cmds_CXX \
12040     archive_expsym_cmds_CXX \
12041     postinstall_cmds_CXX \
12042     postuninstall_cmds_CXX \
12043     old_archive_from_expsyms_cmds_CXX \
12044     allow_undefined_flag_CXX \
12045     no_undefined_flag_CXX \
12046     export_symbols_cmds_CXX \
12047     hardcode_libdir_flag_spec_CXX \
12048     hardcode_libdir_flag_spec_ld_CXX \
12049     hardcode_libdir_separator_CXX \
12050     hardcode_automatic_CXX \
12051     module_cmds_CXX \
12052     module_expsym_cmds_CXX \
12053     lt_cv_prog_compiler_c_o_CXX \
12054     exclude_expsyms_CXX \
12055     include_expsyms_CXX; do
12056
12057     case $var in
12058     old_archive_cmds_CXX | \
12059     old_archive_from_new_cmds_CXX | \
12060     archive_cmds_CXX | \
12061     archive_expsym_cmds_CXX | \
12062     module_cmds_CXX | \
12063     module_expsym_cmds_CXX | \
12064     old_archive_from_expsyms_cmds_CXX | \
12065     export_symbols_cmds_CXX | \
12066     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12067     postinstall_cmds | postuninstall_cmds | \
12068     old_postinstall_cmds | old_postuninstall_cmds | \
12069     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12070       # Double-quote double-evaled strings.
12071       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12072       ;;
12073     *)
12074       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12075       ;;
12076     esac
12077   done
12078
12079   case $lt_echo in
12080   *'\$0 --fallback-echo"')
12081     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12082     ;;
12083   esac
12084
12085 cfgfile="$ofile"
12086
12087   cat <<__EOF__ >> "$cfgfile"
12088 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12089
12090 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12091
12092 # Shell to use when invoking shell scripts.
12093 SHELL=$lt_SHELL
12094
12095 # Whether or not to build shared libraries.
12096 build_libtool_libs=$enable_shared
12097
12098 # Whether or not to build static libraries.
12099 build_old_libs=$enable_static
12100
12101 # Whether or not to add -lc for building shared libraries.
12102 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12103
12104 # Whether or not to disallow shared libs when runtime libs are static
12105 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12106
12107 # Whether or not to optimize for fast installation.
12108 fast_install=$enable_fast_install
12109
12110 # The host system.
12111 host_alias=$host_alias
12112 host=$host
12113
12114 # An echo program that does not interpret backslashes.
12115 echo=$lt_echo
12116
12117 # The archiver.
12118 AR=$lt_AR
12119 AR_FLAGS=$lt_AR_FLAGS
12120
12121 # A C compiler.
12122 LTCC=$lt_LTCC
12123
12124 # A language-specific compiler.
12125 CC=$lt_compiler_CXX
12126
12127 # Is the compiler the GNU C compiler?
12128 with_gcc=$GCC_CXX
12129
12130 # An ERE matcher.
12131 EGREP=$lt_EGREP
12132
12133 # The linker used to build libraries.
12134 LD=$lt_LD_CXX
12135
12136 # Whether we need hard or soft links.
12137 LN_S=$lt_LN_S
12138
12139 # A BSD-compatible nm program.
12140 NM=$lt_NM
12141
12142 # A symbol stripping program
12143 STRIP=$STRIP
12144
12145 # Used to examine libraries when file_magic_cmd begins "file"
12146 MAGIC_CMD=$MAGIC_CMD
12147
12148 # Used on cygwin: DLL creation program.
12149 DLLTOOL="$DLLTOOL"
12150
12151 # Used on cygwin: object dumper.
12152 OBJDUMP="$OBJDUMP"
12153
12154 # Used on cygwin: assembler.
12155 AS="$AS"
12156
12157 # The name of the directory that contains temporary libtool files.
12158 objdir=$objdir
12159
12160 # How to create reloadable object files.
12161 reload_flag=$lt_reload_flag
12162 reload_cmds=$lt_reload_cmds
12163
12164 # How to pass a linker flag through the compiler.
12165 wl=$lt_lt_prog_compiler_wl_CXX
12166
12167 # Object file suffix (normally "o").
12168 objext="$ac_objext"
12169
12170 # Old archive suffix (normally "a").
12171 libext="$libext"
12172
12173 # Shared library suffix (normally ".so").
12174 shrext='$shrext'
12175
12176 # Executable file suffix (normally "").
12177 exeext="$exeext"
12178
12179 # Additional compiler flags for building library objects.
12180 pic_flag=$lt_lt_prog_compiler_pic_CXX
12181 pic_mode=$pic_mode
12182
12183 # What is the maximum length of a command?
12184 max_cmd_len=$lt_cv_sys_max_cmd_len
12185
12186 # Does compiler simultaneously support -c and -o options?
12187 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12188
12189 # Must we lock files when doing compilation ?
12190 need_locks=$lt_need_locks
12191
12192 # Do we need the lib prefix for modules?
12193 need_lib_prefix=$need_lib_prefix
12194
12195 # Do we need a version for libraries?
12196 need_version=$need_version
12197
12198 # Whether dlopen is supported.
12199 dlopen_support=$enable_dlopen
12200
12201 # Whether dlopen of programs is supported.
12202 dlopen_self=$enable_dlopen_self
12203
12204 # Whether dlopen of statically linked programs is supported.
12205 dlopen_self_static=$enable_dlopen_self_static
12206
12207 # Compiler flag to prevent dynamic linking.
12208 link_static_flag=$lt_lt_prog_compiler_static_CXX
12209
12210 # Compiler flag to turn off builtin functions.
12211 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12212
12213 # Compiler flag to allow reflexive dlopens.
12214 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12215
12216 # Compiler flag to generate shared objects directly from archives.
12217 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12218
12219 # Compiler flag to generate thread-safe objects.
12220 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12221
12222 # Library versioning type.
12223 version_type=$version_type
12224
12225 # Format of library name prefix.
12226 libname_spec=$lt_libname_spec
12227
12228 # List of archive names.  First name is the real one, the rest are links.
12229 # The last name is the one that the linker finds with -lNAME.
12230 library_names_spec=$lt_library_names_spec
12231
12232 # The coded name of the library, if different from the real name.
12233 soname_spec=$lt_soname_spec
12234
12235 # Commands used to build and install an old-style archive.
12236 RANLIB=$lt_RANLIB
12237 old_archive_cmds=$lt_old_archive_cmds_CXX
12238 old_postinstall_cmds=$lt_old_postinstall_cmds
12239 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12240
12241 # Create an old-style archive from a shared archive.
12242 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12243
12244 # Create a temporary old-style archive to link instead of a shared archive.
12245 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12246
12247 # Commands used to build and install a shared archive.
12248 archive_cmds=$lt_archive_cmds_CXX
12249 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12250 postinstall_cmds=$lt_postinstall_cmds
12251 postuninstall_cmds=$lt_postuninstall_cmds
12252
12253 # Commands used to build a loadable module (assumed same as above if empty)
12254 module_cmds=$lt_module_cmds_CXX
12255 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12256
12257 # Commands to strip libraries.
12258 old_striplib=$lt_old_striplib
12259 striplib=$lt_striplib
12260
12261 # Dependencies to place before the objects being linked to create a
12262 # shared library.
12263 predep_objects=$lt_predep_objects_CXX
12264
12265 # Dependencies to place after the objects being linked to create a
12266 # shared library.
12267 postdep_objects=$lt_postdep_objects_CXX
12268
12269 # Dependencies to place before the objects being linked to create a
12270 # shared library.
12271 predeps=$lt_predeps_CXX
12272
12273 # Dependencies to place after the objects being linked to create a
12274 # shared library.
12275 postdeps=$lt_postdeps_CXX
12276
12277 # The library search path used internally by the compiler when linking
12278 # a shared library.
12279 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12280
12281 # Method to check whether dependent libraries are shared objects.
12282 deplibs_check_method=$lt_deplibs_check_method
12283
12284 # Command to use when deplibs_check_method == file_magic.
12285 file_magic_cmd=$lt_file_magic_cmd
12286
12287 # Flag that allows shared libraries with undefined symbols to be built.
12288 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12289
12290 # Flag that forces no undefined symbols.
12291 no_undefined_flag=$lt_no_undefined_flag_CXX
12292
12293 # Commands used to finish a libtool library installation in a directory.
12294 finish_cmds=$lt_finish_cmds
12295
12296 # Same as above, but a single script fragment to be evaled but not shown.
12297 finish_eval=$lt_finish_eval
12298
12299 # Take the output of nm and produce a listing of raw symbols and C names.
12300 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12301
12302 # Transform the output of nm in a proper C declaration
12303 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12304
12305 # Transform the output of nm in a C name address pair
12306 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12307
12308 # This is the shared library runtime path variable.
12309 runpath_var=$runpath_var
12310
12311 # This is the shared library path variable.
12312 shlibpath_var=$shlibpath_var
12313
12314 # Is shlibpath searched before the hard-coded library search path?
12315 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12316
12317 # How to hardcode a shared library path into an executable.
12318 hardcode_action=$hardcode_action_CXX
12319
12320 # Whether we should hardcode library paths into libraries.
12321 hardcode_into_libs=$hardcode_into_libs
12322
12323 # Flag to hardcode \$libdir into a binary during linking.
12324 # This must work even if \$libdir does not exist.
12325 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12326
12327 # If ld is used when linking, flag to hardcode \$libdir into
12328 # a binary during linking. This must work even if \$libdir does
12329 # not exist.
12330 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12331
12332 # Whether we need a single -rpath flag with a separated argument.
12333 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12334
12335 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12336 # resulting binary.
12337 hardcode_direct=$hardcode_direct_CXX
12338
12339 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12340 # resulting binary.
12341 hardcode_minus_L=$hardcode_minus_L_CXX
12342
12343 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12344 # the resulting binary.
12345 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12346
12347 # Set to yes if building a shared library automatically hardcodes DIR into the library
12348 # and all subsequent libraries and executables linked against it.
12349 hardcode_automatic=$hardcode_automatic_CXX
12350
12351 # Variables whose values should be saved in libtool wrapper scripts and
12352 # restored at relink time.
12353 variables_saved_for_relink="$variables_saved_for_relink"
12354
12355 # Whether libtool must link a program against all its dependency libraries.
12356 link_all_deplibs=$link_all_deplibs_CXX
12357
12358 # Compile-time system search path for libraries
12359 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12360
12361 # Run-time system search path for libraries
12362 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12363
12364 # Fix the shell variable \$srcfile for the compiler.
12365 fix_srcfile_path="$fix_srcfile_path_CXX"
12366
12367 # Set to yes if exported symbols are required.
12368 always_export_symbols=$always_export_symbols_CXX
12369
12370 # The commands to list exported symbols.
12371 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12372
12373 # The commands to extract the exported symbol list from a shared archive.
12374 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12375
12376 # Symbols that should not be listed in the preloaded symbols.
12377 exclude_expsyms=$lt_exclude_expsyms_CXX
12378
12379 # Symbols that must always be exported.
12380 include_expsyms=$lt_include_expsyms_CXX
12381
12382 # ### END LIBTOOL TAG CONFIG: $tagname
12383
12384 __EOF__
12385
12386
12387 else
12388   # If there is no Makefile yet, we rely on a make rule to execute
12389   # `config.status --recheck' to rerun these tests and create the
12390   # libtool script then.
12391   test -f Makefile && make "$ltmain"
12392 fi
12393
12394
12395 ac_ext=c
12396 ac_cpp='$CPP $CPPFLAGS'
12397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12400
12401 CC=$lt_save_CC
12402 LDCXX=$LD
12403 LD=$lt_save_LD
12404 GCC=$lt_save_GCC
12405 with_gnu_ldcxx=$with_gnu_ld
12406 with_gnu_ld=$lt_save_with_gnu_ld
12407 lt_cv_path_LDCXX=$lt_cv_path_LD
12408 lt_cv_path_LD=$lt_save_path_LD
12409 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12410 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12411
12412         else
12413           tagname=""
12414         fi
12415         ;;
12416
12417       F77)
12418         if test -n "$F77" && test "X$F77" != "Xno"; then
12419
12420 ac_ext=f
12421 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12422 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12423 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12424
12425
12426 archive_cmds_need_lc_F77=no
12427 allow_undefined_flag_F77=
12428 always_export_symbols_F77=no
12429 archive_expsym_cmds_F77=
12430 export_dynamic_flag_spec_F77=
12431 hardcode_direct_F77=no
12432 hardcode_libdir_flag_spec_F77=
12433 hardcode_libdir_flag_spec_ld_F77=
12434 hardcode_libdir_separator_F77=
12435 hardcode_minus_L_F77=no
12436 hardcode_automatic_F77=no
12437 module_cmds_F77=
12438 module_expsym_cmds_F77=
12439 link_all_deplibs_F77=unknown
12440 old_archive_cmds_F77=$old_archive_cmds
12441 no_undefined_flag_F77=
12442 whole_archive_flag_spec_F77=
12443 enable_shared_with_static_runtimes_F77=no
12444
12445 # Source file extension for f77 test sources.
12446 ac_ext=f
12447
12448 # Object file extension for compiled f77 test sources.
12449 objext=o
12450 objext_F77=$objext
12451
12452 # Code to be used in simple compile tests
12453 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12454
12455 # Code to be used in simple link tests
12456 lt_simple_link_test_code="      program t\n      end\n"
12457
12458 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12459
12460 # If no C compiler was specified, use CC.
12461 LTCC=${LTCC-"$CC"}
12462
12463 # Allow CC to be a program name with arguments.
12464 compiler=$CC
12465
12466
12467 # Allow CC to be a program name with arguments.
12468 lt_save_CC="$CC"
12469 CC=${F77-"f77"}
12470 compiler=$CC
12471 compiler_F77=$CC
12472 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12473
12474 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12475 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12476 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12477 echo "${ECHO_T}$can_build_shared" >&6
12478
12479 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12480 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12481 test "$can_build_shared" = "no" && enable_shared=no
12482
12483 # On AIX, shared libraries and static libraries use the same namespace, and
12484 # are all built from PIC.
12485 case "$host_os" in
12486 aix3*)
12487   test "$enable_shared" = yes && enable_static=no
12488   if test -n "$RANLIB"; then
12489     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12490     postinstall_cmds='$RANLIB $lib'
12491   fi
12492   ;;
12493 aix4*)
12494   test "$enable_shared" = yes && enable_static=no
12495   ;;
12496 esac
12497 echo "$as_me:$LINENO: result: $enable_shared" >&5
12498 echo "${ECHO_T}$enable_shared" >&6
12499
12500 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12501 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12502 # Make sure either enable_shared or enable_static is yes.
12503 test "$enable_shared" = yes || enable_static=yes
12504 echo "$as_me:$LINENO: result: $enable_static" >&5
12505 echo "${ECHO_T}$enable_static" >&6
12506
12507 test "$ld_shlibs_F77" = no && can_build_shared=no
12508
12509 GCC_F77="$G77"
12510 LD_F77="$LD"
12511
12512 lt_prog_compiler_wl_F77=
12513 lt_prog_compiler_pic_F77=
12514 lt_prog_compiler_static_F77=
12515
12516 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12517 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12518
12519   if test "$GCC" = yes; then
12520     lt_prog_compiler_wl_F77='-Wl,'
12521     lt_prog_compiler_static_F77='-static'
12522
12523     case $host_os in
12524       aix*)
12525       # All AIX code is PIC.
12526       if test "$host_cpu" = ia64; then
12527         # AIX 5 now supports IA64 processor
12528         lt_prog_compiler_static_F77='-Bstatic'
12529       fi
12530       ;;
12531
12532     amigaos*)
12533       # FIXME: we need at least 68020 code to build shared libraries, but
12534       # adding the `-m68020' flag to GCC prevents building anything better,
12535       # like `-m68040'.
12536       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12537       ;;
12538
12539     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12540       # PIC is the default for these OSes.
12541       ;;
12542
12543     mingw* | pw32* | os2*)
12544       # This hack is so that the source file can tell whether it is being
12545       # built for inclusion in a dll (and should export symbols for example).
12546       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12547       ;;
12548
12549     darwin* | rhapsody*)
12550       # PIC is the default on this platform
12551       # Common symbols not allowed in MH_DYLIB files
12552       lt_prog_compiler_pic_F77='-fno-common'
12553       ;;
12554
12555     msdosdjgpp*)
12556       # Just because we use GCC doesn't mean we suddenly get shared libraries
12557       # on systems that don't support them.
12558       lt_prog_compiler_can_build_shared_F77=no
12559       enable_shared=no
12560       ;;
12561
12562     sysv4*MP*)
12563       if test -d /usr/nec; then
12564         lt_prog_compiler_pic_F77=-Kconform_pic
12565       fi
12566       ;;
12567
12568     hpux*)
12569       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12570       # not for PA HP-UX.
12571       case "$host_cpu" in
12572       hppa*64*|ia64*)
12573         # +Z the default
12574         ;;
12575       *)
12576         lt_prog_compiler_pic_F77='-fPIC'
12577         ;;
12578       esac
12579       ;;
12580
12581     *)
12582       lt_prog_compiler_pic_F77='-fPIC'
12583       ;;
12584     esac
12585   else
12586     # PORTME Check for flag to pass linker flags through the system compiler.
12587     case $host_os in
12588     aix*)
12589       lt_prog_compiler_wl_F77='-Wl,'
12590       if test "$host_cpu" = ia64; then
12591         # AIX 5 now supports IA64 processor
12592         lt_prog_compiler_static_F77='-Bstatic'
12593       else
12594         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12595       fi
12596       ;;
12597
12598     mingw* | pw32* | os2*)
12599       # This hack is so that the source file can tell whether it is being
12600       # built for inclusion in a dll (and should export symbols for example).
12601       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12602       ;;
12603
12604     hpux9* | hpux10* | hpux11*)
12605       lt_prog_compiler_wl_F77='-Wl,'
12606       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12607       # not for PA HP-UX.
12608       case "$host_cpu" in
12609       hppa*64*|ia64*)
12610         # +Z the default
12611         ;;
12612       *)
12613         lt_prog_compiler_pic_F77='+Z'
12614         ;;
12615       esac
12616       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12617       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12618       ;;
12619
12620     irix5* | irix6* | nonstopux*)
12621       lt_prog_compiler_wl_F77='-Wl,'
12622       # PIC (with -KPIC) is the default.
12623       lt_prog_compiler_static_F77='-non_shared'
12624       ;;
12625
12626     newsos6)
12627       lt_prog_compiler_pic_F77='-KPIC'
12628       lt_prog_compiler_static_F77='-Bstatic'
12629       ;;
12630
12631     linux*)
12632       case $CC in
12633       icc|ecc)
12634         lt_prog_compiler_wl_F77='-Wl,'
12635         lt_prog_compiler_pic_F77='-KPIC'
12636         lt_prog_compiler_static_F77='-static'
12637         ;;
12638       ccc)
12639         lt_prog_compiler_wl_F77='-Wl,'
12640         # All Alpha code is PIC.
12641         lt_prog_compiler_static_F77='-non_shared'
12642         ;;
12643       esac
12644       ;;
12645
12646     osf3* | osf4* | osf5*)
12647       lt_prog_compiler_wl_F77='-Wl,'
12648       # All OSF/1 code is PIC.
12649       lt_prog_compiler_static_F77='-non_shared'
12650       ;;
12651
12652     sco3.2v5*)
12653       lt_prog_compiler_pic_F77='-Kpic'
12654       lt_prog_compiler_static_F77='-dn'
12655       ;;
12656
12657     solaris*)
12658       lt_prog_compiler_wl_F77='-Wl,'
12659       lt_prog_compiler_pic_F77='-KPIC'
12660       lt_prog_compiler_static_F77='-Bstatic'
12661       ;;
12662
12663     sunos4*)
12664       lt_prog_compiler_wl_F77='-Qoption ld '
12665       lt_prog_compiler_pic_F77='-PIC'
12666       lt_prog_compiler_static_F77='-Bstatic'
12667       ;;
12668
12669     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12670       lt_prog_compiler_wl_F77='-Wl,'
12671       lt_prog_compiler_pic_F77='-KPIC'
12672       lt_prog_compiler_static_F77='-Bstatic'
12673       ;;
12674
12675     sysv4*MP*)
12676       if test -d /usr/nec ;then
12677         lt_prog_compiler_pic_F77='-Kconform_pic'
12678         lt_prog_compiler_static_F77='-Bstatic'
12679       fi
12680       ;;
12681
12682     uts4*)
12683       lt_prog_compiler_pic_F77='-pic'
12684       lt_prog_compiler_static_F77='-Bstatic'
12685       ;;
12686
12687     *)
12688       lt_prog_compiler_can_build_shared_F77=no
12689       ;;
12690     esac
12691   fi
12692
12693 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12694 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12695
12696 #
12697 # Check to make sure the PIC flag actually works.
12698 #
12699 if test -n "$lt_prog_compiler_pic_F77"; then
12700   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12701 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12702 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12703   echo $ECHO_N "(cached) $ECHO_C" >&6
12704 else
12705   lt_prog_compiler_pic_works_F77=no
12706   ac_outfile=conftest.$ac_objext
12707    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12708    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12709    # Insert the option either (1) after the last *FLAGS variable, or
12710    # (2) before a word containing "conftest.", or (3) at the end.
12711    # Note that $ac_compile itself does not contain backslashes and begins
12712    # with a dollar sign (not a hyphen), so the echo should work correctly.
12713    # The option is referenced via a variable to avoid confusing sed.
12714    lt_compile=`echo "$ac_compile" | $SED \
12715    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12716    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12717    -e 's:$: $lt_compiler_flag:'`
12718    (eval echo "\"\$as_me:12718: $lt_compile\"" >&5)
12719    (eval "$lt_compile" 2>conftest.err)
12720    ac_status=$?
12721    cat conftest.err >&5
12722    echo "$as_me:12722: \$? = $ac_status" >&5
12723    if (exit $ac_status) && test -s "$ac_outfile"; then
12724      # The compiler can only warn and ignore the option if not recognized
12725      # So say no if there are warnings
12726      if test ! -s conftest.err; then
12727        lt_prog_compiler_pic_works_F77=yes
12728      fi
12729    fi
12730    $rm conftest*
12731
12732 fi
12733 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12734 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12735
12736 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12737     case $lt_prog_compiler_pic_F77 in
12738      "" | " "*) ;;
12739      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12740      esac
12741 else
12742     lt_prog_compiler_pic_F77=
12743      lt_prog_compiler_can_build_shared_F77=no
12744 fi
12745
12746 fi
12747 case "$host_os" in
12748   # For platforms which do not support PIC, -DPIC is meaningless:
12749   *djgpp*)
12750     lt_prog_compiler_pic_F77=
12751     ;;
12752   *)
12753     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12754     ;;
12755 esac
12756
12757 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12758 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12759 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12760   echo $ECHO_N "(cached) $ECHO_C" >&6
12761 else
12762   lt_cv_prog_compiler_c_o_F77=no
12763    $rm -r conftest 2>/dev/null
12764    mkdir conftest
12765    cd conftest
12766    mkdir out
12767    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12768
12769    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12770    # that will create temporary files in the current directory regardless of
12771    # the output directory.  Thus, making CWD read-only will cause this test
12772    # to fail, enabling locking or at least warning the user not to do parallel
12773    # builds.
12774    chmod -w .
12775
12776    lt_compiler_flag="-o out/conftest2.$ac_objext"
12777    # Insert the option either (1) after the last *FLAGS variable, or
12778    # (2) before a word containing "conftest.", or (3) at the end.
12779    # Note that $ac_compile itself does not contain backslashes and begins
12780    # with a dollar sign (not a hyphen), so the echo should work correctly.
12781    lt_compile=`echo "$ac_compile" | $SED \
12782    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12783    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12784    -e 's:$: $lt_compiler_flag:'`
12785    (eval echo "\"\$as_me:12785: $lt_compile\"" >&5)
12786    (eval "$lt_compile" 2>out/conftest.err)
12787    ac_status=$?
12788    cat out/conftest.err >&5
12789    echo "$as_me:12789: \$? = $ac_status" >&5
12790    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12791    then
12792      # The compiler can only warn and ignore the option if not recognized
12793      # So say no if there are warnings
12794      if test ! -s out/conftest.err; then
12795        lt_cv_prog_compiler_c_o_F77=yes
12796      fi
12797    fi
12798    chmod u+w .
12799    $rm conftest* out/*
12800    rmdir out
12801    cd ..
12802    rmdir conftest
12803    $rm conftest*
12804
12805 fi
12806 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12807 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12808
12809
12810 hard_links="nottested"
12811 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12812   # do not overwrite the value of need_locks provided by the user
12813   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12814 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12815   hard_links=yes
12816   $rm conftest*
12817   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12818   touch conftest.a
12819   ln conftest.a conftest.b 2>&5 || hard_links=no
12820   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12821   echo "$as_me:$LINENO: result: $hard_links" >&5
12822 echo "${ECHO_T}$hard_links" >&6
12823   if test "$hard_links" = no; then
12824     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12825 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12826     need_locks=warn
12827   fi
12828 else
12829   need_locks=no
12830 fi
12831
12832 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12833 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12834
12835   runpath_var=
12836   allow_undefined_flag_F77=
12837   enable_shared_with_static_runtimes_F77=no
12838   archive_cmds_F77=
12839   archive_expsym_cmds_F77=
12840   old_archive_From_new_cmds_F77=
12841   old_archive_from_expsyms_cmds_F77=
12842   export_dynamic_flag_spec_F77=
12843   whole_archive_flag_spec_F77=
12844   thread_safe_flag_spec_F77=
12845   hardcode_libdir_flag_spec_F77=
12846   hardcode_libdir_flag_spec_ld_F77=
12847   hardcode_libdir_separator_F77=
12848   hardcode_direct_F77=no
12849   hardcode_minus_L_F77=no
12850   hardcode_shlibpath_var_F77=unsupported
12851   link_all_deplibs_F77=unknown
12852   hardcode_automatic_F77=no
12853   module_cmds_F77=
12854   module_expsym_cmds_F77=
12855   always_export_symbols_F77=no
12856   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12857   # include_expsyms should be a list of space-separated symbols to be *always*
12858   # included in the symbol list
12859   include_expsyms_F77=
12860   # exclude_expsyms can be an extended regexp of symbols to exclude
12861   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12862   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12863   # as well as any symbol that contains `d'.
12864   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12865   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12866   # platforms (ab)use it in PIC code, but their linkers get confused if
12867   # the symbol is explicitly referenced.  Since portable code cannot
12868   # rely on this symbol name, it's probably fine to never include it in
12869   # preloaded symbol tables.
12870   extract_expsyms_cmds=
12871
12872   case $host_os in
12873   cygwin* | mingw* | pw32*)
12874     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12875     # When not using gcc, we currently assume that we are using
12876     # Microsoft Visual C++.
12877     if test "$GCC" != yes; then
12878       with_gnu_ld=no
12879     fi
12880     ;;
12881   openbsd*)
12882     with_gnu_ld=no
12883     ;;
12884   esac
12885
12886   ld_shlibs_F77=yes
12887   if test "$with_gnu_ld" = yes; then
12888     # If archive_cmds runs LD, not CC, wlarc should be empty
12889     wlarc='${wl}'
12890
12891     # See if GNU ld supports shared libraries.
12892     case $host_os in
12893     aix3* | aix4* | aix5*)
12894       # On AIX/PPC, the GNU linker is very broken
12895       if test "$host_cpu" != ia64; then
12896         ld_shlibs_F77=no
12897         cat <<EOF 1>&2
12898
12899 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12900 *** to be unable to reliably create shared libraries on AIX.
12901 *** Therefore, libtool is disabling shared libraries support.  If you
12902 *** really care for shared libraries, you may want to modify your PATH
12903 *** so that a non-GNU linker is found, and then restart.
12904
12905 EOF
12906       fi
12907       ;;
12908
12909     amigaos*)
12910       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)'
12911       hardcode_libdir_flag_spec_F77='-L$libdir'
12912       hardcode_minus_L_F77=yes
12913
12914       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12915       # that the semantics of dynamic libraries on AmigaOS, at least up
12916       # to version 4, is to share data among multiple programs linked
12917       # with the same dynamic library.  Since this doesn't match the
12918       # behavior of shared libraries on other platforms, we can't use
12919       # them.
12920       ld_shlibs_F77=no
12921       ;;
12922
12923     beos*)
12924       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12925         allow_undefined_flag_F77=unsupported
12926         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12927         # support --undefined.  This deserves some investigation.  FIXME
12928         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12929       else
12930         ld_shlibs_F77=no
12931       fi
12932       ;;
12933
12934     cygwin* | mingw* | pw32*)
12935       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12936       # as there is no search path for DLLs.
12937       hardcode_libdir_flag_spec_F77='-L$libdir'
12938       allow_undefined_flag_F77=unsupported
12939       always_export_symbols_F77=no
12940       enable_shared_with_static_runtimes_F77=yes
12941       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12942
12943       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12944         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12945         # If the export-symbols file already is a .def file (1st line
12946         # is EXPORTS), use it as is; otherwise, prepend...
12947         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12948           cp $export_symbols $output_objdir/$soname.def;
12949         else
12950           echo EXPORTS > $output_objdir/$soname.def;
12951           cat $export_symbols >> $output_objdir/$soname.def;
12952         fi~
12953         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12954       else
12955         ld_shlibs=no
12956       fi
12957       ;;
12958
12959     netbsd*)
12960       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12961         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12962         wlarc=
12963       else
12964         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12965         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12966       fi
12967       ;;
12968
12969     solaris* | sysv5*)
12970       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12971         ld_shlibs_F77=no
12972         cat <<EOF 1>&2
12973
12974 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12975 *** create shared libraries on Solaris systems.  Therefore, libtool
12976 *** is disabling shared libraries support.  We urge you to upgrade GNU
12977 *** binutils to release 2.9.1 or newer.  Another option is to modify
12978 *** your PATH or compiler configuration so that the native linker is
12979 *** used, and then restart.
12980
12981 EOF
12982       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12983         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12984         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12985       else
12986         ld_shlibs_F77=no
12987       fi
12988       ;;
12989
12990     sunos4*)
12991       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12992       wlarc=
12993       hardcode_direct_F77=yes
12994       hardcode_shlibpath_var_F77=no
12995       ;;
12996
12997     *)
12998       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12999         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13000         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13001       else
13002         ld_shlibs_F77=no
13003       fi
13004       ;;
13005     esac
13006
13007     if test "$ld_shlibs_F77" = yes; then
13008       runpath_var=LD_RUN_PATH
13009       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13010       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13011       # ancient GNU ld didn't support --whole-archive et. al.
13012       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13013         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13014       else
13015         whole_archive_flag_spec_F77=
13016       fi
13017     fi
13018   else
13019     # PORTME fill in a description of your system's linker (not GNU ld)
13020     case $host_os in
13021     aix3*)
13022       allow_undefined_flag_F77=unsupported
13023       always_export_symbols_F77=yes
13024       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'
13025       # Note: this linker hardcodes the directories in LIBPATH if there
13026       # are no directories specified by -L.
13027       hardcode_minus_L_F77=yes
13028       if test "$GCC" = yes && test -z "$link_static_flag"; then
13029         # Neither direct hardcoding nor static linking is supported with a
13030         # broken collect2.
13031         hardcode_direct_F77=unsupported
13032       fi
13033       ;;
13034
13035     aix4* | aix5*)
13036       if test "$host_cpu" = ia64; then
13037         # On IA64, the linker does run time linking by default, so we don't
13038         # have to do anything special.
13039         aix_use_runtimelinking=no
13040         exp_sym_flag='-Bexport'
13041         no_entry_flag=""
13042       else
13043         # If we're using GNU nm, then we don't want the "-C" option.
13044         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13045         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13046           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'
13047         else
13048           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'
13049         fi
13050         aix_use_runtimelinking=no
13051
13052         # Test if we are trying to use run time linking or normal
13053         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13054         # need to do runtime linking.
13055         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13056           for ld_flag in $LDFLAGS; do
13057           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13058             aix_use_runtimelinking=yes
13059             break
13060           fi
13061           done
13062         esac
13063
13064         exp_sym_flag='-bexport'
13065         no_entry_flag='-bnoentry'
13066       fi
13067
13068       # When large executables or shared objects are built, AIX ld can
13069       # have problems creating the table of contents.  If linking a library
13070       # or program results in "error TOC overflow" add -mminimal-toc to
13071       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13072       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13073
13074       archive_cmds_F77=''
13075       hardcode_direct_F77=yes
13076       hardcode_libdir_separator_F77=':'
13077       link_all_deplibs_F77=yes
13078
13079       if test "$GCC" = yes; then
13080         case $host_os in aix4.012|aix4.012.*)
13081         # We only want to do this on AIX 4.2 and lower, the check
13082         # below for broken collect2 doesn't work under 4.3+
13083           collect2name=`${CC} -print-prog-name=collect2`
13084           if test -f "$collect2name" && \
13085            strings "$collect2name" | grep resolve_lib_name >/dev/null
13086           then
13087           # We have reworked collect2
13088           hardcode_direct_F77=yes
13089           else
13090           # We have old collect2
13091           hardcode_direct_F77=unsupported
13092           # It fails to find uninstalled libraries when the uninstalled
13093           # path is not listed in the libpath.  Setting hardcode_minus_L
13094           # to unsupported forces relinking
13095           hardcode_minus_L_F77=yes
13096           hardcode_libdir_flag_spec_F77='-L$libdir'
13097           hardcode_libdir_separator_F77=
13098           fi
13099         esac
13100         shared_flag='-shared'
13101       else
13102         # not using gcc
13103         if test "$host_cpu" = ia64; then
13104         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13105         # chokes on -Wl,-G. The following line is correct:
13106           shared_flag='-G'
13107         else
13108         if test "$aix_use_runtimelinking" = yes; then
13109             shared_flag='${wl}-G'
13110           else
13111             shared_flag='${wl}-bM:SRE'
13112         fi
13113         fi
13114       fi
13115
13116       # It seems that -bexpall does not export symbols beginning with
13117       # underscore (_), so it is better to generate a list of symbols to export.
13118       always_export_symbols_F77=yes
13119       if test "$aix_use_runtimelinking" = yes; then
13120         # Warning - without using the other runtime loading flags (-brtl),
13121         # -berok will link without error, but may produce a broken library.
13122         allow_undefined_flag_F77='-berok'
13123        # Determine the default libpath from the value encoded in an empty executable.
13124        cat >conftest.$ac_ext <<_ACEOF
13125       program main
13126
13127       end
13128 _ACEOF
13129 rm -f conftest.$ac_objext conftest$ac_exeext
13130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13131   (eval $ac_link) 2>&5
13132   ac_status=$?
13133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134   (exit $ac_status); } &&
13135          { ac_try='test -s conftest$ac_exeext'
13136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137   (eval $ac_try) 2>&5
13138   ac_status=$?
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); }; }; then
13141
13142 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13143 }'`
13144 # Check for a 64-bit object if we didn't find anything.
13145 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; }
13146 }'`; fi
13147 else
13148   echo "$as_me: failed program was:" >&5
13149 sed 's/^/| /' conftest.$ac_ext >&5
13150
13151 fi
13152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13153 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13154
13155        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13156         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"
13157        else
13158         if test "$host_cpu" = ia64; then
13159           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13160           allow_undefined_flag_F77="-z nodefs"
13161           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"
13162         else
13163          # Determine the default libpath from the value encoded in an empty executable.
13164          cat >conftest.$ac_ext <<_ACEOF
13165       program main
13166
13167       end
13168 _ACEOF
13169 rm -f conftest.$ac_objext conftest$ac_exeext
13170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13171   (eval $ac_link) 2>&5
13172   ac_status=$?
13173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174   (exit $ac_status); } &&
13175          { ac_try='test -s conftest$ac_exeext'
13176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177   (eval $ac_try) 2>&5
13178   ac_status=$?
13179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); }; }; then
13181
13182 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13183 }'`
13184 # Check for a 64-bit object if we didn't find anything.
13185 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; }
13186 }'`; fi
13187 else
13188   echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13190
13191 fi
13192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13194
13195          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13196           # Warning - without using the other run time loading flags,
13197           # -berok will link without error, but may produce a broken library.
13198           no_undefined_flag_F77=' ${wl}-bernotok'
13199           allow_undefined_flag_F77=' ${wl}-berok'
13200           # -bexpall does not export symbols beginning with underscore (_)
13201           always_export_symbols_F77=yes
13202           # Exported symbols can be pulled into shared objects from archives
13203           whole_archive_flag_spec_F77=' '
13204           archive_cmds_need_lc_F77=yes
13205           # This is similar to how AIX traditionally builds it's shared libraries.
13206           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'
13207         fi
13208       fi
13209       ;;
13210
13211     amigaos*)
13212       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)'
13213       hardcode_libdir_flag_spec_F77='-L$libdir'
13214       hardcode_minus_L_F77=yes
13215       # see comment about different semantics on the GNU ld section
13216       ld_shlibs_F77=no
13217       ;;
13218
13219     bsdi4*)
13220       export_dynamic_flag_spec_F77=-rdynamic
13221       ;;
13222
13223     cygwin* | mingw* | pw32*)
13224       # When not using gcc, we currently assume that we are using
13225       # Microsoft Visual C++.
13226       # hardcode_libdir_flag_spec is actually meaningless, as there is
13227       # no search path for DLLs.
13228       hardcode_libdir_flag_spec_F77=' '
13229       allow_undefined_flag_F77=unsupported
13230       # Tell ltmain to make .lib files, not .a files.
13231       libext=lib
13232       # Tell ltmain to make .dll files, not .so files.
13233       shrext=".dll"
13234       # FIXME: Setting linknames here is a bad hack.
13235       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13236       # The linker will automatically build a .lib file if we build a DLL.
13237       old_archive_From_new_cmds_F77='true'
13238       # FIXME: Should let the user specify the lib program.
13239       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13240       fix_srcfile_path='`cygpath -w "$srcfile"`'
13241       enable_shared_with_static_runtimes_F77=yes
13242       ;;
13243
13244     darwin* | rhapsody*)
13245     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13246       archive_cmds_need_lc_F77=no
13247       case "$host_os" in
13248       rhapsody* | darwin1.[012])
13249         allow_undefined_flag_F77='-undefined suppress'
13250         ;;
13251       *) # Darwin 1.3 on
13252         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13253         ;;
13254       esac
13255       # FIXME: Relying on posixy $() will cause problems for
13256       #        cross-compilation, but unfortunately the echo tests do not
13257       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13258       #        `"' quotes if we put them in here... so don't!
13259         lt_int_apple_cc_single_mod=no
13260         output_verbose_link_cmd='echo'
13261         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13262           lt_int_apple_cc_single_mod=yes
13263         fi
13264         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13265           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13266         else
13267         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'
13268       fi
13269       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13270       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13271         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13272           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}'
13273         else
13274           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}'
13275         fi
13276           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}'
13277       hardcode_direct_F77=no
13278       hardcode_automatic_F77=yes
13279       hardcode_shlibpath_var_F77=unsupported
13280       whole_archive_flag_spec_F77='-all_load $convenience'
13281       link_all_deplibs_F77=yes
13282     fi
13283       ;;
13284
13285     dgux*)
13286       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13287       hardcode_libdir_flag_spec_F77='-L$libdir'
13288       hardcode_shlibpath_var_F77=no
13289       ;;
13290
13291     freebsd1*)
13292       ld_shlibs_F77=no
13293       ;;
13294
13295     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13296     # support.  Future versions do this automatically, but an explicit c++rt0.o
13297     # does not break anything, and helps significantly (at the cost of a little
13298     # extra space).
13299     freebsd2.2*)
13300       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13301       hardcode_libdir_flag_spec_F77='-R$libdir'
13302       hardcode_direct_F77=yes
13303       hardcode_shlibpath_var_F77=no
13304       ;;
13305
13306     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13307     freebsd2*)
13308       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13309       hardcode_direct_F77=yes
13310       hardcode_minus_L_F77=yes
13311       hardcode_shlibpath_var_F77=no
13312       ;;
13313
13314     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13315     freebsd*)
13316       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13317       hardcode_libdir_flag_spec_F77='-R$libdir'
13318       hardcode_direct_F77=yes
13319       hardcode_shlibpath_var_F77=no
13320       ;;
13321
13322     hpux9*)
13323       if test "$GCC" = yes; then
13324         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'
13325       else
13326         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'
13327       fi
13328       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13329       hardcode_libdir_separator_F77=:
13330       hardcode_direct_F77=yes
13331
13332       # hardcode_minus_L: Not really in the search PATH,
13333       # but as the default location of the library.
13334       hardcode_minus_L_F77=yes
13335       export_dynamic_flag_spec_F77='${wl}-E'
13336       ;;
13337
13338     hpux10* | hpux11*)
13339       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13340         case "$host_cpu" in
13341         hppa*64*|ia64*)
13342           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13343           ;;
13344         *)
13345           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13346           ;;
13347         esac
13348       else
13349         case "$host_cpu" in
13350         hppa*64*|ia64*)
13351           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13352           ;;
13353         *)
13354           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13355           ;;
13356         esac
13357       fi
13358       if test "$with_gnu_ld" = no; then
13359         case "$host_cpu" in
13360         hppa*64*)
13361           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13362           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13363           hardcode_libdir_separator_F77=:
13364           hardcode_direct_F77=no
13365           hardcode_shlibpath_var_F77=no
13366           ;;
13367         ia64*)
13368           hardcode_libdir_flag_spec_F77='-L$libdir'
13369           hardcode_direct_F77=no
13370           hardcode_shlibpath_var_F77=no
13371
13372           # hardcode_minus_L: Not really in the search PATH,
13373           # but as the default location of the library.
13374           hardcode_minus_L_F77=yes
13375           ;;
13376         *)
13377           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13378           hardcode_libdir_separator_F77=:
13379           hardcode_direct_F77=yes
13380           export_dynamic_flag_spec_F77='${wl}-E'
13381
13382           # hardcode_minus_L: Not really in the search PATH,
13383           # but as the default location of the library.
13384           hardcode_minus_L_F77=yes
13385           ;;
13386         esac
13387       fi
13388       ;;
13389
13390     irix5* | irix6* | nonstopux*)
13391       if test "$GCC" = yes; then
13392         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'
13393       else
13394         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'
13395         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13396       fi
13397       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13398       hardcode_libdir_separator_F77=:
13399       link_all_deplibs_F77=yes
13400       ;;
13401
13402     netbsd*)
13403       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13404         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13405       else
13406         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13407       fi
13408       hardcode_libdir_flag_spec_F77='-R$libdir'
13409       hardcode_direct_F77=yes
13410       hardcode_shlibpath_var_F77=no
13411       ;;
13412
13413     newsos6)
13414       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13415       hardcode_direct_F77=yes
13416       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13417       hardcode_libdir_separator_F77=:
13418       hardcode_shlibpath_var_F77=no
13419       ;;
13420
13421     openbsd*)
13422       hardcode_direct_F77=yes
13423       hardcode_shlibpath_var_F77=no
13424       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13425         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13426         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13427         export_dynamic_flag_spec_F77='${wl}-E'
13428       else
13429        case $host_os in
13430          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13431            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13432            hardcode_libdir_flag_spec_F77='-R$libdir'
13433            ;;
13434          *)
13435            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13436            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13437            ;;
13438        esac
13439       fi
13440       ;;
13441
13442     os2*)
13443       hardcode_libdir_flag_spec_F77='-L$libdir'
13444       hardcode_minus_L_F77=yes
13445       allow_undefined_flag_F77=unsupported
13446       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'
13447       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13448       ;;
13449
13450     osf3*)
13451       if test "$GCC" = yes; then
13452         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13453         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'
13454       else
13455         allow_undefined_flag_F77=' -expect_unresolved \*'
13456         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'
13457       fi
13458       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13459       hardcode_libdir_separator_F77=:
13460       ;;
13461
13462     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13463       if test "$GCC" = yes; then
13464         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13465         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'
13466         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13467       else
13468         allow_undefined_flag_F77=' -expect_unresolved \*'
13469         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'
13470         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~
13471         $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'
13472
13473         # Both c and cxx compiler support -rpath directly
13474         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13475       fi
13476       hardcode_libdir_separator_F77=:
13477       ;;
13478
13479     sco3.2v5*)
13480       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13481       hardcode_shlibpath_var_F77=no
13482       export_dynamic_flag_spec_F77='${wl}-Bexport'
13483       runpath_var=LD_RUN_PATH
13484       hardcode_runpath_var=yes
13485       ;;
13486
13487     solaris*)
13488       no_undefined_flag_F77=' -z text'
13489       if test "$GCC" = yes; then
13490         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13491         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13492           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13493       else
13494         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13495         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13496         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13497       fi
13498       hardcode_libdir_flag_spec_F77='-R$libdir'
13499       hardcode_shlibpath_var_F77=no
13500       case $host_os in
13501       solaris2.[0-5] | solaris2.[0-5].*) ;;
13502       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13503         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13504       esac
13505       link_all_deplibs_F77=yes
13506       ;;
13507
13508     sunos4*)
13509       if test "x$host_vendor" = xsequent; then
13510         # Use $CC to link under sequent, because it throws in some extra .o
13511         # files that make .init and .fini sections work.
13512         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13513       else
13514         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13515       fi
13516       hardcode_libdir_flag_spec_F77='-L$libdir'
13517       hardcode_direct_F77=yes
13518       hardcode_minus_L_F77=yes
13519       hardcode_shlibpath_var_F77=no
13520       ;;
13521
13522     sysv4)
13523       case $host_vendor in
13524         sni)
13525           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13526           hardcode_direct_F77=yes # is this really true???
13527         ;;
13528         siemens)
13529           ## LD is ld it makes a PLAMLIB
13530           ## CC just makes a GrossModule.
13531           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13532           reload_cmds_F77='$CC -r -o $output$reload_objs'
13533           hardcode_direct_F77=no
13534         ;;
13535         motorola)
13536           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13537           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13538         ;;
13539       esac
13540       runpath_var='LD_RUN_PATH'
13541       hardcode_shlibpath_var_F77=no
13542       ;;
13543
13544     sysv4.3*)
13545       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13546       hardcode_shlibpath_var_F77=no
13547       export_dynamic_flag_spec_F77='-Bexport'
13548       ;;
13549
13550     sysv4*MP*)
13551       if test -d /usr/nec; then
13552         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13553         hardcode_shlibpath_var_F77=no
13554         runpath_var=LD_RUN_PATH
13555         hardcode_runpath_var=yes
13556         ld_shlibs_F77=yes
13557       fi
13558       ;;
13559
13560     sysv4.2uw2*)
13561       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13562       hardcode_direct_F77=yes
13563       hardcode_minus_L_F77=no
13564       hardcode_shlibpath_var_F77=no
13565       hardcode_runpath_var=yes
13566       runpath_var=LD_RUN_PATH
13567       ;;
13568
13569    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13570       no_undefined_flag_F77='${wl}-z ${wl}text'
13571       if test "$GCC" = yes; then
13572         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13573       else
13574         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13575       fi
13576       runpath_var='LD_RUN_PATH'
13577       hardcode_shlibpath_var_F77=no
13578       ;;
13579
13580     sysv5*)
13581       no_undefined_flag_F77=' -z text'
13582       # $CC -shared without GNU ld will not create a library from C++
13583       # object files and a static libstdc++, better avoid it by now
13584       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13585       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13586                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13587       hardcode_libdir_flag_spec_F77=
13588       hardcode_shlibpath_var_F77=no
13589       runpath_var='LD_RUN_PATH'
13590       ;;
13591
13592     uts4*)
13593       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13594       hardcode_libdir_flag_spec_F77='-L$libdir'
13595       hardcode_shlibpath_var_F77=no
13596       ;;
13597
13598     *)
13599       ld_shlibs_F77=no
13600       ;;
13601     esac
13602   fi
13603
13604 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13605 echo "${ECHO_T}$ld_shlibs_F77" >&6
13606 test "$ld_shlibs_F77" = no && can_build_shared=no
13607
13608 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13609 if test "$GCC" = yes; then
13610   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13611 fi
13612
13613 #
13614 # Do we need to explicitly link libc?
13615 #
13616 case "x$archive_cmds_need_lc_F77" in
13617 x|xyes)
13618   # Assume -lc should be added
13619   archive_cmds_need_lc_F77=yes
13620
13621   if test "$enable_shared" = yes && test "$GCC" = yes; then
13622     case $archive_cmds_F77 in
13623     *'~'*)
13624       # FIXME: we may have to deal with multi-command sequences.
13625       ;;
13626     '$CC '*)
13627       # Test whether the compiler implicitly links with -lc since on some
13628       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13629       # to ld, don't add -lc before -lgcc.
13630       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13631 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13632       $rm conftest*
13633       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13634
13635       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13636   (eval $ac_compile) 2>&5
13637   ac_status=$?
13638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); } 2>conftest.err; then
13640         soname=conftest
13641         lib=conftest
13642         libobjs=conftest.$ac_objext
13643         deplibs=
13644         wl=$lt_prog_compiler_wl_F77
13645         compiler_flags=-v
13646         linker_flags=-v
13647         verstring=
13648         output_objdir=.
13649         libname=conftest
13650         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13651         allow_undefined_flag_F77=
13652         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13653   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13654   ac_status=$?
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); }
13657         then
13658           archive_cmds_need_lc_F77=no
13659         else
13660           archive_cmds_need_lc_F77=yes
13661         fi
13662         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13663       else
13664         cat conftest.err 1>&5
13665       fi
13666       $rm conftest*
13667       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13668 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13669       ;;
13670     esac
13671   fi
13672   ;;
13673 esac
13674
13675 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13676 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13677 hardcode_action_F77=
13678 if test -n "$hardcode_libdir_flag_spec_F77" || \
13679    test -n "$runpath_var F77" || \
13680    test "X$hardcode_automatic_F77"="Xyes" ; then
13681
13682   # We can hardcode non-existant directories.
13683   if test "$hardcode_direct_F77" != no &&
13684      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13685      # have to relink, otherwise we might link with an installed library
13686      # when we should be linking with a yet-to-be-installed one
13687      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13688      test "$hardcode_minus_L_F77" != no; then
13689     # Linking always hardcodes the temporary library directory.
13690     hardcode_action_F77=relink
13691   else
13692     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13693     hardcode_action_F77=immediate
13694   fi
13695 else
13696   # We cannot hardcode anything, or else we can only hardcode existing
13697   # directories.
13698   hardcode_action_F77=unsupported
13699 fi
13700 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13701 echo "${ECHO_T}$hardcode_action_F77" >&6
13702
13703 if test "$hardcode_action_F77" = relink; then
13704   # Fast installation is not supported
13705   enable_fast_install=no
13706 elif test "$shlibpath_overrides_runpath" = yes ||
13707      test "$enable_shared" = no; then
13708   # Fast installation is not necessary
13709   enable_fast_install=needless
13710 fi
13711
13712 striplib=
13713 old_striplib=
13714 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13715 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13716 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13717   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13718   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13719   echo "$as_me:$LINENO: result: yes" >&5
13720 echo "${ECHO_T}yes" >&6
13721 else
13722 # FIXME - insert some real tests, host_os isn't really good enough
13723   case $host_os in
13724    darwin*)
13725        if test -n "$STRIP" ; then
13726          striplib="$STRIP -x"
13727          echo "$as_me:$LINENO: result: yes" >&5
13728 echo "${ECHO_T}yes" >&6
13729        else
13730   echo "$as_me:$LINENO: result: no" >&5
13731 echo "${ECHO_T}no" >&6
13732 fi
13733        ;;
13734    *)
13735   echo "$as_me:$LINENO: result: no" >&5
13736 echo "${ECHO_T}no" >&6
13737     ;;
13738   esac
13739 fi
13740
13741 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13742 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13743 library_names_spec=
13744 libname_spec='lib$name'
13745 soname_spec=
13746 shrext=".so"
13747 postinstall_cmds=
13748 postuninstall_cmds=
13749 finish_cmds=
13750 finish_eval=
13751 shlibpath_var=
13752 shlibpath_overrides_runpath=unknown
13753 version_type=none
13754 dynamic_linker="$host_os ld.so"
13755 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13756 if test "$GCC" = yes; then
13757   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13758   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13759     # if the path contains ";" then we assume it to be the separator
13760     # otherwise default to the standard path separator (i.e. ":") - it is
13761     # assumed that no part of a normal pathname contains ";" but that should
13762     # okay in the real world where ";" in dirpaths is itself problematic.
13763     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13764   else
13765     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13766   fi
13767 else
13768   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13769 fi
13770 need_lib_prefix=unknown
13771 hardcode_into_libs=no
13772
13773 # when you set need_version to no, make sure it does not cause -set_version
13774 # flags to be left without arguments
13775 need_version=unknown
13776
13777 case $host_os in
13778 aix3*)
13779   version_type=linux
13780   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13781   shlibpath_var=LIBPATH
13782
13783   # AIX 3 has no versioning support, so we append a major version to the name.
13784   soname_spec='${libname}${release}${shared_ext}$major'
13785   ;;
13786
13787 aix4* | aix5*)
13788   version_type=linux
13789   need_lib_prefix=no
13790   need_version=no
13791   hardcode_into_libs=yes
13792   if test "$host_cpu" = ia64; then
13793     # AIX 5 supports IA64
13794     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13795     shlibpath_var=LD_LIBRARY_PATH
13796   else
13797     # With GCC up to 2.95.x, collect2 would create an import file
13798     # for dependence libraries.  The import file would start with
13799     # the line `#! .'.  This would cause the generated library to
13800     # depend on `.', always an invalid library.  This was fixed in
13801     # development snapshots of GCC prior to 3.0.
13802     case $host_os in
13803       aix4 | aix4.[01] | aix4.[01].*)
13804       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13805            echo ' yes '
13806            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13807         :
13808       else
13809         can_build_shared=no
13810       fi
13811       ;;
13812     esac
13813     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13814     # soname into executable. Probably we can add versioning support to
13815     # collect2, so additional links can be useful in future.
13816     if test "$aix_use_runtimelinking" = yes; then
13817       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13818       # instead of lib<name>.a to let people know that these are not
13819       # typical AIX shared libraries.
13820       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13821     else
13822       # We preserve .a as extension for shared libraries through AIX4.2
13823       # and later when we are not doing run time linking.
13824       library_names_spec='${libname}${release}.a $libname.a'
13825       soname_spec='${libname}${release}${shared_ext}$major'
13826     fi
13827     shlibpath_var=LIBPATH
13828   fi
13829   ;;
13830
13831 amigaos*)
13832   library_names_spec='$libname.ixlibrary $libname.a'
13833   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13834   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'
13835   ;;
13836
13837 beos*)
13838   library_names_spec='${libname}${shared_ext}'
13839   dynamic_linker="$host_os ld.so"
13840   shlibpath_var=LIBRARY_PATH
13841   ;;
13842
13843 bsdi4*)
13844   version_type=linux
13845   need_version=no
13846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13847   soname_spec='${libname}${release}${shared_ext}$major'
13848   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13849   shlibpath_var=LD_LIBRARY_PATH
13850   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13851   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13852   # the default ld.so.conf also contains /usr/contrib/lib and
13853   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13854   # libtool to hard-code these into programs
13855   ;;
13856
13857 cygwin* | mingw* | pw32*)
13858   version_type=windows
13859   shrext=".dll"
13860   need_version=no
13861   need_lib_prefix=no
13862
13863   case $GCC,$host_os in
13864   yes,cygwin* | yes,mingw* | yes,pw32*)
13865     library_names_spec='$libname.dll.a'
13866     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13867     postinstall_cmds='base_file=`basename \${file}`~
13868       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13869       dldir=$destdir/`dirname \$dlpath`~
13870       test -d \$dldir || mkdir -p \$dldir~
13871       $install_prog $dir/$dlname \$dldir/$dlname'
13872     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13873       dlpath=$dir/\$dldll~
13874        $rm \$dlpath'
13875     shlibpath_overrides_runpath=yes
13876
13877     case $host_os in
13878     cygwin*)
13879       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13880       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13881       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13882       ;;
13883     mingw*)
13884       # MinGW DLLs use traditional 'lib' prefix
13885       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13886       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13887       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13888         # It is most probably a Windows format PATH printed by
13889         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13890         # path with ; separators, and with drive letters. We can handle the
13891         # drive letters (cygwin fileutils understands them), so leave them,
13892         # especially as we might pass files found there to a mingw objdump,
13893         # which wouldn't understand a cygwinified path. Ahh.
13894         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13895       else
13896         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13897       fi
13898       ;;
13899     pw32*)
13900       # pw32 DLLs use 'pw' prefix rather than 'lib'
13901       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13902       ;;
13903     esac
13904     ;;
13905
13906   *)
13907     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13908     ;;
13909   esac
13910   dynamic_linker='Win32 ld.exe'
13911   # FIXME: first we should search . and the directory the executable is in
13912   shlibpath_var=PATH
13913   ;;
13914
13915 darwin* | rhapsody*)
13916   dynamic_linker="$host_os dyld"
13917   version_type=darwin
13918   need_lib_prefix=no
13919   need_version=no
13920   # FIXME: Relying on posixy $() will cause problems for
13921   #        cross-compilation, but unfortunately the echo tests do not
13922   #        yet detect zsh echo's removal of \ escapes.
13923   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13924   soname_spec='${libname}${release}${major}$shared_ext'
13925   shlibpath_overrides_runpath=yes
13926   shlibpath_var=DYLD_LIBRARY_PATH
13927   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13928   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13929   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13930   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"`
13931   fi
13932   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13933   ;;
13934
13935 dgux*)
13936   version_type=linux
13937   need_lib_prefix=no
13938   need_version=no
13939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13940   soname_spec='${libname}${release}${shared_ext}$major'
13941   shlibpath_var=LD_LIBRARY_PATH
13942   ;;
13943
13944 freebsd1*)
13945   dynamic_linker=no
13946   ;;
13947
13948 freebsd*)
13949   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13950   version_type=freebsd-$objformat
13951   case $version_type in
13952     freebsd-elf*)
13953       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13954       need_version=no
13955       need_lib_prefix=no
13956       ;;
13957     freebsd-*)
13958       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13959       need_version=yes
13960       ;;
13961   esac
13962   shlibpath_var=LD_LIBRARY_PATH
13963   case $host_os in
13964   freebsd2*)
13965     shlibpath_overrides_runpath=yes
13966     ;;
13967   freebsd3.01* | freebsdelf3.01*)
13968     shlibpath_overrides_runpath=yes
13969     hardcode_into_libs=yes
13970     ;;
13971   *) # from 3.2 on
13972     shlibpath_overrides_runpath=no
13973     hardcode_into_libs=yes
13974     ;;
13975   esac
13976   ;;
13977
13978 gnu*)
13979   version_type=linux
13980   need_lib_prefix=no
13981   need_version=no
13982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13983   soname_spec='${libname}${release}${shared_ext}$major'
13984   shlibpath_var=LD_LIBRARY_PATH
13985   hardcode_into_libs=yes
13986   ;;
13987
13988 hpux9* | hpux10* | hpux11*)
13989   # Give a soname corresponding to the major version so that dld.sl refuses to
13990   # link against other versions.
13991   version_type=sunos
13992   need_lib_prefix=no
13993   need_version=no
13994   case "$host_cpu" in
13995   ia64*)
13996     shrext='.so'
13997     hardcode_into_libs=yes
13998     dynamic_linker="$host_os dld.so"
13999     shlibpath_var=LD_LIBRARY_PATH
14000     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14001     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14002     soname_spec='${libname}${release}${shared_ext}$major'
14003     if test "X$HPUX_IA64_MODE" = X32; then
14004       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14005     else
14006       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14007     fi
14008     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14009     ;;
14010    hppa*64*)
14011      shrext='.sl'
14012      hardcode_into_libs=yes
14013      dynamic_linker="$host_os dld.sl"
14014      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14015      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14016      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14017      soname_spec='${libname}${release}${shared_ext}$major'
14018      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14019      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14020      ;;
14021    *)
14022     shrext='.sl'
14023     dynamic_linker="$host_os dld.sl"
14024     shlibpath_var=SHLIB_PATH
14025     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14027     soname_spec='${libname}${release}${shared_ext}$major'
14028     ;;
14029   esac
14030   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14031   postinstall_cmds='chmod 555 $lib'
14032   ;;
14033
14034 irix5* | irix6* | nonstopux*)
14035   case $host_os in
14036     nonstopux*) version_type=nonstopux ;;
14037     *)
14038         if test "$lt_cv_prog_gnu_ld" = yes; then
14039                 version_type=linux
14040         else
14041                 version_type=irix
14042         fi ;;
14043   esac
14044   need_lib_prefix=no
14045   need_version=no
14046   soname_spec='${libname}${release}${shared_ext}$major'
14047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14048   case $host_os in
14049   irix5* | nonstopux*)
14050     libsuff= shlibsuff=
14051     ;;
14052   *)
14053     case $LD in # libtool.m4 will add one of these switches to LD
14054     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14055       libsuff= shlibsuff= libmagic=32-bit;;
14056     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14057       libsuff=32 shlibsuff=N32 libmagic=N32;;
14058     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14059       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14060     *) libsuff= shlibsuff= libmagic=never-match;;
14061     esac
14062     ;;
14063   esac
14064   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14065   shlibpath_overrides_runpath=no
14066   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14067   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14068   hardcode_into_libs=yes
14069   ;;
14070
14071 # No shared lib support for Linux oldld, aout, or coff.
14072 linux*oldld* | linux*aout* | linux*coff*)
14073   dynamic_linker=no
14074   ;;
14075
14076 # This must be Linux ELF.
14077 linux*)
14078   version_type=linux
14079   need_lib_prefix=no
14080   need_version=no
14081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14082   soname_spec='${libname}${release}${shared_ext}$major'
14083   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14084   shlibpath_var=LD_LIBRARY_PATH
14085   shlibpath_overrides_runpath=no
14086   # This implies no fast_install, which is unacceptable.
14087   # Some rework will be needed to allow for fast_install
14088   # before this can be enabled.
14089   hardcode_into_libs=yes
14090
14091   # We used to test for /lib/ld.so.1 and disable shared libraries on
14092   # powerpc, because MkLinux only supported shared libraries with the
14093   # GNU dynamic linker.  Since this was broken with cross compilers,
14094   # most powerpc-linux boxes support dynamic linking these days and
14095   # people can always --disable-shared, the test was removed, and we
14096   # assume the GNU/Linux dynamic linker is in use.
14097   dynamic_linker='GNU/Linux ld.so'
14098   ;;
14099
14100 netbsd*)
14101   version_type=sunos
14102   need_lib_prefix=no
14103   need_version=no
14104   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14105     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14106     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14107     dynamic_linker='NetBSD (a.out) ld.so'
14108   else
14109     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14110     soname_spec='${libname}${release}${shared_ext}$major'
14111     dynamic_linker='NetBSD ld.elf_so'
14112   fi
14113   shlibpath_var=LD_LIBRARY_PATH
14114   shlibpath_overrides_runpath=yes
14115   hardcode_into_libs=yes
14116   ;;
14117
14118 newsos6)
14119   version_type=linux
14120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121   shlibpath_var=LD_LIBRARY_PATH
14122   shlibpath_overrides_runpath=yes
14123   ;;
14124
14125 nto-qnx)
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   ;;
14134
14135 openbsd*)
14136   version_type=sunos
14137   need_lib_prefix=no
14138   need_version=no
14139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14140   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14141   shlibpath_var=LD_LIBRARY_PATH
14142   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14143     case $host_os in
14144       openbsd2.[89] | openbsd2.[89].*)
14145         shlibpath_overrides_runpath=no
14146         ;;
14147       *)
14148         shlibpath_overrides_runpath=yes
14149         ;;
14150       esac
14151   else
14152     shlibpath_overrides_runpath=yes
14153   fi
14154   ;;
14155
14156 os2*)
14157   libname_spec='$name'
14158   shrext=".dll"
14159   need_lib_prefix=no
14160   library_names_spec='$libname${shared_ext} $libname.a'
14161   dynamic_linker='OS/2 ld.exe'
14162   shlibpath_var=LIBPATH
14163   ;;
14164
14165 osf3* | osf4* | osf5*)
14166   version_type=osf
14167   need_lib_prefix=no
14168   need_version=no
14169   soname_spec='${libname}${release}${shared_ext}$major'
14170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14171   shlibpath_var=LD_LIBRARY_PATH
14172   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14173   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14174   ;;
14175
14176 sco3.2v5*)
14177   version_type=osf
14178   soname_spec='${libname}${release}${shared_ext}$major'
14179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14180   shlibpath_var=LD_LIBRARY_PATH
14181   ;;
14182
14183 solaris*)
14184   version_type=linux
14185   need_lib_prefix=no
14186   need_version=no
14187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14188   soname_spec='${libname}${release}${shared_ext}$major'
14189   shlibpath_var=LD_LIBRARY_PATH
14190   shlibpath_overrides_runpath=yes
14191   hardcode_into_libs=yes
14192   # ldd complains unless libraries are executable
14193   postinstall_cmds='chmod +x $lib'
14194   ;;
14195
14196 sunos4*)
14197   version_type=sunos
14198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14199   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14200   shlibpath_var=LD_LIBRARY_PATH
14201   shlibpath_overrides_runpath=yes
14202   if test "$with_gnu_ld" = yes; then
14203     need_lib_prefix=no
14204   fi
14205   need_version=yes
14206   ;;
14207
14208 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14209   version_type=linux
14210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14211   soname_spec='${libname}${release}${shared_ext}$major'
14212   shlibpath_var=LD_LIBRARY_PATH
14213   case $host_vendor in
14214     sni)
14215       shlibpath_overrides_runpath=no
14216       need_lib_prefix=no
14217       export_dynamic_flag_spec='${wl}-Blargedynsym'
14218       runpath_var=LD_RUN_PATH
14219       ;;
14220     siemens)
14221       need_lib_prefix=no
14222       ;;
14223     motorola)
14224       need_lib_prefix=no
14225       need_version=no
14226       shlibpath_overrides_runpath=no
14227       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14228       ;;
14229   esac
14230   ;;
14231
14232 sysv4*MP*)
14233   if test -d /usr/nec ;then
14234     version_type=linux
14235     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14236     soname_spec='$libname${shared_ext}.$major'
14237     shlibpath_var=LD_LIBRARY_PATH
14238   fi
14239   ;;
14240
14241 uts4*)
14242   version_type=linux
14243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14244   soname_spec='${libname}${release}${shared_ext}$major'
14245   shlibpath_var=LD_LIBRARY_PATH
14246   ;;
14247
14248 *)
14249   dynamic_linker=no
14250   ;;
14251 esac
14252 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14253 echo "${ECHO_T}$dynamic_linker" >&6
14254 test "$dynamic_linker" = no && can_build_shared=no
14255
14256
14257 # The else clause should only fire when bootstrapping the
14258 # libtool distribution, otherwise you forgot to ship ltmain.sh
14259 # with your package, and you will get complaints that there are
14260 # no rules to generate ltmain.sh.
14261 if test -f "$ltmain"; then
14262   # See if we are running on zsh, and set the options which allow our commands through
14263   # without removal of \ escapes.
14264   if test -n "${ZSH_VERSION+set}" ; then
14265     setopt NO_GLOB_SUBST
14266   fi
14267   # Now quote all the things that may contain metacharacters while being
14268   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14269   # variables and quote the copies for generation of the libtool script.
14270   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14271     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14272     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14273     deplibs_check_method reload_flag reload_cmds need_locks \
14274     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14275     lt_cv_sys_global_symbol_to_c_name_address \
14276     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14277     old_postinstall_cmds old_postuninstall_cmds \
14278     compiler_F77 \
14279     CC_F77 \
14280     LD_F77 \
14281     lt_prog_compiler_wl_F77 \
14282     lt_prog_compiler_pic_F77 \
14283     lt_prog_compiler_static_F77 \
14284     lt_prog_compiler_no_builtin_flag_F77 \
14285     export_dynamic_flag_spec_F77 \
14286     thread_safe_flag_spec_F77 \
14287     whole_archive_flag_spec_F77 \
14288     enable_shared_with_static_runtimes_F77 \
14289     old_archive_cmds_F77 \
14290     old_archive_from_new_cmds_F77 \
14291     predep_objects_F77 \
14292     postdep_objects_F77 \
14293     predeps_F77 \
14294     postdeps_F77 \
14295     compiler_lib_search_path_F77 \
14296     archive_cmds_F77 \
14297     archive_expsym_cmds_F77 \
14298     postinstall_cmds_F77 \
14299     postuninstall_cmds_F77 \
14300     old_archive_from_expsyms_cmds_F77 \
14301     allow_undefined_flag_F77 \
14302     no_undefined_flag_F77 \
14303     export_symbols_cmds_F77 \
14304     hardcode_libdir_flag_spec_F77 \
14305     hardcode_libdir_flag_spec_ld_F77 \
14306     hardcode_libdir_separator_F77 \
14307     hardcode_automatic_F77 \
14308     module_cmds_F77 \
14309     module_expsym_cmds_F77 \
14310     lt_cv_prog_compiler_c_o_F77 \
14311     exclude_expsyms_F77 \
14312     include_expsyms_F77; do
14313
14314     case $var in
14315     old_archive_cmds_F77 | \
14316     old_archive_from_new_cmds_F77 | \
14317     archive_cmds_F77 | \
14318     archive_expsym_cmds_F77 | \
14319     module_cmds_F77 | \
14320     module_expsym_cmds_F77 | \
14321     old_archive_from_expsyms_cmds_F77 | \
14322     export_symbols_cmds_F77 | \
14323     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14324     postinstall_cmds | postuninstall_cmds | \
14325     old_postinstall_cmds | old_postuninstall_cmds | \
14326     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14327       # Double-quote double-evaled strings.
14328       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14329       ;;
14330     *)
14331       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14332       ;;
14333     esac
14334   done
14335
14336   case $lt_echo in
14337   *'\$0 --fallback-echo"')
14338     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14339     ;;
14340   esac
14341
14342 cfgfile="$ofile"
14343
14344   cat <<__EOF__ >> "$cfgfile"
14345 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14346
14347 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14348
14349 # Shell to use when invoking shell scripts.
14350 SHELL=$lt_SHELL
14351
14352 # Whether or not to build shared libraries.
14353 build_libtool_libs=$enable_shared
14354
14355 # Whether or not to build static libraries.
14356 build_old_libs=$enable_static
14357
14358 # Whether or not to add -lc for building shared libraries.
14359 build_libtool_need_lc=$archive_cmds_need_lc_F77
14360
14361 # Whether or not to disallow shared libs when runtime libs are static
14362 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14363
14364 # Whether or not to optimize for fast installation.
14365 fast_install=$enable_fast_install
14366
14367 # The host system.
14368 host_alias=$host_alias
14369 host=$host
14370
14371 # An echo program that does not interpret backslashes.
14372 echo=$lt_echo
14373
14374 # The archiver.
14375 AR=$lt_AR
14376 AR_FLAGS=$lt_AR_FLAGS
14377
14378 # A C compiler.
14379 LTCC=$lt_LTCC
14380
14381 # A language-specific compiler.
14382 CC=$lt_compiler_F77
14383
14384 # Is the compiler the GNU C compiler?
14385 with_gcc=$GCC_F77
14386
14387 # An ERE matcher.
14388 EGREP=$lt_EGREP
14389
14390 # The linker used to build libraries.
14391 LD=$lt_LD_F77
14392
14393 # Whether we need hard or soft links.
14394 LN_S=$lt_LN_S
14395
14396 # A BSD-compatible nm program.
14397 NM=$lt_NM
14398
14399 # A symbol stripping program
14400 STRIP=$STRIP
14401
14402 # Used to examine libraries when file_magic_cmd begins "file"
14403 MAGIC_CMD=$MAGIC_CMD
14404
14405 # Used on cygwin: DLL creation program.
14406 DLLTOOL="$DLLTOOL"
14407
14408 # Used on cygwin: object dumper.
14409 OBJDUMP="$OBJDUMP"
14410
14411 # Used on cygwin: assembler.
14412 AS="$AS"
14413
14414 # The name of the directory that contains temporary libtool files.
14415 objdir=$objdir
14416
14417 # How to create reloadable object files.
14418 reload_flag=$lt_reload_flag
14419 reload_cmds=$lt_reload_cmds
14420
14421 # How to pass a linker flag through the compiler.
14422 wl=$lt_lt_prog_compiler_wl_F77
14423
14424 # Object file suffix (normally "o").
14425 objext="$ac_objext"
14426
14427 # Old archive suffix (normally "a").
14428 libext="$libext"
14429
14430 # Shared library suffix (normally ".so").
14431 shrext='$shrext'
14432
14433 # Executable file suffix (normally "").
14434 exeext="$exeext"
14435
14436 # Additional compiler flags for building library objects.
14437 pic_flag=$lt_lt_prog_compiler_pic_F77
14438 pic_mode=$pic_mode
14439
14440 # What is the maximum length of a command?
14441 max_cmd_len=$lt_cv_sys_max_cmd_len
14442
14443 # Does compiler simultaneously support -c and -o options?
14444 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14445
14446 # Must we lock files when doing compilation ?
14447 need_locks=$lt_need_locks
14448
14449 # Do we need the lib prefix for modules?
14450 need_lib_prefix=$need_lib_prefix
14451
14452 # Do we need a version for libraries?
14453 need_version=$need_version
14454
14455 # Whether dlopen is supported.
14456 dlopen_support=$enable_dlopen
14457
14458 # Whether dlopen of programs is supported.
14459 dlopen_self=$enable_dlopen_self
14460
14461 # Whether dlopen of statically linked programs is supported.
14462 dlopen_self_static=$enable_dlopen_self_static
14463
14464 # Compiler flag to prevent dynamic linking.
14465 link_static_flag=$lt_lt_prog_compiler_static_F77
14466
14467 # Compiler flag to turn off builtin functions.
14468 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14469
14470 # Compiler flag to allow reflexive dlopens.
14471 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14472
14473 # Compiler flag to generate shared objects directly from archives.
14474 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14475
14476 # Compiler flag to generate thread-safe objects.
14477 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14478
14479 # Library versioning type.
14480 version_type=$version_type
14481
14482 # Format of library name prefix.
14483 libname_spec=$lt_libname_spec
14484
14485 # List of archive names.  First name is the real one, the rest are links.
14486 # The last name is the one that the linker finds with -lNAME.
14487 library_names_spec=$lt_library_names_spec
14488
14489 # The coded name of the library, if different from the real name.
14490 soname_spec=$lt_soname_spec
14491
14492 # Commands used to build and install an old-style archive.
14493 RANLIB=$lt_RANLIB
14494 old_archive_cmds=$lt_old_archive_cmds_F77
14495 old_postinstall_cmds=$lt_old_postinstall_cmds
14496 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14497
14498 # Create an old-style archive from a shared archive.
14499 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14500
14501 # Create a temporary old-style archive to link instead of a shared archive.
14502 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14503
14504 # Commands used to build and install a shared archive.
14505 archive_cmds=$lt_archive_cmds_F77
14506 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14507 postinstall_cmds=$lt_postinstall_cmds
14508 postuninstall_cmds=$lt_postuninstall_cmds
14509
14510 # Commands used to build a loadable module (assumed same as above if empty)
14511 module_cmds=$lt_module_cmds_F77
14512 module_expsym_cmds=$lt_module_expsym_cmds_F77
14513
14514 # Commands to strip libraries.
14515 old_striplib=$lt_old_striplib
14516 striplib=$lt_striplib
14517
14518 # Dependencies to place before the objects being linked to create a
14519 # shared library.
14520 predep_objects=$lt_predep_objects_F77
14521
14522 # Dependencies to place after the objects being linked to create a
14523 # shared library.
14524 postdep_objects=$lt_postdep_objects_F77
14525
14526 # Dependencies to place before the objects being linked to create a
14527 # shared library.
14528 predeps=$lt_predeps_F77
14529
14530 # Dependencies to place after the objects being linked to create a
14531 # shared library.
14532 postdeps=$lt_postdeps_F77
14533
14534 # The library search path used internally by the compiler when linking
14535 # a shared library.
14536 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14537
14538 # Method to check whether dependent libraries are shared objects.
14539 deplibs_check_method=$lt_deplibs_check_method
14540
14541 # Command to use when deplibs_check_method == file_magic.
14542 file_magic_cmd=$lt_file_magic_cmd
14543
14544 # Flag that allows shared libraries with undefined symbols to be built.
14545 allow_undefined_flag=$lt_allow_undefined_flag_F77
14546
14547 # Flag that forces no undefined symbols.
14548 no_undefined_flag=$lt_no_undefined_flag_F77
14549
14550 # Commands used to finish a libtool library installation in a directory.
14551 finish_cmds=$lt_finish_cmds
14552
14553 # Same as above, but a single script fragment to be evaled but not shown.
14554 finish_eval=$lt_finish_eval
14555
14556 # Take the output of nm and produce a listing of raw symbols and C names.
14557 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14558
14559 # Transform the output of nm in a proper C declaration
14560 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14561
14562 # Transform the output of nm in a C name address pair
14563 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14564
14565 # This is the shared library runtime path variable.
14566 runpath_var=$runpath_var
14567
14568 # This is the shared library path variable.
14569 shlibpath_var=$shlibpath_var
14570
14571 # Is shlibpath searched before the hard-coded library search path?
14572 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14573
14574 # How to hardcode a shared library path into an executable.
14575 hardcode_action=$hardcode_action_F77
14576
14577 # Whether we should hardcode library paths into libraries.
14578 hardcode_into_libs=$hardcode_into_libs
14579
14580 # Flag to hardcode \$libdir into a binary during linking.
14581 # This must work even if \$libdir does not exist.
14582 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14583
14584 # If ld is used when linking, flag to hardcode \$libdir into
14585 # a binary during linking. This must work even if \$libdir does
14586 # not exist.
14587 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14588
14589 # Whether we need a single -rpath flag with a separated argument.
14590 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14591
14592 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14593 # resulting binary.
14594 hardcode_direct=$hardcode_direct_F77
14595
14596 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14597 # resulting binary.
14598 hardcode_minus_L=$hardcode_minus_L_F77
14599
14600 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14601 # the resulting binary.
14602 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14603
14604 # Set to yes if building a shared library automatically hardcodes DIR into the library
14605 # and all subsequent libraries and executables linked against it.
14606 hardcode_automatic=$hardcode_automatic_F77
14607
14608 # Variables whose values should be saved in libtool wrapper scripts and
14609 # restored at relink time.
14610 variables_saved_for_relink="$variables_saved_for_relink"
14611
14612 # Whether libtool must link a program against all its dependency libraries.
14613 link_all_deplibs=$link_all_deplibs_F77
14614
14615 # Compile-time system search path for libraries
14616 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14617
14618 # Run-time system search path for libraries
14619 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14620
14621 # Fix the shell variable \$srcfile for the compiler.
14622 fix_srcfile_path="$fix_srcfile_path_F77"
14623
14624 # Set to yes if exported symbols are required.
14625 always_export_symbols=$always_export_symbols_F77
14626
14627 # The commands to list exported symbols.
14628 export_symbols_cmds=$lt_export_symbols_cmds_F77
14629
14630 # The commands to extract the exported symbol list from a shared archive.
14631 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14632
14633 # Symbols that should not be listed in the preloaded symbols.
14634 exclude_expsyms=$lt_exclude_expsyms_F77
14635
14636 # Symbols that must always be exported.
14637 include_expsyms=$lt_include_expsyms_F77
14638
14639 # ### END LIBTOOL TAG CONFIG: $tagname
14640
14641 __EOF__
14642
14643
14644 else
14645   # If there is no Makefile yet, we rely on a make rule to execute
14646   # `config.status --recheck' to rerun these tests and create the
14647   # libtool script then.
14648   test -f Makefile && make "$ltmain"
14649 fi
14650
14651
14652 ac_ext=c
14653 ac_cpp='$CPP $CPPFLAGS'
14654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14657
14658 CC="$lt_save_CC"
14659
14660         else
14661           tagname=""
14662         fi
14663         ;;
14664
14665       GCJ)
14666         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14667
14668
14669
14670 # Source file extension for Java test sources.
14671 ac_ext=java
14672
14673 # Object file extension for compiled Java test sources.
14674 objext=o
14675 objext_GCJ=$objext
14676
14677 # Code to be used in simple compile tests
14678 lt_simple_compile_test_code="class foo {}\n"
14679
14680 # Code to be used in simple link tests
14681 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14682
14683 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14684
14685 # If no C compiler was specified, use CC.
14686 LTCC=${LTCC-"$CC"}
14687
14688 # Allow CC to be a program name with arguments.
14689 compiler=$CC
14690
14691
14692 # Allow CC to be a program name with arguments.
14693 lt_save_CC="$CC"
14694 CC=${GCJ-"gcj"}
14695 compiler=$CC
14696 compiler_GCJ=$CC
14697
14698 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14699 archive_cmds_need_lc_GCJ=no
14700
14701 ## CAVEAT EMPTOR:
14702 ## There is no encapsulation within the following macros, do not change
14703 ## the running order or otherwise move them around unless you know exactly
14704 ## what you are doing...
14705
14706 lt_prog_compiler_no_builtin_flag_GCJ=
14707
14708 if test "$GCC" = yes; then
14709   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14710
14711   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14712 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14713 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14714   echo $ECHO_N "(cached) $ECHO_C" >&6
14715 else
14716   lt_cv_prog_compiler_rtti_exceptions=no
14717   ac_outfile=conftest.$ac_objext
14718    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14719    lt_compiler_flag="-fno-rtti -fno-exceptions"
14720    # Insert the option either (1) after the last *FLAGS variable, or
14721    # (2) before a word containing "conftest.", or (3) at the end.
14722    # Note that $ac_compile itself does not contain backslashes and begins
14723    # with a dollar sign (not a hyphen), so the echo should work correctly.
14724    # The option is referenced via a variable to avoid confusing sed.
14725    lt_compile=`echo "$ac_compile" | $SED \
14726    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14727    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14728    -e 's:$: $lt_compiler_flag:'`
14729    (eval echo "\"\$as_me:14729: $lt_compile\"" >&5)
14730    (eval "$lt_compile" 2>conftest.err)
14731    ac_status=$?
14732    cat conftest.err >&5
14733    echo "$as_me:14733: \$? = $ac_status" >&5
14734    if (exit $ac_status) && test -s "$ac_outfile"; then
14735      # The compiler can only warn and ignore the option if not recognized
14736      # So say no if there are warnings
14737      if test ! -s conftest.err; then
14738        lt_cv_prog_compiler_rtti_exceptions=yes
14739      fi
14740    fi
14741    $rm conftest*
14742
14743 fi
14744 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14745 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14746
14747 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14748     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14749 else
14750     :
14751 fi
14752
14753 fi
14754
14755 lt_prog_compiler_wl_GCJ=
14756 lt_prog_compiler_pic_GCJ=
14757 lt_prog_compiler_static_GCJ=
14758
14759 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14760 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14761
14762   if test "$GCC" = yes; then
14763     lt_prog_compiler_wl_GCJ='-Wl,'
14764     lt_prog_compiler_static_GCJ='-static'
14765
14766     case $host_os in
14767       aix*)
14768       # All AIX code is PIC.
14769       if test "$host_cpu" = ia64; then
14770         # AIX 5 now supports IA64 processor
14771         lt_prog_compiler_static_GCJ='-Bstatic'
14772       fi
14773       ;;
14774
14775     amigaos*)
14776       # FIXME: we need at least 68020 code to build shared libraries, but
14777       # adding the `-m68020' flag to GCC prevents building anything better,
14778       # like `-m68040'.
14779       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14780       ;;
14781
14782     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14783       # PIC is the default for these OSes.
14784       ;;
14785
14786     mingw* | pw32* | os2*)
14787       # This hack is so that the source file can tell whether it is being
14788       # built for inclusion in a dll (and should export symbols for example).
14789       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14790       ;;
14791
14792     darwin* | rhapsody*)
14793       # PIC is the default on this platform
14794       # Common symbols not allowed in MH_DYLIB files
14795       lt_prog_compiler_pic_GCJ='-fno-common'
14796       ;;
14797
14798     msdosdjgpp*)
14799       # Just because we use GCC doesn't mean we suddenly get shared libraries
14800       # on systems that don't support them.
14801       lt_prog_compiler_can_build_shared_GCJ=no
14802       enable_shared=no
14803       ;;
14804
14805     sysv4*MP*)
14806       if test -d /usr/nec; then
14807         lt_prog_compiler_pic_GCJ=-Kconform_pic
14808       fi
14809       ;;
14810
14811     hpux*)
14812       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14813       # not for PA HP-UX.
14814       case "$host_cpu" in
14815       hppa*64*|ia64*)
14816         # +Z the default
14817         ;;
14818       *)
14819         lt_prog_compiler_pic_GCJ='-fPIC'
14820         ;;
14821       esac
14822       ;;
14823
14824     *)
14825       lt_prog_compiler_pic_GCJ='-fPIC'
14826       ;;
14827     esac
14828   else
14829     # PORTME Check for flag to pass linker flags through the system compiler.
14830     case $host_os in
14831     aix*)
14832       lt_prog_compiler_wl_GCJ='-Wl,'
14833       if test "$host_cpu" = ia64; then
14834         # AIX 5 now supports IA64 processor
14835         lt_prog_compiler_static_GCJ='-Bstatic'
14836       else
14837         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14838       fi
14839       ;;
14840
14841     mingw* | pw32* | os2*)
14842       # This hack is so that the source file can tell whether it is being
14843       # built for inclusion in a dll (and should export symbols for example).
14844       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14845       ;;
14846
14847     hpux9* | hpux10* | hpux11*)
14848       lt_prog_compiler_wl_GCJ='-Wl,'
14849       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14850       # not for PA HP-UX.
14851       case "$host_cpu" in
14852       hppa*64*|ia64*)
14853         # +Z the default
14854         ;;
14855       *)
14856         lt_prog_compiler_pic_GCJ='+Z'
14857         ;;
14858       esac
14859       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14860       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14861       ;;
14862
14863     irix5* | irix6* | nonstopux*)
14864       lt_prog_compiler_wl_GCJ='-Wl,'
14865       # PIC (with -KPIC) is the default.
14866       lt_prog_compiler_static_GCJ='-non_shared'
14867       ;;
14868
14869     newsos6)
14870       lt_prog_compiler_pic_GCJ='-KPIC'
14871       lt_prog_compiler_static_GCJ='-Bstatic'
14872       ;;
14873
14874     linux*)
14875       case $CC in
14876       icc|ecc)
14877         lt_prog_compiler_wl_GCJ='-Wl,'
14878         lt_prog_compiler_pic_GCJ='-KPIC'
14879         lt_prog_compiler_static_GCJ='-static'
14880         ;;
14881       ccc)
14882         lt_prog_compiler_wl_GCJ='-Wl,'
14883         # All Alpha code is PIC.
14884         lt_prog_compiler_static_GCJ='-non_shared'
14885         ;;
14886       esac
14887       ;;
14888
14889     osf3* | osf4* | osf5*)
14890       lt_prog_compiler_wl_GCJ='-Wl,'
14891       # All OSF/1 code is PIC.
14892       lt_prog_compiler_static_GCJ='-non_shared'
14893       ;;
14894
14895     sco3.2v5*)
14896       lt_prog_compiler_pic_GCJ='-Kpic'
14897       lt_prog_compiler_static_GCJ='-dn'
14898       ;;
14899
14900     solaris*)
14901       lt_prog_compiler_wl_GCJ='-Wl,'
14902       lt_prog_compiler_pic_GCJ='-KPIC'
14903       lt_prog_compiler_static_GCJ='-Bstatic'
14904       ;;
14905
14906     sunos4*)
14907       lt_prog_compiler_wl_GCJ='-Qoption ld '
14908       lt_prog_compiler_pic_GCJ='-PIC'
14909       lt_prog_compiler_static_GCJ='-Bstatic'
14910       ;;
14911
14912     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14913       lt_prog_compiler_wl_GCJ='-Wl,'
14914       lt_prog_compiler_pic_GCJ='-KPIC'
14915       lt_prog_compiler_static_GCJ='-Bstatic'
14916       ;;
14917
14918     sysv4*MP*)
14919       if test -d /usr/nec ;then
14920         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14921         lt_prog_compiler_static_GCJ='-Bstatic'
14922       fi
14923       ;;
14924
14925     uts4*)
14926       lt_prog_compiler_pic_GCJ='-pic'
14927       lt_prog_compiler_static_GCJ='-Bstatic'
14928       ;;
14929
14930     *)
14931       lt_prog_compiler_can_build_shared_GCJ=no
14932       ;;
14933     esac
14934   fi
14935
14936 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14937 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14938
14939 #
14940 # Check to make sure the PIC flag actually works.
14941 #
14942 if test -n "$lt_prog_compiler_pic_GCJ"; then
14943   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14944 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14945 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14946   echo $ECHO_N "(cached) $ECHO_C" >&6
14947 else
14948   lt_prog_compiler_pic_works_GCJ=no
14949   ac_outfile=conftest.$ac_objext
14950    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14951    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14952    # Insert the option either (1) after the last *FLAGS variable, or
14953    # (2) before a word containing "conftest.", or (3) at the end.
14954    # Note that $ac_compile itself does not contain backslashes and begins
14955    # with a dollar sign (not a hyphen), so the echo should work correctly.
14956    # The option is referenced via a variable to avoid confusing sed.
14957    lt_compile=`echo "$ac_compile" | $SED \
14958    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14959    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14960    -e 's:$: $lt_compiler_flag:'`
14961    (eval echo "\"\$as_me:14961: $lt_compile\"" >&5)
14962    (eval "$lt_compile" 2>conftest.err)
14963    ac_status=$?
14964    cat conftest.err >&5
14965    echo "$as_me:14965: \$? = $ac_status" >&5
14966    if (exit $ac_status) && test -s "$ac_outfile"; then
14967      # The compiler can only warn and ignore the option if not recognized
14968      # So say no if there are warnings
14969      if test ! -s conftest.err; then
14970        lt_prog_compiler_pic_works_GCJ=yes
14971      fi
14972    fi
14973    $rm conftest*
14974
14975 fi
14976 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14977 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14978
14979 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14980     case $lt_prog_compiler_pic_GCJ in
14981      "" | " "*) ;;
14982      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14983      esac
14984 else
14985     lt_prog_compiler_pic_GCJ=
14986      lt_prog_compiler_can_build_shared_GCJ=no
14987 fi
14988
14989 fi
14990 case "$host_os" in
14991   # For platforms which do not support PIC, -DPIC is meaningless:
14992   *djgpp*)
14993     lt_prog_compiler_pic_GCJ=
14994     ;;
14995   *)
14996     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14997     ;;
14998 esac
14999
15000 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15001 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15002 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15003   echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005   lt_cv_prog_compiler_c_o_GCJ=no
15006    $rm -r conftest 2>/dev/null
15007    mkdir conftest
15008    cd conftest
15009    mkdir out
15010    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15011
15012    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15013    # that will create temporary files in the current directory regardless of
15014    # the output directory.  Thus, making CWD read-only will cause this test
15015    # to fail, enabling locking or at least warning the user not to do parallel
15016    # builds.
15017    chmod -w .
15018
15019    lt_compiler_flag="-o out/conftest2.$ac_objext"
15020    # Insert the option either (1) after the last *FLAGS variable, or
15021    # (2) before a word containing "conftest.", or (3) at the end.
15022    # Note that $ac_compile itself does not contain backslashes and begins
15023    # with a dollar sign (not a hyphen), so the echo should work correctly.
15024    lt_compile=`echo "$ac_compile" | $SED \
15025    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15026    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15027    -e 's:$: $lt_compiler_flag:'`
15028    (eval echo "\"\$as_me:15028: $lt_compile\"" >&5)
15029    (eval "$lt_compile" 2>out/conftest.err)
15030    ac_status=$?
15031    cat out/conftest.err >&5
15032    echo "$as_me:15032: \$? = $ac_status" >&5
15033    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15034    then
15035      # The compiler can only warn and ignore the option if not recognized
15036      # So say no if there are warnings
15037      if test ! -s out/conftest.err; then
15038        lt_cv_prog_compiler_c_o_GCJ=yes
15039      fi
15040    fi
15041    chmod u+w .
15042    $rm conftest* out/*
15043    rmdir out
15044    cd ..
15045    rmdir conftest
15046    $rm conftest*
15047
15048 fi
15049 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15050 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15051
15052
15053 hard_links="nottested"
15054 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15055   # do not overwrite the value of need_locks provided by the user
15056   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15057 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15058   hard_links=yes
15059   $rm conftest*
15060   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15061   touch conftest.a
15062   ln conftest.a conftest.b 2>&5 || hard_links=no
15063   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15064   echo "$as_me:$LINENO: result: $hard_links" >&5
15065 echo "${ECHO_T}$hard_links" >&6
15066   if test "$hard_links" = no; then
15067     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15068 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15069     need_locks=warn
15070   fi
15071 else
15072   need_locks=no
15073 fi
15074
15075 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15076 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15077
15078   runpath_var=
15079   allow_undefined_flag_GCJ=
15080   enable_shared_with_static_runtimes_GCJ=no
15081   archive_cmds_GCJ=
15082   archive_expsym_cmds_GCJ=
15083   old_archive_From_new_cmds_GCJ=
15084   old_archive_from_expsyms_cmds_GCJ=
15085   export_dynamic_flag_spec_GCJ=
15086   whole_archive_flag_spec_GCJ=
15087   thread_safe_flag_spec_GCJ=
15088   hardcode_libdir_flag_spec_GCJ=
15089   hardcode_libdir_flag_spec_ld_GCJ=
15090   hardcode_libdir_separator_GCJ=
15091   hardcode_direct_GCJ=no
15092   hardcode_minus_L_GCJ=no
15093   hardcode_shlibpath_var_GCJ=unsupported
15094   link_all_deplibs_GCJ=unknown
15095   hardcode_automatic_GCJ=no
15096   module_cmds_GCJ=
15097   module_expsym_cmds_GCJ=
15098   always_export_symbols_GCJ=no
15099   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15100   # include_expsyms should be a list of space-separated symbols to be *always*
15101   # included in the symbol list
15102   include_expsyms_GCJ=
15103   # exclude_expsyms can be an extended regexp of symbols to exclude
15104   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15105   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15106   # as well as any symbol that contains `d'.
15107   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15108   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15109   # platforms (ab)use it in PIC code, but their linkers get confused if
15110   # the symbol is explicitly referenced.  Since portable code cannot
15111   # rely on this symbol name, it's probably fine to never include it in
15112   # preloaded symbol tables.
15113   extract_expsyms_cmds=
15114
15115   case $host_os in
15116   cygwin* | mingw* | pw32*)
15117     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15118     # When not using gcc, we currently assume that we are using
15119     # Microsoft Visual C++.
15120     if test "$GCC" != yes; then
15121       with_gnu_ld=no
15122     fi
15123     ;;
15124   openbsd*)
15125     with_gnu_ld=no
15126     ;;
15127   esac
15128
15129   ld_shlibs_GCJ=yes
15130   if test "$with_gnu_ld" = yes; then
15131     # If archive_cmds runs LD, not CC, wlarc should be empty
15132     wlarc='${wl}'
15133
15134     # See if GNU ld supports shared libraries.
15135     case $host_os in
15136     aix3* | aix4* | aix5*)
15137       # On AIX/PPC, the GNU linker is very broken
15138       if test "$host_cpu" != ia64; then
15139         ld_shlibs_GCJ=no
15140         cat <<EOF 1>&2
15141
15142 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15143 *** to be unable to reliably create shared libraries on AIX.
15144 *** Therefore, libtool is disabling shared libraries support.  If you
15145 *** really care for shared libraries, you may want to modify your PATH
15146 *** so that a non-GNU linker is found, and then restart.
15147
15148 EOF
15149       fi
15150       ;;
15151
15152     amigaos*)
15153       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)'
15154       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15155       hardcode_minus_L_GCJ=yes
15156
15157       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15158       # that the semantics of dynamic libraries on AmigaOS, at least up
15159       # to version 4, is to share data among multiple programs linked
15160       # with the same dynamic library.  Since this doesn't match the
15161       # behavior of shared libraries on other platforms, we can't use
15162       # them.
15163       ld_shlibs_GCJ=no
15164       ;;
15165
15166     beos*)
15167       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15168         allow_undefined_flag_GCJ=unsupported
15169         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15170         # support --undefined.  This deserves some investigation.  FIXME
15171         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15172       else
15173         ld_shlibs_GCJ=no
15174       fi
15175       ;;
15176
15177     cygwin* | mingw* | pw32*)
15178       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15179       # as there is no search path for DLLs.
15180       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15181       allow_undefined_flag_GCJ=unsupported
15182       always_export_symbols_GCJ=no
15183       enable_shared_with_static_runtimes_GCJ=yes
15184       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15185
15186       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15187         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15188         # If the export-symbols file already is a .def file (1st line
15189         # is EXPORTS), use it as is; otherwise, prepend...
15190         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15191           cp $export_symbols $output_objdir/$soname.def;
15192         else
15193           echo EXPORTS > $output_objdir/$soname.def;
15194           cat $export_symbols >> $output_objdir/$soname.def;
15195         fi~
15196         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15197       else
15198         ld_shlibs=no
15199       fi
15200       ;;
15201
15202     netbsd*)
15203       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15204         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15205         wlarc=
15206       else
15207         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15208         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15209       fi
15210       ;;
15211
15212     solaris* | sysv5*)
15213       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15214         ld_shlibs_GCJ=no
15215         cat <<EOF 1>&2
15216
15217 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15218 *** create shared libraries on Solaris systems.  Therefore, libtool
15219 *** is disabling shared libraries support.  We urge you to upgrade GNU
15220 *** binutils to release 2.9.1 or newer.  Another option is to modify
15221 *** your PATH or compiler configuration so that the native linker is
15222 *** used, and then restart.
15223
15224 EOF
15225       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15226         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15227         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15228       else
15229         ld_shlibs_GCJ=no
15230       fi
15231       ;;
15232
15233     sunos4*)
15234       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15235       wlarc=
15236       hardcode_direct_GCJ=yes
15237       hardcode_shlibpath_var_GCJ=no
15238       ;;
15239
15240     *)
15241       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15242         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15243         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15244       else
15245         ld_shlibs_GCJ=no
15246       fi
15247       ;;
15248     esac
15249
15250     if test "$ld_shlibs_GCJ" = yes; then
15251       runpath_var=LD_RUN_PATH
15252       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15253       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15254       # ancient GNU ld didn't support --whole-archive et. al.
15255       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15256         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15257       else
15258         whole_archive_flag_spec_GCJ=
15259       fi
15260     fi
15261   else
15262     # PORTME fill in a description of your system's linker (not GNU ld)
15263     case $host_os in
15264     aix3*)
15265       allow_undefined_flag_GCJ=unsupported
15266       always_export_symbols_GCJ=yes
15267       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'
15268       # Note: this linker hardcodes the directories in LIBPATH if there
15269       # are no directories specified by -L.
15270       hardcode_minus_L_GCJ=yes
15271       if test "$GCC" = yes && test -z "$link_static_flag"; then
15272         # Neither direct hardcoding nor static linking is supported with a
15273         # broken collect2.
15274         hardcode_direct_GCJ=unsupported
15275       fi
15276       ;;
15277
15278     aix4* | aix5*)
15279       if test "$host_cpu" = ia64; then
15280         # On IA64, the linker does run time linking by default, so we don't
15281         # have to do anything special.
15282         aix_use_runtimelinking=no
15283         exp_sym_flag='-Bexport'
15284         no_entry_flag=""
15285       else
15286         # If we're using GNU nm, then we don't want the "-C" option.
15287         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15288         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15289           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'
15290         else
15291           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'
15292         fi
15293         aix_use_runtimelinking=no
15294
15295         # Test if we are trying to use run time linking or normal
15296         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15297         # need to do runtime linking.
15298         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15299           for ld_flag in $LDFLAGS; do
15300           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15301             aix_use_runtimelinking=yes
15302             break
15303           fi
15304           done
15305         esac
15306
15307         exp_sym_flag='-bexport'
15308         no_entry_flag='-bnoentry'
15309       fi
15310
15311       # When large executables or shared objects are built, AIX ld can
15312       # have problems creating the table of contents.  If linking a library
15313       # or program results in "error TOC overflow" add -mminimal-toc to
15314       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15315       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15316
15317       archive_cmds_GCJ=''
15318       hardcode_direct_GCJ=yes
15319       hardcode_libdir_separator_GCJ=':'
15320       link_all_deplibs_GCJ=yes
15321
15322       if test "$GCC" = yes; then
15323         case $host_os in aix4.012|aix4.012.*)
15324         # We only want to do this on AIX 4.2 and lower, the check
15325         # below for broken collect2 doesn't work under 4.3+
15326           collect2name=`${CC} -print-prog-name=collect2`
15327           if test -f "$collect2name" && \
15328            strings "$collect2name" | grep resolve_lib_name >/dev/null
15329           then
15330           # We have reworked collect2
15331           hardcode_direct_GCJ=yes
15332           else
15333           # We have old collect2
15334           hardcode_direct_GCJ=unsupported
15335           # It fails to find uninstalled libraries when the uninstalled
15336           # path is not listed in the libpath.  Setting hardcode_minus_L
15337           # to unsupported forces relinking
15338           hardcode_minus_L_GCJ=yes
15339           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15340           hardcode_libdir_separator_GCJ=
15341           fi
15342         esac
15343         shared_flag='-shared'
15344       else
15345         # not using gcc
15346         if test "$host_cpu" = ia64; then
15347         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15348         # chokes on -Wl,-G. The following line is correct:
15349           shared_flag='-G'
15350         else
15351         if test "$aix_use_runtimelinking" = yes; then
15352             shared_flag='${wl}-G'
15353           else
15354             shared_flag='${wl}-bM:SRE'
15355         fi
15356         fi
15357       fi
15358
15359       # It seems that -bexpall does not export symbols beginning with
15360       # underscore (_), so it is better to generate a list of symbols to export.
15361       always_export_symbols_GCJ=yes
15362       if test "$aix_use_runtimelinking" = yes; then
15363         # Warning - without using the other runtime loading flags (-brtl),
15364         # -berok will link without error, but may produce a broken library.
15365         allow_undefined_flag_GCJ='-berok'
15366        # Determine the default libpath from the value encoded in an empty executable.
15367        cat >conftest.$ac_ext <<_ACEOF
15368 #line $LINENO "configure"
15369 /* confdefs.h.  */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h.  */
15374
15375 int
15376 main ()
15377 {
15378
15379   ;
15380   return 0;
15381 }
15382 _ACEOF
15383 rm -f conftest.$ac_objext conftest$ac_exeext
15384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15385   (eval $ac_link) 2>&5
15386   ac_status=$?
15387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388   (exit $ac_status); } &&
15389          { ac_try='test -s conftest$ac_exeext'
15390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391   (eval $ac_try) 2>&5
15392   ac_status=$?
15393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394   (exit $ac_status); }; }; then
15395
15396 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15397 }'`
15398 # Check for a 64-bit object if we didn't find anything.
15399 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; }
15400 }'`; fi
15401 else
15402   echo "$as_me: failed program was:" >&5
15403 sed 's/^/| /' conftest.$ac_ext >&5
15404
15405 fi
15406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15407 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15408
15409        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15410         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"
15411        else
15412         if test "$host_cpu" = ia64; then
15413           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15414           allow_undefined_flag_GCJ="-z nodefs"
15415           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"
15416         else
15417          # Determine the default libpath from the value encoded in an empty executable.
15418          cat >conftest.$ac_ext <<_ACEOF
15419 #line $LINENO "configure"
15420 /* confdefs.h.  */
15421 _ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h.  */
15425
15426 int
15427 main ()
15428 {
15429
15430   ;
15431   return 0;
15432 }
15433 _ACEOF
15434 rm -f conftest.$ac_objext conftest$ac_exeext
15435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15436   (eval $ac_link) 2>&5
15437   ac_status=$?
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); } &&
15440          { ac_try='test -s conftest$ac_exeext'
15441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442   (eval $ac_try) 2>&5
15443   ac_status=$?
15444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445   (exit $ac_status); }; }; then
15446
15447 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15448 }'`
15449 # Check for a 64-bit object if we didn't find anything.
15450 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; }
15451 }'`; fi
15452 else
15453   echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15455
15456 fi
15457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15458 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15459
15460          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15461           # Warning - without using the other run time loading flags,
15462           # -berok will link without error, but may produce a broken library.
15463           no_undefined_flag_GCJ=' ${wl}-bernotok'
15464           allow_undefined_flag_GCJ=' ${wl}-berok'
15465           # -bexpall does not export symbols beginning with underscore (_)
15466           always_export_symbols_GCJ=yes
15467           # Exported symbols can be pulled into shared objects from archives
15468           whole_archive_flag_spec_GCJ=' '
15469           archive_cmds_need_lc_GCJ=yes
15470           # This is similar to how AIX traditionally builds it's shared libraries.
15471           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'
15472         fi
15473       fi
15474       ;;
15475
15476     amigaos*)
15477       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)'
15478       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15479       hardcode_minus_L_GCJ=yes
15480       # see comment about different semantics on the GNU ld section
15481       ld_shlibs_GCJ=no
15482       ;;
15483
15484     bsdi4*)
15485       export_dynamic_flag_spec_GCJ=-rdynamic
15486       ;;
15487
15488     cygwin* | mingw* | pw32*)
15489       # When not using gcc, we currently assume that we are using
15490       # Microsoft Visual C++.
15491       # hardcode_libdir_flag_spec is actually meaningless, as there is
15492       # no search path for DLLs.
15493       hardcode_libdir_flag_spec_GCJ=' '
15494       allow_undefined_flag_GCJ=unsupported
15495       # Tell ltmain to make .lib files, not .a files.
15496       libext=lib
15497       # Tell ltmain to make .dll files, not .so files.
15498       shrext=".dll"
15499       # FIXME: Setting linknames here is a bad hack.
15500       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15501       # The linker will automatically build a .lib file if we build a DLL.
15502       old_archive_From_new_cmds_GCJ='true'
15503       # FIXME: Should let the user specify the lib program.
15504       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15505       fix_srcfile_path='`cygpath -w "$srcfile"`'
15506       enable_shared_with_static_runtimes_GCJ=yes
15507       ;;
15508
15509     darwin* | rhapsody*)
15510     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15511       archive_cmds_need_lc_GCJ=no
15512       case "$host_os" in
15513       rhapsody* | darwin1.[012])
15514         allow_undefined_flag_GCJ='-undefined suppress'
15515         ;;
15516       *) # Darwin 1.3 on
15517         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15518         ;;
15519       esac
15520       # FIXME: Relying on posixy $() will cause problems for
15521       #        cross-compilation, but unfortunately the echo tests do not
15522       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15523       #        `"' quotes if we put them in here... so don't!
15524         lt_int_apple_cc_single_mod=no
15525         output_verbose_link_cmd='echo'
15526         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15527           lt_int_apple_cc_single_mod=yes
15528         fi
15529         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15530           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15531         else
15532         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'
15533       fi
15534       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15535       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15536         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15537           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}'
15538         else
15539           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}'
15540         fi
15541           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}'
15542       hardcode_direct_GCJ=no
15543       hardcode_automatic_GCJ=yes
15544       hardcode_shlibpath_var_GCJ=unsupported
15545       whole_archive_flag_spec_GCJ='-all_load $convenience'
15546       link_all_deplibs_GCJ=yes
15547     fi
15548       ;;
15549
15550     dgux*)
15551       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15552       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15553       hardcode_shlibpath_var_GCJ=no
15554       ;;
15555
15556     freebsd1*)
15557       ld_shlibs_GCJ=no
15558       ;;
15559
15560     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15561     # support.  Future versions do this automatically, but an explicit c++rt0.o
15562     # does not break anything, and helps significantly (at the cost of a little
15563     # extra space).
15564     freebsd2.2*)
15565       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15566       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15567       hardcode_direct_GCJ=yes
15568       hardcode_shlibpath_var_GCJ=no
15569       ;;
15570
15571     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15572     freebsd2*)
15573       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15574       hardcode_direct_GCJ=yes
15575       hardcode_minus_L_GCJ=yes
15576       hardcode_shlibpath_var_GCJ=no
15577       ;;
15578
15579     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15580     freebsd*)
15581       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15582       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15583       hardcode_direct_GCJ=yes
15584       hardcode_shlibpath_var_GCJ=no
15585       ;;
15586
15587     hpux9*)
15588       if test "$GCC" = yes; then
15589         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'
15590       else
15591         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'
15592       fi
15593       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15594       hardcode_libdir_separator_GCJ=:
15595       hardcode_direct_GCJ=yes
15596
15597       # hardcode_minus_L: Not really in the search PATH,
15598       # but as the default location of the library.
15599       hardcode_minus_L_GCJ=yes
15600       export_dynamic_flag_spec_GCJ='${wl}-E'
15601       ;;
15602
15603     hpux10* | hpux11*)
15604       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15605         case "$host_cpu" in
15606         hppa*64*|ia64*)
15607           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15608           ;;
15609         *)
15610           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15611           ;;
15612         esac
15613       else
15614         case "$host_cpu" in
15615         hppa*64*|ia64*)
15616           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15617           ;;
15618         *)
15619           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15620           ;;
15621         esac
15622       fi
15623       if test "$with_gnu_ld" = no; then
15624         case "$host_cpu" in
15625         hppa*64*)
15626           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15627           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15628           hardcode_libdir_separator_GCJ=:
15629           hardcode_direct_GCJ=no
15630           hardcode_shlibpath_var_GCJ=no
15631           ;;
15632         ia64*)
15633           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15634           hardcode_direct_GCJ=no
15635           hardcode_shlibpath_var_GCJ=no
15636
15637           # hardcode_minus_L: Not really in the search PATH,
15638           # but as the default location of the library.
15639           hardcode_minus_L_GCJ=yes
15640           ;;
15641         *)
15642           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15643           hardcode_libdir_separator_GCJ=:
15644           hardcode_direct_GCJ=yes
15645           export_dynamic_flag_spec_GCJ='${wl}-E'
15646
15647           # hardcode_minus_L: Not really in the search PATH,
15648           # but as the default location of the library.
15649           hardcode_minus_L_GCJ=yes
15650           ;;
15651         esac
15652       fi
15653       ;;
15654
15655     irix5* | irix6* | nonstopux*)
15656       if test "$GCC" = yes; then
15657         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'
15658       else
15659         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'
15660         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15661       fi
15662       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15663       hardcode_libdir_separator_GCJ=:
15664       link_all_deplibs_GCJ=yes
15665       ;;
15666
15667     netbsd*)
15668       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15669         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15670       else
15671         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15672       fi
15673       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15674       hardcode_direct_GCJ=yes
15675       hardcode_shlibpath_var_GCJ=no
15676       ;;
15677
15678     newsos6)
15679       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15680       hardcode_direct_GCJ=yes
15681       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15682       hardcode_libdir_separator_GCJ=:
15683       hardcode_shlibpath_var_GCJ=no
15684       ;;
15685
15686     openbsd*)
15687       hardcode_direct_GCJ=yes
15688       hardcode_shlibpath_var_GCJ=no
15689       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15690         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15691         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15692         export_dynamic_flag_spec_GCJ='${wl}-E'
15693       else
15694        case $host_os in
15695          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15696            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15697            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15698            ;;
15699          *)
15700            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15701            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15702            ;;
15703        esac
15704       fi
15705       ;;
15706
15707     os2*)
15708       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15709       hardcode_minus_L_GCJ=yes
15710       allow_undefined_flag_GCJ=unsupported
15711       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'
15712       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15713       ;;
15714
15715     osf3*)
15716       if test "$GCC" = yes; then
15717         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15718         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'
15719       else
15720         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15721         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'
15722       fi
15723       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15724       hardcode_libdir_separator_GCJ=:
15725       ;;
15726
15727     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15728       if test "$GCC" = yes; then
15729         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15730         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'
15731         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15732       else
15733         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15734         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'
15735         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~
15736         $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'
15737
15738         # Both c and cxx compiler support -rpath directly
15739         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15740       fi
15741       hardcode_libdir_separator_GCJ=:
15742       ;;
15743
15744     sco3.2v5*)
15745       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15746       hardcode_shlibpath_var_GCJ=no
15747       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15748       runpath_var=LD_RUN_PATH
15749       hardcode_runpath_var=yes
15750       ;;
15751
15752     solaris*)
15753       no_undefined_flag_GCJ=' -z text'
15754       if test "$GCC" = yes; then
15755         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15756         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15757           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15758       else
15759         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15760         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15761         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15762       fi
15763       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15764       hardcode_shlibpath_var_GCJ=no
15765       case $host_os in
15766       solaris2.[0-5] | solaris2.[0-5].*) ;;
15767       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15768         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15769       esac
15770       link_all_deplibs_GCJ=yes
15771       ;;
15772
15773     sunos4*)
15774       if test "x$host_vendor" = xsequent; then
15775         # Use $CC to link under sequent, because it throws in some extra .o
15776         # files that make .init and .fini sections work.
15777         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15778       else
15779         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15780       fi
15781       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15782       hardcode_direct_GCJ=yes
15783       hardcode_minus_L_GCJ=yes
15784       hardcode_shlibpath_var_GCJ=no
15785       ;;
15786
15787     sysv4)
15788       case $host_vendor in
15789         sni)
15790           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15791           hardcode_direct_GCJ=yes # is this really true???
15792         ;;
15793         siemens)
15794           ## LD is ld it makes a PLAMLIB
15795           ## CC just makes a GrossModule.
15796           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15797           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15798           hardcode_direct_GCJ=no
15799         ;;
15800         motorola)
15801           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15802           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15803         ;;
15804       esac
15805       runpath_var='LD_RUN_PATH'
15806       hardcode_shlibpath_var_GCJ=no
15807       ;;
15808
15809     sysv4.3*)
15810       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15811       hardcode_shlibpath_var_GCJ=no
15812       export_dynamic_flag_spec_GCJ='-Bexport'
15813       ;;
15814
15815     sysv4*MP*)
15816       if test -d /usr/nec; then
15817         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15818         hardcode_shlibpath_var_GCJ=no
15819         runpath_var=LD_RUN_PATH
15820         hardcode_runpath_var=yes
15821         ld_shlibs_GCJ=yes
15822       fi
15823       ;;
15824
15825     sysv4.2uw2*)
15826       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15827       hardcode_direct_GCJ=yes
15828       hardcode_minus_L_GCJ=no
15829       hardcode_shlibpath_var_GCJ=no
15830       hardcode_runpath_var=yes
15831       runpath_var=LD_RUN_PATH
15832       ;;
15833
15834    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15835       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15836       if test "$GCC" = yes; then
15837         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15838       else
15839         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15840       fi
15841       runpath_var='LD_RUN_PATH'
15842       hardcode_shlibpath_var_GCJ=no
15843       ;;
15844
15845     sysv5*)
15846       no_undefined_flag_GCJ=' -z text'
15847       # $CC -shared without GNU ld will not create a library from C++
15848       # object files and a static libstdc++, better avoid it by now
15849       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15850       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15851                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15852       hardcode_libdir_flag_spec_GCJ=
15853       hardcode_shlibpath_var_GCJ=no
15854       runpath_var='LD_RUN_PATH'
15855       ;;
15856
15857     uts4*)
15858       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15859       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15860       hardcode_shlibpath_var_GCJ=no
15861       ;;
15862
15863     *)
15864       ld_shlibs_GCJ=no
15865       ;;
15866     esac
15867   fi
15868
15869 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15870 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15871 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15872
15873 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15874 if test "$GCC" = yes; then
15875   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15876 fi
15877
15878 #
15879 # Do we need to explicitly link libc?
15880 #
15881 case "x$archive_cmds_need_lc_GCJ" in
15882 x|xyes)
15883   # Assume -lc should be added
15884   archive_cmds_need_lc_GCJ=yes
15885
15886   if test "$enable_shared" = yes && test "$GCC" = yes; then
15887     case $archive_cmds_GCJ in
15888     *'~'*)
15889       # FIXME: we may have to deal with multi-command sequences.
15890       ;;
15891     '$CC '*)
15892       # Test whether the compiler implicitly links with -lc since on some
15893       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15894       # to ld, don't add -lc before -lgcc.
15895       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15896 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15897       $rm conftest*
15898       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15899
15900       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15901   (eval $ac_compile) 2>&5
15902   ac_status=$?
15903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904   (exit $ac_status); } 2>conftest.err; then
15905         soname=conftest
15906         lib=conftest
15907         libobjs=conftest.$ac_objext
15908         deplibs=
15909         wl=$lt_prog_compiler_wl_GCJ
15910         compiler_flags=-v
15911         linker_flags=-v
15912         verstring=
15913         output_objdir=.
15914         libname=conftest
15915         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15916         allow_undefined_flag_GCJ=
15917         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15918   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15919   ac_status=$?
15920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921   (exit $ac_status); }
15922         then
15923           archive_cmds_need_lc_GCJ=no
15924         else
15925           archive_cmds_need_lc_GCJ=yes
15926         fi
15927         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15928       else
15929         cat conftest.err 1>&5
15930       fi
15931       $rm conftest*
15932       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15933 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15934       ;;
15935     esac
15936   fi
15937   ;;
15938 esac
15939
15940 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15941 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15942 hardcode_action_GCJ=
15943 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15944    test -n "$runpath_var GCJ" || \
15945    test "X$hardcode_automatic_GCJ"="Xyes" ; then
15946
15947   # We can hardcode non-existant directories.
15948   if test "$hardcode_direct_GCJ" != no &&
15949      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15950      # have to relink, otherwise we might link with an installed library
15951      # when we should be linking with a yet-to-be-installed one
15952      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15953      test "$hardcode_minus_L_GCJ" != no; then
15954     # Linking always hardcodes the temporary library directory.
15955     hardcode_action_GCJ=relink
15956   else
15957     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15958     hardcode_action_GCJ=immediate
15959   fi
15960 else
15961   # We cannot hardcode anything, or else we can only hardcode existing
15962   # directories.
15963   hardcode_action_GCJ=unsupported
15964 fi
15965 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15966 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15967
15968 if test "$hardcode_action_GCJ" = relink; then
15969   # Fast installation is not supported
15970   enable_fast_install=no
15971 elif test "$shlibpath_overrides_runpath" = yes ||
15972      test "$enable_shared" = no; then
15973   # Fast installation is not necessary
15974   enable_fast_install=needless
15975 fi
15976
15977 striplib=
15978 old_striplib=
15979 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15980 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15981 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15982   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15983   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15984   echo "$as_me:$LINENO: result: yes" >&5
15985 echo "${ECHO_T}yes" >&6
15986 else
15987 # FIXME - insert some real tests, host_os isn't really good enough
15988   case $host_os in
15989    darwin*)
15990        if test -n "$STRIP" ; then
15991          striplib="$STRIP -x"
15992          echo "$as_me:$LINENO: result: yes" >&5
15993 echo "${ECHO_T}yes" >&6
15994        else
15995   echo "$as_me:$LINENO: result: no" >&5
15996 echo "${ECHO_T}no" >&6
15997 fi
15998        ;;
15999    *)
16000   echo "$as_me:$LINENO: result: no" >&5
16001 echo "${ECHO_T}no" >&6
16002     ;;
16003   esac
16004 fi
16005
16006 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16007 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16008 library_names_spec=
16009 libname_spec='lib$name'
16010 soname_spec=
16011 shrext=".so"
16012 postinstall_cmds=
16013 postuninstall_cmds=
16014 finish_cmds=
16015 finish_eval=
16016 shlibpath_var=
16017 shlibpath_overrides_runpath=unknown
16018 version_type=none
16019 dynamic_linker="$host_os ld.so"
16020 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16021 if test "$GCC" = yes; then
16022   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16023   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16024     # if the path contains ";" then we assume it to be the separator
16025     # otherwise default to the standard path separator (i.e. ":") - it is
16026     # assumed that no part of a normal pathname contains ";" but that should
16027     # okay in the real world where ";" in dirpaths is itself problematic.
16028     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16029   else
16030     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16031   fi
16032 else
16033   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16034 fi
16035 need_lib_prefix=unknown
16036 hardcode_into_libs=no
16037
16038 # when you set need_version to no, make sure it does not cause -set_version
16039 # flags to be left without arguments
16040 need_version=unknown
16041
16042 case $host_os in
16043 aix3*)
16044   version_type=linux
16045   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16046   shlibpath_var=LIBPATH
16047
16048   # AIX 3 has no versioning support, so we append a major version to the name.
16049   soname_spec='${libname}${release}${shared_ext}$major'
16050   ;;
16051
16052 aix4* | aix5*)
16053   version_type=linux
16054   need_lib_prefix=no
16055   need_version=no
16056   hardcode_into_libs=yes
16057   if test "$host_cpu" = ia64; then
16058     # AIX 5 supports IA64
16059     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16060     shlibpath_var=LD_LIBRARY_PATH
16061   else
16062     # With GCC up to 2.95.x, collect2 would create an import file
16063     # for dependence libraries.  The import file would start with
16064     # the line `#! .'.  This would cause the generated library to
16065     # depend on `.', always an invalid library.  This was fixed in
16066     # development snapshots of GCC prior to 3.0.
16067     case $host_os in
16068       aix4 | aix4.[01] | aix4.[01].*)
16069       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16070            echo ' yes '
16071            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16072         :
16073       else
16074         can_build_shared=no
16075       fi
16076       ;;
16077     esac
16078     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16079     # soname into executable. Probably we can add versioning support to
16080     # collect2, so additional links can be useful in future.
16081     if test "$aix_use_runtimelinking" = yes; then
16082       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16083       # instead of lib<name>.a to let people know that these are not
16084       # typical AIX shared libraries.
16085       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086     else
16087       # We preserve .a as extension for shared libraries through AIX4.2
16088       # and later when we are not doing run time linking.
16089       library_names_spec='${libname}${release}.a $libname.a'
16090       soname_spec='${libname}${release}${shared_ext}$major'
16091     fi
16092     shlibpath_var=LIBPATH
16093   fi
16094   ;;
16095
16096 amigaos*)
16097   library_names_spec='$libname.ixlibrary $libname.a'
16098   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16099   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'
16100   ;;
16101
16102 beos*)
16103   library_names_spec='${libname}${shared_ext}'
16104   dynamic_linker="$host_os ld.so"
16105   shlibpath_var=LIBRARY_PATH
16106   ;;
16107
16108 bsdi4*)
16109   version_type=linux
16110   need_version=no
16111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112   soname_spec='${libname}${release}${shared_ext}$major'
16113   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16114   shlibpath_var=LD_LIBRARY_PATH
16115   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16116   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16117   # the default ld.so.conf also contains /usr/contrib/lib and
16118   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16119   # libtool to hard-code these into programs
16120   ;;
16121
16122 cygwin* | mingw* | pw32*)
16123   version_type=windows
16124   shrext=".dll"
16125   need_version=no
16126   need_lib_prefix=no
16127
16128   case $GCC,$host_os in
16129   yes,cygwin* | yes,mingw* | yes,pw32*)
16130     library_names_spec='$libname.dll.a'
16131     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16132     postinstall_cmds='base_file=`basename \${file}`~
16133       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16134       dldir=$destdir/`dirname \$dlpath`~
16135       test -d \$dldir || mkdir -p \$dldir~
16136       $install_prog $dir/$dlname \$dldir/$dlname'
16137     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16138       dlpath=$dir/\$dldll~
16139        $rm \$dlpath'
16140     shlibpath_overrides_runpath=yes
16141
16142     case $host_os in
16143     cygwin*)
16144       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16145       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16146       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16147       ;;
16148     mingw*)
16149       # MinGW DLLs use traditional 'lib' prefix
16150       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16151       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16152       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16153         # It is most probably a Windows format PATH printed by
16154         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16155         # path with ; separators, and with drive letters. We can handle the
16156         # drive letters (cygwin fileutils understands them), so leave them,
16157         # especially as we might pass files found there to a mingw objdump,
16158         # which wouldn't understand a cygwinified path. Ahh.
16159         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16160       else
16161         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16162       fi
16163       ;;
16164     pw32*)
16165       # pw32 DLLs use 'pw' prefix rather than 'lib'
16166       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16167       ;;
16168     esac
16169     ;;
16170
16171   *)
16172     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16173     ;;
16174   esac
16175   dynamic_linker='Win32 ld.exe'
16176   # FIXME: first we should search . and the directory the executable is in
16177   shlibpath_var=PATH
16178   ;;
16179
16180 darwin* | rhapsody*)
16181   dynamic_linker="$host_os dyld"
16182   version_type=darwin
16183   need_lib_prefix=no
16184   need_version=no
16185   # FIXME: Relying on posixy $() will cause problems for
16186   #        cross-compilation, but unfortunately the echo tests do not
16187   #        yet detect zsh echo's removal of \ escapes.
16188   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16189   soname_spec='${libname}${release}${major}$shared_ext'
16190   shlibpath_overrides_runpath=yes
16191   shlibpath_var=DYLD_LIBRARY_PATH
16192   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16193   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16194   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16195   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"`
16196   fi
16197   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16198   ;;
16199
16200 dgux*)
16201   version_type=linux
16202   need_lib_prefix=no
16203   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
16207   ;;
16208
16209 freebsd1*)
16210   dynamic_linker=no
16211   ;;
16212
16213 freebsd*)
16214   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16215   version_type=freebsd-$objformat
16216   case $version_type in
16217     freebsd-elf*)
16218       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16219       need_version=no
16220       need_lib_prefix=no
16221       ;;
16222     freebsd-*)
16223       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16224       need_version=yes
16225       ;;
16226   esac
16227   shlibpath_var=LD_LIBRARY_PATH
16228   case $host_os in
16229   freebsd2*)
16230     shlibpath_overrides_runpath=yes
16231     ;;
16232   freebsd3.01* | freebsdelf3.01*)
16233     shlibpath_overrides_runpath=yes
16234     hardcode_into_libs=yes
16235     ;;
16236   *) # from 3.2 on
16237     shlibpath_overrides_runpath=no
16238     hardcode_into_libs=yes
16239     ;;
16240   esac
16241   ;;
16242
16243 gnu*)
16244   version_type=linux
16245   need_lib_prefix=no
16246   need_version=no
16247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16248   soname_spec='${libname}${release}${shared_ext}$major'
16249   shlibpath_var=LD_LIBRARY_PATH
16250   hardcode_into_libs=yes
16251   ;;
16252
16253 hpux9* | hpux10* | hpux11*)
16254   # Give a soname corresponding to the major version so that dld.sl refuses to
16255   # link against other versions.
16256   version_type=sunos
16257   need_lib_prefix=no
16258   need_version=no
16259   case "$host_cpu" in
16260   ia64*)
16261     shrext='.so'
16262     hardcode_into_libs=yes
16263     dynamic_linker="$host_os dld.so"
16264     shlibpath_var=LD_LIBRARY_PATH
16265     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16267     soname_spec='${libname}${release}${shared_ext}$major'
16268     if test "X$HPUX_IA64_MODE" = X32; then
16269       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16270     else
16271       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16272     fi
16273     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16274     ;;
16275    hppa*64*)
16276      shrext='.sl'
16277      hardcode_into_libs=yes
16278      dynamic_linker="$host_os dld.sl"
16279      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16280      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16281      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16282      soname_spec='${libname}${release}${shared_ext}$major'
16283      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16284      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16285      ;;
16286    *)
16287     shrext='.sl'
16288     dynamic_linker="$host_os dld.sl"
16289     shlibpath_var=SHLIB_PATH
16290     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16291     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16292     soname_spec='${libname}${release}${shared_ext}$major'
16293     ;;
16294   esac
16295   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16296   postinstall_cmds='chmod 555 $lib'
16297   ;;
16298
16299 irix5* | irix6* | nonstopux*)
16300   case $host_os in
16301     nonstopux*) version_type=nonstopux ;;
16302     *)
16303         if test "$lt_cv_prog_gnu_ld" = yes; then
16304                 version_type=linux
16305         else
16306                 version_type=irix
16307         fi ;;
16308   esac
16309   need_lib_prefix=no
16310   need_version=no
16311   soname_spec='${libname}${release}${shared_ext}$major'
16312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16313   case $host_os in
16314   irix5* | nonstopux*)
16315     libsuff= shlibsuff=
16316     ;;
16317   *)
16318     case $LD in # libtool.m4 will add one of these switches to LD
16319     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16320       libsuff= shlibsuff= libmagic=32-bit;;
16321     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16322       libsuff=32 shlibsuff=N32 libmagic=N32;;
16323     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16324       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16325     *) libsuff= shlibsuff= libmagic=never-match;;
16326     esac
16327     ;;
16328   esac
16329   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16330   shlibpath_overrides_runpath=no
16331   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16332   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16333   hardcode_into_libs=yes
16334   ;;
16335
16336 # No shared lib support for Linux oldld, aout, or coff.
16337 linux*oldld* | linux*aout* | linux*coff*)
16338   dynamic_linker=no
16339   ;;
16340
16341 # This must be Linux ELF.
16342 linux*)
16343   version_type=linux
16344   need_lib_prefix=no
16345   need_version=no
16346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347   soname_spec='${libname}${release}${shared_ext}$major'
16348   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16349   shlibpath_var=LD_LIBRARY_PATH
16350   shlibpath_overrides_runpath=no
16351   # This implies no fast_install, which is unacceptable.
16352   # Some rework will be needed to allow for fast_install
16353   # before this can be enabled.
16354   hardcode_into_libs=yes
16355
16356   # We used to test for /lib/ld.so.1 and disable shared libraries on
16357   # powerpc, because MkLinux only supported shared libraries with the
16358   # GNU dynamic linker.  Since this was broken with cross compilers,
16359   # most powerpc-linux boxes support dynamic linking these days and
16360   # people can always --disable-shared, the test was removed, and we
16361   # assume the GNU/Linux dynamic linker is in use.
16362   dynamic_linker='GNU/Linux ld.so'
16363   ;;
16364
16365 netbsd*)
16366   version_type=sunos
16367   need_lib_prefix=no
16368   need_version=no
16369   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16370     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16371     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16372     dynamic_linker='NetBSD (a.out) ld.so'
16373   else
16374     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16375     soname_spec='${libname}${release}${shared_ext}$major'
16376     dynamic_linker='NetBSD ld.elf_so'
16377   fi
16378   shlibpath_var=LD_LIBRARY_PATH
16379   shlibpath_overrides_runpath=yes
16380   hardcode_into_libs=yes
16381   ;;
16382
16383 newsos6)
16384   version_type=linux
16385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16386   shlibpath_var=LD_LIBRARY_PATH
16387   shlibpath_overrides_runpath=yes
16388   ;;
16389
16390 nto-qnx)
16391   version_type=linux
16392   need_lib_prefix=no
16393   need_version=no
16394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16395   soname_spec='${libname}${release}${shared_ext}$major'
16396   shlibpath_var=LD_LIBRARY_PATH
16397   shlibpath_overrides_runpath=yes
16398   ;;
16399
16400 openbsd*)
16401   version_type=sunos
16402   need_lib_prefix=no
16403   need_version=no
16404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16405   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16406   shlibpath_var=LD_LIBRARY_PATH
16407   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16408     case $host_os in
16409       openbsd2.[89] | openbsd2.[89].*)
16410         shlibpath_overrides_runpath=no
16411         ;;
16412       *)
16413         shlibpath_overrides_runpath=yes
16414         ;;
16415       esac
16416   else
16417     shlibpath_overrides_runpath=yes
16418   fi
16419   ;;
16420
16421 os2*)
16422   libname_spec='$name'
16423   shrext=".dll"
16424   need_lib_prefix=no
16425   library_names_spec='$libname${shared_ext} $libname.a'
16426   dynamic_linker='OS/2 ld.exe'
16427   shlibpath_var=LIBPATH
16428   ;;
16429
16430 osf3* | osf4* | osf5*)
16431   version_type=osf
16432   need_lib_prefix=no
16433   need_version=no
16434   soname_spec='${libname}${release}${shared_ext}$major'
16435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16436   shlibpath_var=LD_LIBRARY_PATH
16437   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16438   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16439   ;;
16440
16441 sco3.2v5*)
16442   version_type=osf
16443   soname_spec='${libname}${release}${shared_ext}$major'
16444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16445   shlibpath_var=LD_LIBRARY_PATH
16446   ;;
16447
16448 solaris*)
16449   version_type=linux
16450   need_lib_prefix=no
16451   need_version=no
16452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16453   soname_spec='${libname}${release}${shared_ext}$major'
16454   shlibpath_var=LD_LIBRARY_PATH
16455   shlibpath_overrides_runpath=yes
16456   hardcode_into_libs=yes
16457   # ldd complains unless libraries are executable
16458   postinstall_cmds='chmod +x $lib'
16459   ;;
16460
16461 sunos4*)
16462   version_type=sunos
16463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16464   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16465   shlibpath_var=LD_LIBRARY_PATH
16466   shlibpath_overrides_runpath=yes
16467   if test "$with_gnu_ld" = yes; then
16468     need_lib_prefix=no
16469   fi
16470   need_version=yes
16471   ;;
16472
16473 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16474   version_type=linux
16475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476   soname_spec='${libname}${release}${shared_ext}$major'
16477   shlibpath_var=LD_LIBRARY_PATH
16478   case $host_vendor in
16479     sni)
16480       shlibpath_overrides_runpath=no
16481       need_lib_prefix=no
16482       export_dynamic_flag_spec='${wl}-Blargedynsym'
16483       runpath_var=LD_RUN_PATH
16484       ;;
16485     siemens)
16486       need_lib_prefix=no
16487       ;;
16488     motorola)
16489       need_lib_prefix=no
16490       need_version=no
16491       shlibpath_overrides_runpath=no
16492       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16493       ;;
16494   esac
16495   ;;
16496
16497 sysv4*MP*)
16498   if test -d /usr/nec ;then
16499     version_type=linux
16500     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16501     soname_spec='$libname${shared_ext}.$major'
16502     shlibpath_var=LD_LIBRARY_PATH
16503   fi
16504   ;;
16505
16506 uts4*)
16507   version_type=linux
16508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16509   soname_spec='${libname}${release}${shared_ext}$major'
16510   shlibpath_var=LD_LIBRARY_PATH
16511   ;;
16512
16513 *)
16514   dynamic_linker=no
16515   ;;
16516 esac
16517 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16518 echo "${ECHO_T}$dynamic_linker" >&6
16519 test "$dynamic_linker" = no && can_build_shared=no
16520
16521 if test "x$enable_dlopen" != xyes; then
16522   enable_dlopen=unknown
16523   enable_dlopen_self=unknown
16524   enable_dlopen_self_static=unknown
16525 else
16526   lt_cv_dlopen=no
16527   lt_cv_dlopen_libs=
16528
16529   case $host_os in
16530   beos*)
16531     lt_cv_dlopen="load_add_on"
16532     lt_cv_dlopen_libs=
16533     lt_cv_dlopen_self=yes
16534     ;;
16535
16536   mingw* | pw32*)
16537     lt_cv_dlopen="LoadLibrary"
16538     lt_cv_dlopen_libs=
16539    ;;
16540
16541   cygwin*)
16542     lt_cv_dlopen="dlopen"
16543     lt_cv_dlopen_libs=
16544    ;;
16545
16546   darwin*)
16547   # if libdl is installed we need to link against it
16548     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16549 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16550 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16551   echo $ECHO_N "(cached) $ECHO_C" >&6
16552 else
16553   ac_check_lib_save_LIBS=$LIBS
16554 LIBS="-ldl  $LIBS"
16555 cat >conftest.$ac_ext <<_ACEOF
16556 #line $LINENO "configure"
16557 /* confdefs.h.  */
16558 _ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h.  */
16562
16563 /* Override any gcc2 internal prototype to avoid an error.  */
16564 #ifdef __cplusplus
16565 extern "C"
16566 #endif
16567 /* We use char because int might match the return type of a gcc2
16568    builtin and then its argument prototype would still apply.  */
16569 char dlopen ();
16570 int
16571 main ()
16572 {
16573 dlopen ();
16574   ;
16575   return 0;
16576 }
16577 _ACEOF
16578 rm -f conftest.$ac_objext conftest$ac_exeext
16579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16580   (eval $ac_link) 2>&5
16581   ac_status=$?
16582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583   (exit $ac_status); } &&
16584          { ac_try='test -s conftest$ac_exeext'
16585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586   (eval $ac_try) 2>&5
16587   ac_status=$?
16588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589   (exit $ac_status); }; }; then
16590   ac_cv_lib_dl_dlopen=yes
16591 else
16592   echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16594
16595 ac_cv_lib_dl_dlopen=no
16596 fi
16597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16598 LIBS=$ac_check_lib_save_LIBS
16599 fi
16600 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16601 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16602 if test $ac_cv_lib_dl_dlopen = yes; then
16603   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16604 else
16605
16606     lt_cv_dlopen="dyld"
16607     lt_cv_dlopen_libs=
16608     lt_cv_dlopen_self=yes
16609
16610 fi
16611
16612    ;;
16613
16614   *)
16615     echo "$as_me:$LINENO: checking for shl_load" >&5
16616 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16617 if test "${ac_cv_func_shl_load+set}" = set; then
16618   echo $ECHO_N "(cached) $ECHO_C" >&6
16619 else
16620   cat >conftest.$ac_ext <<_ACEOF
16621 #line $LINENO "configure"
16622 /* confdefs.h.  */
16623 _ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h.  */
16627 /* System header to define __stub macros and hopefully few prototypes,
16628     which can conflict with char shl_load (); below.
16629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16630     <limits.h> exists even on freestanding compilers.  */
16631 #ifdef __STDC__
16632 # include <limits.h>
16633 #else
16634 # include <assert.h>
16635 #endif
16636 /* Override any gcc2 internal prototype to avoid an error.  */
16637 #ifdef __cplusplus
16638 extern "C"
16639 {
16640 #endif
16641 /* We use char because int might match the return type of a gcc2
16642    builtin and then its argument prototype would still apply.  */
16643 char shl_load ();
16644 /* The GNU C library defines this for functions which it implements
16645     to always fail with ENOSYS.  Some functions are actually named
16646     something starting with __ and the normal name is an alias.  */
16647 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16648 choke me
16649 #else
16650 char (*f) () = shl_load;
16651 #endif
16652 #ifdef __cplusplus
16653 }
16654 #endif
16655
16656 int
16657 main ()
16658 {
16659 return f != shl_load;
16660   ;
16661   return 0;
16662 }
16663 _ACEOF
16664 rm -f conftest.$ac_objext conftest$ac_exeext
16665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16666   (eval $ac_link) 2>&5
16667   ac_status=$?
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); } &&
16670          { ac_try='test -s conftest$ac_exeext'
16671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672   (eval $ac_try) 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); }; }; then
16676   ac_cv_func_shl_load=yes
16677 else
16678   echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16680
16681 ac_cv_func_shl_load=no
16682 fi
16683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16684 fi
16685 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16686 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16687 if test $ac_cv_func_shl_load = yes; then
16688   lt_cv_dlopen="shl_load"
16689 else
16690   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16691 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16692 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16693   echo $ECHO_N "(cached) $ECHO_C" >&6
16694 else
16695   ac_check_lib_save_LIBS=$LIBS
16696 LIBS="-ldld  $LIBS"
16697 cat >conftest.$ac_ext <<_ACEOF
16698 #line $LINENO "configure"
16699 /* confdefs.h.  */
16700 _ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h.  */
16704
16705 /* Override any gcc2 internal prototype to avoid an error.  */
16706 #ifdef __cplusplus
16707 extern "C"
16708 #endif
16709 /* We use char because int might match the return type of a gcc2
16710    builtin and then its argument prototype would still apply.  */
16711 char shl_load ();
16712 int
16713 main ()
16714 {
16715 shl_load ();
16716   ;
16717   return 0;
16718 }
16719 _ACEOF
16720 rm -f conftest.$ac_objext conftest$ac_exeext
16721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16722   (eval $ac_link) 2>&5
16723   ac_status=$?
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); } &&
16726          { ac_try='test -s conftest$ac_exeext'
16727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728   (eval $ac_try) 2>&5
16729   ac_status=$?
16730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731   (exit $ac_status); }; }; then
16732   ac_cv_lib_dld_shl_load=yes
16733 else
16734   echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16736
16737 ac_cv_lib_dld_shl_load=no
16738 fi
16739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16740 LIBS=$ac_check_lib_save_LIBS
16741 fi
16742 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16743 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16744 if test $ac_cv_lib_dld_shl_load = yes; then
16745   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16746 else
16747   echo "$as_me:$LINENO: checking for dlopen" >&5
16748 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16749 if test "${ac_cv_func_dlopen+set}" = set; then
16750   echo $ECHO_N "(cached) $ECHO_C" >&6
16751 else
16752   cat >conftest.$ac_ext <<_ACEOF
16753 #line $LINENO "configure"
16754 /* confdefs.h.  */
16755 _ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h.  */
16759 /* System header to define __stub macros and hopefully few prototypes,
16760     which can conflict with char dlopen (); below.
16761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16762     <limits.h> exists even on freestanding compilers.  */
16763 #ifdef __STDC__
16764 # include <limits.h>
16765 #else
16766 # include <assert.h>
16767 #endif
16768 /* Override any gcc2 internal prototype to avoid an error.  */
16769 #ifdef __cplusplus
16770 extern "C"
16771 {
16772 #endif
16773 /* We use char because int might match the return type of a gcc2
16774    builtin and then its argument prototype would still apply.  */
16775 char dlopen ();
16776 /* The GNU C library defines this for functions which it implements
16777     to always fail with ENOSYS.  Some functions are actually named
16778     something starting with __ and the normal name is an alias.  */
16779 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16780 choke me
16781 #else
16782 char (*f) () = dlopen;
16783 #endif
16784 #ifdef __cplusplus
16785 }
16786 #endif
16787
16788 int
16789 main ()
16790 {
16791 return f != dlopen;
16792   ;
16793   return 0;
16794 }
16795 _ACEOF
16796 rm -f conftest.$ac_objext conftest$ac_exeext
16797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16798   (eval $ac_link) 2>&5
16799   ac_status=$?
16800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801   (exit $ac_status); } &&
16802          { ac_try='test -s conftest$ac_exeext'
16803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804   (eval $ac_try) 2>&5
16805   ac_status=$?
16806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807   (exit $ac_status); }; }; then
16808   ac_cv_func_dlopen=yes
16809 else
16810   echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.$ac_ext >&5
16812
16813 ac_cv_func_dlopen=no
16814 fi
16815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16816 fi
16817 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16818 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16819 if test $ac_cv_func_dlopen = yes; then
16820   lt_cv_dlopen="dlopen"
16821 else
16822   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16823 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16824 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16825   echo $ECHO_N "(cached) $ECHO_C" >&6
16826 else
16827   ac_check_lib_save_LIBS=$LIBS
16828 LIBS="-ldl  $LIBS"
16829 cat >conftest.$ac_ext <<_ACEOF
16830 #line $LINENO "configure"
16831 /* confdefs.h.  */
16832 _ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h.  */
16836
16837 /* Override any gcc2 internal prototype to avoid an error.  */
16838 #ifdef __cplusplus
16839 extern "C"
16840 #endif
16841 /* We use char because int might match the return type of a gcc2
16842    builtin and then its argument prototype would still apply.  */
16843 char dlopen ();
16844 int
16845 main ()
16846 {
16847 dlopen ();
16848   ;
16849   return 0;
16850 }
16851 _ACEOF
16852 rm -f conftest.$ac_objext conftest$ac_exeext
16853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16854   (eval $ac_link) 2>&5
16855   ac_status=$?
16856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857   (exit $ac_status); } &&
16858          { ac_try='test -s conftest$ac_exeext'
16859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860   (eval $ac_try) 2>&5
16861   ac_status=$?
16862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863   (exit $ac_status); }; }; then
16864   ac_cv_lib_dl_dlopen=yes
16865 else
16866   echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16868
16869 ac_cv_lib_dl_dlopen=no
16870 fi
16871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16872 LIBS=$ac_check_lib_save_LIBS
16873 fi
16874 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16875 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16876 if test $ac_cv_lib_dl_dlopen = yes; then
16877   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16878 else
16879   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16880 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16881 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16882   echo $ECHO_N "(cached) $ECHO_C" >&6
16883 else
16884   ac_check_lib_save_LIBS=$LIBS
16885 LIBS="-lsvld  $LIBS"
16886 cat >conftest.$ac_ext <<_ACEOF
16887 #line $LINENO "configure"
16888 /* confdefs.h.  */
16889 _ACEOF
16890 cat confdefs.h >>conftest.$ac_ext
16891 cat >>conftest.$ac_ext <<_ACEOF
16892 /* end confdefs.h.  */
16893
16894 /* Override any gcc2 internal prototype to avoid an error.  */
16895 #ifdef __cplusplus
16896 extern "C"
16897 #endif
16898 /* We use char because int might match the return type of a gcc2
16899    builtin and then its argument prototype would still apply.  */
16900 char dlopen ();
16901 int
16902 main ()
16903 {
16904 dlopen ();
16905   ;
16906   return 0;
16907 }
16908 _ACEOF
16909 rm -f conftest.$ac_objext conftest$ac_exeext
16910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16911   (eval $ac_link) 2>&5
16912   ac_status=$?
16913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914   (exit $ac_status); } &&
16915          { ac_try='test -s conftest$ac_exeext'
16916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917   (eval $ac_try) 2>&5
16918   ac_status=$?
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); }; }; then
16921   ac_cv_lib_svld_dlopen=yes
16922 else
16923   echo "$as_me: failed program was:" >&5
16924 sed 's/^/| /' conftest.$ac_ext >&5
16925
16926 ac_cv_lib_svld_dlopen=no
16927 fi
16928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16929 LIBS=$ac_check_lib_save_LIBS
16930 fi
16931 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16932 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16933 if test $ac_cv_lib_svld_dlopen = yes; then
16934   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16935 else
16936   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16937 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16938 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16939   echo $ECHO_N "(cached) $ECHO_C" >&6
16940 else
16941   ac_check_lib_save_LIBS=$LIBS
16942 LIBS="-ldld  $LIBS"
16943 cat >conftest.$ac_ext <<_ACEOF
16944 #line $LINENO "configure"
16945 /* confdefs.h.  */
16946 _ACEOF
16947 cat confdefs.h >>conftest.$ac_ext
16948 cat >>conftest.$ac_ext <<_ACEOF
16949 /* end confdefs.h.  */
16950
16951 /* Override any gcc2 internal prototype to avoid an error.  */
16952 #ifdef __cplusplus
16953 extern "C"
16954 #endif
16955 /* We use char because int might match the return type of a gcc2
16956    builtin and then its argument prototype would still apply.  */
16957 char dld_link ();
16958 int
16959 main ()
16960 {
16961 dld_link ();
16962   ;
16963   return 0;
16964 }
16965 _ACEOF
16966 rm -f conftest.$ac_objext conftest$ac_exeext
16967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16968   (eval $ac_link) 2>&5
16969   ac_status=$?
16970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971   (exit $ac_status); } &&
16972          { ac_try='test -s conftest$ac_exeext'
16973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974   (eval $ac_try) 2>&5
16975   ac_status=$?
16976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977   (exit $ac_status); }; }; then
16978   ac_cv_lib_dld_dld_link=yes
16979 else
16980   echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16982
16983 ac_cv_lib_dld_dld_link=no
16984 fi
16985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16986 LIBS=$ac_check_lib_save_LIBS
16987 fi
16988 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16989 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16990 if test $ac_cv_lib_dld_dld_link = yes; then
16991   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16992 fi
16993
16994
16995 fi
16996
16997
16998 fi
16999
17000
17001 fi
17002
17003
17004 fi
17005
17006
17007 fi
17008
17009     ;;
17010   esac
17011
17012   if test "x$lt_cv_dlopen" != xno; then
17013     enable_dlopen=yes
17014   else
17015     enable_dlopen=no
17016   fi
17017
17018   case $lt_cv_dlopen in
17019   dlopen)
17020     save_CPPFLAGS="$CPPFLAGS"
17021     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17022
17023     save_LDFLAGS="$LDFLAGS"
17024     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17025
17026     save_LIBS="$LIBS"
17027     LIBS="$lt_cv_dlopen_libs $LIBS"
17028
17029     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17030 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17031 if test "${lt_cv_dlopen_self+set}" = set; then
17032   echo $ECHO_N "(cached) $ECHO_C" >&6
17033 else
17034           if test "$cross_compiling" = yes; then :
17035   lt_cv_dlopen_self=cross
17036 else
17037   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17038   lt_status=$lt_dlunknown
17039   cat > conftest.$ac_ext <<EOF
17040 #line 17040 "configure"
17041 #include "confdefs.h"
17042
17043 #if HAVE_DLFCN_H
17044 #include <dlfcn.h>
17045 #endif
17046
17047 #include <stdio.h>
17048
17049 #ifdef RTLD_GLOBAL
17050 #  define LT_DLGLOBAL           RTLD_GLOBAL
17051 #else
17052 #  ifdef DL_GLOBAL
17053 #    define LT_DLGLOBAL         DL_GLOBAL
17054 #  else
17055 #    define LT_DLGLOBAL         0
17056 #  endif
17057 #endif
17058
17059 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17060    find out it does not work in some platform. */
17061 #ifndef LT_DLLAZY_OR_NOW
17062 #  ifdef RTLD_LAZY
17063 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17064 #  else
17065 #    ifdef DL_LAZY
17066 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17067 #    else
17068 #      ifdef RTLD_NOW
17069 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17070 #      else
17071 #        ifdef DL_NOW
17072 #          define LT_DLLAZY_OR_NOW      DL_NOW
17073 #        else
17074 #          define LT_DLLAZY_OR_NOW      0
17075 #        endif
17076 #      endif
17077 #    endif
17078 #  endif
17079 #endif
17080
17081 #ifdef __cplusplus
17082 extern "C" void exit (int);
17083 #endif
17084
17085 void fnord() { int i=42;}
17086 int main ()
17087 {
17088   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17089   int status = $lt_dlunknown;
17090
17091   if (self)
17092     {
17093       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17094       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17095       /* dlclose (self); */
17096     }
17097
17098     exit (status);
17099 }
17100 EOF
17101   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17102   (eval $ac_link) 2>&5
17103   ac_status=$?
17104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17106     (./conftest; exit; ) 2>/dev/null
17107     lt_status=$?
17108     case x$lt_status in
17109       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17110       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17111       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17112     esac
17113   else :
17114     # compilation failed
17115     lt_cv_dlopen_self=no
17116   fi
17117 fi
17118 rm -fr conftest*
17119
17120
17121 fi
17122 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17123 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17124
17125     if test "x$lt_cv_dlopen_self" = xyes; then
17126       LDFLAGS="$LDFLAGS $link_static_flag"
17127       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17128 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17129 if test "${lt_cv_dlopen_self_static+set}" = set; then
17130   echo $ECHO_N "(cached) $ECHO_C" >&6
17131 else
17132           if test "$cross_compiling" = yes; then :
17133   lt_cv_dlopen_self_static=cross
17134 else
17135   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17136   lt_status=$lt_dlunknown
17137   cat > conftest.$ac_ext <<EOF
17138 #line 17138 "configure"
17139 #include "confdefs.h"
17140
17141 #if HAVE_DLFCN_H
17142 #include <dlfcn.h>
17143 #endif
17144
17145 #include <stdio.h>
17146
17147 #ifdef RTLD_GLOBAL
17148 #  define LT_DLGLOBAL           RTLD_GLOBAL
17149 #else
17150 #  ifdef DL_GLOBAL
17151 #    define LT_DLGLOBAL         DL_GLOBAL
17152 #  else
17153 #    define LT_DLGLOBAL         0
17154 #  endif
17155 #endif
17156
17157 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17158    find out it does not work in some platform. */
17159 #ifndef LT_DLLAZY_OR_NOW
17160 #  ifdef RTLD_LAZY
17161 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17162 #  else
17163 #    ifdef DL_LAZY
17164 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17165 #    else
17166 #      ifdef RTLD_NOW
17167 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17168 #      else
17169 #        ifdef DL_NOW
17170 #          define LT_DLLAZY_OR_NOW      DL_NOW
17171 #        else
17172 #          define LT_DLLAZY_OR_NOW      0
17173 #        endif
17174 #      endif
17175 #    endif
17176 #  endif
17177 #endif
17178
17179 #ifdef __cplusplus
17180 extern "C" void exit (int);
17181 #endif
17182
17183 void fnord() { int i=42;}
17184 int main ()
17185 {
17186   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17187   int status = $lt_dlunknown;
17188
17189   if (self)
17190     {
17191       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17192       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17193       /* dlclose (self); */
17194     }
17195
17196     exit (status);
17197 }
17198 EOF
17199   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17200   (eval $ac_link) 2>&5
17201   ac_status=$?
17202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17204     (./conftest; exit; ) 2>/dev/null
17205     lt_status=$?
17206     case x$lt_status in
17207       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17208       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17209       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17210     esac
17211   else :
17212     # compilation failed
17213     lt_cv_dlopen_self_static=no
17214   fi
17215 fi
17216 rm -fr conftest*
17217
17218
17219 fi
17220 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17221 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17222     fi
17223
17224     CPPFLAGS="$save_CPPFLAGS"
17225     LDFLAGS="$save_LDFLAGS"
17226     LIBS="$save_LIBS"
17227     ;;
17228   esac
17229
17230   case $lt_cv_dlopen_self in
17231   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17232   *) enable_dlopen_self=unknown ;;
17233   esac
17234
17235   case $lt_cv_dlopen_self_static in
17236   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17237   *) enable_dlopen_self_static=unknown ;;
17238   esac
17239 fi
17240
17241
17242 # The else clause should only fire when bootstrapping the
17243 # libtool distribution, otherwise you forgot to ship ltmain.sh
17244 # with your package, and you will get complaints that there are
17245 # no rules to generate ltmain.sh.
17246 if test -f "$ltmain"; then
17247   # See if we are running on zsh, and set the options which allow our commands through
17248   # without removal of \ escapes.
17249   if test -n "${ZSH_VERSION+set}" ; then
17250     setopt NO_GLOB_SUBST
17251   fi
17252   # Now quote all the things that may contain metacharacters while being
17253   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17254   # variables and quote the copies for generation of the libtool script.
17255   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17256     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17257     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17258     deplibs_check_method reload_flag reload_cmds need_locks \
17259     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17260     lt_cv_sys_global_symbol_to_c_name_address \
17261     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17262     old_postinstall_cmds old_postuninstall_cmds \
17263     compiler_GCJ \
17264     CC_GCJ \
17265     LD_GCJ \
17266     lt_prog_compiler_wl_GCJ \
17267     lt_prog_compiler_pic_GCJ \
17268     lt_prog_compiler_static_GCJ \
17269     lt_prog_compiler_no_builtin_flag_GCJ \
17270     export_dynamic_flag_spec_GCJ \
17271     thread_safe_flag_spec_GCJ \
17272     whole_archive_flag_spec_GCJ \
17273     enable_shared_with_static_runtimes_GCJ \
17274     old_archive_cmds_GCJ \
17275     old_archive_from_new_cmds_GCJ \
17276     predep_objects_GCJ \
17277     postdep_objects_GCJ \
17278     predeps_GCJ \
17279     postdeps_GCJ \
17280     compiler_lib_search_path_GCJ \
17281     archive_cmds_GCJ \
17282     archive_expsym_cmds_GCJ \
17283     postinstall_cmds_GCJ \
17284     postuninstall_cmds_GCJ \
17285     old_archive_from_expsyms_cmds_GCJ \
17286     allow_undefined_flag_GCJ \
17287     no_undefined_flag_GCJ \
17288     export_symbols_cmds_GCJ \
17289     hardcode_libdir_flag_spec_GCJ \
17290     hardcode_libdir_flag_spec_ld_GCJ \
17291     hardcode_libdir_separator_GCJ \
17292     hardcode_automatic_GCJ \
17293     module_cmds_GCJ \
17294     module_expsym_cmds_GCJ \
17295     lt_cv_prog_compiler_c_o_GCJ \
17296     exclude_expsyms_GCJ \
17297     include_expsyms_GCJ; do
17298
17299     case $var in
17300     old_archive_cmds_GCJ | \
17301     old_archive_from_new_cmds_GCJ | \
17302     archive_cmds_GCJ | \
17303     archive_expsym_cmds_GCJ | \
17304     module_cmds_GCJ | \
17305     module_expsym_cmds_GCJ | \
17306     old_archive_from_expsyms_cmds_GCJ | \
17307     export_symbols_cmds_GCJ | \
17308     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17309     postinstall_cmds | postuninstall_cmds | \
17310     old_postinstall_cmds | old_postuninstall_cmds | \
17311     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17312       # Double-quote double-evaled strings.
17313       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17314       ;;
17315     *)
17316       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17317       ;;
17318     esac
17319   done
17320
17321   case $lt_echo in
17322   *'\$0 --fallback-echo"')
17323     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17324     ;;
17325   esac
17326
17327 cfgfile="$ofile"
17328
17329   cat <<__EOF__ >> "$cfgfile"
17330 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17331
17332 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17333
17334 # Shell to use when invoking shell scripts.
17335 SHELL=$lt_SHELL
17336
17337 # Whether or not to build shared libraries.
17338 build_libtool_libs=$enable_shared
17339
17340 # Whether or not to build static libraries.
17341 build_old_libs=$enable_static
17342
17343 # Whether or not to add -lc for building shared libraries.
17344 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17345
17346 # Whether or not to disallow shared libs when runtime libs are static
17347 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17348
17349 # Whether or not to optimize for fast installation.
17350 fast_install=$enable_fast_install
17351
17352 # The host system.
17353 host_alias=$host_alias
17354 host=$host
17355
17356 # An echo program that does not interpret backslashes.
17357 echo=$lt_echo
17358
17359 # The archiver.
17360 AR=$lt_AR
17361 AR_FLAGS=$lt_AR_FLAGS
17362
17363 # A C compiler.
17364 LTCC=$lt_LTCC
17365
17366 # A language-specific compiler.
17367 CC=$lt_compiler_GCJ
17368
17369 # Is the compiler the GNU C compiler?
17370 with_gcc=$GCC_GCJ
17371
17372 # An ERE matcher.
17373 EGREP=$lt_EGREP
17374
17375 # The linker used to build libraries.
17376 LD=$lt_LD_GCJ
17377
17378 # Whether we need hard or soft links.
17379 LN_S=$lt_LN_S
17380
17381 # A BSD-compatible nm program.
17382 NM=$lt_NM
17383
17384 # A symbol stripping program
17385 STRIP=$STRIP
17386
17387 # Used to examine libraries when file_magic_cmd begins "file"
17388 MAGIC_CMD=$MAGIC_CMD
17389
17390 # Used on cygwin: DLL creation program.
17391 DLLTOOL="$DLLTOOL"
17392
17393 # Used on cygwin: object dumper.
17394 OBJDUMP="$OBJDUMP"
17395
17396 # Used on cygwin: assembler.
17397 AS="$AS"
17398
17399 # The name of the directory that contains temporary libtool files.
17400 objdir=$objdir
17401
17402 # How to create reloadable object files.
17403 reload_flag=$lt_reload_flag
17404 reload_cmds=$lt_reload_cmds
17405
17406 # How to pass a linker flag through the compiler.
17407 wl=$lt_lt_prog_compiler_wl_GCJ
17408
17409 # Object file suffix (normally "o").
17410 objext="$ac_objext"
17411
17412 # Old archive suffix (normally "a").
17413 libext="$libext"
17414
17415 # Shared library suffix (normally ".so").
17416 shrext='$shrext'
17417
17418 # Executable file suffix (normally "").
17419 exeext="$exeext"
17420
17421 # Additional compiler flags for building library objects.
17422 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17423 pic_mode=$pic_mode
17424
17425 # What is the maximum length of a command?
17426 max_cmd_len=$lt_cv_sys_max_cmd_len
17427
17428 # Does compiler simultaneously support -c and -o options?
17429 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17430
17431 # Must we lock files when doing compilation ?
17432 need_locks=$lt_need_locks
17433
17434 # Do we need the lib prefix for modules?
17435 need_lib_prefix=$need_lib_prefix
17436
17437 # Do we need a version for libraries?
17438 need_version=$need_version
17439
17440 # Whether dlopen is supported.
17441 dlopen_support=$enable_dlopen
17442
17443 # Whether dlopen of programs is supported.
17444 dlopen_self=$enable_dlopen_self
17445
17446 # Whether dlopen of statically linked programs is supported.
17447 dlopen_self_static=$enable_dlopen_self_static
17448
17449 # Compiler flag to prevent dynamic linking.
17450 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17451
17452 # Compiler flag to turn off builtin functions.
17453 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17454
17455 # Compiler flag to allow reflexive dlopens.
17456 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17457
17458 # Compiler flag to generate shared objects directly from archives.
17459 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17460
17461 # Compiler flag to generate thread-safe objects.
17462 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17463
17464 # Library versioning type.
17465 version_type=$version_type
17466
17467 # Format of library name prefix.
17468 libname_spec=$lt_libname_spec
17469
17470 # List of archive names.  First name is the real one, the rest are links.
17471 # The last name is the one that the linker finds with -lNAME.
17472 library_names_spec=$lt_library_names_spec
17473
17474 # The coded name of the library, if different from the real name.
17475 soname_spec=$lt_soname_spec
17476
17477 # Commands used to build and install an old-style archive.
17478 RANLIB=$lt_RANLIB
17479 old_archive_cmds=$lt_old_archive_cmds_GCJ
17480 old_postinstall_cmds=$lt_old_postinstall_cmds
17481 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17482
17483 # Create an old-style archive from a shared archive.
17484 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17485
17486 # Create a temporary old-style archive to link instead of a shared archive.
17487 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17488
17489 # Commands used to build and install a shared archive.
17490 archive_cmds=$lt_archive_cmds_GCJ
17491 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17492 postinstall_cmds=$lt_postinstall_cmds
17493 postuninstall_cmds=$lt_postuninstall_cmds
17494
17495 # Commands used to build a loadable module (assumed same as above if empty)
17496 module_cmds=$lt_module_cmds_GCJ
17497 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17498
17499 # Commands to strip libraries.
17500 old_striplib=$lt_old_striplib
17501 striplib=$lt_striplib
17502
17503 # Dependencies to place before the objects being linked to create a
17504 # shared library.
17505 predep_objects=$lt_predep_objects_GCJ
17506
17507 # Dependencies to place after the objects being linked to create a
17508 # shared library.
17509 postdep_objects=$lt_postdep_objects_GCJ
17510
17511 # Dependencies to place before the objects being linked to create a
17512 # shared library.
17513 predeps=$lt_predeps_GCJ
17514
17515 # Dependencies to place after the objects being linked to create a
17516 # shared library.
17517 postdeps=$lt_postdeps_GCJ
17518
17519 # The library search path used internally by the compiler when linking
17520 # a shared library.
17521 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17522
17523 # Method to check whether dependent libraries are shared objects.
17524 deplibs_check_method=$lt_deplibs_check_method
17525
17526 # Command to use when deplibs_check_method == file_magic.
17527 file_magic_cmd=$lt_file_magic_cmd
17528
17529 # Flag that allows shared libraries with undefined symbols to be built.
17530 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17531
17532 # Flag that forces no undefined symbols.
17533 no_undefined_flag=$lt_no_undefined_flag_GCJ
17534
17535 # Commands used to finish a libtool library installation in a directory.
17536 finish_cmds=$lt_finish_cmds
17537
17538 # Same as above, but a single script fragment to be evaled but not shown.
17539 finish_eval=$lt_finish_eval
17540
17541 # Take the output of nm and produce a listing of raw symbols and C names.
17542 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17543
17544 # Transform the output of nm in a proper C declaration
17545 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17546
17547 # Transform the output of nm in a C name address pair
17548 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17549
17550 # This is the shared library runtime path variable.
17551 runpath_var=$runpath_var
17552
17553 # This is the shared library path variable.
17554 shlibpath_var=$shlibpath_var
17555
17556 # Is shlibpath searched before the hard-coded library search path?
17557 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17558
17559 # How to hardcode a shared library path into an executable.
17560 hardcode_action=$hardcode_action_GCJ
17561
17562 # Whether we should hardcode library paths into libraries.
17563 hardcode_into_libs=$hardcode_into_libs
17564
17565 # Flag to hardcode \$libdir into a binary during linking.
17566 # This must work even if \$libdir does not exist.
17567 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17568
17569 # If ld is used when linking, flag to hardcode \$libdir into
17570 # a binary during linking. This must work even if \$libdir does
17571 # not exist.
17572 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17573
17574 # Whether we need a single -rpath flag with a separated argument.
17575 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17576
17577 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17578 # resulting binary.
17579 hardcode_direct=$hardcode_direct_GCJ
17580
17581 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17582 # resulting binary.
17583 hardcode_minus_L=$hardcode_minus_L_GCJ
17584
17585 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17586 # the resulting binary.
17587 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17588
17589 # Set to yes if building a shared library automatically hardcodes DIR into the library
17590 # and all subsequent libraries and executables linked against it.
17591 hardcode_automatic=$hardcode_automatic_GCJ
17592
17593 # Variables whose values should be saved in libtool wrapper scripts and
17594 # restored at relink time.
17595 variables_saved_for_relink="$variables_saved_for_relink"
17596
17597 # Whether libtool must link a program against all its dependency libraries.
17598 link_all_deplibs=$link_all_deplibs_GCJ
17599
17600 # Compile-time system search path for libraries
17601 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17602
17603 # Run-time system search path for libraries
17604 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17605
17606 # Fix the shell variable \$srcfile for the compiler.
17607 fix_srcfile_path="$fix_srcfile_path_GCJ"
17608
17609 # Set to yes if exported symbols are required.
17610 always_export_symbols=$always_export_symbols_GCJ
17611
17612 # The commands to list exported symbols.
17613 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17614
17615 # The commands to extract the exported symbol list from a shared archive.
17616 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17617
17618 # Symbols that should not be listed in the preloaded symbols.
17619 exclude_expsyms=$lt_exclude_expsyms_GCJ
17620
17621 # Symbols that must always be exported.
17622 include_expsyms=$lt_include_expsyms_GCJ
17623
17624 # ### END LIBTOOL TAG CONFIG: $tagname
17625
17626 __EOF__
17627
17628
17629 else
17630   # If there is no Makefile yet, we rely on a make rule to execute
17631   # `config.status --recheck' to rerun these tests and create the
17632   # libtool script then.
17633   test -f Makefile && make "$ltmain"
17634 fi
17635
17636
17637 ac_ext=c
17638 ac_cpp='$CPP $CPPFLAGS'
17639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17642
17643 CC="$lt_save_CC"
17644
17645         else
17646           tagname=""
17647         fi
17648         ;;
17649
17650       RC)
17651
17652
17653
17654 # Source file extension for RC test sources.
17655 ac_ext=rc
17656
17657 # Object file extension for compiled RC test sources.
17658 objext=o
17659 objext_RC=$objext
17660
17661 # Code to be used in simple compile tests
17662 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17663
17664 # Code to be used in simple link tests
17665 lt_simple_link_test_code="$lt_simple_compile_test_code"
17666
17667 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17668
17669 # If no C compiler was specified, use CC.
17670 LTCC=${LTCC-"$CC"}
17671
17672 # Allow CC to be a program name with arguments.
17673 compiler=$CC
17674
17675
17676 # Allow CC to be a program name with arguments.
17677 lt_save_CC="$CC"
17678 CC=${RC-"windres"}
17679 compiler=$CC
17680 compiler_RC=$CC
17681 lt_cv_prog_compiler_c_o_RC=yes
17682
17683 # The else clause should only fire when bootstrapping the
17684 # libtool distribution, otherwise you forgot to ship ltmain.sh
17685 # with your package, and you will get complaints that there are
17686 # no rules to generate ltmain.sh.
17687 if test -f "$ltmain"; then
17688   # See if we are running on zsh, and set the options which allow our commands through
17689   # without removal of \ escapes.
17690   if test -n "${ZSH_VERSION+set}" ; then
17691     setopt NO_GLOB_SUBST
17692   fi
17693   # Now quote all the things that may contain metacharacters while being
17694   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17695   # variables and quote the copies for generation of the libtool script.
17696   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17697     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17698     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17699     deplibs_check_method reload_flag reload_cmds need_locks \
17700     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17701     lt_cv_sys_global_symbol_to_c_name_address \
17702     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17703     old_postinstall_cmds old_postuninstall_cmds \
17704     compiler_RC \
17705     CC_RC \
17706     LD_RC \
17707     lt_prog_compiler_wl_RC \
17708     lt_prog_compiler_pic_RC \
17709     lt_prog_compiler_static_RC \
17710     lt_prog_compiler_no_builtin_flag_RC \
17711     export_dynamic_flag_spec_RC \
17712     thread_safe_flag_spec_RC \
17713     whole_archive_flag_spec_RC \
17714     enable_shared_with_static_runtimes_RC \
17715     old_archive_cmds_RC \
17716     old_archive_from_new_cmds_RC \
17717     predep_objects_RC \
17718     postdep_objects_RC \
17719     predeps_RC \
17720     postdeps_RC \
17721     compiler_lib_search_path_RC \
17722     archive_cmds_RC \
17723     archive_expsym_cmds_RC \
17724     postinstall_cmds_RC \
17725     postuninstall_cmds_RC \
17726     old_archive_from_expsyms_cmds_RC \
17727     allow_undefined_flag_RC \
17728     no_undefined_flag_RC \
17729     export_symbols_cmds_RC \
17730     hardcode_libdir_flag_spec_RC \
17731     hardcode_libdir_flag_spec_ld_RC \
17732     hardcode_libdir_separator_RC \
17733     hardcode_automatic_RC \
17734     module_cmds_RC \
17735     module_expsym_cmds_RC \
17736     lt_cv_prog_compiler_c_o_RC \
17737     exclude_expsyms_RC \
17738     include_expsyms_RC; do
17739
17740     case $var in
17741     old_archive_cmds_RC | \
17742     old_archive_from_new_cmds_RC | \
17743     archive_cmds_RC | \
17744     archive_expsym_cmds_RC | \
17745     module_cmds_RC | \
17746     module_expsym_cmds_RC | \
17747     old_archive_from_expsyms_cmds_RC | \
17748     export_symbols_cmds_RC | \
17749     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17750     postinstall_cmds | postuninstall_cmds | \
17751     old_postinstall_cmds | old_postuninstall_cmds | \
17752     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17753       # Double-quote double-evaled strings.
17754       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17755       ;;
17756     *)
17757       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17758       ;;
17759     esac
17760   done
17761
17762   case $lt_echo in
17763   *'\$0 --fallback-echo"')
17764     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17765     ;;
17766   esac
17767
17768 cfgfile="$ofile"
17769
17770   cat <<__EOF__ >> "$cfgfile"
17771 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17772
17773 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17774
17775 # Shell to use when invoking shell scripts.
17776 SHELL=$lt_SHELL
17777
17778 # Whether or not to build shared libraries.
17779 build_libtool_libs=$enable_shared
17780
17781 # Whether or not to build static libraries.
17782 build_old_libs=$enable_static
17783
17784 # Whether or not to add -lc for building shared libraries.
17785 build_libtool_need_lc=$archive_cmds_need_lc_RC
17786
17787 # Whether or not to disallow shared libs when runtime libs are static
17788 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17789
17790 # Whether or not to optimize for fast installation.
17791 fast_install=$enable_fast_install
17792
17793 # The host system.
17794 host_alias=$host_alias
17795 host=$host
17796
17797 # An echo program that does not interpret backslashes.
17798 echo=$lt_echo
17799
17800 # The archiver.
17801 AR=$lt_AR
17802 AR_FLAGS=$lt_AR_FLAGS
17803
17804 # A C compiler.
17805 LTCC=$lt_LTCC
17806
17807 # A language-specific compiler.
17808 CC=$lt_compiler_RC
17809
17810 # Is the compiler the GNU C compiler?
17811 with_gcc=$GCC_RC
17812
17813 # An ERE matcher.
17814 EGREP=$lt_EGREP
17815
17816 # The linker used to build libraries.
17817 LD=$lt_LD_RC
17818
17819 # Whether we need hard or soft links.
17820 LN_S=$lt_LN_S
17821
17822 # A BSD-compatible nm program.
17823 NM=$lt_NM
17824
17825 # A symbol stripping program
17826 STRIP=$STRIP
17827
17828 # Used to examine libraries when file_magic_cmd begins "file"
17829 MAGIC_CMD=$MAGIC_CMD
17830
17831 # Used on cygwin: DLL creation program.
17832 DLLTOOL="$DLLTOOL"
17833
17834 # Used on cygwin: object dumper.
17835 OBJDUMP="$OBJDUMP"
17836
17837 # Used on cygwin: assembler.
17838 AS="$AS"
17839
17840 # The name of the directory that contains temporary libtool files.
17841 objdir=$objdir
17842
17843 # How to create reloadable object files.
17844 reload_flag=$lt_reload_flag
17845 reload_cmds=$lt_reload_cmds
17846
17847 # How to pass a linker flag through the compiler.
17848 wl=$lt_lt_prog_compiler_wl_RC
17849
17850 # Object file suffix (normally "o").
17851 objext="$ac_objext"
17852
17853 # Old archive suffix (normally "a").
17854 libext="$libext"
17855
17856 # Shared library suffix (normally ".so").
17857 shrext='$shrext'
17858
17859 # Executable file suffix (normally "").
17860 exeext="$exeext"
17861
17862 # Additional compiler flags for building library objects.
17863 pic_flag=$lt_lt_prog_compiler_pic_RC
17864 pic_mode=$pic_mode
17865
17866 # What is the maximum length of a command?
17867 max_cmd_len=$lt_cv_sys_max_cmd_len
17868
17869 # Does compiler simultaneously support -c and -o options?
17870 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17871
17872 # Must we lock files when doing compilation ?
17873 need_locks=$lt_need_locks
17874
17875 # Do we need the lib prefix for modules?
17876 need_lib_prefix=$need_lib_prefix
17877
17878 # Do we need a version for libraries?
17879 need_version=$need_version
17880
17881 # Whether dlopen is supported.
17882 dlopen_support=$enable_dlopen
17883
17884 # Whether dlopen of programs is supported.
17885 dlopen_self=$enable_dlopen_self
17886
17887 # Whether dlopen of statically linked programs is supported.
17888 dlopen_self_static=$enable_dlopen_self_static
17889
17890 # Compiler flag to prevent dynamic linking.
17891 link_static_flag=$lt_lt_prog_compiler_static_RC
17892
17893 # Compiler flag to turn off builtin functions.
17894 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17895
17896 # Compiler flag to allow reflexive dlopens.
17897 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17898
17899 # Compiler flag to generate shared objects directly from archives.
17900 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17901
17902 # Compiler flag to generate thread-safe objects.
17903 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17904
17905 # Library versioning type.
17906 version_type=$version_type
17907
17908 # Format of library name prefix.
17909 libname_spec=$lt_libname_spec
17910
17911 # List of archive names.  First name is the real one, the rest are links.
17912 # The last name is the one that the linker finds with -lNAME.
17913 library_names_spec=$lt_library_names_spec
17914
17915 # The coded name of the library, if different from the real name.
17916 soname_spec=$lt_soname_spec
17917
17918 # Commands used to build and install an old-style archive.
17919 RANLIB=$lt_RANLIB
17920 old_archive_cmds=$lt_old_archive_cmds_RC
17921 old_postinstall_cmds=$lt_old_postinstall_cmds
17922 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17923
17924 # Create an old-style archive from a shared archive.
17925 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17926
17927 # Create a temporary old-style archive to link instead of a shared archive.
17928 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17929
17930 # Commands used to build and install a shared archive.
17931 archive_cmds=$lt_archive_cmds_RC
17932 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17933 postinstall_cmds=$lt_postinstall_cmds
17934 postuninstall_cmds=$lt_postuninstall_cmds
17935
17936 # Commands used to build a loadable module (assumed same as above if empty)
17937 module_cmds=$lt_module_cmds_RC
17938 module_expsym_cmds=$lt_module_expsym_cmds_RC
17939
17940 # Commands to strip libraries.
17941 old_striplib=$lt_old_striplib
17942 striplib=$lt_striplib
17943
17944 # Dependencies to place before the objects being linked to create a
17945 # shared library.
17946 predep_objects=$lt_predep_objects_RC
17947
17948 # Dependencies to place after the objects being linked to create a
17949 # shared library.
17950 postdep_objects=$lt_postdep_objects_RC
17951
17952 # Dependencies to place before the objects being linked to create a
17953 # shared library.
17954 predeps=$lt_predeps_RC
17955
17956 # Dependencies to place after the objects being linked to create a
17957 # shared library.
17958 postdeps=$lt_postdeps_RC
17959
17960 # The library search path used internally by the compiler when linking
17961 # a shared library.
17962 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17963
17964 # Method to check whether dependent libraries are shared objects.
17965 deplibs_check_method=$lt_deplibs_check_method
17966
17967 # Command to use when deplibs_check_method == file_magic.
17968 file_magic_cmd=$lt_file_magic_cmd
17969
17970 # Flag that allows shared libraries with undefined symbols to be built.
17971 allow_undefined_flag=$lt_allow_undefined_flag_RC
17972
17973 # Flag that forces no undefined symbols.
17974 no_undefined_flag=$lt_no_undefined_flag_RC
17975
17976 # Commands used to finish a libtool library installation in a directory.
17977 finish_cmds=$lt_finish_cmds
17978
17979 # Same as above, but a single script fragment to be evaled but not shown.
17980 finish_eval=$lt_finish_eval
17981
17982 # Take the output of nm and produce a listing of raw symbols and C names.
17983 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17984
17985 # Transform the output of nm in a proper C declaration
17986 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17987
17988 # Transform the output of nm in a C name address pair
17989 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17990
17991 # This is the shared library runtime path variable.
17992 runpath_var=$runpath_var
17993
17994 # This is the shared library path variable.
17995 shlibpath_var=$shlibpath_var
17996
17997 # Is shlibpath searched before the hard-coded library search path?
17998 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17999
18000 # How to hardcode a shared library path into an executable.
18001 hardcode_action=$hardcode_action_RC
18002
18003 # Whether we should hardcode library paths into libraries.
18004 hardcode_into_libs=$hardcode_into_libs
18005
18006 # Flag to hardcode \$libdir into a binary during linking.
18007 # This must work even if \$libdir does not exist.
18008 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18009
18010 # If ld is used when linking, flag to hardcode \$libdir into
18011 # a binary during linking. This must work even if \$libdir does
18012 # not exist.
18013 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18014
18015 # Whether we need a single -rpath flag with a separated argument.
18016 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18017
18018 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18019 # resulting binary.
18020 hardcode_direct=$hardcode_direct_RC
18021
18022 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18023 # resulting binary.
18024 hardcode_minus_L=$hardcode_minus_L_RC
18025
18026 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18027 # the resulting binary.
18028 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18029
18030 # Set to yes if building a shared library automatically hardcodes DIR into the library
18031 # and all subsequent libraries and executables linked against it.
18032 hardcode_automatic=$hardcode_automatic_RC
18033
18034 # Variables whose values should be saved in libtool wrapper scripts and
18035 # restored at relink time.
18036 variables_saved_for_relink="$variables_saved_for_relink"
18037
18038 # Whether libtool must link a program against all its dependency libraries.
18039 link_all_deplibs=$link_all_deplibs_RC
18040
18041 # Compile-time system search path for libraries
18042 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18043
18044 # Run-time system search path for libraries
18045 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18046
18047 # Fix the shell variable \$srcfile for the compiler.
18048 fix_srcfile_path="$fix_srcfile_path_RC"
18049
18050 # Set to yes if exported symbols are required.
18051 always_export_symbols=$always_export_symbols_RC
18052
18053 # The commands to list exported symbols.
18054 export_symbols_cmds=$lt_export_symbols_cmds_RC
18055
18056 # The commands to extract the exported symbol list from a shared archive.
18057 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18058
18059 # Symbols that should not be listed in the preloaded symbols.
18060 exclude_expsyms=$lt_exclude_expsyms_RC
18061
18062 # Symbols that must always be exported.
18063 include_expsyms=$lt_include_expsyms_RC
18064
18065 # ### END LIBTOOL TAG CONFIG: $tagname
18066
18067 __EOF__
18068
18069
18070 else
18071   # If there is no Makefile yet, we rely on a make rule to execute
18072   # `config.status --recheck' to rerun these tests and create the
18073   # libtool script then.
18074   test -f Makefile && make "$ltmain"
18075 fi
18076
18077
18078 ac_ext=c
18079 ac_cpp='$CPP $CPPFLAGS'
18080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18083
18084 CC="$lt_save_CC"
18085
18086         ;;
18087
18088       *)
18089         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18090 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18091    { (exit 1); exit 1; }; }
18092         ;;
18093       esac
18094
18095       # Append the new tag name to the list of available tags.
18096       if test -n "$tagname" ; then
18097       available_tags="$available_tags $tagname"
18098     fi
18099     fi
18100   done
18101   IFS="$lt_save_ifs"
18102
18103   # Now substitute the updated list of available tags.
18104   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18105     mv "${ofile}T" "$ofile"
18106     chmod +x "$ofile"
18107   else
18108     rm -f "${ofile}T"
18109     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18110 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18111    { (exit 1); exit 1; }; }
18112   fi
18113 fi
18114
18115
18116
18117 # This can be used to rebuild libtool when needed
18118 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18119
18120 # Always use our own libtool.
18121 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18122
18123 # Prevent multiple expansion
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145 # Extract the first word of "pwd", so it can be a program name with args.
18146 set dummy pwd; ac_word=$2
18147 echo "$as_me:$LINENO: checking for $ac_word" >&5
18148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18149 if test "${ac_cv_path_RPWD+set}" = set; then
18150   echo $ECHO_N "(cached) $ECHO_C" >&6
18151 else
18152   case $RPWD in
18153   [\\/]* | ?:[\\/]*)
18154   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18155   ;;
18156   *)
18157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18158 for as_dir in $PATH
18159 do
18160   IFS=$as_save_IFS
18161   test -z "$as_dir" && as_dir=.
18162   for ac_exec_ext in '' $ac_executable_extensions; do
18163   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18164     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18166     break 2
18167   fi
18168 done
18169 done
18170
18171   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18172   ;;
18173 esac
18174 fi
18175 RPWD=$ac_cv_path_RPWD
18176
18177 if test -n "$RPWD"; then
18178   echo "$as_me:$LINENO: result: $RPWD" >&5
18179 echo "${ECHO_T}$RPWD" >&6
18180 else
18181   echo "$as_me:$LINENO: result: no" >&5
18182 echo "${ECHO_T}no" >&6
18183 fi
18184
18185 if test ${RPWD} = "false"
18186 then
18187         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18188 echo "$as_me: error: pwd required but not found" >&2;}
18189    { (exit 1); exit 1; }; }
18190 fi
18191
18192 # Extract the first word of "ar", so it can be a program name with args.
18193 set dummy ar; ac_word=$2
18194 echo "$as_me:$LINENO: checking for $ac_word" >&5
18195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18196 if test "${ac_cv_path_AR+set}" = set; then
18197   echo $ECHO_N "(cached) $ECHO_C" >&6
18198 else
18199   case $AR in
18200   [\\/]* | ?:[\\/]*)
18201   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18202   ;;
18203   *)
18204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18205 for as_dir in $PATH
18206 do
18207   IFS=$as_save_IFS
18208   test -z "$as_dir" && as_dir=.
18209   for ac_exec_ext in '' $ac_executable_extensions; do
18210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18211     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18213     break 2
18214   fi
18215 done
18216 done
18217
18218   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18219   ;;
18220 esac
18221 fi
18222 AR=$ac_cv_path_AR
18223
18224 if test -n "$AR"; then
18225   echo "$as_me:$LINENO: result: $AR" >&5
18226 echo "${ECHO_T}$AR" >&6
18227 else
18228   echo "$as_me:$LINENO: result: no" >&5
18229 echo "${ECHO_T}no" >&6
18230 fi
18231
18232 if test ${AR} = "false"
18233 then
18234         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18235 echo "$as_me: error: ar required but not found" >&2;}
18236    { (exit 1); exit 1; }; }
18237 fi
18238
18239 # Extract the first word of "sed", so it can be a program name with args.
18240 set dummy sed; ac_word=$2
18241 echo "$as_me:$LINENO: checking for $ac_word" >&5
18242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18243 if test "${ac_cv_path_SED+set}" = set; then
18244   echo $ECHO_N "(cached) $ECHO_C" >&6
18245 else
18246   case $SED in
18247   [\\/]* | ?:[\\/]*)
18248   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18249   ;;
18250   *)
18251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18252 for as_dir in $PATH
18253 do
18254   IFS=$as_save_IFS
18255   test -z "$as_dir" && as_dir=.
18256   for ac_exec_ext in '' $ac_executable_extensions; do
18257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18258     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18260     break 2
18261   fi
18262 done
18263 done
18264
18265   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18266   ;;
18267 esac
18268 fi
18269 SED=$ac_cv_path_SED
18270
18271 if test -n "$SED"; then
18272   echo "$as_me:$LINENO: result: $SED" >&5
18273 echo "${ECHO_T}$SED" >&6
18274 else
18275   echo "$as_me:$LINENO: result: no" >&5
18276 echo "${ECHO_T}no" >&6
18277 fi
18278
18279 if test ${SED} = "false"
18280 then
18281         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18282 echo "$as_me: error: sed required but not found" >&2;}
18283    { (exit 1); exit 1; }; }
18284 fi
18285
18286 # Extract the first word of "rm", so it can be a program name with args.
18287 set dummy rm; ac_word=$2
18288 echo "$as_me:$LINENO: checking for $ac_word" >&5
18289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18290 if test "${ac_cv_path_RM+set}" = set; then
18291   echo $ECHO_N "(cached) $ECHO_C" >&6
18292 else
18293   case $RM in
18294   [\\/]* | ?:[\\/]*)
18295   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18296   ;;
18297   *)
18298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18299 for as_dir in $PATH
18300 do
18301   IFS=$as_save_IFS
18302   test -z "$as_dir" && as_dir=.
18303   for ac_exec_ext in '' $ac_executable_extensions; do
18304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18305     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18307     break 2
18308   fi
18309 done
18310 done
18311
18312   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18313   ;;
18314 esac
18315 fi
18316 RM=$ac_cv_path_RM
18317
18318 if test -n "$RM"; then
18319   echo "$as_me:$LINENO: result: $RM" >&5
18320 echo "${ECHO_T}$RM" >&6
18321 else
18322   echo "$as_me:$LINENO: result: no" >&5
18323 echo "${ECHO_T}no" >&6
18324 fi
18325
18326 if test ${RM} = "false"
18327 then
18328         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18329 echo "$as_me: error: rm required but not found" >&2;}
18330    { (exit 1); exit 1; }; }
18331 fi
18332
18333 # Extract the first word of "echo", so it can be a program name with args.
18334 set dummy echo; ac_word=$2
18335 echo "$as_me:$LINENO: checking for $ac_word" >&5
18336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18337 if test "${ac_cv_path_ECHO+set}" = set; then
18338   echo $ECHO_N "(cached) $ECHO_C" >&6
18339 else
18340   case $ECHO in
18341   [\\/]* | ?:[\\/]*)
18342   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18343   ;;
18344   *)
18345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18346 for as_dir in $PATH
18347 do
18348   IFS=$as_save_IFS
18349   test -z "$as_dir" && as_dir=.
18350   for ac_exec_ext in '' $ac_executable_extensions; do
18351   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18352     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18354     break 2
18355   fi
18356 done
18357 done
18358
18359   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18360   ;;
18361 esac
18362 fi
18363 ECHO=$ac_cv_path_ECHO
18364
18365 if test -n "$ECHO"; then
18366   echo "$as_me:$LINENO: result: $ECHO" >&5
18367 echo "${ECHO_T}$ECHO" >&6
18368 else
18369   echo "$as_me:$LINENO: result: no" >&5
18370 echo "${ECHO_T}no" >&6
18371 fi
18372
18373 if test ${ECHO} = "false"
18374 then
18375         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18376 echo "$as_me: error: echo required but not found" >&2;}
18377    { (exit 1); exit 1; }; }
18378 fi
18379
18380 # Extract the first word of "mkdir", so it can be a program name with args.
18381 set dummy mkdir; ac_word=$2
18382 echo "$as_me:$LINENO: checking for $ac_word" >&5
18383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18384 if test "${ac_cv_path_MKDIR+set}" = set; then
18385   echo $ECHO_N "(cached) $ECHO_C" >&6
18386 else
18387   case $MKDIR in
18388   [\\/]* | ?:[\\/]*)
18389   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18390   ;;
18391   *)
18392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18393 for as_dir in $PATH
18394 do
18395   IFS=$as_save_IFS
18396   test -z "$as_dir" && as_dir=.
18397   for ac_exec_ext in '' $ac_executable_extensions; do
18398   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18399     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18401     break 2
18402   fi
18403 done
18404 done
18405
18406   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18407   ;;
18408 esac
18409 fi
18410 MKDIR=$ac_cv_path_MKDIR
18411
18412 if test -n "$MKDIR"; then
18413   echo "$as_me:$LINENO: result: $MKDIR" >&5
18414 echo "${ECHO_T}$MKDIR" >&6
18415 else
18416   echo "$as_me:$LINENO: result: no" >&5
18417 echo "${ECHO_T}no" >&6
18418 fi
18419
18420 if test ${MKDIR} = "false"
18421 then
18422         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18423 echo "$as_me: error: mkdir required but not found" >&2;}
18424    { (exit 1); exit 1; }; }
18425 fi
18426
18427 # Extract the first word of "date", so it can be a program name with args.
18428 set dummy date; ac_word=$2
18429 echo "$as_me:$LINENO: checking for $ac_word" >&5
18430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18431 if test "${ac_cv_path_DATE+set}" = set; then
18432   echo $ECHO_N "(cached) $ECHO_C" >&6
18433 else
18434   case $DATE in
18435   [\\/]* | ?:[\\/]*)
18436   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18437   ;;
18438   *)
18439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18440 for as_dir in $PATH
18441 do
18442   IFS=$as_save_IFS
18443   test -z "$as_dir" && as_dir=.
18444   for ac_exec_ext in '' $ac_executable_extensions; do
18445   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18446     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18448     break 2
18449   fi
18450 done
18451 done
18452
18453   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18454   ;;
18455 esac
18456 fi
18457 DATE=$ac_cv_path_DATE
18458
18459 if test -n "$DATE"; then
18460   echo "$as_me:$LINENO: result: $DATE" >&5
18461 echo "${ECHO_T}$DATE" >&6
18462 else
18463   echo "$as_me:$LINENO: result: no" >&5
18464 echo "${ECHO_T}no" >&6
18465 fi
18466
18467 if test ${DATE} = "false"
18468 then
18469         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18470 echo "$as_me: error: date required but not found" >&2;}
18471    { (exit 1); exit 1; }; }
18472 fi
18473
18474 # Extract the first word of "mv", so it can be a program name with args.
18475 set dummy mv; ac_word=$2
18476 echo "$as_me:$LINENO: checking for $ac_word" >&5
18477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18478 if test "${ac_cv_path_MV+set}" = set; then
18479   echo $ECHO_N "(cached) $ECHO_C" >&6
18480 else
18481   case $MV in
18482   [\\/]* | ?:[\\/]*)
18483   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18484   ;;
18485   *)
18486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18487 for as_dir in $PATH
18488 do
18489   IFS=$as_save_IFS
18490   test -z "$as_dir" && as_dir=.
18491   for ac_exec_ext in '' $ac_executable_extensions; do
18492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18493     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18495     break 2
18496   fi
18497 done
18498 done
18499
18500   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18501   ;;
18502 esac
18503 fi
18504 MV=$ac_cv_path_MV
18505
18506 if test -n "$MV"; then
18507   echo "$as_me:$LINENO: result: $MV" >&5
18508 echo "${ECHO_T}$MV" >&6
18509 else
18510   echo "$as_me:$LINENO: result: no" >&5
18511 echo "${ECHO_T}no" >&6
18512 fi
18513
18514 if test ${MV} = "false"
18515 then
18516         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18517 echo "$as_me: error: mv required but not found" >&2;}
18518    { (exit 1); exit 1; }; }
18519 fi
18520
18521 # Extract the first word of "dot", so it can be a program name with args.
18522 set dummy dot; ac_word=$2
18523 echo "$as_me:$LINENO: checking for $ac_word" >&5
18524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18525 if test "${ac_cv_path_DOT+set}" = set; then
18526   echo $ECHO_N "(cached) $ECHO_C" >&6
18527 else
18528   case $DOT in
18529   [\\/]* | ?:[\\/]*)
18530   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18531   ;;
18532   *)
18533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18534 for as_dir in $PATH
18535 do
18536   IFS=$as_save_IFS
18537   test -z "$as_dir" && as_dir=.
18538   for ac_exec_ext in '' $ac_executable_extensions; do
18539   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18540     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18542     break 2
18543   fi
18544 done
18545 done
18546
18547   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18548   ;;
18549 esac
18550 fi
18551 DOT=$ac_cv_path_DOT
18552
18553 if test -n "$DOT"; then
18554   echo "$as_me:$LINENO: result: $DOT" >&5
18555 echo "${ECHO_T}$DOT" >&6
18556 else
18557   echo "$as_me:$LINENO: result: no" >&5
18558 echo "${ECHO_T}no" >&6
18559 fi
18560
18561
18562 # Extract the first word of "etags", so it can be a program name with args.
18563 set dummy etags; ac_word=$2
18564 echo "$as_me:$LINENO: checking for $ac_word" >&5
18565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18566 if test "${ac_cv_path_ETAGS+set}" = set; then
18567   echo $ECHO_N "(cached) $ECHO_C" >&6
18568 else
18569   case $ETAGS in
18570   [\\/]* | ?:[\\/]*)
18571   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18572   ;;
18573   *)
18574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18575 for as_dir in $PATH
18576 do
18577   IFS=$as_save_IFS
18578   test -z "$as_dir" && as_dir=.
18579   for ac_exec_ext in '' $ac_executable_extensions; do
18580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18581     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18583     break 2
18584   fi
18585 done
18586 done
18587
18588   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18589   ;;
18590 esac
18591 fi
18592 ETAGS=$ac_cv_path_ETAGS
18593
18594 if test -n "$ETAGS"; then
18595   echo "$as_me:$LINENO: result: $ETAGS" >&5
18596 echo "${ECHO_T}$ETAGS" >&6
18597 else
18598   echo "$as_me:$LINENO: result: no" >&5
18599 echo "${ECHO_T}no" >&6
18600 fi
18601
18602
18603 # Extract the first word of "python", so it can be a program name with args.
18604 set dummy python; ac_word=$2
18605 echo "$as_me:$LINENO: checking for $ac_word" >&5
18606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18607 if test "${ac_cv_path_PYTHON+set}" = set; then
18608   echo $ECHO_N "(cached) $ECHO_C" >&6
18609 else
18610   case $PYTHON in
18611   [\\/]* | ?:[\\/]*)
18612   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18613   ;;
18614   *)
18615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18616 for as_dir in $PATH
18617 do
18618   IFS=$as_save_IFS
18619   test -z "$as_dir" && as_dir=.
18620   for ac_exec_ext in '' $ac_executable_extensions; do
18621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18622     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18624     break 2
18625   fi
18626 done
18627 done
18628
18629   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18630   ;;
18631 esac
18632 fi
18633 PYTHON=$ac_cv_path_PYTHON
18634
18635 if test -n "$PYTHON"; then
18636   echo "$as_me:$LINENO: result: $PYTHON" >&5
18637 echo "${ECHO_T}$PYTHON" >&6
18638 else
18639   echo "$as_me:$LINENO: result: no" >&5
18640 echo "${ECHO_T}no" >&6
18641 fi
18642
18643 if test ${PYTHON} = "false"
18644 then
18645         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18646 echo "$as_me: WARNING: python required but not found" >&2;}
18647 fi
18648
18649 # Extract the first word of "qmtest", so it can be a program name with args.
18650 set dummy qmtest; ac_word=$2
18651 echo "$as_me:$LINENO: checking for $ac_word" >&5
18652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18653 if test "${ac_cv_path_QMTEST+set}" = set; then
18654   echo $ECHO_N "(cached) $ECHO_C" >&6
18655 else
18656   case $QMTEST in
18657   [\\/]* | ?:[\\/]*)
18658   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18659   ;;
18660   *)
18661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18662 for as_dir in $PATH
18663 do
18664   IFS=$as_save_IFS
18665   test -z "$as_dir" && as_dir=.
18666   for ac_exec_ext in '' $ac_executable_extensions; do
18667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18668     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18670     break 2
18671   fi
18672 done
18673 done
18674
18675   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
18676   ;;
18677 esac
18678 fi
18679 QMTEST=$ac_cv_path_QMTEST
18680
18681 if test -n "$QMTEST"; then
18682   echo "$as_me:$LINENO: result: $QMTEST" >&5
18683 echo "${ECHO_T}$QMTEST" >&6
18684 else
18685   echo "$as_me:$LINENO: result: no" >&5
18686 echo "${ECHO_T}no" >&6
18687 fi
18688
18689 if test ${QMTEST} = "false"
18690 then
18691         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
18692 echo "$as_me: WARNING: qmtest required but not found" >&2;}
18693 fi
18694
18695 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18696 pymajor=`echo $pyversion | cut -d. -f1`
18697 pyminor=`echo $pyversion | cut -d. -f2`
18698
18699 if test "$pymajor" -ge "2"
18700 then
18701         if test "$pymajor" -eq "2"
18702         then
18703                 if test "$pyminor" -lt "2"
18704                 then
18705                         { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
18706 echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
18707                 fi
18708         fi
18709 else
18710         { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
18711 echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
18712 fi
18713
18714
18715
18716
18717
18718 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18719 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18720 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18721   echo $ECHO_N "(cached) $ECHO_C" >&6
18722 else
18723   ac_check_lib_save_LIBS=$LIBS
18724 LIBS="-lelf  $LIBS"
18725 cat >conftest.$ac_ext <<_ACEOF
18726 #line $LINENO "configure"
18727 /* confdefs.h.  */
18728 _ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h.  */
18732
18733 /* Override any gcc2 internal prototype to avoid an error.  */
18734 #ifdef __cplusplus
18735 extern "C"
18736 #endif
18737 /* We use char because int might match the return type of a gcc2
18738    builtin and then its argument prototype would still apply.  */
18739 char elf_begin ();
18740 int
18741 main ()
18742 {
18743 elf_begin ();
18744   ;
18745   return 0;
18746 }
18747 _ACEOF
18748 rm -f conftest.$ac_objext conftest$ac_exeext
18749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18750   (eval $ac_link) 2>&5
18751   ac_status=$?
18752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753   (exit $ac_status); } &&
18754          { ac_try='test -s conftest$ac_exeext'
18755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756   (eval $ac_try) 2>&5
18757   ac_status=$?
18758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759   (exit $ac_status); }; }; then
18760   ac_cv_lib_elf_elf_begin=yes
18761 else
18762   echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18764
18765 ac_cv_lib_elf_elf_begin=no
18766 fi
18767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18768 LIBS=$ac_check_lib_save_LIBS
18769 fi
18770 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18771 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18772 if test $ac_cv_lib_elf_elf_begin = yes; then
18773   cat >>confdefs.h <<_ACEOF
18774 #define HAVE_LIBELF 1
18775 _ACEOF
18776
18777   LIBS="-lelf $LIBS"
18778
18779 fi
18780
18781
18782 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18783 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18784 if test "${ac_cv_search_dlopen+set}" = set; then
18785   echo $ECHO_N "(cached) $ECHO_C" >&6
18786 else
18787   ac_func_search_save_LIBS=$LIBS
18788 ac_cv_search_dlopen=no
18789 cat >conftest.$ac_ext <<_ACEOF
18790 #line $LINENO "configure"
18791 /* confdefs.h.  */
18792 _ACEOF
18793 cat confdefs.h >>conftest.$ac_ext
18794 cat >>conftest.$ac_ext <<_ACEOF
18795 /* end confdefs.h.  */
18796
18797 /* Override any gcc2 internal prototype to avoid an error.  */
18798 #ifdef __cplusplus
18799 extern "C"
18800 #endif
18801 /* We use char because int might match the return type of a gcc2
18802    builtin and then its argument prototype would still apply.  */
18803 char dlopen ();
18804 int
18805 main ()
18806 {
18807 dlopen ();
18808   ;
18809   return 0;
18810 }
18811 _ACEOF
18812 rm -f conftest.$ac_objext conftest$ac_exeext
18813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18814   (eval $ac_link) 2>&5
18815   ac_status=$?
18816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817   (exit $ac_status); } &&
18818          { ac_try='test -s conftest$ac_exeext'
18819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820   (eval $ac_try) 2>&5
18821   ac_status=$?
18822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823   (exit $ac_status); }; }; then
18824   ac_cv_search_dlopen="none required"
18825 else
18826   echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18828
18829 fi
18830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18831 if test "$ac_cv_search_dlopen" = no; then
18832   for ac_lib in dl; do
18833     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18834     cat >conftest.$ac_ext <<_ACEOF
18835 #line $LINENO "configure"
18836 /* confdefs.h.  */
18837 _ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h.  */
18841
18842 /* Override any gcc2 internal prototype to avoid an error.  */
18843 #ifdef __cplusplus
18844 extern "C"
18845 #endif
18846 /* We use char because int might match the return type of a gcc2
18847    builtin and then its argument prototype would still apply.  */
18848 char dlopen ();
18849 int
18850 main ()
18851 {
18852 dlopen ();
18853   ;
18854   return 0;
18855 }
18856 _ACEOF
18857 rm -f conftest.$ac_objext conftest$ac_exeext
18858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18859   (eval $ac_link) 2>&5
18860   ac_status=$?
18861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); } &&
18863          { ac_try='test -s conftest$ac_exeext'
18864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865   (eval $ac_try) 2>&5
18866   ac_status=$?
18867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868   (exit $ac_status); }; }; then
18869   ac_cv_search_dlopen="-l$ac_lib"
18870 break
18871 else
18872   echo "$as_me: failed program was:" >&5
18873 sed 's/^/| /' conftest.$ac_ext >&5
18874
18875 fi
18876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18877   done
18878 fi
18879 LIBS=$ac_func_search_save_LIBS
18880 fi
18881 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18882 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18883 if test "$ac_cv_search_dlopen" != no; then
18884   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18885
18886 cat >>confdefs.h <<\_ACEOF
18887 #define HAVE_DLOPEN 1
18888 _ACEOF
18889
18890 else
18891   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18892 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18893 fi
18894
18895
18896 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18897 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18898 if test "${ac_cv_search_mallinfo+set}" = set; then
18899   echo $ECHO_N "(cached) $ECHO_C" >&6
18900 else
18901   ac_func_search_save_LIBS=$LIBS
18902 ac_cv_search_mallinfo=no
18903 cat >conftest.$ac_ext <<_ACEOF
18904 #line $LINENO "configure"
18905 /* confdefs.h.  */
18906 _ACEOF
18907 cat confdefs.h >>conftest.$ac_ext
18908 cat >>conftest.$ac_ext <<_ACEOF
18909 /* end confdefs.h.  */
18910
18911 /* Override any gcc2 internal prototype to avoid an error.  */
18912 #ifdef __cplusplus
18913 extern "C"
18914 #endif
18915 /* We use char because int might match the return type of a gcc2
18916    builtin and then its argument prototype would still apply.  */
18917 char mallinfo ();
18918 int
18919 main ()
18920 {
18921 mallinfo ();
18922   ;
18923   return 0;
18924 }
18925 _ACEOF
18926 rm -f conftest.$ac_objext conftest$ac_exeext
18927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18928   (eval $ac_link) 2>&5
18929   ac_status=$?
18930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931   (exit $ac_status); } &&
18932          { ac_try='test -s conftest$ac_exeext'
18933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934   (eval $ac_try) 2>&5
18935   ac_status=$?
18936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937   (exit $ac_status); }; }; then
18938   ac_cv_search_mallinfo="none required"
18939 else
18940   echo "$as_me: failed program was:" >&5
18941 sed 's/^/| /' conftest.$ac_ext >&5
18942
18943 fi
18944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18945 if test "$ac_cv_search_mallinfo" = no; then
18946   for ac_lib in malloc; do
18947     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18948     cat >conftest.$ac_ext <<_ACEOF
18949 #line $LINENO "configure"
18950 /* confdefs.h.  */
18951 _ACEOF
18952 cat confdefs.h >>conftest.$ac_ext
18953 cat >>conftest.$ac_ext <<_ACEOF
18954 /* end confdefs.h.  */
18955
18956 /* Override any gcc2 internal prototype to avoid an error.  */
18957 #ifdef __cplusplus
18958 extern "C"
18959 #endif
18960 /* We use char because int might match the return type of a gcc2
18961    builtin and then its argument prototype would still apply.  */
18962 char mallinfo ();
18963 int
18964 main ()
18965 {
18966 mallinfo ();
18967   ;
18968   return 0;
18969 }
18970 _ACEOF
18971 rm -f conftest.$ac_objext conftest$ac_exeext
18972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18973   (eval $ac_link) 2>&5
18974   ac_status=$?
18975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976   (exit $ac_status); } &&
18977          { ac_try='test -s conftest$ac_exeext'
18978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979   (eval $ac_try) 2>&5
18980   ac_status=$?
18981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982   (exit $ac_status); }; }; then
18983   ac_cv_search_mallinfo="-l$ac_lib"
18984 break
18985 else
18986   echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18988
18989 fi
18990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18991   done
18992 fi
18993 LIBS=$ac_func_search_save_LIBS
18994 fi
18995 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18996 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18997 if test "$ac_cv_search_mallinfo" != no; then
18998   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18999
19000 cat >>confdefs.h <<\_ACEOF
19001 #define HAVE_MALLINFO 1
19002 _ACEOF
19003
19004 fi
19005
19006
19007
19008 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19009 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19010 if test "${ac_cv_header_stdc+set}" = set; then
19011   echo $ECHO_N "(cached) $ECHO_C" >&6
19012 else
19013   cat >conftest.$ac_ext <<_ACEOF
19014 #line $LINENO "configure"
19015 /* confdefs.h.  */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h.  */
19020 #include <stdlib.h>
19021 #include <stdarg.h>
19022 #include <string.h>
19023 #include <float.h>
19024
19025 int
19026 main ()
19027 {
19028
19029   ;
19030   return 0;
19031 }
19032 _ACEOF
19033 rm -f conftest.$ac_objext
19034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19035   (eval $ac_compile) 2>&5
19036   ac_status=$?
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); } &&
19039          { ac_try='test -s conftest.$ac_objext'
19040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041   (eval $ac_try) 2>&5
19042   ac_status=$?
19043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044   (exit $ac_status); }; }; then
19045   ac_cv_header_stdc=yes
19046 else
19047   echo "$as_me: failed program was:" >&5
19048 sed 's/^/| /' conftest.$ac_ext >&5
19049
19050 ac_cv_header_stdc=no
19051 fi
19052 rm -f conftest.$ac_objext conftest.$ac_ext
19053
19054 if test $ac_cv_header_stdc = yes; then
19055   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19056   cat >conftest.$ac_ext <<_ACEOF
19057 #line $LINENO "configure"
19058 /* confdefs.h.  */
19059 _ACEOF
19060 cat confdefs.h >>conftest.$ac_ext
19061 cat >>conftest.$ac_ext <<_ACEOF
19062 /* end confdefs.h.  */
19063 #include <string.h>
19064
19065 _ACEOF
19066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19067   $EGREP "memchr" >/dev/null 2>&1; then
19068   :
19069 else
19070   ac_cv_header_stdc=no
19071 fi
19072 rm -f conftest*
19073
19074 fi
19075
19076 if test $ac_cv_header_stdc = yes; then
19077   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19078   cat >conftest.$ac_ext <<_ACEOF
19079 #line $LINENO "configure"
19080 /* confdefs.h.  */
19081 _ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h.  */
19085 #include <stdlib.h>
19086
19087 _ACEOF
19088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19089   $EGREP "free" >/dev/null 2>&1; then
19090   :
19091 else
19092   ac_cv_header_stdc=no
19093 fi
19094 rm -f conftest*
19095
19096 fi
19097
19098 if test $ac_cv_header_stdc = yes; then
19099   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19100   if test "$cross_compiling" = yes; then
19101   :
19102 else
19103   cat >conftest.$ac_ext <<_ACEOF
19104 #line $LINENO "configure"
19105 /* confdefs.h.  */
19106 _ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h.  */
19110 #include <ctype.h>
19111 #if ((' ' & 0x0FF) == 0x020)
19112 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19113 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19114 #else
19115 # define ISLOWER(c) \
19116                    (('a' <= (c) && (c) <= 'i') \
19117                      || ('j' <= (c) && (c) <= 'r') \
19118                      || ('s' <= (c) && (c) <= 'z'))
19119 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19120 #endif
19121
19122 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19123 int
19124 main ()
19125 {
19126   int i;
19127   for (i = 0; i < 256; i++)
19128     if (XOR (islower (i), ISLOWER (i))
19129         || toupper (i) != TOUPPER (i))
19130       exit(2);
19131   exit (0);
19132 }
19133 _ACEOF
19134 rm -f conftest$ac_exeext
19135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19136   (eval $ac_link) 2>&5
19137   ac_status=$?
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141   (eval $ac_try) 2>&5
19142   ac_status=$?
19143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144   (exit $ac_status); }; }; then
19145   :
19146 else
19147   echo "$as_me: program exited with status $ac_status" >&5
19148 echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19150
19151 ( exit $ac_status )
19152 ac_cv_header_stdc=no
19153 fi
19154 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19155 fi
19156 fi
19157 fi
19158 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19159 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19160 if test $ac_cv_header_stdc = yes; then
19161
19162 cat >>confdefs.h <<\_ACEOF
19163 #define STDC_HEADERS 1
19164 _ACEOF
19165
19166 fi
19167
19168 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19169 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19170 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19171   echo $ECHO_N "(cached) $ECHO_C" >&6
19172 else
19173   cat >conftest.$ac_ext <<_ACEOF
19174 #line $LINENO "configure"
19175 /* confdefs.h.  */
19176 _ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h.  */
19180 #include <sys/types.h>
19181 #include <sys/wait.h>
19182 #ifndef WEXITSTATUS
19183 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19184 #endif
19185 #ifndef WIFEXITED
19186 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19187 #endif
19188
19189 int
19190 main ()
19191 {
19192   int s;
19193   wait (&s);
19194   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19195   ;
19196   return 0;
19197 }
19198 _ACEOF
19199 rm -f conftest.$ac_objext
19200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19201   (eval $ac_compile) 2>&5
19202   ac_status=$?
19203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204   (exit $ac_status); } &&
19205          { ac_try='test -s conftest.$ac_objext'
19206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207   (eval $ac_try) 2>&5
19208   ac_status=$?
19209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210   (exit $ac_status); }; }; then
19211   ac_cv_header_sys_wait_h=yes
19212 else
19213   echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19215
19216 ac_cv_header_sys_wait_h=no
19217 fi
19218 rm -f conftest.$ac_objext conftest.$ac_ext
19219 fi
19220 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19221 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19222 if test $ac_cv_header_sys_wait_h = yes; then
19223
19224 cat >>confdefs.h <<\_ACEOF
19225 #define HAVE_SYS_WAIT_H 1
19226 _ACEOF
19227
19228 fi
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19240 do
19241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19243   echo "$as_me:$LINENO: checking for $ac_header" >&5
19244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19246   echo $ECHO_N "(cached) $ECHO_C" >&6
19247 fi
19248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19250 else
19251   # Is the header compilable?
19252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19254 cat >conftest.$ac_ext <<_ACEOF
19255 #line $LINENO "configure"
19256 /* confdefs.h.  */
19257 _ACEOF
19258 cat confdefs.h >>conftest.$ac_ext
19259 cat >>conftest.$ac_ext <<_ACEOF
19260 /* end confdefs.h.  */
19261 $ac_includes_default
19262 #include <$ac_header>
19263 _ACEOF
19264 rm -f conftest.$ac_objext
19265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19266   (eval $ac_compile) 2>&5
19267   ac_status=$?
19268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269   (exit $ac_status); } &&
19270          { ac_try='test -s conftest.$ac_objext'
19271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272   (eval $ac_try) 2>&5
19273   ac_status=$?
19274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275   (exit $ac_status); }; }; then
19276   ac_header_compiler=yes
19277 else
19278   echo "$as_me: failed program was:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19280
19281 ac_header_compiler=no
19282 fi
19283 rm -f conftest.$ac_objext conftest.$ac_ext
19284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19285 echo "${ECHO_T}$ac_header_compiler" >&6
19286
19287 # Is the header present?
19288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19290 cat >conftest.$ac_ext <<_ACEOF
19291 #line $LINENO "configure"
19292 /* confdefs.h.  */
19293 _ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h.  */
19297 #include <$ac_header>
19298 _ACEOF
19299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19301   ac_status=$?
19302   grep -v '^ *+' conftest.er1 >conftest.err
19303   rm -f conftest.er1
19304   cat conftest.err >&5
19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); } >/dev/null; then
19307   if test -s conftest.err; then
19308     ac_cpp_err=$ac_c_preproc_warn_flag
19309   else
19310     ac_cpp_err=
19311   fi
19312 else
19313   ac_cpp_err=yes
19314 fi
19315 if test -z "$ac_cpp_err"; then
19316   ac_header_preproc=yes
19317 else
19318   echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19320
19321   ac_header_preproc=no
19322 fi
19323 rm -f conftest.err conftest.$ac_ext
19324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19325 echo "${ECHO_T}$ac_header_preproc" >&6
19326
19327 # So?  What about this header?
19328 case $ac_header_compiler:$ac_header_preproc in
19329   yes:no )
19330     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19334     (
19335       cat <<\_ASBOX
19336 ## ------------------------------------ ##
19337 ## Report this to bug-autoconf@gnu.org. ##
19338 ## ------------------------------------ ##
19339 _ASBOX
19340     ) |
19341       sed "s/^/$as_me: WARNING:     /" >&2
19342     ;;
19343   no:yes )
19344     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19346     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19350     (
19351       cat <<\_ASBOX
19352 ## ------------------------------------ ##
19353 ## Report this to bug-autoconf@gnu.org. ##
19354 ## ------------------------------------ ##
19355 _ASBOX
19356     ) |
19357       sed "s/^/$as_me: WARNING:     /" >&2
19358     ;;
19359 esac
19360 echo "$as_me:$LINENO: checking for $ac_header" >&5
19361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19363   echo $ECHO_N "(cached) $ECHO_C" >&6
19364 else
19365   eval "$as_ac_Header=$ac_header_preproc"
19366 fi
19367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19369
19370 fi
19371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19372   cat >>confdefs.h <<_ACEOF
19373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19374 _ACEOF
19375
19376 fi
19377
19378 done
19379
19380
19381
19382
19383
19384 for ac_header in malloc.h sys/mman.h sys/resource.h
19385 do
19386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19388   echo "$as_me:$LINENO: checking for $ac_header" >&5
19389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19391   echo $ECHO_N "(cached) $ECHO_C" >&6
19392 fi
19393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19395 else
19396   # Is the header compilable?
19397 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19399 cat >conftest.$ac_ext <<_ACEOF
19400 #line $LINENO "configure"
19401 /* confdefs.h.  */
19402 _ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h.  */
19406 $ac_includes_default
19407 #include <$ac_header>
19408 _ACEOF
19409 rm -f conftest.$ac_objext
19410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19411   (eval $ac_compile) 2>&5
19412   ac_status=$?
19413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414   (exit $ac_status); } &&
19415          { ac_try='test -s conftest.$ac_objext'
19416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417   (eval $ac_try) 2>&5
19418   ac_status=$?
19419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420   (exit $ac_status); }; }; then
19421   ac_header_compiler=yes
19422 else
19423   echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19425
19426 ac_header_compiler=no
19427 fi
19428 rm -f conftest.$ac_objext conftest.$ac_ext
19429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19430 echo "${ECHO_T}$ac_header_compiler" >&6
19431
19432 # Is the header present?
19433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19435 cat >conftest.$ac_ext <<_ACEOF
19436 #line $LINENO "configure"
19437 /* confdefs.h.  */
19438 _ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h.  */
19442 #include <$ac_header>
19443 _ACEOF
19444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19445   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19446   ac_status=$?
19447   grep -v '^ *+' conftest.er1 >conftest.err
19448   rm -f conftest.er1
19449   cat conftest.err >&5
19450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451   (exit $ac_status); } >/dev/null; then
19452   if test -s conftest.err; then
19453     ac_cpp_err=$ac_c_preproc_warn_flag
19454   else
19455     ac_cpp_err=
19456   fi
19457 else
19458   ac_cpp_err=yes
19459 fi
19460 if test -z "$ac_cpp_err"; then
19461   ac_header_preproc=yes
19462 else
19463   echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19465
19466   ac_header_preproc=no
19467 fi
19468 rm -f conftest.err conftest.$ac_ext
19469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19470 echo "${ECHO_T}$ac_header_preproc" >&6
19471
19472 # So?  What about this header?
19473 case $ac_header_compiler:$ac_header_preproc in
19474   yes:no )
19475     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19479     (
19480       cat <<\_ASBOX
19481 ## ------------------------------------ ##
19482 ## Report this to bug-autoconf@gnu.org. ##
19483 ## ------------------------------------ ##
19484 _ASBOX
19485     ) |
19486       sed "s/^/$as_me: WARNING:     /" >&2
19487     ;;
19488   no:yes )
19489     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19491     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19495     (
19496       cat <<\_ASBOX
19497 ## ------------------------------------ ##
19498 ## Report this to bug-autoconf@gnu.org. ##
19499 ## ------------------------------------ ##
19500 _ASBOX
19501     ) |
19502       sed "s/^/$as_me: WARNING:     /" >&2
19503     ;;
19504 esac
19505 echo "$as_me:$LINENO: checking for $ac_header" >&5
19506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19508   echo $ECHO_N "(cached) $ECHO_C" >&6
19509 else
19510   eval "$as_ac_Header=$ac_header_preproc"
19511 fi
19512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19514
19515 fi
19516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19517   cat >>confdefs.h <<_ACEOF
19518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19519 _ACEOF
19520
19521 fi
19522
19523 done
19524
19525
19526
19527
19528 for ac_header in dlfcn.h link.h
19529 do
19530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19532   echo "$as_me:$LINENO: checking for $ac_header" >&5
19533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19535   echo $ECHO_N "(cached) $ECHO_C" >&6
19536 fi
19537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19539 else
19540   # Is the header compilable?
19541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19543 cat >conftest.$ac_ext <<_ACEOF
19544 #line $LINENO "configure"
19545 /* confdefs.h.  */
19546 _ACEOF
19547 cat confdefs.h >>conftest.$ac_ext
19548 cat >>conftest.$ac_ext <<_ACEOF
19549 /* end confdefs.h.  */
19550 $ac_includes_default
19551 #include <$ac_header>
19552 _ACEOF
19553 rm -f conftest.$ac_objext
19554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19555   (eval $ac_compile) 2>&5
19556   ac_status=$?
19557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558   (exit $ac_status); } &&
19559          { ac_try='test -s conftest.$ac_objext'
19560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561   (eval $ac_try) 2>&5
19562   ac_status=$?
19563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564   (exit $ac_status); }; }; then
19565   ac_header_compiler=yes
19566 else
19567   echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19569
19570 ac_header_compiler=no
19571 fi
19572 rm -f conftest.$ac_objext conftest.$ac_ext
19573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19574 echo "${ECHO_T}$ac_header_compiler" >&6
19575
19576 # Is the header present?
19577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19579 cat >conftest.$ac_ext <<_ACEOF
19580 #line $LINENO "configure"
19581 /* confdefs.h.  */
19582 _ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h.  */
19586 #include <$ac_header>
19587 _ACEOF
19588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19589   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19590   ac_status=$?
19591   grep -v '^ *+' conftest.er1 >conftest.err
19592   rm -f conftest.er1
19593   cat conftest.err >&5
19594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595   (exit $ac_status); } >/dev/null; then
19596   if test -s conftest.err; then
19597     ac_cpp_err=$ac_c_preproc_warn_flag
19598   else
19599     ac_cpp_err=
19600   fi
19601 else
19602   ac_cpp_err=yes
19603 fi
19604 if test -z "$ac_cpp_err"; then
19605   ac_header_preproc=yes
19606 else
19607   echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19609
19610   ac_header_preproc=no
19611 fi
19612 rm -f conftest.err conftest.$ac_ext
19613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19614 echo "${ECHO_T}$ac_header_preproc" >&6
19615
19616 # So?  What about this header?
19617 case $ac_header_compiler:$ac_header_preproc in
19618   yes:no )
19619     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19623     (
19624       cat <<\_ASBOX
19625 ## ------------------------------------ ##
19626 ## Report this to bug-autoconf@gnu.org. ##
19627 ## ------------------------------------ ##
19628 _ASBOX
19629     ) |
19630       sed "s/^/$as_me: WARNING:     /" >&2
19631     ;;
19632   no:yes )
19633     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19635     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19639     (
19640       cat <<\_ASBOX
19641 ## ------------------------------------ ##
19642 ## Report this to bug-autoconf@gnu.org. ##
19643 ## ------------------------------------ ##
19644 _ASBOX
19645     ) |
19646       sed "s/^/$as_me: WARNING:     /" >&2
19647     ;;
19648 esac
19649 echo "$as_me:$LINENO: checking for $ac_header" >&5
19650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19652   echo $ECHO_N "(cached) $ECHO_C" >&6
19653 else
19654   eval "$as_ac_Header=$ac_header_preproc"
19655 fi
19656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19658
19659 fi
19660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19661   cat >>confdefs.h <<_ACEOF
19662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19663 _ACEOF
19664
19665 fi
19666
19667 done
19668
19669
19670
19671 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19672 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19673 if test "${ac_cv_c_const+set}" = set; then
19674   echo $ECHO_N "(cached) $ECHO_C" >&6
19675 else
19676   cat >conftest.$ac_ext <<_ACEOF
19677 #line $LINENO "configure"
19678 /* confdefs.h.  */
19679 _ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h.  */
19683
19684 int
19685 main ()
19686 {
19687 /* FIXME: Include the comments suggested by Paul. */
19688 #ifndef __cplusplus
19689   /* Ultrix mips cc rejects this.  */
19690   typedef int charset[2];
19691   const charset x;
19692   /* SunOS 4.1.1 cc rejects this.  */
19693   char const *const *ccp;
19694   char **p;
19695   /* NEC SVR4.0.2 mips cc rejects this.  */
19696   struct point {int x, y;};
19697   static struct point const zero = {0,0};
19698   /* AIX XL C 1.02.0.0 rejects this.
19699      It does not let you subtract one const X* pointer from another in
19700      an arm of an if-expression whose if-part is not a constant
19701      expression */
19702   const char *g = "string";
19703   ccp = &g + (g ? g-g : 0);
19704   /* HPUX 7.0 cc rejects these. */
19705   ++ccp;
19706   p = (char**) ccp;
19707   ccp = (char const *const *) p;
19708   { /* SCO 3.2v4 cc rejects this.  */
19709     char *t;
19710     char const *s = 0 ? (char *) 0 : (char const *) 0;
19711
19712     *t++ = 0;
19713   }
19714   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19715     int x[] = {25, 17};
19716     const int *foo = &x[0];
19717     ++foo;
19718   }
19719   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19720     typedef const int *iptr;
19721     iptr p = 0;
19722     ++p;
19723   }
19724   { /* AIX XL C 1.02.0.0 rejects this saying
19725        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19726     struct s { int j; const int *ap[3]; };
19727     struct s *b; b->j = 5;
19728   }
19729   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19730     const int foo = 10;
19731   }
19732 #endif
19733
19734   ;
19735   return 0;
19736 }
19737 _ACEOF
19738 rm -f conftest.$ac_objext
19739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19740   (eval $ac_compile) 2>&5
19741   ac_status=$?
19742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743   (exit $ac_status); } &&
19744          { ac_try='test -s conftest.$ac_objext'
19745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746   (eval $ac_try) 2>&5
19747   ac_status=$?
19748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749   (exit $ac_status); }; }; then
19750   ac_cv_c_const=yes
19751 else
19752   echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19754
19755 ac_cv_c_const=no
19756 fi
19757 rm -f conftest.$ac_objext conftest.$ac_ext
19758 fi
19759 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19760 echo "${ECHO_T}$ac_cv_c_const" >&6
19761 if test $ac_cv_c_const = no; then
19762
19763 cat >>confdefs.h <<\_ACEOF
19764 #define const
19765 _ACEOF
19766
19767 fi
19768
19769 echo "$as_me:$LINENO: checking for inline" >&5
19770 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19771 if test "${ac_cv_c_inline+set}" = set; then
19772   echo $ECHO_N "(cached) $ECHO_C" >&6
19773 else
19774   ac_cv_c_inline=no
19775 for ac_kw in inline __inline__ __inline; do
19776   cat >conftest.$ac_ext <<_ACEOF
19777 #line $LINENO "configure"
19778 /* confdefs.h.  */
19779 _ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h.  */
19783 #ifndef __cplusplus
19784 typedef int foo_t;
19785 static $ac_kw foo_t static_foo () {return 0; }
19786 $ac_kw foo_t foo () {return 0; }
19787 #endif
19788
19789 _ACEOF
19790 rm -f conftest.$ac_objext
19791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19792   (eval $ac_compile) 2>&5
19793   ac_status=$?
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); } &&
19796          { ac_try='test -s conftest.$ac_objext'
19797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798   (eval $ac_try) 2>&5
19799   ac_status=$?
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); }; }; then
19802   ac_cv_c_inline=$ac_kw; break
19803 else
19804   echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19806
19807 fi
19808 rm -f conftest.$ac_objext conftest.$ac_ext
19809 done
19810
19811 fi
19812 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19813 echo "${ECHO_T}$ac_cv_c_inline" >&6
19814 case $ac_cv_c_inline in
19815   inline | yes) ;;
19816   no)
19817 cat >>confdefs.h <<\_ACEOF
19818 #define inline
19819 _ACEOF
19820  ;;
19821   *)  cat >>confdefs.h <<_ACEOF
19822 #define inline $ac_cv_c_inline
19823 _ACEOF
19824  ;;
19825 esac
19826
19827
19828 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19829 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19830 if test "${ac_cv_c_bigendian+set}" = set; then
19831   echo $ECHO_N "(cached) $ECHO_C" >&6
19832 else
19833   # See if sys/param.h defines the BYTE_ORDER macro.
19834 cat >conftest.$ac_ext <<_ACEOF
19835 #line $LINENO "configure"
19836 /* confdefs.h.  */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h.  */
19841 #include <sys/types.h>
19842 #include <sys/param.h>
19843
19844 int
19845 main ()
19846 {
19847 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19848  bogus endian macros
19849 #endif
19850
19851   ;
19852   return 0;
19853 }
19854 _ACEOF
19855 rm -f conftest.$ac_objext
19856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19857   (eval $ac_compile) 2>&5
19858   ac_status=$?
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); } &&
19861          { ac_try='test -s conftest.$ac_objext'
19862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19863   (eval $ac_try) 2>&5
19864   ac_status=$?
19865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866   (exit $ac_status); }; }; then
19867   # It does; now see whether it defined to BIG_ENDIAN or not.
19868 cat >conftest.$ac_ext <<_ACEOF
19869 #line $LINENO "configure"
19870 /* confdefs.h.  */
19871 _ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h.  */
19875 #include <sys/types.h>
19876 #include <sys/param.h>
19877
19878 int
19879 main ()
19880 {
19881 #if BYTE_ORDER != BIG_ENDIAN
19882  not big endian
19883 #endif
19884
19885   ;
19886   return 0;
19887 }
19888 _ACEOF
19889 rm -f conftest.$ac_objext
19890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19891   (eval $ac_compile) 2>&5
19892   ac_status=$?
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); } &&
19895          { ac_try='test -s conftest.$ac_objext'
19896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897   (eval $ac_try) 2>&5
19898   ac_status=$?
19899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900   (exit $ac_status); }; }; then
19901   ac_cv_c_bigendian=yes
19902 else
19903   echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19905
19906 ac_cv_c_bigendian=no
19907 fi
19908 rm -f conftest.$ac_objext conftest.$ac_ext
19909 else
19910   echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19912
19913 # It does not; compile a test program.
19914 if test "$cross_compiling" = yes; then
19915   # try to guess the endianness by grepping values into an object file
19916   ac_cv_c_bigendian=unknown
19917   cat >conftest.$ac_ext <<_ACEOF
19918 #line $LINENO "configure"
19919 /* confdefs.h.  */
19920 _ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h.  */
19924 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19925 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19926 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19927 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19928 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19929 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19930 int
19931 main ()
19932 {
19933  _ascii (); _ebcdic ();
19934   ;
19935   return 0;
19936 }
19937 _ACEOF
19938 rm -f conftest.$ac_objext
19939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19940   (eval $ac_compile) 2>&5
19941   ac_status=$?
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); } &&
19944          { ac_try='test -s conftest.$ac_objext'
19945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946   (eval $ac_try) 2>&5
19947   ac_status=$?
19948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949   (exit $ac_status); }; }; then
19950   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19951   ac_cv_c_bigendian=yes
19952 fi
19953 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19954   if test "$ac_cv_c_bigendian" = unknown; then
19955     ac_cv_c_bigendian=no
19956   else
19957     # finding both strings is unlikely to happen, but who knows?
19958     ac_cv_c_bigendian=unknown
19959   fi
19960 fi
19961 else
19962   echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19964
19965 fi
19966 rm -f conftest.$ac_objext conftest.$ac_ext
19967 else
19968   cat >conftest.$ac_ext <<_ACEOF
19969 #line $LINENO "configure"
19970 /* confdefs.h.  */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h.  */
19975 int
19976 main ()
19977 {
19978   /* Are we little or big endian?  From Harbison&Steele.  */
19979   union
19980   {
19981     long l;
19982     char c[sizeof (long)];
19983   } u;
19984   u.l = 1;
19985   exit (u.c[sizeof (long) - 1] == 1);
19986 }
19987 _ACEOF
19988 rm -f conftest$ac_exeext
19989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19990   (eval $ac_link) 2>&5
19991   ac_status=$?
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995   (eval $ac_try) 2>&5
19996   ac_status=$?
19997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998   (exit $ac_status); }; }; then
19999   ac_cv_c_bigendian=no
20000 else
20001   echo "$as_me: program exited with status $ac_status" >&5
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20004
20005 ( exit $ac_status )
20006 ac_cv_c_bigendian=yes
20007 fi
20008 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20009 fi
20010 fi
20011 rm -f conftest.$ac_objext conftest.$ac_ext
20012 fi
20013 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20014 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20015 case $ac_cv_c_bigendian in
20016   yes)
20017
20018 cat >>confdefs.h <<\_ACEOF
20019 #define ENDIAN_BIG
20020 _ACEOF
20021  ;;
20022   no)
20023
20024 cat >>confdefs.h <<\_ACEOF
20025 #define ENDIAN_LITTLE
20026 _ACEOF
20027  ;;
20028   *)
20029     { { echo "$as_me:$LINENO: error: unknown endianness
20030 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20031 echo "$as_me: error: unknown endianness
20032 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20033    { (exit 1); exit 1; }; } ;;
20034 esac
20035
20036
20037 echo "$as_me:$LINENO: checking for pid_t" >&5
20038 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20039 if test "${ac_cv_type_pid_t+set}" = set; then
20040   echo $ECHO_N "(cached) $ECHO_C" >&6
20041 else
20042   cat >conftest.$ac_ext <<_ACEOF
20043 #line $LINENO "configure"
20044 /* confdefs.h.  */
20045 _ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h.  */
20049 $ac_includes_default
20050 int
20051 main ()
20052 {
20053 if ((pid_t *) 0)
20054   return 0;
20055 if (sizeof (pid_t))
20056   return 0;
20057   ;
20058   return 0;
20059 }
20060 _ACEOF
20061 rm -f conftest.$ac_objext
20062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20063   (eval $ac_compile) 2>&5
20064   ac_status=$?
20065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066   (exit $ac_status); } &&
20067          { ac_try='test -s conftest.$ac_objext'
20068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069   (eval $ac_try) 2>&5
20070   ac_status=$?
20071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072   (exit $ac_status); }; }; then
20073   ac_cv_type_pid_t=yes
20074 else
20075   echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20077
20078 ac_cv_type_pid_t=no
20079 fi
20080 rm -f conftest.$ac_objext conftest.$ac_ext
20081 fi
20082 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20083 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20084 if test $ac_cv_type_pid_t = yes; then
20085   :
20086 else
20087
20088 cat >>confdefs.h <<_ACEOF
20089 #define pid_t int
20090 _ACEOF
20091
20092 fi
20093
20094 echo "$as_me:$LINENO: checking for size_t" >&5
20095 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20096 if test "${ac_cv_type_size_t+set}" = set; then
20097   echo $ECHO_N "(cached) $ECHO_C" >&6
20098 else
20099   cat >conftest.$ac_ext <<_ACEOF
20100 #line $LINENO "configure"
20101 /* confdefs.h.  */
20102 _ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h.  */
20106 $ac_includes_default
20107 int
20108 main ()
20109 {
20110 if ((size_t *) 0)
20111   return 0;
20112 if (sizeof (size_t))
20113   return 0;
20114   ;
20115   return 0;
20116 }
20117 _ACEOF
20118 rm -f conftest.$ac_objext
20119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20120   (eval $ac_compile) 2>&5
20121   ac_status=$?
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); } &&
20124          { ac_try='test -s conftest.$ac_objext'
20125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126   (eval $ac_try) 2>&5
20127   ac_status=$?
20128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129   (exit $ac_status); }; }; then
20130   ac_cv_type_size_t=yes
20131 else
20132   echo "$as_me: failed program was:" >&5
20133 sed 's/^/| /' conftest.$ac_ext >&5
20134
20135 ac_cv_type_size_t=no
20136 fi
20137 rm -f conftest.$ac_objext conftest.$ac_ext
20138 fi
20139 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20140 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20141 if test $ac_cv_type_size_t = yes; then
20142   :
20143 else
20144
20145 cat >>confdefs.h <<_ACEOF
20146 #define size_t unsigned
20147 _ACEOF
20148
20149 fi
20150
20151 echo "$as_me:$LINENO: checking for int64_t" >&5
20152 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20153 if test "${ac_cv_type_int64_t+set}" = set; then
20154   echo $ECHO_N "(cached) $ECHO_C" >&6
20155 else
20156   cat >conftest.$ac_ext <<_ACEOF
20157 #line $LINENO "configure"
20158 /* confdefs.h.  */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h.  */
20163 $ac_includes_default
20164 int
20165 main ()
20166 {
20167 if ((int64_t *) 0)
20168   return 0;
20169 if (sizeof (int64_t))
20170   return 0;
20171   ;
20172   return 0;
20173 }
20174 _ACEOF
20175 rm -f conftest.$ac_objext
20176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20177   (eval $ac_compile) 2>&5
20178   ac_status=$?
20179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180   (exit $ac_status); } &&
20181          { ac_try='test -s conftest.$ac_objext'
20182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20183   (eval $ac_try) 2>&5
20184   ac_status=$?
20185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186   (exit $ac_status); }; }; then
20187   ac_cv_type_int64_t=yes
20188 else
20189   echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20191
20192 ac_cv_type_int64_t=no
20193 fi
20194 rm -f conftest.$ac_objext conftest.$ac_ext
20195 fi
20196 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20197 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20198 if test $ac_cv_type_int64_t = yes; then
20199
20200 cat >>confdefs.h <<_ACEOF
20201 #define HAVE_INT64_T 1
20202 _ACEOF
20203
20204
20205 else
20206   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20207 echo "$as_me: error: Type int64_t required but not found" >&2;}
20208    { (exit 1); exit 1; }; }
20209 fi
20210
20211 echo "$as_me:$LINENO: checking for uint64_t" >&5
20212 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20213 if test "${ac_cv_type_uint64_t+set}" = set; then
20214   echo $ECHO_N "(cached) $ECHO_C" >&6
20215 else
20216   cat >conftest.$ac_ext <<_ACEOF
20217 #line $LINENO "configure"
20218 /* confdefs.h.  */
20219 _ACEOF
20220 cat confdefs.h >>conftest.$ac_ext
20221 cat >>conftest.$ac_ext <<_ACEOF
20222 /* end confdefs.h.  */
20223 $ac_includes_default
20224 int
20225 main ()
20226 {
20227 if ((uint64_t *) 0)
20228   return 0;
20229 if (sizeof (uint64_t))
20230   return 0;
20231   ;
20232   return 0;
20233 }
20234 _ACEOF
20235 rm -f conftest.$ac_objext
20236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20237   (eval $ac_compile) 2>&5
20238   ac_status=$?
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); } &&
20241          { ac_try='test -s conftest.$ac_objext'
20242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243   (eval $ac_try) 2>&5
20244   ac_status=$?
20245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246   (exit $ac_status); }; }; then
20247   ac_cv_type_uint64_t=yes
20248 else
20249   echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20251
20252 ac_cv_type_uint64_t=no
20253 fi
20254 rm -f conftest.$ac_objext conftest.$ac_ext
20255 fi
20256 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20257 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20258 if test $ac_cv_type_uint64_t = yes; then
20259
20260 cat >>confdefs.h <<_ACEOF
20261 #define HAVE_UINT64_T 1
20262 _ACEOF
20263
20264
20265 else
20266   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20267 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20268    { (exit 1); exit 1; }; }
20269 fi
20270
20271 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20272 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20273 if test "${ac_cv_header_time+set}" = set; then
20274   echo $ECHO_N "(cached) $ECHO_C" >&6
20275 else
20276   cat >conftest.$ac_ext <<_ACEOF
20277 #line $LINENO "configure"
20278 /* confdefs.h.  */
20279 _ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h.  */
20283 #include <sys/types.h>
20284 #include <sys/time.h>
20285 #include <time.h>
20286
20287 int
20288 main ()
20289 {
20290 if ((struct tm *) 0)
20291 return 0;
20292   ;
20293   return 0;
20294 }
20295 _ACEOF
20296 rm -f conftest.$ac_objext
20297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20298   (eval $ac_compile) 2>&5
20299   ac_status=$?
20300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301   (exit $ac_status); } &&
20302          { ac_try='test -s conftest.$ac_objext'
20303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304   (eval $ac_try) 2>&5
20305   ac_status=$?
20306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307   (exit $ac_status); }; }; then
20308   ac_cv_header_time=yes
20309 else
20310   echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20312
20313 ac_cv_header_time=no
20314 fi
20315 rm -f conftest.$ac_objext conftest.$ac_ext
20316 fi
20317 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20318 echo "${ECHO_T}$ac_cv_header_time" >&6
20319 if test $ac_cv_header_time = yes; then
20320
20321 cat >>confdefs.h <<\_ACEOF
20322 #define TIME_WITH_SYS_TIME 1
20323 _ACEOF
20324
20325 fi
20326
20327 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20328 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20329 if test "${ac_cv_struct_tm+set}" = set; then
20330   echo $ECHO_N "(cached) $ECHO_C" >&6
20331 else
20332   cat >conftest.$ac_ext <<_ACEOF
20333 #line $LINENO "configure"
20334 /* confdefs.h.  */
20335 _ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h.  */
20339 #include <sys/types.h>
20340 #include <time.h>
20341
20342 int
20343 main ()
20344 {
20345 struct tm *tp; tp->tm_sec;
20346   ;
20347   return 0;
20348 }
20349 _ACEOF
20350 rm -f conftest.$ac_objext
20351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20352   (eval $ac_compile) 2>&5
20353   ac_status=$?
20354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355   (exit $ac_status); } &&
20356          { ac_try='test -s conftest.$ac_objext'
20357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358   (eval $ac_try) 2>&5
20359   ac_status=$?
20360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361   (exit $ac_status); }; }; then
20362   ac_cv_struct_tm=time.h
20363 else
20364   echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20366
20367 ac_cv_struct_tm=sys/time.h
20368 fi
20369 rm -f conftest.$ac_objext conftest.$ac_ext
20370 fi
20371 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20372 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20373 if test $ac_cv_struct_tm = sys/time.h; then
20374
20375 cat >>confdefs.h <<\_ACEOF
20376 #define TM_IN_SYS_TIME 1
20377 _ACEOF
20378
20379 fi
20380
20381
20382
20383
20384
20385         ac_ext=c
20386 ac_cpp='$CPP $CPPFLAGS'
20387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20390
20391         if test "$cross_compiling" = yes; then
20392   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20393 See \`config.log' for more details." >&5
20394 echo "$as_me: error: cannot run test program while cross compiling
20395 See \`config.log' for more details." >&2;}
20396    { (exit 1); exit 1; }; }
20397 else
20398   cat >conftest.$ac_ext <<_ACEOF
20399 #line $LINENO "configure"
20400 /* confdefs.h.  */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h.  */
20405 #include <stdio.h>
20406                                  #include <stdlib.h>
20407 int
20408 main ()
20409 {
20410
20411                                  volatile double A, B;
20412                                  char Buffer[100];
20413                                  A = 1;
20414                                  A /= 10.0;
20415                                  sprintf(Buffer, "%a", A);
20416                                  B = atof(Buffer);
20417                                  if (A != B)
20418                                                          return (1);
20419                                  if (A != 0x1.999999999999ap-4)
20420                                                          return (1);
20421                                  return (0);
20422   ;
20423   return 0;
20424 }
20425 _ACEOF
20426 rm -f conftest$ac_exeext
20427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20428   (eval $ac_link) 2>&5
20429   ac_status=$?
20430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433   (eval $ac_try) 2>&5
20434   ac_status=$?
20435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436   (exit $ac_status); }; }; then
20437   ac_c_printf_a=yes
20438 else
20439   echo "$as_me: program exited with status $ac_status" >&5
20440 echo "$as_me: failed program was:" >&5
20441 sed 's/^/| /' conftest.$ac_ext >&5
20442
20443 ( exit $ac_status )
20444 ac_c_printf_a=no
20445 fi
20446 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20447 fi
20448         ac_ext=c
20449 ac_cpp='$CPP $CPPFLAGS'
20450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20453
20454         if test "$ac_c_printf_a" = "yes"; then
20455
20456 cat >>confdefs.h <<\_ACEOF
20457 #define HAVE_PRINTF_A 1
20458 _ACEOF
20459
20460         fi
20461
20462
20463 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20464 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20465 if test "${ac_cv_cxx_namespaces+set}" = set; then
20466   echo $ECHO_N "(cached) $ECHO_C" >&6
20467 else
20468
20469
20470  ac_ext=cc
20471 ac_cpp='$CXXCPP $CPPFLAGS'
20472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20475
20476  cat >conftest.$ac_ext <<_ACEOF
20477 #line $LINENO "configure"
20478 /* confdefs.h.  */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h.  */
20483 namespace Outer { namespace Inner { int i = 0; }}
20484 int
20485 main ()
20486 {
20487 using namespace Outer::Inner; return i;
20488   ;
20489   return 0;
20490 }
20491 _ACEOF
20492 rm -f conftest.$ac_objext
20493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20494   (eval $ac_compile) 2>&5
20495   ac_status=$?
20496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497   (exit $ac_status); } &&
20498          { ac_try='test -s conftest.$ac_objext'
20499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20500   (eval $ac_try) 2>&5
20501   ac_status=$?
20502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503   (exit $ac_status); }; }; then
20504   ac_cv_cxx_namespaces=yes
20505 else
20506   echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20508
20509 ac_cv_cxx_namespaces=no
20510 fi
20511 rm -f conftest.$ac_objext conftest.$ac_ext
20512  ac_ext=c
20513 ac_cpp='$CPP $CPPFLAGS'
20514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20517
20518
20519 fi
20520 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20521 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20522 if test "$ac_cv_cxx_namespaces" = yes; then
20523
20524 cat >>confdefs.h <<\_ACEOF
20525 #define HAVE_NAMESPACES
20526 _ACEOF
20527
20528 fi
20529
20530 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20531 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20532 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20533   echo $ECHO_N "(cached) $ECHO_C" >&6
20534 else
20535
20536
20537
20538   ac_ext=cc
20539 ac_cpp='$CXXCPP $CPPFLAGS'
20540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20543
20544   cat >conftest.$ac_ext <<_ACEOF
20545 #line $LINENO "configure"
20546 /* confdefs.h.  */
20547 _ACEOF
20548 cat confdefs.h >>conftest.$ac_ext
20549 cat >>conftest.$ac_ext <<_ACEOF
20550 /* end confdefs.h.  */
20551 #include <ext/hash_map>
20552 #ifdef HAVE_NAMESPACES
20553 using namespace std;
20554 #endif
20555 int
20556 main ()
20557 {
20558 hash_map<int, int> t;
20559   ;
20560   return 0;
20561 }
20562 _ACEOF
20563 rm -f conftest.$ac_objext
20564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20565   (eval $ac_compile) 2>&5
20566   ac_status=$?
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); } &&
20569          { ac_try='test -s conftest.$ac_objext'
20570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571   (eval $ac_try) 2>&5
20572   ac_status=$?
20573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574   (exit $ac_status); }; }; then
20575   ac_cv_cxx_have_std_ext_hash_map=yes
20576 else
20577   echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20579
20580 ac_cv_cxx_have_std_ext_hash_map=no
20581 fi
20582 rm -f conftest.$ac_objext conftest.$ac_ext
20583   ac_ext=c
20584 ac_cpp='$CPP $CPPFLAGS'
20585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20588
20589 fi
20590 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20591 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20592  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
20593
20594 cat >>confdefs.h <<\_ACEOF
20595 #define HAVE_STD_EXT_HASH_MAP
20596 _ACEOF
20597
20598  fi
20599  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20600 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20601 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20602   echo $ECHO_N "(cached) $ECHO_C" >&6
20603 else
20604
20605
20606
20607   ac_ext=cc
20608 ac_cpp='$CXXCPP $CPPFLAGS'
20609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20612
20613   cat >conftest.$ac_ext <<_ACEOF
20614 #line $LINENO "configure"
20615 /* confdefs.h.  */
20616 _ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h.  */
20620 #include <ext/hash_map>
20621 #ifdef HAVE_NAMESPACES
20622 using namespace __gnu_cxx;
20623 #endif
20624 int
20625 main ()
20626 {
20627 hash_map<int,int> t;
20628   ;
20629   return 0;
20630 }
20631 _ACEOF
20632 rm -f conftest.$ac_objext
20633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20634   (eval $ac_compile) 2>&5
20635   ac_status=$?
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); } &&
20638          { ac_try='test -s conftest.$ac_objext'
20639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640   (eval $ac_try) 2>&5
20641   ac_status=$?
20642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643   (exit $ac_status); }; }; then
20644   ac_cv_cxx_have_gnu_ext_hash_map=yes
20645 else
20646   echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20648
20649 ac_cv_cxx_have_gnu_ext_hash_map=no
20650 fi
20651 rm -f conftest.$ac_objext conftest.$ac_ext
20652   ac_ext=c
20653 ac_cpp='$CPP $CPPFLAGS'
20654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20657
20658 fi
20659 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20660 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20661  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
20662
20663 cat >>confdefs.h <<\_ACEOF
20664 #define HAVE_GNU_EXT_HASH_MAP
20665 _ACEOF
20666
20667  fi
20668  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20669 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20670 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20671   echo $ECHO_N "(cached) $ECHO_C" >&6
20672 else
20673
20674
20675
20676   ac_ext=cc
20677 ac_cpp='$CXXCPP $CPPFLAGS'
20678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20681
20682   cat >conftest.$ac_ext <<_ACEOF
20683 #line $LINENO "configure"
20684 /* confdefs.h.  */
20685 _ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h.  */
20689 #include <hash_map>
20690 int
20691 main ()
20692 {
20693 hash_map<int,int> t;
20694   ;
20695   return 0;
20696 }
20697 _ACEOF
20698 rm -f conftest.$ac_objext
20699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20700   (eval $ac_compile) 2>&5
20701   ac_status=$?
20702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703   (exit $ac_status); } &&
20704          { ac_try='test -s conftest.$ac_objext'
20705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706   (eval $ac_try) 2>&5
20707   ac_status=$?
20708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709   (exit $ac_status); }; }; then
20710   ac_cv_cxx_have_global_hash_map=yes
20711 else
20712   echo "$as_me: failed program was:" >&5
20713 sed 's/^/| /' conftest.$ac_ext >&5
20714
20715 ac_cv_cxx_have_global_hash_map=no
20716 fi
20717 rm -f conftest.$ac_objext conftest.$ac_ext
20718   ac_ext=c
20719 ac_cpp='$CPP $CPPFLAGS'
20720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20723
20724 fi
20725 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20726 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20727  if test "$ac_cv_cxx_have_global_hash_map" = yes; then
20728
20729 cat >>confdefs.h <<\_ACEOF
20730 #define HAVE_GLOBAL_HASH_MAP
20731 _ACEOF
20732
20733  fi
20734 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20735 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20736 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20737   echo $ECHO_N "(cached) $ECHO_C" >&6
20738 else
20739
20740
20741
20742   ac_ext=cc
20743 ac_cpp='$CXXCPP $CPPFLAGS'
20744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20747
20748   cat >conftest.$ac_ext <<_ACEOF
20749 #line $LINENO "configure"
20750 /* confdefs.h.  */
20751 _ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h.  */
20755 #include <ext/hash_set>
20756 #ifdef HAVE_NAMESPACES
20757 using namespace std;
20758 #endif
20759 int
20760 main ()
20761 {
20762 hash_set<int> t;
20763   ;
20764   return 0;
20765 }
20766 _ACEOF
20767 rm -f conftest.$ac_objext
20768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20769   (eval $ac_compile) 2>&5
20770   ac_status=$?
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); } &&
20773          { ac_try='test -s conftest.$ac_objext'
20774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775   (eval $ac_try) 2>&5
20776   ac_status=$?
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); }; }; then
20779   ac_cv_cxx_have_std_ext_hash_set=yes
20780 else
20781   echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20783
20784 ac_cv_cxx_have_std_ext_hash_set=no
20785 fi
20786 rm -f conftest.$ac_objext conftest.$ac_ext
20787   ac_ext=c
20788 ac_cpp='$CPP $CPPFLAGS'
20789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20792
20793 fi
20794 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20795 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20796  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
20797
20798 cat >>confdefs.h <<\_ACEOF
20799 #define HAVE_STD_EXT_HASH_SET
20800 _ACEOF
20801
20802  fi
20803  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20804 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20805 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20806   echo $ECHO_N "(cached) $ECHO_C" >&6
20807 else
20808
20809
20810
20811   ac_ext=cc
20812 ac_cpp='$CXXCPP $CPPFLAGS'
20813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20816
20817   cat >conftest.$ac_ext <<_ACEOF
20818 #line $LINENO "configure"
20819 /* confdefs.h.  */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h.  */
20824 #include <ext/hash_set>
20825 #ifdef HAVE_NAMESPACES
20826 using namespace __gnu_cxx;
20827 #endif
20828 int
20829 main ()
20830 {
20831 hash_set<int> t;
20832   ;
20833   return 0;
20834 }
20835 _ACEOF
20836 rm -f conftest.$ac_objext
20837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20838   (eval $ac_compile) 2>&5
20839   ac_status=$?
20840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841   (exit $ac_status); } &&
20842          { ac_try='test -s conftest.$ac_objext'
20843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844   (eval $ac_try) 2>&5
20845   ac_status=$?
20846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847   (exit $ac_status); }; }; then
20848   ac_cv_cxx_have_gnu_ext_hash_set=yes
20849 else
20850   echo "$as_me: failed program was:" >&5
20851 sed 's/^/| /' conftest.$ac_ext >&5
20852
20853 ac_cv_cxx_have_gnu_ext_hash_set=no
20854 fi
20855 rm -f conftest.$ac_objext conftest.$ac_ext
20856   ac_ext=c
20857 ac_cpp='$CPP $CPPFLAGS'
20858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20861
20862 fi
20863 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20864 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20865  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
20866
20867 cat >>confdefs.h <<\_ACEOF
20868 #define HAVE_GNU_EXT_HASH_SET
20869 _ACEOF
20870
20871  fi
20872  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20873 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20874 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20875   echo $ECHO_N "(cached) $ECHO_C" >&6
20876 else
20877
20878
20879
20880   ac_ext=cc
20881 ac_cpp='$CXXCPP $CPPFLAGS'
20882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20885
20886   cat >conftest.$ac_ext <<_ACEOF
20887 #line $LINENO "configure"
20888 /* confdefs.h.  */
20889 _ACEOF
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h.  */
20893 #include <hash_set>
20894 int
20895 main ()
20896 {
20897 hash_set<int> t; return 0;
20898   ;
20899   return 0;
20900 }
20901 _ACEOF
20902 rm -f conftest.$ac_objext
20903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20904   (eval $ac_compile) 2>&5
20905   ac_status=$?
20906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907   (exit $ac_status); } &&
20908          { ac_try='test -s conftest.$ac_objext'
20909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910   (eval $ac_try) 2>&5
20911   ac_status=$?
20912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913   (exit $ac_status); }; }; then
20914   ac_cv_cxx_have_global_hash_set=yes
20915 else
20916   echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20918
20919 ac_cv_cxx_have_global_hash_set=no
20920 fi
20921 rm -f conftest.$ac_objext conftest.$ac_ext
20922   ac_ext=c
20923 ac_cpp='$CPP $CPPFLAGS'
20924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20927
20928 fi
20929 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20930 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20931  if test "$ac_cv_cxx_have_global_hash_set" = yes; then
20932
20933 cat >>confdefs.h <<\_ACEOF
20934 #define HAVE_GLOBAL_HASH_SET
20935 _ACEOF
20936
20937  fi
20938 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20939 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20940 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20941   echo $ECHO_N "(cached) $ECHO_C" >&6
20942 else
20943
20944
20945
20946   ac_ext=cc
20947 ac_cpp='$CXXCPP $CPPFLAGS'
20948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20951
20952   cat >conftest.$ac_ext <<_ACEOF
20953 #line $LINENO "configure"
20954 /* confdefs.h.  */
20955 _ACEOF
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h.  */
20959 #include <ext/slist>
20960 #ifdef HAVE_NAMESPACES
20961 using namespace std;
20962 #endif
20963 int
20964 main ()
20965 {
20966 slist<int> s; return 0;
20967   ;
20968   return 0;
20969 }
20970 _ACEOF
20971 rm -f conftest.$ac_objext
20972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20973   (eval $ac_compile) 2>&5
20974   ac_status=$?
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); } &&
20977          { ac_try='test -s conftest.$ac_objext'
20978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20979   (eval $ac_try) 2>&5
20980   ac_status=$?
20981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982   (exit $ac_status); }; }; then
20983   ac_cv_cxx_have_ext_slist=std
20984 else
20985   echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20987
20988 ac_cv_cxx_have_ext_slist=no
20989 fi
20990 rm -f conftest.$ac_objext conftest.$ac_ext
20991   cat >conftest.$ac_ext <<_ACEOF
20992 #line $LINENO "configure"
20993 /* confdefs.h.  */
20994 _ACEOF
20995 cat confdefs.h >>conftest.$ac_ext
20996 cat >>conftest.$ac_ext <<_ACEOF
20997 /* end confdefs.h.  */
20998 #include <ext/slist>
20999 #ifdef HAVE_NAMESPACES
21000 using namespace __gnu_cxx;
21001 #endif
21002 int
21003 main ()
21004 {
21005 slist<int> s; return 0;
21006   ;
21007   return 0;
21008 }
21009 _ACEOF
21010 rm -f conftest.$ac_objext
21011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21012   (eval $ac_compile) 2>&5
21013   ac_status=$?
21014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015   (exit $ac_status); } &&
21016          { ac_try='test -s conftest.$ac_objext'
21017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018   (eval $ac_try) 2>&5
21019   ac_status=$?
21020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); }; }; then
21022   ac_cv_cxx_have_ext_slist=gnu
21023 else
21024   echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21026
21027 ac_cv_cxx_have_ext_slist=no
21028 fi
21029 rm -f conftest.$ac_objext conftest.$ac_ext
21030
21031   ac_ext=c
21032 ac_cpp='$CPP $CPPFLAGS'
21033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21036
21037
21038 fi
21039 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21040 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21041 if test "$ac_cv_cxx_have_ext_slist" = std; then
21042
21043 cat >>confdefs.h <<\_ACEOF
21044 #define HAVE_EXT_SLIST std
21045 _ACEOF
21046
21047 fi
21048 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21049
21050 cat >>confdefs.h <<\_ACEOF
21051 #define HAVE_EXT_SLIST gnu
21052 _ACEOF
21053
21054 fi
21055
21056 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21057 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21058 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21059   echo $ECHO_N "(cached) $ECHO_C" >&6
21060 else
21061
21062
21063
21064   ac_ext=cc
21065 ac_cpp='$CXXCPP $CPPFLAGS'
21066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21069
21070   cat >conftest.$ac_ext <<_ACEOF
21071 #line $LINENO "configure"
21072 /* confdefs.h.  */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h.  */
21077 #include <iterator>
21078 #ifdef HAVE_NAMESPACES
21079 using namespace std;
21080 #endif
21081 int
21082 main ()
21083 {
21084 iterator<int,int,int> t; return 0;
21085   ;
21086   return 0;
21087 }
21088 _ACEOF
21089 rm -f conftest.$ac_objext
21090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21091   (eval $ac_compile) 2>&5
21092   ac_status=$?
21093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094   (exit $ac_status); } &&
21095          { ac_try='test -s conftest.$ac_objext'
21096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097   (eval $ac_try) 2>&5
21098   ac_status=$?
21099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100   (exit $ac_status); }; }; then
21101   ac_cv_cxx_have_std_iterator=yes
21102 else
21103   echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21105
21106 ac_cv_cxx_have_std_iterator=no
21107 fi
21108 rm -f conftest.$ac_objext conftest.$ac_ext
21109   ac_ext=c
21110 ac_cpp='$CPP $CPPFLAGS'
21111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21114
21115
21116 fi
21117 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21118 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21119 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21120
21121 cat >>confdefs.h <<\_ACEOF
21122 #define HAVE_STD_ITERATOR
21123 _ACEOF
21124
21125 fi
21126
21127 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21128 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21129 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21130   echo $ECHO_N "(cached) $ECHO_C" >&6
21131 else
21132
21133
21134
21135   ac_ext=cc
21136 ac_cpp='$CXXCPP $CPPFLAGS'
21137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21140
21141   cat >conftest.$ac_ext <<_ACEOF
21142 #line $LINENO "configure"
21143 /* confdefs.h.  */
21144 _ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h.  */
21148 #include <iterator>
21149 #ifdef HAVE_NAMESPACES
21150 using namespace std;
21151 #endif
21152 int
21153 main ()
21154 {
21155 bidirectional_iterator<int,int> t; return 0;
21156   ;
21157   return 0;
21158 }
21159 _ACEOF
21160 rm -f conftest.$ac_objext
21161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21162   (eval $ac_compile) 2>&5
21163   ac_status=$?
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); } &&
21166          { ac_try='test -s conftest.$ac_objext'
21167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168   (eval $ac_try) 2>&5
21169   ac_status=$?
21170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171   (exit $ac_status); }; }; then
21172   ac_cv_cxx_have_bi_iterator=yes
21173 else
21174   echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21176
21177 ac_cv_cxx_have_bi_iterator=no
21178 fi
21179 rm -f conftest.$ac_objext conftest.$ac_ext
21180   ac_ext=c
21181 ac_cpp='$CPP $CPPFLAGS'
21182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21185
21186
21187 fi
21188 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21189 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21190 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21191
21192 cat >>confdefs.h <<\_ACEOF
21193 #define HAVE_BI_ITERATOR
21194 _ACEOF
21195
21196 fi
21197
21198 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21199 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21200 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21201   echo $ECHO_N "(cached) $ECHO_C" >&6
21202 else
21203
21204
21205
21206   ac_ext=cc
21207 ac_cpp='$CXXCPP $CPPFLAGS'
21208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21211
21212   cat >conftest.$ac_ext <<_ACEOF
21213 #line $LINENO "configure"
21214 /* confdefs.h.  */
21215 _ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h.  */
21219 #include <iterator>
21220 #ifdef HAVE_NAMESPACES
21221 using namespace std;
21222 #endif
21223 int
21224 main ()
21225 {
21226 forward_iterator<int,int> t; return 0;
21227   ;
21228   return 0;
21229 }
21230 _ACEOF
21231 rm -f conftest.$ac_objext
21232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21233   (eval $ac_compile) 2>&5
21234   ac_status=$?
21235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); } &&
21237          { ac_try='test -s conftest.$ac_objext'
21238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239   (eval $ac_try) 2>&5
21240   ac_status=$?
21241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242   (exit $ac_status); }; }; then
21243   ac_cv_cxx_have_fwd_iterator=yes
21244 else
21245   echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21247
21248 ac_cv_cxx_have_fwd_iterator=no
21249 fi
21250 rm -f conftest.$ac_objext conftest.$ac_ext
21251   ac_ext=c
21252 ac_cpp='$CPP $CPPFLAGS'
21253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21256
21257
21258 fi
21259 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21260 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21261 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21262
21263 cat >>confdefs.h <<\_ACEOF
21264 #define HAVE_FWD_ITERATOR
21265 _ACEOF
21266
21267 fi
21268
21269
21270 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21271 # for constant arguments.  Useless!
21272 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21273 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21274 if test "${ac_cv_working_alloca_h+set}" = set; then
21275   echo $ECHO_N "(cached) $ECHO_C" >&6
21276 else
21277   cat >conftest.$ac_ext <<_ACEOF
21278 #line $LINENO "configure"
21279 /* confdefs.h.  */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h.  */
21284 #include <alloca.h>
21285 int
21286 main ()
21287 {
21288 char *p = (char *) alloca (2 * sizeof (int));
21289   ;
21290   return 0;
21291 }
21292 _ACEOF
21293 rm -f conftest.$ac_objext conftest$ac_exeext
21294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21295   (eval $ac_link) 2>&5
21296   ac_status=$?
21297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298   (exit $ac_status); } &&
21299          { ac_try='test -s conftest$ac_exeext'
21300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301   (eval $ac_try) 2>&5
21302   ac_status=$?
21303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304   (exit $ac_status); }; }; then
21305   ac_cv_working_alloca_h=yes
21306 else
21307   echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21309
21310 ac_cv_working_alloca_h=no
21311 fi
21312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21313 fi
21314 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21315 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21316 if test $ac_cv_working_alloca_h = yes; then
21317
21318 cat >>confdefs.h <<\_ACEOF
21319 #define HAVE_ALLOCA_H 1
21320 _ACEOF
21321
21322 fi
21323
21324 echo "$as_me:$LINENO: checking for alloca" >&5
21325 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21326 if test "${ac_cv_func_alloca_works+set}" = set; then
21327   echo $ECHO_N "(cached) $ECHO_C" >&6
21328 else
21329   cat >conftest.$ac_ext <<_ACEOF
21330 #line $LINENO "configure"
21331 /* confdefs.h.  */
21332 _ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h.  */
21336 #ifdef __GNUC__
21337 # define alloca __builtin_alloca
21338 #else
21339 # ifdef _MSC_VER
21340 #  include <malloc.h>
21341 #  define alloca _alloca
21342 # else
21343 #  if HAVE_ALLOCA_H
21344 #   include <alloca.h>
21345 #  else
21346 #   ifdef _AIX
21347  #pragma alloca
21348 #   else
21349 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21350 char *alloca ();
21351 #    endif
21352 #   endif
21353 #  endif
21354 # endif
21355 #endif
21356
21357 int
21358 main ()
21359 {
21360 char *p = (char *) alloca (1);
21361   ;
21362   return 0;
21363 }
21364 _ACEOF
21365 rm -f conftest.$ac_objext conftest$ac_exeext
21366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21367   (eval $ac_link) 2>&5
21368   ac_status=$?
21369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370   (exit $ac_status); } &&
21371          { ac_try='test -s conftest$ac_exeext'
21372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373   (eval $ac_try) 2>&5
21374   ac_status=$?
21375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376   (exit $ac_status); }; }; then
21377   ac_cv_func_alloca_works=yes
21378 else
21379   echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21381
21382 ac_cv_func_alloca_works=no
21383 fi
21384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21385 fi
21386 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21387 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21388
21389 if test $ac_cv_func_alloca_works = yes; then
21390
21391 cat >>confdefs.h <<\_ACEOF
21392 #define HAVE_ALLOCA 1
21393 _ACEOF
21394
21395 else
21396   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21397 # that cause trouble.  Some versions do not even contain alloca or
21398 # contain a buggy version.  If you still want to use their alloca,
21399 # use ar to extract alloca.o from them instead of compiling alloca.c.
21400
21401 ALLOCA=alloca.$ac_objext
21402
21403 cat >>confdefs.h <<\_ACEOF
21404 #define C_ALLOCA 1
21405 _ACEOF
21406
21407
21408 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21409 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21410 if test "${ac_cv_os_cray+set}" = set; then
21411   echo $ECHO_N "(cached) $ECHO_C" >&6
21412 else
21413   cat >conftest.$ac_ext <<_ACEOF
21414 #line $LINENO "configure"
21415 /* confdefs.h.  */
21416 _ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h.  */
21420 #if defined(CRAY) && ! defined(CRAY2)
21421 webecray
21422 #else
21423 wenotbecray
21424 #endif
21425
21426 _ACEOF
21427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21428   $EGREP "webecray" >/dev/null 2>&1; then
21429   ac_cv_os_cray=yes
21430 else
21431   ac_cv_os_cray=no
21432 fi
21433 rm -f conftest*
21434
21435 fi
21436 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21437 echo "${ECHO_T}$ac_cv_os_cray" >&6
21438 if test $ac_cv_os_cray = yes; then
21439   for ac_func in _getb67 GETB67 getb67; do
21440     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21441 echo "$as_me:$LINENO: checking for $ac_func" >&5
21442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21443 if eval "test \"\${$as_ac_var+set}\" = set"; then
21444   echo $ECHO_N "(cached) $ECHO_C" >&6
21445 else
21446   cat >conftest.$ac_ext <<_ACEOF
21447 #line $LINENO "configure"
21448 /* confdefs.h.  */
21449 _ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h.  */
21453 /* System header to define __stub macros and hopefully few prototypes,
21454     which can conflict with char $ac_func (); below.
21455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21456     <limits.h> exists even on freestanding compilers.  */
21457 #ifdef __STDC__
21458 # include <limits.h>
21459 #else
21460 # include <assert.h>
21461 #endif
21462 /* Override any gcc2 internal prototype to avoid an error.  */
21463 #ifdef __cplusplus
21464 extern "C"
21465 {
21466 #endif
21467 /* We use char because int might match the return type of a gcc2
21468    builtin and then its argument prototype would still apply.  */
21469 char $ac_func ();
21470 /* The GNU C library defines this for functions which it implements
21471     to always fail with ENOSYS.  Some functions are actually named
21472     something starting with __ and the normal name is an alias.  */
21473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21474 choke me
21475 #else
21476 char (*f) () = $ac_func;
21477 #endif
21478 #ifdef __cplusplus
21479 }
21480 #endif
21481
21482 int
21483 main ()
21484 {
21485 return f != $ac_func;
21486   ;
21487   return 0;
21488 }
21489 _ACEOF
21490 rm -f conftest.$ac_objext conftest$ac_exeext
21491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21492   (eval $ac_link) 2>&5
21493   ac_status=$?
21494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495   (exit $ac_status); } &&
21496          { ac_try='test -s conftest$ac_exeext'
21497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498   (eval $ac_try) 2>&5
21499   ac_status=$?
21500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501   (exit $ac_status); }; }; then
21502   eval "$as_ac_var=yes"
21503 else
21504   echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21506
21507 eval "$as_ac_var=no"
21508 fi
21509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21510 fi
21511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21513 if test `eval echo '${'$as_ac_var'}'` = yes; then
21514
21515 cat >>confdefs.h <<_ACEOF
21516 #define CRAY_STACKSEG_END $ac_func
21517 _ACEOF
21518
21519     break
21520 fi
21521
21522   done
21523 fi
21524
21525 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21526 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21527 if test "${ac_cv_c_stack_direction+set}" = set; then
21528   echo $ECHO_N "(cached) $ECHO_C" >&6
21529 else
21530   if test "$cross_compiling" = yes; then
21531   ac_cv_c_stack_direction=0
21532 else
21533   cat >conftest.$ac_ext <<_ACEOF
21534 #line $LINENO "configure"
21535 /* confdefs.h.  */
21536 _ACEOF
21537 cat confdefs.h >>conftest.$ac_ext
21538 cat >>conftest.$ac_ext <<_ACEOF
21539 /* end confdefs.h.  */
21540 int
21541 find_stack_direction ()
21542 {
21543   static char *addr = 0;
21544   auto char dummy;
21545   if (addr == 0)
21546     {
21547       addr = &dummy;
21548       return find_stack_direction ();
21549     }
21550   else
21551     return (&dummy > addr) ? 1 : -1;
21552 }
21553
21554 int
21555 main ()
21556 {
21557   exit (find_stack_direction () < 0);
21558 }
21559 _ACEOF
21560 rm -f conftest$ac_exeext
21561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21562   (eval $ac_link) 2>&5
21563   ac_status=$?
21564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567   (eval $ac_try) 2>&5
21568   ac_status=$?
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); }; }; then
21571   ac_cv_c_stack_direction=1
21572 else
21573   echo "$as_me: program exited with status $ac_status" >&5
21574 echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21576
21577 ( exit $ac_status )
21578 ac_cv_c_stack_direction=-1
21579 fi
21580 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21581 fi
21582 fi
21583 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21584 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21585
21586 cat >>confdefs.h <<_ACEOF
21587 #define STACK_DIRECTION $ac_cv_c_stack_direction
21588 _ACEOF
21589
21590
21591 fi
21592
21593 if test $ac_cv_c_compiler_gnu = yes; then
21594     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21595 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21596 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21597   echo $ECHO_N "(cached) $ECHO_C" >&6
21598 else
21599     ac_pattern="Autoconf.*'x'"
21600   cat >conftest.$ac_ext <<_ACEOF
21601 #line $LINENO "configure"
21602 /* confdefs.h.  */
21603 _ACEOF
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h.  */
21607 #include <sgtty.h>
21608 Autoconf TIOCGETP
21609 _ACEOF
21610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21611   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21612   ac_cv_prog_gcc_traditional=yes
21613 else
21614   ac_cv_prog_gcc_traditional=no
21615 fi
21616 rm -f conftest*
21617
21618
21619   if test $ac_cv_prog_gcc_traditional = no; then
21620     cat >conftest.$ac_ext <<_ACEOF
21621 #line $LINENO "configure"
21622 /* confdefs.h.  */
21623 _ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h.  */
21627 #include <termio.h>
21628 Autoconf TCGETA
21629 _ACEOF
21630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21631   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21632   ac_cv_prog_gcc_traditional=yes
21633 fi
21634 rm -f conftest*
21635
21636   fi
21637 fi
21638 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21639 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21640   if test $ac_cv_prog_gcc_traditional = yes; then
21641     CC="$CC -traditional"
21642   fi
21643 fi
21644
21645 echo "$as_me:$LINENO: checking for working memcmp" >&5
21646 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21647 if test "${ac_cv_func_memcmp_working+set}" = set; then
21648   echo $ECHO_N "(cached) $ECHO_C" >&6
21649 else
21650   if test "$cross_compiling" = yes; then
21651   ac_cv_func_memcmp_working=no
21652 else
21653   cat >conftest.$ac_ext <<_ACEOF
21654 #line $LINENO "configure"
21655 /* confdefs.h.  */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h.  */
21660
21661 int
21662 main ()
21663 {
21664
21665   /* Some versions of memcmp are not 8-bit clean.  */
21666   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21667   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21668     exit (1);
21669
21670   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21671      or more and with at least one buffer not starting on a 4-byte boundary.
21672      William Lewis provided this test program.   */
21673   {
21674     char foo[21];
21675     char bar[21];
21676     int i;
21677     for (i = 0; i < 4; i++)
21678       {
21679         char *a = foo + i;
21680         char *b = bar + i;
21681         strcpy (a, "--------01111111");
21682         strcpy (b, "--------10000000");
21683         if (memcmp (a, b, 16) >= 0)
21684           exit (1);
21685       }
21686     exit (0);
21687   }
21688
21689   ;
21690   return 0;
21691 }
21692 _ACEOF
21693 rm -f conftest$ac_exeext
21694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21695   (eval $ac_link) 2>&5
21696   ac_status=$?
21697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21700   (eval $ac_try) 2>&5
21701   ac_status=$?
21702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703   (exit $ac_status); }; }; then
21704   ac_cv_func_memcmp_working=yes
21705 else
21706   echo "$as_me: program exited with status $ac_status" >&5
21707 echo "$as_me: failed program was:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21709
21710 ( exit $ac_status )
21711 ac_cv_func_memcmp_working=no
21712 fi
21713 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21714 fi
21715 fi
21716 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21717 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21718 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21719
21720
21721
21722 for ac_header in stdlib.h unistd.h
21723 do
21724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21726   echo "$as_me:$LINENO: checking for $ac_header" >&5
21727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21729   echo $ECHO_N "(cached) $ECHO_C" >&6
21730 fi
21731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21733 else
21734   # Is the header compilable?
21735 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21737 cat >conftest.$ac_ext <<_ACEOF
21738 #line $LINENO "configure"
21739 /* confdefs.h.  */
21740 _ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h.  */
21744 $ac_includes_default
21745 #include <$ac_header>
21746 _ACEOF
21747 rm -f conftest.$ac_objext
21748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21749   (eval $ac_compile) 2>&5
21750   ac_status=$?
21751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752   (exit $ac_status); } &&
21753          { ac_try='test -s conftest.$ac_objext'
21754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21755   (eval $ac_try) 2>&5
21756   ac_status=$?
21757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758   (exit $ac_status); }; }; then
21759   ac_header_compiler=yes
21760 else
21761   echo "$as_me: failed program was:" >&5
21762 sed 's/^/| /' conftest.$ac_ext >&5
21763
21764 ac_header_compiler=no
21765 fi
21766 rm -f conftest.$ac_objext conftest.$ac_ext
21767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21768 echo "${ECHO_T}$ac_header_compiler" >&6
21769
21770 # Is the header present?
21771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21773 cat >conftest.$ac_ext <<_ACEOF
21774 #line $LINENO "configure"
21775 /* confdefs.h.  */
21776 _ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h.  */
21780 #include <$ac_header>
21781 _ACEOF
21782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21783   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21784   ac_status=$?
21785   grep -v '^ *+' conftest.er1 >conftest.err
21786   rm -f conftest.er1
21787   cat conftest.err >&5
21788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789   (exit $ac_status); } >/dev/null; then
21790   if test -s conftest.err; then
21791     ac_cpp_err=$ac_c_preproc_warn_flag
21792   else
21793     ac_cpp_err=
21794   fi
21795 else
21796   ac_cpp_err=yes
21797 fi
21798 if test -z "$ac_cpp_err"; then
21799   ac_header_preproc=yes
21800 else
21801   echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21803
21804   ac_header_preproc=no
21805 fi
21806 rm -f conftest.err conftest.$ac_ext
21807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21808 echo "${ECHO_T}$ac_header_preproc" >&6
21809
21810 # So?  What about this header?
21811 case $ac_header_compiler:$ac_header_preproc in
21812   yes:no )
21813     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21817     (
21818       cat <<\_ASBOX
21819 ## ------------------------------------ ##
21820 ## Report this to bug-autoconf@gnu.org. ##
21821 ## ------------------------------------ ##
21822 _ASBOX
21823     ) |
21824       sed "s/^/$as_me: WARNING:     /" >&2
21825     ;;
21826   no:yes )
21827     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21829     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21831     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21833     (
21834       cat <<\_ASBOX
21835 ## ------------------------------------ ##
21836 ## Report this to bug-autoconf@gnu.org. ##
21837 ## ------------------------------------ ##
21838 _ASBOX
21839     ) |
21840       sed "s/^/$as_me: WARNING:     /" >&2
21841     ;;
21842 esac
21843 echo "$as_me:$LINENO: checking for $ac_header" >&5
21844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21846   echo $ECHO_N "(cached) $ECHO_C" >&6
21847 else
21848   eval "$as_ac_Header=$ac_header_preproc"
21849 fi
21850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21852
21853 fi
21854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21855   cat >>confdefs.h <<_ACEOF
21856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21857 _ACEOF
21858
21859 fi
21860
21861 done
21862
21863
21864 for ac_func in getpagesize
21865 do
21866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21867 echo "$as_me:$LINENO: checking for $ac_func" >&5
21868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21869 if eval "test \"\${$as_ac_var+set}\" = set"; then
21870   echo $ECHO_N "(cached) $ECHO_C" >&6
21871 else
21872   cat >conftest.$ac_ext <<_ACEOF
21873 #line $LINENO "configure"
21874 /* confdefs.h.  */
21875 _ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h.  */
21879 /* System header to define __stub macros and hopefully few prototypes,
21880     which can conflict with char $ac_func (); below.
21881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21882     <limits.h> exists even on freestanding compilers.  */
21883 #ifdef __STDC__
21884 # include <limits.h>
21885 #else
21886 # include <assert.h>
21887 #endif
21888 /* Override any gcc2 internal prototype to avoid an error.  */
21889 #ifdef __cplusplus
21890 extern "C"
21891 {
21892 #endif
21893 /* We use char because int might match the return type of a gcc2
21894    builtin and then its argument prototype would still apply.  */
21895 char $ac_func ();
21896 /* The GNU C library defines this for functions which it implements
21897     to always fail with ENOSYS.  Some functions are actually named
21898     something starting with __ and the normal name is an alias.  */
21899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21900 choke me
21901 #else
21902 char (*f) () = $ac_func;
21903 #endif
21904 #ifdef __cplusplus
21905 }
21906 #endif
21907
21908 int
21909 main ()
21910 {
21911 return f != $ac_func;
21912   ;
21913   return 0;
21914 }
21915 _ACEOF
21916 rm -f conftest.$ac_objext conftest$ac_exeext
21917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21918   (eval $ac_link) 2>&5
21919   ac_status=$?
21920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); } &&
21922          { ac_try='test -s conftest$ac_exeext'
21923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924   (eval $ac_try) 2>&5
21925   ac_status=$?
21926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927   (exit $ac_status); }; }; then
21928   eval "$as_ac_var=yes"
21929 else
21930   echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21932
21933 eval "$as_ac_var=no"
21934 fi
21935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21936 fi
21937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21939 if test `eval echo '${'$as_ac_var'}'` = yes; then
21940   cat >>confdefs.h <<_ACEOF
21941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21942 _ACEOF
21943
21944 fi
21945 done
21946
21947 echo "$as_me:$LINENO: checking for working mmap" >&5
21948 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21949 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21950   echo $ECHO_N "(cached) $ECHO_C" >&6
21951 else
21952   if test "$cross_compiling" = yes; then
21953   ac_cv_func_mmap_fixed_mapped=no
21954 else
21955   cat >conftest.$ac_ext <<_ACEOF
21956 #line $LINENO "configure"
21957 /* confdefs.h.  */
21958 _ACEOF
21959 cat confdefs.h >>conftest.$ac_ext
21960 cat >>conftest.$ac_ext <<_ACEOF
21961 /* end confdefs.h.  */
21962 $ac_includes_default
21963 /* malloc might have been renamed as rpl_malloc. */
21964 #undef malloc
21965
21966 /* Thanks to Mike Haertel and Jim Avera for this test.
21967    Here is a matrix of mmap possibilities:
21968         mmap private not fixed
21969         mmap private fixed at somewhere currently unmapped
21970         mmap private fixed at somewhere already mapped
21971         mmap shared not fixed
21972         mmap shared fixed at somewhere currently unmapped
21973         mmap shared fixed at somewhere already mapped
21974    For private mappings, we should verify that changes cannot be read()
21975    back from the file, nor mmap's back from the file at a different
21976    address.  (There have been systems where private was not correctly
21977    implemented like the infamous i386 svr4.0, and systems where the
21978    VM page cache was not coherent with the file system buffer cache
21979    like early versions of FreeBSD and possibly contemporary NetBSD.)
21980    For shared mappings, we should conversely verify that changes get
21981    propagated back to all the places they're supposed to be.
21982
21983    Grep wants private fixed already mapped.
21984    The main things grep needs to know about mmap are:
21985    * does it exist and is it safe to write into the mmap'd area
21986    * how to use it (BSD variants)  */
21987
21988 #include <fcntl.h>
21989 #include <sys/mman.h>
21990
21991 #if !STDC_HEADERS && !HAVE_STDLIB_H
21992 char *malloc ();
21993 #endif
21994
21995 /* This mess was copied from the GNU getpagesize.h.  */
21996 #if !HAVE_GETPAGESIZE
21997 /* Assume that all systems that can run configure have sys/param.h.  */
21998 # if !HAVE_SYS_PARAM_H
21999 #  define HAVE_SYS_PARAM_H 1
22000 # endif
22001
22002 # ifdef _SC_PAGESIZE
22003 #  define getpagesize() sysconf(_SC_PAGESIZE)
22004 # else /* no _SC_PAGESIZE */
22005 #  if HAVE_SYS_PARAM_H
22006 #   include <sys/param.h>
22007 #   ifdef EXEC_PAGESIZE
22008 #    define getpagesize() EXEC_PAGESIZE
22009 #   else /* no EXEC_PAGESIZE */
22010 #    ifdef NBPG
22011 #     define getpagesize() NBPG * CLSIZE
22012 #     ifndef CLSIZE
22013 #      define CLSIZE 1
22014 #     endif /* no CLSIZE */
22015 #    else /* no NBPG */
22016 #     ifdef NBPC
22017 #      define getpagesize() NBPC
22018 #     else /* no NBPC */
22019 #      ifdef PAGESIZE
22020 #       define getpagesize() PAGESIZE
22021 #      endif /* PAGESIZE */
22022 #     endif /* no NBPC */
22023 #    endif /* no NBPG */
22024 #   endif /* no EXEC_PAGESIZE */
22025 #  else /* no HAVE_SYS_PARAM_H */
22026 #   define getpagesize() 8192   /* punt totally */
22027 #  endif /* no HAVE_SYS_PARAM_H */
22028 # endif /* no _SC_PAGESIZE */
22029
22030 #endif /* no HAVE_GETPAGESIZE */
22031
22032 int
22033 main ()
22034 {
22035   char *data, *data2, *data3;
22036   int i, pagesize;
22037   int fd;
22038
22039   pagesize = getpagesize ();
22040
22041   /* First, make a file with some known garbage in it. */
22042   data = (char *) malloc (pagesize);
22043   if (!data)
22044     exit (1);
22045   for (i = 0; i < pagesize; ++i)
22046     *(data + i) = rand ();
22047   umask (0);
22048   fd = creat ("conftest.mmap", 0600);
22049   if (fd < 0)
22050     exit (1);
22051   if (write (fd, data, pagesize) != pagesize)
22052     exit (1);
22053   close (fd);
22054
22055   /* Next, try to mmap the file at a fixed address which already has
22056      something else allocated at it.  If we can, also make sure that
22057      we see the same garbage.  */
22058   fd = open ("conftest.mmap", O_RDWR);
22059   if (fd < 0)
22060     exit (1);
22061   data2 = (char *) malloc (2 * pagesize);
22062   if (!data2)
22063     exit (1);
22064   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22065   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22066                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22067     exit (1);
22068   for (i = 0; i < pagesize; ++i)
22069     if (*(data + i) != *(data2 + i))
22070       exit (1);
22071
22072   /* Finally, make sure that changes to the mapped area do not
22073      percolate back to the file as seen by read().  (This is a bug on
22074      some variants of i386 svr4.0.)  */
22075   for (i = 0; i < pagesize; ++i)
22076     *(data2 + i) = *(data2 + i) + 1;
22077   data3 = (char *) malloc (pagesize);
22078   if (!data3)
22079     exit (1);
22080   if (read (fd, data3, pagesize) != pagesize)
22081     exit (1);
22082   for (i = 0; i < pagesize; ++i)
22083     if (*(data + i) != *(data3 + i))
22084       exit (1);
22085   close (fd);
22086   exit (0);
22087 }
22088 _ACEOF
22089 rm -f conftest$ac_exeext
22090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22091   (eval $ac_link) 2>&5
22092   ac_status=$?
22093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22096   (eval $ac_try) 2>&5
22097   ac_status=$?
22098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099   (exit $ac_status); }; }; then
22100   ac_cv_func_mmap_fixed_mapped=yes
22101 else
22102   echo "$as_me: program exited with status $ac_status" >&5
22103 echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22105
22106 ( exit $ac_status )
22107 ac_cv_func_mmap_fixed_mapped=no
22108 fi
22109 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22110 fi
22111 fi
22112 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22113 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22114 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22115
22116 cat >>confdefs.h <<\_ACEOF
22117 #define HAVE_MMAP 1
22118 _ACEOF
22119
22120 fi
22121 rm -f conftest.mmap
22122
22123 echo "$as_me:$LINENO: checking for mmap of files" >&5
22124 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22125 if test "${ac_cv_func_mmap_file+set}" = set; then
22126   echo $ECHO_N "(cached) $ECHO_C" >&6
22127 else
22128
22129
22130   ac_ext=c
22131 ac_cpp='$CPP $CPPFLAGS'
22132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22135
22136   if test "$cross_compiling" = yes; then
22137   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22138 See \`config.log' for more details." >&5
22139 echo "$as_me: error: cannot run test program while cross compiling
22140 See \`config.log' for more details." >&2;}
22141    { (exit 1); exit 1; }; }
22142 else
22143   cat >conftest.$ac_ext <<_ACEOF
22144 #line $LINENO "configure"
22145 /* confdefs.h.  */
22146 _ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h.  */
22150
22151 #ifdef HAVE_SYS_TYPES_H
22152 #include <sys/types.h>
22153 #endif
22154
22155 #ifdef HAVE_SYS_MMAN_H
22156 #include <sys/mman.h>
22157 #endif
22158
22159 #ifdef HAVE_FCNTL_H
22160 #include <fcntl.h>
22161 #endif
22162
22163   int fd;
22164   int main () {
22165   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22166 _ACEOF
22167 rm -f conftest$ac_exeext
22168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22169   (eval $ac_link) 2>&5
22170   ac_status=$?
22171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174   (eval $ac_try) 2>&5
22175   ac_status=$?
22176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177   (exit $ac_status); }; }; then
22178   ac_cv_func_mmap_file=yes
22179 else
22180   echo "$as_me: program exited with status $ac_status" >&5
22181 echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22183
22184 ( exit $ac_status )
22185 ac_cv_func_mmap_file=no
22186 fi
22187 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22188 fi
22189   ac_ext=c
22190 ac_cpp='$CPP $CPPFLAGS'
22191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22194
22195
22196 fi
22197 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22198 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22199 if test "$ac_cv_func_mmap_file" = yes; then
22200
22201 cat >>confdefs.h <<\_ACEOF
22202 #define HAVE_MMAP_FILE
22203 _ACEOF
22204
22205    MMAP_FILE=yes
22206
22207 fi
22208
22209 if test ${ac_cv_func_mmap_file} = "no"
22210 then
22211         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22212 echo "$as_me: error: mmap() of files required but not found" >&2;}
22213    { (exit 1); exit 1; }; }
22214 fi
22215 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22216 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22217 if test "${ac_cv_header_mmap_anon+set}" = set; then
22218   echo $ECHO_N "(cached) $ECHO_C" >&6
22219 else
22220
22221
22222   ac_ext=c
22223 ac_cpp='$CPP $CPPFLAGS'
22224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22227
22228   cat >conftest.$ac_ext <<_ACEOF
22229 #line $LINENO "configure"
22230 /* confdefs.h.  */
22231 _ACEOF
22232 cat confdefs.h >>conftest.$ac_ext
22233 cat >>conftest.$ac_ext <<_ACEOF
22234 /* end confdefs.h.  */
22235 #include <sys/mman.h>
22236   #include <unistd.h>
22237   #include <fcntl.h>
22238 int
22239 main ()
22240 {
22241 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22242   ;
22243   return 0;
22244 }
22245 _ACEOF
22246 rm -f conftest.$ac_objext
22247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22248   (eval $ac_compile) 2>&5
22249   ac_status=$?
22250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251   (exit $ac_status); } &&
22252          { ac_try='test -s conftest.$ac_objext'
22253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22254   (eval $ac_try) 2>&5
22255   ac_status=$?
22256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257   (exit $ac_status); }; }; then
22258   ac_cv_header_mmap_anon=yes
22259 else
22260   echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.$ac_ext >&5
22262
22263 ac_cv_header_mmap_anon=no
22264 fi
22265 rm -f conftest.$ac_objext conftest.$ac_ext
22266   ac_ext=c
22267 ac_cpp='$CPP $CPPFLAGS'
22268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22271
22272
22273 fi
22274 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22275 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22276 if test "$ac_cv_header_mmap_anon" = yes; then
22277
22278 cat >>confdefs.h <<\_ACEOF
22279 #define HAVE_MMAP_ANONYMOUS
22280 _ACEOF
22281
22282 fi
22283
22284 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22285 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22286 if test "${ac_cv_type_signal+set}" = set; then
22287   echo $ECHO_N "(cached) $ECHO_C" >&6
22288 else
22289   cat >conftest.$ac_ext <<_ACEOF
22290 #line $LINENO "configure"
22291 /* confdefs.h.  */
22292 _ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h.  */
22296 #include <sys/types.h>
22297 #include <signal.h>
22298 #ifdef signal
22299 # undef signal
22300 #endif
22301 #ifdef __cplusplus
22302 extern "C" void (*signal (int, void (*)(int)))(int);
22303 #else
22304 void (*signal ()) ();
22305 #endif
22306
22307 int
22308 main ()
22309 {
22310 int i;
22311   ;
22312   return 0;
22313 }
22314 _ACEOF
22315 rm -f conftest.$ac_objext
22316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22317   (eval $ac_compile) 2>&5
22318   ac_status=$?
22319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320   (exit $ac_status); } &&
22321          { ac_try='test -s conftest.$ac_objext'
22322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323   (eval $ac_try) 2>&5
22324   ac_status=$?
22325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326   (exit $ac_status); }; }; then
22327   ac_cv_type_signal=void
22328 else
22329   echo "$as_me: failed program was:" >&5
22330 sed 's/^/| /' conftest.$ac_ext >&5
22331
22332 ac_cv_type_signal=int
22333 fi
22334 rm -f conftest.$ac_objext conftest.$ac_ext
22335 fi
22336 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22337 echo "${ECHO_T}$ac_cv_type_signal" >&6
22338
22339 cat >>confdefs.h <<_ACEOF
22340 #define RETSIGTYPE $ac_cv_type_signal
22341 _ACEOF
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
22356 do
22357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22358 echo "$as_me:$LINENO: checking for $ac_func" >&5
22359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22360 if eval "test \"\${$as_ac_var+set}\" = set"; then
22361   echo $ECHO_N "(cached) $ECHO_C" >&6
22362 else
22363   cat >conftest.$ac_ext <<_ACEOF
22364 #line $LINENO "configure"
22365 /* confdefs.h.  */
22366 _ACEOF
22367 cat confdefs.h >>conftest.$ac_ext
22368 cat >>conftest.$ac_ext <<_ACEOF
22369 /* end confdefs.h.  */
22370 /* System header to define __stub macros and hopefully few prototypes,
22371     which can conflict with char $ac_func (); below.
22372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22373     <limits.h> exists even on freestanding compilers.  */
22374 #ifdef __STDC__
22375 # include <limits.h>
22376 #else
22377 # include <assert.h>
22378 #endif
22379 /* Override any gcc2 internal prototype to avoid an error.  */
22380 #ifdef __cplusplus
22381 extern "C"
22382 {
22383 #endif
22384 /* We use char because int might match the return type of a gcc2
22385    builtin and then its argument prototype would still apply.  */
22386 char $ac_func ();
22387 /* The GNU C library defines this for functions which it implements
22388     to always fail with ENOSYS.  Some functions are actually named
22389     something starting with __ and the normal name is an alias.  */
22390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22391 choke me
22392 #else
22393 char (*f) () = $ac_func;
22394 #endif
22395 #ifdef __cplusplus
22396 }
22397 #endif
22398
22399 int
22400 main ()
22401 {
22402 return f != $ac_func;
22403   ;
22404   return 0;
22405 }
22406 _ACEOF
22407 rm -f conftest.$ac_objext conftest$ac_exeext
22408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22409   (eval $ac_link) 2>&5
22410   ac_status=$?
22411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412   (exit $ac_status); } &&
22413          { ac_try='test -s conftest$ac_exeext'
22414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415   (eval $ac_try) 2>&5
22416   ac_status=$?
22417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418   (exit $ac_status); }; }; then
22419   eval "$as_ac_var=yes"
22420 else
22421   echo "$as_me: failed program was:" >&5
22422 sed 's/^/| /' conftest.$ac_ext >&5
22423
22424 eval "$as_ac_var=no"
22425 fi
22426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22427 fi
22428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22430 if test `eval echo '${'$as_ac_var'}'` = yes; then
22431   cat >>confdefs.h <<_ACEOF
22432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22433 _ACEOF
22434
22435 fi
22436 done
22437
22438
22439
22440 echo "$as_me:$LINENO: checking for mmap" >&5
22441 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22442 if test "${ac_cv_func_mmap+set}" = set; then
22443   echo $ECHO_N "(cached) $ECHO_C" >&6
22444 else
22445   cat >conftest.$ac_ext <<_ACEOF
22446 #line $LINENO "configure"
22447 /* confdefs.h.  */
22448 _ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h.  */
22452 /* System header to define __stub macros and hopefully few prototypes,
22453     which can conflict with char mmap (); below.
22454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22455     <limits.h> exists even on freestanding compilers.  */
22456 #ifdef __STDC__
22457 # include <limits.h>
22458 #else
22459 # include <assert.h>
22460 #endif
22461 /* Override any gcc2 internal prototype to avoid an error.  */
22462 #ifdef __cplusplus
22463 extern "C"
22464 {
22465 #endif
22466 /* We use char because int might match the return type of a gcc2
22467    builtin and then its argument prototype would still apply.  */
22468 char mmap ();
22469 /* The GNU C library defines this for functions which it implements
22470     to always fail with ENOSYS.  Some functions are actually named
22471     something starting with __ and the normal name is an alias.  */
22472 #if defined (__stub_mmap) || defined (__stub___mmap)
22473 choke me
22474 #else
22475 char (*f) () = mmap;
22476 #endif
22477 #ifdef __cplusplus
22478 }
22479 #endif
22480
22481 int
22482 main ()
22483 {
22484 return f != mmap;
22485   ;
22486   return 0;
22487 }
22488 _ACEOF
22489 rm -f conftest.$ac_objext conftest$ac_exeext
22490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22491   (eval $ac_link) 2>&5
22492   ac_status=$?
22493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494   (exit $ac_status); } &&
22495          { ac_try='test -s conftest$ac_exeext'
22496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22497   (eval $ac_try) 2>&5
22498   ac_status=$?
22499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500   (exit $ac_status); }; }; then
22501   ac_cv_func_mmap=yes
22502 else
22503   echo "$as_me: failed program was:" >&5
22504 sed 's/^/| /' conftest.$ac_ext >&5
22505
22506 ac_cv_func_mmap=no
22507 fi
22508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22509 fi
22510 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22511 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22512 if test $ac_cv_func_mmap = yes; then
22513   :
22514 else
22515   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22516 echo "$as_me: error: Function mmap() required but not found" >&2;}
22517    { (exit 1); exit 1; }; }
22518 fi
22519
22520 echo "$as_me:$LINENO: checking for mprotect" >&5
22521 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22522 if test "${ac_cv_func_mprotect+set}" = set; then
22523   echo $ECHO_N "(cached) $ECHO_C" >&6
22524 else
22525   cat >conftest.$ac_ext <<_ACEOF
22526 #line $LINENO "configure"
22527 /* confdefs.h.  */
22528 _ACEOF
22529 cat confdefs.h >>conftest.$ac_ext
22530 cat >>conftest.$ac_ext <<_ACEOF
22531 /* end confdefs.h.  */
22532 /* System header to define __stub macros and hopefully few prototypes,
22533     which can conflict with char mprotect (); below.
22534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22535     <limits.h> exists even on freestanding compilers.  */
22536 #ifdef __STDC__
22537 # include <limits.h>
22538 #else
22539 # include <assert.h>
22540 #endif
22541 /* Override any gcc2 internal prototype to avoid an error.  */
22542 #ifdef __cplusplus
22543 extern "C"
22544 {
22545 #endif
22546 /* We use char because int might match the return type of a gcc2
22547    builtin and then its argument prototype would still apply.  */
22548 char mprotect ();
22549 /* The GNU C library defines this for functions which it implements
22550     to always fail with ENOSYS.  Some functions are actually named
22551     something starting with __ and the normal name is an alias.  */
22552 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22553 choke me
22554 #else
22555 char (*f) () = mprotect;
22556 #endif
22557 #ifdef __cplusplus
22558 }
22559 #endif
22560
22561 int
22562 main ()
22563 {
22564 return f != mprotect;
22565   ;
22566   return 0;
22567 }
22568 _ACEOF
22569 rm -f conftest.$ac_objext conftest$ac_exeext
22570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22571   (eval $ac_link) 2>&5
22572   ac_status=$?
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); } &&
22575          { ac_try='test -s conftest$ac_exeext'
22576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22577   (eval $ac_try) 2>&5
22578   ac_status=$?
22579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580   (exit $ac_status); }; }; then
22581   ac_cv_func_mprotect=yes
22582 else
22583   echo "$as_me: failed program was:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22585
22586 ac_cv_func_mprotect=no
22587 fi
22588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22589 fi
22590 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22591 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22592 if test $ac_cv_func_mprotect = yes; then
22593   :
22594 else
22595   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22596 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22597    { (exit 1); exit 1; }; }
22598 fi
22599
22600
22601
22602
22603
22604   ac_ext=c
22605 ac_cpp='$CPP $CPPFLAGS'
22606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22609
22610   oldcflags="$CFLAGS"
22611   CFLAGS="$CFLAGS -Wl,-R."
22612   cat >conftest.$ac_ext <<_ACEOF
22613 int main() { return 0; }
22614 _ACEOF
22615 rm -f conftest.$ac_objext conftest$ac_exeext
22616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22617   (eval $ac_link) 2>&5
22618   ac_status=$?
22619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620   (exit $ac_status); } &&
22621          { ac_try='test -s conftest$ac_exeext'
22622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623   (eval $ac_try) 2>&5
22624   ac_status=$?
22625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626   (exit $ac_status); }; }; then
22627   ac_cv_link_use_r=yes
22628 else
22629   echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22631
22632 ac_cv_link_use_r=no
22633 fi
22634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22635   CFLAGS="$oldcflags"
22636   ac_ext=c
22637 ac_cpp='$CPP $CPPFLAGS'
22638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22641
22642   if test "$ac_cv_link_use_r" = yes
22643   then
22644
22645 cat >>confdefs.h <<\_ACEOF
22646 #define HAVE_LINK_R 1
22647 _ACEOF
22648
22649   fi
22650
22651
22652
22653 # Check whether --enable-purify or --disable-purify was given.
22654 if test "${enable_purify+set}" = set; then
22655   enableval="$enable_purify"
22656
22657 else
22658   enableval="no"
22659 fi;
22660 if test ${enableval} = "no"
22661 then
22662         ENABLE_PURIFY=
22663
22664 else
22665         ENABLE_PURIFY=ENABLE_PURIFY=1
22666
22667 fi
22668
22669 # Check whether --enable-optimized or --disable-optimized was given.
22670 if test "${enable_optimized+set}" = set; then
22671   enableval="$enable_optimized"
22672
22673 else
22674   enableval=no
22675 fi;
22676 if test ${enableval} = "no"
22677 then
22678         ENABLE_OPTIMIZED=
22679
22680 else
22681         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22682
22683 fi
22684
22685 # Check whether --enable-spec2000 or --disable-spec2000 was given.
22686 if test "${enable_spec2000+set}" = set; then
22687   enableval="$enable_spec2000"
22688
22689 else
22690   enableval=no
22691 fi;
22692 if test ${enableval} = "no"
22693 then
22694         if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22695         then
22696                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22697
22698                 USE_SPEC=USE_SPEC=1
22699
22700         else
22701                 USE_SPEC=
22702
22703
22704         fi
22705 else
22706         if test ${enableval} = ""
22707         then
22708                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22709
22710         else
22711                 SPEC_ROOT=${enableval}
22712
22713         fi
22714         USE_SPEC=USE_SPEC=1
22715
22716 fi
22717
22718 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22719 if test "${enable_precompiled_bytecode+set}" = set; then
22720   enableval="$enable_precompiled_bytecode"
22721
22722 else
22723   enableval=no
22724 fi;
22725 if test ${enableval} = "no"
22726 then
22727         UPB=
22728
22729 else
22730         UPB=USE_PRECOMPILED_BYTECODE=1
22731
22732 fi
22733
22734
22735 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22736 if test "${enable_llc_diffs+set}" = set; then
22737   enableval="$enable_llc_diffs"
22738
22739 else
22740   enableval=yes
22741 fi;
22742 if test ${enableval} = "no"
22743 then
22744         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22745
22746 else
22747         DISABLE_LLC_DIFFS=
22748
22749 fi
22750
22751 # Check whether --enable-jit or --disable-jit was given.
22752 if test "${enable_jit+set}" = set; then
22753   enableval="$enable_jit"
22754
22755 else
22756   enableval=default
22757 fi;
22758
22759 if test ${enableval} = "no"
22760 then
22761         JIT=
22762
22763 else
22764         case $target in
22765                 *i*86*)
22766                         JIT=TARGET_HAS_JIT=1
22767
22768                         ;;
22769                 *sparc*)
22770                         JIT=TARGET_HAS_JIT=1
22771
22772                         ;;
22773                 *)
22774                         JIT=
22775
22776                         ;;
22777         esac
22778 fi
22779
22780
22781
22782 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22783 if test "${with_llvmgccdir+set}" = set; then
22784   withval="$with_llvmgccdir"
22785   LLVMGCCDIR=$withval
22786
22787 fi;
22788
22789 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22790 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22791 LLVM_GCC_CHECK=no
22792 if test -d "$LLVMGCCDIR"
22793 then
22794         if test -x "$LLVMGCCDIR/bin/gcc"
22795         then
22796                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22797         fi
22798 fi
22799 llvmgccwarn=no
22800 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22801 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22802 if test "$LLVM_GCC_CHECK" = "no"
22803 then
22804     llvmgccwarn=yes
22805 fi
22806
22807 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22808 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22809 LLVM_GCC_SANE=no
22810 if test -x "$LLVM_GCC_CHECK"
22811 then
22812         cp /dev/null conftest.c
22813     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22814         if test $? -eq 0
22815         then
22816                 LLVM_GCC_SANE=yes
22817         fi
22818         rm conftest.c
22819 fi
22820 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22821 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22822 if test "$LLVM_GCC_SANE" = "no"
22823 then
22824         llvmgccwarn=yes
22825 fi
22826
22827
22828 # Check whether --with-bcrepos or --without-bcrepos was given.
22829 if test "${with_bcrepos+set}" = set; then
22830   withval="$with_bcrepos"
22831   BCR=$withval
22832
22833 else
22834   BCR=/home/vadve/lattner/LLVMPrograms
22835
22836 fi;
22837
22838
22839 # Check whether --with-papi or --without-papi was given.
22840 if test "${with_papi+set}" = set; then
22841   withval="$with_papi"
22842   PAPIDIR=$withval
22843
22844 else
22845   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22846
22847 fi;
22848
22849
22850 # Check whether --with-purify or --without-purify was given.
22851 if test "${with_purify+set}" = set; then
22852   withval="$with_purify"
22853   PURIFY=$withval
22854
22855 fi;
22856
22857
22858           ac_config_files="$ac_config_files Makefile.config"
22859 cat >confcache <<\_ACEOF
22860 # This file is a shell script that caches the results of configure
22861 # tests run on this system so they can be shared between configure
22862 # scripts and configure runs, see configure's option --config-cache.
22863 # It is not useful on other systems.  If it contains results you don't
22864 # want to keep, you may remove or edit it.
22865 #
22866 # config.status only pays attention to the cache file if you give it
22867 # the --recheck option to rerun configure.
22868 #
22869 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22870 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22871 # following values.
22872
22873 _ACEOF
22874
22875 # The following way of writing the cache mishandles newlines in values,
22876 # but we know of no workaround that is simple, portable, and efficient.
22877 # So, don't put newlines in cache variables' values.
22878 # Ultrix sh set writes to stderr and can't be redirected directly,
22879 # and sets the high bit in the cache file unless we assign to the vars.
22880 {
22881   (set) 2>&1 |
22882     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22883     *ac_space=\ *)
22884       # `set' does not quote correctly, so add quotes (double-quote
22885       # substitution turns \\\\ into \\, and sed turns \\ into \).
22886       sed -n \
22887         "s/'/'\\\\''/g;
22888           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22889       ;;
22890     *)
22891       # `set' quotes correctly as required by POSIX, so do not add quotes.
22892       sed -n \
22893         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22894       ;;
22895     esac;
22896 } |
22897   sed '
22898      t clear
22899      : clear
22900      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22901      t end
22902      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22903      : end' >>confcache
22904 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22905   if test -w $cache_file; then
22906     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22907     cat confcache >$cache_file
22908   else
22909     echo "not updating unwritable cache $cache_file"
22910   fi
22911 fi
22912 rm -f confcache
22913
22914 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22915 # Let make expand exec_prefix.
22916 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22917
22918 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22919 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22920 # trailing colons and then remove the whole line if VPATH becomes empty
22921 # (actually we leave an empty line to preserve line numbers).
22922 if test "x$srcdir" = x.; then
22923   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22924 s/:*\$(srcdir):*/:/;
22925 s/:*\${srcdir}:*/:/;
22926 s/:*@srcdir@:*/:/;
22927 s/^\([^=]*=[    ]*\):*/\1/;
22928 s/:*$//;
22929 s/^[^=]*=[      ]*$//;
22930 }'
22931 fi
22932
22933 DEFS=-DHAVE_CONFIG_H
22934
22935 ac_libobjs=
22936 ac_ltlibobjs=
22937 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22938   # 1. Remove the extension, and $U if already installed.
22939   ac_i=`echo "$ac_i" |
22940          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22941   # 2. Add them.
22942   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22943   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22944 done
22945 LIBOBJS=$ac_libobjs
22946
22947 LTLIBOBJS=$ac_ltlibobjs
22948
22949
22950
22951 : ${CONFIG_STATUS=./config.status}
22952 ac_clean_files_save=$ac_clean_files
22953 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22954 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22955 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22956 cat >$CONFIG_STATUS <<_ACEOF
22957 #! $SHELL
22958 # Generated by $as_me.
22959 # Run this file to recreate the current configuration.
22960 # Compiler output produced by configure, useful for debugging
22961 # configure, is in config.log if it exists.
22962
22963 debug=false
22964 ac_cs_recheck=false
22965 ac_cs_silent=false
22966 SHELL=\${CONFIG_SHELL-$SHELL}
22967 _ACEOF
22968
22969 cat >>$CONFIG_STATUS <<\_ACEOF
22970 ## --------------------- ##
22971 ## M4sh Initialization.  ##
22972 ## --------------------- ##
22973
22974 # Be Bourne compatible
22975 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22976   emulate sh
22977   NULLCMD=:
22978   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22979   # is contrary to our usage.  Disable this feature.
22980   alias -g '${1+"$@"}'='"$@"'
22981 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22982   set -o posix
22983 fi
22984
22985 # Support unset when possible.
22986 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22987   as_unset=unset
22988 else
22989   as_unset=false
22990 fi
22991
22992
22993 # Work around bugs in pre-3.0 UWIN ksh.
22994 $as_unset ENV MAIL MAILPATH
22995 PS1='$ '
22996 PS2='> '
22997 PS4='+ '
22998
22999 # NLS nuisances.
23000 for as_var in \
23001   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23002   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23003   LC_TELEPHONE LC_TIME
23004 do
23005   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23006     eval $as_var=C; export $as_var
23007   else
23008     $as_unset $as_var
23009   fi
23010 done
23011
23012 # Required to use basename.
23013 if expr a : '\(a\)' >/dev/null 2>&1; then
23014   as_expr=expr
23015 else
23016   as_expr=false
23017 fi
23018
23019 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23020   as_basename=basename
23021 else
23022   as_basename=false
23023 fi
23024
23025
23026 # Name of the executable.
23027 as_me=`$as_basename "$0" ||
23028 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23029          X"$0" : 'X\(//\)$' \| \
23030          X"$0" : 'X\(/\)$' \| \
23031          .     : '\(.\)' 2>/dev/null ||
23032 echo X/"$0" |
23033     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23034           /^X\/\(\/\/\)$/{ s//\1/; q; }
23035           /^X\/\(\/\).*/{ s//\1/; q; }
23036           s/.*/./; q'`
23037
23038
23039 # PATH needs CR, and LINENO needs CR and PATH.
23040 # Avoid depending upon Character Ranges.
23041 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23042 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23043 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23044 as_cr_digits='0123456789'
23045 as_cr_alnum=$as_cr_Letters$as_cr_digits
23046
23047 # The user is always right.
23048 if test "${PATH_SEPARATOR+set}" != set; then
23049   echo "#! /bin/sh" >conf$$.sh
23050   echo  "exit 0"   >>conf$$.sh
23051   chmod +x conf$$.sh
23052   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23053     PATH_SEPARATOR=';'
23054   else
23055     PATH_SEPARATOR=:
23056   fi
23057   rm -f conf$$.sh
23058 fi
23059
23060
23061   as_lineno_1=$LINENO
23062   as_lineno_2=$LINENO
23063   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23064   test "x$as_lineno_1" != "x$as_lineno_2" &&
23065   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23066   # Find who we are.  Look in the path if we contain no path at all
23067   # relative or not.
23068   case $0 in
23069     *[\\/]* ) as_myself=$0 ;;
23070     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23071 for as_dir in $PATH
23072 do
23073   IFS=$as_save_IFS
23074   test -z "$as_dir" && as_dir=.
23075   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23076 done
23077
23078        ;;
23079   esac
23080   # We did not find ourselves, most probably we were run as `sh COMMAND'
23081   # in which case we are not to be found in the path.
23082   if test "x$as_myself" = x; then
23083     as_myself=$0
23084   fi
23085   if test ! -f "$as_myself"; then
23086     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23087 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23088    { (exit 1); exit 1; }; }
23089   fi
23090   case $CONFIG_SHELL in
23091   '')
23092     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23093 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23094 do
23095   IFS=$as_save_IFS
23096   test -z "$as_dir" && as_dir=.
23097   for as_base in sh bash ksh sh5; do
23098          case $as_dir in
23099          /*)
23100            if ("$as_dir/$as_base" -c '
23101   as_lineno_1=$LINENO
23102   as_lineno_2=$LINENO
23103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23104   test "x$as_lineno_1" != "x$as_lineno_2" &&
23105   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23106              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23107              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23108              CONFIG_SHELL=$as_dir/$as_base
23109              export CONFIG_SHELL
23110              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23111            fi;;
23112          esac
23113        done
23114 done
23115 ;;
23116   esac
23117
23118   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23119   # uniformly replaced by the line number.  The first 'sed' inserts a
23120   # line-number line before each line; the second 'sed' does the real
23121   # work.  The second script uses 'N' to pair each line-number line
23122   # with the numbered line, and appends trailing '-' during
23123   # substitution so that $LINENO is not a special case at line end.
23124   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23125   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23126   sed '=' <$as_myself |
23127     sed '
23128       N
23129       s,$,-,
23130       : loop
23131       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23132       t loop
23133       s,-$,,
23134       s,^['$as_cr_digits']*\n,,
23135     ' >$as_me.lineno &&
23136   chmod +x $as_me.lineno ||
23137     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23138 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23139    { (exit 1); exit 1; }; }
23140
23141   # Don't try to exec as it changes $[0], causing all sort of problems
23142   # (the dirname of $[0] is not the place where we might find the
23143   # original and so on.  Autoconf is especially sensible to this).
23144   . ./$as_me.lineno
23145   # Exit status is that of the last command.
23146   exit
23147 }
23148
23149
23150 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23151   *c*,-n*) ECHO_N= ECHO_C='
23152 ' ECHO_T='      ' ;;
23153   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23154   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23155 esac
23156
23157 if expr a : '\(a\)' >/dev/null 2>&1; then
23158   as_expr=expr
23159 else
23160   as_expr=false
23161 fi
23162
23163 rm -f conf$$ conf$$.exe conf$$.file
23164 echo >conf$$.file
23165 if ln -s conf$$.file conf$$ 2>/dev/null; then
23166   # We could just check for DJGPP; but this test a) works b) is more generic
23167   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23168   if test -f conf$$.exe; then
23169     # Don't use ln at all; we don't have any links
23170     as_ln_s='cp -p'
23171   else
23172     as_ln_s='ln -s'
23173   fi
23174 elif ln conf$$.file conf$$ 2>/dev/null; then
23175   as_ln_s=ln
23176 else
23177   as_ln_s='cp -p'
23178 fi
23179 rm -f conf$$ conf$$.exe conf$$.file
23180
23181 if mkdir -p . 2>/dev/null; then
23182   as_mkdir_p=:
23183 else
23184   as_mkdir_p=false
23185 fi
23186
23187 as_executable_p="test -f"
23188
23189 # Sed expression to map a string onto a valid CPP name.
23190 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23191
23192 # Sed expression to map a string onto a valid variable name.
23193 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23194
23195
23196 # IFS
23197 # We need space, tab and new line, in precisely that order.
23198 as_nl='
23199 '
23200 IFS="   $as_nl"
23201
23202 # CDPATH.
23203 $as_unset CDPATH
23204
23205 exec 6>&1
23206
23207 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23208 # report actual input values of CONFIG_FILES etc. instead of their
23209 # values after options handling.  Logging --version etc. is OK.
23210 exec 5>>config.log
23211 {
23212   echo
23213   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23214 ## Running $as_me. ##
23215 _ASBOX
23216 } >&5
23217 cat >&5 <<_CSEOF
23218
23219 This file was extended by [LLVM] $as_me [1.0], which was
23220 generated by GNU Autoconf 2.57.  Invocation command line was
23221
23222   CONFIG_FILES    = $CONFIG_FILES
23223   CONFIG_HEADERS  = $CONFIG_HEADERS
23224   CONFIG_LINKS    = $CONFIG_LINKS
23225   CONFIG_COMMANDS = $CONFIG_COMMANDS
23226   $ $0 $@
23227
23228 _CSEOF
23229 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23230 echo >&5
23231 _ACEOF
23232
23233 # Files that config.status was made for.
23234 if test -n "$ac_config_files"; then
23235   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23236 fi
23237
23238 if test -n "$ac_config_headers"; then
23239   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23240 fi
23241
23242 if test -n "$ac_config_links"; then
23243   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23244 fi
23245
23246 if test -n "$ac_config_commands"; then
23247   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23248 fi
23249
23250 cat >>$CONFIG_STATUS <<\_ACEOF
23251
23252 ac_cs_usage="\
23253 \`$as_me' instantiates files from templates according to the
23254 current configuration.
23255
23256 Usage: $0 [OPTIONS] [FILE]...
23257
23258   -h, --help       print this help, then exit
23259   -V, --version    print version number, then exit
23260   -q, --quiet      do not print progress messages
23261   -d, --debug      don't remove temporary files
23262       --recheck    update $as_me by reconfiguring in the same conditions
23263   --file=FILE[:TEMPLATE]
23264                    instantiate the configuration file FILE
23265   --header=FILE[:TEMPLATE]
23266                    instantiate the configuration header FILE
23267
23268 Configuration files:
23269 $config_files
23270
23271 Configuration headers:
23272 $config_headers
23273
23274 Configuration commands:
23275 $config_commands
23276
23277 Report bugs to <bug-autoconf@gnu.org>."
23278 _ACEOF
23279
23280 cat >>$CONFIG_STATUS <<_ACEOF
23281 ac_cs_version="\\
23282 [LLVM] config.status [1.0]
23283 configured by $0, generated by GNU Autoconf 2.57,
23284   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23285
23286 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23287 Free Software Foundation, Inc.
23288 This config.status script is free software; the Free Software Foundation
23289 gives unlimited permission to copy, distribute and modify it."
23290 srcdir=$srcdir
23291 INSTALL="$INSTALL"
23292 _ACEOF
23293
23294 cat >>$CONFIG_STATUS <<\_ACEOF
23295 # If no file are specified by the user, then we need to provide default
23296 # value.  By we need to know if files were specified by the user.
23297 ac_need_defaults=:
23298 while test $# != 0
23299 do
23300   case $1 in
23301   --*=*)
23302     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23303     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23304     ac_shift=:
23305     ;;
23306   -*)
23307     ac_option=$1
23308     ac_optarg=$2
23309     ac_shift=shift
23310     ;;
23311   *) # This is not an option, so the user has probably given explicit
23312      # arguments.
23313      ac_option=$1
23314      ac_need_defaults=false;;
23315   esac
23316
23317   case $ac_option in
23318   # Handling of the options.
23319 _ACEOF
23320 cat >>$CONFIG_STATUS <<\_ACEOF
23321   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23322     ac_cs_recheck=: ;;
23323   --version | --vers* | -V )
23324     echo "$ac_cs_version"; exit 0 ;;
23325   --he | --h)
23326     # Conflict between --help and --header
23327     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23328 Try \`$0 --help' for more information." >&5
23329 echo "$as_me: error: ambiguous option: $1
23330 Try \`$0 --help' for more information." >&2;}
23331    { (exit 1); exit 1; }; };;
23332   --help | --hel | -h )
23333     echo "$ac_cs_usage"; exit 0 ;;
23334   --debug | --d* | -d )
23335     debug=: ;;
23336   --file | --fil | --fi | --f )
23337     $ac_shift
23338     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23339     ac_need_defaults=false;;
23340   --header | --heade | --head | --hea )
23341     $ac_shift
23342     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23343     ac_need_defaults=false;;
23344   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23345   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23346     ac_cs_silent=: ;;
23347
23348   # This is an error.
23349   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23350 Try \`$0 --help' for more information." >&5
23351 echo "$as_me: error: unrecognized option: $1
23352 Try \`$0 --help' for more information." >&2;}
23353    { (exit 1); exit 1; }; } ;;
23354
23355   *) ac_config_targets="$ac_config_targets $1" ;;
23356
23357   esac
23358   shift
23359 done
23360
23361 ac_configure_extra_args=
23362
23363 if $ac_cs_silent; then
23364   exec 6>/dev/null
23365   ac_configure_extra_args="$ac_configure_extra_args --silent"
23366 fi
23367
23368 _ACEOF
23369 cat >>$CONFIG_STATUS <<_ACEOF
23370 if \$ac_cs_recheck; then
23371   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23372   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23373 fi
23374
23375 _ACEOF
23376
23377 cat >>$CONFIG_STATUS <<_ACEOF
23378 #
23379 # INIT-COMMANDS section.
23380 #
23381
23382 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23383 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23384 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23385 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23386 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23387 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23388 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23389 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23390 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23391 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23392 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23393 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23394 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23395 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23396 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23397 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23398 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23399 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23400 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23401 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23402 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23403 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23404 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23405 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23406 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23407 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23408 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23409 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23410 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23411 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23412 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23413 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23414 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23415 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23416 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23417 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23418 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23419 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23420 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23421 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23422 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23423 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
23424 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/lib/Makefile`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/lib/compiler/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/lib/runtime/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/tools/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/tools/stkrc/Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/test/Makefile`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/samples/Makefile`
23441
23442 _ACEOF
23443
23444
23445
23446 cat >>$CONFIG_STATUS <<\_ACEOF
23447 for ac_config_target in $ac_config_targets
23448 do
23449   case "$ac_config_target" in
23450   # Handling of arguments.
23451   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23452   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23453   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23454   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23455   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23456   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23457   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23458   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23459   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23460   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23461   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23462   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23463   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23464   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23465   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23466   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23467   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23468   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23469   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23470   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23471   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23472   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23473   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23474   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23475   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23476   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23477   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23478   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23479   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23480   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23481   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23482   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
23483   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
23484   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
23485   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
23486   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
23487   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
23488   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
23489   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
23490   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
23491   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
23492   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
23493   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
23494   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23495   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23496   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23497   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23498   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23499   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23500   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23501   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23502   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23503   "projects/Stacker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/Makefile" ;;
23504   "projects/Stacker/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/lib/Makefile" ;;
23505   "projects/Stacker/lib/compiler/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/lib/compiler/Makefile" ;;
23506   "projects/Stacker/lib/runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/lib/runtime/Makefile" ;;
23507   "projects/Stacker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/tools/Makefile" ;;
23508   "projects/Stacker/tools/stkrc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/tools/stkrc/Makefile" ;;
23509   "projects/Stacker/test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/test/Makefile" ;;
23510   "projects/Stacker/samples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/samples/Makefile" ;;
23511   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23512   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23513 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23514    { (exit 1); exit 1; }; };;
23515   esac
23516 done
23517
23518 # If the user did not use the arguments to specify the items to instantiate,
23519 # then the envvar interface is used.  Set only those that are not.
23520 # We use the long form for the default assignment because of an extremely
23521 # bizarre bug on SunOS 4.1.3.
23522 if $ac_need_defaults; then
23523   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23524   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23525   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23526 fi
23527
23528 # Have a temporary directory for convenience.  Make it in the build tree
23529 # simply because there is no reason to put it here, and in addition,
23530 # creating and moving files from /tmp can sometimes cause problems.
23531 # Create a temporary directory, and hook for its removal unless debugging.
23532 $debug ||
23533 {
23534   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23535   trap '{ (exit 1); exit 1; }' 1 2 13 15
23536 }
23537
23538 # Create a (secure) tmp directory for tmp files.
23539
23540 {
23541   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23542   test -n "$tmp" && test -d "$tmp"
23543 }  ||
23544 {
23545   tmp=./confstat$$-$RANDOM
23546   (umask 077 && mkdir $tmp)
23547 } ||
23548 {
23549    echo "$me: cannot create a temporary directory in ." >&2
23550    { (exit 1); exit 1; }
23551 }
23552
23553 _ACEOF
23554
23555 cat >>$CONFIG_STATUS <<_ACEOF
23556
23557 #
23558 # CONFIG_FILES section.
23559 #
23560
23561 # No need to generate the scripts if there are no CONFIG_FILES.
23562 # This happens for instance when ./config.status config.h
23563 if test -n "\$CONFIG_FILES"; then
23564   # Protect against being on the right side of a sed subst in config.status.
23565   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23566    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23567 s,@SHELL@,$SHELL,;t t
23568 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23569 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23570 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23571 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23572 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23573 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23574 s,@exec_prefix@,$exec_prefix,;t t
23575 s,@prefix@,$prefix,;t t
23576 s,@program_transform_name@,$program_transform_name,;t t
23577 s,@bindir@,$bindir,;t t
23578 s,@sbindir@,$sbindir,;t t
23579 s,@libexecdir@,$libexecdir,;t t
23580 s,@datadir@,$datadir,;t t
23581 s,@sysconfdir@,$sysconfdir,;t t
23582 s,@sharedstatedir@,$sharedstatedir,;t t
23583 s,@localstatedir@,$localstatedir,;t t
23584 s,@libdir@,$libdir,;t t
23585 s,@includedir@,$includedir,;t t
23586 s,@oldincludedir@,$oldincludedir,;t t
23587 s,@infodir@,$infodir,;t t
23588 s,@mandir@,$mandir,;t t
23589 s,@build_alias@,$build_alias,;t t
23590 s,@host_alias@,$host_alias,;t t
23591 s,@target_alias@,$target_alias,;t t
23592 s,@DEFS@,$DEFS,;t t
23593 s,@ECHO_C@,$ECHO_C,;t t
23594 s,@ECHO_N@,$ECHO_N,;t t
23595 s,@ECHO_T@,$ECHO_T,;t t
23596 s,@LIBS@,$LIBS,;t t
23597 s,@subdirs@,$subdirs,;t t
23598 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23599 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23600 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23601 s,@build@,$build,;t t
23602 s,@build_cpu@,$build_cpu,;t t
23603 s,@build_vendor@,$build_vendor,;t t
23604 s,@build_os@,$build_os,;t t
23605 s,@host@,$host,;t t
23606 s,@host_cpu@,$host_cpu,;t t
23607 s,@host_vendor@,$host_vendor,;t t
23608 s,@host_os@,$host_os,;t t
23609 s,@target@,$target,;t t
23610 s,@target_cpu@,$target_cpu,;t t
23611 s,@target_vendor@,$target_vendor,;t t
23612 s,@target_os@,$target_os,;t t
23613 s,@OS@,$OS,;t t
23614 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23615 s,@ARCH@,$ARCH,;t t
23616 s,@CXX@,$CXX,;t t
23617 s,@CXXFLAGS@,$CXXFLAGS,;t t
23618 s,@LDFLAGS@,$LDFLAGS,;t t
23619 s,@CPPFLAGS@,$CPPFLAGS,;t t
23620 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23621 s,@EXEEXT@,$EXEEXT,;t t
23622 s,@OBJEXT@,$OBJEXT,;t t
23623 s,@CC@,$CC,;t t
23624 s,@CFLAGS@,$CFLAGS,;t t
23625 s,@ac_ct_CC@,$ac_ct_CC,;t t
23626 s,@CPP@,$CPP,;t t
23627 s,@ifGNUmake@,$ifGNUmake,;t t
23628 s,@LEX@,$LEX,;t t
23629 s,@LEXLIB@,$LEXLIB,;t t
23630 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23631 s,@YACC@,$YACC,;t t
23632 s,@EGREP@,$EGREP,;t t
23633 s,@LN_S@,$LN_S,;t t
23634 s,@ECHO@,$ECHO,;t t
23635 s,@AR@,$AR,;t t
23636 s,@ac_ct_AR@,$ac_ct_AR,;t t
23637 s,@RANLIB@,$RANLIB,;t t
23638 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23639 s,@STRIP@,$STRIP,;t t
23640 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23641 s,@CXXCPP@,$CXXCPP,;t t
23642 s,@F77@,$F77,;t t
23643 s,@FFLAGS@,$FFLAGS,;t t
23644 s,@ac_ct_F77@,$ac_ct_F77,;t t
23645 s,@LIBTOOL@,$LIBTOOL,;t t
23646 s,@RPWD@,$RPWD,;t t
23647 s,@SED@,$SED,;t t
23648 s,@RM@,$RM,;t t
23649 s,@MKDIR@,$MKDIR,;t t
23650 s,@DATE@,$DATE,;t t
23651 s,@MV@,$MV,;t t
23652 s,@DOT@,$DOT,;t t
23653 s,@ETAGS@,$ETAGS,;t t
23654 s,@PYTHON@,$PYTHON,;t t
23655 s,@QMTEST@,$QMTEST,;t t
23656 s,@ALLOCA@,$ALLOCA,;t t
23657 s,@LIBOBJS@,$LIBOBJS,;t t
23658 s,@MMAP_FILE@,$MMAP_FILE,;t t
23659 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23660 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23661 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23662 s,@USE_SPEC@,$USE_SPEC,;t t
23663 s,@UPB@,$UPB,;t t
23664 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23665 s,@JIT@,$JIT,;t t
23666 s,@BCR@,$BCR,;t t
23667 s,@PAPIDIR@,$PAPIDIR,;t t
23668 s,@PURIFY@,$PURIFY,;t t
23669 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23670 CEOF
23671
23672 _ACEOF
23673
23674   cat >>$CONFIG_STATUS <<\_ACEOF
23675   # Split the substitutions into bite-sized pieces for seds with
23676   # small command number limits, like on Digital OSF/1 and HP-UX.
23677   ac_max_sed_lines=48
23678   ac_sed_frag=1 # Number of current file.
23679   ac_beg=1 # First line for current file.
23680   ac_end=$ac_max_sed_lines # Line after last line for current file.
23681   ac_more_lines=:
23682   ac_sed_cmds=
23683   while $ac_more_lines; do
23684     if test $ac_beg -gt 1; then
23685       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23686     else
23687       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23688     fi
23689     if test ! -s $tmp/subs.frag; then
23690       ac_more_lines=false
23691     else
23692       # The purpose of the label and of the branching condition is to
23693       # speed up the sed processing (if there are no `@' at all, there
23694       # is no need to browse any of the substitutions).
23695       # These are the two extra sed commands mentioned above.
23696       (echo ':t
23697   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23698       if test -z "$ac_sed_cmds"; then
23699         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23700       else
23701         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23702       fi
23703       ac_sed_frag=`expr $ac_sed_frag + 1`
23704       ac_beg=$ac_end
23705       ac_end=`expr $ac_end + $ac_max_sed_lines`
23706     fi
23707   done
23708   if test -z "$ac_sed_cmds"; then
23709     ac_sed_cmds=cat
23710   fi
23711 fi # test -n "$CONFIG_FILES"
23712
23713 _ACEOF
23714 cat >>$CONFIG_STATUS <<\_ACEOF
23715 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23716   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23717   case $ac_file in
23718   - | *:- | *:-:* ) # input from stdin
23719         cat >$tmp/stdin
23720         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23721         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23722   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23723         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23724   * )   ac_file_in=$ac_file.in ;;
23725   esac
23726
23727   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23728   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23729 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23730          X"$ac_file" : 'X\(//\)[^/]' \| \
23731          X"$ac_file" : 'X\(//\)$' \| \
23732          X"$ac_file" : 'X\(/\)' \| \
23733          .     : '\(.\)' 2>/dev/null ||
23734 echo X"$ac_file" |
23735     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23736           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23737           /^X\(\/\/\)$/{ s//\1/; q; }
23738           /^X\(\/\).*/{ s//\1/; q; }
23739           s/.*/./; q'`
23740   { if $as_mkdir_p; then
23741     mkdir -p "$ac_dir"
23742   else
23743     as_dir="$ac_dir"
23744     as_dirs=
23745     while test ! -d "$as_dir"; do
23746       as_dirs="$as_dir $as_dirs"
23747       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23748 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23749          X"$as_dir" : 'X\(//\)[^/]' \| \
23750          X"$as_dir" : 'X\(//\)$' \| \
23751          X"$as_dir" : 'X\(/\)' \| \
23752          .     : '\(.\)' 2>/dev/null ||
23753 echo X"$as_dir" |
23754     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23755           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23756           /^X\(\/\/\)$/{ s//\1/; q; }
23757           /^X\(\/\).*/{ s//\1/; q; }
23758           s/.*/./; q'`
23759     done
23760     test ! -n "$as_dirs" || mkdir $as_dirs
23761   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23762 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23763    { (exit 1); exit 1; }; }; }
23764
23765   ac_builddir=.
23766
23767 if test "$ac_dir" != .; then
23768   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23769   # A "../" for each directory in $ac_dir_suffix.
23770   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23771 else
23772   ac_dir_suffix= ac_top_builddir=
23773 fi
23774
23775 case $srcdir in
23776   .)  # No --srcdir option.  We are building in place.
23777     ac_srcdir=.
23778     if test -z "$ac_top_builddir"; then
23779        ac_top_srcdir=.
23780     else
23781        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23782     fi ;;
23783   [\\/]* | ?:[\\/]* )  # Absolute path.
23784     ac_srcdir=$srcdir$ac_dir_suffix;
23785     ac_top_srcdir=$srcdir ;;
23786   *) # Relative path.
23787     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23788     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23789 esac
23790 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23791 # absolute.
23792 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23793 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23794 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23795 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23796
23797
23798   case $INSTALL in
23799   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23800   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23801   esac
23802
23803   if test x"$ac_file" != x-; then
23804     { echo "$as_me:$LINENO: creating $ac_file" >&5
23805 echo "$as_me: creating $ac_file" >&6;}
23806     rm -f "$ac_file"
23807   fi
23808   # Let's still pretend it is `configure' which instantiates (i.e., don't
23809   # use $as_me), people would be surprised to read:
23810   #    /* config.h.  Generated by config.status.  */
23811   if test x"$ac_file" = x-; then
23812     configure_input=
23813   else
23814     configure_input="$ac_file.  "
23815   fi
23816   configure_input=$configure_input"Generated from `echo $ac_file_in |
23817                                      sed 's,.*/,,'` by configure."
23818
23819   # First look for the input files in the build tree, otherwise in the
23820   # src tree.
23821   ac_file_inputs=`IFS=:
23822     for f in $ac_file_in; do
23823       case $f in
23824       -) echo $tmp/stdin ;;
23825       [\\/$]*)
23826          # Absolute (can't be DOS-style, as IFS=:)
23827          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23828 echo "$as_me: error: cannot find input file: $f" >&2;}
23829    { (exit 1); exit 1; }; }
23830          echo $f;;
23831       *) # Relative
23832          if test -f "$f"; then
23833            # Build tree
23834            echo $f
23835          elif test -f "$srcdir/$f"; then
23836            # Source tree
23837            echo $srcdir/$f
23838          else
23839            # /dev/null tree
23840            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23841 echo "$as_me: error: cannot find input file: $f" >&2;}
23842    { (exit 1); exit 1; }; }
23843          fi;;
23844       esac
23845     done` || { (exit 1); exit 1; }
23846 _ACEOF
23847 cat >>$CONFIG_STATUS <<_ACEOF
23848   sed "$ac_vpsub
23849 $extrasub
23850 _ACEOF
23851 cat >>$CONFIG_STATUS <<\_ACEOF
23852 :t
23853 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23854 s,@configure_input@,$configure_input,;t t
23855 s,@srcdir@,$ac_srcdir,;t t
23856 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23857 s,@top_srcdir@,$ac_top_srcdir,;t t
23858 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23859 s,@builddir@,$ac_builddir,;t t
23860 s,@abs_builddir@,$ac_abs_builddir,;t t
23861 s,@top_builddir@,$ac_top_builddir,;t t
23862 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23863 s,@INSTALL@,$ac_INSTALL,;t t
23864 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23865   rm -f $tmp/stdin
23866   if test x"$ac_file" != x-; then
23867     mv $tmp/out $ac_file
23868   else
23869     cat $tmp/out
23870     rm -f $tmp/out
23871   fi
23872
23873 done
23874 _ACEOF
23875 cat >>$CONFIG_STATUS <<\_ACEOF
23876
23877 #
23878 # CONFIG_HEADER section.
23879 #
23880
23881 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23882 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23883 #
23884 # ac_d sets the value in "#define NAME VALUE" lines.
23885 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
23886 ac_dB='[        ].*$,\1#\2'
23887 ac_dC=' '
23888 ac_dD=',;t'
23889 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23890 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23891 ac_uB='$,\1#\2define\3'
23892 ac_uC=' '
23893 ac_uD=',;t'
23894
23895 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23896   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23897   case $ac_file in
23898   - | *:- | *:-:* ) # input from stdin
23899         cat >$tmp/stdin
23900         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23901         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23902   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23903         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23904   * )   ac_file_in=$ac_file.in ;;
23905   esac
23906
23907   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23908 echo "$as_me: creating $ac_file" >&6;}
23909
23910   # First look for the input files in the build tree, otherwise in the
23911   # src tree.
23912   ac_file_inputs=`IFS=:
23913     for f in $ac_file_in; do
23914       case $f in
23915       -) echo $tmp/stdin ;;
23916       [\\/$]*)
23917          # Absolute (can't be DOS-style, as IFS=:)
23918          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23919 echo "$as_me: error: cannot find input file: $f" >&2;}
23920    { (exit 1); exit 1; }; }
23921          echo $f;;
23922       *) # Relative
23923          if test -f "$f"; then
23924            # Build tree
23925            echo $f
23926          elif test -f "$srcdir/$f"; then
23927            # Source tree
23928            echo $srcdir/$f
23929          else
23930            # /dev/null tree
23931            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23932 echo "$as_me: error: cannot find input file: $f" >&2;}
23933    { (exit 1); exit 1; }; }
23934          fi;;
23935       esac
23936     done` || { (exit 1); exit 1; }
23937   # Remove the trailing spaces.
23938   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
23939
23940 _ACEOF
23941
23942 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23943 # `conftest.undefs', that substitutes the proper values into
23944 # config.h.in to produce config.h.  The first handles `#define'
23945 # templates, and the second `#undef' templates.
23946 # And first: Protect against being on the right side of a sed subst in
23947 # config.status.  Protect against being in an unquoted here document
23948 # in config.status.
23949 rm -f conftest.defines conftest.undefs
23950 # Using a here document instead of a string reduces the quoting nightmare.
23951 # Putting comments in sed scripts is not portable.
23952 #
23953 # `end' is used to avoid that the second main sed command (meant for
23954 # 0-ary CPP macros) applies to n-ary macro definitions.
23955 # See the Autoconf documentation for `clear'.
23956 cat >confdef2sed.sed <<\_ACEOF
23957 s/[\\&,]/\\&/g
23958 s,[\\$`],\\&,g
23959 t clear
23960 : clear
23961 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23962 t end
23963 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23964 : end
23965 _ACEOF
23966 # If some macros were called several times there might be several times
23967 # the same #defines, which is useless.  Nevertheless, we may not want to
23968 # sort them, since we want the *last* AC-DEFINE to be honored.
23969 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23970 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23971 rm -f confdef2sed.sed
23972
23973 # This sed command replaces #undef with comments.  This is necessary, for
23974 # example, in the case of _POSIX_SOURCE, which is predefined and required
23975 # on some systems where configure will not decide to define it.
23976 cat >>conftest.undefs <<\_ACEOF
23977 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23978 _ACEOF
23979
23980 # Break up conftest.defines because some shells have a limit on the size
23981 # of here documents, and old seds have small limits too (100 cmds).
23982 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23983 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23984 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23985 echo '  :' >>$CONFIG_STATUS
23986 rm -f conftest.tail
23987 while grep . conftest.defines >/dev/null
23988 do
23989   # Write a limited-size here document to $tmp/defines.sed.
23990   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23991   # Speed up: don't consider the non `#define' lines.
23992   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
23993   # Work around the forget-to-reset-the-flag bug.
23994   echo 't clr' >>$CONFIG_STATUS
23995   echo ': clr' >>$CONFIG_STATUS
23996   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23997   echo 'CEOF
23998   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23999   rm -f $tmp/in
24000   mv $tmp/out $tmp/in
24001 ' >>$CONFIG_STATUS
24002   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24003   rm -f conftest.defines
24004   mv conftest.tail conftest.defines
24005 done
24006 rm -f conftest.defines
24007 echo '  fi # grep' >>$CONFIG_STATUS
24008 echo >>$CONFIG_STATUS
24009
24010 # Break up conftest.undefs because some shells have a limit on the size
24011 # of here documents, and old seds have small limits too (100 cmds).
24012 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24013 rm -f conftest.tail
24014 while grep . conftest.undefs >/dev/null
24015 do
24016   # Write a limited-size here document to $tmp/undefs.sed.
24017   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24018   # Speed up: don't consider the non `#undef'
24019   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24020   # Work around the forget-to-reset-the-flag bug.
24021   echo 't clr' >>$CONFIG_STATUS
24022   echo ': clr' >>$CONFIG_STATUS
24023   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24024   echo 'CEOF
24025   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24026   rm -f $tmp/in
24027   mv $tmp/out $tmp/in
24028 ' >>$CONFIG_STATUS
24029   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24030   rm -f conftest.undefs
24031   mv conftest.tail conftest.undefs
24032 done
24033 rm -f conftest.undefs
24034
24035 cat >>$CONFIG_STATUS <<\_ACEOF
24036   # Let's still pretend it is `configure' which instantiates (i.e., don't
24037   # use $as_me), people would be surprised to read:
24038   #    /* config.h.  Generated by config.status.  */
24039   if test x"$ac_file" = x-; then
24040     echo "/* Generated by configure.  */" >$tmp/config.h
24041   else
24042     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24043   fi
24044   cat $tmp/in >>$tmp/config.h
24045   rm -f $tmp/in
24046   if test x"$ac_file" != x-; then
24047     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24048       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24049 echo "$as_me: $ac_file is unchanged" >&6;}
24050     else
24051       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24052 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24053          X"$ac_file" : 'X\(//\)[^/]' \| \
24054          X"$ac_file" : 'X\(//\)$' \| \
24055          X"$ac_file" : 'X\(/\)' \| \
24056          .     : '\(.\)' 2>/dev/null ||
24057 echo X"$ac_file" |
24058     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24059           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24060           /^X\(\/\/\)$/{ s//\1/; q; }
24061           /^X\(\/\).*/{ s//\1/; q; }
24062           s/.*/./; q'`
24063       { if $as_mkdir_p; then
24064     mkdir -p "$ac_dir"
24065   else
24066     as_dir="$ac_dir"
24067     as_dirs=
24068     while test ! -d "$as_dir"; do
24069       as_dirs="$as_dir $as_dirs"
24070       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24072          X"$as_dir" : 'X\(//\)[^/]' \| \
24073          X"$as_dir" : 'X\(//\)$' \| \
24074          X"$as_dir" : 'X\(/\)' \| \
24075          .     : '\(.\)' 2>/dev/null ||
24076 echo X"$as_dir" |
24077     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24078           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24079           /^X\(\/\/\)$/{ s//\1/; q; }
24080           /^X\(\/\).*/{ s//\1/; q; }
24081           s/.*/./; q'`
24082     done
24083     test ! -n "$as_dirs" || mkdir $as_dirs
24084   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24085 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24086    { (exit 1); exit 1; }; }; }
24087
24088       rm -f $ac_file
24089       mv $tmp/config.h $ac_file
24090     fi
24091   else
24092     cat $tmp/config.h
24093     rm -f $tmp/config.h
24094   fi
24095 done
24096 _ACEOF
24097 cat >>$CONFIG_STATUS <<\_ACEOF
24098
24099 #
24100 # CONFIG_COMMANDS section.
24101 #
24102 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24103   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24104   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24105   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24106 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24107          X"$ac_dest" : 'X\(//\)[^/]' \| \
24108          X"$ac_dest" : 'X\(//\)$' \| \
24109          X"$ac_dest" : 'X\(/\)' \| \
24110          .     : '\(.\)' 2>/dev/null ||
24111 echo X"$ac_dest" |
24112     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24113           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24114           /^X\(\/\/\)$/{ s//\1/; q; }
24115           /^X\(\/\).*/{ s//\1/; q; }
24116           s/.*/./; q'`
24117   ac_builddir=.
24118
24119 if test "$ac_dir" != .; then
24120   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24121   # A "../" for each directory in $ac_dir_suffix.
24122   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24123 else
24124   ac_dir_suffix= ac_top_builddir=
24125 fi
24126
24127 case $srcdir in
24128   .)  # No --srcdir option.  We are building in place.
24129     ac_srcdir=.
24130     if test -z "$ac_top_builddir"; then
24131        ac_top_srcdir=.
24132     else
24133        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24134     fi ;;
24135   [\\/]* | ?:[\\/]* )  # Absolute path.
24136     ac_srcdir=$srcdir$ac_dir_suffix;
24137     ac_top_srcdir=$srcdir ;;
24138   *) # Relative path.
24139     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24140     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24141 esac
24142 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24143 # absolute.
24144 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24145 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24146 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24147 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24148
24149
24150   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24151 echo "$as_me: executing $ac_dest commands" >&6;}
24152   case $ac_dest in
24153     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24154     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24155     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24156     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24157     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24158     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24159     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24160     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24161     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24162     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24163     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24164     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24165     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24166     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24167     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24168     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24169     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24170     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24171     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24172     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24173     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24174     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24175     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24176     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24177     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24178     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24179     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 ;;
24180     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24181     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24182     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 ;;
24183     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 ;;
24184     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 ;;
24185     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 ;;
24186     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 ;;
24187     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 ;;
24188     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 ;;
24189     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 ;;
24190     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 ;;
24191     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 ;;
24192     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 ;;
24193     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 ;;
24194     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 ;;
24195     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24196     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24197     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24198     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24199     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24200     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24201     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24202     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24203     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24204     projects/Stacker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/Makefile projects/Stacker/Makefile ;;
24205     projects/Stacker/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/lib/Makefile projects/Stacker/lib/Makefile ;;
24206     projects/Stacker/lib/compiler/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/lib/compiler/Makefile projects/Stacker/lib/compiler/Makefile ;;
24207     projects/Stacker/lib/runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/lib/runtime/Makefile projects/Stacker/lib/runtime/Makefile ;;
24208     projects/Stacker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/tools/Makefile projects/Stacker/tools/Makefile ;;
24209     projects/Stacker/tools/stkrc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/tools/stkrc/Makefile projects/Stacker/tools/stkrc/Makefile ;;
24210     projects/Stacker/test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/test/Makefile projects/Stacker/test/Makefile ;;
24211     projects/Stacker/samples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/samples/Makefile projects/Stacker/samples/Makefile ;;
24212   esac
24213 done
24214 _ACEOF
24215
24216 cat >>$CONFIG_STATUS <<\_ACEOF
24217
24218 { (exit 0); exit 0; }
24219 _ACEOF
24220 chmod +x $CONFIG_STATUS
24221 ac_clean_files=$ac_clean_files_save
24222
24223
24224 # configure is writing to config.log, and then calls config.status.
24225 # config.status does its own redirection, appending to config.log.
24226 # Unfortunately, on DOS this fails, as config.log is still kept open
24227 # by configure, so config.status won't be able to write to it; its
24228 # output is simply discarded.  So we exec the FD to /dev/null,
24229 # effectively closing config.log, so it can be properly (re)opened and
24230 # appended to by config.status.  When coming back to configure, we
24231 # need to make the FD available again.
24232 if test "$no_create" != yes; then
24233   ac_cs_success=:
24234   ac_config_status_args=
24235   test "$silent" = yes &&
24236     ac_config_status_args="$ac_config_status_args --quiet"
24237   exec 5>/dev/null
24238   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24239   exec 5>>config.log
24240   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24241   # would make configure fail if this is the last instruction.
24242   $ac_cs_success || { (exit 1); exit 1; }
24243 fi
24244
24245 #
24246 # CONFIG_SUBDIRS section.
24247 #
24248 if test "$no_recursion" != yes; then
24249
24250   # Remove --cache-file and --srcdir arguments so they do not pile up.
24251   ac_sub_configure_args=
24252   ac_prev=
24253   for ac_arg in $ac_configure_args; do
24254     if test -n "$ac_prev"; then
24255       ac_prev=
24256       continue
24257     fi
24258     case $ac_arg in
24259     -cache-file | --cache-file | --cache-fil | --cache-fi \
24260     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24261       ac_prev=cache_file ;;
24262     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24263     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24264     | --c=*)
24265       ;;
24266     --config-cache | -C)
24267       ;;
24268     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24269       ac_prev=srcdir ;;
24270     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24271       ;;
24272     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24273       ac_prev=prefix ;;
24274     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24275       ;;
24276     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24277     esac
24278   done
24279
24280   # Always prepend --prefix to ensure using the same prefix
24281   # in subdir configurations.
24282   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24283
24284   ac_popdir=`pwd`
24285   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24286
24287     # Do not complain, so a configure script can configure whichever
24288     # parts of a large source tree are present.
24289     test -d $srcdir/$ac_dir || continue
24290
24291     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24292 echo "$as_me: configuring in $ac_dir" >&6;}
24293     { if $as_mkdir_p; then
24294     mkdir -p "$ac_dir"
24295   else
24296     as_dir="$ac_dir"
24297     as_dirs=
24298     while test ! -d "$as_dir"; do
24299       as_dirs="$as_dir $as_dirs"
24300       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24302          X"$as_dir" : 'X\(//\)[^/]' \| \
24303          X"$as_dir" : 'X\(//\)$' \| \
24304          X"$as_dir" : 'X\(/\)' \| \
24305          .     : '\(.\)' 2>/dev/null ||
24306 echo X"$as_dir" |
24307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24308           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24309           /^X\(\/\/\)$/{ s//\1/; q; }
24310           /^X\(\/\).*/{ s//\1/; q; }
24311           s/.*/./; q'`
24312     done
24313     test ! -n "$as_dirs" || mkdir $as_dirs
24314   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24315 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24316    { (exit 1); exit 1; }; }; }
24317
24318     ac_builddir=.
24319
24320 if test "$ac_dir" != .; then
24321   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24322   # A "../" for each directory in $ac_dir_suffix.
24323   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24324 else
24325   ac_dir_suffix= ac_top_builddir=
24326 fi
24327
24328 case $srcdir in
24329   .)  # No --srcdir option.  We are building in place.
24330     ac_srcdir=.
24331     if test -z "$ac_top_builddir"; then
24332        ac_top_srcdir=.
24333     else
24334        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24335     fi ;;
24336   [\\/]* | ?:[\\/]* )  # Absolute path.
24337     ac_srcdir=$srcdir$ac_dir_suffix;
24338     ac_top_srcdir=$srcdir ;;
24339   *) # Relative path.
24340     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24341     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24342 esac
24343 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24344 # absolute.
24345 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24346 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24347 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24348 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24349
24350
24351     cd $ac_dir
24352
24353     # Check for guested configure; otherwise get Cygnus style configure.
24354     if test -f $ac_srcdir/configure.gnu; then
24355       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24356     elif test -f $ac_srcdir/configure; then
24357       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24358     elif test -f $ac_srcdir/configure.in; then
24359       ac_sub_configure=$ac_configure
24360     else
24361       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24362 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24363       ac_sub_configure=
24364     fi
24365
24366     # The recursion is here.
24367     if test -n "$ac_sub_configure"; then
24368       # Make the cache file name correct relative to the subdirectory.
24369       case $cache_file in
24370       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24371       *) # Relative path.
24372         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24373       esac
24374
24375       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24376 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24377       # The eval makes quoting arguments work.
24378       eval $ac_sub_configure $ac_sub_configure_args \
24379            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24380         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24381 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24382    { (exit 1); exit 1; }; }
24383     fi
24384
24385     cd $ac_popdir
24386   done
24387 fi
24388
24389
24390 if test $llvmgccwarn = yes
24391 then
24392         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
24393 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
24394         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
24395 echo "$as_me: WARNING: ***** appear to be working." >&2;}
24396         { echo "$as_me:$LINENO: WARNING: ***** " >&5
24397 echo "$as_me: WARNING: ***** " >&2;}
24398         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
24399 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
24400         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
24401 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
24402         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
24403 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
24404 fi