8b34b6136df184147261b0360a7b9ba29b54a424
[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 Makefile.rules"
1557
1558
1559           ac_config_commands="$ac_config_commands lib/Makefile"
1560
1561
1562           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1563
1564
1565           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1566
1567
1568           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1569
1570
1571           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1572
1573
1574           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1575
1576
1577           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1578
1579
1580           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1584
1585
1586           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1587
1588
1589           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1590
1591
1592           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1593
1594
1595           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1596
1597
1598           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1599
1600
1601           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1602
1603
1604           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1605
1606
1607           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands lib/Support/Makefile"
1617
1618
1619           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1623
1624
1625           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1626
1627
1628           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1629
1630
1631           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1632
1633
1634           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1635
1636
1637           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1638
1639
1640           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1641
1642
1643           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1644
1645
1646           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1647
1648
1649           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1650
1651
1652           ac_config_commands="$ac_config_commands runtime/Makefile"
1653
1654
1655           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1656
1657
1658           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1659
1660
1661           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1662
1663
1664           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1665
1666
1667           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1668
1669
1670           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1671
1672
1673           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1674
1675
1676           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1677
1678
1679           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1680
1681
1682           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1683
1684
1685           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1686
1687
1688           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1689
1690
1691           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1692
1693
1694           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1695
1696
1697           ac_config_commands="$ac_config_commands runtime/libprofile/Makefile"
1698
1699
1700           ac_config_commands="$ac_config_commands test/Makefile"
1701
1702
1703           ac_config_commands="$ac_config_commands test/Makefile.tests"
1704
1705
1706           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1707
1708
1709           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1710
1711
1712           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1713
1714
1715           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1716
1717
1718           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1719
1720
1721           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1722
1723
1724           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1725
1726
1727           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1728
1729
1730           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1731
1732
1733           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1734
1735
1736           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1737
1738
1739           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1740
1741
1742           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1743
1744
1745           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1746
1747
1748           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1749
1750
1751           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1752
1753
1754           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1755
1756
1757           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1758
1759
1760           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1761
1762
1763           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1764
1765
1766           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1767
1768
1769           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1770
1771
1772           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/177.mesa/Makefile"
1773
1774
1775           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1776
1777
1778           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1779
1780
1781           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1782
1783
1784           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1785
1786
1787           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1788
1789
1790           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1791
1792
1793           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1794
1795
1796           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1797
1798
1799           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1800
1801
1802           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1803
1804
1805           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/252.eon/Makefile"
1806
1807
1808           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile"
1809
1810
1811           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1812
1813
1814           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1815
1816
1817           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1818
1819
1820           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1821
1822
1823           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1824
1825
1826           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1827
1828
1829           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1830
1831
1832           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1833
1834
1835           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1836
1837
1838           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1839
1840
1841           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1842
1843
1844           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1845
1846
1847           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1848
1849
1850           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/Makefile"
1851
1852
1853           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile"
1854
1855
1856           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1857
1858
1859           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1860
1861
1862           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1863
1864
1865           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1866
1867
1868           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1869
1870
1871           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1872
1873
1874           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1875
1876
1877           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1878
1879
1880           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1881
1882
1883           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1884
1885
1886           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1887
1888
1889           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1890
1891
1892           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1893
1894
1895           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1896
1897
1898           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1899
1900
1901           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1902
1903
1904           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1905
1906
1907           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1908
1909
1910           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1911
1912
1913           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1914
1915
1916           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1917
1918
1919           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1920
1921
1922           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1923
1924
1925           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1926
1927
1928           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1929
1930
1931           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1932
1933
1934           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1935
1936
1937           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1938
1939
1940           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1941
1942
1943           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1944
1945
1946           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1947
1948
1949           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1950
1951
1952           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1953
1954
1955           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1956
1957
1958           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1959
1960
1961           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1962
1963
1964           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1965
1966
1967           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1968
1969
1970           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1971
1972
1973           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1974
1975
1976           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1977
1978
1979           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1980
1981
1982           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1983
1984
1985           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1986
1987
1988           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1989
1990
1991           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1992
1993
1994           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1995
1996
1997           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1998
1999
2000           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
2001
2002
2003           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
2004
2005
2006           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
2007
2008
2009           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
2010
2011
2012           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
2013
2014
2015           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
2016
2017
2018           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
2019
2020
2021           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
2022
2023
2024           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
2025
2026
2027           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
2028
2029
2030           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
2031
2032
2033           ac_config_commands="$ac_config_commands tools/Makefile"
2034
2035
2036           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
2037
2038
2039           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
2040
2041
2042           ac_config_commands="$ac_config_commands tools/extract/Makefile"
2043
2044
2045           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
2046
2047
2048           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
2049
2050
2051           ac_config_commands="$ac_config_commands tools/llc/Makefile"
2052
2053
2054           ac_config_commands="$ac_config_commands tools/llee/Makefile"
2055
2056
2057           ac_config_commands="$ac_config_commands tools/lli/Makefile"
2058
2059
2060           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2061
2062
2063           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2064
2065
2066           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
2067
2068
2069           ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2070
2071
2072           ac_config_commands="$ac_config_commands tools/llvm-nm/Makefile"
2073
2074
2075           ac_config_commands="$ac_config_commands tools/llvm-prof/Makefile"
2076
2077
2078           ac_config_commands="$ac_config_commands tools/opt/Makefile"
2079
2080
2081           ac_config_commands="$ac_config_commands utils/Makefile"
2082
2083
2084           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2085
2086
2087           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2088
2089
2090           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2091
2092
2093           ac_config_commands="$ac_config_commands projects/Makefile"
2094
2095
2096           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2097
2098
2099           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2100
2101
2102           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2103
2104
2105           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2106
2107
2108           ac_config_commands="$ac_config_commands projects/Stacker/Makefile"
2109
2110
2111           ac_config_commands="$ac_config_commands projects/Stacker/lib/Makefile"
2112
2113
2114           ac_config_commands="$ac_config_commands projects/Stacker/lib/compiler/Makefile"
2115
2116
2117           ac_config_commands="$ac_config_commands projects/Stacker/lib/runtime/Makefile"
2118
2119
2120           ac_config_commands="$ac_config_commands projects/Stacker/tools/Makefile"
2121
2122
2123           ac_config_commands="$ac_config_commands projects/Stacker/tools/stkrc/Makefile"
2124
2125
2126           ac_config_commands="$ac_config_commands projects/Stacker/test/Makefile"
2127
2128
2129           ac_config_commands="$ac_config_commands projects/Stacker/samples/Makefile"
2130
2131
2132
2133
2134 # Find a good install program.  We prefer a C program (faster),
2135 # so one script is as good as another.  But avoid the broken or
2136 # incompatible versions:
2137 # SysV /etc/install, /usr/sbin/install
2138 # SunOS /usr/etc/install
2139 # IRIX /sbin/install
2140 # AIX /bin/install
2141 # AmigaOS /C/install, which installs bootblocks on floppy discs
2142 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2143 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2144 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2145 # ./install, which can be erroneously created by make from ./install.sh.
2146 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2147 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2148 if test -z "$INSTALL"; then
2149 if test "${ac_cv_path_install+set}" = set; then
2150   echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 for as_dir in $PATH
2154 do
2155   IFS=$as_save_IFS
2156   test -z "$as_dir" && as_dir=.
2157   # Account for people who put trailing slashes in PATH elements.
2158 case $as_dir/ in
2159   ./ | .// | /cC/* | \
2160   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2161   /usr/ucb/* ) ;;
2162   *)
2163     # OSF1 and SCO ODT 3.0 have their own names for install.
2164     # Don't use installbsd from OSF since it installs stuff as root
2165     # by default.
2166     for ac_prog in ginstall scoinst install; do
2167       for ac_exec_ext in '' $ac_executable_extensions; do
2168         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2169           if test $ac_prog = install &&
2170             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2171             # AIX install.  It has an incompatible calling convention.
2172             :
2173           elif test $ac_prog = install &&
2174             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2175             # program-specific install script used by HP pwplus--don't use.
2176             :
2177           else
2178             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2179             break 3
2180           fi
2181         fi
2182       done
2183     done
2184     ;;
2185 esac
2186 done
2187
2188
2189 fi
2190   if test "${ac_cv_path_install+set}" = set; then
2191     INSTALL=$ac_cv_path_install
2192   else
2193     # As a last resort, use the slow shell script.  We don't cache a
2194     # path for INSTALL within a source directory, because that will
2195     # break other packages using the cache if that directory is
2196     # removed, or if the path is relative.
2197     INSTALL=$ac_install_sh
2198   fi
2199 fi
2200 echo "$as_me:$LINENO: result: $INSTALL" >&5
2201 echo "${ECHO_T}$INSTALL" >&6
2202
2203 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2204 # It thinks the first close brace ends the variable substitution.
2205 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2206
2207 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2208
2209 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2210
2211
2212 # Make sure we can run config.sub.
2213 $ac_config_sub sun4 >/dev/null 2>&1 ||
2214   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2215 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2216    { (exit 1); exit 1; }; }
2217
2218 echo "$as_me:$LINENO: checking build system type" >&5
2219 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2220 if test "${ac_cv_build+set}" = set; then
2221   echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223   ac_cv_build_alias=$build_alias
2224 test -z "$ac_cv_build_alias" &&
2225   ac_cv_build_alias=`$ac_config_guess`
2226 test -z "$ac_cv_build_alias" &&
2227   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2228 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2229    { (exit 1); exit 1; }; }
2230 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2231   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2232 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2233    { (exit 1); exit 1; }; }
2234
2235 fi
2236 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2237 echo "${ECHO_T}$ac_cv_build" >&6
2238 build=$ac_cv_build
2239 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2240 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2241 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2242
2243
2244 echo "$as_me:$LINENO: checking host system type" >&5
2245 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2246 if test "${ac_cv_host+set}" = set; then
2247   echo $ECHO_N "(cached) $ECHO_C" >&6
2248 else
2249   ac_cv_host_alias=$host_alias
2250 test -z "$ac_cv_host_alias" &&
2251   ac_cv_host_alias=$ac_cv_build_alias
2252 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2253   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2254 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2255    { (exit 1); exit 1; }; }
2256
2257 fi
2258 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2259 echo "${ECHO_T}$ac_cv_host" >&6
2260 host=$ac_cv_host
2261 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2262 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2263 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2264
2265
2266 echo "$as_me:$LINENO: checking target system type" >&5
2267 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2268 if test "${ac_cv_target+set}" = set; then
2269   echo $ECHO_N "(cached) $ECHO_C" >&6
2270 else
2271   ac_cv_target_alias=$target_alias
2272 test "x$ac_cv_target_alias" = "x" &&
2273   ac_cv_target_alias=$ac_cv_host_alias
2274 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2275   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2276 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2277    { (exit 1); exit 1; }; }
2278
2279 fi
2280 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2281 echo "${ECHO_T}$ac_cv_target" >&6
2282 target=$ac_cv_target
2283 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2284 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2285 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2286
2287
2288 # The aliases save the names the user supplied, while $host etc.
2289 # will get canonicalized.
2290 test -n "$target_alias" &&
2291   test "$program_prefix$program_suffix$program_transform_name" = \
2292     NONENONEs,x,x, &&
2293   program_prefix=${target_alias}-
2294
2295 case $build in
2296         *-*-linux*)
2297              OS=Linux
2298
2299                          if test -d /home/vadve/lattner/local/x86/llvm-gcc
2300                          then
2301                            LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2302
2303                          fi
2304                  ;;
2305
2306         *-*-solaris*)
2307              OS=SunOS
2308
2309                          if test -d /home/vadve/lattner/local/sparc/llvm-gcc
2310                          then
2311                    LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2312
2313                          fi
2314                  ;;
2315
2316         *-*-darwin*)
2317              OS=Darwin
2318
2319                  ;;
2320
2321         *)       OS=Unknown
2322
2323                  ;;
2324 esac
2325
2326 case $target in
2327         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
2328
2329                             ;;
2330 esac
2331
2332 case $target in
2333         i*86-*)           ARCH=x86
2334
2335                           ;;
2336         sparc*-*)         ARCH=Sparc
2337
2338                           ;;
2339         powerpc*-*)       ARCH=PowerPC
2340
2341                           ;;
2342         *)                ARCH=Unknown
2343
2344                           ;;
2345 esac
2346
2347
2348 ac_ext=cc
2349 ac_cpp='$CXXCPP $CPPFLAGS'
2350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2353 if test -n "$ac_tool_prefix"; then
2354   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2355   do
2356     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2358 echo "$as_me:$LINENO: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2360 if test "${ac_cv_prog_CXX+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363   if test -n "$CXX"; then
2364   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2365 else
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 for as_dir in $PATH
2368 do
2369   IFS=$as_save_IFS
2370   test -z "$as_dir" && as_dir=.
2371   for ac_exec_ext in '' $ac_executable_extensions; do
2372   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2373     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375     break 2
2376   fi
2377 done
2378 done
2379
2380 fi
2381 fi
2382 CXX=$ac_cv_prog_CXX
2383 if test -n "$CXX"; then
2384   echo "$as_me:$LINENO: result: $CXX" >&5
2385 echo "${ECHO_T}$CXX" >&6
2386 else
2387   echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6
2389 fi
2390
2391     test -n "$CXX" && break
2392   done
2393 fi
2394 if test -z "$CXX"; then
2395   ac_ct_CXX=$CXX
2396   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2397 do
2398   # Extract the first word of "$ac_prog", so it can be a program name with args.
2399 set dummy $ac_prog; ac_word=$2
2400 echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2402 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2403   echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405   if test -n "$ac_ct_CXX"; then
2406   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2407 else
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 for as_dir in $PATH
2410 do
2411   IFS=$as_save_IFS
2412   test -z "$as_dir" && as_dir=.
2413   for ac_exec_ext in '' $ac_executable_extensions; do
2414   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2415     ac_cv_prog_ac_ct_CXX="$ac_prog"
2416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417     break 2
2418   fi
2419 done
2420 done
2421
2422 fi
2423 fi
2424 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2425 if test -n "$ac_ct_CXX"; then
2426   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2427 echo "${ECHO_T}$ac_ct_CXX" >&6
2428 else
2429   echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6
2431 fi
2432
2433   test -n "$ac_ct_CXX" && break
2434 done
2435 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2436
2437   CXX=$ac_ct_CXX
2438 fi
2439
2440
2441 # Provide some information about the compiler.
2442 echo "$as_me:$LINENO:" \
2443      "checking for C++ compiler version" >&5
2444 ac_compiler=`set X $ac_compile; echo $2`
2445 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2446   (eval $ac_compiler --version </dev/null >&5) 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); }
2450 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2451   (eval $ac_compiler -v </dev/null >&5) 2>&5
2452   ac_status=$?
2453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454   (exit $ac_status); }
2455 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2456   (eval $ac_compiler -V </dev/null >&5) 2>&5
2457   ac_status=$?
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); }
2460
2461 cat >conftest.$ac_ext <<_ACEOF
2462 #line $LINENO "configure"
2463 /* confdefs.h.  */
2464 _ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h.  */
2468
2469 int
2470 main ()
2471 {
2472
2473   ;
2474   return 0;
2475 }
2476 _ACEOF
2477 ac_clean_files_save=$ac_clean_files
2478 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2479 # Try to create an executable without -o first, disregard a.out.
2480 # It will help us diagnose broken compilers, and finding out an intuition
2481 # of exeext.
2482 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2483 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2484 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2485 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2486   (eval $ac_link_default) 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; then
2490   # Find the output, starting from the most likely.  This scheme is
2491 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2492 # resort.
2493
2494 # Be careful to initialize this variable, since it used to be cached.
2495 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2496 ac_cv_exeext=
2497 # b.out is created by i960 compilers.
2498 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2499 do
2500   test -f "$ac_file" || continue
2501   case $ac_file in
2502     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2503         ;;
2504     conftest.$ac_ext )
2505         # This is the source file.
2506         ;;
2507     [ab].out )
2508         # We found the default executable, but exeext='' is most
2509         # certainly right.
2510         break;;
2511     *.* )
2512         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2513         # FIXME: I believe we export ac_cv_exeext for Libtool,
2514         # but it would be cool to find out if it's true.  Does anybody
2515         # maintain Libtool? --akim.
2516         export ac_cv_exeext
2517         break;;
2518     * )
2519         break;;
2520   esac
2521 done
2522 else
2523   echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: C++ compiler cannot create executables
2529 See \`config.log' for more details." >&2;}
2530    { (exit 77); exit 77; }; }
2531 fi
2532
2533 ac_exeext=$ac_cv_exeext
2534 echo "$as_me:$LINENO: result: $ac_file" >&5
2535 echo "${ECHO_T}$ac_file" >&6
2536
2537 # Check the compiler produces executables we can run.  If not, either
2538 # the compiler is broken, or we cross compile.
2539 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2540 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2541 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2542 # If not cross compiling, check that we can run a simple program.
2543 if test "$cross_compiling" != yes; then
2544   if { ac_try='./$ac_file'
2545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546   (eval $ac_try) 2>&5
2547   ac_status=$?
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); }; }; then
2550     cross_compiling=no
2551   else
2552     if test "$cross_compiling" = maybe; then
2553         cross_compiling=yes
2554     else
2555         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2556 If you meant to cross compile, use \`--host'.
2557 See \`config.log' for more details." >&5
2558 echo "$as_me: error: cannot run C++ compiled programs.
2559 If you meant to cross compile, use \`--host'.
2560 See \`config.log' for more details." >&2;}
2561    { (exit 1); exit 1; }; }
2562     fi
2563   fi
2564 fi
2565 echo "$as_me:$LINENO: result: yes" >&5
2566 echo "${ECHO_T}yes" >&6
2567
2568 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2569 ac_clean_files=$ac_clean_files_save
2570 # Check the compiler produces executables we can run.  If not, either
2571 # the compiler is broken, or we cross compile.
2572 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2573 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2574 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2575 echo "${ECHO_T}$cross_compiling" >&6
2576
2577 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2578 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2580   (eval $ac_link) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }; then
2584   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2585 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2586 # work properly (i.e., refer to `conftest.exe'), while it won't with
2587 # `rm'.
2588 for ac_file in conftest.exe conftest conftest.*; do
2589   test -f "$ac_file" || continue
2590   case $ac_file in
2591     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2592     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2593           export ac_cv_exeext
2594           break;;
2595     * ) break;;
2596   esac
2597 done
2598 else
2599   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2600 See \`config.log' for more details." >&5
2601 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2602 See \`config.log' for more details." >&2;}
2603    { (exit 1); exit 1; }; }
2604 fi
2605
2606 rm -f conftest$ac_cv_exeext
2607 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2608 echo "${ECHO_T}$ac_cv_exeext" >&6
2609
2610 rm -f conftest.$ac_ext
2611 EXEEXT=$ac_cv_exeext
2612 ac_exeext=$EXEEXT
2613 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2614 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2615 if test "${ac_cv_objext+set}" = set; then
2616   echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618   cat >conftest.$ac_ext <<_ACEOF
2619 #line $LINENO "configure"
2620 /* confdefs.h.  */
2621 _ACEOF
2622 cat confdefs.h >>conftest.$ac_ext
2623 cat >>conftest.$ac_ext <<_ACEOF
2624 /* end confdefs.h.  */
2625
2626 int
2627 main ()
2628 {
2629
2630   ;
2631   return 0;
2632 }
2633 _ACEOF
2634 rm -f conftest.o conftest.obj
2635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2636   (eval $ac_compile) 2>&5
2637   ac_status=$?
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); }; then
2640   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2641   case $ac_file in
2642     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2643     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2644        break;;
2645   esac
2646 done
2647 else
2648   echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2650
2651 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2652 See \`config.log' for more details." >&5
2653 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2654 See \`config.log' for more details." >&2;}
2655    { (exit 1); exit 1; }; }
2656 fi
2657
2658 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2659 fi
2660 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2661 echo "${ECHO_T}$ac_cv_objext" >&6
2662 OBJEXT=$ac_cv_objext
2663 ac_objext=$OBJEXT
2664 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2665 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2666 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2667   echo $ECHO_N "(cached) $ECHO_C" >&6
2668 else
2669   cat >conftest.$ac_ext <<_ACEOF
2670 #line $LINENO "configure"
2671 /* confdefs.h.  */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h.  */
2676
2677 int
2678 main ()
2679 {
2680 #ifndef __GNUC__
2681        choke me
2682 #endif
2683
2684   ;
2685   return 0;
2686 }
2687 _ACEOF
2688 rm -f conftest.$ac_objext
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690   (eval $ac_compile) 2>&5
2691   ac_status=$?
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); } &&
2694          { ac_try='test -s conftest.$ac_objext'
2695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696   (eval $ac_try) 2>&5
2697   ac_status=$?
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); }; }; then
2700   ac_compiler_gnu=yes
2701 else
2702   echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2704
2705 ac_compiler_gnu=no
2706 fi
2707 rm -f conftest.$ac_objext conftest.$ac_ext
2708 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2709
2710 fi
2711 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2712 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2713 GXX=`test $ac_compiler_gnu = yes && echo yes`
2714 ac_test_CXXFLAGS=${CXXFLAGS+set}
2715 ac_save_CXXFLAGS=$CXXFLAGS
2716 CXXFLAGS="-g"
2717 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2718 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2719 if test "${ac_cv_prog_cxx_g+set}" = set; then
2720   echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722   cat >conftest.$ac_ext <<_ACEOF
2723 #line $LINENO "configure"
2724 /* confdefs.h.  */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h.  */
2729
2730 int
2731 main ()
2732 {
2733
2734   ;
2735   return 0;
2736 }
2737 _ACEOF
2738 rm -f conftest.$ac_objext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740   (eval $ac_compile) 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); } &&
2744          { ac_try='test -s conftest.$ac_objext'
2745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746   (eval $ac_try) 2>&5
2747   ac_status=$?
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); }; }; then
2750   ac_cv_prog_cxx_g=yes
2751 else
2752   echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.$ac_ext >&5
2754
2755 ac_cv_prog_cxx_g=no
2756 fi
2757 rm -f conftest.$ac_objext conftest.$ac_ext
2758 fi
2759 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2760 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2761 if test "$ac_test_CXXFLAGS" = set; then
2762   CXXFLAGS=$ac_save_CXXFLAGS
2763 elif test $ac_cv_prog_cxx_g = yes; then
2764   if test "$GXX" = yes; then
2765     CXXFLAGS="-g -O2"
2766   else
2767     CXXFLAGS="-g"
2768   fi
2769 else
2770   if test "$GXX" = yes; then
2771     CXXFLAGS="-O2"
2772   else
2773     CXXFLAGS=
2774   fi
2775 fi
2776 for ac_declaration in \
2777    ''\
2778    '#include <stdlib.h>' \
2779    'extern "C" void std::exit (int) throw (); using std::exit;' \
2780    'extern "C" void std::exit (int); using std::exit;' \
2781    'extern "C" void exit (int) throw ();' \
2782    'extern "C" void exit (int);' \
2783    'void exit (int);'
2784 do
2785   cat >conftest.$ac_ext <<_ACEOF
2786 #line $LINENO "configure"
2787 /* confdefs.h.  */
2788 _ACEOF
2789 cat confdefs.h >>conftest.$ac_ext
2790 cat >>conftest.$ac_ext <<_ACEOF
2791 /* end confdefs.h.  */
2792 #include <stdlib.h>
2793 $ac_declaration
2794 int
2795 main ()
2796 {
2797 exit (42);
2798   ;
2799   return 0;
2800 }
2801 _ACEOF
2802 rm -f conftest.$ac_objext
2803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804   (eval $ac_compile) 2>&5
2805   ac_status=$?
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); } &&
2808          { ac_try='test -s conftest.$ac_objext'
2809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810   (eval $ac_try) 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); }; }; then
2814   :
2815 else
2816   echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2818
2819 continue
2820 fi
2821 rm -f conftest.$ac_objext conftest.$ac_ext
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 $ac_declaration
2830 int
2831 main ()
2832 {
2833 exit (42);
2834   ;
2835   return 0;
2836 }
2837 _ACEOF
2838 rm -f conftest.$ac_objext
2839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2840   (eval $ac_compile) 2>&5
2841   ac_status=$?
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } &&
2844          { ac_try='test -s conftest.$ac_objext'
2845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846   (eval $ac_try) 2>&5
2847   ac_status=$?
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); }; }; then
2850   break
2851 else
2852   echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2854
2855 fi
2856 rm -f conftest.$ac_objext conftest.$ac_ext
2857 done
2858 rm -f conftest*
2859 if test -n "$ac_declaration"; then
2860   echo '#ifdef __cplusplus' >>confdefs.h
2861   echo $ac_declaration      >>confdefs.h
2862   echo '#endif'             >>confdefs.h
2863 fi
2864
2865 ac_ext=c
2866 ac_cpp='$CPP $CPPFLAGS'
2867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870
2871 ac_ext=c
2872 ac_cpp='$CPP $CPPFLAGS'
2873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2876 if test -n "$ac_tool_prefix"; then
2877   for ac_prog in gcc
2878   do
2879     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2881 echo "$as_me:$LINENO: checking for $ac_word" >&5
2882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2883 if test "${ac_cv_prog_CC+set}" = set; then
2884   echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886   if test -n "$CC"; then
2887   ac_cv_prog_CC="$CC" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892   IFS=$as_save_IFS
2893   test -z "$as_dir" && as_dir=.
2894   for ac_exec_ext in '' $ac_executable_extensions; do
2895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2896     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2898     break 2
2899   fi
2900 done
2901 done
2902
2903 fi
2904 fi
2905 CC=$ac_cv_prog_CC
2906 if test -n "$CC"; then
2907   echo "$as_me:$LINENO: result: $CC" >&5
2908 echo "${ECHO_T}$CC" >&6
2909 else
2910   echo "$as_me:$LINENO: result: no" >&5
2911 echo "${ECHO_T}no" >&6
2912 fi
2913
2914     test -n "$CC" && break
2915   done
2916 fi
2917 if test -z "$CC"; then
2918   ac_ct_CC=$CC
2919   for ac_prog in gcc
2920 do
2921   # Extract the first word of "$ac_prog", so it can be a program name with args.
2922 set dummy $ac_prog; ac_word=$2
2923 echo "$as_me:$LINENO: checking for $ac_word" >&5
2924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2926   echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928   if test -n "$ac_ct_CC"; then
2929   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934   IFS=$as_save_IFS
2935   test -z "$as_dir" && as_dir=.
2936   for ac_exec_ext in '' $ac_executable_extensions; do
2937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938     ac_cv_prog_ac_ct_CC="$ac_prog"
2939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940     break 2
2941   fi
2942 done
2943 done
2944
2945 fi
2946 fi
2947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2948 if test -n "$ac_ct_CC"; then
2949   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2950 echo "${ECHO_T}$ac_ct_CC" >&6
2951 else
2952   echo "$as_me:$LINENO: result: no" >&5
2953 echo "${ECHO_T}no" >&6
2954 fi
2955
2956   test -n "$ac_ct_CC" && break
2957 done
2958
2959   CC=$ac_ct_CC
2960 fi
2961
2962
2963 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2964 See \`config.log' for more details." >&5
2965 echo "$as_me: error: no acceptable C compiler found in \$PATH
2966 See \`config.log' for more details." >&2;}
2967    { (exit 1); exit 1; }; }
2968
2969 # Provide some information about the compiler.
2970 echo "$as_me:$LINENO:" \
2971      "checking for C compiler version" >&5
2972 ac_compiler=`set X $ac_compile; echo $2`
2973 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2974   (eval $ac_compiler --version </dev/null >&5) 2>&5
2975   ac_status=$?
2976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977   (exit $ac_status); }
2978 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2979   (eval $ac_compiler -v </dev/null >&5) 2>&5
2980   ac_status=$?
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); }
2983 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2984   (eval $ac_compiler -V </dev/null >&5) 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }
2988
2989 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2990 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2991 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2992   echo $ECHO_N "(cached) $ECHO_C" >&6
2993 else
2994   cat >conftest.$ac_ext <<_ACEOF
2995 #line $LINENO "configure"
2996 /* confdefs.h.  */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h.  */
3001
3002 int
3003 main ()
3004 {
3005 #ifndef __GNUC__
3006        choke me
3007 #endif
3008
3009   ;
3010   return 0;
3011 }
3012 _ACEOF
3013 rm -f conftest.$ac_objext
3014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3015   (eval $ac_compile) 2>&5
3016   ac_status=$?
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); } &&
3019          { ac_try='test -s conftest.$ac_objext'
3020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3021   (eval $ac_try) 2>&5
3022   ac_status=$?
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); }; }; then
3025   ac_compiler_gnu=yes
3026 else
3027   echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3029
3030 ac_compiler_gnu=no
3031 fi
3032 rm -f conftest.$ac_objext conftest.$ac_ext
3033 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3034
3035 fi
3036 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3037 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3038 GCC=`test $ac_compiler_gnu = yes && echo yes`
3039 ac_test_CFLAGS=${CFLAGS+set}
3040 ac_save_CFLAGS=$CFLAGS
3041 CFLAGS="-g"
3042 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3043 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3044 if test "${ac_cv_prog_cc_g+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047   cat >conftest.$ac_ext <<_ACEOF
3048 #line $LINENO "configure"
3049 /* confdefs.h.  */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h.  */
3054
3055 int
3056 main ()
3057 {
3058
3059   ;
3060   return 0;
3061 }
3062 _ACEOF
3063 rm -f conftest.$ac_objext
3064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3065   (eval $ac_compile) 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); } &&
3069          { ac_try='test -s conftest.$ac_objext'
3070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071   (eval $ac_try) 2>&5
3072   ac_status=$?
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); }; }; then
3075   ac_cv_prog_cc_g=yes
3076 else
3077   echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3079
3080 ac_cv_prog_cc_g=no
3081 fi
3082 rm -f conftest.$ac_objext conftest.$ac_ext
3083 fi
3084 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3085 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3086 if test "$ac_test_CFLAGS" = set; then
3087   CFLAGS=$ac_save_CFLAGS
3088 elif test $ac_cv_prog_cc_g = yes; then
3089   if test "$GCC" = yes; then
3090     CFLAGS="-g -O2"
3091   else
3092     CFLAGS="-g"
3093   fi
3094 else
3095   if test "$GCC" = yes; then
3096     CFLAGS="-O2"
3097   else
3098     CFLAGS=
3099   fi
3100 fi
3101 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3102 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3103 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3104   echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106   ac_cv_prog_cc_stdc=no
3107 ac_save_CC=$CC
3108 cat >conftest.$ac_ext <<_ACEOF
3109 #line $LINENO "configure"
3110 /* confdefs.h.  */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h.  */
3115 #include <stdarg.h>
3116 #include <stdio.h>
3117 #include <sys/types.h>
3118 #include <sys/stat.h>
3119 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3120 struct buf { int x; };
3121 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3122 static char *e (p, i)
3123      char **p;
3124      int i;
3125 {
3126   return p[i];
3127 }
3128 static char *f (char * (*g) (char **, int), char **p, ...)
3129 {
3130   char *s;
3131   va_list v;
3132   va_start (v,p);
3133   s = g (p, va_arg (v,int));
3134   va_end (v);
3135   return s;
3136 }
3137 int test (int i, double x);
3138 struct s1 {int (*f) (int a);};
3139 struct s2 {int (*f) (double a);};
3140 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3141 int argc;
3142 char **argv;
3143 int
3144 main ()
3145 {
3146 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3147   ;
3148   return 0;
3149 }
3150 _ACEOF
3151 # Don't try gcc -ansi; that turns off useful extensions and
3152 # breaks some systems' header files.
3153 # AIX                   -qlanglvl=ansi
3154 # Ultrix and OSF/1      -std1
3155 # HP-UX 10.20 and later -Ae
3156 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3157 # SVR4                  -Xc -D__EXTENSIONS__
3158 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3159 do
3160   CC="$ac_save_CC $ac_arg"
3161   rm -f conftest.$ac_objext
3162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3163   (eval $ac_compile) 2>&5
3164   ac_status=$?
3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); } &&
3167          { ac_try='test -s conftest.$ac_objext'
3168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169   (eval $ac_try) 2>&5
3170   ac_status=$?
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); }; }; then
3173   ac_cv_prog_cc_stdc=$ac_arg
3174 break
3175 else
3176   echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3178
3179 fi
3180 rm -f conftest.$ac_objext
3181 done
3182 rm -f conftest.$ac_ext conftest.$ac_objext
3183 CC=$ac_save_CC
3184
3185 fi
3186
3187 case "x$ac_cv_prog_cc_stdc" in
3188   x|xno)
3189     echo "$as_me:$LINENO: result: none needed" >&5
3190 echo "${ECHO_T}none needed" >&6 ;;
3191   *)
3192     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3193 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3194     CC="$CC $ac_cv_prog_cc_stdc" ;;
3195 esac
3196
3197 # Some people use a C++ compiler to compile C.  Since we use `exit',
3198 # in C++ we need to declare it.  In case someone uses the same compiler
3199 # for both compiling C and C++ we need to have the C++ compiler decide
3200 # the declaration of exit, since it's the most demanding environment.
3201 cat >conftest.$ac_ext <<_ACEOF
3202 #ifndef __cplusplus
3203   choke me
3204 #endif
3205 _ACEOF
3206 rm -f conftest.$ac_objext
3207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3208   (eval $ac_compile) 2>&5
3209   ac_status=$?
3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); } &&
3212          { ac_try='test -s conftest.$ac_objext'
3213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214   (eval $ac_try) 2>&5
3215   ac_status=$?
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }; }; then
3218   for ac_declaration in \
3219    ''\
3220    '#include <stdlib.h>' \
3221    'extern "C" void std::exit (int) throw (); using std::exit;' \
3222    'extern "C" void std::exit (int); using std::exit;' \
3223    'extern "C" void exit (int) throw ();' \
3224    'extern "C" void exit (int);' \
3225    'void exit (int);'
3226 do
3227   cat >conftest.$ac_ext <<_ACEOF
3228 #line $LINENO "configure"
3229 /* confdefs.h.  */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h.  */
3234 #include <stdlib.h>
3235 $ac_declaration
3236 int
3237 main ()
3238 {
3239 exit (42);
3240   ;
3241   return 0;
3242 }
3243 _ACEOF
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246   (eval $ac_compile) 2>&5
3247   ac_status=$?
3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); } &&
3250          { ac_try='test -s conftest.$ac_objext'
3251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252   (eval $ac_try) 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); }; }; then
3256   :
3257 else
3258   echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261 continue
3262 fi
3263 rm -f conftest.$ac_objext conftest.$ac_ext
3264   cat >conftest.$ac_ext <<_ACEOF
3265 #line $LINENO "configure"
3266 /* confdefs.h.  */
3267 _ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h.  */
3271 $ac_declaration
3272 int
3273 main ()
3274 {
3275 exit (42);
3276   ;
3277   return 0;
3278 }
3279 _ACEOF
3280 rm -f conftest.$ac_objext
3281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3282   (eval $ac_compile) 2>&5
3283   ac_status=$?
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); } &&
3286          { ac_try='test -s conftest.$ac_objext'
3287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288   (eval $ac_try) 2>&5
3289   ac_status=$?
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); }; }; then
3292   break
3293 else
3294   echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3296
3297 fi
3298 rm -f conftest.$ac_objext conftest.$ac_ext
3299 done
3300 rm -f conftest*
3301 if test -n "$ac_declaration"; then
3302   echo '#ifdef __cplusplus' >>confdefs.h
3303   echo $ac_declaration      >>confdefs.h
3304   echo '#endif'             >>confdefs.h
3305 fi
3306
3307 else
3308   echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 fi
3312 rm -f conftest.$ac_objext conftest.$ac_ext
3313 ac_ext=c
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318
3319 ac_ext=c
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3325 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3326 # On Suns, sometimes $CPP names a directory.
3327 if test -n "$CPP" && test -d "$CPP"; then
3328   CPP=
3329 fi
3330 if test -z "$CPP"; then
3331   if test "${ac_cv_prog_CPP+set}" = set; then
3332   echo $ECHO_N "(cached) $ECHO_C" >&6
3333 else
3334       # Double quotes because CPP needs to be expanded
3335     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3336     do
3337       ac_preproc_ok=false
3338 for ac_c_preproc_warn_flag in '' yes
3339 do
3340   # Use a header file that comes with gcc, so configuring glibc
3341   # with a fresh cross-compiler works.
3342   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3343   # <limits.h> exists even on freestanding compilers.
3344   # On the NeXT, cc -E runs the code through the compiler's parser,
3345   # not just through cpp. "Syntax error" is here to catch this case.
3346   cat >conftest.$ac_ext <<_ACEOF
3347 #line $LINENO "configure"
3348 /* confdefs.h.  */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h.  */
3353 #ifdef __STDC__
3354 # include <limits.h>
3355 #else
3356 # include <assert.h>
3357 #endif
3358                      Syntax error
3359 _ACEOF
3360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3362   ac_status=$?
3363   grep -v '^ *+' conftest.er1 >conftest.err
3364   rm -f conftest.er1
3365   cat conftest.err >&5
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); } >/dev/null; then
3368   if test -s conftest.err; then
3369     ac_cpp_err=$ac_c_preproc_warn_flag
3370   else
3371     ac_cpp_err=
3372   fi
3373 else
3374   ac_cpp_err=yes
3375 fi
3376 if test -z "$ac_cpp_err"; then
3377   :
3378 else
3379   echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382   # Broken: fails on valid input.
3383 continue
3384 fi
3385 rm -f conftest.err conftest.$ac_ext
3386
3387   # OK, works on sane cases.  Now check whether non-existent headers
3388   # can be detected and how.
3389   cat >conftest.$ac_ext <<_ACEOF
3390 #line $LINENO "configure"
3391 /* confdefs.h.  */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h.  */
3396 #include <ac_nonexistent.h>
3397 _ACEOF
3398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3399   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3400   ac_status=$?
3401   grep -v '^ *+' conftest.er1 >conftest.err
3402   rm -f conftest.er1
3403   cat conftest.err >&5
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); } >/dev/null; then
3406   if test -s conftest.err; then
3407     ac_cpp_err=$ac_c_preproc_warn_flag
3408   else
3409     ac_cpp_err=
3410   fi
3411 else
3412   ac_cpp_err=yes
3413 fi
3414 if test -z "$ac_cpp_err"; then
3415   # Broken: success on invalid input.
3416 continue
3417 else
3418   echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3420
3421   # Passes both tests.
3422 ac_preproc_ok=:
3423 break
3424 fi
3425 rm -f conftest.err conftest.$ac_ext
3426
3427 done
3428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3429 rm -f conftest.err conftest.$ac_ext
3430 if $ac_preproc_ok; then
3431   break
3432 fi
3433
3434     done
3435     ac_cv_prog_CPP=$CPP
3436
3437 fi
3438   CPP=$ac_cv_prog_CPP
3439 else
3440   ac_cv_prog_CPP=$CPP
3441 fi
3442 echo "$as_me:$LINENO: result: $CPP" >&5
3443 echo "${ECHO_T}$CPP" >&6
3444 ac_preproc_ok=false
3445 for ac_c_preproc_warn_flag in '' yes
3446 do
3447   # Use a header file that comes with gcc, so configuring glibc
3448   # with a fresh cross-compiler works.
3449   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3450   # <limits.h> exists even on freestanding compilers.
3451   # On the NeXT, cc -E runs the code through the compiler's parser,
3452   # not just through cpp. "Syntax error" is here to catch this case.
3453   cat >conftest.$ac_ext <<_ACEOF
3454 #line $LINENO "configure"
3455 /* confdefs.h.  */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h.  */
3460 #ifdef __STDC__
3461 # include <limits.h>
3462 #else
3463 # include <assert.h>
3464 #endif
3465                      Syntax error
3466 _ACEOF
3467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3468   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3469   ac_status=$?
3470   grep -v '^ *+' conftest.er1 >conftest.err
3471   rm -f conftest.er1
3472   cat conftest.err >&5
3473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474   (exit $ac_status); } >/dev/null; then
3475   if test -s conftest.err; then
3476     ac_cpp_err=$ac_c_preproc_warn_flag
3477   else
3478     ac_cpp_err=
3479   fi
3480 else
3481   ac_cpp_err=yes
3482 fi
3483 if test -z "$ac_cpp_err"; then
3484   :
3485 else
3486   echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489   # Broken: fails on valid input.
3490 continue
3491 fi
3492 rm -f conftest.err conftest.$ac_ext
3493
3494   # OK, works on sane cases.  Now check whether non-existent headers
3495   # can be detected and how.
3496   cat >conftest.$ac_ext <<_ACEOF
3497 #line $LINENO "configure"
3498 /* confdefs.h.  */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h.  */
3503 #include <ac_nonexistent.h>
3504 _ACEOF
3505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3506   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3507   ac_status=$?
3508   grep -v '^ *+' conftest.er1 >conftest.err
3509   rm -f conftest.er1
3510   cat conftest.err >&5
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); } >/dev/null; then
3513   if test -s conftest.err; then
3514     ac_cpp_err=$ac_c_preproc_warn_flag
3515   else
3516     ac_cpp_err=
3517   fi
3518 else
3519   ac_cpp_err=yes
3520 fi
3521 if test -z "$ac_cpp_err"; then
3522   # Broken: success on invalid input.
3523 continue
3524 else
3525   echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3527
3528   # Passes both tests.
3529 ac_preproc_ok=:
3530 break
3531 fi
3532 rm -f conftest.err conftest.$ac_ext
3533
3534 done
3535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3536 rm -f conftest.err conftest.$ac_ext
3537 if $ac_preproc_ok; then
3538   :
3539 else
3540   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3541 See \`config.log' for more details." >&5
3542 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3543 See \`config.log' for more details." >&2;}
3544    { (exit 1); exit 1; }; }
3545 fi
3546
3547 ac_ext=c
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552
3553
3554 if test "$GCC" != "yes"
3555 then
3556         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3557 echo "$as_me: error: gcc required but not found" >&2;}
3558    { (exit 1); exit 1; }; }
3559 fi
3560
3561 if test "$GXX" != "yes"
3562 then
3563         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3564 echo "$as_me: error: g++ required but not found" >&2;}
3565    { (exit 1); exit 1; }; }
3566 fi
3567
3568 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3569 if test "$gccmajor" -lt "3"
3570 then
3571         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3572 echo "$as_me: error: gcc 3.x required" >&2;}
3573    { (exit 1); exit 1; }; }
3574 fi
3575
3576  echo "$as_me:$LINENO: checking for GNU make" >&5
3577 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3578 if test "${_cv_gnu_make_command+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   _cv_gnu_make_command='' ;
3582                 for a in "$MAKE" make gmake gnumake ; do
3583                         if test -z "$a" ; then continue ; fi ;
3584                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3585                                 _cv_gnu_make_command=$a ;
3586                                 break;
3587                         fi
3588                 done ;
3589
3590 fi
3591 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3592 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3593         if test  "x$_cv_gnu_make_command" != "x"  ; then
3594                 ifGNUmake='' ;
3595         else
3596                 ifGNUmake='#' ;
3597                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3598 echo "${ECHO_T}\"Not found\"" >&6;
3599         fi
3600
3601
3602 if test -z "$_cv_gnu_make_command"
3603 then
3604         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3605 echo "$as_me: error: GNU Make required but not found" >&2;}
3606    { (exit 1); exit 1; }; }
3607 fi
3608
3609
3610 echo "$as_me:$LINENO: checking " >&5
3611 echo $ECHO_N "checking ... $ECHO_C" >&6
3612 if test "${ac_cv_has_flex+set}" = set; then
3613   echo $ECHO_N "(cached) $ECHO_C" >&6
3614 else
3615   for ac_prog in flex lex
3616 do
3617   # Extract the first word of "$ac_prog", so it can be a program name with args.
3618 set dummy $ac_prog; ac_word=$2
3619 echo "$as_me:$LINENO: checking for $ac_word" >&5
3620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3621 if test "${ac_cv_prog_LEX+set}" = set; then
3622   echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624   if test -n "$LEX"; then
3625   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3626 else
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3629 do
3630   IFS=$as_save_IFS
3631   test -z "$as_dir" && as_dir=.
3632   for ac_exec_ext in '' $ac_executable_extensions; do
3633   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634     ac_cv_prog_LEX="$ac_prog"
3635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3636     break 2
3637   fi
3638 done
3639 done
3640
3641 fi
3642 fi
3643 LEX=$ac_cv_prog_LEX
3644 if test -n "$LEX"; then
3645   echo "$as_me:$LINENO: result: $LEX" >&5
3646 echo "${ECHO_T}$LEX" >&6
3647 else
3648   echo "$as_me:$LINENO: result: no" >&5
3649 echo "${ECHO_T}no" >&6
3650 fi
3651
3652   test -n "$LEX" && break
3653 done
3654 test -n "$LEX" || LEX=":"
3655
3656 if test -z "$LEXLIB"
3657 then
3658   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3659 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3660 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   ac_check_lib_save_LIBS=$LIBS
3664 LIBS="-lfl  $LIBS"
3665 cat >conftest.$ac_ext <<_ACEOF
3666 #line $LINENO "configure"
3667 /* confdefs.h.  */
3668 _ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h.  */
3672
3673 /* Override any gcc2 internal prototype to avoid an error.  */
3674 #ifdef __cplusplus
3675 extern "C"
3676 #endif
3677 /* We use char because int might match the return type of a gcc2
3678    builtin and then its argument prototype would still apply.  */
3679 char yywrap ();
3680 int
3681 main ()
3682 {
3683 yywrap ();
3684   ;
3685   return 0;
3686 }
3687 _ACEOF
3688 rm -f conftest.$ac_objext conftest$ac_exeext
3689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3690   (eval $ac_link) 2>&5
3691   ac_status=$?
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); } &&
3694          { ac_try='test -s conftest$ac_exeext'
3695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696   (eval $ac_try) 2>&5
3697   ac_status=$?
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); }; }; then
3700   ac_cv_lib_fl_yywrap=yes
3701 else
3702   echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705 ac_cv_lib_fl_yywrap=no
3706 fi
3707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3708 LIBS=$ac_check_lib_save_LIBS
3709 fi
3710 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3711 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3712 if test $ac_cv_lib_fl_yywrap = yes; then
3713   LEXLIB="-lfl"
3714 else
3715   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3716 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3717 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3718   echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720   ac_check_lib_save_LIBS=$LIBS
3721 LIBS="-ll  $LIBS"
3722 cat >conftest.$ac_ext <<_ACEOF
3723 #line $LINENO "configure"
3724 /* confdefs.h.  */
3725 _ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h.  */
3729
3730 /* Override any gcc2 internal prototype to avoid an error.  */
3731 #ifdef __cplusplus
3732 extern "C"
3733 #endif
3734 /* We use char because int might match the return type of a gcc2
3735    builtin and then its argument prototype would still apply.  */
3736 char yywrap ();
3737 int
3738 main ()
3739 {
3740 yywrap ();
3741   ;
3742   return 0;
3743 }
3744 _ACEOF
3745 rm -f conftest.$ac_objext conftest$ac_exeext
3746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3747   (eval $ac_link) 2>&5
3748   ac_status=$?
3749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750   (exit $ac_status); } &&
3751          { ac_try='test -s conftest$ac_exeext'
3752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753   (eval $ac_try) 2>&5
3754   ac_status=$?
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); }; }; then
3757   ac_cv_lib_l_yywrap=yes
3758 else
3759   echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3761
3762 ac_cv_lib_l_yywrap=no
3763 fi
3764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3765 LIBS=$ac_check_lib_save_LIBS
3766 fi
3767 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3768 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3769 if test $ac_cv_lib_l_yywrap = yes; then
3770   LEXLIB="-ll"
3771 fi
3772
3773 fi
3774
3775 fi
3776
3777 if test "x$LEX" != "x:"; then
3778   echo "$as_me:$LINENO: checking lex output file root" >&5
3779 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3780 if test "${ac_cv_prog_lex_root+set}" = set; then
3781   echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783   # The minimal lex program is just a single line: %%.  But some broken lexes
3784 # (Solaris, I think it was) want two %% lines, so accommodate them.
3785 cat >conftest.l <<_ACEOF
3786 %%
3787 %%
3788 _ACEOF
3789 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3790   (eval $LEX conftest.l) 2>&5
3791   ac_status=$?
3792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793   (exit $ac_status); }
3794 if test -f lex.yy.c; then
3795   ac_cv_prog_lex_root=lex.yy
3796 elif test -f lexyy.c; then
3797   ac_cv_prog_lex_root=lexyy
3798 else
3799   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3800 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3801    { (exit 1); exit 1; }; }
3802 fi
3803 fi
3804 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3805 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3806 rm -f conftest.l
3807 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3808
3809 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3810 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3811 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3812   echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814   # POSIX says lex can declare yytext either as a pointer or an array; the
3815 # default is implementation-dependent. Figure out which it is, since
3816 # not all implementations provide the %pointer and %array declarations.
3817 ac_cv_prog_lex_yytext_pointer=no
3818 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3819 ac_save_LIBS=$LIBS
3820 LIBS="$LIBS $LEXLIB"
3821 cat >conftest.$ac_ext <<_ACEOF
3822 `cat $LEX_OUTPUT_ROOT.c`
3823 _ACEOF
3824 rm -f conftest.$ac_objext conftest$ac_exeext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3826   (eval $ac_link) 2>&5
3827   ac_status=$?
3828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829   (exit $ac_status); } &&
3830          { ac_try='test -s conftest$ac_exeext'
3831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832   (eval $ac_try) 2>&5
3833   ac_status=$?
3834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835   (exit $ac_status); }; }; then
3836   ac_cv_prog_lex_yytext_pointer=yes
3837 else
3838   echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3840
3841 fi
3842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3843 LIBS=$ac_save_LIBS
3844 rm -f "${LEX_OUTPUT_ROOT}.c"
3845
3846 fi
3847 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3848 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3849 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3850
3851 cat >>confdefs.h <<\_ACEOF
3852 #define YYTEXT_POINTER 1
3853 _ACEOF
3854
3855 fi
3856
3857 fi
3858
3859 fi
3860 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3861 echo "${ECHO_T}$ac_cv_has_flex" >&6
3862 if test "$LEX" != "flex"; then
3863   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3864 echo "$as_me: error: flex not found but required" >&2;}
3865    { (exit 1); exit 1; }; }
3866 fi
3867
3868 echo "$as_me:$LINENO: checking " >&5
3869 echo $ECHO_N "checking ... $ECHO_C" >&6
3870 if test "${ac_cv_has_bison+set}" = set; then
3871   echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873   for ac_prog in 'bison -y' byacc
3874 do
3875   # Extract the first word of "$ac_prog", so it can be a program name with args.
3876 set dummy $ac_prog; ac_word=$2
3877 echo "$as_me:$LINENO: checking for $ac_word" >&5
3878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3879 if test "${ac_cv_prog_YACC+set}" = set; then
3880   echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882   if test -n "$YACC"; then
3883   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3884 else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3887 do
3888   IFS=$as_save_IFS
3889   test -z "$as_dir" && as_dir=.
3890   for ac_exec_ext in '' $ac_executable_extensions; do
3891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3892     ac_cv_prog_YACC="$ac_prog"
3893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3894     break 2
3895   fi
3896 done
3897 done
3898
3899 fi
3900 fi
3901 YACC=$ac_cv_prog_YACC
3902 if test -n "$YACC"; then
3903   echo "$as_me:$LINENO: result: $YACC" >&5
3904 echo "${ECHO_T}$YACC" >&6
3905 else
3906   echo "$as_me:$LINENO: result: no" >&5
3907 echo "${ECHO_T}no" >&6
3908 fi
3909
3910   test -n "$YACC" && break
3911 done
3912 test -n "$YACC" || YACC="yacc"
3913
3914
3915 fi
3916 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3917 echo "${ECHO_T}$ac_cv_has_bison" >&6
3918 if test "$YACC" != "bison -y"; then
3919   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3920 echo "$as_me: error: bison not found but required" >&2;}
3921    { (exit 1); exit 1; }; }
3922 else
3923   YACC=bison
3924
3925 fi
3926
3927
3928 # Check whether --enable-shared or --disable-shared was given.
3929 if test "${enable_shared+set}" = set; then
3930   enableval="$enable_shared"
3931   p=${PACKAGE-default}
3932     case $enableval in
3933     yes) enable_shared=yes ;;
3934     no) enable_shared=no ;;
3935     *)
3936       enable_shared=no
3937       # Look at the argument we got.  We use all the common list separators.
3938       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3939       for pkg in $enableval; do
3940         IFS="$lt_save_ifs"
3941         if test "X$pkg" = "X$p"; then
3942           enable_shared=yes
3943         fi
3944       done
3945       IFS="$lt_save_ifs"
3946       ;;
3947     esac
3948 else
3949   enable_shared=yes
3950 fi;
3951
3952 # Check whether --enable-static or --disable-static was given.
3953 if test "${enable_static+set}" = set; then
3954   enableval="$enable_static"
3955   p=${PACKAGE-default}
3956     case $enableval in
3957     yes) enable_static=yes ;;
3958     no) enable_static=no ;;
3959     *)
3960      enable_static=no
3961       # Look at the argument we got.  We use all the common list separators.
3962       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3963       for pkg in $enableval; do
3964         IFS="$lt_save_ifs"
3965         if test "X$pkg" = "X$p"; then
3966           enable_static=yes
3967         fi
3968       done
3969       IFS="$lt_save_ifs"
3970       ;;
3971     esac
3972 else
3973   enable_static=yes
3974 fi;
3975
3976 # Check whether --enable-fast-install or --disable-fast-install was given.
3977 if test "${enable_fast_install+set}" = set; then
3978   enableval="$enable_fast_install"
3979   p=${PACKAGE-default}
3980     case $enableval in
3981     yes) enable_fast_install=yes ;;
3982     no) enable_fast_install=no ;;
3983     *)
3984       enable_fast_install=no
3985       # Look at the argument we got.  We use all the common list separators.
3986       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3987       for pkg in $enableval; do
3988         IFS="$lt_save_ifs"
3989         if test "X$pkg" = "X$p"; then
3990           enable_fast_install=yes
3991         fi
3992       done
3993       IFS="$lt_save_ifs"
3994       ;;
3995     esac
3996 else
3997   enable_fast_install=yes
3998 fi;
3999
4000 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4001 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4002 if test "${lt_cv_path_SED+set}" = set; then
4003   echo $ECHO_N "(cached) $ECHO_C" >&6
4004 else
4005   # Loop through the user's path and test for sed and gsed.
4006 # Then use that list of sed's as ones to test for truncation.
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4009 do
4010   IFS=$as_save_IFS
4011   test -z "$as_dir" && as_dir=.
4012   for lt_ac_prog in sed gsed; do
4013     for ac_exec_ext in '' $ac_executable_extensions; do
4014       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4015         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4016       fi
4017     done
4018   done
4019 done
4020 lt_ac_max=0
4021 lt_ac_count=0
4022 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4023 # along with /bin/sed that truncates output.
4024 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4025   test ! -f $lt_ac_sed && break
4026   cat /dev/null > conftest.in
4027   lt_ac_count=0
4028   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4029   # Check for GNU sed and select it if it is found.
4030   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4031     lt_cv_path_SED=$lt_ac_sed
4032     break
4033   fi
4034   while true; do
4035     cat conftest.in conftest.in >conftest.tmp
4036     mv conftest.tmp conftest.in
4037     cp conftest.in conftest.nl
4038     echo >>conftest.nl
4039     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4040     cmp -s conftest.out conftest.nl || break
4041     # 10000 chars as input seems more than enough
4042     test $lt_ac_count -gt 10 && break
4043     lt_ac_count=`expr $lt_ac_count + 1`
4044     if test $lt_ac_count -gt $lt_ac_max; then
4045       lt_ac_max=$lt_ac_count
4046       lt_cv_path_SED=$lt_ac_sed
4047     fi
4048   done
4049 done
4050 SED=$lt_cv_path_SED
4051
4052 fi
4053
4054 echo "$as_me:$LINENO: result: $SED" >&5
4055 echo "${ECHO_T}$SED" >&6
4056
4057 echo "$as_me:$LINENO: checking for egrep" >&5
4058 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4059 if test "${ac_cv_prog_egrep+set}" = set; then
4060   echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4063     then ac_cv_prog_egrep='grep -E'
4064     else ac_cv_prog_egrep='egrep'
4065     fi
4066 fi
4067 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4068 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4069  EGREP=$ac_cv_prog_egrep
4070
4071
4072
4073 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4074 if test "${with_gnu_ld+set}" = set; then
4075   withval="$with_gnu_ld"
4076   test "$withval" = no || with_gnu_ld=yes
4077 else
4078   with_gnu_ld=no
4079 fi;
4080 ac_prog=ld
4081 if test "$GCC" = yes; then
4082   # Check if gcc -print-prog-name=ld gives a path.
4083   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4084 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4085   case $host in
4086   *-*-mingw*)
4087     # gcc leaves a trailing carriage return which upsets mingw
4088     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4089   *)
4090     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4091   esac
4092   case $ac_prog in
4093     # Accept absolute paths.
4094     [\\/]* | ?:[\\/]*)
4095       re_direlt='/[^/][^/]*/\.\./'
4096       # Canonicalize the path of ld
4097       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4098       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4099         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4100       done
4101       test -z "$LD" && LD="$ac_prog"
4102       ;;
4103   "")
4104     # If it fails, then pretend we aren't using GCC.
4105     ac_prog=ld
4106     ;;
4107   *)
4108     # If it is relative, then search for the first ld in PATH.
4109     with_gnu_ld=unknown
4110     ;;
4111   esac
4112 elif test "$with_gnu_ld" = yes; then
4113   echo "$as_me:$LINENO: checking for GNU ld" >&5
4114 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4115 else
4116   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4117 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4118 fi
4119 if test "${lt_cv_path_LD+set}" = set; then
4120   echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122   if test -z "$LD"; then
4123   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4124   for ac_dir in $PATH; do
4125     IFS="$lt_save_ifs"
4126     test -z "$ac_dir" && ac_dir=.
4127     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4128       lt_cv_path_LD="$ac_dir/$ac_prog"
4129       # Check to see if the program is GNU ld.  I'd rather use --version,
4130       # but apparently some GNU ld's only accept -v.
4131       # Break only if it was the GNU/non-GNU ld that we prefer.
4132       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4133       *GNU* | *'with BFD'*)
4134         test "$with_gnu_ld" != no && break
4135         ;;
4136       *)
4137         test "$with_gnu_ld" != yes && break
4138         ;;
4139       esac
4140     fi
4141   done
4142   IFS="$lt_save_ifs"
4143 else
4144   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4145 fi
4146 fi
4147
4148 LD="$lt_cv_path_LD"
4149 if test -n "$LD"; then
4150   echo "$as_me:$LINENO: result: $LD" >&5
4151 echo "${ECHO_T}$LD" >&6
4152 else
4153   echo "$as_me:$LINENO: result: no" >&5
4154 echo "${ECHO_T}no" >&6
4155 fi
4156 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4157 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4158    { (exit 1); exit 1; }; }
4159 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4160 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4161 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4162   echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4165 case `"$LD" -v 2>&1 </dev/null` in
4166 *GNU* | *'with BFD'*)
4167   lt_cv_prog_gnu_ld=yes
4168   ;;
4169 *)
4170   lt_cv_prog_gnu_ld=no
4171   ;;
4172 esac
4173 fi
4174 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4175 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4176 with_gnu_ld=$lt_cv_prog_gnu_ld
4177
4178
4179 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4180 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4181 if test "${lt_cv_ld_reload_flag+set}" = set; then
4182   echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184   lt_cv_ld_reload_flag='-r'
4185 fi
4186 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4187 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4188 reload_flag=$lt_cv_ld_reload_flag
4189 case $reload_flag in
4190 "" | " "*) ;;
4191 *) reload_flag=" $reload_flag" ;;
4192 esac
4193 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4194
4195 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4196 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4197 if test "${lt_cv_path_NM+set}" = set; then
4198   echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200   if test -n "$NM"; then
4201   # Let the user override the test.
4202   lt_cv_path_NM="$NM"
4203 else
4204   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4205   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4206     IFS="$lt_save_ifs"
4207     test -z "$ac_dir" && ac_dir=.
4208     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4209     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4210       # Check to see if the nm accepts a BSD-compat flag.
4211       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4212       #   nm: unknown option "B" ignored
4213       # Tru64's nm complains that /dev/null is an invalid object file
4214       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4215       */dev/null* | *'Invalid file or object type'*)
4216         lt_cv_path_NM="$tmp_nm -B"
4217         break
4218         ;;
4219       *)
4220         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4221         */dev/null*)
4222           lt_cv_path_NM="$tmp_nm -p"
4223           break
4224           ;;
4225         *)
4226           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4227           continue # so that we can try to find one that supports BSD flags
4228           ;;
4229         esac
4230       esac
4231     fi
4232   done
4233   IFS="$lt_save_ifs"
4234   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4235 fi
4236 fi
4237 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4238 echo "${ECHO_T}$lt_cv_path_NM" >&6
4239 NM="$lt_cv_path_NM"
4240
4241 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4242 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4243 LN_S=$as_ln_s
4244 if test "$LN_S" = "ln -s"; then
4245   echo "$as_me:$LINENO: result: yes" >&5
4246 echo "${ECHO_T}yes" >&6
4247 else
4248   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4249 echo "${ECHO_T}no, using $LN_S" >&6
4250 fi
4251
4252 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4253 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4254 if test "${lt_cv_deplibs_check_method+set}" = set; then
4255   echo $ECHO_N "(cached) $ECHO_C" >&6
4256 else
4257   lt_cv_file_magic_cmd='$MAGIC_CMD'
4258 lt_cv_file_magic_test_file=
4259 lt_cv_deplibs_check_method='unknown'
4260 # Need to set the preceding variable on all platforms that support
4261 # interlibrary dependencies.
4262 # 'none' -- dependencies not supported.
4263 # `unknown' -- same as none, but documents that we really don't know.
4264 # 'pass_all' -- all dependencies passed with no checks.
4265 # 'test_compile' -- check by making test program.
4266 # 'file_magic [[regex]]' -- check by looking for files in library path
4267 # which responds to the $file_magic_cmd with a given extended regex.
4268 # If you have `file' or equivalent on your system and you're not sure
4269 # whether `pass_all' will *always* work, you probably want this one.
4270
4271 case $host_os in
4272 aix4* | aix5*)
4273   lt_cv_deplibs_check_method=pass_all
4274   ;;
4275
4276 beos*)
4277   lt_cv_deplibs_check_method=pass_all
4278   ;;
4279
4280 bsdi4*)
4281   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4282   lt_cv_file_magic_cmd='/usr/bin/file -L'
4283   lt_cv_file_magic_test_file=/shlib/libc.so
4284   ;;
4285
4286 cygwin* | mingw* | pw32*)
4287   # win32_libid is a shell function defined in ltmain.sh
4288   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4289   lt_cv_file_magic_cmd='win32_libid'
4290   ;;
4291
4292 darwin* | rhapsody*)
4293   # this will be overwritten by pass_all, but leave it in just in case
4294   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4295   lt_cv_file_magic_cmd='/usr/bin/file -L'
4296   case "$host_os" in
4297   rhapsody* | darwin1.[012])
4298     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4299     ;;
4300   *) # Darwin 1.3 on
4301     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4302     ;;
4303   esac
4304   lt_cv_deplibs_check_method=pass_all
4305   ;;
4306
4307 freebsd*)
4308   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4309     case $host_cpu in
4310     i*86 )
4311       # Not sure whether the presence of OpenBSD here was a mistake.
4312       # Let's accept both of them until this is cleared up.
4313       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4314       lt_cv_file_magic_cmd=/usr/bin/file
4315       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4316       ;;
4317     esac
4318   else
4319     lt_cv_deplibs_check_method=pass_all
4320   fi
4321   ;;
4322
4323 gnu*)
4324   lt_cv_deplibs_check_method=pass_all
4325   ;;
4326
4327 hpux10.20* | hpux11*)
4328   lt_cv_file_magic_cmd=/usr/bin/file
4329   case "$host_cpu" in
4330   ia64*)
4331     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4332     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4333     ;;
4334   hppa*64*)
4335     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]'
4336     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4337     ;;
4338   *)
4339     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4340     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4341     ;;
4342   esac
4343   ;;
4344
4345 irix5* | irix6* | nonstopux*)
4346   case $host_os in
4347   irix5* | nonstopux*)
4348     # this will be overridden with pass_all, but let us keep it just in case
4349     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4350     ;;
4351   *)
4352     case $LD in
4353     *-32|*"-32 ") libmagic=32-bit;;
4354     *-n32|*"-n32 ") libmagic=N32;;
4355     *-64|*"-64 ") libmagic=64-bit;;
4356     *) libmagic=never-match;;
4357     esac
4358     # this will be overridden with pass_all, but let us keep it just in case
4359     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4360     ;;
4361   esac
4362   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4363   lt_cv_deplibs_check_method=pass_all
4364   ;;
4365
4366 # This must be Linux ELF.
4367 linux*)
4368   case $host_cpu in
4369   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4370     lt_cv_deplibs_check_method=pass_all ;;
4371   *)
4372     # glibc up to 2.1.1 does not perform some relocations on ARM
4373     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4374   esac
4375   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4376   ;;
4377
4378 netbsd*)
4379   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4380     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4381   else
4382     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4383   fi
4384   ;;
4385
4386 newos6*)
4387   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4388   lt_cv_file_magic_cmd=/usr/bin/file
4389   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4390   ;;
4391
4392 nto-qnx)
4393   lt_cv_deplibs_check_method=unknown
4394   ;;
4395
4396 openbsd*)
4397   lt_cv_file_magic_cmd=/usr/bin/file
4398   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4399   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4400     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4401   else
4402     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4403   fi
4404   ;;
4405
4406 osf3* | osf4* | osf5*)
4407   # this will be overridden with pass_all, but let us keep it just in case
4408   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4409   lt_cv_file_magic_test_file=/shlib/libc.so
4410   lt_cv_deplibs_check_method=pass_all
4411   ;;
4412
4413 sco3.2v5*)
4414   lt_cv_deplibs_check_method=pass_all
4415   ;;
4416
4417 solaris*)
4418   lt_cv_deplibs_check_method=pass_all
4419   lt_cv_file_magic_test_file=/lib/libc.so
4420   ;;
4421
4422 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4423   case $host_vendor in
4424   motorola)
4425     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]'
4426     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4427     ;;
4428   ncr)
4429     lt_cv_deplibs_check_method=pass_all
4430     ;;
4431   sequent)
4432     lt_cv_file_magic_cmd='/bin/file'
4433     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4434     ;;
4435   sni)
4436     lt_cv_file_magic_cmd='/bin/file'
4437     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4438     lt_cv_file_magic_test_file=/lib/libc.so
4439     ;;
4440   siemens)
4441     lt_cv_deplibs_check_method=pass_all
4442     ;;
4443   esac
4444   ;;
4445
4446 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4447   lt_cv_deplibs_check_method=pass_all
4448   ;;
4449 esac
4450
4451 fi
4452 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4453 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4454 file_magic_cmd=$lt_cv_file_magic_cmd
4455 deplibs_check_method=$lt_cv_deplibs_check_method
4456 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4457
4458
4459
4460
4461 # If no C compiler was specified, use CC.
4462 LTCC=${LTCC-"$CC"}
4463
4464 # Allow CC to be a program name with arguments.
4465 compiler=$CC
4466
4467 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4468 if test "${enable_libtool_lock+set}" = set; then
4469   enableval="$enable_libtool_lock"
4470
4471 fi;
4472 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4473
4474 # Some flags need to be propagated to the compiler or linker for good
4475 # libtool support.
4476 case $host in
4477 ia64-*-hpux*)
4478   # Find out which ABI we are using.
4479   echo 'int i;' > conftest.$ac_ext
4480   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4481   (eval $ac_compile) 2>&5
4482   ac_status=$?
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); }; then
4485     case `/usr/bin/file conftest.$ac_objext` in
4486     *ELF-32*)
4487       HPUX_IA64_MODE="32"
4488       ;;
4489     *ELF-64*)
4490       HPUX_IA64_MODE="64"
4491       ;;
4492     esac
4493   fi
4494   rm -rf conftest*
4495   ;;
4496 *-*-irix6*)
4497   # Find out which ABI we are using.
4498   echo '#line 4498 "configure"' > conftest.$ac_ext
4499   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4500   (eval $ac_compile) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }; then
4504    if test "$lt_cv_prog_gnu_ld" = yes; then
4505     case `/usr/bin/file conftest.$ac_objext` in
4506     *32-bit*)
4507       LD="${LD-ld} -melf32bsmip"
4508       ;;
4509     *N32*)
4510       LD="${LD-ld} -melf32bmipn32"
4511       ;;
4512     *64-bit*)
4513       LD="${LD-ld} -melf64bmip"
4514       ;;
4515     esac
4516    else
4517     case `/usr/bin/file conftest.$ac_objext` in
4518     *32-bit*)
4519       LD="${LD-ld} -32"
4520       ;;
4521     *N32*)
4522       LD="${LD-ld} -n32"
4523       ;;
4524     *64-bit*)
4525       LD="${LD-ld} -64"
4526       ;;
4527     esac
4528    fi
4529   fi
4530   rm -rf conftest*
4531   ;;
4532
4533 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4534   # Find out which ABI we are using.
4535   echo 'int i;' > conftest.$ac_ext
4536   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537   (eval $ac_compile) 2>&5
4538   ac_status=$?
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); }; then
4541     case "`/usr/bin/file conftest.o`" in
4542     *32-bit*)
4543       case $host in
4544         x86_64-*linux*)
4545           LD="${LD-ld} -m elf_i386"
4546           ;;
4547         ppc64-*linux*)
4548           LD="${LD-ld} -m elf32ppclinux"
4549           ;;
4550         s390x-*linux*)
4551           LD="${LD-ld} -m elf_s390"
4552           ;;
4553         sparc64-*linux*)
4554           LD="${LD-ld} -m elf32_sparc"
4555           ;;
4556       esac
4557       ;;
4558     *64-bit*)
4559       case $host in
4560         x86_64-*linux*)
4561           LD="${LD-ld} -m elf_x86_64"
4562           ;;
4563         ppc*-*linux*|powerpc*-*linux*)
4564           LD="${LD-ld} -m elf64ppc"
4565           ;;
4566         s390*-*linux*)
4567           LD="${LD-ld} -m elf64_s390"
4568           ;;
4569         sparc*-*linux*)
4570           LD="${LD-ld} -m elf64_sparc"
4571           ;;
4572       esac
4573       ;;
4574     esac
4575   fi
4576   rm -rf conftest*
4577   ;;
4578
4579 *-*-sco3.2v5*)
4580   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4581   SAVE_CFLAGS="$CFLAGS"
4582   CFLAGS="$CFLAGS -belf"
4583   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4584 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4585 if test "${lt_cv_cc_needs_belf+set}" = set; then
4586   echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588   ac_ext=c
4589 ac_cpp='$CPP $CPPFLAGS'
4590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593
4594      cat >conftest.$ac_ext <<_ACEOF
4595 #line $LINENO "configure"
4596 /* confdefs.h.  */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h.  */
4601
4602 int
4603 main ()
4604 {
4605
4606   ;
4607   return 0;
4608 }
4609 _ACEOF
4610 rm -f conftest.$ac_objext conftest$ac_exeext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4612   (eval $ac_link) 2>&5
4613   ac_status=$?
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); } &&
4616          { ac_try='test -s conftest$ac_exeext'
4617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618   (eval $ac_try) 2>&5
4619   ac_status=$?
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); }; }; then
4622   lt_cv_cc_needs_belf=yes
4623 else
4624   echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627 lt_cv_cc_needs_belf=no
4628 fi
4629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4630      ac_ext=c
4631 ac_cpp='$CPP $CPPFLAGS'
4632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4635
4636 fi
4637 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4638 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4639   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4640     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4641     CFLAGS="$SAVE_CFLAGS"
4642   fi
4643   ;;
4644
4645 esac
4646
4647 need_locks="$enable_libtool_lock"
4648
4649
4650
4651 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4652 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4653 if test "${ac_cv_header_stdc+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656   cat >conftest.$ac_ext <<_ACEOF
4657 #line $LINENO "configure"
4658 /* confdefs.h.  */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h.  */
4663 #include <stdlib.h>
4664 #include <stdarg.h>
4665 #include <string.h>
4666 #include <float.h>
4667
4668 int
4669 main ()
4670 {
4671
4672   ;
4673   return 0;
4674 }
4675 _ACEOF
4676 rm -f conftest.$ac_objext
4677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678   (eval $ac_compile) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); } &&
4682          { ac_try='test -s conftest.$ac_objext'
4683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684   (eval $ac_try) 2>&5
4685   ac_status=$?
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); }; }; then
4688   ac_cv_header_stdc=yes
4689 else
4690   echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4692
4693 ac_cv_header_stdc=no
4694 fi
4695 rm -f conftest.$ac_objext conftest.$ac_ext
4696
4697 if test $ac_cv_header_stdc = yes; then
4698   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4699   cat >conftest.$ac_ext <<_ACEOF
4700 #line $LINENO "configure"
4701 /* confdefs.h.  */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h.  */
4706 #include <string.h>
4707
4708 _ACEOF
4709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4710   $EGREP "memchr" >/dev/null 2>&1; then
4711   :
4712 else
4713   ac_cv_header_stdc=no
4714 fi
4715 rm -f conftest*
4716
4717 fi
4718
4719 if test $ac_cv_header_stdc = yes; then
4720   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4721   cat >conftest.$ac_ext <<_ACEOF
4722 #line $LINENO "configure"
4723 /* confdefs.h.  */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h.  */
4728 #include <stdlib.h>
4729
4730 _ACEOF
4731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4732   $EGREP "free" >/dev/null 2>&1; then
4733   :
4734 else
4735   ac_cv_header_stdc=no
4736 fi
4737 rm -f conftest*
4738
4739 fi
4740
4741 if test $ac_cv_header_stdc = yes; then
4742   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4743   if test "$cross_compiling" = yes; then
4744   :
4745 else
4746   cat >conftest.$ac_ext <<_ACEOF
4747 #line $LINENO "configure"
4748 /* confdefs.h.  */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h.  */
4753 #include <ctype.h>
4754 #if ((' ' & 0x0FF) == 0x020)
4755 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4756 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4757 #else
4758 # define ISLOWER(c) \
4759                    (('a' <= (c) && (c) <= 'i') \
4760                      || ('j' <= (c) && (c) <= 'r') \
4761                      || ('s' <= (c) && (c) <= 'z'))
4762 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4763 #endif
4764
4765 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4766 int
4767 main ()
4768 {
4769   int i;
4770   for (i = 0; i < 256; i++)
4771     if (XOR (islower (i), ISLOWER (i))
4772         || toupper (i) != TOUPPER (i))
4773       exit(2);
4774   exit (0);
4775 }
4776 _ACEOF
4777 rm -f conftest$ac_exeext
4778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4779   (eval $ac_link) 2>&5
4780   ac_status=$?
4781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784   (eval $ac_try) 2>&5
4785   ac_status=$?
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); }; }; then
4788   :
4789 else
4790   echo "$as_me: program exited with status $ac_status" >&5
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4793
4794 ( exit $ac_status )
4795 ac_cv_header_stdc=no
4796 fi
4797 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4798 fi
4799 fi
4800 fi
4801 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4802 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4803 if test $ac_cv_header_stdc = yes; then
4804
4805 cat >>confdefs.h <<\_ACEOF
4806 #define STDC_HEADERS 1
4807 _ACEOF
4808
4809 fi
4810
4811 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4822                   inttypes.h stdint.h unistd.h
4823 do
4824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4825 echo "$as_me:$LINENO: checking for $ac_header" >&5
4826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4828   echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830   cat >conftest.$ac_ext <<_ACEOF
4831 #line $LINENO "configure"
4832 /* confdefs.h.  */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h.  */
4837 $ac_includes_default
4838
4839 #include <$ac_header>
4840 _ACEOF
4841 rm -f conftest.$ac_objext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843   (eval $ac_compile) 2>&5
4844   ac_status=$?
4845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846   (exit $ac_status); } &&
4847          { ac_try='test -s conftest.$ac_objext'
4848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849   (eval $ac_try) 2>&5
4850   ac_status=$?
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); }; }; then
4853   eval "$as_ac_Header=yes"
4854 else
4855   echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4857
4858 eval "$as_ac_Header=no"
4859 fi
4860 rm -f conftest.$ac_objext conftest.$ac_ext
4861 fi
4862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4865   cat >>confdefs.h <<_ACEOF
4866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4867 _ACEOF
4868
4869 fi
4870
4871 done
4872
4873
4874
4875 for ac_header in dlfcn.h
4876 do
4877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4879   echo "$as_me:$LINENO: checking for $ac_header" >&5
4880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4882   echo $ECHO_N "(cached) $ECHO_C" >&6
4883 fi
4884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4886 else
4887   # Is the header compilable?
4888 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4890 cat >conftest.$ac_ext <<_ACEOF
4891 #line $LINENO "configure"
4892 /* confdefs.h.  */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h.  */
4897 $ac_includes_default
4898 #include <$ac_header>
4899 _ACEOF
4900 rm -f conftest.$ac_objext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4902   (eval $ac_compile) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); } &&
4906          { ac_try='test -s conftest.$ac_objext'
4907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908   (eval $ac_try) 2>&5
4909   ac_status=$?
4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911   (exit $ac_status); }; }; then
4912   ac_header_compiler=yes
4913 else
4914   echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4916
4917 ac_header_compiler=no
4918 fi
4919 rm -f conftest.$ac_objext conftest.$ac_ext
4920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4921 echo "${ECHO_T}$ac_header_compiler" >&6
4922
4923 # Is the header present?
4924 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4926 cat >conftest.$ac_ext <<_ACEOF
4927 #line $LINENO "configure"
4928 /* confdefs.h.  */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h.  */
4933 #include <$ac_header>
4934 _ACEOF
4935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4937   ac_status=$?
4938   grep -v '^ *+' conftest.er1 >conftest.err
4939   rm -f conftest.er1
4940   cat conftest.err >&5
4941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942   (exit $ac_status); } >/dev/null; then
4943   if test -s conftest.err; then
4944     ac_cpp_err=$ac_c_preproc_warn_flag
4945   else
4946     ac_cpp_err=
4947   fi
4948 else
4949   ac_cpp_err=yes
4950 fi
4951 if test -z "$ac_cpp_err"; then
4952   ac_header_preproc=yes
4953 else
4954   echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4956
4957   ac_header_preproc=no
4958 fi
4959 rm -f conftest.err conftest.$ac_ext
4960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4961 echo "${ECHO_T}$ac_header_preproc" >&6
4962
4963 # So?  What about this header?
4964 case $ac_header_compiler:$ac_header_preproc in
4965   yes:no )
4966     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4967 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4968     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4970     (
4971       cat <<\_ASBOX
4972 ## ------------------------------------ ##
4973 ## Report this to bug-autoconf@gnu.org. ##
4974 ## ------------------------------------ ##
4975 _ASBOX
4976     ) |
4977       sed "s/^/$as_me: WARNING:     /" >&2
4978     ;;
4979   no:yes )
4980     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4982     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4986     (
4987       cat <<\_ASBOX
4988 ## ------------------------------------ ##
4989 ## Report this to bug-autoconf@gnu.org. ##
4990 ## ------------------------------------ ##
4991 _ASBOX
4992     ) |
4993       sed "s/^/$as_me: WARNING:     /" >&2
4994     ;;
4995 esac
4996 echo "$as_me:$LINENO: checking for $ac_header" >&5
4997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4999   echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001   eval "$as_ac_Header=$ac_header_preproc"
5002 fi
5003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5005
5006 fi
5007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5008   cat >>confdefs.h <<_ACEOF
5009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5010 _ACEOF
5011
5012 fi
5013
5014 done
5015
5016 ac_ext=cc
5017 ac_cpp='$CXXCPP $CPPFLAGS'
5018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5021 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5022 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5023 if test -z "$CXXCPP"; then
5024   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5025   echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027       # Double quotes because CXXCPP needs to be expanded
5028     for CXXCPP in "$CXX -E" "/lib/cpp"
5029     do
5030       ac_preproc_ok=false
5031 for ac_cxx_preproc_warn_flag in '' yes
5032 do
5033   # Use a header file that comes with gcc, so configuring glibc
5034   # with a fresh cross-compiler works.
5035   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5036   # <limits.h> exists even on freestanding compilers.
5037   # On the NeXT, cc -E runs the code through the compiler's parser,
5038   # not just through cpp. "Syntax error" is here to catch this case.
5039   cat >conftest.$ac_ext <<_ACEOF
5040 #line $LINENO "configure"
5041 /* confdefs.h.  */
5042 _ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h.  */
5046 #ifdef __STDC__
5047 # include <limits.h>
5048 #else
5049 # include <assert.h>
5050 #endif
5051                      Syntax error
5052 _ACEOF
5053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5054   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5055   ac_status=$?
5056   grep -v '^ *+' conftest.er1 >conftest.err
5057   rm -f conftest.er1
5058   cat conftest.err >&5
5059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); } >/dev/null; then
5061   if test -s conftest.err; then
5062     ac_cpp_err=$ac_cxx_preproc_warn_flag
5063   else
5064     ac_cpp_err=
5065   fi
5066 else
5067   ac_cpp_err=yes
5068 fi
5069 if test -z "$ac_cpp_err"; then
5070   :
5071 else
5072   echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5074
5075   # Broken: fails on valid input.
5076 continue
5077 fi
5078 rm -f conftest.err conftest.$ac_ext
5079
5080   # OK, works on sane cases.  Now check whether non-existent headers
5081   # can be detected and how.
5082   cat >conftest.$ac_ext <<_ACEOF
5083 #line $LINENO "configure"
5084 /* confdefs.h.  */
5085 _ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h.  */
5089 #include <ac_nonexistent.h>
5090 _ACEOF
5091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5092   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5093   ac_status=$?
5094   grep -v '^ *+' conftest.er1 >conftest.err
5095   rm -f conftest.er1
5096   cat conftest.err >&5
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); } >/dev/null; then
5099   if test -s conftest.err; then
5100     ac_cpp_err=$ac_cxx_preproc_warn_flag
5101   else
5102     ac_cpp_err=
5103   fi
5104 else
5105   ac_cpp_err=yes
5106 fi
5107 if test -z "$ac_cpp_err"; then
5108   # Broken: success on invalid input.
5109 continue
5110 else
5111   echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5113
5114   # Passes both tests.
5115 ac_preproc_ok=:
5116 break
5117 fi
5118 rm -f conftest.err conftest.$ac_ext
5119
5120 done
5121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5122 rm -f conftest.err conftest.$ac_ext
5123 if $ac_preproc_ok; then
5124   break
5125 fi
5126
5127     done
5128     ac_cv_prog_CXXCPP=$CXXCPP
5129
5130 fi
5131   CXXCPP=$ac_cv_prog_CXXCPP
5132 else
5133   ac_cv_prog_CXXCPP=$CXXCPP
5134 fi
5135 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5136 echo "${ECHO_T}$CXXCPP" >&6
5137 ac_preproc_ok=false
5138 for ac_cxx_preproc_warn_flag in '' yes
5139 do
5140   # Use a header file that comes with gcc, so configuring glibc
5141   # with a fresh cross-compiler works.
5142   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5143   # <limits.h> exists even on freestanding compilers.
5144   # On the NeXT, cc -E runs the code through the compiler's parser,
5145   # not just through cpp. "Syntax error" is here to catch this case.
5146   cat >conftest.$ac_ext <<_ACEOF
5147 #line $LINENO "configure"
5148 /* confdefs.h.  */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h.  */
5153 #ifdef __STDC__
5154 # include <limits.h>
5155 #else
5156 # include <assert.h>
5157 #endif
5158                      Syntax error
5159 _ACEOF
5160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5161   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5162   ac_status=$?
5163   grep -v '^ *+' conftest.er1 >conftest.err
5164   rm -f conftest.er1
5165   cat conftest.err >&5
5166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); } >/dev/null; then
5168   if test -s conftest.err; then
5169     ac_cpp_err=$ac_cxx_preproc_warn_flag
5170   else
5171     ac_cpp_err=
5172   fi
5173 else
5174   ac_cpp_err=yes
5175 fi
5176 if test -z "$ac_cpp_err"; then
5177   :
5178 else
5179   echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5181
5182   # Broken: fails on valid input.
5183 continue
5184 fi
5185 rm -f conftest.err conftest.$ac_ext
5186
5187   # OK, works on sane cases.  Now check whether non-existent headers
5188   # can be detected and how.
5189   cat >conftest.$ac_ext <<_ACEOF
5190 #line $LINENO "configure"
5191 /* confdefs.h.  */
5192 _ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h.  */
5196 #include <ac_nonexistent.h>
5197 _ACEOF
5198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5199   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5200   ac_status=$?
5201   grep -v '^ *+' conftest.er1 >conftest.err
5202   rm -f conftest.er1
5203   cat conftest.err >&5
5204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205   (exit $ac_status); } >/dev/null; then
5206   if test -s conftest.err; then
5207     ac_cpp_err=$ac_cxx_preproc_warn_flag
5208   else
5209     ac_cpp_err=
5210   fi
5211 else
5212   ac_cpp_err=yes
5213 fi
5214 if test -z "$ac_cpp_err"; then
5215   # Broken: success on invalid input.
5216 continue
5217 else
5218   echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5220
5221   # Passes both tests.
5222 ac_preproc_ok=:
5223 break
5224 fi
5225 rm -f conftest.err conftest.$ac_ext
5226
5227 done
5228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5229 rm -f conftest.err conftest.$ac_ext
5230 if $ac_preproc_ok; then
5231   :
5232 else
5233   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5234 See \`config.log' for more details." >&5
5235 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5236 See \`config.log' for more details." >&2;}
5237    { (exit 1); exit 1; }; }
5238 fi
5239
5240 ac_ext=cc
5241 ac_cpp='$CXXCPP $CPPFLAGS'
5242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5245
5246
5247 ac_ext=f
5248 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5249 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5250 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5251 if test -n "$ac_tool_prefix"; then
5252   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5253   do
5254     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5255 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5256 echo "$as_me:$LINENO: checking for $ac_word" >&5
5257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5258 if test "${ac_cv_prog_F77+set}" = set; then
5259   echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261   if test -n "$F77"; then
5262   ac_cv_prog_F77="$F77" # Let the user override the test.
5263 else
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5266 do
5267   IFS=$as_save_IFS
5268   test -z "$as_dir" && as_dir=.
5269   for ac_exec_ext in '' $ac_executable_extensions; do
5270   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5271     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5273     break 2
5274   fi
5275 done
5276 done
5277
5278 fi
5279 fi
5280 F77=$ac_cv_prog_F77
5281 if test -n "$F77"; then
5282   echo "$as_me:$LINENO: result: $F77" >&5
5283 echo "${ECHO_T}$F77" >&6
5284 else
5285   echo "$as_me:$LINENO: result: no" >&5
5286 echo "${ECHO_T}no" >&6
5287 fi
5288
5289     test -n "$F77" && break
5290   done
5291 fi
5292 if test -z "$F77"; then
5293   ac_ct_F77=$F77
5294   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5295 do
5296   # Extract the first word of "$ac_prog", so it can be a program name with args.
5297 set dummy $ac_prog; ac_word=$2
5298 echo "$as_me:$LINENO: checking for $ac_word" >&5
5299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5300 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5301   echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303   if test -n "$ac_ct_F77"; then
5304   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5305 else
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5308 do
5309   IFS=$as_save_IFS
5310   test -z "$as_dir" && as_dir=.
5311   for ac_exec_ext in '' $ac_executable_extensions; do
5312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313     ac_cv_prog_ac_ct_F77="$ac_prog"
5314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5315     break 2
5316   fi
5317 done
5318 done
5319
5320 fi
5321 fi
5322 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5323 if test -n "$ac_ct_F77"; then
5324   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5325 echo "${ECHO_T}$ac_ct_F77" >&6
5326 else
5327   echo "$as_me:$LINENO: result: no" >&5
5328 echo "${ECHO_T}no" >&6
5329 fi
5330
5331   test -n "$ac_ct_F77" && break
5332 done
5333
5334   F77=$ac_ct_F77
5335 fi
5336
5337
5338 # Provide some information about the compiler.
5339 echo "$as_me:5339:" \
5340      "checking for Fortran 77 compiler version" >&5
5341 ac_compiler=`set X $ac_compile; echo $2`
5342 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5343   (eval $ac_compiler --version </dev/null >&5) 2>&5
5344   ac_status=$?
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); }
5347 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5348   (eval $ac_compiler -v </dev/null >&5) 2>&5
5349   ac_status=$?
5350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); }
5352 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5353   (eval $ac_compiler -V </dev/null >&5) 2>&5
5354   ac_status=$?
5355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356   (exit $ac_status); }
5357
5358 # If we don't use `.F' as extension, the preprocessor is not run on the
5359 # input file.
5360 ac_save_ext=$ac_ext
5361 ac_ext=F
5362 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5363 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5364 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5365   echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367   cat >conftest.$ac_ext <<_ACEOF
5368       program main
5369 #ifndef __GNUC__
5370        choke me
5371 #endif
5372
5373       end
5374 _ACEOF
5375 rm -f conftest.$ac_objext
5376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5377   (eval $ac_compile) 2>&5
5378   ac_status=$?
5379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380   (exit $ac_status); } &&
5381          { ac_try='test -s conftest.$ac_objext'
5382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383   (eval $ac_try) 2>&5
5384   ac_status=$?
5385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386   (exit $ac_status); }; }; then
5387   ac_compiler_gnu=yes
5388 else
5389   echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5391
5392 ac_compiler_gnu=no
5393 fi
5394 rm -f conftest.$ac_objext conftest.$ac_ext
5395 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5396
5397 fi
5398 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5399 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5400 ac_ext=$ac_save_ext
5401 G77=`test $ac_compiler_gnu = yes && echo yes`
5402 ac_test_FFLAGS=${FFLAGS+set}
5403 ac_save_FFLAGS=$FFLAGS
5404 FFLAGS=
5405 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5406 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5407 if test "${ac_cv_prog_f77_g+set}" = set; then
5408   echo $ECHO_N "(cached) $ECHO_C" >&6
5409 else
5410   FFLAGS=-g
5411 cat >conftest.$ac_ext <<_ACEOF
5412       program main
5413
5414       end
5415 _ACEOF
5416 rm -f conftest.$ac_objext
5417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5418   (eval $ac_compile) 2>&5
5419   ac_status=$?
5420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421   (exit $ac_status); } &&
5422          { ac_try='test -s conftest.$ac_objext'
5423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424   (eval $ac_try) 2>&5
5425   ac_status=$?
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); }; }; then
5428   ac_cv_prog_f77_g=yes
5429 else
5430   echo "$as_me: failed program was:" >&5
5431 sed 's/^/| /' conftest.$ac_ext >&5
5432
5433 ac_cv_prog_f77_g=no
5434 fi
5435 rm -f conftest.$ac_objext conftest.$ac_ext
5436
5437 fi
5438 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5439 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5440 if test "$ac_test_FFLAGS" = set; then
5441   FFLAGS=$ac_save_FFLAGS
5442 elif test $ac_cv_prog_f77_g = yes; then
5443   if test "$G77" = yes; then
5444     FFLAGS="-g -O2"
5445   else
5446     FFLAGS="-g"
5447   fi
5448 else
5449   if test "$G77" = yes; then
5450     FFLAGS="-O2"
5451   else
5452     FFLAGS=
5453   fi
5454 fi
5455 ac_ext=c
5456 ac_cpp='$CPP $CPPFLAGS'
5457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5460
5461
5462
5463 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5464
5465 # find the maximum length of command line arguments
5466 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5467 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5468 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471     i=0
5472   testring="ABCD"
5473
5474   case $build_os in
5475   msdosdjgpp*)
5476     # On DJGPP, this test can blow up pretty badly due to problems in libc
5477     # (any single argument exceeding 2000 bytes causes a buffer overrun
5478     # during glob expansion).  Even if it were fixed, the result of this
5479     # check would be larger than it should be.
5480     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5481     ;;
5482
5483   gnu*)
5484     # Under GNU Hurd, this test is not required because there is
5485     # no limit to the length of command line arguments.
5486     # Libtool will interpret -1 as no limit whatsoever
5487     lt_cv_sys_max_cmd_len=-1;
5488     ;;
5489
5490   cygwin* | mingw*)
5491     # On Win9x/ME, this test blows up -- it succeeds, but takes
5492     # about 5 minutes as the teststring grows exponentially.
5493     # Worse, since 9x/ME are not pre-emptively multitasking,
5494     # you end up with a "frozen" computer, even though with patience
5495     # the test eventually succeeds (with a max line length of 256k).
5496     # Instead, let's just punt: use the minimum linelength reported by
5497     # all of the supported platforms: 8192 (on NT/2K/XP).
5498     lt_cv_sys_max_cmd_len=8192;
5499     ;;
5500
5501  *)
5502     # If test is not a shell built-in, we'll probably end up computing a
5503     # maximum length that is only half of the actual maximum length, but
5504     # we can't tell.
5505     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5506                = "XX$testring") >/dev/null 2>&1 &&
5507             new_result=`expr "X$testring" : ".*" 2>&1` &&
5508             lt_cv_sys_max_cmd_len=$new_result &&
5509             test $i != 17 # 1/2 MB should be enough
5510     do
5511       i=`expr $i + 1`
5512       testring=$testring$testring
5513     done
5514     testring=
5515     # Add a significant safety factor because C++ compilers can tack on massive
5516     # amounts of additional arguments before passing them to the linker.
5517     # It appears as though 1/2 is a usable value.
5518     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5519     ;;
5520   esac
5521
5522 fi
5523
5524 if test -n $lt_cv_sys_max_cmd_len ; then
5525   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5526 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5527 else
5528   echo "$as_me:$LINENO: result: none" >&5
5529 echo "${ECHO_T}none" >&6
5530 fi
5531
5532
5533
5534
5535 # Check for command to grab the raw symbol name followed by C symbol from nm.
5536 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5537 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5538 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541
5542 # These are sane defaults that work on at least a few old systems.
5543 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5544
5545 # Character class describing NM global symbol codes.
5546 symcode='[BCDEGRST]'
5547
5548 # Regexp to match symbols that can be accessed directly from C.
5549 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5550
5551 # Transform the above into a raw symbol and a C symbol.
5552 symxfrm='\1 \2\3 \3'
5553
5554 # Transform an extracted symbol line into a proper C declaration
5555 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5556
5557 # Transform an extracted symbol line into symbol name and symbol address
5558 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'"
5559
5560 # Define system-specific variables.
5561 case $host_os in
5562 aix*)
5563   symcode='[BCDT]'
5564   ;;
5565 cygwin* | mingw* | pw32*)
5566   symcode='[ABCDGISTW]'
5567   ;;
5568 hpux*) # Its linker distinguishes data from code symbols
5569   if test "$host_cpu" = ia64; then
5570     symcode='[ABCDEGRST]'
5571   fi
5572   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5573   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'"
5574   ;;
5575 irix* | nonstopux*)
5576   symcode='[BCDEGRST]'
5577   ;;
5578 osf*)
5579   symcode='[BCDEGQRST]'
5580   ;;
5581 solaris* | sysv5*)
5582   symcode='[BDT]'
5583   ;;
5584 sysv4)
5585   symcode='[DFNSTU]'
5586   ;;
5587 esac
5588
5589 # Handle CRLF in mingw tool chain
5590 opt_cr=
5591 case $build_os in
5592 mingw*)
5593   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5594   ;;
5595 esac
5596
5597 # If we're using GNU nm, then use its standard symbol codes.
5598 case `$NM -V 2>&1` in
5599 *GNU* | *'with BFD'*)
5600   symcode='[ABCDGISTW]' ;;
5601 esac
5602
5603 # Try without a prefix undercore, then with it.
5604 for ac_symprfx in "" "_"; do
5605
5606   # Write the raw and C identifiers.
5607   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5608
5609   # Check to see that the pipe works correctly.
5610   pipe_works=no
5611
5612   rm -f conftest*
5613   cat > conftest.$ac_ext <<EOF
5614 #ifdef __cplusplus
5615 extern "C" {
5616 #endif
5617 char nm_test_var;
5618 void nm_test_func(){}
5619 #ifdef __cplusplus
5620 }
5621 #endif
5622 int main(){nm_test_var='a';nm_test_func();return(0);}
5623 EOF
5624
5625   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5626   (eval $ac_compile) 2>&5
5627   ac_status=$?
5628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629   (exit $ac_status); }; then
5630     # Now try to grab the symbols.
5631     nlist=conftest.nm
5632     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5633   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5634   ac_status=$?
5635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); } && test -s "$nlist"; then
5637       # Try sorting and uniquifying the output.
5638       if sort "$nlist" | uniq > "$nlist"T; then
5639         mv -f "$nlist"T "$nlist"
5640       else
5641         rm -f "$nlist"T
5642       fi
5643
5644       # Make sure that we snagged all the symbols we need.
5645       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5646         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5647           cat <<EOF > conftest.$ac_ext
5648 #ifdef __cplusplus
5649 extern "C" {
5650 #endif
5651
5652 EOF
5653           # Now generate the symbol file.
5654           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5655
5656           cat <<EOF >> conftest.$ac_ext
5657 #if defined (__STDC__) && __STDC__
5658 # define lt_ptr_t void *
5659 #else
5660 # define lt_ptr_t char *
5661 # define const
5662 #endif
5663
5664 /* The mapping between symbol names and symbols. */
5665 const struct {
5666   const char *name;
5667   lt_ptr_t address;
5668 }
5669 lt_preloaded_symbols[] =
5670 {
5671 EOF
5672           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5673           cat <<\EOF >> conftest.$ac_ext
5674   {0, (lt_ptr_t) 0}
5675 };
5676
5677 #ifdef __cplusplus
5678 }
5679 #endif
5680 EOF
5681           # Now try linking the two files.
5682           mv conftest.$ac_objext conftstm.$ac_objext
5683           lt_save_LIBS="$LIBS"
5684           lt_save_CFLAGS="$CFLAGS"
5685           LIBS="conftstm.$ac_objext"
5686           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5687           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5688   (eval $ac_link) 2>&5
5689   ac_status=$?
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5692             pipe_works=yes
5693           fi
5694           LIBS="$lt_save_LIBS"
5695           CFLAGS="$lt_save_CFLAGS"
5696         else
5697           echo "cannot find nm_test_func in $nlist" >&5
5698         fi
5699       else
5700         echo "cannot find nm_test_var in $nlist" >&5
5701       fi
5702     else
5703       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5704     fi
5705   else
5706     echo "$progname: failed program was:" >&5
5707     cat conftest.$ac_ext >&5
5708   fi
5709   rm -f conftest* conftst*
5710
5711   # Do not use the global_symbol_pipe unless it works.
5712   if test "$pipe_works" = yes; then
5713     break
5714   else
5715     lt_cv_sys_global_symbol_pipe=
5716   fi
5717 done
5718
5719 fi
5720
5721 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5722   lt_cv_sys_global_symbol_to_cdecl=
5723 fi
5724 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5725   echo "$as_me:$LINENO: result: failed" >&5
5726 echo "${ECHO_T}failed" >&6
5727 else
5728   echo "$as_me:$LINENO: result: ok" >&5
5729 echo "${ECHO_T}ok" >&6
5730 fi
5731
5732 echo "$as_me:$LINENO: checking for objdir" >&5
5733 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5734 if test "${lt_cv_objdir+set}" = set; then
5735   echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737   rm -f .libs 2>/dev/null
5738 mkdir .libs 2>/dev/null
5739 if test -d .libs; then
5740   lt_cv_objdir=.libs
5741 else
5742   # MS-DOS does not allow filenames that begin with a dot.
5743   lt_cv_objdir=_libs
5744 fi
5745 rmdir .libs 2>/dev/null
5746 fi
5747 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5748 echo "${ECHO_T}$lt_cv_objdir" >&6
5749 objdir=$lt_cv_objdir
5750
5751
5752
5753
5754
5755 case $host_os in
5756 aix3*)
5757   # AIX sometimes has problems with the GCC collect2 program.  For some
5758   # reason, if we set the COLLECT_NAMES environment variable, the problems
5759   # vanish in a puff of smoke.
5760   if test "X${COLLECT_NAMES+set}" != Xset; then
5761     COLLECT_NAMES=
5762     export COLLECT_NAMES
5763   fi
5764   ;;
5765 esac
5766
5767 # Sed substitution that helps us do robust quoting.  It backslashifies
5768 # metacharacters that are still active within double-quoted strings.
5769 Xsed='sed -e s/^X//'
5770 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5771
5772 # Same as above, but do not quote variable references.
5773 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5774
5775 # Sed substitution to delay expansion of an escaped shell variable in a
5776 # double_quote_subst'ed string.
5777 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5778
5779 # Sed substitution to avoid accidental globbing in evaled expressions
5780 no_glob_subst='s/\*/\\\*/g'
5781
5782 # Constants:
5783 rm="rm -f"
5784
5785 # Global variables:
5786 default_ofile=mklib
5787 can_build_shared=yes
5788
5789 # All known linkers require a `.a' archive for static linking (except M$VC,
5790 # which needs '.lib').
5791 libext=a
5792 ltmain="$ac_aux_dir/ltmain.sh"
5793 ofile="$default_ofile"
5794 with_gnu_ld="$lt_cv_prog_gnu_ld"
5795
5796 if test -n "$ac_tool_prefix"; then
5797   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5798 set dummy ${ac_tool_prefix}ar; ac_word=$2
5799 echo "$as_me:$LINENO: checking for $ac_word" >&5
5800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5801 if test "${ac_cv_prog_AR+set}" = set; then
5802   echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804   if test -n "$AR"; then
5805   ac_cv_prog_AR="$AR" # Let the user override the test.
5806 else
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5809 do
5810   IFS=$as_save_IFS
5811   test -z "$as_dir" && as_dir=.
5812   for ac_exec_ext in '' $ac_executable_extensions; do
5813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5814     ac_cv_prog_AR="${ac_tool_prefix}ar"
5815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816     break 2
5817   fi
5818 done
5819 done
5820
5821 fi
5822 fi
5823 AR=$ac_cv_prog_AR
5824 if test -n "$AR"; then
5825   echo "$as_me:$LINENO: result: $AR" >&5
5826 echo "${ECHO_T}$AR" >&6
5827 else
5828   echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6
5830 fi
5831
5832 fi
5833 if test -z "$ac_cv_prog_AR"; then
5834   ac_ct_AR=$AR
5835   # Extract the first word of "ar", so it can be a program name with args.
5836 set dummy ar; ac_word=$2
5837 echo "$as_me:$LINENO: checking for $ac_word" >&5
5838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5839 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5840   echo $ECHO_N "(cached) $ECHO_C" >&6
5841 else
5842   if test -n "$ac_ct_AR"; then
5843   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5844 else
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848   IFS=$as_save_IFS
5849   test -z "$as_dir" && as_dir=.
5850   for ac_exec_ext in '' $ac_executable_extensions; do
5851   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5852     ac_cv_prog_ac_ct_AR="ar"
5853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854     break 2
5855   fi
5856 done
5857 done
5858
5859   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5860 fi
5861 fi
5862 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5863 if test -n "$ac_ct_AR"; then
5864   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5865 echo "${ECHO_T}$ac_ct_AR" >&6
5866 else
5867   echo "$as_me:$LINENO: result: no" >&5
5868 echo "${ECHO_T}no" >&6
5869 fi
5870
5871   AR=$ac_ct_AR
5872 else
5873   AR="$ac_cv_prog_AR"
5874 fi
5875
5876 if test -n "$ac_tool_prefix"; then
5877   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5878 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5879 echo "$as_me:$LINENO: checking for $ac_word" >&5
5880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5881 if test "${ac_cv_prog_RANLIB+set}" = set; then
5882   echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884   if test -n "$RANLIB"; then
5885   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890   IFS=$as_save_IFS
5891   test -z "$as_dir" && as_dir=.
5892   for ac_exec_ext in '' $ac_executable_extensions; do
5893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896     break 2
5897   fi
5898 done
5899 done
5900
5901 fi
5902 fi
5903 RANLIB=$ac_cv_prog_RANLIB
5904 if test -n "$RANLIB"; then
5905   echo "$as_me:$LINENO: result: $RANLIB" >&5
5906 echo "${ECHO_T}$RANLIB" >&6
5907 else
5908   echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6
5910 fi
5911
5912 fi
5913 if test -z "$ac_cv_prog_RANLIB"; then
5914   ac_ct_RANLIB=$RANLIB
5915   # Extract the first word of "ranlib", so it can be a program name with args.
5916 set dummy ranlib; ac_word=$2
5917 echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5919 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922   if test -n "$ac_ct_RANLIB"; then
5923   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928   IFS=$as_save_IFS
5929   test -z "$as_dir" && as_dir=.
5930   for ac_exec_ext in '' $ac_executable_extensions; do
5931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932     ac_cv_prog_ac_ct_RANLIB="ranlib"
5933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934     break 2
5935   fi
5936 done
5937 done
5938
5939   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5940 fi
5941 fi
5942 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5943 if test -n "$ac_ct_RANLIB"; then
5944   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5945 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5946 else
5947   echo "$as_me:$LINENO: result: no" >&5
5948 echo "${ECHO_T}no" >&6
5949 fi
5950
5951   RANLIB=$ac_ct_RANLIB
5952 else
5953   RANLIB="$ac_cv_prog_RANLIB"
5954 fi
5955
5956 if test -n "$ac_tool_prefix"; then
5957   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5958 set dummy ${ac_tool_prefix}strip; ac_word=$2
5959 echo "$as_me:$LINENO: checking for $ac_word" >&5
5960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5961 if test "${ac_cv_prog_STRIP+set}" = set; then
5962   echo $ECHO_N "(cached) $ECHO_C" >&6
5963 else
5964   if test -n "$STRIP"; then
5965   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5966 else
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 for as_dir in $PATH
5969 do
5970   IFS=$as_save_IFS
5971   test -z "$as_dir" && as_dir=.
5972   for ac_exec_ext in '' $ac_executable_extensions; do
5973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5974     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5976     break 2
5977   fi
5978 done
5979 done
5980
5981 fi
5982 fi
5983 STRIP=$ac_cv_prog_STRIP
5984 if test -n "$STRIP"; then
5985   echo "$as_me:$LINENO: result: $STRIP" >&5
5986 echo "${ECHO_T}$STRIP" >&6
5987 else
5988   echo "$as_me:$LINENO: result: no" >&5
5989 echo "${ECHO_T}no" >&6
5990 fi
5991
5992 fi
5993 if test -z "$ac_cv_prog_STRIP"; then
5994   ac_ct_STRIP=$STRIP
5995   # Extract the first word of "strip", so it can be a program name with args.
5996 set dummy strip; ac_word=$2
5997 echo "$as_me:$LINENO: checking for $ac_word" >&5
5998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5999 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6000   echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002   if test -n "$ac_ct_STRIP"; then
6003   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6004 else
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6007 do
6008   IFS=$as_save_IFS
6009   test -z "$as_dir" && as_dir=.
6010   for ac_exec_ext in '' $ac_executable_extensions; do
6011   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6012     ac_cv_prog_ac_ct_STRIP="strip"
6013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014     break 2
6015   fi
6016 done
6017 done
6018
6019   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6020 fi
6021 fi
6022 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6023 if test -n "$ac_ct_STRIP"; then
6024   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6025 echo "${ECHO_T}$ac_ct_STRIP" >&6
6026 else
6027   echo "$as_me:$LINENO: result: no" >&5
6028 echo "${ECHO_T}no" >&6
6029 fi
6030
6031   STRIP=$ac_ct_STRIP
6032 else
6033   STRIP="$ac_cv_prog_STRIP"
6034 fi
6035
6036
6037 old_CC="$CC"
6038 old_CFLAGS="$CFLAGS"
6039
6040 # Set sane defaults for various variables
6041 test -z "$AR" && AR=ar
6042 test -z "$AR_FLAGS" && AR_FLAGS=cru
6043 test -z "$AS" && AS=as
6044 test -z "$CC" && CC=cc
6045 test -z "$LTCC" && LTCC=$CC
6046 test -z "$DLLTOOL" && DLLTOOL=dlltool
6047 test -z "$LD" && LD=ld
6048 test -z "$LN_S" && LN_S="ln -s"
6049 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6050 test -z "$NM" && NM=nm
6051 test -z "$SED" && SED=sed
6052 test -z "$OBJDUMP" && OBJDUMP=objdump
6053 test -z "$RANLIB" && RANLIB=:
6054 test -z "$STRIP" && STRIP=:
6055 test -z "$ac_objext" && ac_objext=o
6056
6057 # Determine commands to create old-style static archives.
6058 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6059 old_postinstall_cmds='chmod 644 $oldlib'
6060 old_postuninstall_cmds=
6061
6062 if test -n "$RANLIB"; then
6063   case $host_os in
6064   openbsd*)
6065     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6066     ;;
6067   *)
6068     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6069     ;;
6070   esac
6071   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6072 fi
6073
6074 # Only perform the check for file, if the check method requires it
6075 case $deplibs_check_method in
6076 file_magic*)
6077   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6078     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6079 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6080 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6081   echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083   case $MAGIC_CMD in
6084 [\\/*] |  ?:[\\/]*)
6085   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6086   ;;
6087 *)
6088   lt_save_MAGIC_CMD="$MAGIC_CMD"
6089   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6090   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6091   for ac_dir in $ac_dummy; do
6092     IFS="$lt_save_ifs"
6093     test -z "$ac_dir" && ac_dir=.
6094     if test -f $ac_dir/${ac_tool_prefix}file; then
6095       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6096       if test -n "$file_magic_test_file"; then
6097         case $deplibs_check_method in
6098         "file_magic "*)
6099           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6100           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6101           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6102             $EGREP "$file_magic_regex" > /dev/null; then
6103             :
6104           else
6105             cat <<EOF 1>&2
6106
6107 *** Warning: the command libtool uses to detect shared libraries,
6108 *** $file_magic_cmd, produces output that libtool cannot recognize.
6109 *** The result is that libtool may fail to recognize shared libraries
6110 *** as such.  This will affect the creation of libtool libraries that
6111 *** depend on shared libraries, but programs linked with such libtool
6112 *** libraries will work regardless of this problem.  Nevertheless, you
6113 *** may want to report the problem to your system manager and/or to
6114 *** bug-libtool@gnu.org
6115
6116 EOF
6117           fi ;;
6118         esac
6119       fi
6120       break
6121     fi
6122   done
6123   IFS="$lt_save_ifs"
6124   MAGIC_CMD="$lt_save_MAGIC_CMD"
6125   ;;
6126 esac
6127 fi
6128
6129 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6130 if test -n "$MAGIC_CMD"; then
6131   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6132 echo "${ECHO_T}$MAGIC_CMD" >&6
6133 else
6134   echo "$as_me:$LINENO: result: no" >&5
6135 echo "${ECHO_T}no" >&6
6136 fi
6137
6138 if test -z "$lt_cv_path_MAGIC_CMD"; then
6139   if test -n "$ac_tool_prefix"; then
6140     echo "$as_me:$LINENO: checking for file" >&5
6141 echo $ECHO_N "checking for file... $ECHO_C" >&6
6142 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6143   echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145   case $MAGIC_CMD in
6146 [\\/*] |  ?:[\\/]*)
6147   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6148   ;;
6149 *)
6150   lt_save_MAGIC_CMD="$MAGIC_CMD"
6151   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6152   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6153   for ac_dir in $ac_dummy; do
6154     IFS="$lt_save_ifs"
6155     test -z "$ac_dir" && ac_dir=.
6156     if test -f $ac_dir/file; then
6157       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6158       if test -n "$file_magic_test_file"; then
6159         case $deplibs_check_method in
6160         "file_magic "*)
6161           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6162           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6163           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6164             $EGREP "$file_magic_regex" > /dev/null; then
6165             :
6166           else
6167             cat <<EOF 1>&2
6168
6169 *** Warning: the command libtool uses to detect shared libraries,
6170 *** $file_magic_cmd, produces output that libtool cannot recognize.
6171 *** The result is that libtool may fail to recognize shared libraries
6172 *** as such.  This will affect the creation of libtool libraries that
6173 *** depend on shared libraries, but programs linked with such libtool
6174 *** libraries will work regardless of this problem.  Nevertheless, you
6175 *** may want to report the problem to your system manager and/or to
6176 *** bug-libtool@gnu.org
6177
6178 EOF
6179           fi ;;
6180         esac
6181       fi
6182       break
6183     fi
6184   done
6185   IFS="$lt_save_ifs"
6186   MAGIC_CMD="$lt_save_MAGIC_CMD"
6187   ;;
6188 esac
6189 fi
6190
6191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6192 if test -n "$MAGIC_CMD"; then
6193   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6194 echo "${ECHO_T}$MAGIC_CMD" >&6
6195 else
6196   echo "$as_me:$LINENO: result: no" >&5
6197 echo "${ECHO_T}no" >&6
6198 fi
6199
6200   else
6201     MAGIC_CMD=:
6202   fi
6203 fi
6204
6205   fi
6206   ;;
6207 esac
6208
6209 enable_dlopen=no
6210 enable_win32_dll=no
6211
6212 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6213 if test "${enable_libtool_lock+set}" = set; then
6214   enableval="$enable_libtool_lock"
6215
6216 fi;
6217 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6218
6219
6220 # Check whether --with-pic or --without-pic was given.
6221 if test "${with_pic+set}" = set; then
6222   withval="$with_pic"
6223   pic_mode="$withval"
6224 else
6225   pic_mode=default
6226 fi;
6227 test -z "$pic_mode" && pic_mode=default
6228
6229 # Use C for the default configuration in the libtool script
6230 tagname=
6231 lt_save_CC="$CC"
6232 ac_ext=c
6233 ac_cpp='$CPP $CPPFLAGS'
6234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6237
6238
6239 # Source file extension for C test sources.
6240 ac_ext=c
6241
6242 # Object file extension for compiled C test sources.
6243 objext=o
6244 objext=$objext
6245
6246 # Code to be used in simple compile tests
6247 lt_simple_compile_test_code="int some_variable = 0;\n"
6248
6249 # Code to be used in simple link tests
6250 lt_simple_link_test_code='int main(){return(0);}\n'
6251
6252
6253 # If no C compiler was specified, use CC.
6254 LTCC=${LTCC-"$CC"}
6255
6256 # Allow CC to be a program name with arguments.
6257 compiler=$CC
6258
6259
6260 #
6261 # Check for any special shared library compilation flags.
6262 #
6263 lt_prog_cc_shlib=
6264 if test "$GCC" = no; then
6265   case $host_os in
6266   sco3.2v5*)
6267     lt_prog_cc_shlib='-belf'
6268     ;;
6269   esac
6270 fi
6271 if test -n "$lt_prog_cc_shlib"; then
6272   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6273 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6274   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6275   else
6276     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6277 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6278     lt_cv_prog_cc_can_build_shared=no
6279   fi
6280 fi
6281
6282
6283 #
6284 # Check to make sure the static flag actually works.
6285 #
6286 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6287 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6288 if test "${lt_prog_compiler_static_works+set}" = set; then
6289   echo $ECHO_N "(cached) $ECHO_C" >&6
6290 else
6291   lt_prog_compiler_static_works=no
6292    save_LDFLAGS="$LDFLAGS"
6293    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6294    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6295    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6296      # The compiler can only warn and ignore the option if not recognized
6297      # So say no if there are warnings
6298      if test -s conftest.err; then
6299        # Append any errors to the config.log.
6300        cat conftest.err 1>&5
6301      else
6302        lt_prog_compiler_static_works=yes
6303      fi
6304    fi
6305    $rm conftest*
6306    LDFLAGS="$save_LDFLAGS"
6307
6308 fi
6309 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6310 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6311
6312 if test x"$lt_prog_compiler_static_works" = xyes; then
6313     :
6314 else
6315     lt_prog_compiler_static=
6316 fi
6317
6318
6319
6320 ## CAVEAT EMPTOR:
6321 ## There is no encapsulation within the following macros, do not change
6322 ## the running order or otherwise move them around unless you know exactly
6323 ## what you are doing...
6324
6325 lt_prog_compiler_no_builtin_flag=
6326
6327 if test "$GCC" = yes; then
6328   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6329
6330   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6331 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6332 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6333   echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335   lt_cv_prog_compiler_rtti_exceptions=no
6336   ac_outfile=conftest.$ac_objext
6337    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6338    lt_compiler_flag="-fno-rtti -fno-exceptions"
6339    # Insert the option either (1) after the last *FLAGS variable, or
6340    # (2) before a word containing "conftest.", or (3) at the end.
6341    # Note that $ac_compile itself does not contain backslashes and begins
6342    # with a dollar sign (not a hyphen), so the echo should work correctly.
6343    # The option is referenced via a variable to avoid confusing sed.
6344    lt_compile=`echo "$ac_compile" | $SED \
6345    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6346    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6347    -e 's:$: $lt_compiler_flag:'`
6348    (eval echo "\"\$as_me:6348: $lt_compile\"" >&5)
6349    (eval "$lt_compile" 2>conftest.err)
6350    ac_status=$?
6351    cat conftest.err >&5
6352    echo "$as_me:6352: \$? = $ac_status" >&5
6353    if (exit $ac_status) && test -s "$ac_outfile"; then
6354      # The compiler can only warn and ignore the option if not recognized
6355      # So say no if there are warnings
6356      if test ! -s conftest.err; then
6357        lt_cv_prog_compiler_rtti_exceptions=yes
6358      fi
6359    fi
6360    $rm conftest*
6361
6362 fi
6363 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6364 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6365
6366 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6367     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6368 else
6369     :
6370 fi
6371
6372 fi
6373
6374 lt_prog_compiler_wl=
6375 lt_prog_compiler_pic=
6376 lt_prog_compiler_static=
6377
6378 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6379 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6380
6381   if test "$GCC" = yes; then
6382     lt_prog_compiler_wl='-Wl,'
6383     lt_prog_compiler_static='-static'
6384
6385     case $host_os in
6386       aix*)
6387       # All AIX code is PIC.
6388       if test "$host_cpu" = ia64; then
6389         # AIX 5 now supports IA64 processor
6390         lt_prog_compiler_static='-Bstatic'
6391       fi
6392       ;;
6393
6394     amigaos*)
6395       # FIXME: we need at least 68020 code to build shared libraries, but
6396       # adding the `-m68020' flag to GCC prevents building anything better,
6397       # like `-m68040'.
6398       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6399       ;;
6400
6401     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6402       # PIC is the default for these OSes.
6403       ;;
6404
6405     mingw* | pw32* | os2*)
6406       # This hack is so that the source file can tell whether it is being
6407       # built for inclusion in a dll (and should export symbols for example).
6408       lt_prog_compiler_pic='-DDLL_EXPORT'
6409       ;;
6410
6411     darwin* | rhapsody*)
6412       # PIC is the default on this platform
6413       # Common symbols not allowed in MH_DYLIB files
6414       lt_prog_compiler_pic='-fno-common'
6415       ;;
6416
6417     msdosdjgpp*)
6418       # Just because we use GCC doesn't mean we suddenly get shared libraries
6419       # on systems that don't support them.
6420       lt_prog_compiler_can_build_shared=no
6421       enable_shared=no
6422       ;;
6423
6424     sysv4*MP*)
6425       if test -d /usr/nec; then
6426         lt_prog_compiler_pic=-Kconform_pic
6427       fi
6428       ;;
6429
6430     hpux*)
6431       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6432       # not for PA HP-UX.
6433       case "$host_cpu" in
6434       hppa*64*|ia64*)
6435         # +Z the default
6436         ;;
6437       *)
6438         lt_prog_compiler_pic='-fPIC'
6439         ;;
6440       esac
6441       ;;
6442
6443     *)
6444       lt_prog_compiler_pic='-fPIC'
6445       ;;
6446     esac
6447   else
6448     # PORTME Check for flag to pass linker flags through the system compiler.
6449     case $host_os in
6450     aix*)
6451       lt_prog_compiler_wl='-Wl,'
6452       if test "$host_cpu" = ia64; then
6453         # AIX 5 now supports IA64 processor
6454         lt_prog_compiler_static='-Bstatic'
6455       else
6456         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6457       fi
6458       ;;
6459
6460     mingw* | pw32* | os2*)
6461       # This hack is so that the source file can tell whether it is being
6462       # built for inclusion in a dll (and should export symbols for example).
6463       lt_prog_compiler_pic='-DDLL_EXPORT'
6464       ;;
6465
6466     hpux9* | hpux10* | hpux11*)
6467       lt_prog_compiler_wl='-Wl,'
6468       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6469       # not for PA HP-UX.
6470       case "$host_cpu" in
6471       hppa*64*|ia64*)
6472         # +Z the default
6473         ;;
6474       *)
6475         lt_prog_compiler_pic='+Z'
6476         ;;
6477       esac
6478       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6479       lt_prog_compiler_static='${wl}-a ${wl}archive'
6480       ;;
6481
6482     irix5* | irix6* | nonstopux*)
6483       lt_prog_compiler_wl='-Wl,'
6484       # PIC (with -KPIC) is the default.
6485       lt_prog_compiler_static='-non_shared'
6486       ;;
6487
6488     newsos6)
6489       lt_prog_compiler_pic='-KPIC'
6490       lt_prog_compiler_static='-Bstatic'
6491       ;;
6492
6493     linux*)
6494       case $CC in
6495       icc|ecc)
6496         lt_prog_compiler_wl='-Wl,'
6497         lt_prog_compiler_pic='-KPIC'
6498         lt_prog_compiler_static='-static'
6499         ;;
6500       ccc)
6501         lt_prog_compiler_wl='-Wl,'
6502         # All Alpha code is PIC.
6503         lt_prog_compiler_static='-non_shared'
6504         ;;
6505       esac
6506       ;;
6507
6508     osf3* | osf4* | osf5*)
6509       lt_prog_compiler_wl='-Wl,'
6510       # All OSF/1 code is PIC.
6511       lt_prog_compiler_static='-non_shared'
6512       ;;
6513
6514     sco3.2v5*)
6515       lt_prog_compiler_pic='-Kpic'
6516       lt_prog_compiler_static='-dn'
6517       ;;
6518
6519     solaris*)
6520       lt_prog_compiler_wl='-Wl,'
6521       lt_prog_compiler_pic='-KPIC'
6522       lt_prog_compiler_static='-Bstatic'
6523       ;;
6524
6525     sunos4*)
6526       lt_prog_compiler_wl='-Qoption ld '
6527       lt_prog_compiler_pic='-PIC'
6528       lt_prog_compiler_static='-Bstatic'
6529       ;;
6530
6531     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6532       lt_prog_compiler_wl='-Wl,'
6533       lt_prog_compiler_pic='-KPIC'
6534       lt_prog_compiler_static='-Bstatic'
6535       ;;
6536
6537     sysv4*MP*)
6538       if test -d /usr/nec ;then
6539         lt_prog_compiler_pic='-Kconform_pic'
6540         lt_prog_compiler_static='-Bstatic'
6541       fi
6542       ;;
6543
6544     uts4*)
6545       lt_prog_compiler_pic='-pic'
6546       lt_prog_compiler_static='-Bstatic'
6547       ;;
6548
6549     *)
6550       lt_prog_compiler_can_build_shared=no
6551       ;;
6552     esac
6553   fi
6554
6555 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6556 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6557
6558 #
6559 # Check to make sure the PIC flag actually works.
6560 #
6561 if test -n "$lt_prog_compiler_pic"; then
6562   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6563 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6564 if test "${lt_prog_compiler_pic_works+set}" = set; then
6565   echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567   lt_prog_compiler_pic_works=no
6568   ac_outfile=conftest.$ac_objext
6569    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6570    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6571    # Insert the option either (1) after the last *FLAGS variable, or
6572    # (2) before a word containing "conftest.", or (3) at the end.
6573    # Note that $ac_compile itself does not contain backslashes and begins
6574    # with a dollar sign (not a hyphen), so the echo should work correctly.
6575    # The option is referenced via a variable to avoid confusing sed.
6576    lt_compile=`echo "$ac_compile" | $SED \
6577    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6578    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6579    -e 's:$: $lt_compiler_flag:'`
6580    (eval echo "\"\$as_me:6580: $lt_compile\"" >&5)
6581    (eval "$lt_compile" 2>conftest.err)
6582    ac_status=$?
6583    cat conftest.err >&5
6584    echo "$as_me:6584: \$? = $ac_status" >&5
6585    if (exit $ac_status) && test -s "$ac_outfile"; then
6586      # The compiler can only warn and ignore the option if not recognized
6587      # So say no if there are warnings
6588      if test ! -s conftest.err; then
6589        lt_prog_compiler_pic_works=yes
6590      fi
6591    fi
6592    $rm conftest*
6593
6594 fi
6595 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6596 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6597
6598 if test x"$lt_prog_compiler_pic_works" = xyes; then
6599     case $lt_prog_compiler_pic in
6600      "" | " "*) ;;
6601      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6602      esac
6603 else
6604     lt_prog_compiler_pic=
6605      lt_prog_compiler_can_build_shared=no
6606 fi
6607
6608 fi
6609 case "$host_os" in
6610   # For platforms which do not support PIC, -DPIC is meaningless:
6611   *djgpp*)
6612     lt_prog_compiler_pic=
6613     ;;
6614   *)
6615     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6616     ;;
6617 esac
6618
6619 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6620 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6621 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6622   echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624   lt_cv_prog_compiler_c_o=no
6625    $rm -r conftest 2>/dev/null
6626    mkdir conftest
6627    cd conftest
6628    mkdir out
6629    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6630
6631    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6632    # that will create temporary files in the current directory regardless of
6633    # the output directory.  Thus, making CWD read-only will cause this test
6634    # to fail, enabling locking or at least warning the user not to do parallel
6635    # builds.
6636    chmod -w .
6637
6638    lt_compiler_flag="-o out/conftest2.$ac_objext"
6639    # Insert the option either (1) after the last *FLAGS variable, or
6640    # (2) before a word containing "conftest.", or (3) at the end.
6641    # Note that $ac_compile itself does not contain backslashes and begins
6642    # with a dollar sign (not a hyphen), so the echo should work correctly.
6643    lt_compile=`echo "$ac_compile" | $SED \
6644    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6645    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6646    -e 's:$: $lt_compiler_flag:'`
6647    (eval echo "\"\$as_me:6647: $lt_compile\"" >&5)
6648    (eval "$lt_compile" 2>out/conftest.err)
6649    ac_status=$?
6650    cat out/conftest.err >&5
6651    echo "$as_me:6651: \$? = $ac_status" >&5
6652    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6653    then
6654      # The compiler can only warn and ignore the option if not recognized
6655      # So say no if there are warnings
6656      if test ! -s out/conftest.err; then
6657        lt_cv_prog_compiler_c_o=yes
6658      fi
6659    fi
6660    chmod u+w .
6661    $rm conftest* out/*
6662    rmdir out
6663    cd ..
6664    rmdir conftest
6665    $rm conftest*
6666
6667 fi
6668 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6669 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6670
6671
6672 hard_links="nottested"
6673 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6674   # do not overwrite the value of need_locks provided by the user
6675   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6676 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6677   hard_links=yes
6678   $rm conftest*
6679   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6680   touch conftest.a
6681   ln conftest.a conftest.b 2>&5 || hard_links=no
6682   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6683   echo "$as_me:$LINENO: result: $hard_links" >&5
6684 echo "${ECHO_T}$hard_links" >&6
6685   if test "$hard_links" = no; then
6686     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6687 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6688     need_locks=warn
6689   fi
6690 else
6691   need_locks=no
6692 fi
6693
6694 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6695 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6696
6697   runpath_var=
6698   allow_undefined_flag=
6699   enable_shared_with_static_runtimes=no
6700   archive_cmds=
6701   archive_expsym_cmds=
6702   old_archive_From_new_cmds=
6703   old_archive_from_expsyms_cmds=
6704   export_dynamic_flag_spec=
6705   whole_archive_flag_spec=
6706   thread_safe_flag_spec=
6707   hardcode_libdir_flag_spec=
6708   hardcode_libdir_flag_spec_ld=
6709   hardcode_libdir_separator=
6710   hardcode_direct=no
6711   hardcode_minus_L=no
6712   hardcode_shlibpath_var=unsupported
6713   link_all_deplibs=unknown
6714   hardcode_automatic=no
6715   module_cmds=
6716   module_expsym_cmds=
6717   always_export_symbols=no
6718   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6719   # include_expsyms should be a list of space-separated symbols to be *always*
6720   # included in the symbol list
6721   include_expsyms=
6722   # exclude_expsyms can be an extended regexp of symbols to exclude
6723   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6724   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6725   # as well as any symbol that contains `d'.
6726   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6727   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6728   # platforms (ab)use it in PIC code, but their linkers get confused if
6729   # the symbol is explicitly referenced.  Since portable code cannot
6730   # rely on this symbol name, it's probably fine to never include it in
6731   # preloaded symbol tables.
6732   extract_expsyms_cmds=
6733
6734   case $host_os in
6735   cygwin* | mingw* | pw32*)
6736     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6737     # When not using gcc, we currently assume that we are using
6738     # Microsoft Visual C++.
6739     if test "$GCC" != yes; then
6740       with_gnu_ld=no
6741     fi
6742     ;;
6743   openbsd*)
6744     with_gnu_ld=no
6745     ;;
6746   esac
6747
6748   ld_shlibs=yes
6749   if test "$with_gnu_ld" = yes; then
6750     # If archive_cmds runs LD, not CC, wlarc should be empty
6751     wlarc='${wl}'
6752
6753     # See if GNU ld supports shared libraries.
6754     case $host_os in
6755     aix3* | aix4* | aix5*)
6756       # On AIX/PPC, the GNU linker is very broken
6757       if test "$host_cpu" != ia64; then
6758         ld_shlibs=no
6759         cat <<EOF 1>&2
6760
6761 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6762 *** to be unable to reliably create shared libraries on AIX.
6763 *** Therefore, libtool is disabling shared libraries support.  If you
6764 *** really care for shared libraries, you may want to modify your PATH
6765 *** so that a non-GNU linker is found, and then restart.
6766
6767 EOF
6768       fi
6769       ;;
6770
6771     amigaos*)
6772       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)'
6773       hardcode_libdir_flag_spec='-L$libdir'
6774       hardcode_minus_L=yes
6775
6776       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6777       # that the semantics of dynamic libraries on AmigaOS, at least up
6778       # to version 4, is to share data among multiple programs linked
6779       # with the same dynamic library.  Since this doesn't match the
6780       # behavior of shared libraries on other platforms, we can't use
6781       # them.
6782       ld_shlibs=no
6783       ;;
6784
6785     beos*)
6786       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6787         allow_undefined_flag=unsupported
6788         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6789         # support --undefined.  This deserves some investigation.  FIXME
6790         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6791       else
6792         ld_shlibs=no
6793       fi
6794       ;;
6795
6796     cygwin* | mingw* | pw32*)
6797       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6798       # as there is no search path for DLLs.
6799       hardcode_libdir_flag_spec='-L$libdir'
6800       allow_undefined_flag=unsupported
6801       always_export_symbols=no
6802       enable_shared_with_static_runtimes=yes
6803       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6804
6805       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6806         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6807         # If the export-symbols file already is a .def file (1st line
6808         # is EXPORTS), use it as is; otherwise, prepend...
6809         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6810           cp $export_symbols $output_objdir/$soname.def;
6811         else
6812           echo EXPORTS > $output_objdir/$soname.def;
6813           cat $export_symbols >> $output_objdir/$soname.def;
6814         fi~
6815         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6816       else
6817         ld_shlibs=no
6818       fi
6819       ;;
6820
6821     netbsd*)
6822       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6823         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6824         wlarc=
6825       else
6826         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6827         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6828       fi
6829       ;;
6830
6831     solaris* | sysv5*)
6832       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6833         ld_shlibs=no
6834         cat <<EOF 1>&2
6835
6836 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6837 *** create shared libraries on Solaris systems.  Therefore, libtool
6838 *** is disabling shared libraries support.  We urge you to upgrade GNU
6839 *** binutils to release 2.9.1 or newer.  Another option is to modify
6840 *** your PATH or compiler configuration so that the native linker is
6841 *** used, and then restart.
6842
6843 EOF
6844       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6845         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6846         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6847       else
6848         ld_shlibs=no
6849       fi
6850       ;;
6851
6852     sunos4*)
6853       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6854       wlarc=
6855       hardcode_direct=yes
6856       hardcode_shlibpath_var=no
6857       ;;
6858
6859     *)
6860       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6861         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6862         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6863       else
6864         ld_shlibs=no
6865       fi
6866       ;;
6867     esac
6868
6869     if test "$ld_shlibs" = yes; then
6870       runpath_var=LD_RUN_PATH
6871       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6872       export_dynamic_flag_spec='${wl}--export-dynamic'
6873       # ancient GNU ld didn't support --whole-archive et. al.
6874       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6875         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6876       else
6877         whole_archive_flag_spec=
6878       fi
6879     fi
6880   else
6881     # PORTME fill in a description of your system's linker (not GNU ld)
6882     case $host_os in
6883     aix3*)
6884       allow_undefined_flag=unsupported
6885       always_export_symbols=yes
6886       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'
6887       # Note: this linker hardcodes the directories in LIBPATH if there
6888       # are no directories specified by -L.
6889       hardcode_minus_L=yes
6890       if test "$GCC" = yes && test -z "$link_static_flag"; then
6891         # Neither direct hardcoding nor static linking is supported with a
6892         # broken collect2.
6893         hardcode_direct=unsupported
6894       fi
6895       ;;
6896
6897     aix4* | aix5*)
6898       if test "$host_cpu" = ia64; then
6899         # On IA64, the linker does run time linking by default, so we don't
6900         # have to do anything special.
6901         aix_use_runtimelinking=no
6902         exp_sym_flag='-Bexport'
6903         no_entry_flag=""
6904       else
6905         # If we're using GNU nm, then we don't want the "-C" option.
6906         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6907         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6908           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'
6909         else
6910           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'
6911         fi
6912         aix_use_runtimelinking=no
6913
6914         # Test if we are trying to use run time linking or normal
6915         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6916         # need to do runtime linking.
6917         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6918           for ld_flag in $LDFLAGS; do
6919           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6920             aix_use_runtimelinking=yes
6921             break
6922           fi
6923           done
6924         esac
6925
6926         exp_sym_flag='-bexport'
6927         no_entry_flag='-bnoentry'
6928       fi
6929
6930       # When large executables or shared objects are built, AIX ld can
6931       # have problems creating the table of contents.  If linking a library
6932       # or program results in "error TOC overflow" add -mminimal-toc to
6933       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6934       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6935
6936       archive_cmds=''
6937       hardcode_direct=yes
6938       hardcode_libdir_separator=':'
6939       link_all_deplibs=yes
6940
6941       if test "$GCC" = yes; then
6942         case $host_os in aix4.012|aix4.012.*)
6943         # We only want to do this on AIX 4.2 and lower, the check
6944         # below for broken collect2 doesn't work under 4.3+
6945           collect2name=`${CC} -print-prog-name=collect2`
6946           if test -f "$collect2name" && \
6947            strings "$collect2name" | grep resolve_lib_name >/dev/null
6948           then
6949           # We have reworked collect2
6950           hardcode_direct=yes
6951           else
6952           # We have old collect2
6953           hardcode_direct=unsupported
6954           # It fails to find uninstalled libraries when the uninstalled
6955           # path is not listed in the libpath.  Setting hardcode_minus_L
6956           # to unsupported forces relinking
6957           hardcode_minus_L=yes
6958           hardcode_libdir_flag_spec='-L$libdir'
6959           hardcode_libdir_separator=
6960           fi
6961         esac
6962         shared_flag='-shared'
6963       else
6964         # not using gcc
6965         if test "$host_cpu" = ia64; then
6966         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6967         # chokes on -Wl,-G. The following line is correct:
6968           shared_flag='-G'
6969         else
6970         if test "$aix_use_runtimelinking" = yes; then
6971             shared_flag='${wl}-G'
6972           else
6973             shared_flag='${wl}-bM:SRE'
6974         fi
6975         fi
6976       fi
6977
6978       # It seems that -bexpall does not export symbols beginning with
6979       # underscore (_), so it is better to generate a list of symbols to export.
6980       always_export_symbols=yes
6981       if test "$aix_use_runtimelinking" = yes; then
6982         # Warning - without using the other runtime loading flags (-brtl),
6983         # -berok will link without error, but may produce a broken library.
6984         allow_undefined_flag='-berok'
6985        # Determine the default libpath from the value encoded in an empty executable.
6986        cat >conftest.$ac_ext <<_ACEOF
6987 #line $LINENO "configure"
6988 /* confdefs.h.  */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h.  */
6993
6994 int
6995 main ()
6996 {
6997
6998   ;
6999   return 0;
7000 }
7001 _ACEOF
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7004   (eval $ac_link) 2>&5
7005   ac_status=$?
7006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007   (exit $ac_status); } &&
7008          { ac_try='test -s conftest$ac_exeext'
7009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010   (eval $ac_try) 2>&5
7011   ac_status=$?
7012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013   (exit $ac_status); }; }; then
7014
7015 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7016 }'`
7017 # Check for a 64-bit object if we didn't find anything.
7018 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; }
7019 }'`; fi
7020 else
7021   echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7023
7024 fi
7025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7026 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7027
7028        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7029         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"
7030        else
7031         if test "$host_cpu" = ia64; then
7032           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7033           allow_undefined_flag="-z nodefs"
7034           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"
7035         else
7036          # Determine the default libpath from the value encoded in an empty executable.
7037          cat >conftest.$ac_ext <<_ACEOF
7038 #line $LINENO "configure"
7039 /* confdefs.h.  */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h.  */
7044
7045 int
7046 main ()
7047 {
7048
7049   ;
7050   return 0;
7051 }
7052 _ACEOF
7053 rm -f conftest.$ac_objext conftest$ac_exeext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7055   (eval $ac_link) 2>&5
7056   ac_status=$?
7057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058   (exit $ac_status); } &&
7059          { ac_try='test -s conftest$ac_exeext'
7060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061   (eval $ac_try) 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); }; }; then
7065
7066 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7067 }'`
7068 # Check for a 64-bit object if we didn't find anything.
7069 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; }
7070 }'`; fi
7071 else
7072   echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7074
7075 fi
7076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7077 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7078
7079          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7080           # Warning - without using the other run time loading flags,
7081           # -berok will link without error, but may produce a broken library.
7082           no_undefined_flag=' ${wl}-bernotok'
7083           allow_undefined_flag=' ${wl}-berok'
7084           # -bexpall does not export symbols beginning with underscore (_)
7085           always_export_symbols=yes
7086           # Exported symbols can be pulled into shared objects from archives
7087           whole_archive_flag_spec=' '
7088           archive_cmds_need_lc=yes
7089           # This is similar to how AIX traditionally builds it's shared libraries.
7090           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'
7091         fi
7092       fi
7093       ;;
7094
7095     amigaos*)
7096       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)'
7097       hardcode_libdir_flag_spec='-L$libdir'
7098       hardcode_minus_L=yes
7099       # see comment about different semantics on the GNU ld section
7100       ld_shlibs=no
7101       ;;
7102
7103     bsdi4*)
7104       export_dynamic_flag_spec=-rdynamic
7105       ;;
7106
7107     cygwin* | mingw* | pw32*)
7108       # When not using gcc, we currently assume that we are using
7109       # Microsoft Visual C++.
7110       # hardcode_libdir_flag_spec is actually meaningless, as there is
7111       # no search path for DLLs.
7112       hardcode_libdir_flag_spec=' '
7113       allow_undefined_flag=unsupported
7114       # Tell ltmain to make .lib files, not .a files.
7115       libext=lib
7116       # Tell ltmain to make .dll files, not .so files.
7117       shrext=".dll"
7118       # FIXME: Setting linknames here is a bad hack.
7119       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7120       # The linker will automatically build a .lib file if we build a DLL.
7121       old_archive_From_new_cmds='true'
7122       # FIXME: Should let the user specify the lib program.
7123       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7124       fix_srcfile_path='`cygpath -w "$srcfile"`'
7125       enable_shared_with_static_runtimes=yes
7126       ;;
7127
7128     darwin* | rhapsody*)
7129     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7130       archive_cmds_need_lc=no
7131       case "$host_os" in
7132       rhapsody* | darwin1.[012])
7133         allow_undefined_flag='-undefined suppress'
7134         ;;
7135       *) # Darwin 1.3 on
7136         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7137         ;;
7138       esac
7139       # FIXME: Relying on posixy $() will cause problems for
7140       #        cross-compilation, but unfortunately the echo tests do not
7141       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7142       #        `"' quotes if we put them in here... so don't!
7143         lt_int_apple_cc_single_mod=no
7144         output_verbose_link_cmd='echo'
7145         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7146           lt_int_apple_cc_single_mod=yes
7147         fi
7148         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7149           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7150         else
7151         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'
7152       fi
7153       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7154       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7155         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7156           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}'
7157         else
7158           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}'
7159         fi
7160           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}'
7161       hardcode_direct=no
7162       hardcode_automatic=yes
7163       hardcode_shlibpath_var=unsupported
7164       whole_archive_flag_spec='-all_load $convenience'
7165       link_all_deplibs=yes
7166     fi
7167       ;;
7168
7169     dgux*)
7170       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7171       hardcode_libdir_flag_spec='-L$libdir'
7172       hardcode_shlibpath_var=no
7173       ;;
7174
7175     freebsd1*)
7176       ld_shlibs=no
7177       ;;
7178
7179     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7180     # support.  Future versions do this automatically, but an explicit c++rt0.o
7181     # does not break anything, and helps significantly (at the cost of a little
7182     # extra space).
7183     freebsd2.2*)
7184       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7185       hardcode_libdir_flag_spec='-R$libdir'
7186       hardcode_direct=yes
7187       hardcode_shlibpath_var=no
7188       ;;
7189
7190     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7191     freebsd2*)
7192       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7193       hardcode_direct=yes
7194       hardcode_minus_L=yes
7195       hardcode_shlibpath_var=no
7196       ;;
7197
7198     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7199     freebsd*)
7200       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7201       hardcode_libdir_flag_spec='-R$libdir'
7202       hardcode_direct=yes
7203       hardcode_shlibpath_var=no
7204       ;;
7205
7206     hpux9*)
7207       if test "$GCC" = yes; then
7208         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'
7209       else
7210         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'
7211       fi
7212       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7213       hardcode_libdir_separator=:
7214       hardcode_direct=yes
7215
7216       # hardcode_minus_L: Not really in the search PATH,
7217       # but as the default location of the library.
7218       hardcode_minus_L=yes
7219       export_dynamic_flag_spec='${wl}-E'
7220       ;;
7221
7222     hpux10* | hpux11*)
7223       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7224         case "$host_cpu" in
7225         hppa*64*|ia64*)
7226           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7227           ;;
7228         *)
7229           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7230           ;;
7231         esac
7232       else
7233         case "$host_cpu" in
7234         hppa*64*|ia64*)
7235           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7236           ;;
7237         *)
7238           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7239           ;;
7240         esac
7241       fi
7242       if test "$with_gnu_ld" = no; then
7243         case "$host_cpu" in
7244         hppa*64*)
7245           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7246           hardcode_libdir_flag_spec_ld='+b $libdir'
7247           hardcode_libdir_separator=:
7248           hardcode_direct=no
7249           hardcode_shlibpath_var=no
7250           ;;
7251         ia64*)
7252           hardcode_libdir_flag_spec='-L$libdir'
7253           hardcode_direct=no
7254           hardcode_shlibpath_var=no
7255
7256           # hardcode_minus_L: Not really in the search PATH,
7257           # but as the default location of the library.
7258           hardcode_minus_L=yes
7259           ;;
7260         *)
7261           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7262           hardcode_libdir_separator=:
7263           hardcode_direct=yes
7264           export_dynamic_flag_spec='${wl}-E'
7265
7266           # hardcode_minus_L: Not really in the search PATH,
7267           # but as the default location of the library.
7268           hardcode_minus_L=yes
7269           ;;
7270         esac
7271       fi
7272       ;;
7273
7274     irix5* | irix6* | nonstopux*)
7275       if test "$GCC" = yes; then
7276         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'
7277       else
7278         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'
7279         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7280       fi
7281       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7282       hardcode_libdir_separator=:
7283       link_all_deplibs=yes
7284       ;;
7285
7286     netbsd*)
7287       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7288         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7289       else
7290         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7291       fi
7292       hardcode_libdir_flag_spec='-R$libdir'
7293       hardcode_direct=yes
7294       hardcode_shlibpath_var=no
7295       ;;
7296
7297     newsos6)
7298       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7299       hardcode_direct=yes
7300       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7301       hardcode_libdir_separator=:
7302       hardcode_shlibpath_var=no
7303       ;;
7304
7305     openbsd*)
7306       hardcode_direct=yes
7307       hardcode_shlibpath_var=no
7308       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7309         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7310         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7311         export_dynamic_flag_spec='${wl}-E'
7312       else
7313        case $host_os in
7314          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7315            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7316            hardcode_libdir_flag_spec='-R$libdir'
7317            ;;
7318          *)
7319            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7320            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7321            ;;
7322        esac
7323       fi
7324       ;;
7325
7326     os2*)
7327       hardcode_libdir_flag_spec='-L$libdir'
7328       hardcode_minus_L=yes
7329       allow_undefined_flag=unsupported
7330       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'
7331       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7332       ;;
7333
7334     osf3*)
7335       if test "$GCC" = yes; then
7336         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7337         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'
7338       else
7339         allow_undefined_flag=' -expect_unresolved \*'
7340         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'
7341       fi
7342       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7343       hardcode_libdir_separator=:
7344       ;;
7345
7346     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7347       if test "$GCC" = yes; then
7348         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7349         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'
7350         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7351       else
7352         allow_undefined_flag=' -expect_unresolved \*'
7353         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'
7354         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7355         $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'
7356
7357         # Both c and cxx compiler support -rpath directly
7358         hardcode_libdir_flag_spec='-rpath $libdir'
7359       fi
7360       hardcode_libdir_separator=:
7361       ;;
7362
7363     sco3.2v5*)
7364       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7365       hardcode_shlibpath_var=no
7366       export_dynamic_flag_spec='${wl}-Bexport'
7367       runpath_var=LD_RUN_PATH
7368       hardcode_runpath_var=yes
7369       ;;
7370
7371     solaris*)
7372       no_undefined_flag=' -z text'
7373       if test "$GCC" = yes; then
7374         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7375         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7376           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7377       else
7378         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7379         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7380         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7381       fi
7382       hardcode_libdir_flag_spec='-R$libdir'
7383       hardcode_shlibpath_var=no
7384       case $host_os in
7385       solaris2.[0-5] | solaris2.[0-5].*) ;;
7386       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7387         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7388       esac
7389       link_all_deplibs=yes
7390       ;;
7391
7392     sunos4*)
7393       if test "x$host_vendor" = xsequent; then
7394         # Use $CC to link under sequent, because it throws in some extra .o
7395         # files that make .init and .fini sections work.
7396         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7397       else
7398         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7399       fi
7400       hardcode_libdir_flag_spec='-L$libdir'
7401       hardcode_direct=yes
7402       hardcode_minus_L=yes
7403       hardcode_shlibpath_var=no
7404       ;;
7405
7406     sysv4)
7407       case $host_vendor in
7408         sni)
7409           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7410           hardcode_direct=yes # is this really true???
7411         ;;
7412         siemens)
7413           ## LD is ld it makes a PLAMLIB
7414           ## CC just makes a GrossModule.
7415           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7416           reload_cmds='$CC -r -o $output$reload_objs'
7417           hardcode_direct=no
7418         ;;
7419         motorola)
7420           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7421           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7422         ;;
7423       esac
7424       runpath_var='LD_RUN_PATH'
7425       hardcode_shlibpath_var=no
7426       ;;
7427
7428     sysv4.3*)
7429       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7430       hardcode_shlibpath_var=no
7431       export_dynamic_flag_spec='-Bexport'
7432       ;;
7433
7434     sysv4*MP*)
7435       if test -d /usr/nec; then
7436         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7437         hardcode_shlibpath_var=no
7438         runpath_var=LD_RUN_PATH
7439         hardcode_runpath_var=yes
7440         ld_shlibs=yes
7441       fi
7442       ;;
7443
7444     sysv4.2uw2*)
7445       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7446       hardcode_direct=yes
7447       hardcode_minus_L=no
7448       hardcode_shlibpath_var=no
7449       hardcode_runpath_var=yes
7450       runpath_var=LD_RUN_PATH
7451       ;;
7452
7453    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7454       no_undefined_flag='${wl}-z ${wl}text'
7455       if test "$GCC" = yes; then
7456         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7457       else
7458         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7459       fi
7460       runpath_var='LD_RUN_PATH'
7461       hardcode_shlibpath_var=no
7462       ;;
7463
7464     sysv5*)
7465       no_undefined_flag=' -z text'
7466       # $CC -shared without GNU ld will not create a library from C++
7467       # object files and a static libstdc++, better avoid it by now
7468       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7469       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7470                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7471       hardcode_libdir_flag_spec=
7472       hardcode_shlibpath_var=no
7473       runpath_var='LD_RUN_PATH'
7474       ;;
7475
7476     uts4*)
7477       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7478       hardcode_libdir_flag_spec='-L$libdir'
7479       hardcode_shlibpath_var=no
7480       ;;
7481
7482     *)
7483       ld_shlibs=no
7484       ;;
7485     esac
7486   fi
7487
7488 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7489 echo "${ECHO_T}$ld_shlibs" >&6
7490 test "$ld_shlibs" = no && can_build_shared=no
7491
7492 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7493 if test "$GCC" = yes; then
7494   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7495 fi
7496
7497 #
7498 # Do we need to explicitly link libc?
7499 #
7500 case "x$archive_cmds_need_lc" in
7501 x|xyes)
7502   # Assume -lc should be added
7503   archive_cmds_need_lc=yes
7504
7505   if test "$enable_shared" = yes && test "$GCC" = yes; then
7506     case $archive_cmds in
7507     *'~'*)
7508       # FIXME: we may have to deal with multi-command sequences.
7509       ;;
7510     '$CC '*)
7511       # Test whether the compiler implicitly links with -lc since on some
7512       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7513       # to ld, don't add -lc before -lgcc.
7514       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7515 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7516       $rm conftest*
7517       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7518
7519       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7520   (eval $ac_compile) 2>&5
7521   ac_status=$?
7522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523   (exit $ac_status); } 2>conftest.err; then
7524         soname=conftest
7525         lib=conftest
7526         libobjs=conftest.$ac_objext
7527         deplibs=
7528         wl=$lt_prog_compiler_wl
7529         compiler_flags=-v
7530         linker_flags=-v
7531         verstring=
7532         output_objdir=.
7533         libname=conftest
7534         lt_save_allow_undefined_flag=$allow_undefined_flag
7535         allow_undefined_flag=
7536         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7537   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7538   ac_status=$?
7539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540   (exit $ac_status); }
7541         then
7542           archive_cmds_need_lc=no
7543         else
7544           archive_cmds_need_lc=yes
7545         fi
7546         allow_undefined_flag=$lt_save_allow_undefined_flag
7547       else
7548         cat conftest.err 1>&5
7549       fi
7550       $rm conftest*
7551       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7552 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7553       ;;
7554     esac
7555   fi
7556   ;;
7557 esac
7558
7559 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7560 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7561 hardcode_action=
7562 if test -n "$hardcode_libdir_flag_spec" || \
7563    test -n "$runpath_var " || \
7564    test "X$hardcode_automatic"="Xyes" ; then
7565
7566   # We can hardcode non-existant directories.
7567   if test "$hardcode_direct" != no &&
7568      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7569      # have to relink, otherwise we might link with an installed library
7570      # when we should be linking with a yet-to-be-installed one
7571      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7572      test "$hardcode_minus_L" != no; then
7573     # Linking always hardcodes the temporary library directory.
7574     hardcode_action=relink
7575   else
7576     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7577     hardcode_action=immediate
7578   fi
7579 else
7580   # We cannot hardcode anything, or else we can only hardcode existing
7581   # directories.
7582   hardcode_action=unsupported
7583 fi
7584 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7585 echo "${ECHO_T}$hardcode_action" >&6
7586
7587 if test "$hardcode_action" = relink; then
7588   # Fast installation is not supported
7589   enable_fast_install=no
7590 elif test "$shlibpath_overrides_runpath" = yes ||
7591      test "$enable_shared" = no; then
7592   # Fast installation is not necessary
7593   enable_fast_install=needless
7594 fi
7595
7596 striplib=
7597 old_striplib=
7598 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7599 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7600 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7601   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7602   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7603   echo "$as_me:$LINENO: result: yes" >&5
7604 echo "${ECHO_T}yes" >&6
7605 else
7606 # FIXME - insert some real tests, host_os isn't really good enough
7607   case $host_os in
7608    darwin*)
7609        if test -n "$STRIP" ; then
7610          striplib="$STRIP -x"
7611          echo "$as_me:$LINENO: result: yes" >&5
7612 echo "${ECHO_T}yes" >&6
7613        else
7614   echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6
7616 fi
7617        ;;
7618    *)
7619   echo "$as_me:$LINENO: result: no" >&5
7620 echo "${ECHO_T}no" >&6
7621     ;;
7622   esac
7623 fi
7624
7625 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7626 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7627 library_names_spec=
7628 libname_spec='lib$name'
7629 soname_spec=
7630 shrext=".so"
7631 postinstall_cmds=
7632 postuninstall_cmds=
7633 finish_cmds=
7634 finish_eval=
7635 shlibpath_var=
7636 shlibpath_overrides_runpath=unknown
7637 version_type=none
7638 dynamic_linker="$host_os ld.so"
7639 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7640 if test "$GCC" = yes; then
7641   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7642   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7643     # if the path contains ";" then we assume it to be the separator
7644     # otherwise default to the standard path separator (i.e. ":") - it is
7645     # assumed that no part of a normal pathname contains ";" but that should
7646     # okay in the real world where ";" in dirpaths is itself problematic.
7647     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7648   else
7649     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7650   fi
7651 else
7652   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7653 fi
7654 need_lib_prefix=unknown
7655 hardcode_into_libs=no
7656
7657 # when you set need_version to no, make sure it does not cause -set_version
7658 # flags to be left without arguments
7659 need_version=unknown
7660
7661 case $host_os in
7662 aix3*)
7663   version_type=linux
7664   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7665   shlibpath_var=LIBPATH
7666
7667   # AIX 3 has no versioning support, so we append a major version to the name.
7668   soname_spec='${libname}${release}${shared_ext}$major'
7669   ;;
7670
7671 aix4* | aix5*)
7672   version_type=linux
7673   need_lib_prefix=no
7674   need_version=no
7675   hardcode_into_libs=yes
7676   if test "$host_cpu" = ia64; then
7677     # AIX 5 supports IA64
7678     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7679     shlibpath_var=LD_LIBRARY_PATH
7680   else
7681     # With GCC up to 2.95.x, collect2 would create an import file
7682     # for dependence libraries.  The import file would start with
7683     # the line `#! .'.  This would cause the generated library to
7684     # depend on `.', always an invalid library.  This was fixed in
7685     # development snapshots of GCC prior to 3.0.
7686     case $host_os in
7687       aix4 | aix4.[01] | aix4.[01].*)
7688       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7689            echo ' yes '
7690            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7691         :
7692       else
7693         can_build_shared=no
7694       fi
7695       ;;
7696     esac
7697     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7698     # soname into executable. Probably we can add versioning support to
7699     # collect2, so additional links can be useful in future.
7700     if test "$aix_use_runtimelinking" = yes; then
7701       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7702       # instead of lib<name>.a to let people know that these are not
7703       # typical AIX shared libraries.
7704       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7705     else
7706       # We preserve .a as extension for shared libraries through AIX4.2
7707       # and later when we are not doing run time linking.
7708       library_names_spec='${libname}${release}.a $libname.a'
7709       soname_spec='${libname}${release}${shared_ext}$major'
7710     fi
7711     shlibpath_var=LIBPATH
7712   fi
7713   ;;
7714
7715 amigaos*)
7716   library_names_spec='$libname.ixlibrary $libname.a'
7717   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7718   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'
7719   ;;
7720
7721 beos*)
7722   library_names_spec='${libname}${shared_ext}'
7723   dynamic_linker="$host_os ld.so"
7724   shlibpath_var=LIBRARY_PATH
7725   ;;
7726
7727 bsdi4*)
7728   version_type=linux
7729   need_version=no
7730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7731   soname_spec='${libname}${release}${shared_ext}$major'
7732   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7733   shlibpath_var=LD_LIBRARY_PATH
7734   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7735   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7736   # the default ld.so.conf also contains /usr/contrib/lib and
7737   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7738   # libtool to hard-code these into programs
7739   ;;
7740
7741 cygwin* | mingw* | pw32*)
7742   version_type=windows
7743   shrext=".dll"
7744   need_version=no
7745   need_lib_prefix=no
7746
7747   case $GCC,$host_os in
7748   yes,cygwin* | yes,mingw* | yes,pw32*)
7749     library_names_spec='$libname.dll.a'
7750     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7751     postinstall_cmds='base_file=`basename \${file}`~
7752       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7753       dldir=$destdir/`dirname \$dlpath`~
7754       test -d \$dldir || mkdir -p \$dldir~
7755       $install_prog $dir/$dlname \$dldir/$dlname'
7756     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7757       dlpath=$dir/\$dldll~
7758        $rm \$dlpath'
7759     shlibpath_overrides_runpath=yes
7760
7761     case $host_os in
7762     cygwin*)
7763       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7764       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7765       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7766       ;;
7767     mingw*)
7768       # MinGW DLLs use traditional 'lib' prefix
7769       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7770       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7771       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7772         # It is most probably a Windows format PATH printed by
7773         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7774         # path with ; separators, and with drive letters. We can handle the
7775         # drive letters (cygwin fileutils understands them), so leave them,
7776         # especially as we might pass files found there to a mingw objdump,
7777         # which wouldn't understand a cygwinified path. Ahh.
7778         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7779       else
7780         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7781       fi
7782       ;;
7783     pw32*)
7784       # pw32 DLLs use 'pw' prefix rather than 'lib'
7785       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7786       ;;
7787     esac
7788     ;;
7789
7790   *)
7791     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7792     ;;
7793   esac
7794   dynamic_linker='Win32 ld.exe'
7795   # FIXME: first we should search . and the directory the executable is in
7796   shlibpath_var=PATH
7797   ;;
7798
7799 darwin* | rhapsody*)
7800   dynamic_linker="$host_os dyld"
7801   version_type=darwin
7802   need_lib_prefix=no
7803   need_version=no
7804   # FIXME: Relying on posixy $() will cause problems for
7805   #        cross-compilation, but unfortunately the echo tests do not
7806   #        yet detect zsh echo's removal of \ escapes.
7807   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7808   soname_spec='${libname}${release}${major}$shared_ext'
7809   shlibpath_overrides_runpath=yes
7810   shlibpath_var=DYLD_LIBRARY_PATH
7811   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7812   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7813   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7814   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"`
7815   fi
7816   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7817   ;;
7818
7819 dgux*)
7820   version_type=linux
7821   need_lib_prefix=no
7822   need_version=no
7823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7824   soname_spec='${libname}${release}${shared_ext}$major'
7825   shlibpath_var=LD_LIBRARY_PATH
7826   ;;
7827
7828 freebsd1*)
7829   dynamic_linker=no
7830   ;;
7831
7832 freebsd*)
7833   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7834   version_type=freebsd-$objformat
7835   case $version_type in
7836     freebsd-elf*)
7837       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7838       need_version=no
7839       need_lib_prefix=no
7840       ;;
7841     freebsd-*)
7842       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7843       need_version=yes
7844       ;;
7845   esac
7846   shlibpath_var=LD_LIBRARY_PATH
7847   case $host_os in
7848   freebsd2*)
7849     shlibpath_overrides_runpath=yes
7850     ;;
7851   freebsd3.01* | freebsdelf3.01*)
7852     shlibpath_overrides_runpath=yes
7853     hardcode_into_libs=yes
7854     ;;
7855   *) # from 3.2 on
7856     shlibpath_overrides_runpath=no
7857     hardcode_into_libs=yes
7858     ;;
7859   esac
7860   ;;
7861
7862 gnu*)
7863   version_type=linux
7864   need_lib_prefix=no
7865   need_version=no
7866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7867   soname_spec='${libname}${release}${shared_ext}$major'
7868   shlibpath_var=LD_LIBRARY_PATH
7869   hardcode_into_libs=yes
7870   ;;
7871
7872 hpux9* | hpux10* | hpux11*)
7873   # Give a soname corresponding to the major version so that dld.sl refuses to
7874   # link against other versions.
7875   version_type=sunos
7876   need_lib_prefix=no
7877   need_version=no
7878   case "$host_cpu" in
7879   ia64*)
7880     shrext='.so'
7881     hardcode_into_libs=yes
7882     dynamic_linker="$host_os dld.so"
7883     shlibpath_var=LD_LIBRARY_PATH
7884     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7885     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7886     soname_spec='${libname}${release}${shared_ext}$major'
7887     if test "X$HPUX_IA64_MODE" = X32; then
7888       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7889     else
7890       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7891     fi
7892     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7893     ;;
7894    hppa*64*)
7895      shrext='.sl'
7896      hardcode_into_libs=yes
7897      dynamic_linker="$host_os dld.sl"
7898      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7899      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7900      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7901      soname_spec='${libname}${release}${shared_ext}$major'
7902      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7903      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7904      ;;
7905    *)
7906     shrext='.sl'
7907     dynamic_linker="$host_os dld.sl"
7908     shlibpath_var=SHLIB_PATH
7909     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7910     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7911     soname_spec='${libname}${release}${shared_ext}$major'
7912     ;;
7913   esac
7914   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7915   postinstall_cmds='chmod 555 $lib'
7916   ;;
7917
7918 irix5* | irix6* | nonstopux*)
7919   case $host_os in
7920     nonstopux*) version_type=nonstopux ;;
7921     *)
7922         if test "$lt_cv_prog_gnu_ld" = yes; then
7923                 version_type=linux
7924         else
7925                 version_type=irix
7926         fi ;;
7927   esac
7928   need_lib_prefix=no
7929   need_version=no
7930   soname_spec='${libname}${release}${shared_ext}$major'
7931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7932   case $host_os in
7933   irix5* | nonstopux*)
7934     libsuff= shlibsuff=
7935     ;;
7936   *)
7937     case $LD in # libtool.m4 will add one of these switches to LD
7938     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7939       libsuff= shlibsuff= libmagic=32-bit;;
7940     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7941       libsuff=32 shlibsuff=N32 libmagic=N32;;
7942     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7943       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7944     *) libsuff= shlibsuff= libmagic=never-match;;
7945     esac
7946     ;;
7947   esac
7948   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7949   shlibpath_overrides_runpath=no
7950   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7951   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7952   hardcode_into_libs=yes
7953   ;;
7954
7955 # No shared lib support for Linux oldld, aout, or coff.
7956 linux*oldld* | linux*aout* | linux*coff*)
7957   dynamic_linker=no
7958   ;;
7959
7960 # This must be Linux ELF.
7961 linux*)
7962   version_type=linux
7963   need_lib_prefix=no
7964   need_version=no
7965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7966   soname_spec='${libname}${release}${shared_ext}$major'
7967   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7968   shlibpath_var=LD_LIBRARY_PATH
7969   shlibpath_overrides_runpath=no
7970   # This implies no fast_install, which is unacceptable.
7971   # Some rework will be needed to allow for fast_install
7972   # before this can be enabled.
7973   hardcode_into_libs=yes
7974
7975   # We used to test for /lib/ld.so.1 and disable shared libraries on
7976   # powerpc, because MkLinux only supported shared libraries with the
7977   # GNU dynamic linker.  Since this was broken with cross compilers,
7978   # most powerpc-linux boxes support dynamic linking these days and
7979   # people can always --disable-shared, the test was removed, and we
7980   # assume the GNU/Linux dynamic linker is in use.
7981   dynamic_linker='GNU/Linux ld.so'
7982   ;;
7983
7984 netbsd*)
7985   version_type=sunos
7986   need_lib_prefix=no
7987   need_version=no
7988   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7989     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7990     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7991     dynamic_linker='NetBSD (a.out) ld.so'
7992   else
7993     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7994     soname_spec='${libname}${release}${shared_ext}$major'
7995     dynamic_linker='NetBSD ld.elf_so'
7996   fi
7997   shlibpath_var=LD_LIBRARY_PATH
7998   shlibpath_overrides_runpath=yes
7999   hardcode_into_libs=yes
8000   ;;
8001
8002 newsos6)
8003   version_type=linux
8004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8005   shlibpath_var=LD_LIBRARY_PATH
8006   shlibpath_overrides_runpath=yes
8007   ;;
8008
8009 nto-qnx)
8010   version_type=linux
8011   need_lib_prefix=no
8012   need_version=no
8013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8014   soname_spec='${libname}${release}${shared_ext}$major'
8015   shlibpath_var=LD_LIBRARY_PATH
8016   shlibpath_overrides_runpath=yes
8017   ;;
8018
8019 openbsd*)
8020   version_type=sunos
8021   need_lib_prefix=no
8022   need_version=no
8023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8024   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8025   shlibpath_var=LD_LIBRARY_PATH
8026   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8027     case $host_os in
8028       openbsd2.[89] | openbsd2.[89].*)
8029         shlibpath_overrides_runpath=no
8030         ;;
8031       *)
8032         shlibpath_overrides_runpath=yes
8033         ;;
8034       esac
8035   else
8036     shlibpath_overrides_runpath=yes
8037   fi
8038   ;;
8039
8040 os2*)
8041   libname_spec='$name'
8042   shrext=".dll"
8043   need_lib_prefix=no
8044   library_names_spec='$libname${shared_ext} $libname.a'
8045   dynamic_linker='OS/2 ld.exe'
8046   shlibpath_var=LIBPATH
8047   ;;
8048
8049 osf3* | osf4* | osf5*)
8050   version_type=osf
8051   need_lib_prefix=no
8052   need_version=no
8053   soname_spec='${libname}${release}${shared_ext}$major'
8054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8055   shlibpath_var=LD_LIBRARY_PATH
8056   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8057   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8058   ;;
8059
8060 sco3.2v5*)
8061   version_type=osf
8062   soname_spec='${libname}${release}${shared_ext}$major'
8063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8064   shlibpath_var=LD_LIBRARY_PATH
8065   ;;
8066
8067 solaris*)
8068   version_type=linux
8069   need_lib_prefix=no
8070   need_version=no
8071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8072   soname_spec='${libname}${release}${shared_ext}$major'
8073   shlibpath_var=LD_LIBRARY_PATH
8074   shlibpath_overrides_runpath=yes
8075   hardcode_into_libs=yes
8076   # ldd complains unless libraries are executable
8077   postinstall_cmds='chmod +x $lib'
8078   ;;
8079
8080 sunos4*)
8081   version_type=sunos
8082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8083   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8084   shlibpath_var=LD_LIBRARY_PATH
8085   shlibpath_overrides_runpath=yes
8086   if test "$with_gnu_ld" = yes; then
8087     need_lib_prefix=no
8088   fi
8089   need_version=yes
8090   ;;
8091
8092 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8093   version_type=linux
8094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8095   soname_spec='${libname}${release}${shared_ext}$major'
8096   shlibpath_var=LD_LIBRARY_PATH
8097   case $host_vendor in
8098     sni)
8099       shlibpath_overrides_runpath=no
8100       need_lib_prefix=no
8101       export_dynamic_flag_spec='${wl}-Blargedynsym'
8102       runpath_var=LD_RUN_PATH
8103       ;;
8104     siemens)
8105       need_lib_prefix=no
8106       ;;
8107     motorola)
8108       need_lib_prefix=no
8109       need_version=no
8110       shlibpath_overrides_runpath=no
8111       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8112       ;;
8113   esac
8114   ;;
8115
8116 sysv4*MP*)
8117   if test -d /usr/nec ;then
8118     version_type=linux
8119     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8120     soname_spec='$libname${shared_ext}.$major'
8121     shlibpath_var=LD_LIBRARY_PATH
8122   fi
8123   ;;
8124
8125 uts4*)
8126   version_type=linux
8127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8128   soname_spec='${libname}${release}${shared_ext}$major'
8129   shlibpath_var=LD_LIBRARY_PATH
8130   ;;
8131
8132 *)
8133   dynamic_linker=no
8134   ;;
8135 esac
8136 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8137 echo "${ECHO_T}$dynamic_linker" >&6
8138 test "$dynamic_linker" = no && can_build_shared=no
8139
8140 if test "x$enable_dlopen" != xyes; then
8141   enable_dlopen=unknown
8142   enable_dlopen_self=unknown
8143   enable_dlopen_self_static=unknown
8144 else
8145   lt_cv_dlopen=no
8146   lt_cv_dlopen_libs=
8147
8148   case $host_os in
8149   beos*)
8150     lt_cv_dlopen="load_add_on"
8151     lt_cv_dlopen_libs=
8152     lt_cv_dlopen_self=yes
8153     ;;
8154
8155   mingw* | pw32*)
8156     lt_cv_dlopen="LoadLibrary"
8157     lt_cv_dlopen_libs=
8158    ;;
8159
8160   cygwin*)
8161     lt_cv_dlopen="dlopen"
8162     lt_cv_dlopen_libs=
8163    ;;
8164
8165   darwin*)
8166   # if libdl is installed we need to link against it
8167     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8168 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8169 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8170   echo $ECHO_N "(cached) $ECHO_C" >&6
8171 else
8172   ac_check_lib_save_LIBS=$LIBS
8173 LIBS="-ldl  $LIBS"
8174 cat >conftest.$ac_ext <<_ACEOF
8175 #line $LINENO "configure"
8176 /* confdefs.h.  */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h.  */
8181
8182 /* Override any gcc2 internal prototype to avoid an error.  */
8183 #ifdef __cplusplus
8184 extern "C"
8185 #endif
8186 /* We use char because int might match the return type of a gcc2
8187    builtin and then its argument prototype would still apply.  */
8188 char dlopen ();
8189 int
8190 main ()
8191 {
8192 dlopen ();
8193   ;
8194   return 0;
8195 }
8196 _ACEOF
8197 rm -f conftest.$ac_objext conftest$ac_exeext
8198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8199   (eval $ac_link) 2>&5
8200   ac_status=$?
8201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202   (exit $ac_status); } &&
8203          { ac_try='test -s conftest$ac_exeext'
8204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205   (eval $ac_try) 2>&5
8206   ac_status=$?
8207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208   (exit $ac_status); }; }; then
8209   ac_cv_lib_dl_dlopen=yes
8210 else
8211   echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8213
8214 ac_cv_lib_dl_dlopen=no
8215 fi
8216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8217 LIBS=$ac_check_lib_save_LIBS
8218 fi
8219 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8220 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8221 if test $ac_cv_lib_dl_dlopen = yes; then
8222   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8223 else
8224
8225     lt_cv_dlopen="dyld"
8226     lt_cv_dlopen_libs=
8227     lt_cv_dlopen_self=yes
8228
8229 fi
8230
8231    ;;
8232
8233   *)
8234     echo "$as_me:$LINENO: checking for shl_load" >&5
8235 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8236 if test "${ac_cv_func_shl_load+set}" = set; then
8237   echo $ECHO_N "(cached) $ECHO_C" >&6
8238 else
8239   cat >conftest.$ac_ext <<_ACEOF
8240 #line $LINENO "configure"
8241 /* confdefs.h.  */
8242 _ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h.  */
8246 /* System header to define __stub macros and hopefully few prototypes,
8247     which can conflict with char shl_load (); below.
8248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8249     <limits.h> exists even on freestanding compilers.  */
8250 #ifdef __STDC__
8251 # include <limits.h>
8252 #else
8253 # include <assert.h>
8254 #endif
8255 /* Override any gcc2 internal prototype to avoid an error.  */
8256 #ifdef __cplusplus
8257 extern "C"
8258 {
8259 #endif
8260 /* We use char because int might match the return type of a gcc2
8261    builtin and then its argument prototype would still apply.  */
8262 char shl_load ();
8263 /* The GNU C library defines this for functions which it implements
8264     to always fail with ENOSYS.  Some functions are actually named
8265     something starting with __ and the normal name is an alias.  */
8266 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8267 choke me
8268 #else
8269 char (*f) () = shl_load;
8270 #endif
8271 #ifdef __cplusplus
8272 }
8273 #endif
8274
8275 int
8276 main ()
8277 {
8278 return f != shl_load;
8279   ;
8280   return 0;
8281 }
8282 _ACEOF
8283 rm -f conftest.$ac_objext conftest$ac_exeext
8284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285   (eval $ac_link) 2>&5
8286   ac_status=$?
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); } &&
8289          { ac_try='test -s conftest$ac_exeext'
8290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291   (eval $ac_try) 2>&5
8292   ac_status=$?
8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); }; }; then
8295   ac_cv_func_shl_load=yes
8296 else
8297   echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8299
8300 ac_cv_func_shl_load=no
8301 fi
8302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8303 fi
8304 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8305 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8306 if test $ac_cv_func_shl_load = yes; then
8307   lt_cv_dlopen="shl_load"
8308 else
8309   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8310 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8311 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8312   echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314   ac_check_lib_save_LIBS=$LIBS
8315 LIBS="-ldld  $LIBS"
8316 cat >conftest.$ac_ext <<_ACEOF
8317 #line $LINENO "configure"
8318 /* confdefs.h.  */
8319 _ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h.  */
8323
8324 /* Override any gcc2 internal prototype to avoid an error.  */
8325 #ifdef __cplusplus
8326 extern "C"
8327 #endif
8328 /* We use char because int might match the return type of a gcc2
8329    builtin and then its argument prototype would still apply.  */
8330 char shl_load ();
8331 int
8332 main ()
8333 {
8334 shl_load ();
8335   ;
8336   return 0;
8337 }
8338 _ACEOF
8339 rm -f conftest.$ac_objext conftest$ac_exeext
8340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8341   (eval $ac_link) 2>&5
8342   ac_status=$?
8343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344   (exit $ac_status); } &&
8345          { ac_try='test -s conftest$ac_exeext'
8346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347   (eval $ac_try) 2>&5
8348   ac_status=$?
8349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350   (exit $ac_status); }; }; then
8351   ac_cv_lib_dld_shl_load=yes
8352 else
8353   echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8355
8356 ac_cv_lib_dld_shl_load=no
8357 fi
8358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8359 LIBS=$ac_check_lib_save_LIBS
8360 fi
8361 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8362 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8363 if test $ac_cv_lib_dld_shl_load = yes; then
8364   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8365 else
8366   echo "$as_me:$LINENO: checking for dlopen" >&5
8367 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8368 if test "${ac_cv_func_dlopen+set}" = set; then
8369   echo $ECHO_N "(cached) $ECHO_C" >&6
8370 else
8371   cat >conftest.$ac_ext <<_ACEOF
8372 #line $LINENO "configure"
8373 /* confdefs.h.  */
8374 _ACEOF
8375 cat confdefs.h >>conftest.$ac_ext
8376 cat >>conftest.$ac_ext <<_ACEOF
8377 /* end confdefs.h.  */
8378 /* System header to define __stub macros and hopefully few prototypes,
8379     which can conflict with char dlopen (); below.
8380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8381     <limits.h> exists even on freestanding compilers.  */
8382 #ifdef __STDC__
8383 # include <limits.h>
8384 #else
8385 # include <assert.h>
8386 #endif
8387 /* Override any gcc2 internal prototype to avoid an error.  */
8388 #ifdef __cplusplus
8389 extern "C"
8390 {
8391 #endif
8392 /* We use char because int might match the return type of a gcc2
8393    builtin and then its argument prototype would still apply.  */
8394 char dlopen ();
8395 /* The GNU C library defines this for functions which it implements
8396     to always fail with ENOSYS.  Some functions are actually named
8397     something starting with __ and the normal name is an alias.  */
8398 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8399 choke me
8400 #else
8401 char (*f) () = dlopen;
8402 #endif
8403 #ifdef __cplusplus
8404 }
8405 #endif
8406
8407 int
8408 main ()
8409 {
8410 return f != dlopen;
8411   ;
8412   return 0;
8413 }
8414 _ACEOF
8415 rm -f conftest.$ac_objext conftest$ac_exeext
8416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8417   (eval $ac_link) 2>&5
8418   ac_status=$?
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); } &&
8421          { ac_try='test -s conftest$ac_exeext'
8422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423   (eval $ac_try) 2>&5
8424   ac_status=$?
8425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); }; }; then
8427   ac_cv_func_dlopen=yes
8428 else
8429   echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8431
8432 ac_cv_func_dlopen=no
8433 fi
8434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8435 fi
8436 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8437 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8438 if test $ac_cv_func_dlopen = yes; then
8439   lt_cv_dlopen="dlopen"
8440 else
8441   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8442 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8443 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8444   echo $ECHO_N "(cached) $ECHO_C" >&6
8445 else
8446   ac_check_lib_save_LIBS=$LIBS
8447 LIBS="-ldl  $LIBS"
8448 cat >conftest.$ac_ext <<_ACEOF
8449 #line $LINENO "configure"
8450 /* confdefs.h.  */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h.  */
8455
8456 /* Override any gcc2 internal prototype to avoid an error.  */
8457 #ifdef __cplusplus
8458 extern "C"
8459 #endif
8460 /* We use char because int might match the return type of a gcc2
8461    builtin and then its argument prototype would still apply.  */
8462 char dlopen ();
8463 int
8464 main ()
8465 {
8466 dlopen ();
8467   ;
8468   return 0;
8469 }
8470 _ACEOF
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8473   (eval $ac_link) 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); } &&
8477          { ac_try='test -s conftest$ac_exeext'
8478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479   (eval $ac_try) 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); }; }; then
8483   ac_cv_lib_dl_dlopen=yes
8484 else
8485   echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8487
8488 ac_cv_lib_dl_dlopen=no
8489 fi
8490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8491 LIBS=$ac_check_lib_save_LIBS
8492 fi
8493 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8494 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8495 if test $ac_cv_lib_dl_dlopen = yes; then
8496   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8497 else
8498   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8499 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8500 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8501   echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503   ac_check_lib_save_LIBS=$LIBS
8504 LIBS="-lsvld  $LIBS"
8505 cat >conftest.$ac_ext <<_ACEOF
8506 #line $LINENO "configure"
8507 /* confdefs.h.  */
8508 _ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h.  */
8512
8513 /* Override any gcc2 internal prototype to avoid an error.  */
8514 #ifdef __cplusplus
8515 extern "C"
8516 #endif
8517 /* We use char because int might match the return type of a gcc2
8518    builtin and then its argument prototype would still apply.  */
8519 char dlopen ();
8520 int
8521 main ()
8522 {
8523 dlopen ();
8524   ;
8525   return 0;
8526 }
8527 _ACEOF
8528 rm -f conftest.$ac_objext conftest$ac_exeext
8529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8530   (eval $ac_link) 2>&5
8531   ac_status=$?
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); } &&
8534          { ac_try='test -s conftest$ac_exeext'
8535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536   (eval $ac_try) 2>&5
8537   ac_status=$?
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); }; }; then
8540   ac_cv_lib_svld_dlopen=yes
8541 else
8542   echo "$as_me: failed program was:" >&5
8543 sed 's/^/| /' conftest.$ac_ext >&5
8544
8545 ac_cv_lib_svld_dlopen=no
8546 fi
8547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8548 LIBS=$ac_check_lib_save_LIBS
8549 fi
8550 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8551 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8552 if test $ac_cv_lib_svld_dlopen = yes; then
8553   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8554 else
8555   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8556 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8557 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8558   echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560   ac_check_lib_save_LIBS=$LIBS
8561 LIBS="-ldld  $LIBS"
8562 cat >conftest.$ac_ext <<_ACEOF
8563 #line $LINENO "configure"
8564 /* confdefs.h.  */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h.  */
8569
8570 /* Override any gcc2 internal prototype to avoid an error.  */
8571 #ifdef __cplusplus
8572 extern "C"
8573 #endif
8574 /* We use char because int might match the return type of a gcc2
8575    builtin and then its argument prototype would still apply.  */
8576 char dld_link ();
8577 int
8578 main ()
8579 {
8580 dld_link ();
8581   ;
8582   return 0;
8583 }
8584 _ACEOF
8585 rm -f conftest.$ac_objext conftest$ac_exeext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8587   (eval $ac_link) 2>&5
8588   ac_status=$?
8589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590   (exit $ac_status); } &&
8591          { ac_try='test -s conftest$ac_exeext'
8592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593   (eval $ac_try) 2>&5
8594   ac_status=$?
8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   (exit $ac_status); }; }; then
8597   ac_cv_lib_dld_dld_link=yes
8598 else
8599   echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8601
8602 ac_cv_lib_dld_dld_link=no
8603 fi
8604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8605 LIBS=$ac_check_lib_save_LIBS
8606 fi
8607 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8608 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8609 if test $ac_cv_lib_dld_dld_link = yes; then
8610   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8611 fi
8612
8613
8614 fi
8615
8616
8617 fi
8618
8619
8620 fi
8621
8622
8623 fi
8624
8625
8626 fi
8627
8628     ;;
8629   esac
8630
8631   if test "x$lt_cv_dlopen" != xno; then
8632     enable_dlopen=yes
8633   else
8634     enable_dlopen=no
8635   fi
8636
8637   case $lt_cv_dlopen in
8638   dlopen)
8639     save_CPPFLAGS="$CPPFLAGS"
8640     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8641
8642     save_LDFLAGS="$LDFLAGS"
8643     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8644
8645     save_LIBS="$LIBS"
8646     LIBS="$lt_cv_dlopen_libs $LIBS"
8647
8648     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8649 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8650 if test "${lt_cv_dlopen_self+set}" = set; then
8651   echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653           if test "$cross_compiling" = yes; then :
8654   lt_cv_dlopen_self=cross
8655 else
8656   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8657   lt_status=$lt_dlunknown
8658   cat > conftest.$ac_ext <<EOF
8659 #line 8659 "configure"
8660 #include "confdefs.h"
8661
8662 #if HAVE_DLFCN_H
8663 #include <dlfcn.h>
8664 #endif
8665
8666 #include <stdio.h>
8667
8668 #ifdef RTLD_GLOBAL
8669 #  define LT_DLGLOBAL           RTLD_GLOBAL
8670 #else
8671 #  ifdef DL_GLOBAL
8672 #    define LT_DLGLOBAL         DL_GLOBAL
8673 #  else
8674 #    define LT_DLGLOBAL         0
8675 #  endif
8676 #endif
8677
8678 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8679    find out it does not work in some platform. */
8680 #ifndef LT_DLLAZY_OR_NOW
8681 #  ifdef RTLD_LAZY
8682 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8683 #  else
8684 #    ifdef DL_LAZY
8685 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8686 #    else
8687 #      ifdef RTLD_NOW
8688 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8689 #      else
8690 #        ifdef DL_NOW
8691 #          define LT_DLLAZY_OR_NOW      DL_NOW
8692 #        else
8693 #          define LT_DLLAZY_OR_NOW      0
8694 #        endif
8695 #      endif
8696 #    endif
8697 #  endif
8698 #endif
8699
8700 #ifdef __cplusplus
8701 extern "C" void exit (int);
8702 #endif
8703
8704 void fnord() { int i=42;}
8705 int main ()
8706 {
8707   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8708   int status = $lt_dlunknown;
8709
8710   if (self)
8711     {
8712       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8713       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8714       /* dlclose (self); */
8715     }
8716
8717     exit (status);
8718 }
8719 EOF
8720   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8721   (eval $ac_link) 2>&5
8722   ac_status=$?
8723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8725     (./conftest; exit; ) 2>/dev/null
8726     lt_status=$?
8727     case x$lt_status in
8728       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8729       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8730       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8731     esac
8732   else :
8733     # compilation failed
8734     lt_cv_dlopen_self=no
8735   fi
8736 fi
8737 rm -fr conftest*
8738
8739
8740 fi
8741 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8742 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8743
8744     if test "x$lt_cv_dlopen_self" = xyes; then
8745       LDFLAGS="$LDFLAGS $link_static_flag"
8746       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8747 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8748 if test "${lt_cv_dlopen_self_static+set}" = set; then
8749   echo $ECHO_N "(cached) $ECHO_C" >&6
8750 else
8751           if test "$cross_compiling" = yes; then :
8752   lt_cv_dlopen_self_static=cross
8753 else
8754   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8755   lt_status=$lt_dlunknown
8756   cat > conftest.$ac_ext <<EOF
8757 #line 8757 "configure"
8758 #include "confdefs.h"
8759
8760 #if HAVE_DLFCN_H
8761 #include <dlfcn.h>
8762 #endif
8763
8764 #include <stdio.h>
8765
8766 #ifdef RTLD_GLOBAL
8767 #  define LT_DLGLOBAL           RTLD_GLOBAL
8768 #else
8769 #  ifdef DL_GLOBAL
8770 #    define LT_DLGLOBAL         DL_GLOBAL
8771 #  else
8772 #    define LT_DLGLOBAL         0
8773 #  endif
8774 #endif
8775
8776 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8777    find out it does not work in some platform. */
8778 #ifndef LT_DLLAZY_OR_NOW
8779 #  ifdef RTLD_LAZY
8780 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8781 #  else
8782 #    ifdef DL_LAZY
8783 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8784 #    else
8785 #      ifdef RTLD_NOW
8786 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8787 #      else
8788 #        ifdef DL_NOW
8789 #          define LT_DLLAZY_OR_NOW      DL_NOW
8790 #        else
8791 #          define LT_DLLAZY_OR_NOW      0
8792 #        endif
8793 #      endif
8794 #    endif
8795 #  endif
8796 #endif
8797
8798 #ifdef __cplusplus
8799 extern "C" void exit (int);
8800 #endif
8801
8802 void fnord() { int i=42;}
8803 int main ()
8804 {
8805   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8806   int status = $lt_dlunknown;
8807
8808   if (self)
8809     {
8810       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8811       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8812       /* dlclose (self); */
8813     }
8814
8815     exit (status);
8816 }
8817 EOF
8818   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8819   (eval $ac_link) 2>&5
8820   ac_status=$?
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8823     (./conftest; exit; ) 2>/dev/null
8824     lt_status=$?
8825     case x$lt_status in
8826       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8827       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8828       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8829     esac
8830   else :
8831     # compilation failed
8832     lt_cv_dlopen_self_static=no
8833   fi
8834 fi
8835 rm -fr conftest*
8836
8837
8838 fi
8839 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8840 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8841     fi
8842
8843     CPPFLAGS="$save_CPPFLAGS"
8844     LDFLAGS="$save_LDFLAGS"
8845     LIBS="$save_LIBS"
8846     ;;
8847   esac
8848
8849   case $lt_cv_dlopen_self in
8850   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8851   *) enable_dlopen_self=unknown ;;
8852   esac
8853
8854   case $lt_cv_dlopen_self_static in
8855   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8856   *) enable_dlopen_self_static=unknown ;;
8857   esac
8858 fi
8859
8860
8861 # Report which librarie types wil actually be built
8862 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8863 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8864 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8865 echo "${ECHO_T}$can_build_shared" >&6
8866
8867 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8868 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8869 test "$can_build_shared" = "no" && enable_shared=no
8870
8871 # On AIX, shared libraries and static libraries use the same namespace, and
8872 # are all built from PIC.
8873 case "$host_os" in
8874 aix3*)
8875   test "$enable_shared" = yes && enable_static=no
8876   if test -n "$RANLIB"; then
8877     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8878     postinstall_cmds='$RANLIB $lib'
8879   fi
8880   ;;
8881
8882 aix4*)
8883   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8884     test "$enable_shared" = yes && enable_static=no
8885   fi
8886   ;;
8887   darwin* | rhapsody*)
8888   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8889     archive_cmds_need_lc=no
8890     case "$host_os" in
8891     rhapsody* | darwin1.[012])
8892       allow_undefined_flag='-undefined suppress'
8893       ;;
8894     *) # Darwin 1.3 on
8895       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8896       ;;
8897     esac
8898     # FIXME: Relying on posixy $() will cause problems for
8899     #        cross-compilation, but unfortunately the echo tests do not
8900     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8901     #          `"' quotes if we put them in here... so don't!
8902                 output_verbose_link_cmd='echo'
8903     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8904     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8905     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8906                   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}'
8907                   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}'
8908     hardcode_direct=no
8909     hardcode_automatic=yes
8910     hardcode_shlibpath_var=unsupported
8911     whole_archive_flag_spec='-all_load $convenience'
8912     link_all_deplibs=yes
8913     fi
8914     ;;
8915 esac
8916 echo "$as_me:$LINENO: result: $enable_shared" >&5
8917 echo "${ECHO_T}$enable_shared" >&6
8918
8919 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8920 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8921 # Make sure either enable_shared or enable_static is yes.
8922 test "$enable_shared" = yes || enable_static=yes
8923 echo "$as_me:$LINENO: result: $enable_static" >&5
8924 echo "${ECHO_T}$enable_static" >&6
8925
8926 # The else clause should only fire when bootstrapping the
8927 # libtool distribution, otherwise you forgot to ship ltmain.sh
8928 # with your package, and you will get complaints that there are
8929 # no rules to generate ltmain.sh.
8930 if test -f "$ltmain"; then
8931   # See if we are running on zsh, and set the options which allow our commands through
8932   # without removal of \ escapes.
8933   if test -n "${ZSH_VERSION+set}" ; then
8934     setopt NO_GLOB_SUBST
8935   fi
8936   # Now quote all the things that may contain metacharacters while being
8937   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8938   # variables and quote the copies for generation of the libtool script.
8939   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8940     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8941     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8942     deplibs_check_method reload_flag reload_cmds need_locks \
8943     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8944     lt_cv_sys_global_symbol_to_c_name_address \
8945     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8946     old_postinstall_cmds old_postuninstall_cmds \
8947     compiler \
8948     CC \
8949     LD \
8950     lt_prog_compiler_wl \
8951     lt_prog_compiler_pic \
8952     lt_prog_compiler_static \
8953     lt_prog_compiler_no_builtin_flag \
8954     export_dynamic_flag_spec \
8955     thread_safe_flag_spec \
8956     whole_archive_flag_spec \
8957     enable_shared_with_static_runtimes \
8958     old_archive_cmds \
8959     old_archive_from_new_cmds \
8960     predep_objects \
8961     postdep_objects \
8962     predeps \
8963     postdeps \
8964     compiler_lib_search_path \
8965     archive_cmds \
8966     archive_expsym_cmds \
8967     postinstall_cmds \
8968     postuninstall_cmds \
8969     old_archive_from_expsyms_cmds \
8970     allow_undefined_flag \
8971     no_undefined_flag \
8972     export_symbols_cmds \
8973     hardcode_libdir_flag_spec \
8974     hardcode_libdir_flag_spec_ld \
8975     hardcode_libdir_separator \
8976     hardcode_automatic \
8977     module_cmds \
8978     module_expsym_cmds \
8979     lt_cv_prog_compiler_c_o \
8980     exclude_expsyms \
8981     include_expsyms; do
8982
8983     case $var in
8984     old_archive_cmds | \
8985     old_archive_from_new_cmds | \
8986     archive_cmds | \
8987     archive_expsym_cmds | \
8988     module_cmds | \
8989     module_expsym_cmds | \
8990     old_archive_from_expsyms_cmds | \
8991     export_symbols_cmds | \
8992     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8993     postinstall_cmds | postuninstall_cmds | \
8994     old_postinstall_cmds | old_postuninstall_cmds | \
8995     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8996       # Double-quote double-evaled strings.
8997       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8998       ;;
8999     *)
9000       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9001       ;;
9002     esac
9003   done
9004
9005   case $lt_echo in
9006   *'\$0 --fallback-echo"')
9007     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9008     ;;
9009   esac
9010
9011 cfgfile="${ofile}T"
9012   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9013   $rm -f "$cfgfile"
9014   { echo "$as_me:$LINENO: creating $ofile" >&5
9015 echo "$as_me: creating $ofile" >&6;}
9016
9017   cat <<__EOF__ >> "$cfgfile"
9018 #! $SHELL
9019
9020 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9021 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9022 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9023 #
9024 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9025 # Free Software Foundation, Inc.
9026 #
9027 # This file is part of GNU Libtool:
9028 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9029 #
9030 # This program is free software; you can redistribute it and/or modify
9031 # it under the terms of the GNU General Public License as published by
9032 # the Free Software Foundation; either version 2 of the License, or
9033 # (at your option) any later version.
9034 #
9035 # This program is distributed in the hope that it will be useful, but
9036 # WITHOUT ANY WARRANTY; without even the implied warranty of
9037 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9038 # General Public License for more details.
9039 #
9040 # You should have received a copy of the GNU General Public License
9041 # along with this program; if not, write to the Free Software
9042 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9043 #
9044 # As a special exception to the GNU General Public License, if you
9045 # distribute this file as part of a program that contains a
9046 # configuration script generated by Autoconf, you may include it under
9047 # the same distribution terms that you use for the rest of that program.
9048
9049 # A sed program that does not truncate output.
9050 SED=$lt_SED
9051
9052 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9053 Xsed="$SED -e s/^X//"
9054
9055 # The HP-UX ksh and POSIX shell print the target directory to stdout
9056 # if CDPATH is set.
9057 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9058
9059 # The names of the tagged configurations supported by this script.
9060 available_tags=
9061
9062 # ### BEGIN LIBTOOL CONFIG
9063
9064 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9065
9066 # Shell to use when invoking shell scripts.
9067 SHELL=$lt_SHELL
9068
9069 # Whether or not to build shared libraries.
9070 build_libtool_libs=$enable_shared
9071
9072 # Whether or not to build static libraries.
9073 build_old_libs=$enable_static
9074
9075 # Whether or not to add -lc for building shared libraries.
9076 build_libtool_need_lc=$archive_cmds_need_lc
9077
9078 # Whether or not to disallow shared libs when runtime libs are static
9079 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9080
9081 # Whether or not to optimize for fast installation.
9082 fast_install=$enable_fast_install
9083
9084 # The host system.
9085 host_alias=$host_alias
9086 host=$host
9087
9088 # An echo program that does not interpret backslashes.
9089 echo=$lt_echo
9090
9091 # The archiver.
9092 AR=$lt_AR
9093 AR_FLAGS=$lt_AR_FLAGS
9094
9095 # A C compiler.
9096 LTCC=$lt_LTCC
9097
9098 # A language-specific compiler.
9099 CC=$lt_compiler
9100
9101 # Is the compiler the GNU C compiler?
9102 with_gcc=$GCC
9103
9104 # An ERE matcher.
9105 EGREP=$lt_EGREP
9106
9107 # The linker used to build libraries.
9108 LD=$lt_LD
9109
9110 # Whether we need hard or soft links.
9111 LN_S=$lt_LN_S
9112
9113 # A BSD-compatible nm program.
9114 NM=$lt_NM
9115
9116 # A symbol stripping program
9117 STRIP=$STRIP
9118
9119 # Used to examine libraries when file_magic_cmd begins "file"
9120 MAGIC_CMD=$MAGIC_CMD
9121
9122 # Used on cygwin: DLL creation program.
9123 DLLTOOL="$DLLTOOL"
9124
9125 # Used on cygwin: object dumper.
9126 OBJDUMP="$OBJDUMP"
9127
9128 # Used on cygwin: assembler.
9129 AS="$AS"
9130
9131 # The name of the directory that contains temporary libtool files.
9132 objdir=$objdir
9133
9134 # How to create reloadable object files.
9135 reload_flag=$lt_reload_flag
9136 reload_cmds=$lt_reload_cmds
9137
9138 # How to pass a linker flag through the compiler.
9139 wl=$lt_lt_prog_compiler_wl
9140
9141 # Object file suffix (normally "o").
9142 objext="$ac_objext"
9143
9144 # Old archive suffix (normally "a").
9145 libext="$libext"
9146
9147 # Shared library suffix (normally ".so").
9148 shrext='$shrext'
9149
9150 # Executable file suffix (normally "").
9151 exeext="$exeext"
9152
9153 # Additional compiler flags for building library objects.
9154 pic_flag=$lt_lt_prog_compiler_pic
9155 pic_mode=$pic_mode
9156
9157 # What is the maximum length of a command?
9158 max_cmd_len=$lt_cv_sys_max_cmd_len
9159
9160 # Does compiler simultaneously support -c and -o options?
9161 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9162
9163 # Must we lock files when doing compilation ?
9164 need_locks=$lt_need_locks
9165
9166 # Do we need the lib prefix for modules?
9167 need_lib_prefix=$need_lib_prefix
9168
9169 # Do we need a version for libraries?
9170 need_version=$need_version
9171
9172 # Whether dlopen is supported.
9173 dlopen_support=$enable_dlopen
9174
9175 # Whether dlopen of programs is supported.
9176 dlopen_self=$enable_dlopen_self
9177
9178 # Whether dlopen of statically linked programs is supported.
9179 dlopen_self_static=$enable_dlopen_self_static
9180
9181 # Compiler flag to prevent dynamic linking.
9182 link_static_flag=$lt_lt_prog_compiler_static
9183
9184 # Compiler flag to turn off builtin functions.
9185 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9186
9187 # Compiler flag to allow reflexive dlopens.
9188 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9189
9190 # Compiler flag to generate shared objects directly from archives.
9191 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9192
9193 # Compiler flag to generate thread-safe objects.
9194 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9195
9196 # Library versioning type.
9197 version_type=$version_type
9198
9199 # Format of library name prefix.
9200 libname_spec=$lt_libname_spec
9201
9202 # List of archive names.  First name is the real one, the rest are links.
9203 # The last name is the one that the linker finds with -lNAME.
9204 library_names_spec=$lt_library_names_spec
9205
9206 # The coded name of the library, if different from the real name.
9207 soname_spec=$lt_soname_spec
9208
9209 # Commands used to build and install an old-style archive.
9210 RANLIB=$lt_RANLIB
9211 old_archive_cmds=$lt_old_archive_cmds
9212 old_postinstall_cmds=$lt_old_postinstall_cmds
9213 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9214
9215 # Create an old-style archive from a shared archive.
9216 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9217
9218 # Create a temporary old-style archive to link instead of a shared archive.
9219 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9220
9221 # Commands used to build and install a shared archive.
9222 archive_cmds=$lt_archive_cmds
9223 archive_expsym_cmds=$lt_archive_expsym_cmds
9224 postinstall_cmds=$lt_postinstall_cmds
9225 postuninstall_cmds=$lt_postuninstall_cmds
9226
9227 # Commands used to build a loadable module (assumed same as above if empty)
9228 module_cmds=$lt_module_cmds
9229 module_expsym_cmds=$lt_module_expsym_cmds
9230
9231 # Commands to strip libraries.
9232 old_striplib=$lt_old_striplib
9233 striplib=$lt_striplib
9234
9235 # Dependencies to place before the objects being linked to create a
9236 # shared library.
9237 predep_objects=$lt_predep_objects
9238
9239 # Dependencies to place after the objects being linked to create a
9240 # shared library.
9241 postdep_objects=$lt_postdep_objects
9242
9243 # Dependencies to place before the objects being linked to create a
9244 # shared library.
9245 predeps=$lt_predeps
9246
9247 # Dependencies to place after the objects being linked to create a
9248 # shared library.
9249 postdeps=$lt_postdeps
9250
9251 # The library search path used internally by the compiler when linking
9252 # a shared library.
9253 compiler_lib_search_path=$lt_compiler_lib_search_path
9254
9255 # Method to check whether dependent libraries are shared objects.
9256 deplibs_check_method=$lt_deplibs_check_method
9257
9258 # Command to use when deplibs_check_method == file_magic.
9259 file_magic_cmd=$lt_file_magic_cmd
9260
9261 # Flag that allows shared libraries with undefined symbols to be built.
9262 allow_undefined_flag=$lt_allow_undefined_flag
9263
9264 # Flag that forces no undefined symbols.
9265 no_undefined_flag=$lt_no_undefined_flag
9266
9267 # Commands used to finish a libtool library installation in a directory.
9268 finish_cmds=$lt_finish_cmds
9269
9270 # Same as above, but a single script fragment to be evaled but not shown.
9271 finish_eval=$lt_finish_eval
9272
9273 # Take the output of nm and produce a listing of raw symbols and C names.
9274 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9275
9276 # Transform the output of nm in a proper C declaration
9277 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9278
9279 # Transform the output of nm in a C name address pair
9280 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9281
9282 # This is the shared library runtime path variable.
9283 runpath_var=$runpath_var
9284
9285 # This is the shared library path variable.
9286 shlibpath_var=$shlibpath_var
9287
9288 # Is shlibpath searched before the hard-coded library search path?
9289 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9290
9291 # How to hardcode a shared library path into an executable.
9292 hardcode_action=$hardcode_action
9293
9294 # Whether we should hardcode library paths into libraries.
9295 hardcode_into_libs=$hardcode_into_libs
9296
9297 # Flag to hardcode \$libdir into a binary during linking.
9298 # This must work even if \$libdir does not exist.
9299 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9300
9301 # If ld is used when linking, flag to hardcode \$libdir into
9302 # a binary during linking. This must work even if \$libdir does
9303 # not exist.
9304 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9305
9306 # Whether we need a single -rpath flag with a separated argument.
9307 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9308
9309 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9310 # resulting binary.
9311 hardcode_direct=$hardcode_direct
9312
9313 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9314 # resulting binary.
9315 hardcode_minus_L=$hardcode_minus_L
9316
9317 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9318 # the resulting binary.
9319 hardcode_shlibpath_var=$hardcode_shlibpath_var
9320
9321 # Set to yes if building a shared library automatically hardcodes DIR into the library
9322 # and all subsequent libraries and executables linked against it.
9323 hardcode_automatic=$hardcode_automatic
9324
9325 # Variables whose values should be saved in libtool wrapper scripts and
9326 # restored at relink time.
9327 variables_saved_for_relink="$variables_saved_for_relink"
9328
9329 # Whether libtool must link a program against all its dependency libraries.
9330 link_all_deplibs=$link_all_deplibs
9331
9332 # Compile-time system search path for libraries
9333 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9334
9335 # Run-time system search path for libraries
9336 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9337
9338 # Fix the shell variable \$srcfile for the compiler.
9339 fix_srcfile_path="$fix_srcfile_path"
9340
9341 # Set to yes if exported symbols are required.
9342 always_export_symbols=$always_export_symbols
9343
9344 # The commands to list exported symbols.
9345 export_symbols_cmds=$lt_export_symbols_cmds
9346
9347 # The commands to extract the exported symbol list from a shared archive.
9348 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9349
9350 # Symbols that should not be listed in the preloaded symbols.
9351 exclude_expsyms=$lt_exclude_expsyms
9352
9353 # Symbols that must always be exported.
9354 include_expsyms=$lt_include_expsyms
9355
9356 # ### END LIBTOOL CONFIG
9357
9358 __EOF__
9359
9360
9361   case $host_os in
9362   aix3*)
9363     cat <<\EOF >> "$cfgfile"
9364
9365 # AIX sometimes has problems with the GCC collect2 program.  For some
9366 # reason, if we set the COLLECT_NAMES environment variable, the problems
9367 # vanish in a puff of smoke.
9368 if test "X${COLLECT_NAMES+set}" != Xset; then
9369   COLLECT_NAMES=
9370   export COLLECT_NAMES
9371 fi
9372 EOF
9373     ;;
9374   esac
9375
9376   # We use sed instead of cat because bash on DJGPP gets confused if
9377   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9378   # text mode, it properly converts lines to CR/LF.  This bash problem
9379   # is reportedly fixed, but why not run on old versions too?
9380   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9381
9382   mv -f "$cfgfile" "$ofile" || \
9383     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9384   chmod +x "$ofile"
9385
9386 else
9387   # If there is no Makefile yet, we rely on a make rule to execute
9388   # `config.status --recheck' to rerun these tests and create the
9389   # libtool script then.
9390   test -f Makefile && make "$ltmain"
9391 fi
9392
9393
9394 ac_ext=c
9395 ac_cpp='$CPP $CPPFLAGS'
9396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9399
9400 CC="$lt_save_CC"
9401
9402
9403 # Check whether --with-tags or --without-tags was given.
9404 if test "${with_tags+set}" = set; then
9405   withval="$with_tags"
9406   tagnames="$withval"
9407 fi;
9408
9409 if test -f "$ltmain" && test -n "$tagnames"; then
9410   if test ! -f "${ofile}"; then
9411     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9412 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9413   fi
9414
9415   if test -z "$LTCC"; then
9416     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9417     if test -z "$LTCC"; then
9418       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9419 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9420     else
9421       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9422 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9423     fi
9424   fi
9425
9426   # Extract list of available tagged configurations in $ofile.
9427   # Note that this assumes the entire list is on one line.
9428   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9429
9430   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9431   for tagname in $tagnames; do
9432     IFS="$lt_save_ifs"
9433     # Check whether tagname contains only valid characters
9434     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9435     "") ;;
9436     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9437 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9438    { (exit 1); exit 1; }; }
9439         ;;
9440     esac
9441
9442     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9443     then
9444       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9445 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9446    { (exit 1); exit 1; }; }
9447     fi
9448
9449     # Update the list of available tags.
9450     if test -n "$tagname"; then
9451       echo appending configuration tag \"$tagname\" to $ofile
9452
9453       case $tagname in
9454       CXX)
9455         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9456           ac_ext=cc
9457 ac_cpp='$CXXCPP $CPPFLAGS'
9458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9461
9462
9463
9464
9465 archive_cmds_need_lc_CXX=no
9466 allow_undefined_flag_CXX=
9467 always_export_symbols_CXX=no
9468 archive_expsym_cmds_CXX=
9469 export_dynamic_flag_spec_CXX=
9470 hardcode_direct_CXX=no
9471 hardcode_libdir_flag_spec_CXX=
9472 hardcode_libdir_flag_spec_ld_CXX=
9473 hardcode_libdir_separator_CXX=
9474 hardcode_minus_L_CXX=no
9475 hardcode_automatic_CXX=no
9476 module_cmds_CXX=
9477 module_expsym_cmds_CXX=
9478 link_all_deplibs_CXX=unknown
9479 old_archive_cmds_CXX=$old_archive_cmds
9480 no_undefined_flag_CXX=
9481 whole_archive_flag_spec_CXX=
9482 enable_shared_with_static_runtimes_CXX=no
9483
9484 # Dependencies to place before and after the object being linked:
9485 predep_objects_CXX=
9486 postdep_objects_CXX=
9487 predeps_CXX=
9488 postdeps_CXX=
9489 compiler_lib_search_path_CXX=
9490
9491 # Source file extension for C++ test sources.
9492 ac_ext=cc
9493
9494 # Object file extension for compiled C++ test sources.
9495 objext=o
9496 objext_CXX=$objext
9497
9498 # Code to be used in simple compile tests
9499 lt_simple_compile_test_code="int some_variable = 0;\n"
9500
9501 # Code to be used in simple link tests
9502 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9503
9504 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9505
9506 # If no C compiler was specified, use CC.
9507 LTCC=${LTCC-"$CC"}
9508
9509 # Allow CC to be a program name with arguments.
9510 compiler=$CC
9511
9512
9513 # Allow CC to be a program name with arguments.
9514 lt_save_CC=$CC
9515 lt_save_LD=$LD
9516 lt_save_GCC=$GCC
9517 GCC=$GXX
9518 lt_save_with_gnu_ld=$with_gnu_ld
9519 lt_save_path_LD=$lt_cv_path_LD
9520 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9521   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9522 else
9523   unset lt_cv_prog_gnu_ld
9524 fi
9525 if test -n "${lt_cv_path_LDCXX+set}"; then
9526   lt_cv_path_LD=$lt_cv_path_LDCXX
9527 else
9528   unset lt_cv_path_LD
9529 fi
9530 test -z "${LDCXX+set}" || LD=$LDCXX
9531 CC=${CXX-"c++"}
9532 compiler=$CC
9533 compiler_CXX=$CC
9534 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9535
9536 # We don't want -fno-exception wen compiling C++ code, so set the
9537 # no_builtin_flag separately
9538 if test "$GXX" = yes; then
9539   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9540 else
9541   lt_prog_compiler_no_builtin_flag_CXX=
9542 fi
9543
9544 if test "$GXX" = yes; then
9545   # Set up default GNU C++ configuration
9546
9547
9548 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9549 if test "${with_gnu_ld+set}" = set; then
9550   withval="$with_gnu_ld"
9551   test "$withval" = no || with_gnu_ld=yes
9552 else
9553   with_gnu_ld=no
9554 fi;
9555 ac_prog=ld
9556 if test "$GCC" = yes; then
9557   # Check if gcc -print-prog-name=ld gives a path.
9558   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9559 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9560   case $host in
9561   *-*-mingw*)
9562     # gcc leaves a trailing carriage return which upsets mingw
9563     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9564   *)
9565     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9566   esac
9567   case $ac_prog in
9568     # Accept absolute paths.
9569     [\\/]* | ?:[\\/]*)
9570       re_direlt='/[^/][^/]*/\.\./'
9571       # Canonicalize the path of ld
9572       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9573       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9574         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9575       done
9576       test -z "$LD" && LD="$ac_prog"
9577       ;;
9578   "")
9579     # If it fails, then pretend we aren't using GCC.
9580     ac_prog=ld
9581     ;;
9582   *)
9583     # If it is relative, then search for the first ld in PATH.
9584     with_gnu_ld=unknown
9585     ;;
9586   esac
9587 elif test "$with_gnu_ld" = yes; then
9588   echo "$as_me:$LINENO: checking for GNU ld" >&5
9589 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9590 else
9591   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9592 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9593 fi
9594 if test "${lt_cv_path_LD+set}" = set; then
9595   echo $ECHO_N "(cached) $ECHO_C" >&6
9596 else
9597   if test -z "$LD"; then
9598   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9599   for ac_dir in $PATH; do
9600     IFS="$lt_save_ifs"
9601     test -z "$ac_dir" && ac_dir=.
9602     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9603       lt_cv_path_LD="$ac_dir/$ac_prog"
9604       # Check to see if the program is GNU ld.  I'd rather use --version,
9605       # but apparently some GNU ld's only accept -v.
9606       # Break only if it was the GNU/non-GNU ld that we prefer.
9607       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9608       *GNU* | *'with BFD'*)
9609         test "$with_gnu_ld" != no && break
9610         ;;
9611       *)
9612         test "$with_gnu_ld" != yes && break
9613         ;;
9614       esac
9615     fi
9616   done
9617   IFS="$lt_save_ifs"
9618 else
9619   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9620 fi
9621 fi
9622
9623 LD="$lt_cv_path_LD"
9624 if test -n "$LD"; then
9625   echo "$as_me:$LINENO: result: $LD" >&5
9626 echo "${ECHO_T}$LD" >&6
9627 else
9628   echo "$as_me:$LINENO: result: no" >&5
9629 echo "${ECHO_T}no" >&6
9630 fi
9631 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9632 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9633    { (exit 1); exit 1; }; }
9634 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9635 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9636 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9637   echo $ECHO_N "(cached) $ECHO_C" >&6
9638 else
9639   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9640 case `"$LD" -v 2>&1 </dev/null` in
9641 *GNU* | *'with BFD'*)
9642   lt_cv_prog_gnu_ld=yes
9643   ;;
9644 *)
9645   lt_cv_prog_gnu_ld=no
9646   ;;
9647 esac
9648 fi
9649 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9650 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9651 with_gnu_ld=$lt_cv_prog_gnu_ld
9652
9653
9654
9655   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9656   # archiving commands below assume that GNU ld is being used.
9657   if test "$with_gnu_ld" = yes; then
9658     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9659     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'
9660
9661     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9662     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9663
9664     # If archive_cmds runs LD, not CC, wlarc should be empty
9665     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9666     #     investigate it a little bit more. (MM)
9667     wlarc='${wl}'
9668
9669     # ancient GNU ld didn't support --whole-archive et. al.
9670     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9671         grep 'no-whole-archive' > /dev/null; then
9672       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9673     else
9674       whole_archive_flag_spec_CXX=
9675     fi
9676   else
9677     with_gnu_ld=no
9678     wlarc=
9679
9680     # A generic and very simple default shared library creation
9681     # command for GNU C++ for the case where it uses the native
9682     # linker, instead of GNU ld.  If possible, this setting should
9683     # overridden to take advantage of the native linker features on
9684     # the platform it is being used on.
9685     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9686   fi
9687
9688   # Commands to make compiler produce verbose output that lists
9689   # what "hidden" libraries, object files and flags are used when
9690   # linking a shared library.
9691   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9692
9693 else
9694   GXX=no
9695   with_gnu_ld=no
9696   wlarc=
9697 fi
9698
9699 # PORTME: fill in a description of your system's C++ link characteristics
9700 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9701 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9702 ld_shlibs_CXX=yes
9703 case $host_os in
9704   aix3*)
9705     # FIXME: insert proper C++ library support
9706     ld_shlibs_CXX=no
9707     ;;
9708   aix4* | aix5*)
9709     if test "$host_cpu" = ia64; then
9710       # On IA64, the linker does run time linking by default, so we don't
9711       # have to do anything special.
9712       aix_use_runtimelinking=no
9713       exp_sym_flag='-Bexport'
9714       no_entry_flag=""
9715     else
9716       aix_use_runtimelinking=no
9717
9718       # Test if we are trying to use run time linking or normal
9719       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9720       # need to do runtime linking.
9721       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9722         for ld_flag in $LDFLAGS; do
9723           case $ld_flag in
9724           *-brtl*)
9725             aix_use_runtimelinking=yes
9726             break
9727             ;;
9728           esac
9729         done
9730       esac
9731
9732       exp_sym_flag='-bexport'
9733       no_entry_flag='-bnoentry'
9734     fi
9735
9736     # When large executables or shared objects are built, AIX ld can
9737     # have problems creating the table of contents.  If linking a library
9738     # or program results in "error TOC overflow" add -mminimal-toc to
9739     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9740     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9741
9742     archive_cmds_CXX=''
9743     hardcode_direct_CXX=yes
9744     hardcode_libdir_separator_CXX=':'
9745     link_all_deplibs_CXX=yes
9746
9747     if test "$GXX" = yes; then
9748       case $host_os in aix4.012|aix4.012.*)
9749       # We only want to do this on AIX 4.2 and lower, the check
9750       # below for broken collect2 doesn't work under 4.3+
9751         collect2name=`${CC} -print-prog-name=collect2`
9752         if test -f "$collect2name" && \
9753            strings "$collect2name" | grep resolve_lib_name >/dev/null
9754         then
9755           # We have reworked collect2
9756           hardcode_direct_CXX=yes
9757         else
9758           # We have old collect2
9759           hardcode_direct_CXX=unsupported
9760           # It fails to find uninstalled libraries when the uninstalled
9761           # path is not listed in the libpath.  Setting hardcode_minus_L
9762           # to unsupported forces relinking
9763           hardcode_minus_L_CXX=yes
9764           hardcode_libdir_flag_spec_CXX='-L$libdir'
9765           hardcode_libdir_separator_CXX=
9766         fi
9767       esac
9768       shared_flag='-shared'
9769     else
9770       # not using gcc
9771       if test "$host_cpu" = ia64; then
9772         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9773         # chokes on -Wl,-G. The following line is correct:
9774         shared_flag='-G'
9775       else
9776         if test "$aix_use_runtimelinking" = yes; then
9777           shared_flag='${wl}-G'
9778         else
9779           shared_flag='${wl}-bM:SRE'
9780         fi
9781       fi
9782     fi
9783
9784     # It seems that -bexpall does not export symbols beginning with
9785     # underscore (_), so it is better to generate a list of symbols to export.
9786     always_export_symbols_CXX=yes
9787     if test "$aix_use_runtimelinking" = yes; then
9788       # Warning - without using the other runtime loading flags (-brtl),
9789       # -berok will link without error, but may produce a broken library.
9790       allow_undefined_flag_CXX='-berok'
9791       # Determine the default libpath from the value encoded in an empty executable.
9792       cat >conftest.$ac_ext <<_ACEOF
9793 #line $LINENO "configure"
9794 /* confdefs.h.  */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h.  */
9799
9800 int
9801 main ()
9802 {
9803
9804   ;
9805   return 0;
9806 }
9807 _ACEOF
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9810   (eval $ac_link) 2>&5
9811   ac_status=$?
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); } &&
9814          { ac_try='test -s conftest$ac_exeext'
9815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816   (eval $ac_try) 2>&5
9817   ac_status=$?
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); }; }; then
9820
9821 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9822 }'`
9823 # Check for a 64-bit object if we didn't find anything.
9824 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; }
9825 }'`; fi
9826 else
9827   echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9829
9830 fi
9831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9832 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9833
9834       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9835
9836       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"
9837      else
9838       if test "$host_cpu" = ia64; then
9839         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9840         allow_undefined_flag_CXX="-z nodefs"
9841         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"
9842       else
9843         # Determine the default libpath from the value encoded in an empty executable.
9844         cat >conftest.$ac_ext <<_ACEOF
9845 #line $LINENO "configure"
9846 /* confdefs.h.  */
9847 _ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h.  */
9851
9852 int
9853 main ()
9854 {
9855
9856   ;
9857   return 0;
9858 }
9859 _ACEOF
9860 rm -f conftest.$ac_objext conftest$ac_exeext
9861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9862   (eval $ac_link) 2>&5
9863   ac_status=$?
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); } &&
9866          { ac_try='test -s conftest$ac_exeext'
9867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868   (eval $ac_try) 2>&5
9869   ac_status=$?
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); }; }; then
9872
9873 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9874 }'`
9875 # Check for a 64-bit object if we didn't find anything.
9876 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; }
9877 }'`; fi
9878 else
9879   echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9881
9882 fi
9883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9884 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9885
9886         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9887         # Warning - without using the other run time loading flags,
9888         # -berok will link without error, but may produce a broken library.
9889         no_undefined_flag_CXX=' ${wl}-bernotok'
9890         allow_undefined_flag_CXX=' ${wl}-berok'
9891         # -bexpall does not export symbols beginning with underscore (_)
9892         always_export_symbols_CXX=yes
9893         # Exported symbols can be pulled into shared objects from archives
9894         whole_archive_flag_spec_CXX=' '
9895         archive_cmds_need_lc_CXX=yes
9896         # This is similar to how AIX traditionally builds it's shared libraries.
9897         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'
9898       fi
9899     fi
9900     ;;
9901   chorus*)
9902     case $cc_basename in
9903       *)
9904         # FIXME: insert proper C++ library support
9905         ld_shlibs_CXX=no
9906         ;;
9907     esac
9908     ;;
9909
9910   cygwin* | mingw* | pw32*)
9911     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9912     # as there is no search path for DLLs.
9913     hardcode_libdir_flag_spec_CXX='-L$libdir'
9914     allow_undefined_flag_CXX=unsupported
9915     always_export_symbols_CXX=no
9916     enable_shared_with_static_runtimes_CXX=yes
9917
9918     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9919       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'
9920       # If the export-symbols file already is a .def file (1st line
9921       # is EXPORTS), use it as is; otherwise, prepend...
9922       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9923         cp $export_symbols $output_objdir/$soname.def;
9924       else
9925         echo EXPORTS > $output_objdir/$soname.def;
9926         cat $export_symbols >> $output_objdir/$soname.def;
9927       fi~
9928       $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'
9929     else
9930       ld_shlibs_CXX=no
9931     fi
9932   ;;
9933
9934   darwin* | rhapsody*)
9935    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9936     archive_cmds_need_lc_CXX=no
9937     case "$host_os" in
9938     rhapsody* | darwin1.[012])
9939       allow_undefined_flag_CXX='-undefined suppress'
9940       ;;
9941     *) # Darwin 1.3 on
9942       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9943       ;;
9944     esac
9945         lt_int_apple_cc_single_mod=no
9946         output_verbose_link_cmd='echo'
9947         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9948           lt_int_apple_cc_single_mod=yes
9949         fi
9950         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9951           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9952         else
9953         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'
9954       fi
9955       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9956
9957     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9958       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9959         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}'
9960       else
9961         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}'
9962       fi
9963         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}'
9964     hardcode_direct_CXX=no
9965     hardcode_automatic_CXX=yes
9966     hardcode_shlibpath_var_CXX=unsupported
9967     whole_archive_flag_spec_CXX='-all_load $convenience'
9968     link_all_deplibs_CXX=yes
9969    fi
9970     ;;
9971
9972   dgux*)
9973     case $cc_basename in
9974       ec++)
9975         # FIXME: insert proper C++ library support
9976         ld_shlibs_CXX=no
9977         ;;
9978       ghcx)
9979         # Green Hills C++ Compiler
9980         # FIXME: insert proper C++ library support
9981         ld_shlibs_CXX=no
9982         ;;
9983       *)
9984         # FIXME: insert proper C++ library support
9985         ld_shlibs_CXX=no
9986         ;;
9987     esac
9988     ;;
9989   freebsd12*)
9990     # C++ shared libraries reported to be fairly broken before switch to ELF
9991     ld_shlibs_CXX=no
9992     ;;
9993   freebsd-elf*)
9994     archive_cmds_need_lc_CXX=no
9995     ;;
9996   freebsd*)
9997     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9998     # conventions
9999     ld_shlibs_CXX=yes
10000     ;;
10001   gnu*)
10002     ;;
10003   hpux9*)
10004     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10005     hardcode_libdir_separator_CXX=:
10006     export_dynamic_flag_spec_CXX='${wl}-E'
10007     hardcode_direct_CXX=yes
10008     hardcode_minus_L_CXX=yes # Not in the search PATH,
10009                                 # but as the default
10010                                 # location of the library.
10011
10012     case $cc_basename in
10013     CC)
10014       # FIXME: insert proper C++ library support
10015       ld_shlibs_CXX=no
10016       ;;
10017     aCC)
10018       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'
10019       # Commands to make compiler produce verbose output that lists
10020       # what "hidden" libraries, object files and flags are used when
10021       # linking a shared library.
10022       #
10023       # There doesn't appear to be a way to prevent this compiler from
10024       # explicitly linking system object files so we need to strip them
10025       # from the output so that they don't get included in the library
10026       # dependencies.
10027       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'
10028       ;;
10029     *)
10030       if test "$GXX" = yes; then
10031         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'
10032       else
10033         # FIXME: insert proper C++ library support
10034         ld_shlibs_CXX=no
10035       fi
10036       ;;
10037     esac
10038     ;;
10039   hpux10*|hpux11*)
10040     if test $with_gnu_ld = no; then
10041       case "$host_cpu" in
10042       hppa*64*)
10043         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10044         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10045         hardcode_libdir_separator_CXX=:
10046         ;;
10047       ia64*)
10048         hardcode_libdir_flag_spec_CXX='-L$libdir'
10049         ;;
10050       *)
10051         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10052         hardcode_libdir_separator_CXX=:
10053         export_dynamic_flag_spec_CXX='${wl}-E'
10054         ;;
10055       esac
10056     fi
10057     case "$host_cpu" in
10058     hppa*64*)
10059       hardcode_direct_CXX=no
10060       hardcode_shlibpath_var_CXX=no
10061       ;;
10062     ia64*)
10063       hardcode_direct_CXX=no
10064       hardcode_shlibpath_var_CXX=no
10065       hardcode_minus_L_CXX=yes # Not in the search PATH,
10066                                               # but as the default
10067                                               # location of the library.
10068       ;;
10069     *)
10070       hardcode_direct_CXX=yes
10071       hardcode_minus_L_CXX=yes # Not in the search PATH,
10072                                               # but as the default
10073                                               # location of the library.
10074       ;;
10075     esac
10076
10077     case $cc_basename in
10078       CC)
10079         # FIXME: insert proper C++ library support
10080         ld_shlibs_CXX=no
10081         ;;
10082       aCC)
10083         case "$host_cpu" in
10084         hppa*64*|ia64*)
10085           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10086           ;;
10087         *)
10088           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10089           ;;
10090         esac
10091         # Commands to make compiler produce verbose output that lists
10092         # what "hidden" libraries, object files and flags are used when
10093         # linking a shared library.
10094         #
10095         # There doesn't appear to be a way to prevent this compiler from
10096         # explicitly linking system object files so we need to strip them
10097         # from the output so that they don't get included in the library
10098         # dependencies.
10099         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'
10100         ;;
10101       *)
10102         if test "$GXX" = yes; then
10103           if test $with_gnu_ld = no; then
10104             case "$host_cpu" in
10105             ia64*|hppa*64*)
10106               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10107               ;;
10108             *)
10109               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'
10110               ;;
10111             esac
10112           fi
10113         else
10114           # FIXME: insert proper C++ library support
10115           ld_shlibs_CXX=no
10116         fi
10117         ;;
10118     esac
10119     ;;
10120   irix5* | irix6*)
10121     case $cc_basename in
10122       CC)
10123         # SGI C++
10124         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'
10125
10126         # Archives containing C++ object files must be created using
10127         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10128         # necessary to make sure instantiated templates are included
10129         # in the archive.
10130         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10131         ;;
10132       *)
10133         if test "$GXX" = yes; then
10134           if test "$with_gnu_ld" = no; then
10135             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'
10136           else
10137             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'
10138           fi
10139         fi
10140         link_all_deplibs_CXX=yes
10141         ;;
10142     esac
10143     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10144     hardcode_libdir_separator_CXX=:
10145     ;;
10146   linux*)
10147     case $cc_basename in
10148       KCC)
10149         # Kuck and Associates, Inc. (KAI) C++ Compiler
10150
10151         # KCC will only create a shared library if the output file
10152         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10153         # to its proper name (with version) after linking.
10154         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'
10155         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'
10156         # Commands to make compiler produce verbose output that lists
10157         # what "hidden" libraries, object files and flags are used when
10158         # linking a shared library.
10159         #
10160         # There doesn't appear to be a way to prevent this compiler from
10161         # explicitly linking system object files so we need to strip them
10162         # from the output so that they don't get included in the library
10163         # dependencies.
10164         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'
10165
10166         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10167         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10168
10169         # Archives containing C++ object files must be created using
10170         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10171         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10172         ;;
10173       icpc)
10174         # Intel C++
10175         with_gnu_ld=yes
10176         archive_cmds_need_lc_CXX=no
10177         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10178         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'
10179         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10180         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10181         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10182         ;;
10183       cxx)
10184         # Compaq C++
10185         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10186         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'
10187
10188         runpath_var=LD_RUN_PATH
10189         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10190         hardcode_libdir_separator_CXX=:
10191
10192         # Commands to make compiler produce verbose output that lists
10193         # what "hidden" libraries, object files and flags are used when
10194         # linking a shared library.
10195         #
10196         # There doesn't appear to be a way to prevent this compiler from
10197         # explicitly linking system object files so we need to strip them
10198         # from the output so that they don't get included in the library
10199         # dependencies.
10200         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'
10201         ;;
10202     esac
10203     ;;
10204   lynxos*)
10205     # FIXME: insert proper C++ library support
10206     ld_shlibs_CXX=no
10207     ;;
10208   m88k*)
10209     # FIXME: insert proper C++ library support
10210     ld_shlibs_CXX=no
10211     ;;
10212   mvs*)
10213     case $cc_basename in
10214       cxx)
10215         # FIXME: insert proper C++ library support
10216         ld_shlibs_CXX=no
10217         ;;
10218       *)
10219         # FIXME: insert proper C++ library support
10220         ld_shlibs_CXX=no
10221         ;;
10222     esac
10223     ;;
10224   netbsd*)
10225     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10226       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10227       wlarc=
10228       hardcode_libdir_flag_spec_CXX='-R$libdir'
10229       hardcode_direct_CXX=yes
10230       hardcode_shlibpath_var_CXX=no
10231     fi
10232     # Workaround some broken pre-1.5 toolchains
10233     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10234     ;;
10235   osf3*)
10236     case $cc_basename in
10237       KCC)
10238         # Kuck and Associates, Inc. (KAI) C++ Compiler
10239
10240         # KCC will only create a shared library if the output file
10241         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10242         # to its proper name (with version) after linking.
10243         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'
10244
10245         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10246         hardcode_libdir_separator_CXX=:
10247
10248         # Archives containing C++ object files must be created using
10249         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10250         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10251
10252         ;;
10253       RCC)
10254         # Rational C++ 2.4.1
10255         # FIXME: insert proper C++ library support
10256         ld_shlibs_CXX=no
10257         ;;
10258       cxx)
10259         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10260         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'
10261
10262         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10263         hardcode_libdir_separator_CXX=:
10264
10265         # Commands to make compiler produce verbose output that lists
10266         # what "hidden" libraries, object files and flags are used when
10267         # linking a shared library.
10268         #
10269         # There doesn't appear to be a way to prevent this compiler from
10270         # explicitly linking system object files so we need to strip them
10271         # from the output so that they don't get included in the library
10272         # dependencies.
10273         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'
10274         ;;
10275       *)
10276         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10277           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10278           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'
10279
10280           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10281           hardcode_libdir_separator_CXX=:
10282
10283           # Commands to make compiler produce verbose output that lists
10284           # what "hidden" libraries, object files and flags are used when
10285           # linking a shared library.
10286           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10287
10288         else
10289           # FIXME: insert proper C++ library support
10290           ld_shlibs_CXX=no
10291         fi
10292         ;;
10293     esac
10294     ;;
10295   osf4* | osf5*)
10296     case $cc_basename in
10297       KCC)
10298         # Kuck and Associates, Inc. (KAI) C++ Compiler
10299
10300         # KCC will only create a shared library if the output file
10301         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10302         # to its proper name (with version) after linking.
10303         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'
10304
10305         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10306         hardcode_libdir_separator_CXX=:
10307
10308         # Archives containing C++ object files must be created using
10309         # the KAI C++ compiler.
10310         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10311         ;;
10312       RCC)
10313         # Rational C++ 2.4.1
10314         # FIXME: insert proper C++ library support
10315         ld_shlibs_CXX=no
10316         ;;
10317       cxx)
10318         allow_undefined_flag_CXX=' -expect_unresolved \*'
10319         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'
10320         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10321           echo "-hidden">> $lib.exp~
10322           $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~
10323           $rm $lib.exp'
10324
10325         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10326         hardcode_libdir_separator_CXX=:
10327
10328         # Commands to make compiler produce verbose output that lists
10329         # what "hidden" libraries, object files and flags are used when
10330         # linking a shared library.
10331         #
10332         # There doesn't appear to be a way to prevent this compiler from
10333         # explicitly linking system object files so we need to strip them
10334         # from the output so that they don't get included in the library
10335         # dependencies.
10336         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'
10337         ;;
10338       *)
10339         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10340           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10341          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'
10342
10343           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10344           hardcode_libdir_separator_CXX=:
10345
10346           # Commands to make compiler produce verbose output that lists
10347           # what "hidden" libraries, object files and flags are used when
10348           # linking a shared library.
10349           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10350
10351         else
10352           # FIXME: insert proper C++ library support
10353           ld_shlibs_CXX=no
10354         fi
10355         ;;
10356     esac
10357     ;;
10358   psos*)
10359     # FIXME: insert proper C++ library support
10360     ld_shlibs_CXX=no
10361     ;;
10362   sco*)
10363     archive_cmds_need_lc_CXX=no
10364     case $cc_basename in
10365       CC)
10366         # FIXME: insert proper C++ library support
10367         ld_shlibs_CXX=no
10368         ;;
10369       *)
10370         # FIXME: insert proper C++ library support
10371         ld_shlibs_CXX=no
10372         ;;
10373     esac
10374     ;;
10375   sunos4*)
10376     case $cc_basename in
10377       CC)
10378         # Sun C++ 4.x
10379         # FIXME: insert proper C++ library support
10380         ld_shlibs_CXX=no
10381         ;;
10382       lcc)
10383         # Lucid
10384         # FIXME: insert proper C++ library support
10385         ld_shlibs_CXX=no
10386         ;;
10387       *)
10388         # FIXME: insert proper C++ library support
10389         ld_shlibs_CXX=no
10390         ;;
10391     esac
10392     ;;
10393   solaris*)
10394     case $cc_basename in
10395       CC)
10396         # Sun C++ 4.2, 5.x and Centerline C++
10397         no_undefined_flag_CXX=' -zdefs'
10398         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10399         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10400         $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'
10401
10402         hardcode_libdir_flag_spec_CXX='-R$libdir'
10403         hardcode_shlibpath_var_CXX=no
10404         case $host_os in
10405           solaris2.0-5 | solaris2.0-5.*) ;;
10406           *)
10407             # The C++ compiler is used as linker so we must use $wl
10408             # flag to pass the commands to the underlying system
10409             # linker.
10410             # Supported since Solaris 2.6 (maybe 2.5.1?)
10411             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10412             ;;
10413         esac
10414         link_all_deplibs_CXX=yes
10415
10416         # Commands to make compiler produce verbose output that lists
10417         # what "hidden" libraries, object files and flags are used when
10418         # linking a shared library.
10419         #
10420         # There doesn't appear to be a way to prevent this compiler from
10421         # explicitly linking system object files so we need to strip them
10422         # from the output so that they don't get included in the library
10423         # dependencies.
10424         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'
10425
10426         # Archives containing C++ object files must be created using
10427         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10428         # necessary to make sure instantiated templates are included
10429         # in the archive.
10430         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10431         ;;
10432       gcx)
10433         # Green Hills C++ Compiler
10434         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10435
10436         # The C++ compiler must be used to create the archive.
10437         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10438         ;;
10439       *)
10440         # GNU C++ compiler with Solaris linker
10441         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10442           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10443           if $CC --version | grep -v '^2\.7' > /dev/null; then
10444             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10445             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10446                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10447
10448             # Commands to make compiler produce verbose output that lists
10449             # what "hidden" libraries, object files and flags are used when
10450             # linking a shared library.
10451             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10452           else
10453             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10454             # platform.
10455             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10456             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10457                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10458
10459             # Commands to make compiler produce verbose output that lists
10460             # what "hidden" libraries, object files and flags are used when
10461             # linking a shared library.
10462             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10463           fi
10464
10465           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10466         fi
10467         ;;
10468     esac
10469     ;;
10470   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10471     archive_cmds_need_lc_CXX=no
10472     ;;
10473   tandem*)
10474     case $cc_basename in
10475       NCC)
10476         # NonStop-UX NCC 3.20
10477         # FIXME: insert proper C++ library support
10478         ld_shlibs_CXX=no
10479         ;;
10480       *)
10481         # FIXME: insert proper C++ library support
10482         ld_shlibs_CXX=no
10483         ;;
10484     esac
10485     ;;
10486   vxworks*)
10487     # FIXME: insert proper C++ library support
10488     ld_shlibs_CXX=no
10489     ;;
10490   *)
10491     # FIXME: insert proper C++ library support
10492     ld_shlibs_CXX=no
10493     ;;
10494 esac
10495 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10496 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10497 test "$ld_shlibs_CXX" = no && can_build_shared=no
10498
10499 GCC_CXX="$GXX"
10500 LD_CXX="$LD"
10501
10502 ## CAVEAT EMPTOR:
10503 ## There is no encapsulation within the following macros, do not change
10504 ## the running order or otherwise move them around unless you know exactly
10505 ## what you are doing...
10506
10507 cat > conftest.$ac_ext <<EOF
10508 class Foo
10509 {
10510 public:
10511   Foo (void) { a = 0; }
10512 private:
10513   int a;
10514 };
10515 EOF
10516
10517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10518   (eval $ac_compile) 2>&5
10519   ac_status=$?
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); }; then
10522   # Parse the compiler output and extract the necessary
10523   # objects, libraries and library flags.
10524
10525   # Sentinel used to keep track of whether or not we are before
10526   # the conftest object file.
10527   pre_test_object_deps_done=no
10528
10529   # The `*' in the case matches for architectures that use `case' in
10530   # $output_verbose_cmd can trigger glob expansion during the loop
10531   # eval without this substitution.
10532   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10533
10534   for p in `eval $output_verbose_link_cmd`; do
10535     case $p in
10536
10537     -L* | -R* | -l*)
10538        # Some compilers place space between "-{L,R}" and the path.
10539        # Remove the space.
10540        if test $p = "-L" \
10541           || test $p = "-R"; then
10542          prev=$p
10543          continue
10544        else
10545          prev=
10546        fi
10547
10548        if test "$pre_test_object_deps_done" = no; then
10549          case $p in
10550          -L* | -R*)
10551            # Internal compiler library paths should come after those
10552            # provided the user.  The postdeps already come after the
10553            # user supplied libs so there is no need to process them.
10554            if test -z "$compiler_lib_search_path_CXX"; then
10555              compiler_lib_search_path_CXX="${prev}${p}"
10556            else
10557              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10558            fi
10559            ;;
10560          # The "-l" case would never come before the object being
10561          # linked, so don't bother handling this case.
10562          esac
10563        else
10564          if test -z "$postdeps_CXX"; then
10565            postdeps_CXX="${prev}${p}"
10566          else
10567            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10568          fi
10569        fi
10570        ;;
10571
10572     *.$objext)
10573        # This assumes that the test object file only shows up
10574        # once in the compiler output.
10575        if test "$p" = "conftest.$objext"; then
10576          pre_test_object_deps_done=yes
10577          continue
10578        fi
10579
10580        if test "$pre_test_object_deps_done" = no; then
10581          if test -z "$predep_objects_CXX"; then
10582            predep_objects_CXX="$p"
10583          else
10584            predep_objects_CXX="$predep_objects_CXX $p"
10585          fi
10586        else
10587          if test -z "$postdep_objects_CXX"; then
10588            postdep_objects_CXX="$p"
10589          else
10590            postdep_objects_CXX="$postdep_objects_CXX $p"
10591          fi
10592        fi
10593        ;;
10594
10595     *) ;; # Ignore the rest.
10596
10597     esac
10598   done
10599
10600   # Clean up.
10601   rm -f a.out a.exe
10602 else
10603   echo "libtool.m4: error: problem compiling CXX test program"
10604 fi
10605
10606 $rm -f confest.$objext
10607
10608 case " $postdeps_CXX " in
10609 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10610 esac
10611
10612 lt_prog_compiler_wl_CXX=
10613 lt_prog_compiler_pic_CXX=
10614 lt_prog_compiler_static_CXX=
10615
10616 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10617 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10618
10619   # C++ specific cases for pic, static, wl, etc.
10620   if test "$GXX" = yes; then
10621     lt_prog_compiler_wl_CXX='-Wl,'
10622     lt_prog_compiler_static_CXX='-static'
10623
10624     case $host_os in
10625     aix*)
10626       # All AIX code is PIC.
10627       if test "$host_cpu" = ia64; then
10628         # AIX 5 now supports IA64 processor
10629         lt_prog_compiler_static_CXX='-Bstatic'
10630       fi
10631       ;;
10632     amigaos*)
10633       # FIXME: we need at least 68020 code to build shared libraries, but
10634       # adding the `-m68020' flag to GCC prevents building anything better,
10635       # like `-m68040'.
10636       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10637       ;;
10638     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10639       # PIC is the default for these OSes.
10640       ;;
10641     mingw* | os2* | pw32*)
10642       # This hack is so that the source file can tell whether it is being
10643       # built for inclusion in a dll (and should export symbols for example).
10644       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10645       ;;
10646     darwin* | rhapsody*)
10647       # PIC is the default on this platform
10648       # Common symbols not allowed in MH_DYLIB files
10649       lt_prog_compiler_pic_CXX='-fno-common'
10650       ;;
10651     *djgpp*)
10652       # DJGPP does not support shared libraries at all
10653       lt_prog_compiler_pic_CXX=
10654       ;;
10655     sysv4*MP*)
10656       if test -d /usr/nec; then
10657         lt_prog_compiler_pic_CXX=-Kconform_pic
10658       fi
10659       ;;
10660     hpux*)
10661       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10662       # not for PA HP-UX.
10663       case "$host_cpu" in
10664       hppa*64*|ia64*)
10665         ;;
10666       *)
10667         lt_prog_compiler_pic_CXX='-fPIC'
10668         ;;
10669       esac
10670       ;;
10671     *)
10672       lt_prog_compiler_pic_CXX='-fPIC'
10673       ;;
10674     esac
10675   else
10676     case $host_os in
10677       aix4* | aix5*)
10678         # All AIX code is PIC.
10679         if test "$host_cpu" = ia64; then
10680           # AIX 5 now supports IA64 processor
10681           lt_prog_compiler_static_CXX='-Bstatic'
10682         else
10683           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10684         fi
10685         ;;
10686       chorus*)
10687         case $cc_basename in
10688         cxch68)
10689           # Green Hills C++ Compiler
10690           # _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"
10691           ;;
10692         esac
10693         ;;
10694       dgux*)
10695         case $cc_basename in
10696           ec++)
10697             lt_prog_compiler_pic_CXX='-KPIC'
10698             ;;
10699           ghcx)
10700             # Green Hills C++ Compiler
10701             lt_prog_compiler_pic_CXX='-pic'
10702             ;;
10703           *)
10704             ;;
10705         esac
10706         ;;
10707       freebsd*)
10708         # FreeBSD uses GNU C++
10709         ;;
10710       hpux9* | hpux10* | hpux11*)
10711         case $cc_basename in
10712           CC)
10713             lt_prog_compiler_wl_CXX='-Wl,'
10714             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10715             if test "$host_cpu" != ia64; then
10716               lt_prog_compiler_pic_CXX='+Z'
10717             fi
10718             ;;
10719           aCC)
10720             lt_prog_compiler_wl_CXX='-Wl,'
10721             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10722             case "$host_cpu" in
10723             hppa*64*|ia64*)
10724               # +Z the default
10725               ;;
10726             *)
10727               lt_prog_compiler_pic_CXX='+Z'
10728               ;;
10729             esac
10730             ;;
10731           *)
10732             ;;
10733         esac
10734         ;;
10735       irix5* | irix6* | nonstopux*)
10736         case $cc_basename in
10737           CC)
10738             lt_prog_compiler_wl_CXX='-Wl,'
10739             lt_prog_compiler_static_CXX='-non_shared'
10740             # CC pic flag -KPIC is the default.
10741             ;;
10742           *)
10743             ;;
10744         esac
10745         ;;
10746       linux*)
10747         case $cc_basename in
10748           KCC)
10749             # KAI C++ Compiler
10750             lt_prog_compiler_wl_CXX='--backend -Wl,'
10751             lt_prog_compiler_pic_CXX='-fPIC'
10752             ;;
10753           icpc)
10754             # Intel C++
10755             lt_prog_compiler_wl_CXX='-Wl,'
10756             lt_prog_compiler_pic_CXX='-KPIC'
10757             lt_prog_compiler_static_CXX='-static'
10758             ;;
10759           cxx)
10760             # Compaq C++
10761             # Make sure the PIC flag is empty.  It appears that all Alpha
10762             # Linux and Compaq Tru64 Unix objects are PIC.
10763             lt_prog_compiler_pic_CXX=
10764             lt_prog_compiler_static_CXX='-non_shared'
10765             ;;
10766           *)
10767             ;;
10768         esac
10769         ;;
10770       lynxos*)
10771         ;;
10772       m88k*)
10773         ;;
10774       mvs*)
10775         case $cc_basename in
10776           cxx)
10777             lt_prog_compiler_pic_CXX='-W c,exportall'
10778             ;;
10779           *)
10780             ;;
10781         esac
10782         ;;
10783       netbsd*)
10784         ;;
10785       osf3* | osf4* | osf5*)
10786         case $cc_basename in
10787           KCC)
10788             lt_prog_compiler_wl_CXX='--backend -Wl,'
10789             ;;
10790           RCC)
10791             # Rational C++ 2.4.1
10792             lt_prog_compiler_pic_CXX='-pic'
10793             ;;
10794           cxx)
10795             # Digital/Compaq C++
10796             lt_prog_compiler_wl_CXX='-Wl,'
10797             # Make sure the PIC flag is empty.  It appears that all Alpha
10798             # Linux and Compaq Tru64 Unix objects are PIC.
10799             lt_prog_compiler_pic_CXX=
10800             lt_prog_compiler_static_CXX='-non_shared'
10801             ;;
10802           *)
10803             ;;
10804         esac
10805         ;;
10806       psos*)
10807         ;;
10808       sco*)
10809         case $cc_basename in
10810           CC)
10811             lt_prog_compiler_pic_CXX='-fPIC'
10812             ;;
10813           *)
10814             ;;
10815         esac
10816         ;;
10817       solaris*)
10818         case $cc_basename in
10819           CC)
10820             # Sun C++ 4.2, 5.x and Centerline C++
10821             lt_prog_compiler_pic_CXX='-KPIC'
10822             lt_prog_compiler_static_CXX='-Bstatic'
10823             lt_prog_compiler_wl_CXX='-Qoption ld '
10824             ;;
10825           gcx)
10826             # Green Hills C++ Compiler
10827             lt_prog_compiler_pic_CXX='-PIC'
10828             ;;
10829           *)
10830             ;;
10831         esac
10832         ;;
10833       sunos4*)
10834         case $cc_basename in
10835           CC)
10836             # Sun C++ 4.x
10837             lt_prog_compiler_pic_CXX='-pic'
10838             lt_prog_compiler_static_CXX='-Bstatic'
10839             ;;
10840           lcc)
10841             # Lucid
10842             lt_prog_compiler_pic_CXX='-pic'
10843             ;;
10844           *)
10845             ;;
10846         esac
10847         ;;
10848       tandem*)
10849         case $cc_basename in
10850           NCC)
10851             # NonStop-UX NCC 3.20
10852             lt_prog_compiler_pic_CXX='-KPIC'
10853             ;;
10854           *)
10855             ;;
10856         esac
10857         ;;
10858       unixware*)
10859         ;;
10860       vxworks*)
10861         ;;
10862       *)
10863         lt_prog_compiler_can_build_shared_CXX=no
10864         ;;
10865     esac
10866   fi
10867
10868 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10869 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10870
10871 #
10872 # Check to make sure the PIC flag actually works.
10873 #
10874 if test -n "$lt_prog_compiler_pic_CXX"; then
10875   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10876 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10877 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10878   echo $ECHO_N "(cached) $ECHO_C" >&6
10879 else
10880   lt_prog_compiler_pic_works_CXX=no
10881   ac_outfile=conftest.$ac_objext
10882    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10883    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10884    # Insert the option either (1) after the last *FLAGS variable, or
10885    # (2) before a word containing "conftest.", or (3) at the end.
10886    # Note that $ac_compile itself does not contain backslashes and begins
10887    # with a dollar sign (not a hyphen), so the echo should work correctly.
10888    # The option is referenced via a variable to avoid confusing sed.
10889    lt_compile=`echo "$ac_compile" | $SED \
10890    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10891    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10892    -e 's:$: $lt_compiler_flag:'`
10893    (eval echo "\"\$as_me:10893: $lt_compile\"" >&5)
10894    (eval "$lt_compile" 2>conftest.err)
10895    ac_status=$?
10896    cat conftest.err >&5
10897    echo "$as_me:10897: \$? = $ac_status" >&5
10898    if (exit $ac_status) && test -s "$ac_outfile"; then
10899      # The compiler can only warn and ignore the option if not recognized
10900      # So say no if there are warnings
10901      if test ! -s conftest.err; then
10902        lt_prog_compiler_pic_works_CXX=yes
10903      fi
10904    fi
10905    $rm conftest*
10906
10907 fi
10908 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10909 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10910
10911 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10912     case $lt_prog_compiler_pic_CXX in
10913      "" | " "*) ;;
10914      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10915      esac
10916 else
10917     lt_prog_compiler_pic_CXX=
10918      lt_prog_compiler_can_build_shared_CXX=no
10919 fi
10920
10921 fi
10922 case "$host_os" in
10923   # For platforms which do not support PIC, -DPIC is meaningless:
10924   *djgpp*)
10925     lt_prog_compiler_pic_CXX=
10926     ;;
10927   *)
10928     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10929     ;;
10930 esac
10931
10932 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10933 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10934 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10935   echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937   lt_cv_prog_compiler_c_o_CXX=no
10938    $rm -r conftest 2>/dev/null
10939    mkdir conftest
10940    cd conftest
10941    mkdir out
10942    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10943
10944    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10945    # that will create temporary files in the current directory regardless of
10946    # the output directory.  Thus, making CWD read-only will cause this test
10947    # to fail, enabling locking or at least warning the user not to do parallel
10948    # builds.
10949    chmod -w .
10950
10951    lt_compiler_flag="-o out/conftest2.$ac_objext"
10952    # Insert the option either (1) after the last *FLAGS variable, or
10953    # (2) before a word containing "conftest.", or (3) at the end.
10954    # Note that $ac_compile itself does not contain backslashes and begins
10955    # with a dollar sign (not a hyphen), so the echo should work correctly.
10956    lt_compile=`echo "$ac_compile" | $SED \
10957    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10958    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10959    -e 's:$: $lt_compiler_flag:'`
10960    (eval echo "\"\$as_me:10960: $lt_compile\"" >&5)
10961    (eval "$lt_compile" 2>out/conftest.err)
10962    ac_status=$?
10963    cat out/conftest.err >&5
10964    echo "$as_me:10964: \$? = $ac_status" >&5
10965    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10966    then
10967      # The compiler can only warn and ignore the option if not recognized
10968      # So say no if there are warnings
10969      if test ! -s out/conftest.err; then
10970        lt_cv_prog_compiler_c_o_CXX=yes
10971      fi
10972    fi
10973    chmod u+w .
10974    $rm conftest* out/*
10975    rmdir out
10976    cd ..
10977    rmdir conftest
10978    $rm conftest*
10979
10980 fi
10981 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10982 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10983
10984
10985 hard_links="nottested"
10986 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10987   # do not overwrite the value of need_locks provided by the user
10988   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10989 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10990   hard_links=yes
10991   $rm conftest*
10992   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10993   touch conftest.a
10994   ln conftest.a conftest.b 2>&5 || hard_links=no
10995   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10996   echo "$as_me:$LINENO: result: $hard_links" >&5
10997 echo "${ECHO_T}$hard_links" >&6
10998   if test "$hard_links" = no; then
10999     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11000 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11001     need_locks=warn
11002   fi
11003 else
11004   need_locks=no
11005 fi
11006
11007 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11008 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11009
11010   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11011   case $host_os in
11012   aix4* | aix5*)
11013     # If we're using GNU nm, then we don't want the "-C" option.
11014     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11015     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11016       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'
11017     else
11018       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'
11019     fi
11020     ;;
11021   pw32*)
11022     export_symbols_cmds_CXX="$ltdll_cmds"
11023   ;;
11024   cygwin* | mingw*)
11025     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11026   ;;
11027   *)
11028     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11029   ;;
11030   esac
11031
11032 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11033 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11034 test "$ld_shlibs_CXX" = no && can_build_shared=no
11035
11036 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11037 if test "$GCC" = yes; then
11038   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11039 fi
11040
11041 #
11042 # Do we need to explicitly link libc?
11043 #
11044 case "x$archive_cmds_need_lc_CXX" in
11045 x|xyes)
11046   # Assume -lc should be added
11047   archive_cmds_need_lc_CXX=yes
11048
11049   if test "$enable_shared" = yes && test "$GCC" = yes; then
11050     case $archive_cmds_CXX in
11051     *'~'*)
11052       # FIXME: we may have to deal with multi-command sequences.
11053       ;;
11054     '$CC '*)
11055       # Test whether the compiler implicitly links with -lc since on some
11056       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11057       # to ld, don't add -lc before -lgcc.
11058       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11059 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11060       $rm conftest*
11061       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11062
11063       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11064   (eval $ac_compile) 2>&5
11065   ac_status=$?
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); } 2>conftest.err; then
11068         soname=conftest
11069         lib=conftest
11070         libobjs=conftest.$ac_objext
11071         deplibs=
11072         wl=$lt_prog_compiler_wl_CXX
11073         compiler_flags=-v
11074         linker_flags=-v
11075         verstring=
11076         output_objdir=.
11077         libname=conftest
11078         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11079         allow_undefined_flag_CXX=
11080         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11081   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11082   ac_status=$?
11083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084   (exit $ac_status); }
11085         then
11086           archive_cmds_need_lc_CXX=no
11087         else
11088           archive_cmds_need_lc_CXX=yes
11089         fi
11090         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11091       else
11092         cat conftest.err 1>&5
11093       fi
11094       $rm conftest*
11095       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11096 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11097       ;;
11098     esac
11099   fi
11100   ;;
11101 esac
11102
11103 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11104 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11105 hardcode_action_CXX=
11106 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11107    test -n "$runpath_var CXX" || \
11108    test "X$hardcode_automatic_CXX"="Xyes" ; then
11109
11110   # We can hardcode non-existant directories.
11111   if test "$hardcode_direct_CXX" != no &&
11112      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11113      # have to relink, otherwise we might link with an installed library
11114      # when we should be linking with a yet-to-be-installed one
11115      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11116      test "$hardcode_minus_L_CXX" != no; then
11117     # Linking always hardcodes the temporary library directory.
11118     hardcode_action_CXX=relink
11119   else
11120     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11121     hardcode_action_CXX=immediate
11122   fi
11123 else
11124   # We cannot hardcode anything, or else we can only hardcode existing
11125   # directories.
11126   hardcode_action_CXX=unsupported
11127 fi
11128 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11129 echo "${ECHO_T}$hardcode_action_CXX" >&6
11130
11131 if test "$hardcode_action_CXX" = relink; then
11132   # Fast installation is not supported
11133   enable_fast_install=no
11134 elif test "$shlibpath_overrides_runpath" = yes ||
11135      test "$enable_shared" = no; then
11136   # Fast installation is not necessary
11137   enable_fast_install=needless
11138 fi
11139
11140 striplib=
11141 old_striplib=
11142 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11143 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11144 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11145   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11146   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11147   echo "$as_me:$LINENO: result: yes" >&5
11148 echo "${ECHO_T}yes" >&6
11149 else
11150 # FIXME - insert some real tests, host_os isn't really good enough
11151   case $host_os in
11152    darwin*)
11153        if test -n "$STRIP" ; then
11154          striplib="$STRIP -x"
11155          echo "$as_me:$LINENO: result: yes" >&5
11156 echo "${ECHO_T}yes" >&6
11157        else
11158   echo "$as_me:$LINENO: result: no" >&5
11159 echo "${ECHO_T}no" >&6
11160 fi
11161        ;;
11162    *)
11163   echo "$as_me:$LINENO: result: no" >&5
11164 echo "${ECHO_T}no" >&6
11165     ;;
11166   esac
11167 fi
11168
11169 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11170 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11171 library_names_spec=
11172 libname_spec='lib$name'
11173 soname_spec=
11174 shrext=".so"
11175 postinstall_cmds=
11176 postuninstall_cmds=
11177 finish_cmds=
11178 finish_eval=
11179 shlibpath_var=
11180 shlibpath_overrides_runpath=unknown
11181 version_type=none
11182 dynamic_linker="$host_os ld.so"
11183 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11184 if test "$GCC" = yes; then
11185   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11186   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11187     # if the path contains ";" then we assume it to be the separator
11188     # otherwise default to the standard path separator (i.e. ":") - it is
11189     # assumed that no part of a normal pathname contains ";" but that should
11190     # okay in the real world where ";" in dirpaths is itself problematic.
11191     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11192   else
11193     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11194   fi
11195 else
11196   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11197 fi
11198 need_lib_prefix=unknown
11199 hardcode_into_libs=no
11200
11201 # when you set need_version to no, make sure it does not cause -set_version
11202 # flags to be left without arguments
11203 need_version=unknown
11204
11205 case $host_os in
11206 aix3*)
11207   version_type=linux
11208   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11209   shlibpath_var=LIBPATH
11210
11211   # AIX 3 has no versioning support, so we append a major version to the name.
11212   soname_spec='${libname}${release}${shared_ext}$major'
11213   ;;
11214
11215 aix4* | aix5*)
11216   version_type=linux
11217   need_lib_prefix=no
11218   need_version=no
11219   hardcode_into_libs=yes
11220   if test "$host_cpu" = ia64; then
11221     # AIX 5 supports IA64
11222     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11223     shlibpath_var=LD_LIBRARY_PATH
11224   else
11225     # With GCC up to 2.95.x, collect2 would create an import file
11226     # for dependence libraries.  The import file would start with
11227     # the line `#! .'.  This would cause the generated library to
11228     # depend on `.', always an invalid library.  This was fixed in
11229     # development snapshots of GCC prior to 3.0.
11230     case $host_os in
11231       aix4 | aix4.[01] | aix4.[01].*)
11232       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11233            echo ' yes '
11234            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11235         :
11236       else
11237         can_build_shared=no
11238       fi
11239       ;;
11240     esac
11241     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11242     # soname into executable. Probably we can add versioning support to
11243     # collect2, so additional links can be useful in future.
11244     if test "$aix_use_runtimelinking" = yes; then
11245       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11246       # instead of lib<name>.a to let people know that these are not
11247       # typical AIX shared libraries.
11248       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249     else
11250       # We preserve .a as extension for shared libraries through AIX4.2
11251       # and later when we are not doing run time linking.
11252       library_names_spec='${libname}${release}.a $libname.a'
11253       soname_spec='${libname}${release}${shared_ext}$major'
11254     fi
11255     shlibpath_var=LIBPATH
11256   fi
11257   ;;
11258
11259 amigaos*)
11260   library_names_spec='$libname.ixlibrary $libname.a'
11261   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11262   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'
11263   ;;
11264
11265 beos*)
11266   library_names_spec='${libname}${shared_ext}'
11267   dynamic_linker="$host_os ld.so"
11268   shlibpath_var=LIBRARY_PATH
11269   ;;
11270
11271 bsdi4*)
11272   version_type=linux
11273   need_version=no
11274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275   soname_spec='${libname}${release}${shared_ext}$major'
11276   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11277   shlibpath_var=LD_LIBRARY_PATH
11278   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11279   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11280   # the default ld.so.conf also contains /usr/contrib/lib and
11281   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11282   # libtool to hard-code these into programs
11283   ;;
11284
11285 cygwin* | mingw* | pw32*)
11286   version_type=windows
11287   shrext=".dll"
11288   need_version=no
11289   need_lib_prefix=no
11290
11291   case $GCC,$host_os in
11292   yes,cygwin* | yes,mingw* | yes,pw32*)
11293     library_names_spec='$libname.dll.a'
11294     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11295     postinstall_cmds='base_file=`basename \${file}`~
11296       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11297       dldir=$destdir/`dirname \$dlpath`~
11298       test -d \$dldir || mkdir -p \$dldir~
11299       $install_prog $dir/$dlname \$dldir/$dlname'
11300     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11301       dlpath=$dir/\$dldll~
11302        $rm \$dlpath'
11303     shlibpath_overrides_runpath=yes
11304
11305     case $host_os in
11306     cygwin*)
11307       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11308       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11309       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11310       ;;
11311     mingw*)
11312       # MinGW DLLs use traditional 'lib' prefix
11313       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11314       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11315       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11316         # It is most probably a Windows format PATH printed by
11317         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11318         # path with ; separators, and with drive letters. We can handle the
11319         # drive letters (cygwin fileutils understands them), so leave them,
11320         # especially as we might pass files found there to a mingw objdump,
11321         # which wouldn't understand a cygwinified path. Ahh.
11322         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11323       else
11324         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11325       fi
11326       ;;
11327     pw32*)
11328       # pw32 DLLs use 'pw' prefix rather than 'lib'
11329       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11330       ;;
11331     esac
11332     ;;
11333
11334   *)
11335     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11336     ;;
11337   esac
11338   dynamic_linker='Win32 ld.exe'
11339   # FIXME: first we should search . and the directory the executable is in
11340   shlibpath_var=PATH
11341   ;;
11342
11343 darwin* | rhapsody*)
11344   dynamic_linker="$host_os dyld"
11345   version_type=darwin
11346   need_lib_prefix=no
11347   need_version=no
11348   # FIXME: Relying on posixy $() will cause problems for
11349   #        cross-compilation, but unfortunately the echo tests do not
11350   #        yet detect zsh echo's removal of \ escapes.
11351   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11352   soname_spec='${libname}${release}${major}$shared_ext'
11353   shlibpath_overrides_runpath=yes
11354   shlibpath_var=DYLD_LIBRARY_PATH
11355   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11356   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11357   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11358   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"`
11359   fi
11360   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11361   ;;
11362
11363 dgux*)
11364   version_type=linux
11365   need_lib_prefix=no
11366   need_version=no
11367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11368   soname_spec='${libname}${release}${shared_ext}$major'
11369   shlibpath_var=LD_LIBRARY_PATH
11370   ;;
11371
11372 freebsd1*)
11373   dynamic_linker=no
11374   ;;
11375
11376 freebsd*)
11377   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11378   version_type=freebsd-$objformat
11379   case $version_type in
11380     freebsd-elf*)
11381       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11382       need_version=no
11383       need_lib_prefix=no
11384       ;;
11385     freebsd-*)
11386       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11387       need_version=yes
11388       ;;
11389   esac
11390   shlibpath_var=LD_LIBRARY_PATH
11391   case $host_os in
11392   freebsd2*)
11393     shlibpath_overrides_runpath=yes
11394     ;;
11395   freebsd3.01* | freebsdelf3.01*)
11396     shlibpath_overrides_runpath=yes
11397     hardcode_into_libs=yes
11398     ;;
11399   *) # from 3.2 on
11400     shlibpath_overrides_runpath=no
11401     hardcode_into_libs=yes
11402     ;;
11403   esac
11404   ;;
11405
11406 gnu*)
11407   version_type=linux
11408   need_lib_prefix=no
11409   need_version=no
11410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11411   soname_spec='${libname}${release}${shared_ext}$major'
11412   shlibpath_var=LD_LIBRARY_PATH
11413   hardcode_into_libs=yes
11414   ;;
11415
11416 hpux9* | hpux10* | hpux11*)
11417   # Give a soname corresponding to the major version so that dld.sl refuses to
11418   # link against other versions.
11419   version_type=sunos
11420   need_lib_prefix=no
11421   need_version=no
11422   case "$host_cpu" in
11423   ia64*)
11424     shrext='.so'
11425     hardcode_into_libs=yes
11426     dynamic_linker="$host_os dld.so"
11427     shlibpath_var=LD_LIBRARY_PATH
11428     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11430     soname_spec='${libname}${release}${shared_ext}$major'
11431     if test "X$HPUX_IA64_MODE" = X32; then
11432       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11433     else
11434       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11435     fi
11436     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11437     ;;
11438    hppa*64*)
11439      shrext='.sl'
11440      hardcode_into_libs=yes
11441      dynamic_linker="$host_os dld.sl"
11442      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11443      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11444      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11445      soname_spec='${libname}${release}${shared_ext}$major'
11446      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11447      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11448      ;;
11449    *)
11450     shrext='.sl'
11451     dynamic_linker="$host_os dld.sl"
11452     shlibpath_var=SHLIB_PATH
11453     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11454     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455     soname_spec='${libname}${release}${shared_ext}$major'
11456     ;;
11457   esac
11458   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11459   postinstall_cmds='chmod 555 $lib'
11460   ;;
11461
11462 irix5* | irix6* | nonstopux*)
11463   case $host_os in
11464     nonstopux*) version_type=nonstopux ;;
11465     *)
11466         if test "$lt_cv_prog_gnu_ld" = yes; then
11467                 version_type=linux
11468         else
11469                 version_type=irix
11470         fi ;;
11471   esac
11472   need_lib_prefix=no
11473   need_version=no
11474   soname_spec='${libname}${release}${shared_ext}$major'
11475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11476   case $host_os in
11477   irix5* | nonstopux*)
11478     libsuff= shlibsuff=
11479     ;;
11480   *)
11481     case $LD in # libtool.m4 will add one of these switches to LD
11482     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11483       libsuff= shlibsuff= libmagic=32-bit;;
11484     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11485       libsuff=32 shlibsuff=N32 libmagic=N32;;
11486     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11487       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11488     *) libsuff= shlibsuff= libmagic=never-match;;
11489     esac
11490     ;;
11491   esac
11492   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11493   shlibpath_overrides_runpath=no
11494   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11495   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11496   hardcode_into_libs=yes
11497   ;;
11498
11499 # No shared lib support for Linux oldld, aout, or coff.
11500 linux*oldld* | linux*aout* | linux*coff*)
11501   dynamic_linker=no
11502   ;;
11503
11504 # This must be Linux ELF.
11505 linux*)
11506   version_type=linux
11507   need_lib_prefix=no
11508   need_version=no
11509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11510   soname_spec='${libname}${release}${shared_ext}$major'
11511   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11512   shlibpath_var=LD_LIBRARY_PATH
11513   shlibpath_overrides_runpath=no
11514   # This implies no fast_install, which is unacceptable.
11515   # Some rework will be needed to allow for fast_install
11516   # before this can be enabled.
11517   hardcode_into_libs=yes
11518
11519   # We used to test for /lib/ld.so.1 and disable shared libraries on
11520   # powerpc, because MkLinux only supported shared libraries with the
11521   # GNU dynamic linker.  Since this was broken with cross compilers,
11522   # most powerpc-linux boxes support dynamic linking these days and
11523   # people can always --disable-shared, the test was removed, and we
11524   # assume the GNU/Linux dynamic linker is in use.
11525   dynamic_linker='GNU/Linux ld.so'
11526   ;;
11527
11528 netbsd*)
11529   version_type=sunos
11530   need_lib_prefix=no
11531   need_version=no
11532   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11533     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11534     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11535     dynamic_linker='NetBSD (a.out) ld.so'
11536   else
11537     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11538     soname_spec='${libname}${release}${shared_ext}$major'
11539     dynamic_linker='NetBSD ld.elf_so'
11540   fi
11541   shlibpath_var=LD_LIBRARY_PATH
11542   shlibpath_overrides_runpath=yes
11543   hardcode_into_libs=yes
11544   ;;
11545
11546 newsos6)
11547   version_type=linux
11548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11549   shlibpath_var=LD_LIBRARY_PATH
11550   shlibpath_overrides_runpath=yes
11551   ;;
11552
11553 nto-qnx)
11554   version_type=linux
11555   need_lib_prefix=no
11556   need_version=no
11557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558   soname_spec='${libname}${release}${shared_ext}$major'
11559   shlibpath_var=LD_LIBRARY_PATH
11560   shlibpath_overrides_runpath=yes
11561   ;;
11562
11563 openbsd*)
11564   version_type=sunos
11565   need_lib_prefix=no
11566   need_version=no
11567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11568   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11569   shlibpath_var=LD_LIBRARY_PATH
11570   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11571     case $host_os in
11572       openbsd2.[89] | openbsd2.[89].*)
11573         shlibpath_overrides_runpath=no
11574         ;;
11575       *)
11576         shlibpath_overrides_runpath=yes
11577         ;;
11578       esac
11579   else
11580     shlibpath_overrides_runpath=yes
11581   fi
11582   ;;
11583
11584 os2*)
11585   libname_spec='$name'
11586   shrext=".dll"
11587   need_lib_prefix=no
11588   library_names_spec='$libname${shared_ext} $libname.a'
11589   dynamic_linker='OS/2 ld.exe'
11590   shlibpath_var=LIBPATH
11591   ;;
11592
11593 osf3* | osf4* | osf5*)
11594   version_type=osf
11595   need_lib_prefix=no
11596   need_version=no
11597   soname_spec='${libname}${release}${shared_ext}$major'
11598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11599   shlibpath_var=LD_LIBRARY_PATH
11600   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11601   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11602   ;;
11603
11604 sco3.2v5*)
11605   version_type=osf
11606   soname_spec='${libname}${release}${shared_ext}$major'
11607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608   shlibpath_var=LD_LIBRARY_PATH
11609   ;;
11610
11611 solaris*)
11612   version_type=linux
11613   need_lib_prefix=no
11614   need_version=no
11615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11616   soname_spec='${libname}${release}${shared_ext}$major'
11617   shlibpath_var=LD_LIBRARY_PATH
11618   shlibpath_overrides_runpath=yes
11619   hardcode_into_libs=yes
11620   # ldd complains unless libraries are executable
11621   postinstall_cmds='chmod +x $lib'
11622   ;;
11623
11624 sunos4*)
11625   version_type=sunos
11626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11627   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11628   shlibpath_var=LD_LIBRARY_PATH
11629   shlibpath_overrides_runpath=yes
11630   if test "$with_gnu_ld" = yes; then
11631     need_lib_prefix=no
11632   fi
11633   need_version=yes
11634   ;;
11635
11636 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11637   version_type=linux
11638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639   soname_spec='${libname}${release}${shared_ext}$major'
11640   shlibpath_var=LD_LIBRARY_PATH
11641   case $host_vendor in
11642     sni)
11643       shlibpath_overrides_runpath=no
11644       need_lib_prefix=no
11645       export_dynamic_flag_spec='${wl}-Blargedynsym'
11646       runpath_var=LD_RUN_PATH
11647       ;;
11648     siemens)
11649       need_lib_prefix=no
11650       ;;
11651     motorola)
11652       need_lib_prefix=no
11653       need_version=no
11654       shlibpath_overrides_runpath=no
11655       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11656       ;;
11657   esac
11658   ;;
11659
11660 sysv4*MP*)
11661   if test -d /usr/nec ;then
11662     version_type=linux
11663     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11664     soname_spec='$libname${shared_ext}.$major'
11665     shlibpath_var=LD_LIBRARY_PATH
11666   fi
11667   ;;
11668
11669 uts4*)
11670   version_type=linux
11671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11672   soname_spec='${libname}${release}${shared_ext}$major'
11673   shlibpath_var=LD_LIBRARY_PATH
11674   ;;
11675
11676 *)
11677   dynamic_linker=no
11678   ;;
11679 esac
11680 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11681 echo "${ECHO_T}$dynamic_linker" >&6
11682 test "$dynamic_linker" = no && can_build_shared=no
11683
11684 if test "x$enable_dlopen" != xyes; then
11685   enable_dlopen=unknown
11686   enable_dlopen_self=unknown
11687   enable_dlopen_self_static=unknown
11688 else
11689   lt_cv_dlopen=no
11690   lt_cv_dlopen_libs=
11691
11692   case $host_os in
11693   beos*)
11694     lt_cv_dlopen="load_add_on"
11695     lt_cv_dlopen_libs=
11696     lt_cv_dlopen_self=yes
11697     ;;
11698
11699   mingw* | pw32*)
11700     lt_cv_dlopen="LoadLibrary"
11701     lt_cv_dlopen_libs=
11702    ;;
11703
11704   cygwin*)
11705     lt_cv_dlopen="dlopen"
11706     lt_cv_dlopen_libs=
11707    ;;
11708
11709   darwin*)
11710   # if libdl is installed we need to link against it
11711     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11712 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11713 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11714   echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716   ac_check_lib_save_LIBS=$LIBS
11717 LIBS="-ldl  $LIBS"
11718 cat >conftest.$ac_ext <<_ACEOF
11719 #line $LINENO "configure"
11720 /* confdefs.h.  */
11721 _ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h.  */
11725
11726 /* Override any gcc2 internal prototype to avoid an error.  */
11727 #ifdef __cplusplus
11728 extern "C"
11729 #endif
11730 /* We use char because int might match the return type of a gcc2
11731    builtin and then its argument prototype would still apply.  */
11732 char dlopen ();
11733 int
11734 main ()
11735 {
11736 dlopen ();
11737   ;
11738   return 0;
11739 }
11740 _ACEOF
11741 rm -f conftest.$ac_objext conftest$ac_exeext
11742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11743   (eval $ac_link) 2>&5
11744   ac_status=$?
11745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746   (exit $ac_status); } &&
11747          { ac_try='test -s conftest$ac_exeext'
11748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749   (eval $ac_try) 2>&5
11750   ac_status=$?
11751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); }; }; then
11753   ac_cv_lib_dl_dlopen=yes
11754 else
11755   echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11757
11758 ac_cv_lib_dl_dlopen=no
11759 fi
11760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11761 LIBS=$ac_check_lib_save_LIBS
11762 fi
11763 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11764 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11765 if test $ac_cv_lib_dl_dlopen = yes; then
11766   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11767 else
11768
11769     lt_cv_dlopen="dyld"
11770     lt_cv_dlopen_libs=
11771     lt_cv_dlopen_self=yes
11772
11773 fi
11774
11775    ;;
11776
11777   *)
11778     echo "$as_me:$LINENO: checking for shl_load" >&5
11779 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11780 if test "${ac_cv_func_shl_load+set}" = set; then
11781   echo $ECHO_N "(cached) $ECHO_C" >&6
11782 else
11783   cat >conftest.$ac_ext <<_ACEOF
11784 #line $LINENO "configure"
11785 /* confdefs.h.  */
11786 _ACEOF
11787 cat confdefs.h >>conftest.$ac_ext
11788 cat >>conftest.$ac_ext <<_ACEOF
11789 /* end confdefs.h.  */
11790 /* System header to define __stub macros and hopefully few prototypes,
11791     which can conflict with char shl_load (); below.
11792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11793     <limits.h> exists even on freestanding compilers.  */
11794 #ifdef __STDC__
11795 # include <limits.h>
11796 #else
11797 # include <assert.h>
11798 #endif
11799 /* Override any gcc2 internal prototype to avoid an error.  */
11800 #ifdef __cplusplus
11801 extern "C"
11802 {
11803 #endif
11804 /* We use char because int might match the return type of a gcc2
11805    builtin and then its argument prototype would still apply.  */
11806 char shl_load ();
11807 /* The GNU C library defines this for functions which it implements
11808     to always fail with ENOSYS.  Some functions are actually named
11809     something starting with __ and the normal name is an alias.  */
11810 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11811 choke me
11812 #else
11813 char (*f) () = shl_load;
11814 #endif
11815 #ifdef __cplusplus
11816 }
11817 #endif
11818
11819 int
11820 main ()
11821 {
11822 return f != shl_load;
11823   ;
11824   return 0;
11825 }
11826 _ACEOF
11827 rm -f conftest.$ac_objext conftest$ac_exeext
11828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11829   (eval $ac_link) 2>&5
11830   ac_status=$?
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); } &&
11833          { ac_try='test -s conftest$ac_exeext'
11834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835   (eval $ac_try) 2>&5
11836   ac_status=$?
11837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838   (exit $ac_status); }; }; then
11839   ac_cv_func_shl_load=yes
11840 else
11841   echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11843
11844 ac_cv_func_shl_load=no
11845 fi
11846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11847 fi
11848 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11849 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11850 if test $ac_cv_func_shl_load = yes; then
11851   lt_cv_dlopen="shl_load"
11852 else
11853   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11854 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11855 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11856   echo $ECHO_N "(cached) $ECHO_C" >&6
11857 else
11858   ac_check_lib_save_LIBS=$LIBS
11859 LIBS="-ldld  $LIBS"
11860 cat >conftest.$ac_ext <<_ACEOF
11861 #line $LINENO "configure"
11862 /* confdefs.h.  */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h.  */
11867
11868 /* Override any gcc2 internal prototype to avoid an error.  */
11869 #ifdef __cplusplus
11870 extern "C"
11871 #endif
11872 /* We use char because int might match the return type of a gcc2
11873    builtin and then its argument prototype would still apply.  */
11874 char shl_load ();
11875 int
11876 main ()
11877 {
11878 shl_load ();
11879   ;
11880   return 0;
11881 }
11882 _ACEOF
11883 rm -f conftest.$ac_objext conftest$ac_exeext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11885   (eval $ac_link) 2>&5
11886   ac_status=$?
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); } &&
11889          { ac_try='test -s conftest$ac_exeext'
11890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891   (eval $ac_try) 2>&5
11892   ac_status=$?
11893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894   (exit $ac_status); }; }; then
11895   ac_cv_lib_dld_shl_load=yes
11896 else
11897   echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11899
11900 ac_cv_lib_dld_shl_load=no
11901 fi
11902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11903 LIBS=$ac_check_lib_save_LIBS
11904 fi
11905 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11906 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11907 if test $ac_cv_lib_dld_shl_load = yes; then
11908   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11909 else
11910   echo "$as_me:$LINENO: checking for dlopen" >&5
11911 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11912 if test "${ac_cv_func_dlopen+set}" = set; then
11913   echo $ECHO_N "(cached) $ECHO_C" >&6
11914 else
11915   cat >conftest.$ac_ext <<_ACEOF
11916 #line $LINENO "configure"
11917 /* confdefs.h.  */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h.  */
11922 /* System header to define __stub macros and hopefully few prototypes,
11923     which can conflict with char dlopen (); below.
11924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11925     <limits.h> exists even on freestanding compilers.  */
11926 #ifdef __STDC__
11927 # include <limits.h>
11928 #else
11929 # include <assert.h>
11930 #endif
11931 /* Override any gcc2 internal prototype to avoid an error.  */
11932 #ifdef __cplusplus
11933 extern "C"
11934 {
11935 #endif
11936 /* We use char because int might match the return type of a gcc2
11937    builtin and then its argument prototype would still apply.  */
11938 char dlopen ();
11939 /* The GNU C library defines this for functions which it implements
11940     to always fail with ENOSYS.  Some functions are actually named
11941     something starting with __ and the normal name is an alias.  */
11942 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11943 choke me
11944 #else
11945 char (*f) () = dlopen;
11946 #endif
11947 #ifdef __cplusplus
11948 }
11949 #endif
11950
11951 int
11952 main ()
11953 {
11954 return f != dlopen;
11955   ;
11956   return 0;
11957 }
11958 _ACEOF
11959 rm -f conftest.$ac_objext conftest$ac_exeext
11960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11961   (eval $ac_link) 2>&5
11962   ac_status=$?
11963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964   (exit $ac_status); } &&
11965          { ac_try='test -s conftest$ac_exeext'
11966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967   (eval $ac_try) 2>&5
11968   ac_status=$?
11969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970   (exit $ac_status); }; }; then
11971   ac_cv_func_dlopen=yes
11972 else
11973   echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11975
11976 ac_cv_func_dlopen=no
11977 fi
11978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11979 fi
11980 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11981 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11982 if test $ac_cv_func_dlopen = yes; then
11983   lt_cv_dlopen="dlopen"
11984 else
11985   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11986 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11987 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11988   echo $ECHO_N "(cached) $ECHO_C" >&6
11989 else
11990   ac_check_lib_save_LIBS=$LIBS
11991 LIBS="-ldl  $LIBS"
11992 cat >conftest.$ac_ext <<_ACEOF
11993 #line $LINENO "configure"
11994 /* confdefs.h.  */
11995 _ACEOF
11996 cat confdefs.h >>conftest.$ac_ext
11997 cat >>conftest.$ac_ext <<_ACEOF
11998 /* end confdefs.h.  */
11999
12000 /* Override any gcc2 internal prototype to avoid an error.  */
12001 #ifdef __cplusplus
12002 extern "C"
12003 #endif
12004 /* We use char because int might match the return type of a gcc2
12005    builtin and then its argument prototype would still apply.  */
12006 char dlopen ();
12007 int
12008 main ()
12009 {
12010 dlopen ();
12011   ;
12012   return 0;
12013 }
12014 _ACEOF
12015 rm -f conftest.$ac_objext conftest$ac_exeext
12016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12017   (eval $ac_link) 2>&5
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); } &&
12021          { ac_try='test -s conftest$ac_exeext'
12022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023   (eval $ac_try) 2>&5
12024   ac_status=$?
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); }; }; then
12027   ac_cv_lib_dl_dlopen=yes
12028 else
12029   echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12031
12032 ac_cv_lib_dl_dlopen=no
12033 fi
12034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12035 LIBS=$ac_check_lib_save_LIBS
12036 fi
12037 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12038 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12039 if test $ac_cv_lib_dl_dlopen = yes; then
12040   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12041 else
12042   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12043 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12044 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12045   echo $ECHO_N "(cached) $ECHO_C" >&6
12046 else
12047   ac_check_lib_save_LIBS=$LIBS
12048 LIBS="-lsvld  $LIBS"
12049 cat >conftest.$ac_ext <<_ACEOF
12050 #line $LINENO "configure"
12051 /* confdefs.h.  */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h.  */
12056
12057 /* Override any gcc2 internal prototype to avoid an error.  */
12058 #ifdef __cplusplus
12059 extern "C"
12060 #endif
12061 /* We use char because int might match the return type of a gcc2
12062    builtin and then its argument prototype would still apply.  */
12063 char dlopen ();
12064 int
12065 main ()
12066 {
12067 dlopen ();
12068   ;
12069   return 0;
12070 }
12071 _ACEOF
12072 rm -f conftest.$ac_objext conftest$ac_exeext
12073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12074   (eval $ac_link) 2>&5
12075   ac_status=$?
12076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077   (exit $ac_status); } &&
12078          { ac_try='test -s conftest$ac_exeext'
12079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080   (eval $ac_try) 2>&5
12081   ac_status=$?
12082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083   (exit $ac_status); }; }; then
12084   ac_cv_lib_svld_dlopen=yes
12085 else
12086   echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12088
12089 ac_cv_lib_svld_dlopen=no
12090 fi
12091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12092 LIBS=$ac_check_lib_save_LIBS
12093 fi
12094 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12095 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12096 if test $ac_cv_lib_svld_dlopen = yes; then
12097   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12098 else
12099   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12100 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12101 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12102   echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104   ac_check_lib_save_LIBS=$LIBS
12105 LIBS="-ldld  $LIBS"
12106 cat >conftest.$ac_ext <<_ACEOF
12107 #line $LINENO "configure"
12108 /* confdefs.h.  */
12109 _ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h.  */
12113
12114 /* Override any gcc2 internal prototype to avoid an error.  */
12115 #ifdef __cplusplus
12116 extern "C"
12117 #endif
12118 /* We use char because int might match the return type of a gcc2
12119    builtin and then its argument prototype would still apply.  */
12120 char dld_link ();
12121 int
12122 main ()
12123 {
12124 dld_link ();
12125   ;
12126   return 0;
12127 }
12128 _ACEOF
12129 rm -f conftest.$ac_objext conftest$ac_exeext
12130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12131   (eval $ac_link) 2>&5
12132   ac_status=$?
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); } &&
12135          { ac_try='test -s conftest$ac_exeext'
12136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137   (eval $ac_try) 2>&5
12138   ac_status=$?
12139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140   (exit $ac_status); }; }; then
12141   ac_cv_lib_dld_dld_link=yes
12142 else
12143   echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12145
12146 ac_cv_lib_dld_dld_link=no
12147 fi
12148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12149 LIBS=$ac_check_lib_save_LIBS
12150 fi
12151 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12152 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12153 if test $ac_cv_lib_dld_dld_link = yes; then
12154   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12155 fi
12156
12157
12158 fi
12159
12160
12161 fi
12162
12163
12164 fi
12165
12166
12167 fi
12168
12169
12170 fi
12171
12172     ;;
12173   esac
12174
12175   if test "x$lt_cv_dlopen" != xno; then
12176     enable_dlopen=yes
12177   else
12178     enable_dlopen=no
12179   fi
12180
12181   case $lt_cv_dlopen in
12182   dlopen)
12183     save_CPPFLAGS="$CPPFLAGS"
12184     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12185
12186     save_LDFLAGS="$LDFLAGS"
12187     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12188
12189     save_LIBS="$LIBS"
12190     LIBS="$lt_cv_dlopen_libs $LIBS"
12191
12192     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12193 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12194 if test "${lt_cv_dlopen_self+set}" = set; then
12195   echo $ECHO_N "(cached) $ECHO_C" >&6
12196 else
12197           if test "$cross_compiling" = yes; then :
12198   lt_cv_dlopen_self=cross
12199 else
12200   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12201   lt_status=$lt_dlunknown
12202   cat > conftest.$ac_ext <<EOF
12203 #line 12203 "configure"
12204 #include "confdefs.h"
12205
12206 #if HAVE_DLFCN_H
12207 #include <dlfcn.h>
12208 #endif
12209
12210 #include <stdio.h>
12211
12212 #ifdef RTLD_GLOBAL
12213 #  define LT_DLGLOBAL           RTLD_GLOBAL
12214 #else
12215 #  ifdef DL_GLOBAL
12216 #    define LT_DLGLOBAL         DL_GLOBAL
12217 #  else
12218 #    define LT_DLGLOBAL         0
12219 #  endif
12220 #endif
12221
12222 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12223    find out it does not work in some platform. */
12224 #ifndef LT_DLLAZY_OR_NOW
12225 #  ifdef RTLD_LAZY
12226 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12227 #  else
12228 #    ifdef DL_LAZY
12229 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12230 #    else
12231 #      ifdef RTLD_NOW
12232 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12233 #      else
12234 #        ifdef DL_NOW
12235 #          define LT_DLLAZY_OR_NOW      DL_NOW
12236 #        else
12237 #          define LT_DLLAZY_OR_NOW      0
12238 #        endif
12239 #      endif
12240 #    endif
12241 #  endif
12242 #endif
12243
12244 #ifdef __cplusplus
12245 extern "C" void exit (int);
12246 #endif
12247
12248 void fnord() { int i=42;}
12249 int main ()
12250 {
12251   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12252   int status = $lt_dlunknown;
12253
12254   if (self)
12255     {
12256       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12257       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12258       /* dlclose (self); */
12259     }
12260
12261     exit (status);
12262 }
12263 EOF
12264   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12265   (eval $ac_link) 2>&5
12266   ac_status=$?
12267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12269     (./conftest; exit; ) 2>/dev/null
12270     lt_status=$?
12271     case x$lt_status in
12272       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12273       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12274       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12275     esac
12276   else :
12277     # compilation failed
12278     lt_cv_dlopen_self=no
12279   fi
12280 fi
12281 rm -fr conftest*
12282
12283
12284 fi
12285 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12286 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12287
12288     if test "x$lt_cv_dlopen_self" = xyes; then
12289       LDFLAGS="$LDFLAGS $link_static_flag"
12290       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12291 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12292 if test "${lt_cv_dlopen_self_static+set}" = set; then
12293   echo $ECHO_N "(cached) $ECHO_C" >&6
12294 else
12295           if test "$cross_compiling" = yes; then :
12296   lt_cv_dlopen_self_static=cross
12297 else
12298   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12299   lt_status=$lt_dlunknown
12300   cat > conftest.$ac_ext <<EOF
12301 #line 12301 "configure"
12302 #include "confdefs.h"
12303
12304 #if HAVE_DLFCN_H
12305 #include <dlfcn.h>
12306 #endif
12307
12308 #include <stdio.h>
12309
12310 #ifdef RTLD_GLOBAL
12311 #  define LT_DLGLOBAL           RTLD_GLOBAL
12312 #else
12313 #  ifdef DL_GLOBAL
12314 #    define LT_DLGLOBAL         DL_GLOBAL
12315 #  else
12316 #    define LT_DLGLOBAL         0
12317 #  endif
12318 #endif
12319
12320 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12321    find out it does not work in some platform. */
12322 #ifndef LT_DLLAZY_OR_NOW
12323 #  ifdef RTLD_LAZY
12324 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12325 #  else
12326 #    ifdef DL_LAZY
12327 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12328 #    else
12329 #      ifdef RTLD_NOW
12330 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12331 #      else
12332 #        ifdef DL_NOW
12333 #          define LT_DLLAZY_OR_NOW      DL_NOW
12334 #        else
12335 #          define LT_DLLAZY_OR_NOW      0
12336 #        endif
12337 #      endif
12338 #    endif
12339 #  endif
12340 #endif
12341
12342 #ifdef __cplusplus
12343 extern "C" void exit (int);
12344 #endif
12345
12346 void fnord() { int i=42;}
12347 int main ()
12348 {
12349   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12350   int status = $lt_dlunknown;
12351
12352   if (self)
12353     {
12354       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12355       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12356       /* dlclose (self); */
12357     }
12358
12359     exit (status);
12360 }
12361 EOF
12362   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12363   (eval $ac_link) 2>&5
12364   ac_status=$?
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12367     (./conftest; exit; ) 2>/dev/null
12368     lt_status=$?
12369     case x$lt_status in
12370       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12371       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12372       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12373     esac
12374   else :
12375     # compilation failed
12376     lt_cv_dlopen_self_static=no
12377   fi
12378 fi
12379 rm -fr conftest*
12380
12381
12382 fi
12383 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12384 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12385     fi
12386
12387     CPPFLAGS="$save_CPPFLAGS"
12388     LDFLAGS="$save_LDFLAGS"
12389     LIBS="$save_LIBS"
12390     ;;
12391   esac
12392
12393   case $lt_cv_dlopen_self in
12394   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12395   *) enable_dlopen_self=unknown ;;
12396   esac
12397
12398   case $lt_cv_dlopen_self_static in
12399   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12400   *) enable_dlopen_self_static=unknown ;;
12401   esac
12402 fi
12403
12404
12405 # The else clause should only fire when bootstrapping the
12406 # libtool distribution, otherwise you forgot to ship ltmain.sh
12407 # with your package, and you will get complaints that there are
12408 # no rules to generate ltmain.sh.
12409 if test -f "$ltmain"; then
12410   # See if we are running on zsh, and set the options which allow our commands through
12411   # without removal of \ escapes.
12412   if test -n "${ZSH_VERSION+set}" ; then
12413     setopt NO_GLOB_SUBST
12414   fi
12415   # Now quote all the things that may contain metacharacters while being
12416   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12417   # variables and quote the copies for generation of the libtool script.
12418   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12419     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12420     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12421     deplibs_check_method reload_flag reload_cmds need_locks \
12422     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12423     lt_cv_sys_global_symbol_to_c_name_address \
12424     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12425     old_postinstall_cmds old_postuninstall_cmds \
12426     compiler_CXX \
12427     CC_CXX \
12428     LD_CXX \
12429     lt_prog_compiler_wl_CXX \
12430     lt_prog_compiler_pic_CXX \
12431     lt_prog_compiler_static_CXX \
12432     lt_prog_compiler_no_builtin_flag_CXX \
12433     export_dynamic_flag_spec_CXX \
12434     thread_safe_flag_spec_CXX \
12435     whole_archive_flag_spec_CXX \
12436     enable_shared_with_static_runtimes_CXX \
12437     old_archive_cmds_CXX \
12438     old_archive_from_new_cmds_CXX \
12439     predep_objects_CXX \
12440     postdep_objects_CXX \
12441     predeps_CXX \
12442     postdeps_CXX \
12443     compiler_lib_search_path_CXX \
12444     archive_cmds_CXX \
12445     archive_expsym_cmds_CXX \
12446     postinstall_cmds_CXX \
12447     postuninstall_cmds_CXX \
12448     old_archive_from_expsyms_cmds_CXX \
12449     allow_undefined_flag_CXX \
12450     no_undefined_flag_CXX \
12451     export_symbols_cmds_CXX \
12452     hardcode_libdir_flag_spec_CXX \
12453     hardcode_libdir_flag_spec_ld_CXX \
12454     hardcode_libdir_separator_CXX \
12455     hardcode_automatic_CXX \
12456     module_cmds_CXX \
12457     module_expsym_cmds_CXX \
12458     lt_cv_prog_compiler_c_o_CXX \
12459     exclude_expsyms_CXX \
12460     include_expsyms_CXX; do
12461
12462     case $var in
12463     old_archive_cmds_CXX | \
12464     old_archive_from_new_cmds_CXX | \
12465     archive_cmds_CXX | \
12466     archive_expsym_cmds_CXX | \
12467     module_cmds_CXX | \
12468     module_expsym_cmds_CXX | \
12469     old_archive_from_expsyms_cmds_CXX | \
12470     export_symbols_cmds_CXX | \
12471     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12472     postinstall_cmds | postuninstall_cmds | \
12473     old_postinstall_cmds | old_postuninstall_cmds | \
12474     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12475       # Double-quote double-evaled strings.
12476       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12477       ;;
12478     *)
12479       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12480       ;;
12481     esac
12482   done
12483
12484   case $lt_echo in
12485   *'\$0 --fallback-echo"')
12486     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12487     ;;
12488   esac
12489
12490 cfgfile="$ofile"
12491
12492   cat <<__EOF__ >> "$cfgfile"
12493 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12494
12495 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12496
12497 # Shell to use when invoking shell scripts.
12498 SHELL=$lt_SHELL
12499
12500 # Whether or not to build shared libraries.
12501 build_libtool_libs=$enable_shared
12502
12503 # Whether or not to build static libraries.
12504 build_old_libs=$enable_static
12505
12506 # Whether or not to add -lc for building shared libraries.
12507 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12508
12509 # Whether or not to disallow shared libs when runtime libs are static
12510 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12511
12512 # Whether or not to optimize for fast installation.
12513 fast_install=$enable_fast_install
12514
12515 # The host system.
12516 host_alias=$host_alias
12517 host=$host
12518
12519 # An echo program that does not interpret backslashes.
12520 echo=$lt_echo
12521
12522 # The archiver.
12523 AR=$lt_AR
12524 AR_FLAGS=$lt_AR_FLAGS
12525
12526 # A C compiler.
12527 LTCC=$lt_LTCC
12528
12529 # A language-specific compiler.
12530 CC=$lt_compiler_CXX
12531
12532 # Is the compiler the GNU C compiler?
12533 with_gcc=$GCC_CXX
12534
12535 # An ERE matcher.
12536 EGREP=$lt_EGREP
12537
12538 # The linker used to build libraries.
12539 LD=$lt_LD_CXX
12540
12541 # Whether we need hard or soft links.
12542 LN_S=$lt_LN_S
12543
12544 # A BSD-compatible nm program.
12545 NM=$lt_NM
12546
12547 # A symbol stripping program
12548 STRIP=$STRIP
12549
12550 # Used to examine libraries when file_magic_cmd begins "file"
12551 MAGIC_CMD=$MAGIC_CMD
12552
12553 # Used on cygwin: DLL creation program.
12554 DLLTOOL="$DLLTOOL"
12555
12556 # Used on cygwin: object dumper.
12557 OBJDUMP="$OBJDUMP"
12558
12559 # Used on cygwin: assembler.
12560 AS="$AS"
12561
12562 # The name of the directory that contains temporary libtool files.
12563 objdir=$objdir
12564
12565 # How to create reloadable object files.
12566 reload_flag=$lt_reload_flag
12567 reload_cmds=$lt_reload_cmds
12568
12569 # How to pass a linker flag through the compiler.
12570 wl=$lt_lt_prog_compiler_wl_CXX
12571
12572 # Object file suffix (normally "o").
12573 objext="$ac_objext"
12574
12575 # Old archive suffix (normally "a").
12576 libext="$libext"
12577
12578 # Shared library suffix (normally ".so").
12579 shrext='$shrext'
12580
12581 # Executable file suffix (normally "").
12582 exeext="$exeext"
12583
12584 # Additional compiler flags for building library objects.
12585 pic_flag=$lt_lt_prog_compiler_pic_CXX
12586 pic_mode=$pic_mode
12587
12588 # What is the maximum length of a command?
12589 max_cmd_len=$lt_cv_sys_max_cmd_len
12590
12591 # Does compiler simultaneously support -c and -o options?
12592 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12593
12594 # Must we lock files when doing compilation ?
12595 need_locks=$lt_need_locks
12596
12597 # Do we need the lib prefix for modules?
12598 need_lib_prefix=$need_lib_prefix
12599
12600 # Do we need a version for libraries?
12601 need_version=$need_version
12602
12603 # Whether dlopen is supported.
12604 dlopen_support=$enable_dlopen
12605
12606 # Whether dlopen of programs is supported.
12607 dlopen_self=$enable_dlopen_self
12608
12609 # Whether dlopen of statically linked programs is supported.
12610 dlopen_self_static=$enable_dlopen_self_static
12611
12612 # Compiler flag to prevent dynamic linking.
12613 link_static_flag=$lt_lt_prog_compiler_static_CXX
12614
12615 # Compiler flag to turn off builtin functions.
12616 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12617
12618 # Compiler flag to allow reflexive dlopens.
12619 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12620
12621 # Compiler flag to generate shared objects directly from archives.
12622 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12623
12624 # Compiler flag to generate thread-safe objects.
12625 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12626
12627 # Library versioning type.
12628 version_type=$version_type
12629
12630 # Format of library name prefix.
12631 libname_spec=$lt_libname_spec
12632
12633 # List of archive names.  First name is the real one, the rest are links.
12634 # The last name is the one that the linker finds with -lNAME.
12635 library_names_spec=$lt_library_names_spec
12636
12637 # The coded name of the library, if different from the real name.
12638 soname_spec=$lt_soname_spec
12639
12640 # Commands used to build and install an old-style archive.
12641 RANLIB=$lt_RANLIB
12642 old_archive_cmds=$lt_old_archive_cmds_CXX
12643 old_postinstall_cmds=$lt_old_postinstall_cmds
12644 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12645
12646 # Create an old-style archive from a shared archive.
12647 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12648
12649 # Create a temporary old-style archive to link instead of a shared archive.
12650 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12651
12652 # Commands used to build and install a shared archive.
12653 archive_cmds=$lt_archive_cmds_CXX
12654 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12655 postinstall_cmds=$lt_postinstall_cmds
12656 postuninstall_cmds=$lt_postuninstall_cmds
12657
12658 # Commands used to build a loadable module (assumed same as above if empty)
12659 module_cmds=$lt_module_cmds_CXX
12660 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12661
12662 # Commands to strip libraries.
12663 old_striplib=$lt_old_striplib
12664 striplib=$lt_striplib
12665
12666 # Dependencies to place before the objects being linked to create a
12667 # shared library.
12668 predep_objects=$lt_predep_objects_CXX
12669
12670 # Dependencies to place after the objects being linked to create a
12671 # shared library.
12672 postdep_objects=$lt_postdep_objects_CXX
12673
12674 # Dependencies to place before the objects being linked to create a
12675 # shared library.
12676 predeps=$lt_predeps_CXX
12677
12678 # Dependencies to place after the objects being linked to create a
12679 # shared library.
12680 postdeps=$lt_postdeps_CXX
12681
12682 # The library search path used internally by the compiler when linking
12683 # a shared library.
12684 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12685
12686 # Method to check whether dependent libraries are shared objects.
12687 deplibs_check_method=$lt_deplibs_check_method
12688
12689 # Command to use when deplibs_check_method == file_magic.
12690 file_magic_cmd=$lt_file_magic_cmd
12691
12692 # Flag that allows shared libraries with undefined symbols to be built.
12693 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12694
12695 # Flag that forces no undefined symbols.
12696 no_undefined_flag=$lt_no_undefined_flag_CXX
12697
12698 # Commands used to finish a libtool library installation in a directory.
12699 finish_cmds=$lt_finish_cmds
12700
12701 # Same as above, but a single script fragment to be evaled but not shown.
12702 finish_eval=$lt_finish_eval
12703
12704 # Take the output of nm and produce a listing of raw symbols and C names.
12705 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12706
12707 # Transform the output of nm in a proper C declaration
12708 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12709
12710 # Transform the output of nm in a C name address pair
12711 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12712
12713 # This is the shared library runtime path variable.
12714 runpath_var=$runpath_var
12715
12716 # This is the shared library path variable.
12717 shlibpath_var=$shlibpath_var
12718
12719 # Is shlibpath searched before the hard-coded library search path?
12720 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12721
12722 # How to hardcode a shared library path into an executable.
12723 hardcode_action=$hardcode_action_CXX
12724
12725 # Whether we should hardcode library paths into libraries.
12726 hardcode_into_libs=$hardcode_into_libs
12727
12728 # Flag to hardcode \$libdir into a binary during linking.
12729 # This must work even if \$libdir does not exist.
12730 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12731
12732 # If ld is used when linking, flag to hardcode \$libdir into
12733 # a binary during linking. This must work even if \$libdir does
12734 # not exist.
12735 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12736
12737 # Whether we need a single -rpath flag with a separated argument.
12738 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12739
12740 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12741 # resulting binary.
12742 hardcode_direct=$hardcode_direct_CXX
12743
12744 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12745 # resulting binary.
12746 hardcode_minus_L=$hardcode_minus_L_CXX
12747
12748 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12749 # the resulting binary.
12750 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12751
12752 # Set to yes if building a shared library automatically hardcodes DIR into the library
12753 # and all subsequent libraries and executables linked against it.
12754 hardcode_automatic=$hardcode_automatic_CXX
12755
12756 # Variables whose values should be saved in libtool wrapper scripts and
12757 # restored at relink time.
12758 variables_saved_for_relink="$variables_saved_for_relink"
12759
12760 # Whether libtool must link a program against all its dependency libraries.
12761 link_all_deplibs=$link_all_deplibs_CXX
12762
12763 # Compile-time system search path for libraries
12764 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12765
12766 # Run-time system search path for libraries
12767 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12768
12769 # Fix the shell variable \$srcfile for the compiler.
12770 fix_srcfile_path="$fix_srcfile_path_CXX"
12771
12772 # Set to yes if exported symbols are required.
12773 always_export_symbols=$always_export_symbols_CXX
12774
12775 # The commands to list exported symbols.
12776 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12777
12778 # The commands to extract the exported symbol list from a shared archive.
12779 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12780
12781 # Symbols that should not be listed in the preloaded symbols.
12782 exclude_expsyms=$lt_exclude_expsyms_CXX
12783
12784 # Symbols that must always be exported.
12785 include_expsyms=$lt_include_expsyms_CXX
12786
12787 # ### END LIBTOOL TAG CONFIG: $tagname
12788
12789 __EOF__
12790
12791
12792 else
12793   # If there is no Makefile yet, we rely on a make rule to execute
12794   # `config.status --recheck' to rerun these tests and create the
12795   # libtool script then.
12796   test -f Makefile && make "$ltmain"
12797 fi
12798
12799
12800 ac_ext=c
12801 ac_cpp='$CPP $CPPFLAGS'
12802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12805
12806 CC=$lt_save_CC
12807 LDCXX=$LD
12808 LD=$lt_save_LD
12809 GCC=$lt_save_GCC
12810 with_gnu_ldcxx=$with_gnu_ld
12811 with_gnu_ld=$lt_save_with_gnu_ld
12812 lt_cv_path_LDCXX=$lt_cv_path_LD
12813 lt_cv_path_LD=$lt_save_path_LD
12814 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12815 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12816
12817         else
12818           tagname=""
12819         fi
12820         ;;
12821
12822       F77)
12823         if test -n "$F77" && test "X$F77" != "Xno"; then
12824
12825 ac_ext=f
12826 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12827 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12828 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12829
12830
12831 archive_cmds_need_lc_F77=no
12832 allow_undefined_flag_F77=
12833 always_export_symbols_F77=no
12834 archive_expsym_cmds_F77=
12835 export_dynamic_flag_spec_F77=
12836 hardcode_direct_F77=no
12837 hardcode_libdir_flag_spec_F77=
12838 hardcode_libdir_flag_spec_ld_F77=
12839 hardcode_libdir_separator_F77=
12840 hardcode_minus_L_F77=no
12841 hardcode_automatic_F77=no
12842 module_cmds_F77=
12843 module_expsym_cmds_F77=
12844 link_all_deplibs_F77=unknown
12845 old_archive_cmds_F77=$old_archive_cmds
12846 no_undefined_flag_F77=
12847 whole_archive_flag_spec_F77=
12848 enable_shared_with_static_runtimes_F77=no
12849
12850 # Source file extension for f77 test sources.
12851 ac_ext=f
12852
12853 # Object file extension for compiled f77 test sources.
12854 objext=o
12855 objext_F77=$objext
12856
12857 # Code to be used in simple compile tests
12858 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12859
12860 # Code to be used in simple link tests
12861 lt_simple_link_test_code="      program t\n      end\n"
12862
12863 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12864
12865 # If no C compiler was specified, use CC.
12866 LTCC=${LTCC-"$CC"}
12867
12868 # Allow CC to be a program name with arguments.
12869 compiler=$CC
12870
12871
12872 # Allow CC to be a program name with arguments.
12873 lt_save_CC="$CC"
12874 CC=${F77-"f77"}
12875 compiler=$CC
12876 compiler_F77=$CC
12877 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12878
12879 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12880 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12881 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12882 echo "${ECHO_T}$can_build_shared" >&6
12883
12884 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12885 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12886 test "$can_build_shared" = "no" && enable_shared=no
12887
12888 # On AIX, shared libraries and static libraries use the same namespace, and
12889 # are all built from PIC.
12890 case "$host_os" in
12891 aix3*)
12892   test "$enable_shared" = yes && enable_static=no
12893   if test -n "$RANLIB"; then
12894     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12895     postinstall_cmds='$RANLIB $lib'
12896   fi
12897   ;;
12898 aix4*)
12899   test "$enable_shared" = yes && enable_static=no
12900   ;;
12901 esac
12902 echo "$as_me:$LINENO: result: $enable_shared" >&5
12903 echo "${ECHO_T}$enable_shared" >&6
12904
12905 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12906 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12907 # Make sure either enable_shared or enable_static is yes.
12908 test "$enable_shared" = yes || enable_static=yes
12909 echo "$as_me:$LINENO: result: $enable_static" >&5
12910 echo "${ECHO_T}$enable_static" >&6
12911
12912 test "$ld_shlibs_F77" = no && can_build_shared=no
12913
12914 GCC_F77="$G77"
12915 LD_F77="$LD"
12916
12917 lt_prog_compiler_wl_F77=
12918 lt_prog_compiler_pic_F77=
12919 lt_prog_compiler_static_F77=
12920
12921 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12922 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12923
12924   if test "$GCC" = yes; then
12925     lt_prog_compiler_wl_F77='-Wl,'
12926     lt_prog_compiler_static_F77='-static'
12927
12928     case $host_os in
12929       aix*)
12930       # All AIX code is PIC.
12931       if test "$host_cpu" = ia64; then
12932         # AIX 5 now supports IA64 processor
12933         lt_prog_compiler_static_F77='-Bstatic'
12934       fi
12935       ;;
12936
12937     amigaos*)
12938       # FIXME: we need at least 68020 code to build shared libraries, but
12939       # adding the `-m68020' flag to GCC prevents building anything better,
12940       # like `-m68040'.
12941       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12942       ;;
12943
12944     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12945       # PIC is the default for these OSes.
12946       ;;
12947
12948     mingw* | pw32* | os2*)
12949       # This hack is so that the source file can tell whether it is being
12950       # built for inclusion in a dll (and should export symbols for example).
12951       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12952       ;;
12953
12954     darwin* | rhapsody*)
12955       # PIC is the default on this platform
12956       # Common symbols not allowed in MH_DYLIB files
12957       lt_prog_compiler_pic_F77='-fno-common'
12958       ;;
12959
12960     msdosdjgpp*)
12961       # Just because we use GCC doesn't mean we suddenly get shared libraries
12962       # on systems that don't support them.
12963       lt_prog_compiler_can_build_shared_F77=no
12964       enable_shared=no
12965       ;;
12966
12967     sysv4*MP*)
12968       if test -d /usr/nec; then
12969         lt_prog_compiler_pic_F77=-Kconform_pic
12970       fi
12971       ;;
12972
12973     hpux*)
12974       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12975       # not for PA HP-UX.
12976       case "$host_cpu" in
12977       hppa*64*|ia64*)
12978         # +Z the default
12979         ;;
12980       *)
12981         lt_prog_compiler_pic_F77='-fPIC'
12982         ;;
12983       esac
12984       ;;
12985
12986     *)
12987       lt_prog_compiler_pic_F77='-fPIC'
12988       ;;
12989     esac
12990   else
12991     # PORTME Check for flag to pass linker flags through the system compiler.
12992     case $host_os in
12993     aix*)
12994       lt_prog_compiler_wl_F77='-Wl,'
12995       if test "$host_cpu" = ia64; then
12996         # AIX 5 now supports IA64 processor
12997         lt_prog_compiler_static_F77='-Bstatic'
12998       else
12999         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13000       fi
13001       ;;
13002
13003     mingw* | pw32* | os2*)
13004       # This hack is so that the source file can tell whether it is being
13005       # built for inclusion in a dll (and should export symbols for example).
13006       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13007       ;;
13008
13009     hpux9* | hpux10* | hpux11*)
13010       lt_prog_compiler_wl_F77='-Wl,'
13011       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13012       # not for PA HP-UX.
13013       case "$host_cpu" in
13014       hppa*64*|ia64*)
13015         # +Z the default
13016         ;;
13017       *)
13018         lt_prog_compiler_pic_F77='+Z'
13019         ;;
13020       esac
13021       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13022       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13023       ;;
13024
13025     irix5* | irix6* | nonstopux*)
13026       lt_prog_compiler_wl_F77='-Wl,'
13027       # PIC (with -KPIC) is the default.
13028       lt_prog_compiler_static_F77='-non_shared'
13029       ;;
13030
13031     newsos6)
13032       lt_prog_compiler_pic_F77='-KPIC'
13033       lt_prog_compiler_static_F77='-Bstatic'
13034       ;;
13035
13036     linux*)
13037       case $CC in
13038       icc|ecc)
13039         lt_prog_compiler_wl_F77='-Wl,'
13040         lt_prog_compiler_pic_F77='-KPIC'
13041         lt_prog_compiler_static_F77='-static'
13042         ;;
13043       ccc)
13044         lt_prog_compiler_wl_F77='-Wl,'
13045         # All Alpha code is PIC.
13046         lt_prog_compiler_static_F77='-non_shared'
13047         ;;
13048       esac
13049       ;;
13050
13051     osf3* | osf4* | osf5*)
13052       lt_prog_compiler_wl_F77='-Wl,'
13053       # All OSF/1 code is PIC.
13054       lt_prog_compiler_static_F77='-non_shared'
13055       ;;
13056
13057     sco3.2v5*)
13058       lt_prog_compiler_pic_F77='-Kpic'
13059       lt_prog_compiler_static_F77='-dn'
13060       ;;
13061
13062     solaris*)
13063       lt_prog_compiler_wl_F77='-Wl,'
13064       lt_prog_compiler_pic_F77='-KPIC'
13065       lt_prog_compiler_static_F77='-Bstatic'
13066       ;;
13067
13068     sunos4*)
13069       lt_prog_compiler_wl_F77='-Qoption ld '
13070       lt_prog_compiler_pic_F77='-PIC'
13071       lt_prog_compiler_static_F77='-Bstatic'
13072       ;;
13073
13074     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13075       lt_prog_compiler_wl_F77='-Wl,'
13076       lt_prog_compiler_pic_F77='-KPIC'
13077       lt_prog_compiler_static_F77='-Bstatic'
13078       ;;
13079
13080     sysv4*MP*)
13081       if test -d /usr/nec ;then
13082         lt_prog_compiler_pic_F77='-Kconform_pic'
13083         lt_prog_compiler_static_F77='-Bstatic'
13084       fi
13085       ;;
13086
13087     uts4*)
13088       lt_prog_compiler_pic_F77='-pic'
13089       lt_prog_compiler_static_F77='-Bstatic'
13090       ;;
13091
13092     *)
13093       lt_prog_compiler_can_build_shared_F77=no
13094       ;;
13095     esac
13096   fi
13097
13098 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13099 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13100
13101 #
13102 # Check to make sure the PIC flag actually works.
13103 #
13104 if test -n "$lt_prog_compiler_pic_F77"; then
13105   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13106 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13107 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13108   echo $ECHO_N "(cached) $ECHO_C" >&6
13109 else
13110   lt_prog_compiler_pic_works_F77=no
13111   ac_outfile=conftest.$ac_objext
13112    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13113    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13114    # Insert the option either (1) after the last *FLAGS variable, or
13115    # (2) before a word containing "conftest.", or (3) at the end.
13116    # Note that $ac_compile itself does not contain backslashes and begins
13117    # with a dollar sign (not a hyphen), so the echo should work correctly.
13118    # The option is referenced via a variable to avoid confusing sed.
13119    lt_compile=`echo "$ac_compile" | $SED \
13120    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13121    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13122    -e 's:$: $lt_compiler_flag:'`
13123    (eval echo "\"\$as_me:13123: $lt_compile\"" >&5)
13124    (eval "$lt_compile" 2>conftest.err)
13125    ac_status=$?
13126    cat conftest.err >&5
13127    echo "$as_me:13127: \$? = $ac_status" >&5
13128    if (exit $ac_status) && test -s "$ac_outfile"; then
13129      # The compiler can only warn and ignore the option if not recognized
13130      # So say no if there are warnings
13131      if test ! -s conftest.err; then
13132        lt_prog_compiler_pic_works_F77=yes
13133      fi
13134    fi
13135    $rm conftest*
13136
13137 fi
13138 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13139 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13140
13141 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13142     case $lt_prog_compiler_pic_F77 in
13143      "" | " "*) ;;
13144      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13145      esac
13146 else
13147     lt_prog_compiler_pic_F77=
13148      lt_prog_compiler_can_build_shared_F77=no
13149 fi
13150
13151 fi
13152 case "$host_os" in
13153   # For platforms which do not support PIC, -DPIC is meaningless:
13154   *djgpp*)
13155     lt_prog_compiler_pic_F77=
13156     ;;
13157   *)
13158     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13159     ;;
13160 esac
13161
13162 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13163 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13164 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13165   echo $ECHO_N "(cached) $ECHO_C" >&6
13166 else
13167   lt_cv_prog_compiler_c_o_F77=no
13168    $rm -r conftest 2>/dev/null
13169    mkdir conftest
13170    cd conftest
13171    mkdir out
13172    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13173
13174    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13175    # that will create temporary files in the current directory regardless of
13176    # the output directory.  Thus, making CWD read-only will cause this test
13177    # to fail, enabling locking or at least warning the user not to do parallel
13178    # builds.
13179    chmod -w .
13180
13181    lt_compiler_flag="-o out/conftest2.$ac_objext"
13182    # Insert the option either (1) after the last *FLAGS variable, or
13183    # (2) before a word containing "conftest.", or (3) at the end.
13184    # Note that $ac_compile itself does not contain backslashes and begins
13185    # with a dollar sign (not a hyphen), so the echo should work correctly.
13186    lt_compile=`echo "$ac_compile" | $SED \
13187    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13188    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13189    -e 's:$: $lt_compiler_flag:'`
13190    (eval echo "\"\$as_me:13190: $lt_compile\"" >&5)
13191    (eval "$lt_compile" 2>out/conftest.err)
13192    ac_status=$?
13193    cat out/conftest.err >&5
13194    echo "$as_me:13194: \$? = $ac_status" >&5
13195    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13196    then
13197      # The compiler can only warn and ignore the option if not recognized
13198      # So say no if there are warnings
13199      if test ! -s out/conftest.err; then
13200        lt_cv_prog_compiler_c_o_F77=yes
13201      fi
13202    fi
13203    chmod u+w .
13204    $rm conftest* out/*
13205    rmdir out
13206    cd ..
13207    rmdir conftest
13208    $rm conftest*
13209
13210 fi
13211 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13212 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13213
13214
13215 hard_links="nottested"
13216 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13217   # do not overwrite the value of need_locks provided by the user
13218   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13219 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13220   hard_links=yes
13221   $rm conftest*
13222   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13223   touch conftest.a
13224   ln conftest.a conftest.b 2>&5 || hard_links=no
13225   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13226   echo "$as_me:$LINENO: result: $hard_links" >&5
13227 echo "${ECHO_T}$hard_links" >&6
13228   if test "$hard_links" = no; then
13229     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13230 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13231     need_locks=warn
13232   fi
13233 else
13234   need_locks=no
13235 fi
13236
13237 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13238 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13239
13240   runpath_var=
13241   allow_undefined_flag_F77=
13242   enable_shared_with_static_runtimes_F77=no
13243   archive_cmds_F77=
13244   archive_expsym_cmds_F77=
13245   old_archive_From_new_cmds_F77=
13246   old_archive_from_expsyms_cmds_F77=
13247   export_dynamic_flag_spec_F77=
13248   whole_archive_flag_spec_F77=
13249   thread_safe_flag_spec_F77=
13250   hardcode_libdir_flag_spec_F77=
13251   hardcode_libdir_flag_spec_ld_F77=
13252   hardcode_libdir_separator_F77=
13253   hardcode_direct_F77=no
13254   hardcode_minus_L_F77=no
13255   hardcode_shlibpath_var_F77=unsupported
13256   link_all_deplibs_F77=unknown
13257   hardcode_automatic_F77=no
13258   module_cmds_F77=
13259   module_expsym_cmds_F77=
13260   always_export_symbols_F77=no
13261   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13262   # include_expsyms should be a list of space-separated symbols to be *always*
13263   # included in the symbol list
13264   include_expsyms_F77=
13265   # exclude_expsyms can be an extended regexp of symbols to exclude
13266   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13267   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13268   # as well as any symbol that contains `d'.
13269   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13270   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13271   # platforms (ab)use it in PIC code, but their linkers get confused if
13272   # the symbol is explicitly referenced.  Since portable code cannot
13273   # rely on this symbol name, it's probably fine to never include it in
13274   # preloaded symbol tables.
13275   extract_expsyms_cmds=
13276
13277   case $host_os in
13278   cygwin* | mingw* | pw32*)
13279     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13280     # When not using gcc, we currently assume that we are using
13281     # Microsoft Visual C++.
13282     if test "$GCC" != yes; then
13283       with_gnu_ld=no
13284     fi
13285     ;;
13286   openbsd*)
13287     with_gnu_ld=no
13288     ;;
13289   esac
13290
13291   ld_shlibs_F77=yes
13292   if test "$with_gnu_ld" = yes; then
13293     # If archive_cmds runs LD, not CC, wlarc should be empty
13294     wlarc='${wl}'
13295
13296     # See if GNU ld supports shared libraries.
13297     case $host_os in
13298     aix3* | aix4* | aix5*)
13299       # On AIX/PPC, the GNU linker is very broken
13300       if test "$host_cpu" != ia64; then
13301         ld_shlibs_F77=no
13302         cat <<EOF 1>&2
13303
13304 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13305 *** to be unable to reliably create shared libraries on AIX.
13306 *** Therefore, libtool is disabling shared libraries support.  If you
13307 *** really care for shared libraries, you may want to modify your PATH
13308 *** so that a non-GNU linker is found, and then restart.
13309
13310 EOF
13311       fi
13312       ;;
13313
13314     amigaos*)
13315       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)'
13316       hardcode_libdir_flag_spec_F77='-L$libdir'
13317       hardcode_minus_L_F77=yes
13318
13319       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13320       # that the semantics of dynamic libraries on AmigaOS, at least up
13321       # to version 4, is to share data among multiple programs linked
13322       # with the same dynamic library.  Since this doesn't match the
13323       # behavior of shared libraries on other platforms, we can't use
13324       # them.
13325       ld_shlibs_F77=no
13326       ;;
13327
13328     beos*)
13329       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13330         allow_undefined_flag_F77=unsupported
13331         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13332         # support --undefined.  This deserves some investigation.  FIXME
13333         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13334       else
13335         ld_shlibs_F77=no
13336       fi
13337       ;;
13338
13339     cygwin* | mingw* | pw32*)
13340       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13341       # as there is no search path for DLLs.
13342       hardcode_libdir_flag_spec_F77='-L$libdir'
13343       allow_undefined_flag_F77=unsupported
13344       always_export_symbols_F77=no
13345       enable_shared_with_static_runtimes_F77=yes
13346       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13347
13348       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13349         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13350         # If the export-symbols file already is a .def file (1st line
13351         # is EXPORTS), use it as is; otherwise, prepend...
13352         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13353           cp $export_symbols $output_objdir/$soname.def;
13354         else
13355           echo EXPORTS > $output_objdir/$soname.def;
13356           cat $export_symbols >> $output_objdir/$soname.def;
13357         fi~
13358         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13359       else
13360         ld_shlibs=no
13361       fi
13362       ;;
13363
13364     netbsd*)
13365       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13366         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13367         wlarc=
13368       else
13369         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13370         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13371       fi
13372       ;;
13373
13374     solaris* | sysv5*)
13375       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13376         ld_shlibs_F77=no
13377         cat <<EOF 1>&2
13378
13379 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13380 *** create shared libraries on Solaris systems.  Therefore, libtool
13381 *** is disabling shared libraries support.  We urge you to upgrade GNU
13382 *** binutils to release 2.9.1 or newer.  Another option is to modify
13383 *** your PATH or compiler configuration so that the native linker is
13384 *** used, and then restart.
13385
13386 EOF
13387       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13388         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13389         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13390       else
13391         ld_shlibs_F77=no
13392       fi
13393       ;;
13394
13395     sunos4*)
13396       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13397       wlarc=
13398       hardcode_direct_F77=yes
13399       hardcode_shlibpath_var_F77=no
13400       ;;
13401
13402     *)
13403       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13404         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13405         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13406       else
13407         ld_shlibs_F77=no
13408       fi
13409       ;;
13410     esac
13411
13412     if test "$ld_shlibs_F77" = yes; then
13413       runpath_var=LD_RUN_PATH
13414       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13415       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13416       # ancient GNU ld didn't support --whole-archive et. al.
13417       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13418         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13419       else
13420         whole_archive_flag_spec_F77=
13421       fi
13422     fi
13423   else
13424     # PORTME fill in a description of your system's linker (not GNU ld)
13425     case $host_os in
13426     aix3*)
13427       allow_undefined_flag_F77=unsupported
13428       always_export_symbols_F77=yes
13429       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'
13430       # Note: this linker hardcodes the directories in LIBPATH if there
13431       # are no directories specified by -L.
13432       hardcode_minus_L_F77=yes
13433       if test "$GCC" = yes && test -z "$link_static_flag"; then
13434         # Neither direct hardcoding nor static linking is supported with a
13435         # broken collect2.
13436         hardcode_direct_F77=unsupported
13437       fi
13438       ;;
13439
13440     aix4* | aix5*)
13441       if test "$host_cpu" = ia64; then
13442         # On IA64, the linker does run time linking by default, so we don't
13443         # have to do anything special.
13444         aix_use_runtimelinking=no
13445         exp_sym_flag='-Bexport'
13446         no_entry_flag=""
13447       else
13448         # If we're using GNU nm, then we don't want the "-C" option.
13449         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13450         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13451           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'
13452         else
13453           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'
13454         fi
13455         aix_use_runtimelinking=no
13456
13457         # Test if we are trying to use run time linking or normal
13458         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13459         # need to do runtime linking.
13460         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13461           for ld_flag in $LDFLAGS; do
13462           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13463             aix_use_runtimelinking=yes
13464             break
13465           fi
13466           done
13467         esac
13468
13469         exp_sym_flag='-bexport'
13470         no_entry_flag='-bnoentry'
13471       fi
13472
13473       # When large executables or shared objects are built, AIX ld can
13474       # have problems creating the table of contents.  If linking a library
13475       # or program results in "error TOC overflow" add -mminimal-toc to
13476       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13477       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13478
13479       archive_cmds_F77=''
13480       hardcode_direct_F77=yes
13481       hardcode_libdir_separator_F77=':'
13482       link_all_deplibs_F77=yes
13483
13484       if test "$GCC" = yes; then
13485         case $host_os in aix4.012|aix4.012.*)
13486         # We only want to do this on AIX 4.2 and lower, the check
13487         # below for broken collect2 doesn't work under 4.3+
13488           collect2name=`${CC} -print-prog-name=collect2`
13489           if test -f "$collect2name" && \
13490            strings "$collect2name" | grep resolve_lib_name >/dev/null
13491           then
13492           # We have reworked collect2
13493           hardcode_direct_F77=yes
13494           else
13495           # We have old collect2
13496           hardcode_direct_F77=unsupported
13497           # It fails to find uninstalled libraries when the uninstalled
13498           # path is not listed in the libpath.  Setting hardcode_minus_L
13499           # to unsupported forces relinking
13500           hardcode_minus_L_F77=yes
13501           hardcode_libdir_flag_spec_F77='-L$libdir'
13502           hardcode_libdir_separator_F77=
13503           fi
13504         esac
13505         shared_flag='-shared'
13506       else
13507         # not using gcc
13508         if test "$host_cpu" = ia64; then
13509         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13510         # chokes on -Wl,-G. The following line is correct:
13511           shared_flag='-G'
13512         else
13513         if test "$aix_use_runtimelinking" = yes; then
13514             shared_flag='${wl}-G'
13515           else
13516             shared_flag='${wl}-bM:SRE'
13517         fi
13518         fi
13519       fi
13520
13521       # It seems that -bexpall does not export symbols beginning with
13522       # underscore (_), so it is better to generate a list of symbols to export.
13523       always_export_symbols_F77=yes
13524       if test "$aix_use_runtimelinking" = yes; then
13525         # Warning - without using the other runtime loading flags (-brtl),
13526         # -berok will link without error, but may produce a broken library.
13527         allow_undefined_flag_F77='-berok'
13528        # Determine the default libpath from the value encoded in an empty executable.
13529        cat >conftest.$ac_ext <<_ACEOF
13530       program main
13531
13532       end
13533 _ACEOF
13534 rm -f conftest.$ac_objext conftest$ac_exeext
13535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13536   (eval $ac_link) 2>&5
13537   ac_status=$?
13538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539   (exit $ac_status); } &&
13540          { ac_try='test -s conftest$ac_exeext'
13541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542   (eval $ac_try) 2>&5
13543   ac_status=$?
13544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545   (exit $ac_status); }; }; then
13546
13547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13548 }'`
13549 # Check for a 64-bit object if we didn't find anything.
13550 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; }
13551 }'`; fi
13552 else
13553   echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.$ac_ext >&5
13555
13556 fi
13557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13559
13560        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13561         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"
13562        else
13563         if test "$host_cpu" = ia64; then
13564           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13565           allow_undefined_flag_F77="-z nodefs"
13566           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"
13567         else
13568          # Determine the default libpath from the value encoded in an empty executable.
13569          cat >conftest.$ac_ext <<_ACEOF
13570       program main
13571
13572       end
13573 _ACEOF
13574 rm -f conftest.$ac_objext conftest$ac_exeext
13575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13576   (eval $ac_link) 2>&5
13577   ac_status=$?
13578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); } &&
13580          { ac_try='test -s conftest$ac_exeext'
13581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582   (eval $ac_try) 2>&5
13583   ac_status=$?
13584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585   (exit $ac_status); }; }; then
13586
13587 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13588 }'`
13589 # Check for a 64-bit object if we didn't find anything.
13590 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; }
13591 }'`; fi
13592 else
13593   echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13595
13596 fi
13597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13598 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13599
13600          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13601           # Warning - without using the other run time loading flags,
13602           # -berok will link without error, but may produce a broken library.
13603           no_undefined_flag_F77=' ${wl}-bernotok'
13604           allow_undefined_flag_F77=' ${wl}-berok'
13605           # -bexpall does not export symbols beginning with underscore (_)
13606           always_export_symbols_F77=yes
13607           # Exported symbols can be pulled into shared objects from archives
13608           whole_archive_flag_spec_F77=' '
13609           archive_cmds_need_lc_F77=yes
13610           # This is similar to how AIX traditionally builds it's shared libraries.
13611           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'
13612         fi
13613       fi
13614       ;;
13615
13616     amigaos*)
13617       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)'
13618       hardcode_libdir_flag_spec_F77='-L$libdir'
13619       hardcode_minus_L_F77=yes
13620       # see comment about different semantics on the GNU ld section
13621       ld_shlibs_F77=no
13622       ;;
13623
13624     bsdi4*)
13625       export_dynamic_flag_spec_F77=-rdynamic
13626       ;;
13627
13628     cygwin* | mingw* | pw32*)
13629       # When not using gcc, we currently assume that we are using
13630       # Microsoft Visual C++.
13631       # hardcode_libdir_flag_spec is actually meaningless, as there is
13632       # no search path for DLLs.
13633       hardcode_libdir_flag_spec_F77=' '
13634       allow_undefined_flag_F77=unsupported
13635       # Tell ltmain to make .lib files, not .a files.
13636       libext=lib
13637       # Tell ltmain to make .dll files, not .so files.
13638       shrext=".dll"
13639       # FIXME: Setting linknames here is a bad hack.
13640       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13641       # The linker will automatically build a .lib file if we build a DLL.
13642       old_archive_From_new_cmds_F77='true'
13643       # FIXME: Should let the user specify the lib program.
13644       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13645       fix_srcfile_path='`cygpath -w "$srcfile"`'
13646       enable_shared_with_static_runtimes_F77=yes
13647       ;;
13648
13649     darwin* | rhapsody*)
13650     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13651       archive_cmds_need_lc_F77=no
13652       case "$host_os" in
13653       rhapsody* | darwin1.[012])
13654         allow_undefined_flag_F77='-undefined suppress'
13655         ;;
13656       *) # Darwin 1.3 on
13657         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13658         ;;
13659       esac
13660       # FIXME: Relying on posixy $() will cause problems for
13661       #        cross-compilation, but unfortunately the echo tests do not
13662       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13663       #        `"' quotes if we put them in here... so don't!
13664         lt_int_apple_cc_single_mod=no
13665         output_verbose_link_cmd='echo'
13666         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13667           lt_int_apple_cc_single_mod=yes
13668         fi
13669         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13670           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13671         else
13672         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'
13673       fi
13674       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13675       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13676         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13677           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}'
13678         else
13679           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}'
13680         fi
13681           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}'
13682       hardcode_direct_F77=no
13683       hardcode_automatic_F77=yes
13684       hardcode_shlibpath_var_F77=unsupported
13685       whole_archive_flag_spec_F77='-all_load $convenience'
13686       link_all_deplibs_F77=yes
13687     fi
13688       ;;
13689
13690     dgux*)
13691       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13692       hardcode_libdir_flag_spec_F77='-L$libdir'
13693       hardcode_shlibpath_var_F77=no
13694       ;;
13695
13696     freebsd1*)
13697       ld_shlibs_F77=no
13698       ;;
13699
13700     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13701     # support.  Future versions do this automatically, but an explicit c++rt0.o
13702     # does not break anything, and helps significantly (at the cost of a little
13703     # extra space).
13704     freebsd2.2*)
13705       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13706       hardcode_libdir_flag_spec_F77='-R$libdir'
13707       hardcode_direct_F77=yes
13708       hardcode_shlibpath_var_F77=no
13709       ;;
13710
13711     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13712     freebsd2*)
13713       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13714       hardcode_direct_F77=yes
13715       hardcode_minus_L_F77=yes
13716       hardcode_shlibpath_var_F77=no
13717       ;;
13718
13719     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13720     freebsd*)
13721       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13722       hardcode_libdir_flag_spec_F77='-R$libdir'
13723       hardcode_direct_F77=yes
13724       hardcode_shlibpath_var_F77=no
13725       ;;
13726
13727     hpux9*)
13728       if test "$GCC" = yes; then
13729         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'
13730       else
13731         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'
13732       fi
13733       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13734       hardcode_libdir_separator_F77=:
13735       hardcode_direct_F77=yes
13736
13737       # hardcode_minus_L: Not really in the search PATH,
13738       # but as the default location of the library.
13739       hardcode_minus_L_F77=yes
13740       export_dynamic_flag_spec_F77='${wl}-E'
13741       ;;
13742
13743     hpux10* | hpux11*)
13744       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13745         case "$host_cpu" in
13746         hppa*64*|ia64*)
13747           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13748           ;;
13749         *)
13750           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13751           ;;
13752         esac
13753       else
13754         case "$host_cpu" in
13755         hppa*64*|ia64*)
13756           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13757           ;;
13758         *)
13759           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13760           ;;
13761         esac
13762       fi
13763       if test "$with_gnu_ld" = no; then
13764         case "$host_cpu" in
13765         hppa*64*)
13766           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13767           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13768           hardcode_libdir_separator_F77=:
13769           hardcode_direct_F77=no
13770           hardcode_shlibpath_var_F77=no
13771           ;;
13772         ia64*)
13773           hardcode_libdir_flag_spec_F77='-L$libdir'
13774           hardcode_direct_F77=no
13775           hardcode_shlibpath_var_F77=no
13776
13777           # hardcode_minus_L: Not really in the search PATH,
13778           # but as the default location of the library.
13779           hardcode_minus_L_F77=yes
13780           ;;
13781         *)
13782           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13783           hardcode_libdir_separator_F77=:
13784           hardcode_direct_F77=yes
13785           export_dynamic_flag_spec_F77='${wl}-E'
13786
13787           # hardcode_minus_L: Not really in the search PATH,
13788           # but as the default location of the library.
13789           hardcode_minus_L_F77=yes
13790           ;;
13791         esac
13792       fi
13793       ;;
13794
13795     irix5* | irix6* | nonstopux*)
13796       if test "$GCC" = yes; then
13797         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'
13798       else
13799         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'
13800         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13801       fi
13802       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13803       hardcode_libdir_separator_F77=:
13804       link_all_deplibs_F77=yes
13805       ;;
13806
13807     netbsd*)
13808       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13809         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13810       else
13811         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13812       fi
13813       hardcode_libdir_flag_spec_F77='-R$libdir'
13814       hardcode_direct_F77=yes
13815       hardcode_shlibpath_var_F77=no
13816       ;;
13817
13818     newsos6)
13819       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13820       hardcode_direct_F77=yes
13821       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13822       hardcode_libdir_separator_F77=:
13823       hardcode_shlibpath_var_F77=no
13824       ;;
13825
13826     openbsd*)
13827       hardcode_direct_F77=yes
13828       hardcode_shlibpath_var_F77=no
13829       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13830         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13831         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13832         export_dynamic_flag_spec_F77='${wl}-E'
13833       else
13834        case $host_os in
13835          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13836            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13837            hardcode_libdir_flag_spec_F77='-R$libdir'
13838            ;;
13839          *)
13840            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13841            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13842            ;;
13843        esac
13844       fi
13845       ;;
13846
13847     os2*)
13848       hardcode_libdir_flag_spec_F77='-L$libdir'
13849       hardcode_minus_L_F77=yes
13850       allow_undefined_flag_F77=unsupported
13851       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'
13852       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13853       ;;
13854
13855     osf3*)
13856       if test "$GCC" = yes; then
13857         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13858         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'
13859       else
13860         allow_undefined_flag_F77=' -expect_unresolved \*'
13861         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'
13862       fi
13863       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13864       hardcode_libdir_separator_F77=:
13865       ;;
13866
13867     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13868       if test "$GCC" = yes; then
13869         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13870         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'
13871         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13872       else
13873         allow_undefined_flag_F77=' -expect_unresolved \*'
13874         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'
13875         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~
13876         $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'
13877
13878         # Both c and cxx compiler support -rpath directly
13879         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13880       fi
13881       hardcode_libdir_separator_F77=:
13882       ;;
13883
13884     sco3.2v5*)
13885       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13886       hardcode_shlibpath_var_F77=no
13887       export_dynamic_flag_spec_F77='${wl}-Bexport'
13888       runpath_var=LD_RUN_PATH
13889       hardcode_runpath_var=yes
13890       ;;
13891
13892     solaris*)
13893       no_undefined_flag_F77=' -z text'
13894       if test "$GCC" = yes; then
13895         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13896         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13897           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13898       else
13899         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13900         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13901         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13902       fi
13903       hardcode_libdir_flag_spec_F77='-R$libdir'
13904       hardcode_shlibpath_var_F77=no
13905       case $host_os in
13906       solaris2.[0-5] | solaris2.[0-5].*) ;;
13907       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13908         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13909       esac
13910       link_all_deplibs_F77=yes
13911       ;;
13912
13913     sunos4*)
13914       if test "x$host_vendor" = xsequent; then
13915         # Use $CC to link under sequent, because it throws in some extra .o
13916         # files that make .init and .fini sections work.
13917         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13918       else
13919         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13920       fi
13921       hardcode_libdir_flag_spec_F77='-L$libdir'
13922       hardcode_direct_F77=yes
13923       hardcode_minus_L_F77=yes
13924       hardcode_shlibpath_var_F77=no
13925       ;;
13926
13927     sysv4)
13928       case $host_vendor in
13929         sni)
13930           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13931           hardcode_direct_F77=yes # is this really true???
13932         ;;
13933         siemens)
13934           ## LD is ld it makes a PLAMLIB
13935           ## CC just makes a GrossModule.
13936           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13937           reload_cmds_F77='$CC -r -o $output$reload_objs'
13938           hardcode_direct_F77=no
13939         ;;
13940         motorola)
13941           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13942           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13943         ;;
13944       esac
13945       runpath_var='LD_RUN_PATH'
13946       hardcode_shlibpath_var_F77=no
13947       ;;
13948
13949     sysv4.3*)
13950       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13951       hardcode_shlibpath_var_F77=no
13952       export_dynamic_flag_spec_F77='-Bexport'
13953       ;;
13954
13955     sysv4*MP*)
13956       if test -d /usr/nec; then
13957         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13958         hardcode_shlibpath_var_F77=no
13959         runpath_var=LD_RUN_PATH
13960         hardcode_runpath_var=yes
13961         ld_shlibs_F77=yes
13962       fi
13963       ;;
13964
13965     sysv4.2uw2*)
13966       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13967       hardcode_direct_F77=yes
13968       hardcode_minus_L_F77=no
13969       hardcode_shlibpath_var_F77=no
13970       hardcode_runpath_var=yes
13971       runpath_var=LD_RUN_PATH
13972       ;;
13973
13974    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13975       no_undefined_flag_F77='${wl}-z ${wl}text'
13976       if test "$GCC" = yes; then
13977         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13978       else
13979         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13980       fi
13981       runpath_var='LD_RUN_PATH'
13982       hardcode_shlibpath_var_F77=no
13983       ;;
13984
13985     sysv5*)
13986       no_undefined_flag_F77=' -z text'
13987       # $CC -shared without GNU ld will not create a library from C++
13988       # object files and a static libstdc++, better avoid it by now
13989       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13990       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13991                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13992       hardcode_libdir_flag_spec_F77=
13993       hardcode_shlibpath_var_F77=no
13994       runpath_var='LD_RUN_PATH'
13995       ;;
13996
13997     uts4*)
13998       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13999       hardcode_libdir_flag_spec_F77='-L$libdir'
14000       hardcode_shlibpath_var_F77=no
14001       ;;
14002
14003     *)
14004       ld_shlibs_F77=no
14005       ;;
14006     esac
14007   fi
14008
14009 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14010 echo "${ECHO_T}$ld_shlibs_F77" >&6
14011 test "$ld_shlibs_F77" = no && can_build_shared=no
14012
14013 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14014 if test "$GCC" = yes; then
14015   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14016 fi
14017
14018 #
14019 # Do we need to explicitly link libc?
14020 #
14021 case "x$archive_cmds_need_lc_F77" in
14022 x|xyes)
14023   # Assume -lc should be added
14024   archive_cmds_need_lc_F77=yes
14025
14026   if test "$enable_shared" = yes && test "$GCC" = yes; then
14027     case $archive_cmds_F77 in
14028     *'~'*)
14029       # FIXME: we may have to deal with multi-command sequences.
14030       ;;
14031     '$CC '*)
14032       # Test whether the compiler implicitly links with -lc since on some
14033       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14034       # to ld, don't add -lc before -lgcc.
14035       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14036 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14037       $rm conftest*
14038       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14039
14040       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14041   (eval $ac_compile) 2>&5
14042   ac_status=$?
14043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044   (exit $ac_status); } 2>conftest.err; then
14045         soname=conftest
14046         lib=conftest
14047         libobjs=conftest.$ac_objext
14048         deplibs=
14049         wl=$lt_prog_compiler_wl_F77
14050         compiler_flags=-v
14051         linker_flags=-v
14052         verstring=
14053         output_objdir=.
14054         libname=conftest
14055         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14056         allow_undefined_flag_F77=
14057         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14058   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14059   ac_status=$?
14060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061   (exit $ac_status); }
14062         then
14063           archive_cmds_need_lc_F77=no
14064         else
14065           archive_cmds_need_lc_F77=yes
14066         fi
14067         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14068       else
14069         cat conftest.err 1>&5
14070       fi
14071       $rm conftest*
14072       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14073 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14074       ;;
14075     esac
14076   fi
14077   ;;
14078 esac
14079
14080 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14081 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14082 hardcode_action_F77=
14083 if test -n "$hardcode_libdir_flag_spec_F77" || \
14084    test -n "$runpath_var F77" || \
14085    test "X$hardcode_automatic_F77"="Xyes" ; then
14086
14087   # We can hardcode non-existant directories.
14088   if test "$hardcode_direct_F77" != no &&
14089      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14090      # have to relink, otherwise we might link with an installed library
14091      # when we should be linking with a yet-to-be-installed one
14092      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14093      test "$hardcode_minus_L_F77" != no; then
14094     # Linking always hardcodes the temporary library directory.
14095     hardcode_action_F77=relink
14096   else
14097     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14098     hardcode_action_F77=immediate
14099   fi
14100 else
14101   # We cannot hardcode anything, or else we can only hardcode existing
14102   # directories.
14103   hardcode_action_F77=unsupported
14104 fi
14105 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14106 echo "${ECHO_T}$hardcode_action_F77" >&6
14107
14108 if test "$hardcode_action_F77" = relink; then
14109   # Fast installation is not supported
14110   enable_fast_install=no
14111 elif test "$shlibpath_overrides_runpath" = yes ||
14112      test "$enable_shared" = no; then
14113   # Fast installation is not necessary
14114   enable_fast_install=needless
14115 fi
14116
14117 striplib=
14118 old_striplib=
14119 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14120 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14121 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14122   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14123   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14124   echo "$as_me:$LINENO: result: yes" >&5
14125 echo "${ECHO_T}yes" >&6
14126 else
14127 # FIXME - insert some real tests, host_os isn't really good enough
14128   case $host_os in
14129    darwin*)
14130        if test -n "$STRIP" ; then
14131          striplib="$STRIP -x"
14132          echo "$as_me:$LINENO: result: yes" >&5
14133 echo "${ECHO_T}yes" >&6
14134        else
14135   echo "$as_me:$LINENO: result: no" >&5
14136 echo "${ECHO_T}no" >&6
14137 fi
14138        ;;
14139    *)
14140   echo "$as_me:$LINENO: result: no" >&5
14141 echo "${ECHO_T}no" >&6
14142     ;;
14143   esac
14144 fi
14145
14146 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14147 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14148 library_names_spec=
14149 libname_spec='lib$name'
14150 soname_spec=
14151 shrext=".so"
14152 postinstall_cmds=
14153 postuninstall_cmds=
14154 finish_cmds=
14155 finish_eval=
14156 shlibpath_var=
14157 shlibpath_overrides_runpath=unknown
14158 version_type=none
14159 dynamic_linker="$host_os ld.so"
14160 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14161 if test "$GCC" = yes; then
14162   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14163   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14164     # if the path contains ";" then we assume it to be the separator
14165     # otherwise default to the standard path separator (i.e. ":") - it is
14166     # assumed that no part of a normal pathname contains ";" but that should
14167     # okay in the real world where ";" in dirpaths is itself problematic.
14168     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14169   else
14170     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14171   fi
14172 else
14173   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14174 fi
14175 need_lib_prefix=unknown
14176 hardcode_into_libs=no
14177
14178 # when you set need_version to no, make sure it does not cause -set_version
14179 # flags to be left without arguments
14180 need_version=unknown
14181
14182 case $host_os in
14183 aix3*)
14184   version_type=linux
14185   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14186   shlibpath_var=LIBPATH
14187
14188   # AIX 3 has no versioning support, so we append a major version to the name.
14189   soname_spec='${libname}${release}${shared_ext}$major'
14190   ;;
14191
14192 aix4* | aix5*)
14193   version_type=linux
14194   need_lib_prefix=no
14195   need_version=no
14196   hardcode_into_libs=yes
14197   if test "$host_cpu" = ia64; then
14198     # AIX 5 supports IA64
14199     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14200     shlibpath_var=LD_LIBRARY_PATH
14201   else
14202     # With GCC up to 2.95.x, collect2 would create an import file
14203     # for dependence libraries.  The import file would start with
14204     # the line `#! .'.  This would cause the generated library to
14205     # depend on `.', always an invalid library.  This was fixed in
14206     # development snapshots of GCC prior to 3.0.
14207     case $host_os in
14208       aix4 | aix4.[01] | aix4.[01].*)
14209       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14210            echo ' yes '
14211            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14212         :
14213       else
14214         can_build_shared=no
14215       fi
14216       ;;
14217     esac
14218     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14219     # soname into executable. Probably we can add versioning support to
14220     # collect2, so additional links can be useful in future.
14221     if test "$aix_use_runtimelinking" = yes; then
14222       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14223       # instead of lib<name>.a to let people know that these are not
14224       # typical AIX shared libraries.
14225       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14226     else
14227       # We preserve .a as extension for shared libraries through AIX4.2
14228       # and later when we are not doing run time linking.
14229       library_names_spec='${libname}${release}.a $libname.a'
14230       soname_spec='${libname}${release}${shared_ext}$major'
14231     fi
14232     shlibpath_var=LIBPATH
14233   fi
14234   ;;
14235
14236 amigaos*)
14237   library_names_spec='$libname.ixlibrary $libname.a'
14238   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14239   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'
14240   ;;
14241
14242 beos*)
14243   library_names_spec='${libname}${shared_ext}'
14244   dynamic_linker="$host_os ld.so"
14245   shlibpath_var=LIBRARY_PATH
14246   ;;
14247
14248 bsdi4*)
14249   version_type=linux
14250   need_version=no
14251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14252   soname_spec='${libname}${release}${shared_ext}$major'
14253   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14254   shlibpath_var=LD_LIBRARY_PATH
14255   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14256   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14257   # the default ld.so.conf also contains /usr/contrib/lib and
14258   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14259   # libtool to hard-code these into programs
14260   ;;
14261
14262 cygwin* | mingw* | pw32*)
14263   version_type=windows
14264   shrext=".dll"
14265   need_version=no
14266   need_lib_prefix=no
14267
14268   case $GCC,$host_os in
14269   yes,cygwin* | yes,mingw* | yes,pw32*)
14270     library_names_spec='$libname.dll.a'
14271     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14272     postinstall_cmds='base_file=`basename \${file}`~
14273       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14274       dldir=$destdir/`dirname \$dlpath`~
14275       test -d \$dldir || mkdir -p \$dldir~
14276       $install_prog $dir/$dlname \$dldir/$dlname'
14277     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14278       dlpath=$dir/\$dldll~
14279        $rm \$dlpath'
14280     shlibpath_overrides_runpath=yes
14281
14282     case $host_os in
14283     cygwin*)
14284       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14285       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14286       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14287       ;;
14288     mingw*)
14289       # MinGW DLLs use traditional 'lib' prefix
14290       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14291       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14292       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14293         # It is most probably a Windows format PATH printed by
14294         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14295         # path with ; separators, and with drive letters. We can handle the
14296         # drive letters (cygwin fileutils understands them), so leave them,
14297         # especially as we might pass files found there to a mingw objdump,
14298         # which wouldn't understand a cygwinified path. Ahh.
14299         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14300       else
14301         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14302       fi
14303       ;;
14304     pw32*)
14305       # pw32 DLLs use 'pw' prefix rather than 'lib'
14306       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14307       ;;
14308     esac
14309     ;;
14310
14311   *)
14312     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14313     ;;
14314   esac
14315   dynamic_linker='Win32 ld.exe'
14316   # FIXME: first we should search . and the directory the executable is in
14317   shlibpath_var=PATH
14318   ;;
14319
14320 darwin* | rhapsody*)
14321   dynamic_linker="$host_os dyld"
14322   version_type=darwin
14323   need_lib_prefix=no
14324   need_version=no
14325   # FIXME: Relying on posixy $() will cause problems for
14326   #        cross-compilation, but unfortunately the echo tests do not
14327   #        yet detect zsh echo's removal of \ escapes.
14328   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14329   soname_spec='${libname}${release}${major}$shared_ext'
14330   shlibpath_overrides_runpath=yes
14331   shlibpath_var=DYLD_LIBRARY_PATH
14332   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14333   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14334   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14335   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"`
14336   fi
14337   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14338   ;;
14339
14340 dgux*)
14341   version_type=linux
14342   need_lib_prefix=no
14343   need_version=no
14344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14345   soname_spec='${libname}${release}${shared_ext}$major'
14346   shlibpath_var=LD_LIBRARY_PATH
14347   ;;
14348
14349 freebsd1*)
14350   dynamic_linker=no
14351   ;;
14352
14353 freebsd*)
14354   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14355   version_type=freebsd-$objformat
14356   case $version_type in
14357     freebsd-elf*)
14358       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14359       need_version=no
14360       need_lib_prefix=no
14361       ;;
14362     freebsd-*)
14363       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14364       need_version=yes
14365       ;;
14366   esac
14367   shlibpath_var=LD_LIBRARY_PATH
14368   case $host_os in
14369   freebsd2*)
14370     shlibpath_overrides_runpath=yes
14371     ;;
14372   freebsd3.01* | freebsdelf3.01*)
14373     shlibpath_overrides_runpath=yes
14374     hardcode_into_libs=yes
14375     ;;
14376   *) # from 3.2 on
14377     shlibpath_overrides_runpath=no
14378     hardcode_into_libs=yes
14379     ;;
14380   esac
14381   ;;
14382
14383 gnu*)
14384   version_type=linux
14385   need_lib_prefix=no
14386   need_version=no
14387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14388   soname_spec='${libname}${release}${shared_ext}$major'
14389   shlibpath_var=LD_LIBRARY_PATH
14390   hardcode_into_libs=yes
14391   ;;
14392
14393 hpux9* | hpux10* | hpux11*)
14394   # Give a soname corresponding to the major version so that dld.sl refuses to
14395   # link against other versions.
14396   version_type=sunos
14397   need_lib_prefix=no
14398   need_version=no
14399   case "$host_cpu" in
14400   ia64*)
14401     shrext='.so'
14402     hardcode_into_libs=yes
14403     dynamic_linker="$host_os dld.so"
14404     shlibpath_var=LD_LIBRARY_PATH
14405     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14406     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14407     soname_spec='${libname}${release}${shared_ext}$major'
14408     if test "X$HPUX_IA64_MODE" = X32; then
14409       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14410     else
14411       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14412     fi
14413     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14414     ;;
14415    hppa*64*)
14416      shrext='.sl'
14417      hardcode_into_libs=yes
14418      dynamic_linker="$host_os dld.sl"
14419      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14420      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14421      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14422      soname_spec='${libname}${release}${shared_ext}$major'
14423      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14424      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14425      ;;
14426    *)
14427     shrext='.sl'
14428     dynamic_linker="$host_os dld.sl"
14429     shlibpath_var=SHLIB_PATH
14430     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14432     soname_spec='${libname}${release}${shared_ext}$major'
14433     ;;
14434   esac
14435   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14436   postinstall_cmds='chmod 555 $lib'
14437   ;;
14438
14439 irix5* | irix6* | nonstopux*)
14440   case $host_os in
14441     nonstopux*) version_type=nonstopux ;;
14442     *)
14443         if test "$lt_cv_prog_gnu_ld" = yes; then
14444                 version_type=linux
14445         else
14446                 version_type=irix
14447         fi ;;
14448   esac
14449   need_lib_prefix=no
14450   need_version=no
14451   soname_spec='${libname}${release}${shared_ext}$major'
14452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14453   case $host_os in
14454   irix5* | nonstopux*)
14455     libsuff= shlibsuff=
14456     ;;
14457   *)
14458     case $LD in # libtool.m4 will add one of these switches to LD
14459     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14460       libsuff= shlibsuff= libmagic=32-bit;;
14461     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14462       libsuff=32 shlibsuff=N32 libmagic=N32;;
14463     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14464       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14465     *) libsuff= shlibsuff= libmagic=never-match;;
14466     esac
14467     ;;
14468   esac
14469   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14470   shlibpath_overrides_runpath=no
14471   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14472   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14473   hardcode_into_libs=yes
14474   ;;
14475
14476 # No shared lib support for Linux oldld, aout, or coff.
14477 linux*oldld* | linux*aout* | linux*coff*)
14478   dynamic_linker=no
14479   ;;
14480
14481 # This must be Linux ELF.
14482 linux*)
14483   version_type=linux
14484   need_lib_prefix=no
14485   need_version=no
14486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14487   soname_spec='${libname}${release}${shared_ext}$major'
14488   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14489   shlibpath_var=LD_LIBRARY_PATH
14490   shlibpath_overrides_runpath=no
14491   # This implies no fast_install, which is unacceptable.
14492   # Some rework will be needed to allow for fast_install
14493   # before this can be enabled.
14494   hardcode_into_libs=yes
14495
14496   # We used to test for /lib/ld.so.1 and disable shared libraries on
14497   # powerpc, because MkLinux only supported shared libraries with the
14498   # GNU dynamic linker.  Since this was broken with cross compilers,
14499   # most powerpc-linux boxes support dynamic linking these days and
14500   # people can always --disable-shared, the test was removed, and we
14501   # assume the GNU/Linux dynamic linker is in use.
14502   dynamic_linker='GNU/Linux ld.so'
14503   ;;
14504
14505 netbsd*)
14506   version_type=sunos
14507   need_lib_prefix=no
14508   need_version=no
14509   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14510     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14511     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14512     dynamic_linker='NetBSD (a.out) ld.so'
14513   else
14514     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14515     soname_spec='${libname}${release}${shared_ext}$major'
14516     dynamic_linker='NetBSD ld.elf_so'
14517   fi
14518   shlibpath_var=LD_LIBRARY_PATH
14519   shlibpath_overrides_runpath=yes
14520   hardcode_into_libs=yes
14521   ;;
14522
14523 newsos6)
14524   version_type=linux
14525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14526   shlibpath_var=LD_LIBRARY_PATH
14527   shlibpath_overrides_runpath=yes
14528   ;;
14529
14530 nto-qnx)
14531   version_type=linux
14532   need_lib_prefix=no
14533   need_version=no
14534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535   soname_spec='${libname}${release}${shared_ext}$major'
14536   shlibpath_var=LD_LIBRARY_PATH
14537   shlibpath_overrides_runpath=yes
14538   ;;
14539
14540 openbsd*)
14541   version_type=sunos
14542   need_lib_prefix=no
14543   need_version=no
14544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14545   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14546   shlibpath_var=LD_LIBRARY_PATH
14547   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14548     case $host_os in
14549       openbsd2.[89] | openbsd2.[89].*)
14550         shlibpath_overrides_runpath=no
14551         ;;
14552       *)
14553         shlibpath_overrides_runpath=yes
14554         ;;
14555       esac
14556   else
14557     shlibpath_overrides_runpath=yes
14558   fi
14559   ;;
14560
14561 os2*)
14562   libname_spec='$name'
14563   shrext=".dll"
14564   need_lib_prefix=no
14565   library_names_spec='$libname${shared_ext} $libname.a'
14566   dynamic_linker='OS/2 ld.exe'
14567   shlibpath_var=LIBPATH
14568   ;;
14569
14570 osf3* | osf4* | osf5*)
14571   version_type=osf
14572   need_lib_prefix=no
14573   need_version=no
14574   soname_spec='${libname}${release}${shared_ext}$major'
14575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14576   shlibpath_var=LD_LIBRARY_PATH
14577   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14578   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14579   ;;
14580
14581 sco3.2v5*)
14582   version_type=osf
14583   soname_spec='${libname}${release}${shared_ext}$major'
14584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14585   shlibpath_var=LD_LIBRARY_PATH
14586   ;;
14587
14588 solaris*)
14589   version_type=linux
14590   need_lib_prefix=no
14591   need_version=no
14592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14593   soname_spec='${libname}${release}${shared_ext}$major'
14594   shlibpath_var=LD_LIBRARY_PATH
14595   shlibpath_overrides_runpath=yes
14596   hardcode_into_libs=yes
14597   # ldd complains unless libraries are executable
14598   postinstall_cmds='chmod +x $lib'
14599   ;;
14600
14601 sunos4*)
14602   version_type=sunos
14603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14604   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14605   shlibpath_var=LD_LIBRARY_PATH
14606   shlibpath_overrides_runpath=yes
14607   if test "$with_gnu_ld" = yes; then
14608     need_lib_prefix=no
14609   fi
14610   need_version=yes
14611   ;;
14612
14613 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14614   version_type=linux
14615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14616   soname_spec='${libname}${release}${shared_ext}$major'
14617   shlibpath_var=LD_LIBRARY_PATH
14618   case $host_vendor in
14619     sni)
14620       shlibpath_overrides_runpath=no
14621       need_lib_prefix=no
14622       export_dynamic_flag_spec='${wl}-Blargedynsym'
14623       runpath_var=LD_RUN_PATH
14624       ;;
14625     siemens)
14626       need_lib_prefix=no
14627       ;;
14628     motorola)
14629       need_lib_prefix=no
14630       need_version=no
14631       shlibpath_overrides_runpath=no
14632       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14633       ;;
14634   esac
14635   ;;
14636
14637 sysv4*MP*)
14638   if test -d /usr/nec ;then
14639     version_type=linux
14640     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14641     soname_spec='$libname${shared_ext}.$major'
14642     shlibpath_var=LD_LIBRARY_PATH
14643   fi
14644   ;;
14645
14646 uts4*)
14647   version_type=linux
14648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14649   soname_spec='${libname}${release}${shared_ext}$major'
14650   shlibpath_var=LD_LIBRARY_PATH
14651   ;;
14652
14653 *)
14654   dynamic_linker=no
14655   ;;
14656 esac
14657 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14658 echo "${ECHO_T}$dynamic_linker" >&6
14659 test "$dynamic_linker" = no && can_build_shared=no
14660
14661
14662 # The else clause should only fire when bootstrapping the
14663 # libtool distribution, otherwise you forgot to ship ltmain.sh
14664 # with your package, and you will get complaints that there are
14665 # no rules to generate ltmain.sh.
14666 if test -f "$ltmain"; then
14667   # See if we are running on zsh, and set the options which allow our commands through
14668   # without removal of \ escapes.
14669   if test -n "${ZSH_VERSION+set}" ; then
14670     setopt NO_GLOB_SUBST
14671   fi
14672   # Now quote all the things that may contain metacharacters while being
14673   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14674   # variables and quote the copies for generation of the libtool script.
14675   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14676     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14677     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14678     deplibs_check_method reload_flag reload_cmds need_locks \
14679     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14680     lt_cv_sys_global_symbol_to_c_name_address \
14681     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14682     old_postinstall_cmds old_postuninstall_cmds \
14683     compiler_F77 \
14684     CC_F77 \
14685     LD_F77 \
14686     lt_prog_compiler_wl_F77 \
14687     lt_prog_compiler_pic_F77 \
14688     lt_prog_compiler_static_F77 \
14689     lt_prog_compiler_no_builtin_flag_F77 \
14690     export_dynamic_flag_spec_F77 \
14691     thread_safe_flag_spec_F77 \
14692     whole_archive_flag_spec_F77 \
14693     enable_shared_with_static_runtimes_F77 \
14694     old_archive_cmds_F77 \
14695     old_archive_from_new_cmds_F77 \
14696     predep_objects_F77 \
14697     postdep_objects_F77 \
14698     predeps_F77 \
14699     postdeps_F77 \
14700     compiler_lib_search_path_F77 \
14701     archive_cmds_F77 \
14702     archive_expsym_cmds_F77 \
14703     postinstall_cmds_F77 \
14704     postuninstall_cmds_F77 \
14705     old_archive_from_expsyms_cmds_F77 \
14706     allow_undefined_flag_F77 \
14707     no_undefined_flag_F77 \
14708     export_symbols_cmds_F77 \
14709     hardcode_libdir_flag_spec_F77 \
14710     hardcode_libdir_flag_spec_ld_F77 \
14711     hardcode_libdir_separator_F77 \
14712     hardcode_automatic_F77 \
14713     module_cmds_F77 \
14714     module_expsym_cmds_F77 \
14715     lt_cv_prog_compiler_c_o_F77 \
14716     exclude_expsyms_F77 \
14717     include_expsyms_F77; do
14718
14719     case $var in
14720     old_archive_cmds_F77 | \
14721     old_archive_from_new_cmds_F77 | \
14722     archive_cmds_F77 | \
14723     archive_expsym_cmds_F77 | \
14724     module_cmds_F77 | \
14725     module_expsym_cmds_F77 | \
14726     old_archive_from_expsyms_cmds_F77 | \
14727     export_symbols_cmds_F77 | \
14728     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14729     postinstall_cmds | postuninstall_cmds | \
14730     old_postinstall_cmds | old_postuninstall_cmds | \
14731     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14732       # Double-quote double-evaled strings.
14733       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14734       ;;
14735     *)
14736       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14737       ;;
14738     esac
14739   done
14740
14741   case $lt_echo in
14742   *'\$0 --fallback-echo"')
14743     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14744     ;;
14745   esac
14746
14747 cfgfile="$ofile"
14748
14749   cat <<__EOF__ >> "$cfgfile"
14750 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14751
14752 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14753
14754 # Shell to use when invoking shell scripts.
14755 SHELL=$lt_SHELL
14756
14757 # Whether or not to build shared libraries.
14758 build_libtool_libs=$enable_shared
14759
14760 # Whether or not to build static libraries.
14761 build_old_libs=$enable_static
14762
14763 # Whether or not to add -lc for building shared libraries.
14764 build_libtool_need_lc=$archive_cmds_need_lc_F77
14765
14766 # Whether or not to disallow shared libs when runtime libs are static
14767 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14768
14769 # Whether or not to optimize for fast installation.
14770 fast_install=$enable_fast_install
14771
14772 # The host system.
14773 host_alias=$host_alias
14774 host=$host
14775
14776 # An echo program that does not interpret backslashes.
14777 echo=$lt_echo
14778
14779 # The archiver.
14780 AR=$lt_AR
14781 AR_FLAGS=$lt_AR_FLAGS
14782
14783 # A C compiler.
14784 LTCC=$lt_LTCC
14785
14786 # A language-specific compiler.
14787 CC=$lt_compiler_F77
14788
14789 # Is the compiler the GNU C compiler?
14790 with_gcc=$GCC_F77
14791
14792 # An ERE matcher.
14793 EGREP=$lt_EGREP
14794
14795 # The linker used to build libraries.
14796 LD=$lt_LD_F77
14797
14798 # Whether we need hard or soft links.
14799 LN_S=$lt_LN_S
14800
14801 # A BSD-compatible nm program.
14802 NM=$lt_NM
14803
14804 # A symbol stripping program
14805 STRIP=$STRIP
14806
14807 # Used to examine libraries when file_magic_cmd begins "file"
14808 MAGIC_CMD=$MAGIC_CMD
14809
14810 # Used on cygwin: DLL creation program.
14811 DLLTOOL="$DLLTOOL"
14812
14813 # Used on cygwin: object dumper.
14814 OBJDUMP="$OBJDUMP"
14815
14816 # Used on cygwin: assembler.
14817 AS="$AS"
14818
14819 # The name of the directory that contains temporary libtool files.
14820 objdir=$objdir
14821
14822 # How to create reloadable object files.
14823 reload_flag=$lt_reload_flag
14824 reload_cmds=$lt_reload_cmds
14825
14826 # How to pass a linker flag through the compiler.
14827 wl=$lt_lt_prog_compiler_wl_F77
14828
14829 # Object file suffix (normally "o").
14830 objext="$ac_objext"
14831
14832 # Old archive suffix (normally "a").
14833 libext="$libext"
14834
14835 # Shared library suffix (normally ".so").
14836 shrext='$shrext'
14837
14838 # Executable file suffix (normally "").
14839 exeext="$exeext"
14840
14841 # Additional compiler flags for building library objects.
14842 pic_flag=$lt_lt_prog_compiler_pic_F77
14843 pic_mode=$pic_mode
14844
14845 # What is the maximum length of a command?
14846 max_cmd_len=$lt_cv_sys_max_cmd_len
14847
14848 # Does compiler simultaneously support -c and -o options?
14849 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14850
14851 # Must we lock files when doing compilation ?
14852 need_locks=$lt_need_locks
14853
14854 # Do we need the lib prefix for modules?
14855 need_lib_prefix=$need_lib_prefix
14856
14857 # Do we need a version for libraries?
14858 need_version=$need_version
14859
14860 # Whether dlopen is supported.
14861 dlopen_support=$enable_dlopen
14862
14863 # Whether dlopen of programs is supported.
14864 dlopen_self=$enable_dlopen_self
14865
14866 # Whether dlopen of statically linked programs is supported.
14867 dlopen_self_static=$enable_dlopen_self_static
14868
14869 # Compiler flag to prevent dynamic linking.
14870 link_static_flag=$lt_lt_prog_compiler_static_F77
14871
14872 # Compiler flag to turn off builtin functions.
14873 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14874
14875 # Compiler flag to allow reflexive dlopens.
14876 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14877
14878 # Compiler flag to generate shared objects directly from archives.
14879 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14880
14881 # Compiler flag to generate thread-safe objects.
14882 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14883
14884 # Library versioning type.
14885 version_type=$version_type
14886
14887 # Format of library name prefix.
14888 libname_spec=$lt_libname_spec
14889
14890 # List of archive names.  First name is the real one, the rest are links.
14891 # The last name is the one that the linker finds with -lNAME.
14892 library_names_spec=$lt_library_names_spec
14893
14894 # The coded name of the library, if different from the real name.
14895 soname_spec=$lt_soname_spec
14896
14897 # Commands used to build and install an old-style archive.
14898 RANLIB=$lt_RANLIB
14899 old_archive_cmds=$lt_old_archive_cmds_F77
14900 old_postinstall_cmds=$lt_old_postinstall_cmds
14901 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14902
14903 # Create an old-style archive from a shared archive.
14904 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14905
14906 # Create a temporary old-style archive to link instead of a shared archive.
14907 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14908
14909 # Commands used to build and install a shared archive.
14910 archive_cmds=$lt_archive_cmds_F77
14911 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14912 postinstall_cmds=$lt_postinstall_cmds
14913 postuninstall_cmds=$lt_postuninstall_cmds
14914
14915 # Commands used to build a loadable module (assumed same as above if empty)
14916 module_cmds=$lt_module_cmds_F77
14917 module_expsym_cmds=$lt_module_expsym_cmds_F77
14918
14919 # Commands to strip libraries.
14920 old_striplib=$lt_old_striplib
14921 striplib=$lt_striplib
14922
14923 # Dependencies to place before the objects being linked to create a
14924 # shared library.
14925 predep_objects=$lt_predep_objects_F77
14926
14927 # Dependencies to place after the objects being linked to create a
14928 # shared library.
14929 postdep_objects=$lt_postdep_objects_F77
14930
14931 # Dependencies to place before the objects being linked to create a
14932 # shared library.
14933 predeps=$lt_predeps_F77
14934
14935 # Dependencies to place after the objects being linked to create a
14936 # shared library.
14937 postdeps=$lt_postdeps_F77
14938
14939 # The library search path used internally by the compiler when linking
14940 # a shared library.
14941 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14942
14943 # Method to check whether dependent libraries are shared objects.
14944 deplibs_check_method=$lt_deplibs_check_method
14945
14946 # Command to use when deplibs_check_method == file_magic.
14947 file_magic_cmd=$lt_file_magic_cmd
14948
14949 # Flag that allows shared libraries with undefined symbols to be built.
14950 allow_undefined_flag=$lt_allow_undefined_flag_F77
14951
14952 # Flag that forces no undefined symbols.
14953 no_undefined_flag=$lt_no_undefined_flag_F77
14954
14955 # Commands used to finish a libtool library installation in a directory.
14956 finish_cmds=$lt_finish_cmds
14957
14958 # Same as above, but a single script fragment to be evaled but not shown.
14959 finish_eval=$lt_finish_eval
14960
14961 # Take the output of nm and produce a listing of raw symbols and C names.
14962 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14963
14964 # Transform the output of nm in a proper C declaration
14965 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14966
14967 # Transform the output of nm in a C name address pair
14968 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14969
14970 # This is the shared library runtime path variable.
14971 runpath_var=$runpath_var
14972
14973 # This is the shared library path variable.
14974 shlibpath_var=$shlibpath_var
14975
14976 # Is shlibpath searched before the hard-coded library search path?
14977 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14978
14979 # How to hardcode a shared library path into an executable.
14980 hardcode_action=$hardcode_action_F77
14981
14982 # Whether we should hardcode library paths into libraries.
14983 hardcode_into_libs=$hardcode_into_libs
14984
14985 # Flag to hardcode \$libdir into a binary during linking.
14986 # This must work even if \$libdir does not exist.
14987 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14988
14989 # If ld is used when linking, flag to hardcode \$libdir into
14990 # a binary during linking. This must work even if \$libdir does
14991 # not exist.
14992 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14993
14994 # Whether we need a single -rpath flag with a separated argument.
14995 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14996
14997 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14998 # resulting binary.
14999 hardcode_direct=$hardcode_direct_F77
15000
15001 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15002 # resulting binary.
15003 hardcode_minus_L=$hardcode_minus_L_F77
15004
15005 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15006 # the resulting binary.
15007 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15008
15009 # Set to yes if building a shared library automatically hardcodes DIR into the library
15010 # and all subsequent libraries and executables linked against it.
15011 hardcode_automatic=$hardcode_automatic_F77
15012
15013 # Variables whose values should be saved in libtool wrapper scripts and
15014 # restored at relink time.
15015 variables_saved_for_relink="$variables_saved_for_relink"
15016
15017 # Whether libtool must link a program against all its dependency libraries.
15018 link_all_deplibs=$link_all_deplibs_F77
15019
15020 # Compile-time system search path for libraries
15021 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15022
15023 # Run-time system search path for libraries
15024 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15025
15026 # Fix the shell variable \$srcfile for the compiler.
15027 fix_srcfile_path="$fix_srcfile_path_F77"
15028
15029 # Set to yes if exported symbols are required.
15030 always_export_symbols=$always_export_symbols_F77
15031
15032 # The commands to list exported symbols.
15033 export_symbols_cmds=$lt_export_symbols_cmds_F77
15034
15035 # The commands to extract the exported symbol list from a shared archive.
15036 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15037
15038 # Symbols that should not be listed in the preloaded symbols.
15039 exclude_expsyms=$lt_exclude_expsyms_F77
15040
15041 # Symbols that must always be exported.
15042 include_expsyms=$lt_include_expsyms_F77
15043
15044 # ### END LIBTOOL TAG CONFIG: $tagname
15045
15046 __EOF__
15047
15048
15049 else
15050   # If there is no Makefile yet, we rely on a make rule to execute
15051   # `config.status --recheck' to rerun these tests and create the
15052   # libtool script then.
15053   test -f Makefile && make "$ltmain"
15054 fi
15055
15056
15057 ac_ext=c
15058 ac_cpp='$CPP $CPPFLAGS'
15059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15062
15063 CC="$lt_save_CC"
15064
15065         else
15066           tagname=""
15067         fi
15068         ;;
15069
15070       GCJ)
15071         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15072
15073
15074
15075 # Source file extension for Java test sources.
15076 ac_ext=java
15077
15078 # Object file extension for compiled Java test sources.
15079 objext=o
15080 objext_GCJ=$objext
15081
15082 # Code to be used in simple compile tests
15083 lt_simple_compile_test_code="class foo {}\n"
15084
15085 # Code to be used in simple link tests
15086 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15087
15088 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15089
15090 # If no C compiler was specified, use CC.
15091 LTCC=${LTCC-"$CC"}
15092
15093 # Allow CC to be a program name with arguments.
15094 compiler=$CC
15095
15096
15097 # Allow CC to be a program name with arguments.
15098 lt_save_CC="$CC"
15099 CC=${GCJ-"gcj"}
15100 compiler=$CC
15101 compiler_GCJ=$CC
15102
15103 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15104 archive_cmds_need_lc_GCJ=no
15105
15106 ## CAVEAT EMPTOR:
15107 ## There is no encapsulation within the following macros, do not change
15108 ## the running order or otherwise move them around unless you know exactly
15109 ## what you are doing...
15110
15111 lt_prog_compiler_no_builtin_flag_GCJ=
15112
15113 if test "$GCC" = yes; then
15114   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15115
15116   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15117 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15118 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15119   echo $ECHO_N "(cached) $ECHO_C" >&6
15120 else
15121   lt_cv_prog_compiler_rtti_exceptions=no
15122   ac_outfile=conftest.$ac_objext
15123    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15124    lt_compiler_flag="-fno-rtti -fno-exceptions"
15125    # Insert the option either (1) after the last *FLAGS variable, or
15126    # (2) before a word containing "conftest.", or (3) at the end.
15127    # Note that $ac_compile itself does not contain backslashes and begins
15128    # with a dollar sign (not a hyphen), so the echo should work correctly.
15129    # The option is referenced via a variable to avoid confusing sed.
15130    lt_compile=`echo "$ac_compile" | $SED \
15131    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15132    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15133    -e 's:$: $lt_compiler_flag:'`
15134    (eval echo "\"\$as_me:15134: $lt_compile\"" >&5)
15135    (eval "$lt_compile" 2>conftest.err)
15136    ac_status=$?
15137    cat conftest.err >&5
15138    echo "$as_me:15138: \$? = $ac_status" >&5
15139    if (exit $ac_status) && test -s "$ac_outfile"; then
15140      # The compiler can only warn and ignore the option if not recognized
15141      # So say no if there are warnings
15142      if test ! -s conftest.err; then
15143        lt_cv_prog_compiler_rtti_exceptions=yes
15144      fi
15145    fi
15146    $rm conftest*
15147
15148 fi
15149 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15150 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15151
15152 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15153     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15154 else
15155     :
15156 fi
15157
15158 fi
15159
15160 lt_prog_compiler_wl_GCJ=
15161 lt_prog_compiler_pic_GCJ=
15162 lt_prog_compiler_static_GCJ=
15163
15164 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15165 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15166
15167   if test "$GCC" = yes; then
15168     lt_prog_compiler_wl_GCJ='-Wl,'
15169     lt_prog_compiler_static_GCJ='-static'
15170
15171     case $host_os in
15172       aix*)
15173       # All AIX code is PIC.
15174       if test "$host_cpu" = ia64; then
15175         # AIX 5 now supports IA64 processor
15176         lt_prog_compiler_static_GCJ='-Bstatic'
15177       fi
15178       ;;
15179
15180     amigaos*)
15181       # FIXME: we need at least 68020 code to build shared libraries, but
15182       # adding the `-m68020' flag to GCC prevents building anything better,
15183       # like `-m68040'.
15184       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15185       ;;
15186
15187     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15188       # PIC is the default for these OSes.
15189       ;;
15190
15191     mingw* | pw32* | os2*)
15192       # This hack is so that the source file can tell whether it is being
15193       # built for inclusion in a dll (and should export symbols for example).
15194       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15195       ;;
15196
15197     darwin* | rhapsody*)
15198       # PIC is the default on this platform
15199       # Common symbols not allowed in MH_DYLIB files
15200       lt_prog_compiler_pic_GCJ='-fno-common'
15201       ;;
15202
15203     msdosdjgpp*)
15204       # Just because we use GCC doesn't mean we suddenly get shared libraries
15205       # on systems that don't support them.
15206       lt_prog_compiler_can_build_shared_GCJ=no
15207       enable_shared=no
15208       ;;
15209
15210     sysv4*MP*)
15211       if test -d /usr/nec; then
15212         lt_prog_compiler_pic_GCJ=-Kconform_pic
15213       fi
15214       ;;
15215
15216     hpux*)
15217       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15218       # not for PA HP-UX.
15219       case "$host_cpu" in
15220       hppa*64*|ia64*)
15221         # +Z the default
15222         ;;
15223       *)
15224         lt_prog_compiler_pic_GCJ='-fPIC'
15225         ;;
15226       esac
15227       ;;
15228
15229     *)
15230       lt_prog_compiler_pic_GCJ='-fPIC'
15231       ;;
15232     esac
15233   else
15234     # PORTME Check for flag to pass linker flags through the system compiler.
15235     case $host_os in
15236     aix*)
15237       lt_prog_compiler_wl_GCJ='-Wl,'
15238       if test "$host_cpu" = ia64; then
15239         # AIX 5 now supports IA64 processor
15240         lt_prog_compiler_static_GCJ='-Bstatic'
15241       else
15242         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15243       fi
15244       ;;
15245
15246     mingw* | pw32* | os2*)
15247       # This hack is so that the source file can tell whether it is being
15248       # built for inclusion in a dll (and should export symbols for example).
15249       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15250       ;;
15251
15252     hpux9* | hpux10* | hpux11*)
15253       lt_prog_compiler_wl_GCJ='-Wl,'
15254       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15255       # not for PA HP-UX.
15256       case "$host_cpu" in
15257       hppa*64*|ia64*)
15258         # +Z the default
15259         ;;
15260       *)
15261         lt_prog_compiler_pic_GCJ='+Z'
15262         ;;
15263       esac
15264       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15265       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15266       ;;
15267
15268     irix5* | irix6* | nonstopux*)
15269       lt_prog_compiler_wl_GCJ='-Wl,'
15270       # PIC (with -KPIC) is the default.
15271       lt_prog_compiler_static_GCJ='-non_shared'
15272       ;;
15273
15274     newsos6)
15275       lt_prog_compiler_pic_GCJ='-KPIC'
15276       lt_prog_compiler_static_GCJ='-Bstatic'
15277       ;;
15278
15279     linux*)
15280       case $CC in
15281       icc|ecc)
15282         lt_prog_compiler_wl_GCJ='-Wl,'
15283         lt_prog_compiler_pic_GCJ='-KPIC'
15284         lt_prog_compiler_static_GCJ='-static'
15285         ;;
15286       ccc)
15287         lt_prog_compiler_wl_GCJ='-Wl,'
15288         # All Alpha code is PIC.
15289         lt_prog_compiler_static_GCJ='-non_shared'
15290         ;;
15291       esac
15292       ;;
15293
15294     osf3* | osf4* | osf5*)
15295       lt_prog_compiler_wl_GCJ='-Wl,'
15296       # All OSF/1 code is PIC.
15297       lt_prog_compiler_static_GCJ='-non_shared'
15298       ;;
15299
15300     sco3.2v5*)
15301       lt_prog_compiler_pic_GCJ='-Kpic'
15302       lt_prog_compiler_static_GCJ='-dn'
15303       ;;
15304
15305     solaris*)
15306       lt_prog_compiler_wl_GCJ='-Wl,'
15307       lt_prog_compiler_pic_GCJ='-KPIC'
15308       lt_prog_compiler_static_GCJ='-Bstatic'
15309       ;;
15310
15311     sunos4*)
15312       lt_prog_compiler_wl_GCJ='-Qoption ld '
15313       lt_prog_compiler_pic_GCJ='-PIC'
15314       lt_prog_compiler_static_GCJ='-Bstatic'
15315       ;;
15316
15317     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15318       lt_prog_compiler_wl_GCJ='-Wl,'
15319       lt_prog_compiler_pic_GCJ='-KPIC'
15320       lt_prog_compiler_static_GCJ='-Bstatic'
15321       ;;
15322
15323     sysv4*MP*)
15324       if test -d /usr/nec ;then
15325         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15326         lt_prog_compiler_static_GCJ='-Bstatic'
15327       fi
15328       ;;
15329
15330     uts4*)
15331       lt_prog_compiler_pic_GCJ='-pic'
15332       lt_prog_compiler_static_GCJ='-Bstatic'
15333       ;;
15334
15335     *)
15336       lt_prog_compiler_can_build_shared_GCJ=no
15337       ;;
15338     esac
15339   fi
15340
15341 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15342 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15343
15344 #
15345 # Check to make sure the PIC flag actually works.
15346 #
15347 if test -n "$lt_prog_compiler_pic_GCJ"; then
15348   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15349 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15350 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15351   echo $ECHO_N "(cached) $ECHO_C" >&6
15352 else
15353   lt_prog_compiler_pic_works_GCJ=no
15354   ac_outfile=conftest.$ac_objext
15355    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15356    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15357    # Insert the option either (1) after the last *FLAGS variable, or
15358    # (2) before a word containing "conftest.", or (3) at the end.
15359    # Note that $ac_compile itself does not contain backslashes and begins
15360    # with a dollar sign (not a hyphen), so the echo should work correctly.
15361    # The option is referenced via a variable to avoid confusing sed.
15362    lt_compile=`echo "$ac_compile" | $SED \
15363    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15364    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15365    -e 's:$: $lt_compiler_flag:'`
15366    (eval echo "\"\$as_me:15366: $lt_compile\"" >&5)
15367    (eval "$lt_compile" 2>conftest.err)
15368    ac_status=$?
15369    cat conftest.err >&5
15370    echo "$as_me:15370: \$? = $ac_status" >&5
15371    if (exit $ac_status) && test -s "$ac_outfile"; then
15372      # The compiler can only warn and ignore the option if not recognized
15373      # So say no if there are warnings
15374      if test ! -s conftest.err; then
15375        lt_prog_compiler_pic_works_GCJ=yes
15376      fi
15377    fi
15378    $rm conftest*
15379
15380 fi
15381 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15382 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15383
15384 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15385     case $lt_prog_compiler_pic_GCJ in
15386      "" | " "*) ;;
15387      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15388      esac
15389 else
15390     lt_prog_compiler_pic_GCJ=
15391      lt_prog_compiler_can_build_shared_GCJ=no
15392 fi
15393
15394 fi
15395 case "$host_os" in
15396   # For platforms which do not support PIC, -DPIC is meaningless:
15397   *djgpp*)
15398     lt_prog_compiler_pic_GCJ=
15399     ;;
15400   *)
15401     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15402     ;;
15403 esac
15404
15405 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15406 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15407 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15408   echo $ECHO_N "(cached) $ECHO_C" >&6
15409 else
15410   lt_cv_prog_compiler_c_o_GCJ=no
15411    $rm -r conftest 2>/dev/null
15412    mkdir conftest
15413    cd conftest
15414    mkdir out
15415    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15416
15417    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15418    # that will create temporary files in the current directory regardless of
15419    # the output directory.  Thus, making CWD read-only will cause this test
15420    # to fail, enabling locking or at least warning the user not to do parallel
15421    # builds.
15422    chmod -w .
15423
15424    lt_compiler_flag="-o out/conftest2.$ac_objext"
15425    # Insert the option either (1) after the last *FLAGS variable, or
15426    # (2) before a word containing "conftest.", or (3) at the end.
15427    # Note that $ac_compile itself does not contain backslashes and begins
15428    # with a dollar sign (not a hyphen), so the echo should work correctly.
15429    lt_compile=`echo "$ac_compile" | $SED \
15430    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15431    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15432    -e 's:$: $lt_compiler_flag:'`
15433    (eval echo "\"\$as_me:15433: $lt_compile\"" >&5)
15434    (eval "$lt_compile" 2>out/conftest.err)
15435    ac_status=$?
15436    cat out/conftest.err >&5
15437    echo "$as_me:15437: \$? = $ac_status" >&5
15438    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15439    then
15440      # The compiler can only warn and ignore the option if not recognized
15441      # So say no if there are warnings
15442      if test ! -s out/conftest.err; then
15443        lt_cv_prog_compiler_c_o_GCJ=yes
15444      fi
15445    fi
15446    chmod u+w .
15447    $rm conftest* out/*
15448    rmdir out
15449    cd ..
15450    rmdir conftest
15451    $rm conftest*
15452
15453 fi
15454 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15455 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15456
15457
15458 hard_links="nottested"
15459 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15460   # do not overwrite the value of need_locks provided by the user
15461   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15462 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15463   hard_links=yes
15464   $rm conftest*
15465   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15466   touch conftest.a
15467   ln conftest.a conftest.b 2>&5 || hard_links=no
15468   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15469   echo "$as_me:$LINENO: result: $hard_links" >&5
15470 echo "${ECHO_T}$hard_links" >&6
15471   if test "$hard_links" = no; then
15472     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15473 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15474     need_locks=warn
15475   fi
15476 else
15477   need_locks=no
15478 fi
15479
15480 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15481 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15482
15483   runpath_var=
15484   allow_undefined_flag_GCJ=
15485   enable_shared_with_static_runtimes_GCJ=no
15486   archive_cmds_GCJ=
15487   archive_expsym_cmds_GCJ=
15488   old_archive_From_new_cmds_GCJ=
15489   old_archive_from_expsyms_cmds_GCJ=
15490   export_dynamic_flag_spec_GCJ=
15491   whole_archive_flag_spec_GCJ=
15492   thread_safe_flag_spec_GCJ=
15493   hardcode_libdir_flag_spec_GCJ=
15494   hardcode_libdir_flag_spec_ld_GCJ=
15495   hardcode_libdir_separator_GCJ=
15496   hardcode_direct_GCJ=no
15497   hardcode_minus_L_GCJ=no
15498   hardcode_shlibpath_var_GCJ=unsupported
15499   link_all_deplibs_GCJ=unknown
15500   hardcode_automatic_GCJ=no
15501   module_cmds_GCJ=
15502   module_expsym_cmds_GCJ=
15503   always_export_symbols_GCJ=no
15504   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15505   # include_expsyms should be a list of space-separated symbols to be *always*
15506   # included in the symbol list
15507   include_expsyms_GCJ=
15508   # exclude_expsyms can be an extended regexp of symbols to exclude
15509   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15510   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15511   # as well as any symbol that contains `d'.
15512   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15513   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15514   # platforms (ab)use it in PIC code, but their linkers get confused if
15515   # the symbol is explicitly referenced.  Since portable code cannot
15516   # rely on this symbol name, it's probably fine to never include it in
15517   # preloaded symbol tables.
15518   extract_expsyms_cmds=
15519
15520   case $host_os in
15521   cygwin* | mingw* | pw32*)
15522     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15523     # When not using gcc, we currently assume that we are using
15524     # Microsoft Visual C++.
15525     if test "$GCC" != yes; then
15526       with_gnu_ld=no
15527     fi
15528     ;;
15529   openbsd*)
15530     with_gnu_ld=no
15531     ;;
15532   esac
15533
15534   ld_shlibs_GCJ=yes
15535   if test "$with_gnu_ld" = yes; then
15536     # If archive_cmds runs LD, not CC, wlarc should be empty
15537     wlarc='${wl}'
15538
15539     # See if GNU ld supports shared libraries.
15540     case $host_os in
15541     aix3* | aix4* | aix5*)
15542       # On AIX/PPC, the GNU linker is very broken
15543       if test "$host_cpu" != ia64; then
15544         ld_shlibs_GCJ=no
15545         cat <<EOF 1>&2
15546
15547 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15548 *** to be unable to reliably create shared libraries on AIX.
15549 *** Therefore, libtool is disabling shared libraries support.  If you
15550 *** really care for shared libraries, you may want to modify your PATH
15551 *** so that a non-GNU linker is found, and then restart.
15552
15553 EOF
15554       fi
15555       ;;
15556
15557     amigaos*)
15558       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)'
15559       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15560       hardcode_minus_L_GCJ=yes
15561
15562       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15563       # that the semantics of dynamic libraries on AmigaOS, at least up
15564       # to version 4, is to share data among multiple programs linked
15565       # with the same dynamic library.  Since this doesn't match the
15566       # behavior of shared libraries on other platforms, we can't use
15567       # them.
15568       ld_shlibs_GCJ=no
15569       ;;
15570
15571     beos*)
15572       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15573         allow_undefined_flag_GCJ=unsupported
15574         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15575         # support --undefined.  This deserves some investigation.  FIXME
15576         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15577       else
15578         ld_shlibs_GCJ=no
15579       fi
15580       ;;
15581
15582     cygwin* | mingw* | pw32*)
15583       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15584       # as there is no search path for DLLs.
15585       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15586       allow_undefined_flag_GCJ=unsupported
15587       always_export_symbols_GCJ=no
15588       enable_shared_with_static_runtimes_GCJ=yes
15589       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15590
15591       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15592         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15593         # If the export-symbols file already is a .def file (1st line
15594         # is EXPORTS), use it as is; otherwise, prepend...
15595         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15596           cp $export_symbols $output_objdir/$soname.def;
15597         else
15598           echo EXPORTS > $output_objdir/$soname.def;
15599           cat $export_symbols >> $output_objdir/$soname.def;
15600         fi~
15601         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15602       else
15603         ld_shlibs=no
15604       fi
15605       ;;
15606
15607     netbsd*)
15608       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15609         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15610         wlarc=
15611       else
15612         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15613         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15614       fi
15615       ;;
15616
15617     solaris* | sysv5*)
15618       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15619         ld_shlibs_GCJ=no
15620         cat <<EOF 1>&2
15621
15622 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15623 *** create shared libraries on Solaris systems.  Therefore, libtool
15624 *** is disabling shared libraries support.  We urge you to upgrade GNU
15625 *** binutils to release 2.9.1 or newer.  Another option is to modify
15626 *** your PATH or compiler configuration so that the native linker is
15627 *** used, and then restart.
15628
15629 EOF
15630       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15631         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15632         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15633       else
15634         ld_shlibs_GCJ=no
15635       fi
15636       ;;
15637
15638     sunos4*)
15639       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15640       wlarc=
15641       hardcode_direct_GCJ=yes
15642       hardcode_shlibpath_var_GCJ=no
15643       ;;
15644
15645     *)
15646       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15647         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15648         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15649       else
15650         ld_shlibs_GCJ=no
15651       fi
15652       ;;
15653     esac
15654
15655     if test "$ld_shlibs_GCJ" = yes; then
15656       runpath_var=LD_RUN_PATH
15657       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15658       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15659       # ancient GNU ld didn't support --whole-archive et. al.
15660       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15661         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15662       else
15663         whole_archive_flag_spec_GCJ=
15664       fi
15665     fi
15666   else
15667     # PORTME fill in a description of your system's linker (not GNU ld)
15668     case $host_os in
15669     aix3*)
15670       allow_undefined_flag_GCJ=unsupported
15671       always_export_symbols_GCJ=yes
15672       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'
15673       # Note: this linker hardcodes the directories in LIBPATH if there
15674       # are no directories specified by -L.
15675       hardcode_minus_L_GCJ=yes
15676       if test "$GCC" = yes && test -z "$link_static_flag"; then
15677         # Neither direct hardcoding nor static linking is supported with a
15678         # broken collect2.
15679         hardcode_direct_GCJ=unsupported
15680       fi
15681       ;;
15682
15683     aix4* | aix5*)
15684       if test "$host_cpu" = ia64; then
15685         # On IA64, the linker does run time linking by default, so we don't
15686         # have to do anything special.
15687         aix_use_runtimelinking=no
15688         exp_sym_flag='-Bexport'
15689         no_entry_flag=""
15690       else
15691         # If we're using GNU nm, then we don't want the "-C" option.
15692         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15693         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15694           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'
15695         else
15696           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'
15697         fi
15698         aix_use_runtimelinking=no
15699
15700         # Test if we are trying to use run time linking or normal
15701         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15702         # need to do runtime linking.
15703         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15704           for ld_flag in $LDFLAGS; do
15705           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15706             aix_use_runtimelinking=yes
15707             break
15708           fi
15709           done
15710         esac
15711
15712         exp_sym_flag='-bexport'
15713         no_entry_flag='-bnoentry'
15714       fi
15715
15716       # When large executables or shared objects are built, AIX ld can
15717       # have problems creating the table of contents.  If linking a library
15718       # or program results in "error TOC overflow" add -mminimal-toc to
15719       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15720       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15721
15722       archive_cmds_GCJ=''
15723       hardcode_direct_GCJ=yes
15724       hardcode_libdir_separator_GCJ=':'
15725       link_all_deplibs_GCJ=yes
15726
15727       if test "$GCC" = yes; then
15728         case $host_os in aix4.012|aix4.012.*)
15729         # We only want to do this on AIX 4.2 and lower, the check
15730         # below for broken collect2 doesn't work under 4.3+
15731           collect2name=`${CC} -print-prog-name=collect2`
15732           if test -f "$collect2name" && \
15733            strings "$collect2name" | grep resolve_lib_name >/dev/null
15734           then
15735           # We have reworked collect2
15736           hardcode_direct_GCJ=yes
15737           else
15738           # We have old collect2
15739           hardcode_direct_GCJ=unsupported
15740           # It fails to find uninstalled libraries when the uninstalled
15741           # path is not listed in the libpath.  Setting hardcode_minus_L
15742           # to unsupported forces relinking
15743           hardcode_minus_L_GCJ=yes
15744           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15745           hardcode_libdir_separator_GCJ=
15746           fi
15747         esac
15748         shared_flag='-shared'
15749       else
15750         # not using gcc
15751         if test "$host_cpu" = ia64; then
15752         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15753         # chokes on -Wl,-G. The following line is correct:
15754           shared_flag='-G'
15755         else
15756         if test "$aix_use_runtimelinking" = yes; then
15757             shared_flag='${wl}-G'
15758           else
15759             shared_flag='${wl}-bM:SRE'
15760         fi
15761         fi
15762       fi
15763
15764       # It seems that -bexpall does not export symbols beginning with
15765       # underscore (_), so it is better to generate a list of symbols to export.
15766       always_export_symbols_GCJ=yes
15767       if test "$aix_use_runtimelinking" = yes; then
15768         # Warning - without using the other runtime loading flags (-brtl),
15769         # -berok will link without error, but may produce a broken library.
15770         allow_undefined_flag_GCJ='-berok'
15771        # Determine the default libpath from the value encoded in an empty executable.
15772        cat >conftest.$ac_ext <<_ACEOF
15773 #line $LINENO "configure"
15774 /* confdefs.h.  */
15775 _ACEOF
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h.  */
15779
15780 int
15781 main ()
15782 {
15783
15784   ;
15785   return 0;
15786 }
15787 _ACEOF
15788 rm -f conftest.$ac_objext conftest$ac_exeext
15789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15790   (eval $ac_link) 2>&5
15791   ac_status=$?
15792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793   (exit $ac_status); } &&
15794          { ac_try='test -s conftest$ac_exeext'
15795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796   (eval $ac_try) 2>&5
15797   ac_status=$?
15798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799   (exit $ac_status); }; }; then
15800
15801 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15802 }'`
15803 # Check for a 64-bit object if we didn't find anything.
15804 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; }
15805 }'`; fi
15806 else
15807   echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15809
15810 fi
15811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15812 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15813
15814        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15815         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"
15816        else
15817         if test "$host_cpu" = ia64; then
15818           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15819           allow_undefined_flag_GCJ="-z nodefs"
15820           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"
15821         else
15822          # Determine the default libpath from the value encoded in an empty executable.
15823          cat >conftest.$ac_ext <<_ACEOF
15824 #line $LINENO "configure"
15825 /* confdefs.h.  */
15826 _ACEOF
15827 cat confdefs.h >>conftest.$ac_ext
15828 cat >>conftest.$ac_ext <<_ACEOF
15829 /* end confdefs.h.  */
15830
15831 int
15832 main ()
15833 {
15834
15835   ;
15836   return 0;
15837 }
15838 _ACEOF
15839 rm -f conftest.$ac_objext conftest$ac_exeext
15840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15841   (eval $ac_link) 2>&5
15842   ac_status=$?
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); } &&
15845          { ac_try='test -s conftest$ac_exeext'
15846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847   (eval $ac_try) 2>&5
15848   ac_status=$?
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); }; }; then
15851
15852 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15853 }'`
15854 # Check for a 64-bit object if we didn't find anything.
15855 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; }
15856 }'`; fi
15857 else
15858   echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15860
15861 fi
15862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15863 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15864
15865          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15866           # Warning - without using the other run time loading flags,
15867           # -berok will link without error, but may produce a broken library.
15868           no_undefined_flag_GCJ=' ${wl}-bernotok'
15869           allow_undefined_flag_GCJ=' ${wl}-berok'
15870           # -bexpall does not export symbols beginning with underscore (_)
15871           always_export_symbols_GCJ=yes
15872           # Exported symbols can be pulled into shared objects from archives
15873           whole_archive_flag_spec_GCJ=' '
15874           archive_cmds_need_lc_GCJ=yes
15875           # This is similar to how AIX traditionally builds it's shared libraries.
15876           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'
15877         fi
15878       fi
15879       ;;
15880
15881     amigaos*)
15882       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)'
15883       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15884       hardcode_minus_L_GCJ=yes
15885       # see comment about different semantics on the GNU ld section
15886       ld_shlibs_GCJ=no
15887       ;;
15888
15889     bsdi4*)
15890       export_dynamic_flag_spec_GCJ=-rdynamic
15891       ;;
15892
15893     cygwin* | mingw* | pw32*)
15894       # When not using gcc, we currently assume that we are using
15895       # Microsoft Visual C++.
15896       # hardcode_libdir_flag_spec is actually meaningless, as there is
15897       # no search path for DLLs.
15898       hardcode_libdir_flag_spec_GCJ=' '
15899       allow_undefined_flag_GCJ=unsupported
15900       # Tell ltmain to make .lib files, not .a files.
15901       libext=lib
15902       # Tell ltmain to make .dll files, not .so files.
15903       shrext=".dll"
15904       # FIXME: Setting linknames here is a bad hack.
15905       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15906       # The linker will automatically build a .lib file if we build a DLL.
15907       old_archive_From_new_cmds_GCJ='true'
15908       # FIXME: Should let the user specify the lib program.
15909       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15910       fix_srcfile_path='`cygpath -w "$srcfile"`'
15911       enable_shared_with_static_runtimes_GCJ=yes
15912       ;;
15913
15914     darwin* | rhapsody*)
15915     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15916       archive_cmds_need_lc_GCJ=no
15917       case "$host_os" in
15918       rhapsody* | darwin1.[012])
15919         allow_undefined_flag_GCJ='-undefined suppress'
15920         ;;
15921       *) # Darwin 1.3 on
15922         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15923         ;;
15924       esac
15925       # FIXME: Relying on posixy $() will cause problems for
15926       #        cross-compilation, but unfortunately the echo tests do not
15927       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15928       #        `"' quotes if we put them in here... so don't!
15929         lt_int_apple_cc_single_mod=no
15930         output_verbose_link_cmd='echo'
15931         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15932           lt_int_apple_cc_single_mod=yes
15933         fi
15934         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15935           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15936         else
15937         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'
15938       fi
15939       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15940       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15941         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15942           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}'
15943         else
15944           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}'
15945         fi
15946           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}'
15947       hardcode_direct_GCJ=no
15948       hardcode_automatic_GCJ=yes
15949       hardcode_shlibpath_var_GCJ=unsupported
15950       whole_archive_flag_spec_GCJ='-all_load $convenience'
15951       link_all_deplibs_GCJ=yes
15952     fi
15953       ;;
15954
15955     dgux*)
15956       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15957       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15958       hardcode_shlibpath_var_GCJ=no
15959       ;;
15960
15961     freebsd1*)
15962       ld_shlibs_GCJ=no
15963       ;;
15964
15965     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15966     # support.  Future versions do this automatically, but an explicit c++rt0.o
15967     # does not break anything, and helps significantly (at the cost of a little
15968     # extra space).
15969     freebsd2.2*)
15970       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15971       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15972       hardcode_direct_GCJ=yes
15973       hardcode_shlibpath_var_GCJ=no
15974       ;;
15975
15976     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15977     freebsd2*)
15978       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15979       hardcode_direct_GCJ=yes
15980       hardcode_minus_L_GCJ=yes
15981       hardcode_shlibpath_var_GCJ=no
15982       ;;
15983
15984     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15985     freebsd*)
15986       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15987       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15988       hardcode_direct_GCJ=yes
15989       hardcode_shlibpath_var_GCJ=no
15990       ;;
15991
15992     hpux9*)
15993       if test "$GCC" = yes; then
15994         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'
15995       else
15996         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'
15997       fi
15998       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15999       hardcode_libdir_separator_GCJ=:
16000       hardcode_direct_GCJ=yes
16001
16002       # hardcode_minus_L: Not really in the search PATH,
16003       # but as the default location of the library.
16004       hardcode_minus_L_GCJ=yes
16005       export_dynamic_flag_spec_GCJ='${wl}-E'
16006       ;;
16007
16008     hpux10* | hpux11*)
16009       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16010         case "$host_cpu" in
16011         hppa*64*|ia64*)
16012           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16013           ;;
16014         *)
16015           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16016           ;;
16017         esac
16018       else
16019         case "$host_cpu" in
16020         hppa*64*|ia64*)
16021           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16022           ;;
16023         *)
16024           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16025           ;;
16026         esac
16027       fi
16028       if test "$with_gnu_ld" = no; then
16029         case "$host_cpu" in
16030         hppa*64*)
16031           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16032           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16033           hardcode_libdir_separator_GCJ=:
16034           hardcode_direct_GCJ=no
16035           hardcode_shlibpath_var_GCJ=no
16036           ;;
16037         ia64*)
16038           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16039           hardcode_direct_GCJ=no
16040           hardcode_shlibpath_var_GCJ=no
16041
16042           # hardcode_minus_L: Not really in the search PATH,
16043           # but as the default location of the library.
16044           hardcode_minus_L_GCJ=yes
16045           ;;
16046         *)
16047           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16048           hardcode_libdir_separator_GCJ=:
16049           hardcode_direct_GCJ=yes
16050           export_dynamic_flag_spec_GCJ='${wl}-E'
16051
16052           # hardcode_minus_L: Not really in the search PATH,
16053           # but as the default location of the library.
16054           hardcode_minus_L_GCJ=yes
16055           ;;
16056         esac
16057       fi
16058       ;;
16059
16060     irix5* | irix6* | nonstopux*)
16061       if test "$GCC" = yes; then
16062         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'
16063       else
16064         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'
16065         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16066       fi
16067       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16068       hardcode_libdir_separator_GCJ=:
16069       link_all_deplibs_GCJ=yes
16070       ;;
16071
16072     netbsd*)
16073       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16074         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16075       else
16076         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16077       fi
16078       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16079       hardcode_direct_GCJ=yes
16080       hardcode_shlibpath_var_GCJ=no
16081       ;;
16082
16083     newsos6)
16084       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16085       hardcode_direct_GCJ=yes
16086       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16087       hardcode_libdir_separator_GCJ=:
16088       hardcode_shlibpath_var_GCJ=no
16089       ;;
16090
16091     openbsd*)
16092       hardcode_direct_GCJ=yes
16093       hardcode_shlibpath_var_GCJ=no
16094       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16095         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16096         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16097         export_dynamic_flag_spec_GCJ='${wl}-E'
16098       else
16099        case $host_os in
16100          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16101            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16102            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16103            ;;
16104          *)
16105            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16106            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16107            ;;
16108        esac
16109       fi
16110       ;;
16111
16112     os2*)
16113       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16114       hardcode_minus_L_GCJ=yes
16115       allow_undefined_flag_GCJ=unsupported
16116       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'
16117       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16118       ;;
16119
16120     osf3*)
16121       if test "$GCC" = yes; then
16122         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16123         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'
16124       else
16125         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16126         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'
16127       fi
16128       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16129       hardcode_libdir_separator_GCJ=:
16130       ;;
16131
16132     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16133       if test "$GCC" = yes; then
16134         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16135         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'
16136         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16137       else
16138         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16139         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'
16140         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~
16141         $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'
16142
16143         # Both c and cxx compiler support -rpath directly
16144         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16145       fi
16146       hardcode_libdir_separator_GCJ=:
16147       ;;
16148
16149     sco3.2v5*)
16150       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16151       hardcode_shlibpath_var_GCJ=no
16152       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16153       runpath_var=LD_RUN_PATH
16154       hardcode_runpath_var=yes
16155       ;;
16156
16157     solaris*)
16158       no_undefined_flag_GCJ=' -z text'
16159       if test "$GCC" = yes; then
16160         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16161         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16162           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16163       else
16164         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16165         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16166         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16167       fi
16168       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16169       hardcode_shlibpath_var_GCJ=no
16170       case $host_os in
16171       solaris2.[0-5] | solaris2.[0-5].*) ;;
16172       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16173         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16174       esac
16175       link_all_deplibs_GCJ=yes
16176       ;;
16177
16178     sunos4*)
16179       if test "x$host_vendor" = xsequent; then
16180         # Use $CC to link under sequent, because it throws in some extra .o
16181         # files that make .init and .fini sections work.
16182         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16183       else
16184         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16185       fi
16186       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16187       hardcode_direct_GCJ=yes
16188       hardcode_minus_L_GCJ=yes
16189       hardcode_shlibpath_var_GCJ=no
16190       ;;
16191
16192     sysv4)
16193       case $host_vendor in
16194         sni)
16195           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16196           hardcode_direct_GCJ=yes # is this really true???
16197         ;;
16198         siemens)
16199           ## LD is ld it makes a PLAMLIB
16200           ## CC just makes a GrossModule.
16201           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16202           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16203           hardcode_direct_GCJ=no
16204         ;;
16205         motorola)
16206           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16207           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16208         ;;
16209       esac
16210       runpath_var='LD_RUN_PATH'
16211       hardcode_shlibpath_var_GCJ=no
16212       ;;
16213
16214     sysv4.3*)
16215       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16216       hardcode_shlibpath_var_GCJ=no
16217       export_dynamic_flag_spec_GCJ='-Bexport'
16218       ;;
16219
16220     sysv4*MP*)
16221       if test -d /usr/nec; then
16222         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16223         hardcode_shlibpath_var_GCJ=no
16224         runpath_var=LD_RUN_PATH
16225         hardcode_runpath_var=yes
16226         ld_shlibs_GCJ=yes
16227       fi
16228       ;;
16229
16230     sysv4.2uw2*)
16231       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16232       hardcode_direct_GCJ=yes
16233       hardcode_minus_L_GCJ=no
16234       hardcode_shlibpath_var_GCJ=no
16235       hardcode_runpath_var=yes
16236       runpath_var=LD_RUN_PATH
16237       ;;
16238
16239    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16240       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16241       if test "$GCC" = yes; then
16242         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16243       else
16244         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16245       fi
16246       runpath_var='LD_RUN_PATH'
16247       hardcode_shlibpath_var_GCJ=no
16248       ;;
16249
16250     sysv5*)
16251       no_undefined_flag_GCJ=' -z text'
16252       # $CC -shared without GNU ld will not create a library from C++
16253       # object files and a static libstdc++, better avoid it by now
16254       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16255       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16256                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16257       hardcode_libdir_flag_spec_GCJ=
16258       hardcode_shlibpath_var_GCJ=no
16259       runpath_var='LD_RUN_PATH'
16260       ;;
16261
16262     uts4*)
16263       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16264       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16265       hardcode_shlibpath_var_GCJ=no
16266       ;;
16267
16268     *)
16269       ld_shlibs_GCJ=no
16270       ;;
16271     esac
16272   fi
16273
16274 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16275 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16276 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16277
16278 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16279 if test "$GCC" = yes; then
16280   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16281 fi
16282
16283 #
16284 # Do we need to explicitly link libc?
16285 #
16286 case "x$archive_cmds_need_lc_GCJ" in
16287 x|xyes)
16288   # Assume -lc should be added
16289   archive_cmds_need_lc_GCJ=yes
16290
16291   if test "$enable_shared" = yes && test "$GCC" = yes; then
16292     case $archive_cmds_GCJ in
16293     *'~'*)
16294       # FIXME: we may have to deal with multi-command sequences.
16295       ;;
16296     '$CC '*)
16297       # Test whether the compiler implicitly links with -lc since on some
16298       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16299       # to ld, don't add -lc before -lgcc.
16300       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16301 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16302       $rm conftest*
16303       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16304
16305       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16306   (eval $ac_compile) 2>&5
16307   ac_status=$?
16308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309   (exit $ac_status); } 2>conftest.err; then
16310         soname=conftest
16311         lib=conftest
16312         libobjs=conftest.$ac_objext
16313         deplibs=
16314         wl=$lt_prog_compiler_wl_GCJ
16315         compiler_flags=-v
16316         linker_flags=-v
16317         verstring=
16318         output_objdir=.
16319         libname=conftest
16320         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16321         allow_undefined_flag_GCJ=
16322         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16323   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16324   ac_status=$?
16325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326   (exit $ac_status); }
16327         then
16328           archive_cmds_need_lc_GCJ=no
16329         else
16330           archive_cmds_need_lc_GCJ=yes
16331         fi
16332         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16333       else
16334         cat conftest.err 1>&5
16335       fi
16336       $rm conftest*
16337       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16338 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16339       ;;
16340     esac
16341   fi
16342   ;;
16343 esac
16344
16345 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16346 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16347 hardcode_action_GCJ=
16348 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16349    test -n "$runpath_var GCJ" || \
16350    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16351
16352   # We can hardcode non-existant directories.
16353   if test "$hardcode_direct_GCJ" != no &&
16354      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16355      # have to relink, otherwise we might link with an installed library
16356      # when we should be linking with a yet-to-be-installed one
16357      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16358      test "$hardcode_minus_L_GCJ" != no; then
16359     # Linking always hardcodes the temporary library directory.
16360     hardcode_action_GCJ=relink
16361   else
16362     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16363     hardcode_action_GCJ=immediate
16364   fi
16365 else
16366   # We cannot hardcode anything, or else we can only hardcode existing
16367   # directories.
16368   hardcode_action_GCJ=unsupported
16369 fi
16370 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16371 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16372
16373 if test "$hardcode_action_GCJ" = relink; then
16374   # Fast installation is not supported
16375   enable_fast_install=no
16376 elif test "$shlibpath_overrides_runpath" = yes ||
16377      test "$enable_shared" = no; then
16378   # Fast installation is not necessary
16379   enable_fast_install=needless
16380 fi
16381
16382 striplib=
16383 old_striplib=
16384 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16385 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16386 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16387   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16388   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16389   echo "$as_me:$LINENO: result: yes" >&5
16390 echo "${ECHO_T}yes" >&6
16391 else
16392 # FIXME - insert some real tests, host_os isn't really good enough
16393   case $host_os in
16394    darwin*)
16395        if test -n "$STRIP" ; then
16396          striplib="$STRIP -x"
16397          echo "$as_me:$LINENO: result: yes" >&5
16398 echo "${ECHO_T}yes" >&6
16399        else
16400   echo "$as_me:$LINENO: result: no" >&5
16401 echo "${ECHO_T}no" >&6
16402 fi
16403        ;;
16404    *)
16405   echo "$as_me:$LINENO: result: no" >&5
16406 echo "${ECHO_T}no" >&6
16407     ;;
16408   esac
16409 fi
16410
16411 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16412 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16413 library_names_spec=
16414 libname_spec='lib$name'
16415 soname_spec=
16416 shrext=".so"
16417 postinstall_cmds=
16418 postuninstall_cmds=
16419 finish_cmds=
16420 finish_eval=
16421 shlibpath_var=
16422 shlibpath_overrides_runpath=unknown
16423 version_type=none
16424 dynamic_linker="$host_os ld.so"
16425 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16426 if test "$GCC" = yes; then
16427   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16428   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16429     # if the path contains ";" then we assume it to be the separator
16430     # otherwise default to the standard path separator (i.e. ":") - it is
16431     # assumed that no part of a normal pathname contains ";" but that should
16432     # okay in the real world where ";" in dirpaths is itself problematic.
16433     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16434   else
16435     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16436   fi
16437 else
16438   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16439 fi
16440 need_lib_prefix=unknown
16441 hardcode_into_libs=no
16442
16443 # when you set need_version to no, make sure it does not cause -set_version
16444 # flags to be left without arguments
16445 need_version=unknown
16446
16447 case $host_os in
16448 aix3*)
16449   version_type=linux
16450   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16451   shlibpath_var=LIBPATH
16452
16453   # AIX 3 has no versioning support, so we append a major version to the name.
16454   soname_spec='${libname}${release}${shared_ext}$major'
16455   ;;
16456
16457 aix4* | aix5*)
16458   version_type=linux
16459   need_lib_prefix=no
16460   need_version=no
16461   hardcode_into_libs=yes
16462   if test "$host_cpu" = ia64; then
16463     # AIX 5 supports IA64
16464     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16465     shlibpath_var=LD_LIBRARY_PATH
16466   else
16467     # With GCC up to 2.95.x, collect2 would create an import file
16468     # for dependence libraries.  The import file would start with
16469     # the line `#! .'.  This would cause the generated library to
16470     # depend on `.', always an invalid library.  This was fixed in
16471     # development snapshots of GCC prior to 3.0.
16472     case $host_os in
16473       aix4 | aix4.[01] | aix4.[01].*)
16474       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16475            echo ' yes '
16476            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16477         :
16478       else
16479         can_build_shared=no
16480       fi
16481       ;;
16482     esac
16483     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16484     # soname into executable. Probably we can add versioning support to
16485     # collect2, so additional links can be useful in future.
16486     if test "$aix_use_runtimelinking" = yes; then
16487       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16488       # instead of lib<name>.a to let people know that these are not
16489       # typical AIX shared libraries.
16490       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491     else
16492       # We preserve .a as extension for shared libraries through AIX4.2
16493       # and later when we are not doing run time linking.
16494       library_names_spec='${libname}${release}.a $libname.a'
16495       soname_spec='${libname}${release}${shared_ext}$major'
16496     fi
16497     shlibpath_var=LIBPATH
16498   fi
16499   ;;
16500
16501 amigaos*)
16502   library_names_spec='$libname.ixlibrary $libname.a'
16503   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16504   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'
16505   ;;
16506
16507 beos*)
16508   library_names_spec='${libname}${shared_ext}'
16509   dynamic_linker="$host_os ld.so"
16510   shlibpath_var=LIBRARY_PATH
16511   ;;
16512
16513 bsdi4*)
16514   version_type=linux
16515   need_version=no
16516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16517   soname_spec='${libname}${release}${shared_ext}$major'
16518   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16519   shlibpath_var=LD_LIBRARY_PATH
16520   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16521   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16522   # the default ld.so.conf also contains /usr/contrib/lib and
16523   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16524   # libtool to hard-code these into programs
16525   ;;
16526
16527 cygwin* | mingw* | pw32*)
16528   version_type=windows
16529   shrext=".dll"
16530   need_version=no
16531   need_lib_prefix=no
16532
16533   case $GCC,$host_os in
16534   yes,cygwin* | yes,mingw* | yes,pw32*)
16535     library_names_spec='$libname.dll.a'
16536     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16537     postinstall_cmds='base_file=`basename \${file}`~
16538       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16539       dldir=$destdir/`dirname \$dlpath`~
16540       test -d \$dldir || mkdir -p \$dldir~
16541       $install_prog $dir/$dlname \$dldir/$dlname'
16542     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16543       dlpath=$dir/\$dldll~
16544        $rm \$dlpath'
16545     shlibpath_overrides_runpath=yes
16546
16547     case $host_os in
16548     cygwin*)
16549       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16550       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16551       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16552       ;;
16553     mingw*)
16554       # MinGW DLLs use traditional 'lib' prefix
16555       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16556       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16557       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16558         # It is most probably a Windows format PATH printed by
16559         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16560         # path with ; separators, and with drive letters. We can handle the
16561         # drive letters (cygwin fileutils understands them), so leave them,
16562         # especially as we might pass files found there to a mingw objdump,
16563         # which wouldn't understand a cygwinified path. Ahh.
16564         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16565       else
16566         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16567       fi
16568       ;;
16569     pw32*)
16570       # pw32 DLLs use 'pw' prefix rather than 'lib'
16571       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16572       ;;
16573     esac
16574     ;;
16575
16576   *)
16577     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16578     ;;
16579   esac
16580   dynamic_linker='Win32 ld.exe'
16581   # FIXME: first we should search . and the directory the executable is in
16582   shlibpath_var=PATH
16583   ;;
16584
16585 darwin* | rhapsody*)
16586   dynamic_linker="$host_os dyld"
16587   version_type=darwin
16588   need_lib_prefix=no
16589   need_version=no
16590   # FIXME: Relying on posixy $() will cause problems for
16591   #        cross-compilation, but unfortunately the echo tests do not
16592   #        yet detect zsh echo's removal of \ escapes.
16593   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16594   soname_spec='${libname}${release}${major}$shared_ext'
16595   shlibpath_overrides_runpath=yes
16596   shlibpath_var=DYLD_LIBRARY_PATH
16597   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16598   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16599   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16600   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"`
16601   fi
16602   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16603   ;;
16604
16605 dgux*)
16606   version_type=linux
16607   need_lib_prefix=no
16608   need_version=no
16609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16610   soname_spec='${libname}${release}${shared_ext}$major'
16611   shlibpath_var=LD_LIBRARY_PATH
16612   ;;
16613
16614 freebsd1*)
16615   dynamic_linker=no
16616   ;;
16617
16618 freebsd*)
16619   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16620   version_type=freebsd-$objformat
16621   case $version_type in
16622     freebsd-elf*)
16623       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16624       need_version=no
16625       need_lib_prefix=no
16626       ;;
16627     freebsd-*)
16628       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16629       need_version=yes
16630       ;;
16631   esac
16632   shlibpath_var=LD_LIBRARY_PATH
16633   case $host_os in
16634   freebsd2*)
16635     shlibpath_overrides_runpath=yes
16636     ;;
16637   freebsd3.01* | freebsdelf3.01*)
16638     shlibpath_overrides_runpath=yes
16639     hardcode_into_libs=yes
16640     ;;
16641   *) # from 3.2 on
16642     shlibpath_overrides_runpath=no
16643     hardcode_into_libs=yes
16644     ;;
16645   esac
16646   ;;
16647
16648 gnu*)
16649   version_type=linux
16650   need_lib_prefix=no
16651   need_version=no
16652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16653   soname_spec='${libname}${release}${shared_ext}$major'
16654   shlibpath_var=LD_LIBRARY_PATH
16655   hardcode_into_libs=yes
16656   ;;
16657
16658 hpux9* | hpux10* | hpux11*)
16659   # Give a soname corresponding to the major version so that dld.sl refuses to
16660   # link against other versions.
16661   version_type=sunos
16662   need_lib_prefix=no
16663   need_version=no
16664   case "$host_cpu" in
16665   ia64*)
16666     shrext='.so'
16667     hardcode_into_libs=yes
16668     dynamic_linker="$host_os dld.so"
16669     shlibpath_var=LD_LIBRARY_PATH
16670     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16671     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16672     soname_spec='${libname}${release}${shared_ext}$major'
16673     if test "X$HPUX_IA64_MODE" = X32; then
16674       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16675     else
16676       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16677     fi
16678     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16679     ;;
16680    hppa*64*)
16681      shrext='.sl'
16682      hardcode_into_libs=yes
16683      dynamic_linker="$host_os dld.sl"
16684      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16685      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16686      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16687      soname_spec='${libname}${release}${shared_ext}$major'
16688      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16689      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16690      ;;
16691    *)
16692     shrext='.sl'
16693     dynamic_linker="$host_os dld.sl"
16694     shlibpath_var=SHLIB_PATH
16695     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16696     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16697     soname_spec='${libname}${release}${shared_ext}$major'
16698     ;;
16699   esac
16700   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16701   postinstall_cmds='chmod 555 $lib'
16702   ;;
16703
16704 irix5* | irix6* | nonstopux*)
16705   case $host_os in
16706     nonstopux*) version_type=nonstopux ;;
16707     *)
16708         if test "$lt_cv_prog_gnu_ld" = yes; then
16709                 version_type=linux
16710         else
16711                 version_type=irix
16712         fi ;;
16713   esac
16714   need_lib_prefix=no
16715   need_version=no
16716   soname_spec='${libname}${release}${shared_ext}$major'
16717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16718   case $host_os in
16719   irix5* | nonstopux*)
16720     libsuff= shlibsuff=
16721     ;;
16722   *)
16723     case $LD in # libtool.m4 will add one of these switches to LD
16724     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16725       libsuff= shlibsuff= libmagic=32-bit;;
16726     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16727       libsuff=32 shlibsuff=N32 libmagic=N32;;
16728     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16729       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16730     *) libsuff= shlibsuff= libmagic=never-match;;
16731     esac
16732     ;;
16733   esac
16734   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16735   shlibpath_overrides_runpath=no
16736   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16737   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16738   hardcode_into_libs=yes
16739   ;;
16740
16741 # No shared lib support for Linux oldld, aout, or coff.
16742 linux*oldld* | linux*aout* | linux*coff*)
16743   dynamic_linker=no
16744   ;;
16745
16746 # This must be Linux ELF.
16747 linux*)
16748   version_type=linux
16749   need_lib_prefix=no
16750   need_version=no
16751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16752   soname_spec='${libname}${release}${shared_ext}$major'
16753   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16754   shlibpath_var=LD_LIBRARY_PATH
16755   shlibpath_overrides_runpath=no
16756   # This implies no fast_install, which is unacceptable.
16757   # Some rework will be needed to allow for fast_install
16758   # before this can be enabled.
16759   hardcode_into_libs=yes
16760
16761   # We used to test for /lib/ld.so.1 and disable shared libraries on
16762   # powerpc, because MkLinux only supported shared libraries with the
16763   # GNU dynamic linker.  Since this was broken with cross compilers,
16764   # most powerpc-linux boxes support dynamic linking these days and
16765   # people can always --disable-shared, the test was removed, and we
16766   # assume the GNU/Linux dynamic linker is in use.
16767   dynamic_linker='GNU/Linux ld.so'
16768   ;;
16769
16770 netbsd*)
16771   version_type=sunos
16772   need_lib_prefix=no
16773   need_version=no
16774   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16775     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16776     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16777     dynamic_linker='NetBSD (a.out) ld.so'
16778   else
16779     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16780     soname_spec='${libname}${release}${shared_ext}$major'
16781     dynamic_linker='NetBSD ld.elf_so'
16782   fi
16783   shlibpath_var=LD_LIBRARY_PATH
16784   shlibpath_overrides_runpath=yes
16785   hardcode_into_libs=yes
16786   ;;
16787
16788 newsos6)
16789   version_type=linux
16790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16791   shlibpath_var=LD_LIBRARY_PATH
16792   shlibpath_overrides_runpath=yes
16793   ;;
16794
16795 nto-qnx)
16796   version_type=linux
16797   need_lib_prefix=no
16798   need_version=no
16799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16800   soname_spec='${libname}${release}${shared_ext}$major'
16801   shlibpath_var=LD_LIBRARY_PATH
16802   shlibpath_overrides_runpath=yes
16803   ;;
16804
16805 openbsd*)
16806   version_type=sunos
16807   need_lib_prefix=no
16808   need_version=no
16809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16810   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16811   shlibpath_var=LD_LIBRARY_PATH
16812   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16813     case $host_os in
16814       openbsd2.[89] | openbsd2.[89].*)
16815         shlibpath_overrides_runpath=no
16816         ;;
16817       *)
16818         shlibpath_overrides_runpath=yes
16819         ;;
16820       esac
16821   else
16822     shlibpath_overrides_runpath=yes
16823   fi
16824   ;;
16825
16826 os2*)
16827   libname_spec='$name'
16828   shrext=".dll"
16829   need_lib_prefix=no
16830   library_names_spec='$libname${shared_ext} $libname.a'
16831   dynamic_linker='OS/2 ld.exe'
16832   shlibpath_var=LIBPATH
16833   ;;
16834
16835 osf3* | osf4* | osf5*)
16836   version_type=osf
16837   need_lib_prefix=no
16838   need_version=no
16839   soname_spec='${libname}${release}${shared_ext}$major'
16840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16841   shlibpath_var=LD_LIBRARY_PATH
16842   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16843   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16844   ;;
16845
16846 sco3.2v5*)
16847   version_type=osf
16848   soname_spec='${libname}${release}${shared_ext}$major'
16849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16850   shlibpath_var=LD_LIBRARY_PATH
16851   ;;
16852
16853 solaris*)
16854   version_type=linux
16855   need_lib_prefix=no
16856   need_version=no
16857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16858   soname_spec='${libname}${release}${shared_ext}$major'
16859   shlibpath_var=LD_LIBRARY_PATH
16860   shlibpath_overrides_runpath=yes
16861   hardcode_into_libs=yes
16862   # ldd complains unless libraries are executable
16863   postinstall_cmds='chmod +x $lib'
16864   ;;
16865
16866 sunos4*)
16867   version_type=sunos
16868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16869   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16870   shlibpath_var=LD_LIBRARY_PATH
16871   shlibpath_overrides_runpath=yes
16872   if test "$with_gnu_ld" = yes; then
16873     need_lib_prefix=no
16874   fi
16875   need_version=yes
16876   ;;
16877
16878 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16879   version_type=linux
16880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16881   soname_spec='${libname}${release}${shared_ext}$major'
16882   shlibpath_var=LD_LIBRARY_PATH
16883   case $host_vendor in
16884     sni)
16885       shlibpath_overrides_runpath=no
16886       need_lib_prefix=no
16887       export_dynamic_flag_spec='${wl}-Blargedynsym'
16888       runpath_var=LD_RUN_PATH
16889       ;;
16890     siemens)
16891       need_lib_prefix=no
16892       ;;
16893     motorola)
16894       need_lib_prefix=no
16895       need_version=no
16896       shlibpath_overrides_runpath=no
16897       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16898       ;;
16899   esac
16900   ;;
16901
16902 sysv4*MP*)
16903   if test -d /usr/nec ;then
16904     version_type=linux
16905     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16906     soname_spec='$libname${shared_ext}.$major'
16907     shlibpath_var=LD_LIBRARY_PATH
16908   fi
16909   ;;
16910
16911 uts4*)
16912   version_type=linux
16913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16914   soname_spec='${libname}${release}${shared_ext}$major'
16915   shlibpath_var=LD_LIBRARY_PATH
16916   ;;
16917
16918 *)
16919   dynamic_linker=no
16920   ;;
16921 esac
16922 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16923 echo "${ECHO_T}$dynamic_linker" >&6
16924 test "$dynamic_linker" = no && can_build_shared=no
16925
16926 if test "x$enable_dlopen" != xyes; then
16927   enable_dlopen=unknown
16928   enable_dlopen_self=unknown
16929   enable_dlopen_self_static=unknown
16930 else
16931   lt_cv_dlopen=no
16932   lt_cv_dlopen_libs=
16933
16934   case $host_os in
16935   beos*)
16936     lt_cv_dlopen="load_add_on"
16937     lt_cv_dlopen_libs=
16938     lt_cv_dlopen_self=yes
16939     ;;
16940
16941   mingw* | pw32*)
16942     lt_cv_dlopen="LoadLibrary"
16943     lt_cv_dlopen_libs=
16944    ;;
16945
16946   cygwin*)
16947     lt_cv_dlopen="dlopen"
16948     lt_cv_dlopen_libs=
16949    ;;
16950
16951   darwin*)
16952   # if libdl is installed we need to link against it
16953     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16954 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16955 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16956   echo $ECHO_N "(cached) $ECHO_C" >&6
16957 else
16958   ac_check_lib_save_LIBS=$LIBS
16959 LIBS="-ldl  $LIBS"
16960 cat >conftest.$ac_ext <<_ACEOF
16961 #line $LINENO "configure"
16962 /* confdefs.h.  */
16963 _ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h.  */
16967
16968 /* Override any gcc2 internal prototype to avoid an error.  */
16969 #ifdef __cplusplus
16970 extern "C"
16971 #endif
16972 /* We use char because int might match the return type of a gcc2
16973    builtin and then its argument prototype would still apply.  */
16974 char dlopen ();
16975 int
16976 main ()
16977 {
16978 dlopen ();
16979   ;
16980   return 0;
16981 }
16982 _ACEOF
16983 rm -f conftest.$ac_objext conftest$ac_exeext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16985   (eval $ac_link) 2>&5
16986   ac_status=$?
16987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988   (exit $ac_status); } &&
16989          { ac_try='test -s conftest$ac_exeext'
16990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991   (eval $ac_try) 2>&5
16992   ac_status=$?
16993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994   (exit $ac_status); }; }; then
16995   ac_cv_lib_dl_dlopen=yes
16996 else
16997   echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
16999
17000 ac_cv_lib_dl_dlopen=no
17001 fi
17002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17003 LIBS=$ac_check_lib_save_LIBS
17004 fi
17005 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17006 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17007 if test $ac_cv_lib_dl_dlopen = yes; then
17008   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17009 else
17010
17011     lt_cv_dlopen="dyld"
17012     lt_cv_dlopen_libs=
17013     lt_cv_dlopen_self=yes
17014
17015 fi
17016
17017    ;;
17018
17019   *)
17020     echo "$as_me:$LINENO: checking for shl_load" >&5
17021 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17022 if test "${ac_cv_func_shl_load+set}" = set; then
17023   echo $ECHO_N "(cached) $ECHO_C" >&6
17024 else
17025   cat >conftest.$ac_ext <<_ACEOF
17026 #line $LINENO "configure"
17027 /* confdefs.h.  */
17028 _ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h.  */
17032 /* System header to define __stub macros and hopefully few prototypes,
17033     which can conflict with char shl_load (); below.
17034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17035     <limits.h> exists even on freestanding compilers.  */
17036 #ifdef __STDC__
17037 # include <limits.h>
17038 #else
17039 # include <assert.h>
17040 #endif
17041 /* Override any gcc2 internal prototype to avoid an error.  */
17042 #ifdef __cplusplus
17043 extern "C"
17044 {
17045 #endif
17046 /* We use char because int might match the return type of a gcc2
17047    builtin and then its argument prototype would still apply.  */
17048 char shl_load ();
17049 /* The GNU C library defines this for functions which it implements
17050     to always fail with ENOSYS.  Some functions are actually named
17051     something starting with __ and the normal name is an alias.  */
17052 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17053 choke me
17054 #else
17055 char (*f) () = shl_load;
17056 #endif
17057 #ifdef __cplusplus
17058 }
17059 #endif
17060
17061 int
17062 main ()
17063 {
17064 return f != shl_load;
17065   ;
17066   return 0;
17067 }
17068 _ACEOF
17069 rm -f conftest.$ac_objext conftest$ac_exeext
17070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17071   (eval $ac_link) 2>&5
17072   ac_status=$?
17073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074   (exit $ac_status); } &&
17075          { ac_try='test -s conftest$ac_exeext'
17076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077   (eval $ac_try) 2>&5
17078   ac_status=$?
17079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080   (exit $ac_status); }; }; then
17081   ac_cv_func_shl_load=yes
17082 else
17083   echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17085
17086 ac_cv_func_shl_load=no
17087 fi
17088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17089 fi
17090 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17091 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17092 if test $ac_cv_func_shl_load = yes; then
17093   lt_cv_dlopen="shl_load"
17094 else
17095   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17096 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17097 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17098   echo $ECHO_N "(cached) $ECHO_C" >&6
17099 else
17100   ac_check_lib_save_LIBS=$LIBS
17101 LIBS="-ldld  $LIBS"
17102 cat >conftest.$ac_ext <<_ACEOF
17103 #line $LINENO "configure"
17104 /* confdefs.h.  */
17105 _ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h.  */
17109
17110 /* Override any gcc2 internal prototype to avoid an error.  */
17111 #ifdef __cplusplus
17112 extern "C"
17113 #endif
17114 /* We use char because int might match the return type of a gcc2
17115    builtin and then its argument prototype would still apply.  */
17116 char shl_load ();
17117 int
17118 main ()
17119 {
17120 shl_load ();
17121   ;
17122   return 0;
17123 }
17124 _ACEOF
17125 rm -f conftest.$ac_objext conftest$ac_exeext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17127   (eval $ac_link) 2>&5
17128   ac_status=$?
17129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130   (exit $ac_status); } &&
17131          { ac_try='test -s conftest$ac_exeext'
17132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133   (eval $ac_try) 2>&5
17134   ac_status=$?
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); }; }; then
17137   ac_cv_lib_dld_shl_load=yes
17138 else
17139   echo "$as_me: failed program was:" >&5
17140 sed 's/^/| /' conftest.$ac_ext >&5
17141
17142 ac_cv_lib_dld_shl_load=no
17143 fi
17144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17145 LIBS=$ac_check_lib_save_LIBS
17146 fi
17147 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17148 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17149 if test $ac_cv_lib_dld_shl_load = yes; then
17150   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17151 else
17152   echo "$as_me:$LINENO: checking for dlopen" >&5
17153 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17154 if test "${ac_cv_func_dlopen+set}" = set; then
17155   echo $ECHO_N "(cached) $ECHO_C" >&6
17156 else
17157   cat >conftest.$ac_ext <<_ACEOF
17158 #line $LINENO "configure"
17159 /* confdefs.h.  */
17160 _ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h.  */
17164 /* System header to define __stub macros and hopefully few prototypes,
17165     which can conflict with char dlopen (); below.
17166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17167     <limits.h> exists even on freestanding compilers.  */
17168 #ifdef __STDC__
17169 # include <limits.h>
17170 #else
17171 # include <assert.h>
17172 #endif
17173 /* Override any gcc2 internal prototype to avoid an error.  */
17174 #ifdef __cplusplus
17175 extern "C"
17176 {
17177 #endif
17178 /* We use char because int might match the return type of a gcc2
17179    builtin and then its argument prototype would still apply.  */
17180 char dlopen ();
17181 /* The GNU C library defines this for functions which it implements
17182     to always fail with ENOSYS.  Some functions are actually named
17183     something starting with __ and the normal name is an alias.  */
17184 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17185 choke me
17186 #else
17187 char (*f) () = dlopen;
17188 #endif
17189 #ifdef __cplusplus
17190 }
17191 #endif
17192
17193 int
17194 main ()
17195 {
17196 return f != dlopen;
17197   ;
17198   return 0;
17199 }
17200 _ACEOF
17201 rm -f conftest.$ac_objext conftest$ac_exeext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17203   (eval $ac_link) 2>&5
17204   ac_status=$?
17205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206   (exit $ac_status); } &&
17207          { ac_try='test -s conftest$ac_exeext'
17208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209   (eval $ac_try) 2>&5
17210   ac_status=$?
17211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212   (exit $ac_status); }; }; then
17213   ac_cv_func_dlopen=yes
17214 else
17215   echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17217
17218 ac_cv_func_dlopen=no
17219 fi
17220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17221 fi
17222 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17223 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17224 if test $ac_cv_func_dlopen = yes; then
17225   lt_cv_dlopen="dlopen"
17226 else
17227   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17228 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17229 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17230   echo $ECHO_N "(cached) $ECHO_C" >&6
17231 else
17232   ac_check_lib_save_LIBS=$LIBS
17233 LIBS="-ldl  $LIBS"
17234 cat >conftest.$ac_ext <<_ACEOF
17235 #line $LINENO "configure"
17236 /* confdefs.h.  */
17237 _ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h.  */
17241
17242 /* Override any gcc2 internal prototype to avoid an error.  */
17243 #ifdef __cplusplus
17244 extern "C"
17245 #endif
17246 /* We use char because int might match the return type of a gcc2
17247    builtin and then its argument prototype would still apply.  */
17248 char dlopen ();
17249 int
17250 main ()
17251 {
17252 dlopen ();
17253   ;
17254   return 0;
17255 }
17256 _ACEOF
17257 rm -f conftest.$ac_objext conftest$ac_exeext
17258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17259   (eval $ac_link) 2>&5
17260   ac_status=$?
17261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262   (exit $ac_status); } &&
17263          { ac_try='test -s conftest$ac_exeext'
17264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265   (eval $ac_try) 2>&5
17266   ac_status=$?
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   (exit $ac_status); }; }; then
17269   ac_cv_lib_dl_dlopen=yes
17270 else
17271   echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17273
17274 ac_cv_lib_dl_dlopen=no
17275 fi
17276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17277 LIBS=$ac_check_lib_save_LIBS
17278 fi
17279 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17280 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17281 if test $ac_cv_lib_dl_dlopen = yes; then
17282   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17283 else
17284   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17285 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17286 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17287   echo $ECHO_N "(cached) $ECHO_C" >&6
17288 else
17289   ac_check_lib_save_LIBS=$LIBS
17290 LIBS="-lsvld  $LIBS"
17291 cat >conftest.$ac_ext <<_ACEOF
17292 #line $LINENO "configure"
17293 /* confdefs.h.  */
17294 _ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h.  */
17298
17299 /* Override any gcc2 internal prototype to avoid an error.  */
17300 #ifdef __cplusplus
17301 extern "C"
17302 #endif
17303 /* We use char because int might match the return type of a gcc2
17304    builtin and then its argument prototype would still apply.  */
17305 char dlopen ();
17306 int
17307 main ()
17308 {
17309 dlopen ();
17310   ;
17311   return 0;
17312 }
17313 _ACEOF
17314 rm -f conftest.$ac_objext conftest$ac_exeext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17316   (eval $ac_link) 2>&5
17317   ac_status=$?
17318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319   (exit $ac_status); } &&
17320          { ac_try='test -s conftest$ac_exeext'
17321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322   (eval $ac_try) 2>&5
17323   ac_status=$?
17324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325   (exit $ac_status); }; }; then
17326   ac_cv_lib_svld_dlopen=yes
17327 else
17328   echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17330
17331 ac_cv_lib_svld_dlopen=no
17332 fi
17333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17334 LIBS=$ac_check_lib_save_LIBS
17335 fi
17336 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17337 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17338 if test $ac_cv_lib_svld_dlopen = yes; then
17339   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17340 else
17341   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17342 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17343 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17344   echo $ECHO_N "(cached) $ECHO_C" >&6
17345 else
17346   ac_check_lib_save_LIBS=$LIBS
17347 LIBS="-ldld  $LIBS"
17348 cat >conftest.$ac_ext <<_ACEOF
17349 #line $LINENO "configure"
17350 /* confdefs.h.  */
17351 _ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h.  */
17355
17356 /* Override any gcc2 internal prototype to avoid an error.  */
17357 #ifdef __cplusplus
17358 extern "C"
17359 #endif
17360 /* We use char because int might match the return type of a gcc2
17361    builtin and then its argument prototype would still apply.  */
17362 char dld_link ();
17363 int
17364 main ()
17365 {
17366 dld_link ();
17367   ;
17368   return 0;
17369 }
17370 _ACEOF
17371 rm -f conftest.$ac_objext conftest$ac_exeext
17372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17373   (eval $ac_link) 2>&5
17374   ac_status=$?
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); } &&
17377          { ac_try='test -s conftest$ac_exeext'
17378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379   (eval $ac_try) 2>&5
17380   ac_status=$?
17381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382   (exit $ac_status); }; }; then
17383   ac_cv_lib_dld_dld_link=yes
17384 else
17385   echo "$as_me: failed program was:" >&5
17386 sed 's/^/| /' conftest.$ac_ext >&5
17387
17388 ac_cv_lib_dld_dld_link=no
17389 fi
17390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17391 LIBS=$ac_check_lib_save_LIBS
17392 fi
17393 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17394 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17395 if test $ac_cv_lib_dld_dld_link = yes; then
17396   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17397 fi
17398
17399
17400 fi
17401
17402
17403 fi
17404
17405
17406 fi
17407
17408
17409 fi
17410
17411
17412 fi
17413
17414     ;;
17415   esac
17416
17417   if test "x$lt_cv_dlopen" != xno; then
17418     enable_dlopen=yes
17419   else
17420     enable_dlopen=no
17421   fi
17422
17423   case $lt_cv_dlopen in
17424   dlopen)
17425     save_CPPFLAGS="$CPPFLAGS"
17426     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17427
17428     save_LDFLAGS="$LDFLAGS"
17429     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17430
17431     save_LIBS="$LIBS"
17432     LIBS="$lt_cv_dlopen_libs $LIBS"
17433
17434     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17435 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17436 if test "${lt_cv_dlopen_self+set}" = set; then
17437   echo $ECHO_N "(cached) $ECHO_C" >&6
17438 else
17439           if test "$cross_compiling" = yes; then :
17440   lt_cv_dlopen_self=cross
17441 else
17442   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17443   lt_status=$lt_dlunknown
17444   cat > conftest.$ac_ext <<EOF
17445 #line 17445 "configure"
17446 #include "confdefs.h"
17447
17448 #if HAVE_DLFCN_H
17449 #include <dlfcn.h>
17450 #endif
17451
17452 #include <stdio.h>
17453
17454 #ifdef RTLD_GLOBAL
17455 #  define LT_DLGLOBAL           RTLD_GLOBAL
17456 #else
17457 #  ifdef DL_GLOBAL
17458 #    define LT_DLGLOBAL         DL_GLOBAL
17459 #  else
17460 #    define LT_DLGLOBAL         0
17461 #  endif
17462 #endif
17463
17464 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17465    find out it does not work in some platform. */
17466 #ifndef LT_DLLAZY_OR_NOW
17467 #  ifdef RTLD_LAZY
17468 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17469 #  else
17470 #    ifdef DL_LAZY
17471 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17472 #    else
17473 #      ifdef RTLD_NOW
17474 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17475 #      else
17476 #        ifdef DL_NOW
17477 #          define LT_DLLAZY_OR_NOW      DL_NOW
17478 #        else
17479 #          define LT_DLLAZY_OR_NOW      0
17480 #        endif
17481 #      endif
17482 #    endif
17483 #  endif
17484 #endif
17485
17486 #ifdef __cplusplus
17487 extern "C" void exit (int);
17488 #endif
17489
17490 void fnord() { int i=42;}
17491 int main ()
17492 {
17493   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17494   int status = $lt_dlunknown;
17495
17496   if (self)
17497     {
17498       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17499       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17500       /* dlclose (self); */
17501     }
17502
17503     exit (status);
17504 }
17505 EOF
17506   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17507   (eval $ac_link) 2>&5
17508   ac_status=$?
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17511     (./conftest; exit; ) 2>/dev/null
17512     lt_status=$?
17513     case x$lt_status in
17514       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17515       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17516       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17517     esac
17518   else :
17519     # compilation failed
17520     lt_cv_dlopen_self=no
17521   fi
17522 fi
17523 rm -fr conftest*
17524
17525
17526 fi
17527 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17528 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17529
17530     if test "x$lt_cv_dlopen_self" = xyes; then
17531       LDFLAGS="$LDFLAGS $link_static_flag"
17532       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17533 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17534 if test "${lt_cv_dlopen_self_static+set}" = set; then
17535   echo $ECHO_N "(cached) $ECHO_C" >&6
17536 else
17537           if test "$cross_compiling" = yes; then :
17538   lt_cv_dlopen_self_static=cross
17539 else
17540   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17541   lt_status=$lt_dlunknown
17542   cat > conftest.$ac_ext <<EOF
17543 #line 17543 "configure"
17544 #include "confdefs.h"
17545
17546 #if HAVE_DLFCN_H
17547 #include <dlfcn.h>
17548 #endif
17549
17550 #include <stdio.h>
17551
17552 #ifdef RTLD_GLOBAL
17553 #  define LT_DLGLOBAL           RTLD_GLOBAL
17554 #else
17555 #  ifdef DL_GLOBAL
17556 #    define LT_DLGLOBAL         DL_GLOBAL
17557 #  else
17558 #    define LT_DLGLOBAL         0
17559 #  endif
17560 #endif
17561
17562 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17563    find out it does not work in some platform. */
17564 #ifndef LT_DLLAZY_OR_NOW
17565 #  ifdef RTLD_LAZY
17566 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17567 #  else
17568 #    ifdef DL_LAZY
17569 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17570 #    else
17571 #      ifdef RTLD_NOW
17572 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17573 #      else
17574 #        ifdef DL_NOW
17575 #          define LT_DLLAZY_OR_NOW      DL_NOW
17576 #        else
17577 #          define LT_DLLAZY_OR_NOW      0
17578 #        endif
17579 #      endif
17580 #    endif
17581 #  endif
17582 #endif
17583
17584 #ifdef __cplusplus
17585 extern "C" void exit (int);
17586 #endif
17587
17588 void fnord() { int i=42;}
17589 int main ()
17590 {
17591   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17592   int status = $lt_dlunknown;
17593
17594   if (self)
17595     {
17596       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17597       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17598       /* dlclose (self); */
17599     }
17600
17601     exit (status);
17602 }
17603 EOF
17604   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17605   (eval $ac_link) 2>&5
17606   ac_status=$?
17607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17609     (./conftest; exit; ) 2>/dev/null
17610     lt_status=$?
17611     case x$lt_status in
17612       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17613       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17614       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17615     esac
17616   else :
17617     # compilation failed
17618     lt_cv_dlopen_self_static=no
17619   fi
17620 fi
17621 rm -fr conftest*
17622
17623
17624 fi
17625 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17626 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17627     fi
17628
17629     CPPFLAGS="$save_CPPFLAGS"
17630     LDFLAGS="$save_LDFLAGS"
17631     LIBS="$save_LIBS"
17632     ;;
17633   esac
17634
17635   case $lt_cv_dlopen_self in
17636   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17637   *) enable_dlopen_self=unknown ;;
17638   esac
17639
17640   case $lt_cv_dlopen_self_static in
17641   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17642   *) enable_dlopen_self_static=unknown ;;
17643   esac
17644 fi
17645
17646
17647 # The else clause should only fire when bootstrapping the
17648 # libtool distribution, otherwise you forgot to ship ltmain.sh
17649 # with your package, and you will get complaints that there are
17650 # no rules to generate ltmain.sh.
17651 if test -f "$ltmain"; then
17652   # See if we are running on zsh, and set the options which allow our commands through
17653   # without removal of \ escapes.
17654   if test -n "${ZSH_VERSION+set}" ; then
17655     setopt NO_GLOB_SUBST
17656   fi
17657   # Now quote all the things that may contain metacharacters while being
17658   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17659   # variables and quote the copies for generation of the libtool script.
17660   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17661     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17662     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17663     deplibs_check_method reload_flag reload_cmds need_locks \
17664     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17665     lt_cv_sys_global_symbol_to_c_name_address \
17666     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17667     old_postinstall_cmds old_postuninstall_cmds \
17668     compiler_GCJ \
17669     CC_GCJ \
17670     LD_GCJ \
17671     lt_prog_compiler_wl_GCJ \
17672     lt_prog_compiler_pic_GCJ \
17673     lt_prog_compiler_static_GCJ \
17674     lt_prog_compiler_no_builtin_flag_GCJ \
17675     export_dynamic_flag_spec_GCJ \
17676     thread_safe_flag_spec_GCJ \
17677     whole_archive_flag_spec_GCJ \
17678     enable_shared_with_static_runtimes_GCJ \
17679     old_archive_cmds_GCJ \
17680     old_archive_from_new_cmds_GCJ \
17681     predep_objects_GCJ \
17682     postdep_objects_GCJ \
17683     predeps_GCJ \
17684     postdeps_GCJ \
17685     compiler_lib_search_path_GCJ \
17686     archive_cmds_GCJ \
17687     archive_expsym_cmds_GCJ \
17688     postinstall_cmds_GCJ \
17689     postuninstall_cmds_GCJ \
17690     old_archive_from_expsyms_cmds_GCJ \
17691     allow_undefined_flag_GCJ \
17692     no_undefined_flag_GCJ \
17693     export_symbols_cmds_GCJ \
17694     hardcode_libdir_flag_spec_GCJ \
17695     hardcode_libdir_flag_spec_ld_GCJ \
17696     hardcode_libdir_separator_GCJ \
17697     hardcode_automatic_GCJ \
17698     module_cmds_GCJ \
17699     module_expsym_cmds_GCJ \
17700     lt_cv_prog_compiler_c_o_GCJ \
17701     exclude_expsyms_GCJ \
17702     include_expsyms_GCJ; do
17703
17704     case $var in
17705     old_archive_cmds_GCJ | \
17706     old_archive_from_new_cmds_GCJ | \
17707     archive_cmds_GCJ | \
17708     archive_expsym_cmds_GCJ | \
17709     module_cmds_GCJ | \
17710     module_expsym_cmds_GCJ | \
17711     old_archive_from_expsyms_cmds_GCJ | \
17712     export_symbols_cmds_GCJ | \
17713     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17714     postinstall_cmds | postuninstall_cmds | \
17715     old_postinstall_cmds | old_postuninstall_cmds | \
17716     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17717       # Double-quote double-evaled strings.
17718       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17719       ;;
17720     *)
17721       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17722       ;;
17723     esac
17724   done
17725
17726   case $lt_echo in
17727   *'\$0 --fallback-echo"')
17728     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17729     ;;
17730   esac
17731
17732 cfgfile="$ofile"
17733
17734   cat <<__EOF__ >> "$cfgfile"
17735 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17736
17737 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17738
17739 # Shell to use when invoking shell scripts.
17740 SHELL=$lt_SHELL
17741
17742 # Whether or not to build shared libraries.
17743 build_libtool_libs=$enable_shared
17744
17745 # Whether or not to build static libraries.
17746 build_old_libs=$enable_static
17747
17748 # Whether or not to add -lc for building shared libraries.
17749 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17750
17751 # Whether or not to disallow shared libs when runtime libs are static
17752 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17753
17754 # Whether or not to optimize for fast installation.
17755 fast_install=$enable_fast_install
17756
17757 # The host system.
17758 host_alias=$host_alias
17759 host=$host
17760
17761 # An echo program that does not interpret backslashes.
17762 echo=$lt_echo
17763
17764 # The archiver.
17765 AR=$lt_AR
17766 AR_FLAGS=$lt_AR_FLAGS
17767
17768 # A C compiler.
17769 LTCC=$lt_LTCC
17770
17771 # A language-specific compiler.
17772 CC=$lt_compiler_GCJ
17773
17774 # Is the compiler the GNU C compiler?
17775 with_gcc=$GCC_GCJ
17776
17777 # An ERE matcher.
17778 EGREP=$lt_EGREP
17779
17780 # The linker used to build libraries.
17781 LD=$lt_LD_GCJ
17782
17783 # Whether we need hard or soft links.
17784 LN_S=$lt_LN_S
17785
17786 # A BSD-compatible nm program.
17787 NM=$lt_NM
17788
17789 # A symbol stripping program
17790 STRIP=$STRIP
17791
17792 # Used to examine libraries when file_magic_cmd begins "file"
17793 MAGIC_CMD=$MAGIC_CMD
17794
17795 # Used on cygwin: DLL creation program.
17796 DLLTOOL="$DLLTOOL"
17797
17798 # Used on cygwin: object dumper.
17799 OBJDUMP="$OBJDUMP"
17800
17801 # Used on cygwin: assembler.
17802 AS="$AS"
17803
17804 # The name of the directory that contains temporary libtool files.
17805 objdir=$objdir
17806
17807 # How to create reloadable object files.
17808 reload_flag=$lt_reload_flag
17809 reload_cmds=$lt_reload_cmds
17810
17811 # How to pass a linker flag through the compiler.
17812 wl=$lt_lt_prog_compiler_wl_GCJ
17813
17814 # Object file suffix (normally "o").
17815 objext="$ac_objext"
17816
17817 # Old archive suffix (normally "a").
17818 libext="$libext"
17819
17820 # Shared library suffix (normally ".so").
17821 shrext='$shrext'
17822
17823 # Executable file suffix (normally "").
17824 exeext="$exeext"
17825
17826 # Additional compiler flags for building library objects.
17827 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17828 pic_mode=$pic_mode
17829
17830 # What is the maximum length of a command?
17831 max_cmd_len=$lt_cv_sys_max_cmd_len
17832
17833 # Does compiler simultaneously support -c and -o options?
17834 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17835
17836 # Must we lock files when doing compilation ?
17837 need_locks=$lt_need_locks
17838
17839 # Do we need the lib prefix for modules?
17840 need_lib_prefix=$need_lib_prefix
17841
17842 # Do we need a version for libraries?
17843 need_version=$need_version
17844
17845 # Whether dlopen is supported.
17846 dlopen_support=$enable_dlopen
17847
17848 # Whether dlopen of programs is supported.
17849 dlopen_self=$enable_dlopen_self
17850
17851 # Whether dlopen of statically linked programs is supported.
17852 dlopen_self_static=$enable_dlopen_self_static
17853
17854 # Compiler flag to prevent dynamic linking.
17855 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17856
17857 # Compiler flag to turn off builtin functions.
17858 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17859
17860 # Compiler flag to allow reflexive dlopens.
17861 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17862
17863 # Compiler flag to generate shared objects directly from archives.
17864 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17865
17866 # Compiler flag to generate thread-safe objects.
17867 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17868
17869 # Library versioning type.
17870 version_type=$version_type
17871
17872 # Format of library name prefix.
17873 libname_spec=$lt_libname_spec
17874
17875 # List of archive names.  First name is the real one, the rest are links.
17876 # The last name is the one that the linker finds with -lNAME.
17877 library_names_spec=$lt_library_names_spec
17878
17879 # The coded name of the library, if different from the real name.
17880 soname_spec=$lt_soname_spec
17881
17882 # Commands used to build and install an old-style archive.
17883 RANLIB=$lt_RANLIB
17884 old_archive_cmds=$lt_old_archive_cmds_GCJ
17885 old_postinstall_cmds=$lt_old_postinstall_cmds
17886 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17887
17888 # Create an old-style archive from a shared archive.
17889 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17890
17891 # Create a temporary old-style archive to link instead of a shared archive.
17892 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17893
17894 # Commands used to build and install a shared archive.
17895 archive_cmds=$lt_archive_cmds_GCJ
17896 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17897 postinstall_cmds=$lt_postinstall_cmds
17898 postuninstall_cmds=$lt_postuninstall_cmds
17899
17900 # Commands used to build a loadable module (assumed same as above if empty)
17901 module_cmds=$lt_module_cmds_GCJ
17902 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17903
17904 # Commands to strip libraries.
17905 old_striplib=$lt_old_striplib
17906 striplib=$lt_striplib
17907
17908 # Dependencies to place before the objects being linked to create a
17909 # shared library.
17910 predep_objects=$lt_predep_objects_GCJ
17911
17912 # Dependencies to place after the objects being linked to create a
17913 # shared library.
17914 postdep_objects=$lt_postdep_objects_GCJ
17915
17916 # Dependencies to place before the objects being linked to create a
17917 # shared library.
17918 predeps=$lt_predeps_GCJ
17919
17920 # Dependencies to place after the objects being linked to create a
17921 # shared library.
17922 postdeps=$lt_postdeps_GCJ
17923
17924 # The library search path used internally by the compiler when linking
17925 # a shared library.
17926 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17927
17928 # Method to check whether dependent libraries are shared objects.
17929 deplibs_check_method=$lt_deplibs_check_method
17930
17931 # Command to use when deplibs_check_method == file_magic.
17932 file_magic_cmd=$lt_file_magic_cmd
17933
17934 # Flag that allows shared libraries with undefined symbols to be built.
17935 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17936
17937 # Flag that forces no undefined symbols.
17938 no_undefined_flag=$lt_no_undefined_flag_GCJ
17939
17940 # Commands used to finish a libtool library installation in a directory.
17941 finish_cmds=$lt_finish_cmds
17942
17943 # Same as above, but a single script fragment to be evaled but not shown.
17944 finish_eval=$lt_finish_eval
17945
17946 # Take the output of nm and produce a listing of raw symbols and C names.
17947 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17948
17949 # Transform the output of nm in a proper C declaration
17950 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17951
17952 # Transform the output of nm in a C name address pair
17953 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17954
17955 # This is the shared library runtime path variable.
17956 runpath_var=$runpath_var
17957
17958 # This is the shared library path variable.
17959 shlibpath_var=$shlibpath_var
17960
17961 # Is shlibpath searched before the hard-coded library search path?
17962 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17963
17964 # How to hardcode a shared library path into an executable.
17965 hardcode_action=$hardcode_action_GCJ
17966
17967 # Whether we should hardcode library paths into libraries.
17968 hardcode_into_libs=$hardcode_into_libs
17969
17970 # Flag to hardcode \$libdir into a binary during linking.
17971 # This must work even if \$libdir does not exist.
17972 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17973
17974 # If ld is used when linking, flag to hardcode \$libdir into
17975 # a binary during linking. This must work even if \$libdir does
17976 # not exist.
17977 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17978
17979 # Whether we need a single -rpath flag with a separated argument.
17980 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17981
17982 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17983 # resulting binary.
17984 hardcode_direct=$hardcode_direct_GCJ
17985
17986 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17987 # resulting binary.
17988 hardcode_minus_L=$hardcode_minus_L_GCJ
17989
17990 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17991 # the resulting binary.
17992 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17993
17994 # Set to yes if building a shared library automatically hardcodes DIR into the library
17995 # and all subsequent libraries and executables linked against it.
17996 hardcode_automatic=$hardcode_automatic_GCJ
17997
17998 # Variables whose values should be saved in libtool wrapper scripts and
17999 # restored at relink time.
18000 variables_saved_for_relink="$variables_saved_for_relink"
18001
18002 # Whether libtool must link a program against all its dependency libraries.
18003 link_all_deplibs=$link_all_deplibs_GCJ
18004
18005 # Compile-time system search path for libraries
18006 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18007
18008 # Run-time system search path for libraries
18009 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18010
18011 # Fix the shell variable \$srcfile for the compiler.
18012 fix_srcfile_path="$fix_srcfile_path_GCJ"
18013
18014 # Set to yes if exported symbols are required.
18015 always_export_symbols=$always_export_symbols_GCJ
18016
18017 # The commands to list exported symbols.
18018 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18019
18020 # The commands to extract the exported symbol list from a shared archive.
18021 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18022
18023 # Symbols that should not be listed in the preloaded symbols.
18024 exclude_expsyms=$lt_exclude_expsyms_GCJ
18025
18026 # Symbols that must always be exported.
18027 include_expsyms=$lt_include_expsyms_GCJ
18028
18029 # ### END LIBTOOL TAG CONFIG: $tagname
18030
18031 __EOF__
18032
18033
18034 else
18035   # If there is no Makefile yet, we rely on a make rule to execute
18036   # `config.status --recheck' to rerun these tests and create the
18037   # libtool script then.
18038   test -f Makefile && make "$ltmain"
18039 fi
18040
18041
18042 ac_ext=c
18043 ac_cpp='$CPP $CPPFLAGS'
18044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18047
18048 CC="$lt_save_CC"
18049
18050         else
18051           tagname=""
18052         fi
18053         ;;
18054
18055       RC)
18056
18057
18058
18059 # Source file extension for RC test sources.
18060 ac_ext=rc
18061
18062 # Object file extension for compiled RC test sources.
18063 objext=o
18064 objext_RC=$objext
18065
18066 # Code to be used in simple compile tests
18067 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18068
18069 # Code to be used in simple link tests
18070 lt_simple_link_test_code="$lt_simple_compile_test_code"
18071
18072 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18073
18074 # If no C compiler was specified, use CC.
18075 LTCC=${LTCC-"$CC"}
18076
18077 # Allow CC to be a program name with arguments.
18078 compiler=$CC
18079
18080
18081 # Allow CC to be a program name with arguments.
18082 lt_save_CC="$CC"
18083 CC=${RC-"windres"}
18084 compiler=$CC
18085 compiler_RC=$CC
18086 lt_cv_prog_compiler_c_o_RC=yes
18087
18088 # The else clause should only fire when bootstrapping the
18089 # libtool distribution, otherwise you forgot to ship ltmain.sh
18090 # with your package, and you will get complaints that there are
18091 # no rules to generate ltmain.sh.
18092 if test -f "$ltmain"; then
18093   # See if we are running on zsh, and set the options which allow our commands through
18094   # without removal of \ escapes.
18095   if test -n "${ZSH_VERSION+set}" ; then
18096     setopt NO_GLOB_SUBST
18097   fi
18098   # Now quote all the things that may contain metacharacters while being
18099   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18100   # variables and quote the copies for generation of the libtool script.
18101   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18102     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18103     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18104     deplibs_check_method reload_flag reload_cmds need_locks \
18105     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18106     lt_cv_sys_global_symbol_to_c_name_address \
18107     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18108     old_postinstall_cmds old_postuninstall_cmds \
18109     compiler_RC \
18110     CC_RC \
18111     LD_RC \
18112     lt_prog_compiler_wl_RC \
18113     lt_prog_compiler_pic_RC \
18114     lt_prog_compiler_static_RC \
18115     lt_prog_compiler_no_builtin_flag_RC \
18116     export_dynamic_flag_spec_RC \
18117     thread_safe_flag_spec_RC \
18118     whole_archive_flag_spec_RC \
18119     enable_shared_with_static_runtimes_RC \
18120     old_archive_cmds_RC \
18121     old_archive_from_new_cmds_RC \
18122     predep_objects_RC \
18123     postdep_objects_RC \
18124     predeps_RC \
18125     postdeps_RC \
18126     compiler_lib_search_path_RC \
18127     archive_cmds_RC \
18128     archive_expsym_cmds_RC \
18129     postinstall_cmds_RC \
18130     postuninstall_cmds_RC \
18131     old_archive_from_expsyms_cmds_RC \
18132     allow_undefined_flag_RC \
18133     no_undefined_flag_RC \
18134     export_symbols_cmds_RC \
18135     hardcode_libdir_flag_spec_RC \
18136     hardcode_libdir_flag_spec_ld_RC \
18137     hardcode_libdir_separator_RC \
18138     hardcode_automatic_RC \
18139     module_cmds_RC \
18140     module_expsym_cmds_RC \
18141     lt_cv_prog_compiler_c_o_RC \
18142     exclude_expsyms_RC \
18143     include_expsyms_RC; do
18144
18145     case $var in
18146     old_archive_cmds_RC | \
18147     old_archive_from_new_cmds_RC | \
18148     archive_cmds_RC | \
18149     archive_expsym_cmds_RC | \
18150     module_cmds_RC | \
18151     module_expsym_cmds_RC | \
18152     old_archive_from_expsyms_cmds_RC | \
18153     export_symbols_cmds_RC | \
18154     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18155     postinstall_cmds | postuninstall_cmds | \
18156     old_postinstall_cmds | old_postuninstall_cmds | \
18157     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18158       # Double-quote double-evaled strings.
18159       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18160       ;;
18161     *)
18162       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18163       ;;
18164     esac
18165   done
18166
18167   case $lt_echo in
18168   *'\$0 --fallback-echo"')
18169     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18170     ;;
18171   esac
18172
18173 cfgfile="$ofile"
18174
18175   cat <<__EOF__ >> "$cfgfile"
18176 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18177
18178 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18179
18180 # Shell to use when invoking shell scripts.
18181 SHELL=$lt_SHELL
18182
18183 # Whether or not to build shared libraries.
18184 build_libtool_libs=$enable_shared
18185
18186 # Whether or not to build static libraries.
18187 build_old_libs=$enable_static
18188
18189 # Whether or not to add -lc for building shared libraries.
18190 build_libtool_need_lc=$archive_cmds_need_lc_RC
18191
18192 # Whether or not to disallow shared libs when runtime libs are static
18193 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18194
18195 # Whether or not to optimize for fast installation.
18196 fast_install=$enable_fast_install
18197
18198 # The host system.
18199 host_alias=$host_alias
18200 host=$host
18201
18202 # An echo program that does not interpret backslashes.
18203 echo=$lt_echo
18204
18205 # The archiver.
18206 AR=$lt_AR
18207 AR_FLAGS=$lt_AR_FLAGS
18208
18209 # A C compiler.
18210 LTCC=$lt_LTCC
18211
18212 # A language-specific compiler.
18213 CC=$lt_compiler_RC
18214
18215 # Is the compiler the GNU C compiler?
18216 with_gcc=$GCC_RC
18217
18218 # An ERE matcher.
18219 EGREP=$lt_EGREP
18220
18221 # The linker used to build libraries.
18222 LD=$lt_LD_RC
18223
18224 # Whether we need hard or soft links.
18225 LN_S=$lt_LN_S
18226
18227 # A BSD-compatible nm program.
18228 NM=$lt_NM
18229
18230 # A symbol stripping program
18231 STRIP=$STRIP
18232
18233 # Used to examine libraries when file_magic_cmd begins "file"
18234 MAGIC_CMD=$MAGIC_CMD
18235
18236 # Used on cygwin: DLL creation program.
18237 DLLTOOL="$DLLTOOL"
18238
18239 # Used on cygwin: object dumper.
18240 OBJDUMP="$OBJDUMP"
18241
18242 # Used on cygwin: assembler.
18243 AS="$AS"
18244
18245 # The name of the directory that contains temporary libtool files.
18246 objdir=$objdir
18247
18248 # How to create reloadable object files.
18249 reload_flag=$lt_reload_flag
18250 reload_cmds=$lt_reload_cmds
18251
18252 # How to pass a linker flag through the compiler.
18253 wl=$lt_lt_prog_compiler_wl_RC
18254
18255 # Object file suffix (normally "o").
18256 objext="$ac_objext"
18257
18258 # Old archive suffix (normally "a").
18259 libext="$libext"
18260
18261 # Shared library suffix (normally ".so").
18262 shrext='$shrext'
18263
18264 # Executable file suffix (normally "").
18265 exeext="$exeext"
18266
18267 # Additional compiler flags for building library objects.
18268 pic_flag=$lt_lt_prog_compiler_pic_RC
18269 pic_mode=$pic_mode
18270
18271 # What is the maximum length of a command?
18272 max_cmd_len=$lt_cv_sys_max_cmd_len
18273
18274 # Does compiler simultaneously support -c and -o options?
18275 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18276
18277 # Must we lock files when doing compilation ?
18278 need_locks=$lt_need_locks
18279
18280 # Do we need the lib prefix for modules?
18281 need_lib_prefix=$need_lib_prefix
18282
18283 # Do we need a version for libraries?
18284 need_version=$need_version
18285
18286 # Whether dlopen is supported.
18287 dlopen_support=$enable_dlopen
18288
18289 # Whether dlopen of programs is supported.
18290 dlopen_self=$enable_dlopen_self
18291
18292 # Whether dlopen of statically linked programs is supported.
18293 dlopen_self_static=$enable_dlopen_self_static
18294
18295 # Compiler flag to prevent dynamic linking.
18296 link_static_flag=$lt_lt_prog_compiler_static_RC
18297
18298 # Compiler flag to turn off builtin functions.
18299 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18300
18301 # Compiler flag to allow reflexive dlopens.
18302 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18303
18304 # Compiler flag to generate shared objects directly from archives.
18305 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18306
18307 # Compiler flag to generate thread-safe objects.
18308 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18309
18310 # Library versioning type.
18311 version_type=$version_type
18312
18313 # Format of library name prefix.
18314 libname_spec=$lt_libname_spec
18315
18316 # List of archive names.  First name is the real one, the rest are links.
18317 # The last name is the one that the linker finds with -lNAME.
18318 library_names_spec=$lt_library_names_spec
18319
18320 # The coded name of the library, if different from the real name.
18321 soname_spec=$lt_soname_spec
18322
18323 # Commands used to build and install an old-style archive.
18324 RANLIB=$lt_RANLIB
18325 old_archive_cmds=$lt_old_archive_cmds_RC
18326 old_postinstall_cmds=$lt_old_postinstall_cmds
18327 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18328
18329 # Create an old-style archive from a shared archive.
18330 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18331
18332 # Create a temporary old-style archive to link instead of a shared archive.
18333 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18334
18335 # Commands used to build and install a shared archive.
18336 archive_cmds=$lt_archive_cmds_RC
18337 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18338 postinstall_cmds=$lt_postinstall_cmds
18339 postuninstall_cmds=$lt_postuninstall_cmds
18340
18341 # Commands used to build a loadable module (assumed same as above if empty)
18342 module_cmds=$lt_module_cmds_RC
18343 module_expsym_cmds=$lt_module_expsym_cmds_RC
18344
18345 # Commands to strip libraries.
18346 old_striplib=$lt_old_striplib
18347 striplib=$lt_striplib
18348
18349 # Dependencies to place before the objects being linked to create a
18350 # shared library.
18351 predep_objects=$lt_predep_objects_RC
18352
18353 # Dependencies to place after the objects being linked to create a
18354 # shared library.
18355 postdep_objects=$lt_postdep_objects_RC
18356
18357 # Dependencies to place before the objects being linked to create a
18358 # shared library.
18359 predeps=$lt_predeps_RC
18360
18361 # Dependencies to place after the objects being linked to create a
18362 # shared library.
18363 postdeps=$lt_postdeps_RC
18364
18365 # The library search path used internally by the compiler when linking
18366 # a shared library.
18367 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18368
18369 # Method to check whether dependent libraries are shared objects.
18370 deplibs_check_method=$lt_deplibs_check_method
18371
18372 # Command to use when deplibs_check_method == file_magic.
18373 file_magic_cmd=$lt_file_magic_cmd
18374
18375 # Flag that allows shared libraries with undefined symbols to be built.
18376 allow_undefined_flag=$lt_allow_undefined_flag_RC
18377
18378 # Flag that forces no undefined symbols.
18379 no_undefined_flag=$lt_no_undefined_flag_RC
18380
18381 # Commands used to finish a libtool library installation in a directory.
18382 finish_cmds=$lt_finish_cmds
18383
18384 # Same as above, but a single script fragment to be evaled but not shown.
18385 finish_eval=$lt_finish_eval
18386
18387 # Take the output of nm and produce a listing of raw symbols and C names.
18388 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18389
18390 # Transform the output of nm in a proper C declaration
18391 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18392
18393 # Transform the output of nm in a C name address pair
18394 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18395
18396 # This is the shared library runtime path variable.
18397 runpath_var=$runpath_var
18398
18399 # This is the shared library path variable.
18400 shlibpath_var=$shlibpath_var
18401
18402 # Is shlibpath searched before the hard-coded library search path?
18403 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18404
18405 # How to hardcode a shared library path into an executable.
18406 hardcode_action=$hardcode_action_RC
18407
18408 # Whether we should hardcode library paths into libraries.
18409 hardcode_into_libs=$hardcode_into_libs
18410
18411 # Flag to hardcode \$libdir into a binary during linking.
18412 # This must work even if \$libdir does not exist.
18413 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18414
18415 # If ld is used when linking, flag to hardcode \$libdir into
18416 # a binary during linking. This must work even if \$libdir does
18417 # not exist.
18418 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18419
18420 # Whether we need a single -rpath flag with a separated argument.
18421 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18422
18423 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18424 # resulting binary.
18425 hardcode_direct=$hardcode_direct_RC
18426
18427 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18428 # resulting binary.
18429 hardcode_minus_L=$hardcode_minus_L_RC
18430
18431 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18432 # the resulting binary.
18433 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18434
18435 # Set to yes if building a shared library automatically hardcodes DIR into the library
18436 # and all subsequent libraries and executables linked against it.
18437 hardcode_automatic=$hardcode_automatic_RC
18438
18439 # Variables whose values should be saved in libtool wrapper scripts and
18440 # restored at relink time.
18441 variables_saved_for_relink="$variables_saved_for_relink"
18442
18443 # Whether libtool must link a program against all its dependency libraries.
18444 link_all_deplibs=$link_all_deplibs_RC
18445
18446 # Compile-time system search path for libraries
18447 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18448
18449 # Run-time system search path for libraries
18450 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18451
18452 # Fix the shell variable \$srcfile for the compiler.
18453 fix_srcfile_path="$fix_srcfile_path_RC"
18454
18455 # Set to yes if exported symbols are required.
18456 always_export_symbols=$always_export_symbols_RC
18457
18458 # The commands to list exported symbols.
18459 export_symbols_cmds=$lt_export_symbols_cmds_RC
18460
18461 # The commands to extract the exported symbol list from a shared archive.
18462 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18463
18464 # Symbols that should not be listed in the preloaded symbols.
18465 exclude_expsyms=$lt_exclude_expsyms_RC
18466
18467 # Symbols that must always be exported.
18468 include_expsyms=$lt_include_expsyms_RC
18469
18470 # ### END LIBTOOL TAG CONFIG: $tagname
18471
18472 __EOF__
18473
18474
18475 else
18476   # If there is no Makefile yet, we rely on a make rule to execute
18477   # `config.status --recheck' to rerun these tests and create the
18478   # libtool script then.
18479   test -f Makefile && make "$ltmain"
18480 fi
18481
18482
18483 ac_ext=c
18484 ac_cpp='$CPP $CPPFLAGS'
18485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18488
18489 CC="$lt_save_CC"
18490
18491         ;;
18492
18493       *)
18494         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18495 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18496    { (exit 1); exit 1; }; }
18497         ;;
18498       esac
18499
18500       # Append the new tag name to the list of available tags.
18501       if test -n "$tagname" ; then
18502       available_tags="$available_tags $tagname"
18503     fi
18504     fi
18505   done
18506   IFS="$lt_save_ifs"
18507
18508   # Now substitute the updated list of available tags.
18509   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18510     mv "${ofile}T" "$ofile"
18511     chmod +x "$ofile"
18512   else
18513     rm -f "${ofile}T"
18514     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18515 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18516    { (exit 1); exit 1; }; }
18517   fi
18518 fi
18519
18520
18521
18522 # This can be used to rebuild libtool when needed
18523 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18524
18525 # Always use our own libtool.
18526 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18527
18528 # Prevent multiple expansion
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550 # Extract the first word of "pwd", so it can be a program name with args.
18551 set dummy pwd; ac_word=$2
18552 echo "$as_me:$LINENO: checking for $ac_word" >&5
18553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18554 if test "${ac_cv_path_RPWD+set}" = set; then
18555   echo $ECHO_N "(cached) $ECHO_C" >&6
18556 else
18557   case $RPWD in
18558   [\\/]* | ?:[\\/]*)
18559   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18560   ;;
18561   *)
18562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18563 for as_dir in $PATH
18564 do
18565   IFS=$as_save_IFS
18566   test -z "$as_dir" && as_dir=.
18567   for ac_exec_ext in '' $ac_executable_extensions; do
18568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18569     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18571     break 2
18572   fi
18573 done
18574 done
18575
18576   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18577   ;;
18578 esac
18579 fi
18580 RPWD=$ac_cv_path_RPWD
18581
18582 if test -n "$RPWD"; then
18583   echo "$as_me:$LINENO: result: $RPWD" >&5
18584 echo "${ECHO_T}$RPWD" >&6
18585 else
18586   echo "$as_me:$LINENO: result: no" >&5
18587 echo "${ECHO_T}no" >&6
18588 fi
18589
18590 if test ${RPWD} = "false"
18591 then
18592         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18593 echo "$as_me: error: pwd required but not found" >&2;}
18594    { (exit 1); exit 1; }; }
18595 fi
18596
18597 # Extract the first word of "ar", so it can be a program name with args.
18598 set dummy ar; ac_word=$2
18599 echo "$as_me:$LINENO: checking for $ac_word" >&5
18600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18601 if test "${ac_cv_path_AR+set}" = set; then
18602   echo $ECHO_N "(cached) $ECHO_C" >&6
18603 else
18604   case $AR in
18605   [\\/]* | ?:[\\/]*)
18606   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18607   ;;
18608   *)
18609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18610 for as_dir in $PATH
18611 do
18612   IFS=$as_save_IFS
18613   test -z "$as_dir" && as_dir=.
18614   for ac_exec_ext in '' $ac_executable_extensions; do
18615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18616     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18618     break 2
18619   fi
18620 done
18621 done
18622
18623   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18624   ;;
18625 esac
18626 fi
18627 AR=$ac_cv_path_AR
18628
18629 if test -n "$AR"; then
18630   echo "$as_me:$LINENO: result: $AR" >&5
18631 echo "${ECHO_T}$AR" >&6
18632 else
18633   echo "$as_me:$LINENO: result: no" >&5
18634 echo "${ECHO_T}no" >&6
18635 fi
18636
18637 if test ${AR} = "false"
18638 then
18639         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18640 echo "$as_me: error: ar required but not found" >&2;}
18641    { (exit 1); exit 1; }; }
18642 fi
18643
18644 # Extract the first word of "sed", so it can be a program name with args.
18645 set dummy sed; ac_word=$2
18646 echo "$as_me:$LINENO: checking for $ac_word" >&5
18647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18648 if test "${ac_cv_path_SED+set}" = set; then
18649   echo $ECHO_N "(cached) $ECHO_C" >&6
18650 else
18651   case $SED in
18652   [\\/]* | ?:[\\/]*)
18653   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18654   ;;
18655   *)
18656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18657 for as_dir in $PATH
18658 do
18659   IFS=$as_save_IFS
18660   test -z "$as_dir" && as_dir=.
18661   for ac_exec_ext in '' $ac_executable_extensions; do
18662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18663     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18665     break 2
18666   fi
18667 done
18668 done
18669
18670   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18671   ;;
18672 esac
18673 fi
18674 SED=$ac_cv_path_SED
18675
18676 if test -n "$SED"; then
18677   echo "$as_me:$LINENO: result: $SED" >&5
18678 echo "${ECHO_T}$SED" >&6
18679 else
18680   echo "$as_me:$LINENO: result: no" >&5
18681 echo "${ECHO_T}no" >&6
18682 fi
18683
18684 if test ${SED} = "false"
18685 then
18686         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18687 echo "$as_me: error: sed required but not found" >&2;}
18688    { (exit 1); exit 1; }; }
18689 fi
18690
18691 # Extract the first word of "rm", so it can be a program name with args.
18692 set dummy rm; ac_word=$2
18693 echo "$as_me:$LINENO: checking for $ac_word" >&5
18694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18695 if test "${ac_cv_path_RM+set}" = set; then
18696   echo $ECHO_N "(cached) $ECHO_C" >&6
18697 else
18698   case $RM in
18699   [\\/]* | ?:[\\/]*)
18700   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18701   ;;
18702   *)
18703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18704 for as_dir in $PATH
18705 do
18706   IFS=$as_save_IFS
18707   test -z "$as_dir" && as_dir=.
18708   for ac_exec_ext in '' $ac_executable_extensions; do
18709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18710     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18712     break 2
18713   fi
18714 done
18715 done
18716
18717   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18718   ;;
18719 esac
18720 fi
18721 RM=$ac_cv_path_RM
18722
18723 if test -n "$RM"; then
18724   echo "$as_me:$LINENO: result: $RM" >&5
18725 echo "${ECHO_T}$RM" >&6
18726 else
18727   echo "$as_me:$LINENO: result: no" >&5
18728 echo "${ECHO_T}no" >&6
18729 fi
18730
18731 if test ${RM} = "false"
18732 then
18733         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18734 echo "$as_me: error: rm required but not found" >&2;}
18735    { (exit 1); exit 1; }; }
18736 fi
18737
18738 # Extract the first word of "echo", so it can be a program name with args.
18739 set dummy echo; ac_word=$2
18740 echo "$as_me:$LINENO: checking for $ac_word" >&5
18741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18742 if test "${ac_cv_path_ECHO+set}" = set; then
18743   echo $ECHO_N "(cached) $ECHO_C" >&6
18744 else
18745   case $ECHO in
18746   [\\/]* | ?:[\\/]*)
18747   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18748   ;;
18749   *)
18750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18751 for as_dir in $PATH
18752 do
18753   IFS=$as_save_IFS
18754   test -z "$as_dir" && as_dir=.
18755   for ac_exec_ext in '' $ac_executable_extensions; do
18756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18757     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18759     break 2
18760   fi
18761 done
18762 done
18763
18764   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18765   ;;
18766 esac
18767 fi
18768 ECHO=$ac_cv_path_ECHO
18769
18770 if test -n "$ECHO"; then
18771   echo "$as_me:$LINENO: result: $ECHO" >&5
18772 echo "${ECHO_T}$ECHO" >&6
18773 else
18774   echo "$as_me:$LINENO: result: no" >&5
18775 echo "${ECHO_T}no" >&6
18776 fi
18777
18778 if test ${ECHO} = "false"
18779 then
18780         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18781 echo "$as_me: error: echo required but not found" >&2;}
18782    { (exit 1); exit 1; }; }
18783 fi
18784
18785 # Extract the first word of "mkdir", so it can be a program name with args.
18786 set dummy mkdir; ac_word=$2
18787 echo "$as_me:$LINENO: checking for $ac_word" >&5
18788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18789 if test "${ac_cv_path_MKDIR+set}" = set; then
18790   echo $ECHO_N "(cached) $ECHO_C" >&6
18791 else
18792   case $MKDIR in
18793   [\\/]* | ?:[\\/]*)
18794   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18795   ;;
18796   *)
18797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18798 for as_dir in $PATH
18799 do
18800   IFS=$as_save_IFS
18801   test -z "$as_dir" && as_dir=.
18802   for ac_exec_ext in '' $ac_executable_extensions; do
18803   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18804     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18806     break 2
18807   fi
18808 done
18809 done
18810
18811   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18812   ;;
18813 esac
18814 fi
18815 MKDIR=$ac_cv_path_MKDIR
18816
18817 if test -n "$MKDIR"; then
18818   echo "$as_me:$LINENO: result: $MKDIR" >&5
18819 echo "${ECHO_T}$MKDIR" >&6
18820 else
18821   echo "$as_me:$LINENO: result: no" >&5
18822 echo "${ECHO_T}no" >&6
18823 fi
18824
18825 if test ${MKDIR} = "false"
18826 then
18827         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18828 echo "$as_me: error: mkdir required but not found" >&2;}
18829    { (exit 1); exit 1; }; }
18830 fi
18831
18832 # Extract the first word of "date", so it can be a program name with args.
18833 set dummy date; ac_word=$2
18834 echo "$as_me:$LINENO: checking for $ac_word" >&5
18835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18836 if test "${ac_cv_path_DATE+set}" = set; then
18837   echo $ECHO_N "(cached) $ECHO_C" >&6
18838 else
18839   case $DATE in
18840   [\\/]* | ?:[\\/]*)
18841   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18842   ;;
18843   *)
18844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18845 for as_dir in $PATH
18846 do
18847   IFS=$as_save_IFS
18848   test -z "$as_dir" && as_dir=.
18849   for ac_exec_ext in '' $ac_executable_extensions; do
18850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18851     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18853     break 2
18854   fi
18855 done
18856 done
18857
18858   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18859   ;;
18860 esac
18861 fi
18862 DATE=$ac_cv_path_DATE
18863
18864 if test -n "$DATE"; then
18865   echo "$as_me:$LINENO: result: $DATE" >&5
18866 echo "${ECHO_T}$DATE" >&6
18867 else
18868   echo "$as_me:$LINENO: result: no" >&5
18869 echo "${ECHO_T}no" >&6
18870 fi
18871
18872 if test ${DATE} = "false"
18873 then
18874         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18875 echo "$as_me: error: date required but not found" >&2;}
18876    { (exit 1); exit 1; }; }
18877 fi
18878
18879 # Extract the first word of "mv", so it can be a program name with args.
18880 set dummy mv; ac_word=$2
18881 echo "$as_me:$LINENO: checking for $ac_word" >&5
18882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18883 if test "${ac_cv_path_MV+set}" = set; then
18884   echo $ECHO_N "(cached) $ECHO_C" >&6
18885 else
18886   case $MV in
18887   [\\/]* | ?:[\\/]*)
18888   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18889   ;;
18890   *)
18891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18892 for as_dir in $PATH
18893 do
18894   IFS=$as_save_IFS
18895   test -z "$as_dir" && as_dir=.
18896   for ac_exec_ext in '' $ac_executable_extensions; do
18897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18898     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18900     break 2
18901   fi
18902 done
18903 done
18904
18905   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18906   ;;
18907 esac
18908 fi
18909 MV=$ac_cv_path_MV
18910
18911 if test -n "$MV"; then
18912   echo "$as_me:$LINENO: result: $MV" >&5
18913 echo "${ECHO_T}$MV" >&6
18914 else
18915   echo "$as_me:$LINENO: result: no" >&5
18916 echo "${ECHO_T}no" >&6
18917 fi
18918
18919 if test ${MV} = "false"
18920 then
18921         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18922 echo "$as_me: error: mv required but not found" >&2;}
18923    { (exit 1); exit 1; }; }
18924 fi
18925
18926 # Extract the first word of "dot", so it can be a program name with args.
18927 set dummy dot; ac_word=$2
18928 echo "$as_me:$LINENO: checking for $ac_word" >&5
18929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18930 if test "${ac_cv_path_DOT+set}" = set; then
18931   echo $ECHO_N "(cached) $ECHO_C" >&6
18932 else
18933   case $DOT in
18934   [\\/]* | ?:[\\/]*)
18935   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18936   ;;
18937   *)
18938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18939 for as_dir in $PATH
18940 do
18941   IFS=$as_save_IFS
18942   test -z "$as_dir" && as_dir=.
18943   for ac_exec_ext in '' $ac_executable_extensions; do
18944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18945     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18947     break 2
18948   fi
18949 done
18950 done
18951
18952   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18953   ;;
18954 esac
18955 fi
18956 DOT=$ac_cv_path_DOT
18957
18958 if test -n "$DOT"; then
18959   echo "$as_me:$LINENO: result: $DOT" >&5
18960 echo "${ECHO_T}$DOT" >&6
18961 else
18962   echo "$as_me:$LINENO: result: no" >&5
18963 echo "${ECHO_T}no" >&6
18964 fi
18965
18966
18967 # Extract the first word of "etags", so it can be a program name with args.
18968 set dummy etags; ac_word=$2
18969 echo "$as_me:$LINENO: checking for $ac_word" >&5
18970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18971 if test "${ac_cv_path_ETAGS+set}" = set; then
18972   echo $ECHO_N "(cached) $ECHO_C" >&6
18973 else
18974   case $ETAGS in
18975   [\\/]* | ?:[\\/]*)
18976   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18977   ;;
18978   *)
18979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18980 for as_dir in $PATH
18981 do
18982   IFS=$as_save_IFS
18983   test -z "$as_dir" && as_dir=.
18984   for ac_exec_ext in '' $ac_executable_extensions; do
18985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18986     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18988     break 2
18989   fi
18990 done
18991 done
18992
18993   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18994   ;;
18995 esac
18996 fi
18997 ETAGS=$ac_cv_path_ETAGS
18998
18999 if test -n "$ETAGS"; then
19000   echo "$as_me:$LINENO: result: $ETAGS" >&5
19001 echo "${ECHO_T}$ETAGS" >&6
19002 else
19003   echo "$as_me:$LINENO: result: no" >&5
19004 echo "${ECHO_T}no" >&6
19005 fi
19006
19007
19008 # Extract the first word of "python", so it can be a program name with args.
19009 set dummy python; ac_word=$2
19010 echo "$as_me:$LINENO: checking for $ac_word" >&5
19011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19012 if test "${ac_cv_path_PYTHON+set}" = set; then
19013   echo $ECHO_N "(cached) $ECHO_C" >&6
19014 else
19015   case $PYTHON in
19016   [\\/]* | ?:[\\/]*)
19017   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19018   ;;
19019   *)
19020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19021 for as_dir in $PATH
19022 do
19023   IFS=$as_save_IFS
19024   test -z "$as_dir" && as_dir=.
19025   for ac_exec_ext in '' $ac_executable_extensions; do
19026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19027     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19029     break 2
19030   fi
19031 done
19032 done
19033
19034   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
19035   ;;
19036 esac
19037 fi
19038 PYTHON=$ac_cv_path_PYTHON
19039
19040 if test -n "$PYTHON"; then
19041   echo "$as_me:$LINENO: result: $PYTHON" >&5
19042 echo "${ECHO_T}$PYTHON" >&6
19043 else
19044   echo "$as_me:$LINENO: result: no" >&5
19045 echo "${ECHO_T}no" >&6
19046 fi
19047
19048 if test ${PYTHON} = "false"
19049 then
19050         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
19051 echo "$as_me: WARNING: python required but not found" >&2;}
19052 fi
19053
19054 # Extract the first word of "qmtest", so it can be a program name with args.
19055 set dummy qmtest; ac_word=$2
19056 echo "$as_me:$LINENO: checking for $ac_word" >&5
19057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19058 if test "${ac_cv_path_QMTEST+set}" = set; then
19059   echo $ECHO_N "(cached) $ECHO_C" >&6
19060 else
19061   case $QMTEST in
19062   [\\/]* | ?:[\\/]*)
19063   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19064   ;;
19065   *)
19066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19067 for as_dir in $PATH
19068 do
19069   IFS=$as_save_IFS
19070   test -z "$as_dir" && as_dir=.
19071   for ac_exec_ext in '' $ac_executable_extensions; do
19072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19073     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19075     break 2
19076   fi
19077 done
19078 done
19079
19080   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
19081   ;;
19082 esac
19083 fi
19084 QMTEST=$ac_cv_path_QMTEST
19085
19086 if test -n "$QMTEST"; then
19087   echo "$as_me:$LINENO: result: $QMTEST" >&5
19088 echo "${ECHO_T}$QMTEST" >&6
19089 else
19090   echo "$as_me:$LINENO: result: no" >&5
19091 echo "${ECHO_T}no" >&6
19092 fi
19093
19094 if test ${QMTEST} = "false"
19095 then
19096         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19097 echo "$as_me: WARNING: qmtest required but not found" >&2;}
19098 fi
19099
19100 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19101 pymajor=`echo $pyversion | cut -d. -f1`
19102 pyminor=`echo $pyversion | cut -d. -f2`
19103
19104 if test "$pymajor" -ge "2"
19105 then
19106         if test "$pymajor" -eq "2"
19107         then
19108                 if test "$pyminor" -lt "2"
19109                 then
19110                         { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
19111 echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
19112                 fi
19113         fi
19114 else
19115         { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
19116 echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
19117 fi
19118
19119
19120
19121
19122
19123 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19124 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19125 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19126   echo $ECHO_N "(cached) $ECHO_C" >&6
19127 else
19128   ac_check_lib_save_LIBS=$LIBS
19129 LIBS="-lelf  $LIBS"
19130 cat >conftest.$ac_ext <<_ACEOF
19131 #line $LINENO "configure"
19132 /* confdefs.h.  */
19133 _ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h.  */
19137
19138 /* Override any gcc2 internal prototype to avoid an error.  */
19139 #ifdef __cplusplus
19140 extern "C"
19141 #endif
19142 /* We use char because int might match the return type of a gcc2
19143    builtin and then its argument prototype would still apply.  */
19144 char elf_begin ();
19145 int
19146 main ()
19147 {
19148 elf_begin ();
19149   ;
19150   return 0;
19151 }
19152 _ACEOF
19153 rm -f conftest.$ac_objext conftest$ac_exeext
19154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19155   (eval $ac_link) 2>&5
19156   ac_status=$?
19157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); } &&
19159          { ac_try='test -s conftest$ac_exeext'
19160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161   (eval $ac_try) 2>&5
19162   ac_status=$?
19163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164   (exit $ac_status); }; }; then
19165   ac_cv_lib_elf_elf_begin=yes
19166 else
19167   echo "$as_me: failed program was:" >&5
19168 sed 's/^/| /' conftest.$ac_ext >&5
19169
19170 ac_cv_lib_elf_elf_begin=no
19171 fi
19172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19173 LIBS=$ac_check_lib_save_LIBS
19174 fi
19175 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19176 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19177 if test $ac_cv_lib_elf_elf_begin = yes; then
19178   cat >>confdefs.h <<_ACEOF
19179 #define HAVE_LIBELF 1
19180 _ACEOF
19181
19182   LIBS="-lelf $LIBS"
19183
19184 fi
19185
19186
19187 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19188 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19189 if test "${ac_cv_search_dlopen+set}" = set; then
19190   echo $ECHO_N "(cached) $ECHO_C" >&6
19191 else
19192   ac_func_search_save_LIBS=$LIBS
19193 ac_cv_search_dlopen=no
19194 cat >conftest.$ac_ext <<_ACEOF
19195 #line $LINENO "configure"
19196 /* confdefs.h.  */
19197 _ACEOF
19198 cat confdefs.h >>conftest.$ac_ext
19199 cat >>conftest.$ac_ext <<_ACEOF
19200 /* end confdefs.h.  */
19201
19202 /* Override any gcc2 internal prototype to avoid an error.  */
19203 #ifdef __cplusplus
19204 extern "C"
19205 #endif
19206 /* We use char because int might match the return type of a gcc2
19207    builtin and then its argument prototype would still apply.  */
19208 char dlopen ();
19209 int
19210 main ()
19211 {
19212 dlopen ();
19213   ;
19214   return 0;
19215 }
19216 _ACEOF
19217 rm -f conftest.$ac_objext conftest$ac_exeext
19218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19219   (eval $ac_link) 2>&5
19220   ac_status=$?
19221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); } &&
19223          { ac_try='test -s conftest$ac_exeext'
19224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225   (eval $ac_try) 2>&5
19226   ac_status=$?
19227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228   (exit $ac_status); }; }; then
19229   ac_cv_search_dlopen="none required"
19230 else
19231   echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19233
19234 fi
19235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19236 if test "$ac_cv_search_dlopen" = no; then
19237   for ac_lib in dl; do
19238     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19239     cat >conftest.$ac_ext <<_ACEOF
19240 #line $LINENO "configure"
19241 /* confdefs.h.  */
19242 _ACEOF
19243 cat confdefs.h >>conftest.$ac_ext
19244 cat >>conftest.$ac_ext <<_ACEOF
19245 /* end confdefs.h.  */
19246
19247 /* Override any gcc2 internal prototype to avoid an error.  */
19248 #ifdef __cplusplus
19249 extern "C"
19250 #endif
19251 /* We use char because int might match the return type of a gcc2
19252    builtin and then its argument prototype would still apply.  */
19253 char dlopen ();
19254 int
19255 main ()
19256 {
19257 dlopen ();
19258   ;
19259   return 0;
19260 }
19261 _ACEOF
19262 rm -f conftest.$ac_objext conftest$ac_exeext
19263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19264   (eval $ac_link) 2>&5
19265   ac_status=$?
19266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267   (exit $ac_status); } &&
19268          { ac_try='test -s conftest$ac_exeext'
19269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19270   (eval $ac_try) 2>&5
19271   ac_status=$?
19272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273   (exit $ac_status); }; }; then
19274   ac_cv_search_dlopen="-l$ac_lib"
19275 break
19276 else
19277   echo "$as_me: failed program was:" >&5
19278 sed 's/^/| /' conftest.$ac_ext >&5
19279
19280 fi
19281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19282   done
19283 fi
19284 LIBS=$ac_func_search_save_LIBS
19285 fi
19286 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19287 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19288 if test "$ac_cv_search_dlopen" != no; then
19289   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19290
19291 cat >>confdefs.h <<\_ACEOF
19292 #define HAVE_DLOPEN 1
19293 _ACEOF
19294
19295 else
19296   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19297 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19298 fi
19299
19300
19301 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19302 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19303 if test "${ac_cv_search_mallinfo+set}" = set; then
19304   echo $ECHO_N "(cached) $ECHO_C" >&6
19305 else
19306   ac_func_search_save_LIBS=$LIBS
19307 ac_cv_search_mallinfo=no
19308 cat >conftest.$ac_ext <<_ACEOF
19309 #line $LINENO "configure"
19310 /* confdefs.h.  */
19311 _ACEOF
19312 cat confdefs.h >>conftest.$ac_ext
19313 cat >>conftest.$ac_ext <<_ACEOF
19314 /* end confdefs.h.  */
19315
19316 /* Override any gcc2 internal prototype to avoid an error.  */
19317 #ifdef __cplusplus
19318 extern "C"
19319 #endif
19320 /* We use char because int might match the return type of a gcc2
19321    builtin and then its argument prototype would still apply.  */
19322 char mallinfo ();
19323 int
19324 main ()
19325 {
19326 mallinfo ();
19327   ;
19328   return 0;
19329 }
19330 _ACEOF
19331 rm -f conftest.$ac_objext conftest$ac_exeext
19332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19333   (eval $ac_link) 2>&5
19334   ac_status=$?
19335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336   (exit $ac_status); } &&
19337          { ac_try='test -s conftest$ac_exeext'
19338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339   (eval $ac_try) 2>&5
19340   ac_status=$?
19341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342   (exit $ac_status); }; }; then
19343   ac_cv_search_mallinfo="none required"
19344 else
19345   echo "$as_me: failed program was:" >&5
19346 sed 's/^/| /' conftest.$ac_ext >&5
19347
19348 fi
19349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19350 if test "$ac_cv_search_mallinfo" = no; then
19351   for ac_lib in malloc; do
19352     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19353     cat >conftest.$ac_ext <<_ACEOF
19354 #line $LINENO "configure"
19355 /* confdefs.h.  */
19356 _ACEOF
19357 cat confdefs.h >>conftest.$ac_ext
19358 cat >>conftest.$ac_ext <<_ACEOF
19359 /* end confdefs.h.  */
19360
19361 /* Override any gcc2 internal prototype to avoid an error.  */
19362 #ifdef __cplusplus
19363 extern "C"
19364 #endif
19365 /* We use char because int might match the return type of a gcc2
19366    builtin and then its argument prototype would still apply.  */
19367 char mallinfo ();
19368 int
19369 main ()
19370 {
19371 mallinfo ();
19372   ;
19373   return 0;
19374 }
19375 _ACEOF
19376 rm -f conftest.$ac_objext conftest$ac_exeext
19377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19378   (eval $ac_link) 2>&5
19379   ac_status=$?
19380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381   (exit $ac_status); } &&
19382          { ac_try='test -s conftest$ac_exeext'
19383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384   (eval $ac_try) 2>&5
19385   ac_status=$?
19386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387   (exit $ac_status); }; }; then
19388   ac_cv_search_mallinfo="-l$ac_lib"
19389 break
19390 else
19391   echo "$as_me: failed program was:" >&5
19392 sed 's/^/| /' conftest.$ac_ext >&5
19393
19394 fi
19395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19396   done
19397 fi
19398 LIBS=$ac_func_search_save_LIBS
19399 fi
19400 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19401 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19402 if test "$ac_cv_search_mallinfo" != no; then
19403   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19404
19405 cat >>confdefs.h <<\_ACEOF
19406 #define HAVE_MALLINFO 1
19407 _ACEOF
19408
19409 fi
19410
19411
19412
19413 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19414 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19415 if test "${ac_cv_header_stdc+set}" = set; then
19416   echo $ECHO_N "(cached) $ECHO_C" >&6
19417 else
19418   cat >conftest.$ac_ext <<_ACEOF
19419 #line $LINENO "configure"
19420 /* confdefs.h.  */
19421 _ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h.  */
19425 #include <stdlib.h>
19426 #include <stdarg.h>
19427 #include <string.h>
19428 #include <float.h>
19429
19430 int
19431 main ()
19432 {
19433
19434   ;
19435   return 0;
19436 }
19437 _ACEOF
19438 rm -f conftest.$ac_objext
19439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19440   (eval $ac_compile) 2>&5
19441   ac_status=$?
19442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443   (exit $ac_status); } &&
19444          { ac_try='test -s conftest.$ac_objext'
19445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446   (eval $ac_try) 2>&5
19447   ac_status=$?
19448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449   (exit $ac_status); }; }; then
19450   ac_cv_header_stdc=yes
19451 else
19452   echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19454
19455 ac_cv_header_stdc=no
19456 fi
19457 rm -f conftest.$ac_objext conftest.$ac_ext
19458
19459 if test $ac_cv_header_stdc = yes; then
19460   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19461   cat >conftest.$ac_ext <<_ACEOF
19462 #line $LINENO "configure"
19463 /* confdefs.h.  */
19464 _ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h.  */
19468 #include <string.h>
19469
19470 _ACEOF
19471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19472   $EGREP "memchr" >/dev/null 2>&1; then
19473   :
19474 else
19475   ac_cv_header_stdc=no
19476 fi
19477 rm -f conftest*
19478
19479 fi
19480
19481 if test $ac_cv_header_stdc = yes; then
19482   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19483   cat >conftest.$ac_ext <<_ACEOF
19484 #line $LINENO "configure"
19485 /* confdefs.h.  */
19486 _ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h.  */
19490 #include <stdlib.h>
19491
19492 _ACEOF
19493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19494   $EGREP "free" >/dev/null 2>&1; then
19495   :
19496 else
19497   ac_cv_header_stdc=no
19498 fi
19499 rm -f conftest*
19500
19501 fi
19502
19503 if test $ac_cv_header_stdc = yes; then
19504   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19505   if test "$cross_compiling" = yes; then
19506   :
19507 else
19508   cat >conftest.$ac_ext <<_ACEOF
19509 #line $LINENO "configure"
19510 /* confdefs.h.  */
19511 _ACEOF
19512 cat confdefs.h >>conftest.$ac_ext
19513 cat >>conftest.$ac_ext <<_ACEOF
19514 /* end confdefs.h.  */
19515 #include <ctype.h>
19516 #if ((' ' & 0x0FF) == 0x020)
19517 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19518 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19519 #else
19520 # define ISLOWER(c) \
19521                    (('a' <= (c) && (c) <= 'i') \
19522                      || ('j' <= (c) && (c) <= 'r') \
19523                      || ('s' <= (c) && (c) <= 'z'))
19524 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19525 #endif
19526
19527 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19528 int
19529 main ()
19530 {
19531   int i;
19532   for (i = 0; i < 256; i++)
19533     if (XOR (islower (i), ISLOWER (i))
19534         || toupper (i) != TOUPPER (i))
19535       exit(2);
19536   exit (0);
19537 }
19538 _ACEOF
19539 rm -f conftest$ac_exeext
19540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19541   (eval $ac_link) 2>&5
19542   ac_status=$?
19543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546   (eval $ac_try) 2>&5
19547   ac_status=$?
19548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549   (exit $ac_status); }; }; then
19550   :
19551 else
19552   echo "$as_me: program exited with status $ac_status" >&5
19553 echo "$as_me: failed program was:" >&5
19554 sed 's/^/| /' conftest.$ac_ext >&5
19555
19556 ( exit $ac_status )
19557 ac_cv_header_stdc=no
19558 fi
19559 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19560 fi
19561 fi
19562 fi
19563 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19564 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19565 if test $ac_cv_header_stdc = yes; then
19566
19567 cat >>confdefs.h <<\_ACEOF
19568 #define STDC_HEADERS 1
19569 _ACEOF
19570
19571 fi
19572
19573 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19574 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19575 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19576   echo $ECHO_N "(cached) $ECHO_C" >&6
19577 else
19578   cat >conftest.$ac_ext <<_ACEOF
19579 #line $LINENO "configure"
19580 /* confdefs.h.  */
19581 _ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h.  */
19585 #include <sys/types.h>
19586 #include <sys/wait.h>
19587 #ifndef WEXITSTATUS
19588 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19589 #endif
19590 #ifndef WIFEXITED
19591 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19592 #endif
19593
19594 int
19595 main ()
19596 {
19597   int s;
19598   wait (&s);
19599   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19600   ;
19601   return 0;
19602 }
19603 _ACEOF
19604 rm -f conftest.$ac_objext
19605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19606   (eval $ac_compile) 2>&5
19607   ac_status=$?
19608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609   (exit $ac_status); } &&
19610          { ac_try='test -s conftest.$ac_objext'
19611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612   (eval $ac_try) 2>&5
19613   ac_status=$?
19614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615   (exit $ac_status); }; }; then
19616   ac_cv_header_sys_wait_h=yes
19617 else
19618   echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19620
19621 ac_cv_header_sys_wait_h=no
19622 fi
19623 rm -f conftest.$ac_objext conftest.$ac_ext
19624 fi
19625 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19626 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19627 if test $ac_cv_header_sys_wait_h = yes; then
19628
19629 cat >>confdefs.h <<\_ACEOF
19630 #define HAVE_SYS_WAIT_H 1
19631 _ACEOF
19632
19633 fi
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19645 do
19646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19648   echo "$as_me:$LINENO: checking for $ac_header" >&5
19649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19651   echo $ECHO_N "(cached) $ECHO_C" >&6
19652 fi
19653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19655 else
19656   # Is the header compilable?
19657 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19659 cat >conftest.$ac_ext <<_ACEOF
19660 #line $LINENO "configure"
19661 /* confdefs.h.  */
19662 _ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h.  */
19666 $ac_includes_default
19667 #include <$ac_header>
19668 _ACEOF
19669 rm -f conftest.$ac_objext
19670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19671   (eval $ac_compile) 2>&5
19672   ac_status=$?
19673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674   (exit $ac_status); } &&
19675          { ac_try='test -s conftest.$ac_objext'
19676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677   (eval $ac_try) 2>&5
19678   ac_status=$?
19679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680   (exit $ac_status); }; }; then
19681   ac_header_compiler=yes
19682 else
19683   echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.$ac_ext >&5
19685
19686 ac_header_compiler=no
19687 fi
19688 rm -f conftest.$ac_objext conftest.$ac_ext
19689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19690 echo "${ECHO_T}$ac_header_compiler" >&6
19691
19692 # Is the header present?
19693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19695 cat >conftest.$ac_ext <<_ACEOF
19696 #line $LINENO "configure"
19697 /* confdefs.h.  */
19698 _ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h.  */
19702 #include <$ac_header>
19703 _ACEOF
19704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19705   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19706   ac_status=$?
19707   grep -v '^ *+' conftest.er1 >conftest.err
19708   rm -f conftest.er1
19709   cat conftest.err >&5
19710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711   (exit $ac_status); } >/dev/null; then
19712   if test -s conftest.err; then
19713     ac_cpp_err=$ac_c_preproc_warn_flag
19714   else
19715     ac_cpp_err=
19716   fi
19717 else
19718   ac_cpp_err=yes
19719 fi
19720 if test -z "$ac_cpp_err"; then
19721   ac_header_preproc=yes
19722 else
19723   echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19725
19726   ac_header_preproc=no
19727 fi
19728 rm -f conftest.err conftest.$ac_ext
19729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19730 echo "${ECHO_T}$ac_header_preproc" >&6
19731
19732 # So?  What about this header?
19733 case $ac_header_compiler:$ac_header_preproc in
19734   yes:no )
19735     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19739     (
19740       cat <<\_ASBOX
19741 ## ------------------------------------ ##
19742 ## Report this to bug-autoconf@gnu.org. ##
19743 ## ------------------------------------ ##
19744 _ASBOX
19745     ) |
19746       sed "s/^/$as_me: WARNING:     /" >&2
19747     ;;
19748   no:yes )
19749     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19751     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19755     (
19756       cat <<\_ASBOX
19757 ## ------------------------------------ ##
19758 ## Report this to bug-autoconf@gnu.org. ##
19759 ## ------------------------------------ ##
19760 _ASBOX
19761     ) |
19762       sed "s/^/$as_me: WARNING:     /" >&2
19763     ;;
19764 esac
19765 echo "$as_me:$LINENO: checking for $ac_header" >&5
19766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19768   echo $ECHO_N "(cached) $ECHO_C" >&6
19769 else
19770   eval "$as_ac_Header=$ac_header_preproc"
19771 fi
19772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19774
19775 fi
19776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19777   cat >>confdefs.h <<_ACEOF
19778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19779 _ACEOF
19780
19781 fi
19782
19783 done
19784
19785
19786
19787
19788
19789 for ac_header in malloc.h sys/mman.h sys/resource.h
19790 do
19791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19793   echo "$as_me:$LINENO: checking for $ac_header" >&5
19794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19796   echo $ECHO_N "(cached) $ECHO_C" >&6
19797 fi
19798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19800 else
19801   # Is the header compilable?
19802 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19804 cat >conftest.$ac_ext <<_ACEOF
19805 #line $LINENO "configure"
19806 /* confdefs.h.  */
19807 _ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h.  */
19811 $ac_includes_default
19812 #include <$ac_header>
19813 _ACEOF
19814 rm -f conftest.$ac_objext
19815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19816   (eval $ac_compile) 2>&5
19817   ac_status=$?
19818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819   (exit $ac_status); } &&
19820          { ac_try='test -s conftest.$ac_objext'
19821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822   (eval $ac_try) 2>&5
19823   ac_status=$?
19824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825   (exit $ac_status); }; }; then
19826   ac_header_compiler=yes
19827 else
19828   echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19830
19831 ac_header_compiler=no
19832 fi
19833 rm -f conftest.$ac_objext conftest.$ac_ext
19834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19835 echo "${ECHO_T}$ac_header_compiler" >&6
19836
19837 # Is the header present?
19838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19840 cat >conftest.$ac_ext <<_ACEOF
19841 #line $LINENO "configure"
19842 /* confdefs.h.  */
19843 _ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h.  */
19847 #include <$ac_header>
19848 _ACEOF
19849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19850   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19851   ac_status=$?
19852   grep -v '^ *+' conftest.er1 >conftest.err
19853   rm -f conftest.er1
19854   cat conftest.err >&5
19855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856   (exit $ac_status); } >/dev/null; then
19857   if test -s conftest.err; then
19858     ac_cpp_err=$ac_c_preproc_warn_flag
19859   else
19860     ac_cpp_err=
19861   fi
19862 else
19863   ac_cpp_err=yes
19864 fi
19865 if test -z "$ac_cpp_err"; then
19866   ac_header_preproc=yes
19867 else
19868   echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19870
19871   ac_header_preproc=no
19872 fi
19873 rm -f conftest.err conftest.$ac_ext
19874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19875 echo "${ECHO_T}$ac_header_preproc" >&6
19876
19877 # So?  What about this header?
19878 case $ac_header_compiler:$ac_header_preproc in
19879   yes:no )
19880     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19884     (
19885       cat <<\_ASBOX
19886 ## ------------------------------------ ##
19887 ## Report this to bug-autoconf@gnu.org. ##
19888 ## ------------------------------------ ##
19889 _ASBOX
19890     ) |
19891       sed "s/^/$as_me: WARNING:     /" >&2
19892     ;;
19893   no:yes )
19894     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19896     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19900     (
19901       cat <<\_ASBOX
19902 ## ------------------------------------ ##
19903 ## Report this to bug-autoconf@gnu.org. ##
19904 ## ------------------------------------ ##
19905 _ASBOX
19906     ) |
19907       sed "s/^/$as_me: WARNING:     /" >&2
19908     ;;
19909 esac
19910 echo "$as_me:$LINENO: checking for $ac_header" >&5
19911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19913   echo $ECHO_N "(cached) $ECHO_C" >&6
19914 else
19915   eval "$as_ac_Header=$ac_header_preproc"
19916 fi
19917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19919
19920 fi
19921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19922   cat >>confdefs.h <<_ACEOF
19923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19924 _ACEOF
19925
19926 fi
19927
19928 done
19929
19930
19931
19932
19933 for ac_header in dlfcn.h link.h
19934 do
19935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19937   echo "$as_me:$LINENO: checking for $ac_header" >&5
19938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19940   echo $ECHO_N "(cached) $ECHO_C" >&6
19941 fi
19942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19944 else
19945   # Is the header compilable?
19946 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19948 cat >conftest.$ac_ext <<_ACEOF
19949 #line $LINENO "configure"
19950 /* confdefs.h.  */
19951 _ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h.  */
19955 $ac_includes_default
19956 #include <$ac_header>
19957 _ACEOF
19958 rm -f conftest.$ac_objext
19959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19960   (eval $ac_compile) 2>&5
19961   ac_status=$?
19962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963   (exit $ac_status); } &&
19964          { ac_try='test -s conftest.$ac_objext'
19965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19966   (eval $ac_try) 2>&5
19967   ac_status=$?
19968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969   (exit $ac_status); }; }; then
19970   ac_header_compiler=yes
19971 else
19972   echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19974
19975 ac_header_compiler=no
19976 fi
19977 rm -f conftest.$ac_objext conftest.$ac_ext
19978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19979 echo "${ECHO_T}$ac_header_compiler" >&6
19980
19981 # Is the header present?
19982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19984 cat >conftest.$ac_ext <<_ACEOF
19985 #line $LINENO "configure"
19986 /* confdefs.h.  */
19987 _ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h.  */
19991 #include <$ac_header>
19992 _ACEOF
19993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19995   ac_status=$?
19996   grep -v '^ *+' conftest.er1 >conftest.err
19997   rm -f conftest.er1
19998   cat conftest.err >&5
19999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000   (exit $ac_status); } >/dev/null; then
20001   if test -s conftest.err; then
20002     ac_cpp_err=$ac_c_preproc_warn_flag
20003   else
20004     ac_cpp_err=
20005   fi
20006 else
20007   ac_cpp_err=yes
20008 fi
20009 if test -z "$ac_cpp_err"; then
20010   ac_header_preproc=yes
20011 else
20012   echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20014
20015   ac_header_preproc=no
20016 fi
20017 rm -f conftest.err conftest.$ac_ext
20018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20019 echo "${ECHO_T}$ac_header_preproc" >&6
20020
20021 # So?  What about this header?
20022 case $ac_header_compiler:$ac_header_preproc in
20023   yes:no )
20024     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20028     (
20029       cat <<\_ASBOX
20030 ## ------------------------------------ ##
20031 ## Report this to bug-autoconf@gnu.org. ##
20032 ## ------------------------------------ ##
20033 _ASBOX
20034     ) |
20035       sed "s/^/$as_me: WARNING:     /" >&2
20036     ;;
20037   no:yes )
20038     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20040     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20044     (
20045       cat <<\_ASBOX
20046 ## ------------------------------------ ##
20047 ## Report this to bug-autoconf@gnu.org. ##
20048 ## ------------------------------------ ##
20049 _ASBOX
20050     ) |
20051       sed "s/^/$as_me: WARNING:     /" >&2
20052     ;;
20053 esac
20054 echo "$as_me:$LINENO: checking for $ac_header" >&5
20055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20057   echo $ECHO_N "(cached) $ECHO_C" >&6
20058 else
20059   eval "$as_ac_Header=$ac_header_preproc"
20060 fi
20061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20063
20064 fi
20065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20066   cat >>confdefs.h <<_ACEOF
20067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20068 _ACEOF
20069
20070 fi
20071
20072 done
20073
20074
20075
20076 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20077 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20078 if test "${ac_cv_c_const+set}" = set; then
20079   echo $ECHO_N "(cached) $ECHO_C" >&6
20080 else
20081   cat >conftest.$ac_ext <<_ACEOF
20082 #line $LINENO "configure"
20083 /* confdefs.h.  */
20084 _ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h.  */
20088
20089 int
20090 main ()
20091 {
20092 /* FIXME: Include the comments suggested by Paul. */
20093 #ifndef __cplusplus
20094   /* Ultrix mips cc rejects this.  */
20095   typedef int charset[2];
20096   const charset x;
20097   /* SunOS 4.1.1 cc rejects this.  */
20098   char const *const *ccp;
20099   char **p;
20100   /* NEC SVR4.0.2 mips cc rejects this.  */
20101   struct point {int x, y;};
20102   static struct point const zero = {0,0};
20103   /* AIX XL C 1.02.0.0 rejects this.
20104      It does not let you subtract one const X* pointer from another in
20105      an arm of an if-expression whose if-part is not a constant
20106      expression */
20107   const char *g = "string";
20108   ccp = &g + (g ? g-g : 0);
20109   /* HPUX 7.0 cc rejects these. */
20110   ++ccp;
20111   p = (char**) ccp;
20112   ccp = (char const *const *) p;
20113   { /* SCO 3.2v4 cc rejects this.  */
20114     char *t;
20115     char const *s = 0 ? (char *) 0 : (char const *) 0;
20116
20117     *t++ = 0;
20118   }
20119   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20120     int x[] = {25, 17};
20121     const int *foo = &x[0];
20122     ++foo;
20123   }
20124   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20125     typedef const int *iptr;
20126     iptr p = 0;
20127     ++p;
20128   }
20129   { /* AIX XL C 1.02.0.0 rejects this saying
20130        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20131     struct s { int j; const int *ap[3]; };
20132     struct s *b; b->j = 5;
20133   }
20134   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20135     const int foo = 10;
20136   }
20137 #endif
20138
20139   ;
20140   return 0;
20141 }
20142 _ACEOF
20143 rm -f conftest.$ac_objext
20144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20145   (eval $ac_compile) 2>&5
20146   ac_status=$?
20147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148   (exit $ac_status); } &&
20149          { ac_try='test -s conftest.$ac_objext'
20150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151   (eval $ac_try) 2>&5
20152   ac_status=$?
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); }; }; then
20155   ac_cv_c_const=yes
20156 else
20157   echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20159
20160 ac_cv_c_const=no
20161 fi
20162 rm -f conftest.$ac_objext conftest.$ac_ext
20163 fi
20164 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20165 echo "${ECHO_T}$ac_cv_c_const" >&6
20166 if test $ac_cv_c_const = no; then
20167
20168 cat >>confdefs.h <<\_ACEOF
20169 #define const
20170 _ACEOF
20171
20172 fi
20173
20174 echo "$as_me:$LINENO: checking for inline" >&5
20175 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20176 if test "${ac_cv_c_inline+set}" = set; then
20177   echo $ECHO_N "(cached) $ECHO_C" >&6
20178 else
20179   ac_cv_c_inline=no
20180 for ac_kw in inline __inline__ __inline; do
20181   cat >conftest.$ac_ext <<_ACEOF
20182 #line $LINENO "configure"
20183 /* confdefs.h.  */
20184 _ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h.  */
20188 #ifndef __cplusplus
20189 typedef int foo_t;
20190 static $ac_kw foo_t static_foo () {return 0; }
20191 $ac_kw foo_t foo () {return 0; }
20192 #endif
20193
20194 _ACEOF
20195 rm -f conftest.$ac_objext
20196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20197   (eval $ac_compile) 2>&5
20198   ac_status=$?
20199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); } &&
20201          { ac_try='test -s conftest.$ac_objext'
20202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203   (eval $ac_try) 2>&5
20204   ac_status=$?
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); }; }; then
20207   ac_cv_c_inline=$ac_kw; break
20208 else
20209   echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20211
20212 fi
20213 rm -f conftest.$ac_objext conftest.$ac_ext
20214 done
20215
20216 fi
20217 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20218 echo "${ECHO_T}$ac_cv_c_inline" >&6
20219 case $ac_cv_c_inline in
20220   inline | yes) ;;
20221   no)
20222 cat >>confdefs.h <<\_ACEOF
20223 #define inline
20224 _ACEOF
20225  ;;
20226   *)  cat >>confdefs.h <<_ACEOF
20227 #define inline $ac_cv_c_inline
20228 _ACEOF
20229  ;;
20230 esac
20231
20232
20233 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20234 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20235 if test "${ac_cv_c_bigendian+set}" = set; then
20236   echo $ECHO_N "(cached) $ECHO_C" >&6
20237 else
20238   # See if sys/param.h defines the BYTE_ORDER macro.
20239 cat >conftest.$ac_ext <<_ACEOF
20240 #line $LINENO "configure"
20241 /* confdefs.h.  */
20242 _ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h.  */
20246 #include <sys/types.h>
20247 #include <sys/param.h>
20248
20249 int
20250 main ()
20251 {
20252 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20253  bogus endian macros
20254 #endif
20255
20256   ;
20257   return 0;
20258 }
20259 _ACEOF
20260 rm -f conftest.$ac_objext
20261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20262   (eval $ac_compile) 2>&5
20263   ac_status=$?
20264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265   (exit $ac_status); } &&
20266          { ac_try='test -s conftest.$ac_objext'
20267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268   (eval $ac_try) 2>&5
20269   ac_status=$?
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); }; }; then
20272   # It does; now see whether it defined to BIG_ENDIAN or not.
20273 cat >conftest.$ac_ext <<_ACEOF
20274 #line $LINENO "configure"
20275 /* confdefs.h.  */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h.  */
20280 #include <sys/types.h>
20281 #include <sys/param.h>
20282
20283 int
20284 main ()
20285 {
20286 #if BYTE_ORDER != BIG_ENDIAN
20287  not big endian
20288 #endif
20289
20290   ;
20291   return 0;
20292 }
20293 _ACEOF
20294 rm -f conftest.$ac_objext
20295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20296   (eval $ac_compile) 2>&5
20297   ac_status=$?
20298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299   (exit $ac_status); } &&
20300          { ac_try='test -s conftest.$ac_objext'
20301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302   (eval $ac_try) 2>&5
20303   ac_status=$?
20304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305   (exit $ac_status); }; }; then
20306   ac_cv_c_bigendian=yes
20307 else
20308   echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20310
20311 ac_cv_c_bigendian=no
20312 fi
20313 rm -f conftest.$ac_objext conftest.$ac_ext
20314 else
20315   echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20317
20318 # It does not; compile a test program.
20319 if test "$cross_compiling" = yes; then
20320   # try to guess the endianness by grepping values into an object file
20321   ac_cv_c_bigendian=unknown
20322   cat >conftest.$ac_ext <<_ACEOF
20323 #line $LINENO "configure"
20324 /* confdefs.h.  */
20325 _ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h.  */
20329 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20330 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20331 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20332 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20333 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20334 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20335 int
20336 main ()
20337 {
20338  _ascii (); _ebcdic ();
20339   ;
20340   return 0;
20341 }
20342 _ACEOF
20343 rm -f conftest.$ac_objext
20344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20345   (eval $ac_compile) 2>&5
20346   ac_status=$?
20347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348   (exit $ac_status); } &&
20349          { ac_try='test -s conftest.$ac_objext'
20350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20351   (eval $ac_try) 2>&5
20352   ac_status=$?
20353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354   (exit $ac_status); }; }; then
20355   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20356   ac_cv_c_bigendian=yes
20357 fi
20358 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20359   if test "$ac_cv_c_bigendian" = unknown; then
20360     ac_cv_c_bigendian=no
20361   else
20362     # finding both strings is unlikely to happen, but who knows?
20363     ac_cv_c_bigendian=unknown
20364   fi
20365 fi
20366 else
20367   echo "$as_me: failed program was:" >&5
20368 sed 's/^/| /' conftest.$ac_ext >&5
20369
20370 fi
20371 rm -f conftest.$ac_objext conftest.$ac_ext
20372 else
20373   cat >conftest.$ac_ext <<_ACEOF
20374 #line $LINENO "configure"
20375 /* confdefs.h.  */
20376 _ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h.  */
20380 int
20381 main ()
20382 {
20383   /* Are we little or big endian?  From Harbison&Steele.  */
20384   union
20385   {
20386     long l;
20387     char c[sizeof (long)];
20388   } u;
20389   u.l = 1;
20390   exit (u.c[sizeof (long) - 1] == 1);
20391 }
20392 _ACEOF
20393 rm -f conftest$ac_exeext
20394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20395   (eval $ac_link) 2>&5
20396   ac_status=$?
20397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400   (eval $ac_try) 2>&5
20401   ac_status=$?
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); }; }; then
20404   ac_cv_c_bigendian=no
20405 else
20406   echo "$as_me: program exited with status $ac_status" >&5
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20409
20410 ( exit $ac_status )
20411 ac_cv_c_bigendian=yes
20412 fi
20413 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20414 fi
20415 fi
20416 rm -f conftest.$ac_objext conftest.$ac_ext
20417 fi
20418 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20419 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20420 case $ac_cv_c_bigendian in
20421   yes)
20422
20423 cat >>confdefs.h <<\_ACEOF
20424 #define ENDIAN_BIG
20425 _ACEOF
20426  ;;
20427   no)
20428
20429 cat >>confdefs.h <<\_ACEOF
20430 #define ENDIAN_LITTLE
20431 _ACEOF
20432  ;;
20433   *)
20434     { { echo "$as_me:$LINENO: error: unknown endianness
20435 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20436 echo "$as_me: error: unknown endianness
20437 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20438    { (exit 1); exit 1; }; } ;;
20439 esac
20440
20441
20442 echo "$as_me:$LINENO: checking for pid_t" >&5
20443 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20444 if test "${ac_cv_type_pid_t+set}" = set; then
20445   echo $ECHO_N "(cached) $ECHO_C" >&6
20446 else
20447   cat >conftest.$ac_ext <<_ACEOF
20448 #line $LINENO "configure"
20449 /* confdefs.h.  */
20450 _ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h.  */
20454 $ac_includes_default
20455 int
20456 main ()
20457 {
20458 if ((pid_t *) 0)
20459   return 0;
20460 if (sizeof (pid_t))
20461   return 0;
20462   ;
20463   return 0;
20464 }
20465 _ACEOF
20466 rm -f conftest.$ac_objext
20467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20468   (eval $ac_compile) 2>&5
20469   ac_status=$?
20470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471   (exit $ac_status); } &&
20472          { ac_try='test -s conftest.$ac_objext'
20473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474   (eval $ac_try) 2>&5
20475   ac_status=$?
20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); }; }; then
20478   ac_cv_type_pid_t=yes
20479 else
20480   echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20482
20483 ac_cv_type_pid_t=no
20484 fi
20485 rm -f conftest.$ac_objext conftest.$ac_ext
20486 fi
20487 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20488 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20489 if test $ac_cv_type_pid_t = yes; then
20490   :
20491 else
20492
20493 cat >>confdefs.h <<_ACEOF
20494 #define pid_t int
20495 _ACEOF
20496
20497 fi
20498
20499 echo "$as_me:$LINENO: checking for size_t" >&5
20500 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20501 if test "${ac_cv_type_size_t+set}" = set; then
20502   echo $ECHO_N "(cached) $ECHO_C" >&6
20503 else
20504   cat >conftest.$ac_ext <<_ACEOF
20505 #line $LINENO "configure"
20506 /* confdefs.h.  */
20507 _ACEOF
20508 cat confdefs.h >>conftest.$ac_ext
20509 cat >>conftest.$ac_ext <<_ACEOF
20510 /* end confdefs.h.  */
20511 $ac_includes_default
20512 int
20513 main ()
20514 {
20515 if ((size_t *) 0)
20516   return 0;
20517 if (sizeof (size_t))
20518   return 0;
20519   ;
20520   return 0;
20521 }
20522 _ACEOF
20523 rm -f conftest.$ac_objext
20524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20525   (eval $ac_compile) 2>&5
20526   ac_status=$?
20527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528   (exit $ac_status); } &&
20529          { ac_try='test -s conftest.$ac_objext'
20530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20531   (eval $ac_try) 2>&5
20532   ac_status=$?
20533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534   (exit $ac_status); }; }; then
20535   ac_cv_type_size_t=yes
20536 else
20537   echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.$ac_ext >&5
20539
20540 ac_cv_type_size_t=no
20541 fi
20542 rm -f conftest.$ac_objext conftest.$ac_ext
20543 fi
20544 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20545 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20546 if test $ac_cv_type_size_t = yes; then
20547   :
20548 else
20549
20550 cat >>confdefs.h <<_ACEOF
20551 #define size_t unsigned
20552 _ACEOF
20553
20554 fi
20555
20556 echo "$as_me:$LINENO: checking for int64_t" >&5
20557 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20558 if test "${ac_cv_type_int64_t+set}" = set; then
20559   echo $ECHO_N "(cached) $ECHO_C" >&6
20560 else
20561   cat >conftest.$ac_ext <<_ACEOF
20562 #line $LINENO "configure"
20563 /* confdefs.h.  */
20564 _ACEOF
20565 cat confdefs.h >>conftest.$ac_ext
20566 cat >>conftest.$ac_ext <<_ACEOF
20567 /* end confdefs.h.  */
20568 $ac_includes_default
20569 int
20570 main ()
20571 {
20572 if ((int64_t *) 0)
20573   return 0;
20574 if (sizeof (int64_t))
20575   return 0;
20576   ;
20577   return 0;
20578 }
20579 _ACEOF
20580 rm -f conftest.$ac_objext
20581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20582   (eval $ac_compile) 2>&5
20583   ac_status=$?
20584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585   (exit $ac_status); } &&
20586          { ac_try='test -s conftest.$ac_objext'
20587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20588   (eval $ac_try) 2>&5
20589   ac_status=$?
20590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591   (exit $ac_status); }; }; then
20592   ac_cv_type_int64_t=yes
20593 else
20594   echo "$as_me: failed program was:" >&5
20595 sed 's/^/| /' conftest.$ac_ext >&5
20596
20597 ac_cv_type_int64_t=no
20598 fi
20599 rm -f conftest.$ac_objext conftest.$ac_ext
20600 fi
20601 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20602 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20603 if test $ac_cv_type_int64_t = yes; then
20604
20605 cat >>confdefs.h <<_ACEOF
20606 #define HAVE_INT64_T 1
20607 _ACEOF
20608
20609
20610 else
20611   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20612 echo "$as_me: error: Type int64_t required but not found" >&2;}
20613    { (exit 1); exit 1; }; }
20614 fi
20615
20616 echo "$as_me:$LINENO: checking for uint64_t" >&5
20617 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20618 if test "${ac_cv_type_uint64_t+set}" = set; then
20619   echo $ECHO_N "(cached) $ECHO_C" >&6
20620 else
20621   cat >conftest.$ac_ext <<_ACEOF
20622 #line $LINENO "configure"
20623 /* confdefs.h.  */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h.  */
20628 $ac_includes_default
20629 int
20630 main ()
20631 {
20632 if ((uint64_t *) 0)
20633   return 0;
20634 if (sizeof (uint64_t))
20635   return 0;
20636   ;
20637   return 0;
20638 }
20639 _ACEOF
20640 rm -f conftest.$ac_objext
20641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20642   (eval $ac_compile) 2>&5
20643   ac_status=$?
20644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645   (exit $ac_status); } &&
20646          { ac_try='test -s conftest.$ac_objext'
20647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648   (eval $ac_try) 2>&5
20649   ac_status=$?
20650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); }; }; then
20652   ac_cv_type_uint64_t=yes
20653 else
20654   echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20656
20657 ac_cv_type_uint64_t=no
20658 fi
20659 rm -f conftest.$ac_objext conftest.$ac_ext
20660 fi
20661 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20662 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20663 if test $ac_cv_type_uint64_t = yes; then
20664
20665 cat >>confdefs.h <<_ACEOF
20666 #define HAVE_UINT64_T 1
20667 _ACEOF
20668
20669
20670 else
20671   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20672 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20673    { (exit 1); exit 1; }; }
20674 fi
20675
20676 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20677 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20678 if test "${ac_cv_header_time+set}" = set; then
20679   echo $ECHO_N "(cached) $ECHO_C" >&6
20680 else
20681   cat >conftest.$ac_ext <<_ACEOF
20682 #line $LINENO "configure"
20683 /* confdefs.h.  */
20684 _ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h.  */
20688 #include <sys/types.h>
20689 #include <sys/time.h>
20690 #include <time.h>
20691
20692 int
20693 main ()
20694 {
20695 if ((struct tm *) 0)
20696 return 0;
20697   ;
20698   return 0;
20699 }
20700 _ACEOF
20701 rm -f conftest.$ac_objext
20702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20703   (eval $ac_compile) 2>&5
20704   ac_status=$?
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); } &&
20707          { ac_try='test -s conftest.$ac_objext'
20708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709   (eval $ac_try) 2>&5
20710   ac_status=$?
20711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712   (exit $ac_status); }; }; then
20713   ac_cv_header_time=yes
20714 else
20715   echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20717
20718 ac_cv_header_time=no
20719 fi
20720 rm -f conftest.$ac_objext conftest.$ac_ext
20721 fi
20722 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20723 echo "${ECHO_T}$ac_cv_header_time" >&6
20724 if test $ac_cv_header_time = yes; then
20725
20726 cat >>confdefs.h <<\_ACEOF
20727 #define TIME_WITH_SYS_TIME 1
20728 _ACEOF
20729
20730 fi
20731
20732 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20733 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20734 if test "${ac_cv_struct_tm+set}" = set; then
20735   echo $ECHO_N "(cached) $ECHO_C" >&6
20736 else
20737   cat >conftest.$ac_ext <<_ACEOF
20738 #line $LINENO "configure"
20739 /* confdefs.h.  */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h.  */
20744 #include <sys/types.h>
20745 #include <time.h>
20746
20747 int
20748 main ()
20749 {
20750 struct tm *tp; tp->tm_sec;
20751   ;
20752   return 0;
20753 }
20754 _ACEOF
20755 rm -f conftest.$ac_objext
20756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20757   (eval $ac_compile) 2>&5
20758   ac_status=$?
20759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760   (exit $ac_status); } &&
20761          { ac_try='test -s conftest.$ac_objext'
20762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763   (eval $ac_try) 2>&5
20764   ac_status=$?
20765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766   (exit $ac_status); }; }; then
20767   ac_cv_struct_tm=time.h
20768 else
20769   echo "$as_me: failed program was:" >&5
20770 sed 's/^/| /' conftest.$ac_ext >&5
20771
20772 ac_cv_struct_tm=sys/time.h
20773 fi
20774 rm -f conftest.$ac_objext conftest.$ac_ext
20775 fi
20776 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20777 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20778 if test $ac_cv_struct_tm = sys/time.h; then
20779
20780 cat >>confdefs.h <<\_ACEOF
20781 #define TM_IN_SYS_TIME 1
20782 _ACEOF
20783
20784 fi
20785
20786
20787
20788
20789
20790         ac_ext=c
20791 ac_cpp='$CPP $CPPFLAGS'
20792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20795
20796         if test "$cross_compiling" = yes; then
20797   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20798 See \`config.log' for more details." >&5
20799 echo "$as_me: error: cannot run test program while cross compiling
20800 See \`config.log' for more details." >&2;}
20801    { (exit 1); exit 1; }; }
20802 else
20803   cat >conftest.$ac_ext <<_ACEOF
20804 #line $LINENO "configure"
20805 /* confdefs.h.  */
20806 _ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h.  */
20810 #include <stdio.h>
20811                                  #include <stdlib.h>
20812 int
20813 main ()
20814 {
20815
20816                                  volatile double A, B;
20817                                  char Buffer[100];
20818                                  A = 1;
20819                                  A /= 10.0;
20820                                  sprintf(Buffer, "%a", A);
20821                                  B = atof(Buffer);
20822                                  if (A != B)
20823                                                          return (1);
20824                                  if (A != 0x1.999999999999ap-4)
20825                                                          return (1);
20826                                  return (0);
20827   ;
20828   return 0;
20829 }
20830 _ACEOF
20831 rm -f conftest$ac_exeext
20832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20833   (eval $ac_link) 2>&5
20834   ac_status=$?
20835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20838   (eval $ac_try) 2>&5
20839   ac_status=$?
20840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841   (exit $ac_status); }; }; then
20842   ac_c_printf_a=yes
20843 else
20844   echo "$as_me: program exited with status $ac_status" >&5
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20847
20848 ( exit $ac_status )
20849 ac_c_printf_a=no
20850 fi
20851 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20852 fi
20853         ac_ext=c
20854 ac_cpp='$CPP $CPPFLAGS'
20855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20858
20859         if test "$ac_c_printf_a" = "yes"; then
20860
20861 cat >>confdefs.h <<\_ACEOF
20862 #define HAVE_PRINTF_A 1
20863 _ACEOF
20864
20865         fi
20866
20867
20868 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20869 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20870 if test "${ac_cv_cxx_namespaces+set}" = set; then
20871   echo $ECHO_N "(cached) $ECHO_C" >&6
20872 else
20873
20874
20875  ac_ext=cc
20876 ac_cpp='$CXXCPP $CPPFLAGS'
20877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20880
20881  cat >conftest.$ac_ext <<_ACEOF
20882 #line $LINENO "configure"
20883 /* confdefs.h.  */
20884 _ACEOF
20885 cat confdefs.h >>conftest.$ac_ext
20886 cat >>conftest.$ac_ext <<_ACEOF
20887 /* end confdefs.h.  */
20888 namespace Outer { namespace Inner { int i = 0; }}
20889 int
20890 main ()
20891 {
20892 using namespace Outer::Inner; return i;
20893   ;
20894   return 0;
20895 }
20896 _ACEOF
20897 rm -f conftest.$ac_objext
20898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20899   (eval $ac_compile) 2>&5
20900   ac_status=$?
20901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902   (exit $ac_status); } &&
20903          { ac_try='test -s conftest.$ac_objext'
20904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905   (eval $ac_try) 2>&5
20906   ac_status=$?
20907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908   (exit $ac_status); }; }; then
20909   ac_cv_cxx_namespaces=yes
20910 else
20911   echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20913
20914 ac_cv_cxx_namespaces=no
20915 fi
20916 rm -f conftest.$ac_objext conftest.$ac_ext
20917  ac_ext=c
20918 ac_cpp='$CPP $CPPFLAGS'
20919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20922
20923
20924 fi
20925 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20926 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20927 if test "$ac_cv_cxx_namespaces" = yes; then
20928
20929 cat >>confdefs.h <<\_ACEOF
20930 #define HAVE_NAMESPACES
20931 _ACEOF
20932
20933 fi
20934
20935 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20936 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20937 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20938   echo $ECHO_N "(cached) $ECHO_C" >&6
20939 else
20940
20941
20942
20943   ac_ext=cc
20944 ac_cpp='$CXXCPP $CPPFLAGS'
20945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20948
20949   cat >conftest.$ac_ext <<_ACEOF
20950 #line $LINENO "configure"
20951 /* confdefs.h.  */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h.  */
20956 #include <ext/hash_map>
20957 #ifdef HAVE_NAMESPACES
20958 using namespace std;
20959 #endif
20960 int
20961 main ()
20962 {
20963 hash_map<int, int> t;
20964   ;
20965   return 0;
20966 }
20967 _ACEOF
20968 rm -f conftest.$ac_objext
20969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20970   (eval $ac_compile) 2>&5
20971   ac_status=$?
20972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973   (exit $ac_status); } &&
20974          { ac_try='test -s conftest.$ac_objext'
20975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976   (eval $ac_try) 2>&5
20977   ac_status=$?
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   (exit $ac_status); }; }; then
20980   ac_cv_cxx_have_std_ext_hash_map=yes
20981 else
20982   echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20984
20985 ac_cv_cxx_have_std_ext_hash_map=no
20986 fi
20987 rm -f conftest.$ac_objext conftest.$ac_ext
20988   ac_ext=c
20989 ac_cpp='$CPP $CPPFLAGS'
20990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20993
20994 fi
20995 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20996 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20997  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
20998
20999 cat >>confdefs.h <<\_ACEOF
21000 #define HAVE_STD_EXT_HASH_MAP
21001 _ACEOF
21002
21003  fi
21004  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21005 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21006 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21007   echo $ECHO_N "(cached) $ECHO_C" >&6
21008 else
21009
21010
21011
21012   ac_ext=cc
21013 ac_cpp='$CXXCPP $CPPFLAGS'
21014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21017
21018   cat >conftest.$ac_ext <<_ACEOF
21019 #line $LINENO "configure"
21020 /* confdefs.h.  */
21021 _ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h.  */
21025 #include <ext/hash_map>
21026 #ifdef HAVE_NAMESPACES
21027 using namespace __gnu_cxx;
21028 #endif
21029 int
21030 main ()
21031 {
21032 hash_map<int,int> t;
21033   ;
21034   return 0;
21035 }
21036 _ACEOF
21037 rm -f conftest.$ac_objext
21038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21039   (eval $ac_compile) 2>&5
21040   ac_status=$?
21041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042   (exit $ac_status); } &&
21043          { ac_try='test -s conftest.$ac_objext'
21044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21045   (eval $ac_try) 2>&5
21046   ac_status=$?
21047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048   (exit $ac_status); }; }; then
21049   ac_cv_cxx_have_gnu_ext_hash_map=yes
21050 else
21051   echo "$as_me: failed program was:" >&5
21052 sed 's/^/| /' conftest.$ac_ext >&5
21053
21054 ac_cv_cxx_have_gnu_ext_hash_map=no
21055 fi
21056 rm -f conftest.$ac_objext conftest.$ac_ext
21057   ac_ext=c
21058 ac_cpp='$CPP $CPPFLAGS'
21059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21062
21063 fi
21064 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21065 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21066  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
21067
21068 cat >>confdefs.h <<\_ACEOF
21069 #define HAVE_GNU_EXT_HASH_MAP
21070 _ACEOF
21071
21072  fi
21073  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21074 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21075 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21076   echo $ECHO_N "(cached) $ECHO_C" >&6
21077 else
21078
21079
21080
21081   ac_ext=cc
21082 ac_cpp='$CXXCPP $CPPFLAGS'
21083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21086
21087   cat >conftest.$ac_ext <<_ACEOF
21088 #line $LINENO "configure"
21089 /* confdefs.h.  */
21090 _ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h.  */
21094 #include <hash_map>
21095 int
21096 main ()
21097 {
21098 hash_map<int,int> t;
21099   ;
21100   return 0;
21101 }
21102 _ACEOF
21103 rm -f conftest.$ac_objext
21104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21105   (eval $ac_compile) 2>&5
21106   ac_status=$?
21107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108   (exit $ac_status); } &&
21109          { ac_try='test -s conftest.$ac_objext'
21110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111   (eval $ac_try) 2>&5
21112   ac_status=$?
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); }; }; then
21115   ac_cv_cxx_have_global_hash_map=yes
21116 else
21117   echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21119
21120 ac_cv_cxx_have_global_hash_map=no
21121 fi
21122 rm -f conftest.$ac_objext conftest.$ac_ext
21123   ac_ext=c
21124 ac_cpp='$CPP $CPPFLAGS'
21125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21128
21129 fi
21130 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21131 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21132  if test "$ac_cv_cxx_have_global_hash_map" = yes; then
21133
21134 cat >>confdefs.h <<\_ACEOF
21135 #define HAVE_GLOBAL_HASH_MAP
21136 _ACEOF
21137
21138  fi
21139 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21140 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21141 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21142   echo $ECHO_N "(cached) $ECHO_C" >&6
21143 else
21144
21145
21146
21147   ac_ext=cc
21148 ac_cpp='$CXXCPP $CPPFLAGS'
21149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21152
21153   cat >conftest.$ac_ext <<_ACEOF
21154 #line $LINENO "configure"
21155 /* confdefs.h.  */
21156 _ACEOF
21157 cat confdefs.h >>conftest.$ac_ext
21158 cat >>conftest.$ac_ext <<_ACEOF
21159 /* end confdefs.h.  */
21160 #include <ext/hash_set>
21161 #ifdef HAVE_NAMESPACES
21162 using namespace std;
21163 #endif
21164 int
21165 main ()
21166 {
21167 hash_set<int> t;
21168   ;
21169   return 0;
21170 }
21171 _ACEOF
21172 rm -f conftest.$ac_objext
21173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21174   (eval $ac_compile) 2>&5
21175   ac_status=$?
21176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177   (exit $ac_status); } &&
21178          { ac_try='test -s conftest.$ac_objext'
21179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21180   (eval $ac_try) 2>&5
21181   ac_status=$?
21182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183   (exit $ac_status); }; }; then
21184   ac_cv_cxx_have_std_ext_hash_set=yes
21185 else
21186   echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21188
21189 ac_cv_cxx_have_std_ext_hash_set=no
21190 fi
21191 rm -f conftest.$ac_objext conftest.$ac_ext
21192   ac_ext=c
21193 ac_cpp='$CPP $CPPFLAGS'
21194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21197
21198 fi
21199 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21200 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21201  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
21202
21203 cat >>confdefs.h <<\_ACEOF
21204 #define HAVE_STD_EXT_HASH_SET
21205 _ACEOF
21206
21207  fi
21208  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21209 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21210 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21211   echo $ECHO_N "(cached) $ECHO_C" >&6
21212 else
21213
21214
21215
21216   ac_ext=cc
21217 ac_cpp='$CXXCPP $CPPFLAGS'
21218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21221
21222   cat >conftest.$ac_ext <<_ACEOF
21223 #line $LINENO "configure"
21224 /* confdefs.h.  */
21225 _ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h.  */
21229 #include <ext/hash_set>
21230 #ifdef HAVE_NAMESPACES
21231 using namespace __gnu_cxx;
21232 #endif
21233 int
21234 main ()
21235 {
21236 hash_set<int> t;
21237   ;
21238   return 0;
21239 }
21240 _ACEOF
21241 rm -f conftest.$ac_objext
21242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21243   (eval $ac_compile) 2>&5
21244   ac_status=$?
21245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246   (exit $ac_status); } &&
21247          { ac_try='test -s conftest.$ac_objext'
21248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249   (eval $ac_try) 2>&5
21250   ac_status=$?
21251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252   (exit $ac_status); }; }; then
21253   ac_cv_cxx_have_gnu_ext_hash_set=yes
21254 else
21255   echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21257
21258 ac_cv_cxx_have_gnu_ext_hash_set=no
21259 fi
21260 rm -f conftest.$ac_objext conftest.$ac_ext
21261   ac_ext=c
21262 ac_cpp='$CPP $CPPFLAGS'
21263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21266
21267 fi
21268 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21269 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21270  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
21271
21272 cat >>confdefs.h <<\_ACEOF
21273 #define HAVE_GNU_EXT_HASH_SET
21274 _ACEOF
21275
21276  fi
21277  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21278 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21279 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21280   echo $ECHO_N "(cached) $ECHO_C" >&6
21281 else
21282
21283
21284
21285   ac_ext=cc
21286 ac_cpp='$CXXCPP $CPPFLAGS'
21287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21290
21291   cat >conftest.$ac_ext <<_ACEOF
21292 #line $LINENO "configure"
21293 /* confdefs.h.  */
21294 _ACEOF
21295 cat confdefs.h >>conftest.$ac_ext
21296 cat >>conftest.$ac_ext <<_ACEOF
21297 /* end confdefs.h.  */
21298 #include <hash_set>
21299 int
21300 main ()
21301 {
21302 hash_set<int> t; return 0;
21303   ;
21304   return 0;
21305 }
21306 _ACEOF
21307 rm -f conftest.$ac_objext
21308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21309   (eval $ac_compile) 2>&5
21310   ac_status=$?
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); } &&
21313          { ac_try='test -s conftest.$ac_objext'
21314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315   (eval $ac_try) 2>&5
21316   ac_status=$?
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); }; }; then
21319   ac_cv_cxx_have_global_hash_set=yes
21320 else
21321   echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21323
21324 ac_cv_cxx_have_global_hash_set=no
21325 fi
21326 rm -f conftest.$ac_objext conftest.$ac_ext
21327   ac_ext=c
21328 ac_cpp='$CPP $CPPFLAGS'
21329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21332
21333 fi
21334 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21335 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21336  if test "$ac_cv_cxx_have_global_hash_set" = yes; then
21337
21338 cat >>confdefs.h <<\_ACEOF
21339 #define HAVE_GLOBAL_HASH_SET
21340 _ACEOF
21341
21342  fi
21343 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21344 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21345 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21346   echo $ECHO_N "(cached) $ECHO_C" >&6
21347 else
21348
21349
21350
21351   ac_ext=cc
21352 ac_cpp='$CXXCPP $CPPFLAGS'
21353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21356
21357   cat >conftest.$ac_ext <<_ACEOF
21358 #line $LINENO "configure"
21359 /* confdefs.h.  */
21360 _ACEOF
21361 cat confdefs.h >>conftest.$ac_ext
21362 cat >>conftest.$ac_ext <<_ACEOF
21363 /* end confdefs.h.  */
21364 #include <ext/slist>
21365 #ifdef HAVE_NAMESPACES
21366 using namespace std;
21367 #endif
21368 int
21369 main ()
21370 {
21371 slist<int> s; return 0;
21372   ;
21373   return 0;
21374 }
21375 _ACEOF
21376 rm -f conftest.$ac_objext
21377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21378   (eval $ac_compile) 2>&5
21379   ac_status=$?
21380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381   (exit $ac_status); } &&
21382          { ac_try='test -s conftest.$ac_objext'
21383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384   (eval $ac_try) 2>&5
21385   ac_status=$?
21386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387   (exit $ac_status); }; }; then
21388   ac_cv_cxx_have_ext_slist=std
21389 else
21390   echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21392
21393 ac_cv_cxx_have_ext_slist=no
21394 fi
21395 rm -f conftest.$ac_objext conftest.$ac_ext
21396   cat >conftest.$ac_ext <<_ACEOF
21397 #line $LINENO "configure"
21398 /* confdefs.h.  */
21399 _ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h.  */
21403 #include <ext/slist>
21404 #ifdef HAVE_NAMESPACES
21405 using namespace __gnu_cxx;
21406 #endif
21407 int
21408 main ()
21409 {
21410 slist<int> s; return 0;
21411   ;
21412   return 0;
21413 }
21414 _ACEOF
21415 rm -f conftest.$ac_objext
21416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21417   (eval $ac_compile) 2>&5
21418   ac_status=$?
21419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420   (exit $ac_status); } &&
21421          { ac_try='test -s conftest.$ac_objext'
21422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423   (eval $ac_try) 2>&5
21424   ac_status=$?
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); }; }; then
21427   ac_cv_cxx_have_ext_slist=gnu
21428 else
21429   echo "$as_me: failed program was:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21431
21432 ac_cv_cxx_have_ext_slist=no
21433 fi
21434 rm -f conftest.$ac_objext conftest.$ac_ext
21435
21436   ac_ext=c
21437 ac_cpp='$CPP $CPPFLAGS'
21438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21441
21442
21443 fi
21444 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21445 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21446 if test "$ac_cv_cxx_have_ext_slist" = std; then
21447
21448 cat >>confdefs.h <<\_ACEOF
21449 #define HAVE_EXT_SLIST std
21450 _ACEOF
21451
21452 fi
21453 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21454
21455 cat >>confdefs.h <<\_ACEOF
21456 #define HAVE_EXT_SLIST gnu
21457 _ACEOF
21458
21459 fi
21460
21461 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21462 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21463 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21464   echo $ECHO_N "(cached) $ECHO_C" >&6
21465 else
21466
21467
21468
21469   ac_ext=cc
21470 ac_cpp='$CXXCPP $CPPFLAGS'
21471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21474
21475   cat >conftest.$ac_ext <<_ACEOF
21476 #line $LINENO "configure"
21477 /* confdefs.h.  */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h.  */
21482 #include <iterator>
21483 #ifdef HAVE_NAMESPACES
21484 using namespace std;
21485 #endif
21486 int
21487 main ()
21488 {
21489 iterator<int,int,int> t; return 0;
21490   ;
21491   return 0;
21492 }
21493 _ACEOF
21494 rm -f conftest.$ac_objext
21495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21496   (eval $ac_compile) 2>&5
21497   ac_status=$?
21498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499   (exit $ac_status); } &&
21500          { ac_try='test -s conftest.$ac_objext'
21501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502   (eval $ac_try) 2>&5
21503   ac_status=$?
21504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505   (exit $ac_status); }; }; then
21506   ac_cv_cxx_have_std_iterator=yes
21507 else
21508   echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21510
21511 ac_cv_cxx_have_std_iterator=no
21512 fi
21513 rm -f conftest.$ac_objext conftest.$ac_ext
21514   ac_ext=c
21515 ac_cpp='$CPP $CPPFLAGS'
21516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21519
21520
21521 fi
21522 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21523 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21524 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21525
21526 cat >>confdefs.h <<\_ACEOF
21527 #define HAVE_STD_ITERATOR
21528 _ACEOF
21529
21530 fi
21531
21532 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21533 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21534 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21535   echo $ECHO_N "(cached) $ECHO_C" >&6
21536 else
21537
21538
21539
21540   ac_ext=cc
21541 ac_cpp='$CXXCPP $CPPFLAGS'
21542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21545
21546   cat >conftest.$ac_ext <<_ACEOF
21547 #line $LINENO "configure"
21548 /* confdefs.h.  */
21549 _ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h.  */
21553 #include <iterator>
21554 #ifdef HAVE_NAMESPACES
21555 using namespace std;
21556 #endif
21557 int
21558 main ()
21559 {
21560 bidirectional_iterator<int,int> t; return 0;
21561   ;
21562   return 0;
21563 }
21564 _ACEOF
21565 rm -f conftest.$ac_objext
21566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21567   (eval $ac_compile) 2>&5
21568   ac_status=$?
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); } &&
21571          { ac_try='test -s conftest.$ac_objext'
21572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21573   (eval $ac_try) 2>&5
21574   ac_status=$?
21575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576   (exit $ac_status); }; }; then
21577   ac_cv_cxx_have_bi_iterator=yes
21578 else
21579   echo "$as_me: failed program was:" >&5
21580 sed 's/^/| /' conftest.$ac_ext >&5
21581
21582 ac_cv_cxx_have_bi_iterator=no
21583 fi
21584 rm -f conftest.$ac_objext conftest.$ac_ext
21585   ac_ext=c
21586 ac_cpp='$CPP $CPPFLAGS'
21587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21590
21591
21592 fi
21593 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21594 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21595 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21596
21597 cat >>confdefs.h <<\_ACEOF
21598 #define HAVE_BI_ITERATOR
21599 _ACEOF
21600
21601 fi
21602
21603 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21604 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21605 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21606   echo $ECHO_N "(cached) $ECHO_C" >&6
21607 else
21608
21609
21610
21611   ac_ext=cc
21612 ac_cpp='$CXXCPP $CPPFLAGS'
21613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21616
21617   cat >conftest.$ac_ext <<_ACEOF
21618 #line $LINENO "configure"
21619 /* confdefs.h.  */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h.  */
21624 #include <iterator>
21625 #ifdef HAVE_NAMESPACES
21626 using namespace std;
21627 #endif
21628 int
21629 main ()
21630 {
21631 forward_iterator<int,int> t; return 0;
21632   ;
21633   return 0;
21634 }
21635 _ACEOF
21636 rm -f conftest.$ac_objext
21637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21638   (eval $ac_compile) 2>&5
21639   ac_status=$?
21640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641   (exit $ac_status); } &&
21642          { ac_try='test -s conftest.$ac_objext'
21643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644   (eval $ac_try) 2>&5
21645   ac_status=$?
21646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647   (exit $ac_status); }; }; then
21648   ac_cv_cxx_have_fwd_iterator=yes
21649 else
21650   echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21652
21653 ac_cv_cxx_have_fwd_iterator=no
21654 fi
21655 rm -f conftest.$ac_objext conftest.$ac_ext
21656   ac_ext=c
21657 ac_cpp='$CPP $CPPFLAGS'
21658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21661
21662
21663 fi
21664 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21665 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21666 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21667
21668 cat >>confdefs.h <<\_ACEOF
21669 #define HAVE_FWD_ITERATOR
21670 _ACEOF
21671
21672 fi
21673
21674
21675 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21676 # for constant arguments.  Useless!
21677 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21678 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21679 if test "${ac_cv_working_alloca_h+set}" = set; then
21680   echo $ECHO_N "(cached) $ECHO_C" >&6
21681 else
21682   cat >conftest.$ac_ext <<_ACEOF
21683 #line $LINENO "configure"
21684 /* confdefs.h.  */
21685 _ACEOF
21686 cat confdefs.h >>conftest.$ac_ext
21687 cat >>conftest.$ac_ext <<_ACEOF
21688 /* end confdefs.h.  */
21689 #include <alloca.h>
21690 int
21691 main ()
21692 {
21693 char *p = (char *) alloca (2 * sizeof (int));
21694   ;
21695   return 0;
21696 }
21697 _ACEOF
21698 rm -f conftest.$ac_objext conftest$ac_exeext
21699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21700   (eval $ac_link) 2>&5
21701   ac_status=$?
21702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703   (exit $ac_status); } &&
21704          { ac_try='test -s conftest$ac_exeext'
21705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21706   (eval $ac_try) 2>&5
21707   ac_status=$?
21708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709   (exit $ac_status); }; }; then
21710   ac_cv_working_alloca_h=yes
21711 else
21712   echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21714
21715 ac_cv_working_alloca_h=no
21716 fi
21717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21718 fi
21719 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21720 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21721 if test $ac_cv_working_alloca_h = yes; then
21722
21723 cat >>confdefs.h <<\_ACEOF
21724 #define HAVE_ALLOCA_H 1
21725 _ACEOF
21726
21727 fi
21728
21729 echo "$as_me:$LINENO: checking for alloca" >&5
21730 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21731 if test "${ac_cv_func_alloca_works+set}" = set; then
21732   echo $ECHO_N "(cached) $ECHO_C" >&6
21733 else
21734   cat >conftest.$ac_ext <<_ACEOF
21735 #line $LINENO "configure"
21736 /* confdefs.h.  */
21737 _ACEOF
21738 cat confdefs.h >>conftest.$ac_ext
21739 cat >>conftest.$ac_ext <<_ACEOF
21740 /* end confdefs.h.  */
21741 #ifdef __GNUC__
21742 # define alloca __builtin_alloca
21743 #else
21744 # ifdef _MSC_VER
21745 #  include <malloc.h>
21746 #  define alloca _alloca
21747 # else
21748 #  if HAVE_ALLOCA_H
21749 #   include <alloca.h>
21750 #  else
21751 #   ifdef _AIX
21752  #pragma alloca
21753 #   else
21754 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21755 char *alloca ();
21756 #    endif
21757 #   endif
21758 #  endif
21759 # endif
21760 #endif
21761
21762 int
21763 main ()
21764 {
21765 char *p = (char *) alloca (1);
21766   ;
21767   return 0;
21768 }
21769 _ACEOF
21770 rm -f conftest.$ac_objext conftest$ac_exeext
21771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21772   (eval $ac_link) 2>&5
21773   ac_status=$?
21774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775   (exit $ac_status); } &&
21776          { ac_try='test -s conftest$ac_exeext'
21777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21778   (eval $ac_try) 2>&5
21779   ac_status=$?
21780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781   (exit $ac_status); }; }; then
21782   ac_cv_func_alloca_works=yes
21783 else
21784   echo "$as_me: failed program was:" >&5
21785 sed 's/^/| /' conftest.$ac_ext >&5
21786
21787 ac_cv_func_alloca_works=no
21788 fi
21789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21790 fi
21791 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21792 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21793
21794 if test $ac_cv_func_alloca_works = yes; then
21795
21796 cat >>confdefs.h <<\_ACEOF
21797 #define HAVE_ALLOCA 1
21798 _ACEOF
21799
21800 else
21801   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21802 # that cause trouble.  Some versions do not even contain alloca or
21803 # contain a buggy version.  If you still want to use their alloca,
21804 # use ar to extract alloca.o from them instead of compiling alloca.c.
21805
21806 ALLOCA=alloca.$ac_objext
21807
21808 cat >>confdefs.h <<\_ACEOF
21809 #define C_ALLOCA 1
21810 _ACEOF
21811
21812
21813 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21814 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21815 if test "${ac_cv_os_cray+set}" = set; then
21816   echo $ECHO_N "(cached) $ECHO_C" >&6
21817 else
21818   cat >conftest.$ac_ext <<_ACEOF
21819 #line $LINENO "configure"
21820 /* confdefs.h.  */
21821 _ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h.  */
21825 #if defined(CRAY) && ! defined(CRAY2)
21826 webecray
21827 #else
21828 wenotbecray
21829 #endif
21830
21831 _ACEOF
21832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21833   $EGREP "webecray" >/dev/null 2>&1; then
21834   ac_cv_os_cray=yes
21835 else
21836   ac_cv_os_cray=no
21837 fi
21838 rm -f conftest*
21839
21840 fi
21841 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21842 echo "${ECHO_T}$ac_cv_os_cray" >&6
21843 if test $ac_cv_os_cray = yes; then
21844   for ac_func in _getb67 GETB67 getb67; do
21845     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21846 echo "$as_me:$LINENO: checking for $ac_func" >&5
21847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21848 if eval "test \"\${$as_ac_var+set}\" = set"; then
21849   echo $ECHO_N "(cached) $ECHO_C" >&6
21850 else
21851   cat >conftest.$ac_ext <<_ACEOF
21852 #line $LINENO "configure"
21853 /* confdefs.h.  */
21854 _ACEOF
21855 cat confdefs.h >>conftest.$ac_ext
21856 cat >>conftest.$ac_ext <<_ACEOF
21857 /* end confdefs.h.  */
21858 /* System header to define __stub macros and hopefully few prototypes,
21859     which can conflict with char $ac_func (); below.
21860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21861     <limits.h> exists even on freestanding compilers.  */
21862 #ifdef __STDC__
21863 # include <limits.h>
21864 #else
21865 # include <assert.h>
21866 #endif
21867 /* Override any gcc2 internal prototype to avoid an error.  */
21868 #ifdef __cplusplus
21869 extern "C"
21870 {
21871 #endif
21872 /* We use char because int might match the return type of a gcc2
21873    builtin and then its argument prototype would still apply.  */
21874 char $ac_func ();
21875 /* The GNU C library defines this for functions which it implements
21876     to always fail with ENOSYS.  Some functions are actually named
21877     something starting with __ and the normal name is an alias.  */
21878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21879 choke me
21880 #else
21881 char (*f) () = $ac_func;
21882 #endif
21883 #ifdef __cplusplus
21884 }
21885 #endif
21886
21887 int
21888 main ()
21889 {
21890 return f != $ac_func;
21891   ;
21892   return 0;
21893 }
21894 _ACEOF
21895 rm -f conftest.$ac_objext conftest$ac_exeext
21896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21897   (eval $ac_link) 2>&5
21898   ac_status=$?
21899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900   (exit $ac_status); } &&
21901          { ac_try='test -s conftest$ac_exeext'
21902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21903   (eval $ac_try) 2>&5
21904   ac_status=$?
21905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906   (exit $ac_status); }; }; then
21907   eval "$as_ac_var=yes"
21908 else
21909   echo "$as_me: failed program was:" >&5
21910 sed 's/^/| /' conftest.$ac_ext >&5
21911
21912 eval "$as_ac_var=no"
21913 fi
21914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21915 fi
21916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21918 if test `eval echo '${'$as_ac_var'}'` = yes; then
21919
21920 cat >>confdefs.h <<_ACEOF
21921 #define CRAY_STACKSEG_END $ac_func
21922 _ACEOF
21923
21924     break
21925 fi
21926
21927   done
21928 fi
21929
21930 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21931 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21932 if test "${ac_cv_c_stack_direction+set}" = set; then
21933   echo $ECHO_N "(cached) $ECHO_C" >&6
21934 else
21935   if test "$cross_compiling" = yes; then
21936   ac_cv_c_stack_direction=0
21937 else
21938   cat >conftest.$ac_ext <<_ACEOF
21939 #line $LINENO "configure"
21940 /* confdefs.h.  */
21941 _ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h.  */
21945 int
21946 find_stack_direction ()
21947 {
21948   static char *addr = 0;
21949   auto char dummy;
21950   if (addr == 0)
21951     {
21952       addr = &dummy;
21953       return find_stack_direction ();
21954     }
21955   else
21956     return (&dummy > addr) ? 1 : -1;
21957 }
21958
21959 int
21960 main ()
21961 {
21962   exit (find_stack_direction () < 0);
21963 }
21964 _ACEOF
21965 rm -f conftest$ac_exeext
21966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21967   (eval $ac_link) 2>&5
21968   ac_status=$?
21969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21972   (eval $ac_try) 2>&5
21973   ac_status=$?
21974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975   (exit $ac_status); }; }; then
21976   ac_cv_c_stack_direction=1
21977 else
21978   echo "$as_me: program exited with status $ac_status" >&5
21979 echo "$as_me: failed program was:" >&5
21980 sed 's/^/| /' conftest.$ac_ext >&5
21981
21982 ( exit $ac_status )
21983 ac_cv_c_stack_direction=-1
21984 fi
21985 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21986 fi
21987 fi
21988 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21989 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21990
21991 cat >>confdefs.h <<_ACEOF
21992 #define STACK_DIRECTION $ac_cv_c_stack_direction
21993 _ACEOF
21994
21995
21996 fi
21997
21998 if test $ac_cv_c_compiler_gnu = yes; then
21999     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
22000 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
22001 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
22002   echo $ECHO_N "(cached) $ECHO_C" >&6
22003 else
22004     ac_pattern="Autoconf.*'x'"
22005   cat >conftest.$ac_ext <<_ACEOF
22006 #line $LINENO "configure"
22007 /* confdefs.h.  */
22008 _ACEOF
22009 cat confdefs.h >>conftest.$ac_ext
22010 cat >>conftest.$ac_ext <<_ACEOF
22011 /* end confdefs.h.  */
22012 #include <sgtty.h>
22013 Autoconf TIOCGETP
22014 _ACEOF
22015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22016   $EGREP "$ac_pattern" >/dev/null 2>&1; then
22017   ac_cv_prog_gcc_traditional=yes
22018 else
22019   ac_cv_prog_gcc_traditional=no
22020 fi
22021 rm -f conftest*
22022
22023
22024   if test $ac_cv_prog_gcc_traditional = no; then
22025     cat >conftest.$ac_ext <<_ACEOF
22026 #line $LINENO "configure"
22027 /* confdefs.h.  */
22028 _ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h.  */
22032 #include <termio.h>
22033 Autoconf TCGETA
22034 _ACEOF
22035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22036   $EGREP "$ac_pattern" >/dev/null 2>&1; then
22037   ac_cv_prog_gcc_traditional=yes
22038 fi
22039 rm -f conftest*
22040
22041   fi
22042 fi
22043 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
22044 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
22045   if test $ac_cv_prog_gcc_traditional = yes; then
22046     CC="$CC -traditional"
22047   fi
22048 fi
22049
22050 echo "$as_me:$LINENO: checking for working memcmp" >&5
22051 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22052 if test "${ac_cv_func_memcmp_working+set}" = set; then
22053   echo $ECHO_N "(cached) $ECHO_C" >&6
22054 else
22055   if test "$cross_compiling" = yes; then
22056   ac_cv_func_memcmp_working=no
22057 else
22058   cat >conftest.$ac_ext <<_ACEOF
22059 #line $LINENO "configure"
22060 /* confdefs.h.  */
22061 _ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h.  */
22065
22066 int
22067 main ()
22068 {
22069
22070   /* Some versions of memcmp are not 8-bit clean.  */
22071   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22072   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22073     exit (1);
22074
22075   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22076      or more and with at least one buffer not starting on a 4-byte boundary.
22077      William Lewis provided this test program.   */
22078   {
22079     char foo[21];
22080     char bar[21];
22081     int i;
22082     for (i = 0; i < 4; i++)
22083       {
22084         char *a = foo + i;
22085         char *b = bar + i;
22086         strcpy (a, "--------01111111");
22087         strcpy (b, "--------10000000");
22088         if (memcmp (a, b, 16) >= 0)
22089           exit (1);
22090       }
22091     exit (0);
22092   }
22093
22094   ;
22095   return 0;
22096 }
22097 _ACEOF
22098 rm -f conftest$ac_exeext
22099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22100   (eval $ac_link) 2>&5
22101   ac_status=$?
22102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22105   (eval $ac_try) 2>&5
22106   ac_status=$?
22107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108   (exit $ac_status); }; }; then
22109   ac_cv_func_memcmp_working=yes
22110 else
22111   echo "$as_me: program exited with status $ac_status" >&5
22112 echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22114
22115 ( exit $ac_status )
22116 ac_cv_func_memcmp_working=no
22117 fi
22118 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22119 fi
22120 fi
22121 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22122 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22123 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22124
22125
22126
22127 for ac_header in stdlib.h unistd.h
22128 do
22129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22131   echo "$as_me:$LINENO: checking for $ac_header" >&5
22132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22134   echo $ECHO_N "(cached) $ECHO_C" >&6
22135 fi
22136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22138 else
22139   # Is the header compilable?
22140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22142 cat >conftest.$ac_ext <<_ACEOF
22143 #line $LINENO "configure"
22144 /* confdefs.h.  */
22145 _ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h.  */
22149 $ac_includes_default
22150 #include <$ac_header>
22151 _ACEOF
22152 rm -f conftest.$ac_objext
22153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22154   (eval $ac_compile) 2>&5
22155   ac_status=$?
22156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157   (exit $ac_status); } &&
22158          { ac_try='test -s conftest.$ac_objext'
22159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22160   (eval $ac_try) 2>&5
22161   ac_status=$?
22162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163   (exit $ac_status); }; }; then
22164   ac_header_compiler=yes
22165 else
22166   echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22168
22169 ac_header_compiler=no
22170 fi
22171 rm -f conftest.$ac_objext conftest.$ac_ext
22172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22173 echo "${ECHO_T}$ac_header_compiler" >&6
22174
22175 # Is the header present?
22176 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22178 cat >conftest.$ac_ext <<_ACEOF
22179 #line $LINENO "configure"
22180 /* confdefs.h.  */
22181 _ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h.  */
22185 #include <$ac_header>
22186 _ACEOF
22187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22188   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22189   ac_status=$?
22190   grep -v '^ *+' conftest.er1 >conftest.err
22191   rm -f conftest.er1
22192   cat conftest.err >&5
22193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194   (exit $ac_status); } >/dev/null; then
22195   if test -s conftest.err; then
22196     ac_cpp_err=$ac_c_preproc_warn_flag
22197   else
22198     ac_cpp_err=
22199   fi
22200 else
22201   ac_cpp_err=yes
22202 fi
22203 if test -z "$ac_cpp_err"; then
22204   ac_header_preproc=yes
22205 else
22206   echo "$as_me: failed program was:" >&5
22207 sed 's/^/| /' conftest.$ac_ext >&5
22208
22209   ac_header_preproc=no
22210 fi
22211 rm -f conftest.err conftest.$ac_ext
22212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22213 echo "${ECHO_T}$ac_header_preproc" >&6
22214
22215 # So?  What about this header?
22216 case $ac_header_compiler:$ac_header_preproc in
22217   yes:no )
22218     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22222     (
22223       cat <<\_ASBOX
22224 ## ------------------------------------ ##
22225 ## Report this to bug-autoconf@gnu.org. ##
22226 ## ------------------------------------ ##
22227 _ASBOX
22228     ) |
22229       sed "s/^/$as_me: WARNING:     /" >&2
22230     ;;
22231   no:yes )
22232     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22234     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22236     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22238     (
22239       cat <<\_ASBOX
22240 ## ------------------------------------ ##
22241 ## Report this to bug-autoconf@gnu.org. ##
22242 ## ------------------------------------ ##
22243 _ASBOX
22244     ) |
22245       sed "s/^/$as_me: WARNING:     /" >&2
22246     ;;
22247 esac
22248 echo "$as_me:$LINENO: checking for $ac_header" >&5
22249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22251   echo $ECHO_N "(cached) $ECHO_C" >&6
22252 else
22253   eval "$as_ac_Header=$ac_header_preproc"
22254 fi
22255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22257
22258 fi
22259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22260   cat >>confdefs.h <<_ACEOF
22261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22262 _ACEOF
22263
22264 fi
22265
22266 done
22267
22268
22269 for ac_func in getpagesize
22270 do
22271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22272 echo "$as_me:$LINENO: checking for $ac_func" >&5
22273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22274 if eval "test \"\${$as_ac_var+set}\" = set"; then
22275   echo $ECHO_N "(cached) $ECHO_C" >&6
22276 else
22277   cat >conftest.$ac_ext <<_ACEOF
22278 #line $LINENO "configure"
22279 /* confdefs.h.  */
22280 _ACEOF
22281 cat confdefs.h >>conftest.$ac_ext
22282 cat >>conftest.$ac_ext <<_ACEOF
22283 /* end confdefs.h.  */
22284 /* System header to define __stub macros and hopefully few prototypes,
22285     which can conflict with char $ac_func (); below.
22286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22287     <limits.h> exists even on freestanding compilers.  */
22288 #ifdef __STDC__
22289 # include <limits.h>
22290 #else
22291 # include <assert.h>
22292 #endif
22293 /* Override any gcc2 internal prototype to avoid an error.  */
22294 #ifdef __cplusplus
22295 extern "C"
22296 {
22297 #endif
22298 /* We use char because int might match the return type of a gcc2
22299    builtin and then its argument prototype would still apply.  */
22300 char $ac_func ();
22301 /* The GNU C library defines this for functions which it implements
22302     to always fail with ENOSYS.  Some functions are actually named
22303     something starting with __ and the normal name is an alias.  */
22304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22305 choke me
22306 #else
22307 char (*f) () = $ac_func;
22308 #endif
22309 #ifdef __cplusplus
22310 }
22311 #endif
22312
22313 int
22314 main ()
22315 {
22316 return f != $ac_func;
22317   ;
22318   return 0;
22319 }
22320 _ACEOF
22321 rm -f conftest.$ac_objext conftest$ac_exeext
22322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22323   (eval $ac_link) 2>&5
22324   ac_status=$?
22325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326   (exit $ac_status); } &&
22327          { ac_try='test -s conftest$ac_exeext'
22328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329   (eval $ac_try) 2>&5
22330   ac_status=$?
22331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332   (exit $ac_status); }; }; then
22333   eval "$as_ac_var=yes"
22334 else
22335   echo "$as_me: failed program was:" >&5
22336 sed 's/^/| /' conftest.$ac_ext >&5
22337
22338 eval "$as_ac_var=no"
22339 fi
22340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22341 fi
22342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22344 if test `eval echo '${'$as_ac_var'}'` = yes; then
22345   cat >>confdefs.h <<_ACEOF
22346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22347 _ACEOF
22348
22349 fi
22350 done
22351
22352 echo "$as_me:$LINENO: checking for working mmap" >&5
22353 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22354 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22355   echo $ECHO_N "(cached) $ECHO_C" >&6
22356 else
22357   if test "$cross_compiling" = yes; then
22358   ac_cv_func_mmap_fixed_mapped=no
22359 else
22360   cat >conftest.$ac_ext <<_ACEOF
22361 #line $LINENO "configure"
22362 /* confdefs.h.  */
22363 _ACEOF
22364 cat confdefs.h >>conftest.$ac_ext
22365 cat >>conftest.$ac_ext <<_ACEOF
22366 /* end confdefs.h.  */
22367 $ac_includes_default
22368 /* malloc might have been renamed as rpl_malloc. */
22369 #undef malloc
22370
22371 /* Thanks to Mike Haertel and Jim Avera for this test.
22372    Here is a matrix of mmap possibilities:
22373         mmap private not fixed
22374         mmap private fixed at somewhere currently unmapped
22375         mmap private fixed at somewhere already mapped
22376         mmap shared not fixed
22377         mmap shared fixed at somewhere currently unmapped
22378         mmap shared fixed at somewhere already mapped
22379    For private mappings, we should verify that changes cannot be read()
22380    back from the file, nor mmap's back from the file at a different
22381    address.  (There have been systems where private was not correctly
22382    implemented like the infamous i386 svr4.0, and systems where the
22383    VM page cache was not coherent with the file system buffer cache
22384    like early versions of FreeBSD and possibly contemporary NetBSD.)
22385    For shared mappings, we should conversely verify that changes get
22386    propagated back to all the places they're supposed to be.
22387
22388    Grep wants private fixed already mapped.
22389    The main things grep needs to know about mmap are:
22390    * does it exist and is it safe to write into the mmap'd area
22391    * how to use it (BSD variants)  */
22392
22393 #include <fcntl.h>
22394 #include <sys/mman.h>
22395
22396 #if !STDC_HEADERS && !HAVE_STDLIB_H
22397 char *malloc ();
22398 #endif
22399
22400 /* This mess was copied from the GNU getpagesize.h.  */
22401 #if !HAVE_GETPAGESIZE
22402 /* Assume that all systems that can run configure have sys/param.h.  */
22403 # if !HAVE_SYS_PARAM_H
22404 #  define HAVE_SYS_PARAM_H 1
22405 # endif
22406
22407 # ifdef _SC_PAGESIZE
22408 #  define getpagesize() sysconf(_SC_PAGESIZE)
22409 # else /* no _SC_PAGESIZE */
22410 #  if HAVE_SYS_PARAM_H
22411 #   include <sys/param.h>
22412 #   ifdef EXEC_PAGESIZE
22413 #    define getpagesize() EXEC_PAGESIZE
22414 #   else /* no EXEC_PAGESIZE */
22415 #    ifdef NBPG
22416 #     define getpagesize() NBPG * CLSIZE
22417 #     ifndef CLSIZE
22418 #      define CLSIZE 1
22419 #     endif /* no CLSIZE */
22420 #    else /* no NBPG */
22421 #     ifdef NBPC
22422 #      define getpagesize() NBPC
22423 #     else /* no NBPC */
22424 #      ifdef PAGESIZE
22425 #       define getpagesize() PAGESIZE
22426 #      endif /* PAGESIZE */
22427 #     endif /* no NBPC */
22428 #    endif /* no NBPG */
22429 #   endif /* no EXEC_PAGESIZE */
22430 #  else /* no HAVE_SYS_PARAM_H */
22431 #   define getpagesize() 8192   /* punt totally */
22432 #  endif /* no HAVE_SYS_PARAM_H */
22433 # endif /* no _SC_PAGESIZE */
22434
22435 #endif /* no HAVE_GETPAGESIZE */
22436
22437 int
22438 main ()
22439 {
22440   char *data, *data2, *data3;
22441   int i, pagesize;
22442   int fd;
22443
22444   pagesize = getpagesize ();
22445
22446   /* First, make a file with some known garbage in it. */
22447   data = (char *) malloc (pagesize);
22448   if (!data)
22449     exit (1);
22450   for (i = 0; i < pagesize; ++i)
22451     *(data + i) = rand ();
22452   umask (0);
22453   fd = creat ("conftest.mmap", 0600);
22454   if (fd < 0)
22455     exit (1);
22456   if (write (fd, data, pagesize) != pagesize)
22457     exit (1);
22458   close (fd);
22459
22460   /* Next, try to mmap the file at a fixed address which already has
22461      something else allocated at it.  If we can, also make sure that
22462      we see the same garbage.  */
22463   fd = open ("conftest.mmap", O_RDWR);
22464   if (fd < 0)
22465     exit (1);
22466   data2 = (char *) malloc (2 * pagesize);
22467   if (!data2)
22468     exit (1);
22469   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22470   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22471                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22472     exit (1);
22473   for (i = 0; i < pagesize; ++i)
22474     if (*(data + i) != *(data2 + i))
22475       exit (1);
22476
22477   /* Finally, make sure that changes to the mapped area do not
22478      percolate back to the file as seen by read().  (This is a bug on
22479      some variants of i386 svr4.0.)  */
22480   for (i = 0; i < pagesize; ++i)
22481     *(data2 + i) = *(data2 + i) + 1;
22482   data3 = (char *) malloc (pagesize);
22483   if (!data3)
22484     exit (1);
22485   if (read (fd, data3, pagesize) != pagesize)
22486     exit (1);
22487   for (i = 0; i < pagesize; ++i)
22488     if (*(data + i) != *(data3 + i))
22489       exit (1);
22490   close (fd);
22491   exit (0);
22492 }
22493 _ACEOF
22494 rm -f conftest$ac_exeext
22495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22496   (eval $ac_link) 2>&5
22497   ac_status=$?
22498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22501   (eval $ac_try) 2>&5
22502   ac_status=$?
22503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504   (exit $ac_status); }; }; then
22505   ac_cv_func_mmap_fixed_mapped=yes
22506 else
22507   echo "$as_me: program exited with status $ac_status" >&5
22508 echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22510
22511 ( exit $ac_status )
22512 ac_cv_func_mmap_fixed_mapped=no
22513 fi
22514 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22515 fi
22516 fi
22517 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22518 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22519 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22520
22521 cat >>confdefs.h <<\_ACEOF
22522 #define HAVE_MMAP 1
22523 _ACEOF
22524
22525 fi
22526 rm -f conftest.mmap
22527
22528 echo "$as_me:$LINENO: checking for mmap of files" >&5
22529 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22530 if test "${ac_cv_func_mmap_file+set}" = set; then
22531   echo $ECHO_N "(cached) $ECHO_C" >&6
22532 else
22533
22534
22535   ac_ext=c
22536 ac_cpp='$CPP $CPPFLAGS'
22537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22540
22541   if test "$cross_compiling" = yes; then
22542   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22543 See \`config.log' for more details." >&5
22544 echo "$as_me: error: cannot run test program while cross compiling
22545 See \`config.log' for more details." >&2;}
22546    { (exit 1); exit 1; }; }
22547 else
22548   cat >conftest.$ac_ext <<_ACEOF
22549 #line $LINENO "configure"
22550 /* confdefs.h.  */
22551 _ACEOF
22552 cat confdefs.h >>conftest.$ac_ext
22553 cat >>conftest.$ac_ext <<_ACEOF
22554 /* end confdefs.h.  */
22555
22556 #ifdef HAVE_SYS_TYPES_H
22557 #include <sys/types.h>
22558 #endif
22559
22560 #ifdef HAVE_SYS_MMAN_H
22561 #include <sys/mman.h>
22562 #endif
22563
22564 #ifdef HAVE_FCNTL_H
22565 #include <fcntl.h>
22566 #endif
22567
22568   int fd;
22569   int main () {
22570   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22571 _ACEOF
22572 rm -f conftest$ac_exeext
22573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22574   (eval $ac_link) 2>&5
22575   ac_status=$?
22576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579   (eval $ac_try) 2>&5
22580   ac_status=$?
22581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582   (exit $ac_status); }; }; then
22583   ac_cv_func_mmap_file=yes
22584 else
22585   echo "$as_me: program exited with status $ac_status" >&5
22586 echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22588
22589 ( exit $ac_status )
22590 ac_cv_func_mmap_file=no
22591 fi
22592 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22593 fi
22594   ac_ext=c
22595 ac_cpp='$CPP $CPPFLAGS'
22596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22599
22600
22601 fi
22602 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22603 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22604 if test "$ac_cv_func_mmap_file" = yes; then
22605
22606 cat >>confdefs.h <<\_ACEOF
22607 #define HAVE_MMAP_FILE
22608 _ACEOF
22609
22610    MMAP_FILE=yes
22611
22612 fi
22613
22614 if test ${ac_cv_func_mmap_file} = "no"
22615 then
22616         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22617 echo "$as_me: error: mmap() of files required but not found" >&2;}
22618    { (exit 1); exit 1; }; }
22619 fi
22620 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22621 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22622 if test "${ac_cv_header_mmap_anon+set}" = set; then
22623   echo $ECHO_N "(cached) $ECHO_C" >&6
22624 else
22625
22626
22627   ac_ext=c
22628 ac_cpp='$CPP $CPPFLAGS'
22629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22632
22633   cat >conftest.$ac_ext <<_ACEOF
22634 #line $LINENO "configure"
22635 /* confdefs.h.  */
22636 _ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h.  */
22640 #include <sys/mman.h>
22641   #include <unistd.h>
22642   #include <fcntl.h>
22643 int
22644 main ()
22645 {
22646 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22647   ;
22648   return 0;
22649 }
22650 _ACEOF
22651 rm -f conftest.$ac_objext
22652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22653   (eval $ac_compile) 2>&5
22654   ac_status=$?
22655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656   (exit $ac_status); } &&
22657          { ac_try='test -s conftest.$ac_objext'
22658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22659   (eval $ac_try) 2>&5
22660   ac_status=$?
22661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662   (exit $ac_status); }; }; then
22663   ac_cv_header_mmap_anon=yes
22664 else
22665   echo "$as_me: failed program was:" >&5
22666 sed 's/^/| /' conftest.$ac_ext >&5
22667
22668 ac_cv_header_mmap_anon=no
22669 fi
22670 rm -f conftest.$ac_objext conftest.$ac_ext
22671   ac_ext=c
22672 ac_cpp='$CPP $CPPFLAGS'
22673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22676
22677
22678 fi
22679 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22680 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22681 if test "$ac_cv_header_mmap_anon" = yes; then
22682
22683 cat >>confdefs.h <<\_ACEOF
22684 #define HAVE_MMAP_ANONYMOUS
22685 _ACEOF
22686
22687 fi
22688
22689 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22690 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22691 if test "${ac_cv_type_signal+set}" = set; then
22692   echo $ECHO_N "(cached) $ECHO_C" >&6
22693 else
22694   cat >conftest.$ac_ext <<_ACEOF
22695 #line $LINENO "configure"
22696 /* confdefs.h.  */
22697 _ACEOF
22698 cat confdefs.h >>conftest.$ac_ext
22699 cat >>conftest.$ac_ext <<_ACEOF
22700 /* end confdefs.h.  */
22701 #include <sys/types.h>
22702 #include <signal.h>
22703 #ifdef signal
22704 # undef signal
22705 #endif
22706 #ifdef __cplusplus
22707 extern "C" void (*signal (int, void (*)(int)))(int);
22708 #else
22709 void (*signal ()) ();
22710 #endif
22711
22712 int
22713 main ()
22714 {
22715 int i;
22716   ;
22717   return 0;
22718 }
22719 _ACEOF
22720 rm -f conftest.$ac_objext
22721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22722   (eval $ac_compile) 2>&5
22723   ac_status=$?
22724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725   (exit $ac_status); } &&
22726          { ac_try='test -s conftest.$ac_objext'
22727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22728   (eval $ac_try) 2>&5
22729   ac_status=$?
22730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731   (exit $ac_status); }; }; then
22732   ac_cv_type_signal=void
22733 else
22734   echo "$as_me: failed program was:" >&5
22735 sed 's/^/| /' conftest.$ac_ext >&5
22736
22737 ac_cv_type_signal=int
22738 fi
22739 rm -f conftest.$ac_objext conftest.$ac_ext
22740 fi
22741 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22742 echo "${ECHO_T}$ac_cv_type_signal" >&6
22743
22744 cat >>confdefs.h <<_ACEOF
22745 #define RETSIGTYPE $ac_cv_type_signal
22746 _ACEOF
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
22761 do
22762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22763 echo "$as_me:$LINENO: checking for $ac_func" >&5
22764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22765 if eval "test \"\${$as_ac_var+set}\" = set"; then
22766   echo $ECHO_N "(cached) $ECHO_C" >&6
22767 else
22768   cat >conftest.$ac_ext <<_ACEOF
22769 #line $LINENO "configure"
22770 /* confdefs.h.  */
22771 _ACEOF
22772 cat confdefs.h >>conftest.$ac_ext
22773 cat >>conftest.$ac_ext <<_ACEOF
22774 /* end confdefs.h.  */
22775 /* System header to define __stub macros and hopefully few prototypes,
22776     which can conflict with char $ac_func (); below.
22777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22778     <limits.h> exists even on freestanding compilers.  */
22779 #ifdef __STDC__
22780 # include <limits.h>
22781 #else
22782 # include <assert.h>
22783 #endif
22784 /* Override any gcc2 internal prototype to avoid an error.  */
22785 #ifdef __cplusplus
22786 extern "C"
22787 {
22788 #endif
22789 /* We use char because int might match the return type of a gcc2
22790    builtin and then its argument prototype would still apply.  */
22791 char $ac_func ();
22792 /* The GNU C library defines this for functions which it implements
22793     to always fail with ENOSYS.  Some functions are actually named
22794     something starting with __ and the normal name is an alias.  */
22795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22796 choke me
22797 #else
22798 char (*f) () = $ac_func;
22799 #endif
22800 #ifdef __cplusplus
22801 }
22802 #endif
22803
22804 int
22805 main ()
22806 {
22807 return f != $ac_func;
22808   ;
22809   return 0;
22810 }
22811 _ACEOF
22812 rm -f conftest.$ac_objext conftest$ac_exeext
22813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22814   (eval $ac_link) 2>&5
22815   ac_status=$?
22816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817   (exit $ac_status); } &&
22818          { ac_try='test -s conftest$ac_exeext'
22819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22820   (eval $ac_try) 2>&5
22821   ac_status=$?
22822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823   (exit $ac_status); }; }; then
22824   eval "$as_ac_var=yes"
22825 else
22826   echo "$as_me: failed program was:" >&5
22827 sed 's/^/| /' conftest.$ac_ext >&5
22828
22829 eval "$as_ac_var=no"
22830 fi
22831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22832 fi
22833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22835 if test `eval echo '${'$as_ac_var'}'` = yes; then
22836   cat >>confdefs.h <<_ACEOF
22837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22838 _ACEOF
22839
22840 fi
22841 done
22842
22843
22844
22845 echo "$as_me:$LINENO: checking for mmap" >&5
22846 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22847 if test "${ac_cv_func_mmap+set}" = set; then
22848   echo $ECHO_N "(cached) $ECHO_C" >&6
22849 else
22850   cat >conftest.$ac_ext <<_ACEOF
22851 #line $LINENO "configure"
22852 /* confdefs.h.  */
22853 _ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h.  */
22857 /* System header to define __stub macros and hopefully few prototypes,
22858     which can conflict with char mmap (); below.
22859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22860     <limits.h> exists even on freestanding compilers.  */
22861 #ifdef __STDC__
22862 # include <limits.h>
22863 #else
22864 # include <assert.h>
22865 #endif
22866 /* Override any gcc2 internal prototype to avoid an error.  */
22867 #ifdef __cplusplus
22868 extern "C"
22869 {
22870 #endif
22871 /* We use char because int might match the return type of a gcc2
22872    builtin and then its argument prototype would still apply.  */
22873 char mmap ();
22874 /* The GNU C library defines this for functions which it implements
22875     to always fail with ENOSYS.  Some functions are actually named
22876     something starting with __ and the normal name is an alias.  */
22877 #if defined (__stub_mmap) || defined (__stub___mmap)
22878 choke me
22879 #else
22880 char (*f) () = mmap;
22881 #endif
22882 #ifdef __cplusplus
22883 }
22884 #endif
22885
22886 int
22887 main ()
22888 {
22889 return f != mmap;
22890   ;
22891   return 0;
22892 }
22893 _ACEOF
22894 rm -f conftest.$ac_objext conftest$ac_exeext
22895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22896   (eval $ac_link) 2>&5
22897   ac_status=$?
22898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899   (exit $ac_status); } &&
22900          { ac_try='test -s conftest$ac_exeext'
22901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22902   (eval $ac_try) 2>&5
22903   ac_status=$?
22904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905   (exit $ac_status); }; }; then
22906   ac_cv_func_mmap=yes
22907 else
22908   echo "$as_me: failed program was:" >&5
22909 sed 's/^/| /' conftest.$ac_ext >&5
22910
22911 ac_cv_func_mmap=no
22912 fi
22913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22914 fi
22915 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22916 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22917 if test $ac_cv_func_mmap = yes; then
22918   :
22919 else
22920   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22921 echo "$as_me: error: Function mmap() required but not found" >&2;}
22922    { (exit 1); exit 1; }; }
22923 fi
22924
22925 echo "$as_me:$LINENO: checking for mprotect" >&5
22926 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22927 if test "${ac_cv_func_mprotect+set}" = set; then
22928   echo $ECHO_N "(cached) $ECHO_C" >&6
22929 else
22930   cat >conftest.$ac_ext <<_ACEOF
22931 #line $LINENO "configure"
22932 /* confdefs.h.  */
22933 _ACEOF
22934 cat confdefs.h >>conftest.$ac_ext
22935 cat >>conftest.$ac_ext <<_ACEOF
22936 /* end confdefs.h.  */
22937 /* System header to define __stub macros and hopefully few prototypes,
22938     which can conflict with char mprotect (); below.
22939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22940     <limits.h> exists even on freestanding compilers.  */
22941 #ifdef __STDC__
22942 # include <limits.h>
22943 #else
22944 # include <assert.h>
22945 #endif
22946 /* Override any gcc2 internal prototype to avoid an error.  */
22947 #ifdef __cplusplus
22948 extern "C"
22949 {
22950 #endif
22951 /* We use char because int might match the return type of a gcc2
22952    builtin and then its argument prototype would still apply.  */
22953 char mprotect ();
22954 /* The GNU C library defines this for functions which it implements
22955     to always fail with ENOSYS.  Some functions are actually named
22956     something starting with __ and the normal name is an alias.  */
22957 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22958 choke me
22959 #else
22960 char (*f) () = mprotect;
22961 #endif
22962 #ifdef __cplusplus
22963 }
22964 #endif
22965
22966 int
22967 main ()
22968 {
22969 return f != mprotect;
22970   ;
22971   return 0;
22972 }
22973 _ACEOF
22974 rm -f conftest.$ac_objext conftest$ac_exeext
22975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22976   (eval $ac_link) 2>&5
22977   ac_status=$?
22978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979   (exit $ac_status); } &&
22980          { ac_try='test -s conftest$ac_exeext'
22981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22982   (eval $ac_try) 2>&5
22983   ac_status=$?
22984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985   (exit $ac_status); }; }; then
22986   ac_cv_func_mprotect=yes
22987 else
22988   echo "$as_me: failed program was:" >&5
22989 sed 's/^/| /' conftest.$ac_ext >&5
22990
22991 ac_cv_func_mprotect=no
22992 fi
22993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22994 fi
22995 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22996 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22997 if test $ac_cv_func_mprotect = yes; then
22998   :
22999 else
23000   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23001 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23002    { (exit 1); exit 1; }; }
23003 fi
23004
23005
23006
23007
23008
23009   ac_ext=c
23010 ac_cpp='$CPP $CPPFLAGS'
23011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23014
23015   oldcflags="$CFLAGS"
23016   CFLAGS="$CFLAGS -Wl,-R."
23017   cat >conftest.$ac_ext <<_ACEOF
23018 int main() { return 0; }
23019 _ACEOF
23020 rm -f conftest.$ac_objext conftest$ac_exeext
23021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23022   (eval $ac_link) 2>&5
23023   ac_status=$?
23024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025   (exit $ac_status); } &&
23026          { ac_try='test -s conftest$ac_exeext'
23027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23028   (eval $ac_try) 2>&5
23029   ac_status=$?
23030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031   (exit $ac_status); }; }; then
23032   ac_cv_link_use_r=yes
23033 else
23034   echo "$as_me: failed program was:" >&5
23035 sed 's/^/| /' conftest.$ac_ext >&5
23036
23037 ac_cv_link_use_r=no
23038 fi
23039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23040   CFLAGS="$oldcflags"
23041   ac_ext=c
23042 ac_cpp='$CPP $CPPFLAGS'
23043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23046
23047   if test "$ac_cv_link_use_r" = yes
23048   then
23049
23050 cat >>confdefs.h <<\_ACEOF
23051 #define HAVE_LINK_R 1
23052 _ACEOF
23053
23054   fi
23055
23056
23057
23058 # Check whether --enable-purify or --disable-purify was given.
23059 if test "${enable_purify+set}" = set; then
23060   enableval="$enable_purify"
23061
23062 else
23063   enableval="no"
23064 fi;
23065 if test ${enableval} = "no"
23066 then
23067         ENABLE_PURIFY=
23068
23069 else
23070         ENABLE_PURIFY=ENABLE_PURIFY=1
23071
23072 fi
23073
23074 # Check whether --enable-optimized or --disable-optimized was given.
23075 if test "${enable_optimized+set}" = set; then
23076   enableval="$enable_optimized"
23077
23078 else
23079   enableval=no
23080 fi;
23081 if test ${enableval} = "no"
23082 then
23083         ENABLE_OPTIMIZED=
23084
23085 else
23086         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23087
23088 fi
23089
23090 # Check whether --enable-spec2000 or --disable-spec2000 was given.
23091 if test "${enable_spec2000+set}" = set; then
23092   enableval="$enable_spec2000"
23093
23094 else
23095   enableval=no
23096 fi;
23097 if test ${enableval} = "no"
23098 then
23099         if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
23100         then
23101                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23102
23103                 USE_SPEC=USE_SPEC=1
23104
23105         else
23106                 USE_SPEC=
23107
23108
23109         fi
23110 else
23111         if test ${enableval} = ""
23112         then
23113                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23114
23115         else
23116                 SPEC_ROOT=${enableval}
23117
23118         fi
23119         USE_SPEC=USE_SPEC=1
23120
23121 fi
23122
23123 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23124 if test "${enable_precompiled_bytecode+set}" = set; then
23125   enableval="$enable_precompiled_bytecode"
23126
23127 else
23128   enableval=no
23129 fi;
23130 if test ${enableval} = "no"
23131 then
23132         UPB=
23133
23134 else
23135         UPB=USE_PRECOMPILED_BYTECODE=1
23136
23137 fi
23138
23139
23140 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23141 if test "${enable_llc_diffs+set}" = set; then
23142   enableval="$enable_llc_diffs"
23143
23144 else
23145   enableval=yes
23146 fi;
23147 if test ${enableval} = "no"
23148 then
23149         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
23150
23151 else
23152         DISABLE_LLC_DIFFS=
23153
23154 fi
23155
23156 # Check whether --enable-jit or --disable-jit was given.
23157 if test "${enable_jit+set}" = set; then
23158   enableval="$enable_jit"
23159
23160 else
23161   enableval=default
23162 fi;
23163
23164 if test ${enableval} = "no"
23165 then
23166         JIT=
23167
23168 else
23169         case $target in
23170                 *i*86*)
23171                         JIT=TARGET_HAS_JIT=1
23172
23173                         ;;
23174                 *sparc*)
23175                         JIT=TARGET_HAS_JIT=1
23176
23177                         ;;
23178                 *)
23179                         JIT=
23180
23181                         ;;
23182         esac
23183 fi
23184
23185
23186
23187 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23188 if test "${with_llvmgccdir+set}" = set; then
23189   withval="$with_llvmgccdir"
23190   LLVMGCCDIR=$withval
23191
23192 fi;
23193
23194 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23195 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23196 LLVM_GCC_CHECK=no
23197 if test -d "$LLVMGCCDIR"
23198 then
23199         if test -x "$LLVMGCCDIR/bin/gcc"
23200         then
23201                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23202         fi
23203 fi
23204 llvmgccwarn=no
23205 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23206 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23207 if test "$LLVM_GCC_CHECK" = "no"
23208 then
23209     llvmgccwarn=yes
23210 fi
23211
23212 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23213 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23214 LLVM_GCC_SANE=no
23215 if test -x "$LLVM_GCC_CHECK"
23216 then
23217         cp /dev/null conftest.c
23218     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23219         if test $? -eq 0
23220         then
23221                 LLVM_GCC_SANE=yes
23222         fi
23223         rm conftest.c
23224 fi
23225 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23226 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23227 if test "$LLVM_GCC_SANE" = "no"
23228 then
23229         llvmgccwarn=yes
23230 fi
23231
23232
23233 # Check whether --with-bcrepos or --without-bcrepos was given.
23234 if test "${with_bcrepos+set}" = set; then
23235   withval="$with_bcrepos"
23236   BCR=$withval
23237
23238 else
23239   BCR=/home/vadve/lattner/LLVMPrograms
23240
23241 fi;
23242
23243
23244 # Check whether --with-papi or --without-papi was given.
23245 if test "${with_papi+set}" = set; then
23246   withval="$with_papi"
23247   PAPIDIR=$withval
23248
23249 else
23250   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
23251
23252 fi;
23253
23254
23255 # Check whether --with-purify or --without-purify was given.
23256 if test "${with_purify+set}" = set; then
23257   withval="$with_purify"
23258   PURIFY=$withval
23259
23260 fi;
23261
23262
23263           ac_config_files="$ac_config_files Makefile.config"
23264 cat >confcache <<\_ACEOF
23265 # This file is a shell script that caches the results of configure
23266 # tests run on this system so they can be shared between configure
23267 # scripts and configure runs, see configure's option --config-cache.
23268 # It is not useful on other systems.  If it contains results you don't
23269 # want to keep, you may remove or edit it.
23270 #
23271 # config.status only pays attention to the cache file if you give it
23272 # the --recheck option to rerun configure.
23273 #
23274 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23275 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23276 # following values.
23277
23278 _ACEOF
23279
23280 # The following way of writing the cache mishandles newlines in values,
23281 # but we know of no workaround that is simple, portable, and efficient.
23282 # So, don't put newlines in cache variables' values.
23283 # Ultrix sh set writes to stderr and can't be redirected directly,
23284 # and sets the high bit in the cache file unless we assign to the vars.
23285 {
23286   (set) 2>&1 |
23287     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23288     *ac_space=\ *)
23289       # `set' does not quote correctly, so add quotes (double-quote
23290       # substitution turns \\\\ into \\, and sed turns \\ into \).
23291       sed -n \
23292         "s/'/'\\\\''/g;
23293           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23294       ;;
23295     *)
23296       # `set' quotes correctly as required by POSIX, so do not add quotes.
23297       sed -n \
23298         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23299       ;;
23300     esac;
23301 } |
23302   sed '
23303      t clear
23304      : clear
23305      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23306      t end
23307      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23308      : end' >>confcache
23309 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23310   if test -w $cache_file; then
23311     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23312     cat confcache >$cache_file
23313   else
23314     echo "not updating unwritable cache $cache_file"
23315   fi
23316 fi
23317 rm -f confcache
23318
23319 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23320 # Let make expand exec_prefix.
23321 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23322
23323 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23324 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23325 # trailing colons and then remove the whole line if VPATH becomes empty
23326 # (actually we leave an empty line to preserve line numbers).
23327 if test "x$srcdir" = x.; then
23328   ac_vpsub='/^[         ]*VPATH[        ]*=/{
23329 s/:*\$(srcdir):*/:/;
23330 s/:*\${srcdir}:*/:/;
23331 s/:*@srcdir@:*/:/;
23332 s/^\([^=]*=[    ]*\):*/\1/;
23333 s/:*$//;
23334 s/^[^=]*=[      ]*$//;
23335 }'
23336 fi
23337
23338 DEFS=-DHAVE_CONFIG_H
23339
23340 ac_libobjs=
23341 ac_ltlibobjs=
23342 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23343   # 1. Remove the extension, and $U if already installed.
23344   ac_i=`echo "$ac_i" |
23345          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23346   # 2. Add them.
23347   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23348   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23349 done
23350 LIBOBJS=$ac_libobjs
23351
23352 LTLIBOBJS=$ac_ltlibobjs
23353
23354
23355
23356 : ${CONFIG_STATUS=./config.status}
23357 ac_clean_files_save=$ac_clean_files
23358 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23359 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23360 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23361 cat >$CONFIG_STATUS <<_ACEOF
23362 #! $SHELL
23363 # Generated by $as_me.
23364 # Run this file to recreate the current configuration.
23365 # Compiler output produced by configure, useful for debugging
23366 # configure, is in config.log if it exists.
23367
23368 debug=false
23369 ac_cs_recheck=false
23370 ac_cs_silent=false
23371 SHELL=\${CONFIG_SHELL-$SHELL}
23372 _ACEOF
23373
23374 cat >>$CONFIG_STATUS <<\_ACEOF
23375 ## --------------------- ##
23376 ## M4sh Initialization.  ##
23377 ## --------------------- ##
23378
23379 # Be Bourne compatible
23380 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23381   emulate sh
23382   NULLCMD=:
23383   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23384   # is contrary to our usage.  Disable this feature.
23385   alias -g '${1+"$@"}'='"$@"'
23386 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23387   set -o posix
23388 fi
23389
23390 # Support unset when possible.
23391 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23392   as_unset=unset
23393 else
23394   as_unset=false
23395 fi
23396
23397
23398 # Work around bugs in pre-3.0 UWIN ksh.
23399 $as_unset ENV MAIL MAILPATH
23400 PS1='$ '
23401 PS2='> '
23402 PS4='+ '
23403
23404 # NLS nuisances.
23405 for as_var in \
23406   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23407   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23408   LC_TELEPHONE LC_TIME
23409 do
23410   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23411     eval $as_var=C; export $as_var
23412   else
23413     $as_unset $as_var
23414   fi
23415 done
23416
23417 # Required to use basename.
23418 if expr a : '\(a\)' >/dev/null 2>&1; then
23419   as_expr=expr
23420 else
23421   as_expr=false
23422 fi
23423
23424 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23425   as_basename=basename
23426 else
23427   as_basename=false
23428 fi
23429
23430
23431 # Name of the executable.
23432 as_me=`$as_basename "$0" ||
23433 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23434          X"$0" : 'X\(//\)$' \| \
23435          X"$0" : 'X\(/\)$' \| \
23436          .     : '\(.\)' 2>/dev/null ||
23437 echo X/"$0" |
23438     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23439           /^X\/\(\/\/\)$/{ s//\1/; q; }
23440           /^X\/\(\/\).*/{ s//\1/; q; }
23441           s/.*/./; q'`
23442
23443
23444 # PATH needs CR, and LINENO needs CR and PATH.
23445 # Avoid depending upon Character Ranges.
23446 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23447 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23448 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23449 as_cr_digits='0123456789'
23450 as_cr_alnum=$as_cr_Letters$as_cr_digits
23451
23452 # The user is always right.
23453 if test "${PATH_SEPARATOR+set}" != set; then
23454   echo "#! /bin/sh" >conf$$.sh
23455   echo  "exit 0"   >>conf$$.sh
23456   chmod +x conf$$.sh
23457   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23458     PATH_SEPARATOR=';'
23459   else
23460     PATH_SEPARATOR=:
23461   fi
23462   rm -f conf$$.sh
23463 fi
23464
23465
23466   as_lineno_1=$LINENO
23467   as_lineno_2=$LINENO
23468   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23469   test "x$as_lineno_1" != "x$as_lineno_2" &&
23470   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23471   # Find who we are.  Look in the path if we contain no path at all
23472   # relative or not.
23473   case $0 in
23474     *[\\/]* ) as_myself=$0 ;;
23475     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23476 for as_dir in $PATH
23477 do
23478   IFS=$as_save_IFS
23479   test -z "$as_dir" && as_dir=.
23480   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23481 done
23482
23483        ;;
23484   esac
23485   # We did not find ourselves, most probably we were run as `sh COMMAND'
23486   # in which case we are not to be found in the path.
23487   if test "x$as_myself" = x; then
23488     as_myself=$0
23489   fi
23490   if test ! -f "$as_myself"; then
23491     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23492 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23493    { (exit 1); exit 1; }; }
23494   fi
23495   case $CONFIG_SHELL in
23496   '')
23497     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23498 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23499 do
23500   IFS=$as_save_IFS
23501   test -z "$as_dir" && as_dir=.
23502   for as_base in sh bash ksh sh5; do
23503          case $as_dir in
23504          /*)
23505            if ("$as_dir/$as_base" -c '
23506   as_lineno_1=$LINENO
23507   as_lineno_2=$LINENO
23508   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23509   test "x$as_lineno_1" != "x$as_lineno_2" &&
23510   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23511              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23512              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23513              CONFIG_SHELL=$as_dir/$as_base
23514              export CONFIG_SHELL
23515              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23516            fi;;
23517          esac
23518        done
23519 done
23520 ;;
23521   esac
23522
23523   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23524   # uniformly replaced by the line number.  The first 'sed' inserts a
23525   # line-number line before each line; the second 'sed' does the real
23526   # work.  The second script uses 'N' to pair each line-number line
23527   # with the numbered line, and appends trailing '-' during
23528   # substitution so that $LINENO is not a special case at line end.
23529   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23530   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23531   sed '=' <$as_myself |
23532     sed '
23533       N
23534       s,$,-,
23535       : loop
23536       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23537       t loop
23538       s,-$,,
23539       s,^['$as_cr_digits']*\n,,
23540     ' >$as_me.lineno &&
23541   chmod +x $as_me.lineno ||
23542     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23543 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23544    { (exit 1); exit 1; }; }
23545
23546   # Don't try to exec as it changes $[0], causing all sort of problems
23547   # (the dirname of $[0] is not the place where we might find the
23548   # original and so on.  Autoconf is especially sensible to this).
23549   . ./$as_me.lineno
23550   # Exit status is that of the last command.
23551   exit
23552 }
23553
23554
23555 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23556   *c*,-n*) ECHO_N= ECHO_C='
23557 ' ECHO_T='      ' ;;
23558   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23559   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23560 esac
23561
23562 if expr a : '\(a\)' >/dev/null 2>&1; then
23563   as_expr=expr
23564 else
23565   as_expr=false
23566 fi
23567
23568 rm -f conf$$ conf$$.exe conf$$.file
23569 echo >conf$$.file
23570 if ln -s conf$$.file conf$$ 2>/dev/null; then
23571   # We could just check for DJGPP; but this test a) works b) is more generic
23572   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23573   if test -f conf$$.exe; then
23574     # Don't use ln at all; we don't have any links
23575     as_ln_s='cp -p'
23576   else
23577     as_ln_s='ln -s'
23578   fi
23579 elif ln conf$$.file conf$$ 2>/dev/null; then
23580   as_ln_s=ln
23581 else
23582   as_ln_s='cp -p'
23583 fi
23584 rm -f conf$$ conf$$.exe conf$$.file
23585
23586 if mkdir -p . 2>/dev/null; then
23587   as_mkdir_p=:
23588 else
23589   as_mkdir_p=false
23590 fi
23591
23592 as_executable_p="test -f"
23593
23594 # Sed expression to map a string onto a valid CPP name.
23595 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23596
23597 # Sed expression to map a string onto a valid variable name.
23598 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23599
23600
23601 # IFS
23602 # We need space, tab and new line, in precisely that order.
23603 as_nl='
23604 '
23605 IFS="   $as_nl"
23606
23607 # CDPATH.
23608 $as_unset CDPATH
23609
23610 exec 6>&1
23611
23612 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23613 # report actual input values of CONFIG_FILES etc. instead of their
23614 # values after options handling.  Logging --version etc. is OK.
23615 exec 5>>config.log
23616 {
23617   echo
23618   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23619 ## Running $as_me. ##
23620 _ASBOX
23621 } >&5
23622 cat >&5 <<_CSEOF
23623
23624 This file was extended by [LLVM] $as_me [1.0], which was
23625 generated by GNU Autoconf 2.57.  Invocation command line was
23626
23627   CONFIG_FILES    = $CONFIG_FILES
23628   CONFIG_HEADERS  = $CONFIG_HEADERS
23629   CONFIG_LINKS    = $CONFIG_LINKS
23630   CONFIG_COMMANDS = $CONFIG_COMMANDS
23631   $ $0 $@
23632
23633 _CSEOF
23634 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23635 echo >&5
23636 _ACEOF
23637
23638 # Files that config.status was made for.
23639 if test -n "$ac_config_files"; then
23640   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23641 fi
23642
23643 if test -n "$ac_config_headers"; then
23644   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23645 fi
23646
23647 if test -n "$ac_config_links"; then
23648   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23649 fi
23650
23651 if test -n "$ac_config_commands"; then
23652   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23653 fi
23654
23655 cat >>$CONFIG_STATUS <<\_ACEOF
23656
23657 ac_cs_usage="\
23658 \`$as_me' instantiates files from templates according to the
23659 current configuration.
23660
23661 Usage: $0 [OPTIONS] [FILE]...
23662
23663   -h, --help       print this help, then exit
23664   -V, --version    print version number, then exit
23665   -q, --quiet      do not print progress messages
23666   -d, --debug      don't remove temporary files
23667       --recheck    update $as_me by reconfiguring in the same conditions
23668   --file=FILE[:TEMPLATE]
23669                    instantiate the configuration file FILE
23670   --header=FILE[:TEMPLATE]
23671                    instantiate the configuration header FILE
23672
23673 Configuration files:
23674 $config_files
23675
23676 Configuration headers:
23677 $config_headers
23678
23679 Configuration commands:
23680 $config_commands
23681
23682 Report bugs to <bug-autoconf@gnu.org>."
23683 _ACEOF
23684
23685 cat >>$CONFIG_STATUS <<_ACEOF
23686 ac_cs_version="\\
23687 [LLVM] config.status [1.0]
23688 configured by $0, generated by GNU Autoconf 2.57,
23689   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23690
23691 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23692 Free Software Foundation, Inc.
23693 This config.status script is free software; the Free Software Foundation
23694 gives unlimited permission to copy, distribute and modify it."
23695 srcdir=$srcdir
23696 INSTALL="$INSTALL"
23697 _ACEOF
23698
23699 cat >>$CONFIG_STATUS <<\_ACEOF
23700 # If no file are specified by the user, then we need to provide default
23701 # value.  By we need to know if files were specified by the user.
23702 ac_need_defaults=:
23703 while test $# != 0
23704 do
23705   case $1 in
23706   --*=*)
23707     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23708     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23709     ac_shift=:
23710     ;;
23711   -*)
23712     ac_option=$1
23713     ac_optarg=$2
23714     ac_shift=shift
23715     ;;
23716   *) # This is not an option, so the user has probably given explicit
23717      # arguments.
23718      ac_option=$1
23719      ac_need_defaults=false;;
23720   esac
23721
23722   case $ac_option in
23723   # Handling of the options.
23724 _ACEOF
23725 cat >>$CONFIG_STATUS <<\_ACEOF
23726   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23727     ac_cs_recheck=: ;;
23728   --version | --vers* | -V )
23729     echo "$ac_cs_version"; exit 0 ;;
23730   --he | --h)
23731     # Conflict between --help and --header
23732     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23733 Try \`$0 --help' for more information." >&5
23734 echo "$as_me: error: ambiguous option: $1
23735 Try \`$0 --help' for more information." >&2;}
23736    { (exit 1); exit 1; }; };;
23737   --help | --hel | -h )
23738     echo "$ac_cs_usage"; exit 0 ;;
23739   --debug | --d* | -d )
23740     debug=: ;;
23741   --file | --fil | --fi | --f )
23742     $ac_shift
23743     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23744     ac_need_defaults=false;;
23745   --header | --heade | --head | --hea )
23746     $ac_shift
23747     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23748     ac_need_defaults=false;;
23749   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23750   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23751     ac_cs_silent=: ;;
23752
23753   # This is an error.
23754   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23755 Try \`$0 --help' for more information." >&5
23756 echo "$as_me: error: unrecognized option: $1
23757 Try \`$0 --help' for more information." >&2;}
23758    { (exit 1); exit 1; }; } ;;
23759
23760   *) ac_config_targets="$ac_config_targets $1" ;;
23761
23762   esac
23763   shift
23764 done
23765
23766 ac_configure_extra_args=
23767
23768 if $ac_cs_silent; then
23769   exec 6>/dev/null
23770   ac_configure_extra_args="$ac_configure_extra_args --silent"
23771 fi
23772
23773 _ACEOF
23774 cat >>$CONFIG_STATUS <<_ACEOF
23775 if \$ac_cs_recheck; then
23776   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23777   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23778 fi
23779
23780 _ACEOF
23781
23782 cat >>$CONFIG_STATUS <<_ACEOF
23783 #
23784 # INIT-COMMANDS section.
23785 #
23786
23787 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23788 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23789 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23790 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23791 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23792 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23793 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23794 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23795 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23796 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23797 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23798 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23799 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23800 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23801 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23802 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23803 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23804 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23805 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23806 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23807 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23808 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23809 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23810 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23811 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23812 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23813 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23814 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23815 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23816 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23817 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23818 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23819 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23820 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23821 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23822 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23823 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23824 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23825 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23826 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23827 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23828 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23829 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23830 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23831 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23832 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23833 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23834 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23835 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23836 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libprofile/Makefile`
23837 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23838 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23839 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23840 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23841 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23842 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23843 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23844 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23845 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23846 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23847 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23848 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23849 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23850 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23851 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23852 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23853 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23854 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23855 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23856 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23857 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23858 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23859 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23860 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23861 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/177.mesa/Makefile`
23862 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23863 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23864 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23865 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23866 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23867 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23868 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23869 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23870 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23871 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23872 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/252.eon/Makefile`
23873 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile`
23874 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23875 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23876 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23877 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23878 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23879 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23880 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23881 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23882 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23883 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23884 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23885 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23886 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23887 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/Makefile`
23888 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile`
23889 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23890 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23891 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23892 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23893 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23894 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23895 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23896 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23897 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23898 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23899 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23900 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23901 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
23902 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23903 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23904 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23905 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23906 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23907 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23908 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23909 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23910 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23911 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23912 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23913 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23914 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23915 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23916 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23917 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23918 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23919 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23920 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23921 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23922 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23923 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23924 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23925 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23926 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23927 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23928 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23929 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23930 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23931 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23932 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23933 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23934 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23935 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23936 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23937 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23938 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23939 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23940 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23941 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23942 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23943 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23944 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
23945 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23946 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
23947 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
23948 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23949 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23950 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23951 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23952 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23953 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23954 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23955 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23956 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23957 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23958 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23959 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23960 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23961 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-nm/Makefile`
23962 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-prof/Makefile`
23963 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23964 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23965 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23966 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23967 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23968 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23969 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23970 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23971 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23972 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23973 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/Makefile`
23974 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/lib/Makefile`
23975 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/lib/compiler/Makefile`
23976 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/lib/runtime/Makefile`
23977 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/tools/Makefile`
23978 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/tools/stkrc/Makefile`
23979 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/test/Makefile`
23980 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/samples/Makefile`
23981
23982 _ACEOF
23983
23984
23985
23986 cat >>$CONFIG_STATUS <<\_ACEOF
23987 for ac_config_target in $ac_config_targets
23988 do
23989   case "$ac_config_target" in
23990   # Handling of arguments.
23991   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23992   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23993   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23994   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23995   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23996   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23997   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23998   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23999   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
24000   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
24001   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
24002   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
24003   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
24004   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
24005   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
24006   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
24007   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
24008   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
24009   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
24010   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
24011   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
24012   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
24013   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
24014   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
24015   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
24016   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
24017   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
24018   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
24019   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
24020   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
24021   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
24022   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
24023   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
24024   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
24025   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
24026   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24027   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
24028   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
24029   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
24030   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
24031   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
24032   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
24033   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
24034   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
24035   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
24036   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
24037   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
24038   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
24039   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
24040   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
24041   "runtime/libprofile/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libprofile/Makefile" ;;
24042   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24043   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24044   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24045   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24046   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
24047   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
24048   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
24049   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
24050   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
24051   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
24052   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
24053   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
24054   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
24055   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
24056   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
24057   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
24058   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
24059   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
24060   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
24061   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
24062   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
24063   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
24064   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
24065   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
24066   "test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ;;
24067   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
24068   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
24069   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
24070   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
24071   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
24072   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
24073   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
24074   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
24075   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
24076   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
24077   "test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ;;
24078   "test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ;;
24079   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
24080   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
24081   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
24082   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
24083   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
24084   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
24085   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
24086   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
24087   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
24088   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
24089   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
24090   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
24091   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
24092   "test/Programs/MultiSource/Benchmarks/FreeBench/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/Makefile" ;;
24093   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile" ;;
24094   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
24095   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24096   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24097   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24098   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24099   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24100   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24101   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24102   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24103   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24104   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24105   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24106   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
24107   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
24108   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
24109   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
24110   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
24111   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
24112   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
24113   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
24114   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
24115   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
24116   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
24117   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
24118   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
24119   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
24120   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
24121   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
24122   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
24123   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
24124   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
24125   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
24126   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
24127   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
24128   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
24129   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
24130   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
24131   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
24132   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
24133   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
24134   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
24135   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
24136   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
24137   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
24138   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24139   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
24140   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
24141   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
24142   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
24143   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
24144   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
24145   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
24146   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
24147   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
24148   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
24149   "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
24150   "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
24151   "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
24152   "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
24153   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24154   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
24155   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
24156   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
24157   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
24158   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
24159   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
24160   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
24161   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
24162   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
24163   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
24164   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
24165   "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
24166   "tools/llvm-nm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-nm/Makefile" ;;
24167   "tools/llvm-prof/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-prof/Makefile" ;;
24168   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
24169   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24170   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
24171   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
24172   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
24173   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24174   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
24175   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
24176   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
24177   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
24178   "projects/Stacker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/Makefile" ;;
24179   "projects/Stacker/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/lib/Makefile" ;;
24180   "projects/Stacker/lib/compiler/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/lib/compiler/Makefile" ;;
24181   "projects/Stacker/lib/runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/lib/runtime/Makefile" ;;
24182   "projects/Stacker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/tools/Makefile" ;;
24183   "projects/Stacker/tools/stkrc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/tools/stkrc/Makefile" ;;
24184   "projects/Stacker/test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/test/Makefile" ;;
24185   "projects/Stacker/samples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/samples/Makefile" ;;
24186   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24187   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24188 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24189    { (exit 1); exit 1; }; };;
24190   esac
24191 done
24192
24193 # If the user did not use the arguments to specify the items to instantiate,
24194 # then the envvar interface is used.  Set only those that are not.
24195 # We use the long form for the default assignment because of an extremely
24196 # bizarre bug on SunOS 4.1.3.
24197 if $ac_need_defaults; then
24198   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24199   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24200   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24201 fi
24202
24203 # Have a temporary directory for convenience.  Make it in the build tree
24204 # simply because there is no reason to put it here, and in addition,
24205 # creating and moving files from /tmp can sometimes cause problems.
24206 # Create a temporary directory, and hook for its removal unless debugging.
24207 $debug ||
24208 {
24209   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24210   trap '{ (exit 1); exit 1; }' 1 2 13 15
24211 }
24212
24213 # Create a (secure) tmp directory for tmp files.
24214
24215 {
24216   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24217   test -n "$tmp" && test -d "$tmp"
24218 }  ||
24219 {
24220   tmp=./confstat$$-$RANDOM
24221   (umask 077 && mkdir $tmp)
24222 } ||
24223 {
24224    echo "$me: cannot create a temporary directory in ." >&2
24225    { (exit 1); exit 1; }
24226 }
24227
24228 _ACEOF
24229
24230 cat >>$CONFIG_STATUS <<_ACEOF
24231
24232 #
24233 # CONFIG_FILES section.
24234 #
24235
24236 # No need to generate the scripts if there are no CONFIG_FILES.
24237 # This happens for instance when ./config.status config.h
24238 if test -n "\$CONFIG_FILES"; then
24239   # Protect against being on the right side of a sed subst in config.status.
24240   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24241    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24242 s,@SHELL@,$SHELL,;t t
24243 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24244 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24245 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24246 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24247 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24248 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24249 s,@exec_prefix@,$exec_prefix,;t t
24250 s,@prefix@,$prefix,;t t
24251 s,@program_transform_name@,$program_transform_name,;t t
24252 s,@bindir@,$bindir,;t t
24253 s,@sbindir@,$sbindir,;t t
24254 s,@libexecdir@,$libexecdir,;t t
24255 s,@datadir@,$datadir,;t t
24256 s,@sysconfdir@,$sysconfdir,;t t
24257 s,@sharedstatedir@,$sharedstatedir,;t t
24258 s,@localstatedir@,$localstatedir,;t t
24259 s,@libdir@,$libdir,;t t
24260 s,@includedir@,$includedir,;t t
24261 s,@oldincludedir@,$oldincludedir,;t t
24262 s,@infodir@,$infodir,;t t
24263 s,@mandir@,$mandir,;t t
24264 s,@build_alias@,$build_alias,;t t
24265 s,@host_alias@,$host_alias,;t t
24266 s,@target_alias@,$target_alias,;t t
24267 s,@DEFS@,$DEFS,;t t
24268 s,@ECHO_C@,$ECHO_C,;t t
24269 s,@ECHO_N@,$ECHO_N,;t t
24270 s,@ECHO_T@,$ECHO_T,;t t
24271 s,@LIBS@,$LIBS,;t t
24272 s,@subdirs@,$subdirs,;t t
24273 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24274 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24275 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24276 s,@build@,$build,;t t
24277 s,@build_cpu@,$build_cpu,;t t
24278 s,@build_vendor@,$build_vendor,;t t
24279 s,@build_os@,$build_os,;t t
24280 s,@host@,$host,;t t
24281 s,@host_cpu@,$host_cpu,;t t
24282 s,@host_vendor@,$host_vendor,;t t
24283 s,@host_os@,$host_os,;t t
24284 s,@target@,$target,;t t
24285 s,@target_cpu@,$target_cpu,;t t
24286 s,@target_vendor@,$target_vendor,;t t
24287 s,@target_os@,$target_os,;t t
24288 s,@OS@,$OS,;t t
24289 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24290 s,@ARCH@,$ARCH,;t t
24291 s,@CXX@,$CXX,;t t
24292 s,@CXXFLAGS@,$CXXFLAGS,;t t
24293 s,@LDFLAGS@,$LDFLAGS,;t t
24294 s,@CPPFLAGS@,$CPPFLAGS,;t t
24295 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24296 s,@EXEEXT@,$EXEEXT,;t t
24297 s,@OBJEXT@,$OBJEXT,;t t
24298 s,@CC@,$CC,;t t
24299 s,@CFLAGS@,$CFLAGS,;t t
24300 s,@ac_ct_CC@,$ac_ct_CC,;t t
24301 s,@CPP@,$CPP,;t t
24302 s,@ifGNUmake@,$ifGNUmake,;t t
24303 s,@LEX@,$LEX,;t t
24304 s,@LEXLIB@,$LEXLIB,;t t
24305 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24306 s,@YACC@,$YACC,;t t
24307 s,@EGREP@,$EGREP,;t t
24308 s,@LN_S@,$LN_S,;t t
24309 s,@ECHO@,$ECHO,;t t
24310 s,@AR@,$AR,;t t
24311 s,@ac_ct_AR@,$ac_ct_AR,;t t
24312 s,@RANLIB@,$RANLIB,;t t
24313 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24314 s,@STRIP@,$STRIP,;t t
24315 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24316 s,@CXXCPP@,$CXXCPP,;t t
24317 s,@F77@,$F77,;t t
24318 s,@FFLAGS@,$FFLAGS,;t t
24319 s,@ac_ct_F77@,$ac_ct_F77,;t t
24320 s,@LIBTOOL@,$LIBTOOL,;t t
24321 s,@RPWD@,$RPWD,;t t
24322 s,@SED@,$SED,;t t
24323 s,@RM@,$RM,;t t
24324 s,@MKDIR@,$MKDIR,;t t
24325 s,@DATE@,$DATE,;t t
24326 s,@MV@,$MV,;t t
24327 s,@DOT@,$DOT,;t t
24328 s,@ETAGS@,$ETAGS,;t t
24329 s,@PYTHON@,$PYTHON,;t t
24330 s,@QMTEST@,$QMTEST,;t t
24331 s,@ALLOCA@,$ALLOCA,;t t
24332 s,@LIBOBJS@,$LIBOBJS,;t t
24333 s,@MMAP_FILE@,$MMAP_FILE,;t t
24334 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
24335 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24336 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
24337 s,@USE_SPEC@,$USE_SPEC,;t t
24338 s,@UPB@,$UPB,;t t
24339 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
24340 s,@JIT@,$JIT,;t t
24341 s,@BCR@,$BCR,;t t
24342 s,@PAPIDIR@,$PAPIDIR,;t t
24343 s,@PURIFY@,$PURIFY,;t t
24344 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24345 CEOF
24346
24347 _ACEOF
24348
24349   cat >>$CONFIG_STATUS <<\_ACEOF
24350   # Split the substitutions into bite-sized pieces for seds with
24351   # small command number limits, like on Digital OSF/1 and HP-UX.
24352   ac_max_sed_lines=48
24353   ac_sed_frag=1 # Number of current file.
24354   ac_beg=1 # First line for current file.
24355   ac_end=$ac_max_sed_lines # Line after last line for current file.
24356   ac_more_lines=:
24357   ac_sed_cmds=
24358   while $ac_more_lines; do
24359     if test $ac_beg -gt 1; then
24360       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24361     else
24362       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24363     fi
24364     if test ! -s $tmp/subs.frag; then
24365       ac_more_lines=false
24366     else
24367       # The purpose of the label and of the branching condition is to
24368       # speed up the sed processing (if there are no `@' at all, there
24369       # is no need to browse any of the substitutions).
24370       # These are the two extra sed commands mentioned above.
24371       (echo ':t
24372   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24373       if test -z "$ac_sed_cmds"; then
24374         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24375       else
24376         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24377       fi
24378       ac_sed_frag=`expr $ac_sed_frag + 1`
24379       ac_beg=$ac_end
24380       ac_end=`expr $ac_end + $ac_max_sed_lines`
24381     fi
24382   done
24383   if test -z "$ac_sed_cmds"; then
24384     ac_sed_cmds=cat
24385   fi
24386 fi # test -n "$CONFIG_FILES"
24387
24388 _ACEOF
24389 cat >>$CONFIG_STATUS <<\_ACEOF
24390 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24391   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24392   case $ac_file in
24393   - | *:- | *:-:* ) # input from stdin
24394         cat >$tmp/stdin
24395         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24396         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24397   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24398         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24399   * )   ac_file_in=$ac_file.in ;;
24400   esac
24401
24402   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24403   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24404 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24405          X"$ac_file" : 'X\(//\)[^/]' \| \
24406          X"$ac_file" : 'X\(//\)$' \| \
24407          X"$ac_file" : 'X\(/\)' \| \
24408          .     : '\(.\)' 2>/dev/null ||
24409 echo X"$ac_file" |
24410     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24411           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24412           /^X\(\/\/\)$/{ s//\1/; q; }
24413           /^X\(\/\).*/{ s//\1/; q; }
24414           s/.*/./; q'`
24415   { if $as_mkdir_p; then
24416     mkdir -p "$ac_dir"
24417   else
24418     as_dir="$ac_dir"
24419     as_dirs=
24420     while test ! -d "$as_dir"; do
24421       as_dirs="$as_dir $as_dirs"
24422       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24424          X"$as_dir" : 'X\(//\)[^/]' \| \
24425          X"$as_dir" : 'X\(//\)$' \| \
24426          X"$as_dir" : 'X\(/\)' \| \
24427          .     : '\(.\)' 2>/dev/null ||
24428 echo X"$as_dir" |
24429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24430           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24431           /^X\(\/\/\)$/{ s//\1/; q; }
24432           /^X\(\/\).*/{ s//\1/; q; }
24433           s/.*/./; q'`
24434     done
24435     test ! -n "$as_dirs" || mkdir $as_dirs
24436   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24437 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24438    { (exit 1); exit 1; }; }; }
24439
24440   ac_builddir=.
24441
24442 if test "$ac_dir" != .; then
24443   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24444   # A "../" for each directory in $ac_dir_suffix.
24445   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24446 else
24447   ac_dir_suffix= ac_top_builddir=
24448 fi
24449
24450 case $srcdir in
24451   .)  # No --srcdir option.  We are building in place.
24452     ac_srcdir=.
24453     if test -z "$ac_top_builddir"; then
24454        ac_top_srcdir=.
24455     else
24456        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24457     fi ;;
24458   [\\/]* | ?:[\\/]* )  # Absolute path.
24459     ac_srcdir=$srcdir$ac_dir_suffix;
24460     ac_top_srcdir=$srcdir ;;
24461   *) # Relative path.
24462     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24463     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24464 esac
24465 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24466 # absolute.
24467 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24468 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24469 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24470 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24471
24472
24473   case $INSTALL in
24474   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24475   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24476   esac
24477
24478   if test x"$ac_file" != x-; then
24479     { echo "$as_me:$LINENO: creating $ac_file" >&5
24480 echo "$as_me: creating $ac_file" >&6;}
24481     rm -f "$ac_file"
24482   fi
24483   # Let's still pretend it is `configure' which instantiates (i.e., don't
24484   # use $as_me), people would be surprised to read:
24485   #    /* config.h.  Generated by config.status.  */
24486   if test x"$ac_file" = x-; then
24487     configure_input=
24488   else
24489     configure_input="$ac_file.  "
24490   fi
24491   configure_input=$configure_input"Generated from `echo $ac_file_in |
24492                                      sed 's,.*/,,'` by configure."
24493
24494   # First look for the input files in the build tree, otherwise in the
24495   # src tree.
24496   ac_file_inputs=`IFS=:
24497     for f in $ac_file_in; do
24498       case $f in
24499       -) echo $tmp/stdin ;;
24500       [\\/$]*)
24501          # Absolute (can't be DOS-style, as IFS=:)
24502          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24503 echo "$as_me: error: cannot find input file: $f" >&2;}
24504    { (exit 1); exit 1; }; }
24505          echo $f;;
24506       *) # Relative
24507          if test -f "$f"; then
24508            # Build tree
24509            echo $f
24510          elif test -f "$srcdir/$f"; then
24511            # Source tree
24512            echo $srcdir/$f
24513          else
24514            # /dev/null tree
24515            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24516 echo "$as_me: error: cannot find input file: $f" >&2;}
24517    { (exit 1); exit 1; }; }
24518          fi;;
24519       esac
24520     done` || { (exit 1); exit 1; }
24521 _ACEOF
24522 cat >>$CONFIG_STATUS <<_ACEOF
24523   sed "$ac_vpsub
24524 $extrasub
24525 _ACEOF
24526 cat >>$CONFIG_STATUS <<\_ACEOF
24527 :t
24528 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24529 s,@configure_input@,$configure_input,;t t
24530 s,@srcdir@,$ac_srcdir,;t t
24531 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24532 s,@top_srcdir@,$ac_top_srcdir,;t t
24533 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24534 s,@builddir@,$ac_builddir,;t t
24535 s,@abs_builddir@,$ac_abs_builddir,;t t
24536 s,@top_builddir@,$ac_top_builddir,;t t
24537 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24538 s,@INSTALL@,$ac_INSTALL,;t t
24539 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24540   rm -f $tmp/stdin
24541   if test x"$ac_file" != x-; then
24542     mv $tmp/out $ac_file
24543   else
24544     cat $tmp/out
24545     rm -f $tmp/out
24546   fi
24547
24548 done
24549 _ACEOF
24550 cat >>$CONFIG_STATUS <<\_ACEOF
24551
24552 #
24553 # CONFIG_HEADER section.
24554 #
24555
24556 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24557 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24558 #
24559 # ac_d sets the value in "#define NAME VALUE" lines.
24560 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24561 ac_dB='[        ].*$,\1#\2'
24562 ac_dC=' '
24563 ac_dD=',;t'
24564 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24565 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24566 ac_uB='$,\1#\2define\3'
24567 ac_uC=' '
24568 ac_uD=',;t'
24569
24570 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24571   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24572   case $ac_file in
24573   - | *:- | *:-:* ) # input from stdin
24574         cat >$tmp/stdin
24575         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24576         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24577   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24578         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24579   * )   ac_file_in=$ac_file.in ;;
24580   esac
24581
24582   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24583 echo "$as_me: creating $ac_file" >&6;}
24584
24585   # First look for the input files in the build tree, otherwise in the
24586   # src tree.
24587   ac_file_inputs=`IFS=:
24588     for f in $ac_file_in; do
24589       case $f in
24590       -) echo $tmp/stdin ;;
24591       [\\/$]*)
24592          # Absolute (can't be DOS-style, as IFS=:)
24593          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24594 echo "$as_me: error: cannot find input file: $f" >&2;}
24595    { (exit 1); exit 1; }; }
24596          echo $f;;
24597       *) # Relative
24598          if test -f "$f"; then
24599            # Build tree
24600            echo $f
24601          elif test -f "$srcdir/$f"; then
24602            # Source tree
24603            echo $srcdir/$f
24604          else
24605            # /dev/null tree
24606            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24607 echo "$as_me: error: cannot find input file: $f" >&2;}
24608    { (exit 1); exit 1; }; }
24609          fi;;
24610       esac
24611     done` || { (exit 1); exit 1; }
24612   # Remove the trailing spaces.
24613   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24614
24615 _ACEOF
24616
24617 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24618 # `conftest.undefs', that substitutes the proper values into
24619 # config.h.in to produce config.h.  The first handles `#define'
24620 # templates, and the second `#undef' templates.
24621 # And first: Protect against being on the right side of a sed subst in
24622 # config.status.  Protect against being in an unquoted here document
24623 # in config.status.
24624 rm -f conftest.defines conftest.undefs
24625 # Using a here document instead of a string reduces the quoting nightmare.
24626 # Putting comments in sed scripts is not portable.
24627 #
24628 # `end' is used to avoid that the second main sed command (meant for
24629 # 0-ary CPP macros) applies to n-ary macro definitions.
24630 # See the Autoconf documentation for `clear'.
24631 cat >confdef2sed.sed <<\_ACEOF
24632 s/[\\&,]/\\&/g
24633 s,[\\$`],\\&,g
24634 t clear
24635 : clear
24636 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24637 t end
24638 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24639 : end
24640 _ACEOF
24641 # If some macros were called several times there might be several times
24642 # the same #defines, which is useless.  Nevertheless, we may not want to
24643 # sort them, since we want the *last* AC-DEFINE to be honored.
24644 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24645 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24646 rm -f confdef2sed.sed
24647
24648 # This sed command replaces #undef with comments.  This is necessary, for
24649 # example, in the case of _POSIX_SOURCE, which is predefined and required
24650 # on some systems where configure will not decide to define it.
24651 cat >>conftest.undefs <<\_ACEOF
24652 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24653 _ACEOF
24654
24655 # Break up conftest.defines because some shells have a limit on the size
24656 # of here documents, and old seds have small limits too (100 cmds).
24657 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24658 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24659 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24660 echo '  :' >>$CONFIG_STATUS
24661 rm -f conftest.tail
24662 while grep . conftest.defines >/dev/null
24663 do
24664   # Write a limited-size here document to $tmp/defines.sed.
24665   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24666   # Speed up: don't consider the non `#define' lines.
24667   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24668   # Work around the forget-to-reset-the-flag bug.
24669   echo 't clr' >>$CONFIG_STATUS
24670   echo ': clr' >>$CONFIG_STATUS
24671   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24672   echo 'CEOF
24673   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24674   rm -f $tmp/in
24675   mv $tmp/out $tmp/in
24676 ' >>$CONFIG_STATUS
24677   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24678   rm -f conftest.defines
24679   mv conftest.tail conftest.defines
24680 done
24681 rm -f conftest.defines
24682 echo '  fi # grep' >>$CONFIG_STATUS
24683 echo >>$CONFIG_STATUS
24684
24685 # Break up conftest.undefs because some shells have a limit on the size
24686 # of here documents, and old seds have small limits too (100 cmds).
24687 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24688 rm -f conftest.tail
24689 while grep . conftest.undefs >/dev/null
24690 do
24691   # Write a limited-size here document to $tmp/undefs.sed.
24692   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24693   # Speed up: don't consider the non `#undef'
24694   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24695   # Work around the forget-to-reset-the-flag bug.
24696   echo 't clr' >>$CONFIG_STATUS
24697   echo ': clr' >>$CONFIG_STATUS
24698   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24699   echo 'CEOF
24700   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24701   rm -f $tmp/in
24702   mv $tmp/out $tmp/in
24703 ' >>$CONFIG_STATUS
24704   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24705   rm -f conftest.undefs
24706   mv conftest.tail conftest.undefs
24707 done
24708 rm -f conftest.undefs
24709
24710 cat >>$CONFIG_STATUS <<\_ACEOF
24711   # Let's still pretend it is `configure' which instantiates (i.e., don't
24712   # use $as_me), people would be surprised to read:
24713   #    /* config.h.  Generated by config.status.  */
24714   if test x"$ac_file" = x-; then
24715     echo "/* Generated by configure.  */" >$tmp/config.h
24716   else
24717     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24718   fi
24719   cat $tmp/in >>$tmp/config.h
24720   rm -f $tmp/in
24721   if test x"$ac_file" != x-; then
24722     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24723       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24724 echo "$as_me: $ac_file is unchanged" >&6;}
24725     else
24726       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24727 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24728          X"$ac_file" : 'X\(//\)[^/]' \| \
24729          X"$ac_file" : 'X\(//\)$' \| \
24730          X"$ac_file" : 'X\(/\)' \| \
24731          .     : '\(.\)' 2>/dev/null ||
24732 echo X"$ac_file" |
24733     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24734           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24735           /^X\(\/\/\)$/{ s//\1/; q; }
24736           /^X\(\/\).*/{ s//\1/; q; }
24737           s/.*/./; q'`
24738       { if $as_mkdir_p; then
24739     mkdir -p "$ac_dir"
24740   else
24741     as_dir="$ac_dir"
24742     as_dirs=
24743     while test ! -d "$as_dir"; do
24744       as_dirs="$as_dir $as_dirs"
24745       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24746 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24747          X"$as_dir" : 'X\(//\)[^/]' \| \
24748          X"$as_dir" : 'X\(//\)$' \| \
24749          X"$as_dir" : 'X\(/\)' \| \
24750          .     : '\(.\)' 2>/dev/null ||
24751 echo X"$as_dir" |
24752     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24753           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24754           /^X\(\/\/\)$/{ s//\1/; q; }
24755           /^X\(\/\).*/{ s//\1/; q; }
24756           s/.*/./; q'`
24757     done
24758     test ! -n "$as_dirs" || mkdir $as_dirs
24759   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24760 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24761    { (exit 1); exit 1; }; }; }
24762
24763       rm -f $ac_file
24764       mv $tmp/config.h $ac_file
24765     fi
24766   else
24767     cat $tmp/config.h
24768     rm -f $tmp/config.h
24769   fi
24770 done
24771 _ACEOF
24772 cat >>$CONFIG_STATUS <<\_ACEOF
24773
24774 #
24775 # CONFIG_COMMANDS section.
24776 #
24777 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24778   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24779   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24780   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24781 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24782          X"$ac_dest" : 'X\(//\)[^/]' \| \
24783          X"$ac_dest" : 'X\(//\)$' \| \
24784          X"$ac_dest" : 'X\(/\)' \| \
24785          .     : '\(.\)' 2>/dev/null ||
24786 echo X"$ac_dest" |
24787     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24788           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24789           /^X\(\/\/\)$/{ s//\1/; q; }
24790           /^X\(\/\).*/{ s//\1/; q; }
24791           s/.*/./; q'`
24792   ac_builddir=.
24793
24794 if test "$ac_dir" != .; then
24795   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24796   # A "../" for each directory in $ac_dir_suffix.
24797   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24798 else
24799   ac_dir_suffix= ac_top_builddir=
24800 fi
24801
24802 case $srcdir in
24803   .)  # No --srcdir option.  We are building in place.
24804     ac_srcdir=.
24805     if test -z "$ac_top_builddir"; then
24806        ac_top_srcdir=.
24807     else
24808        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24809     fi ;;
24810   [\\/]* | ?:[\\/]* )  # Absolute path.
24811     ac_srcdir=$srcdir$ac_dir_suffix;
24812     ac_top_srcdir=$srcdir ;;
24813   *) # Relative path.
24814     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24815     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24816 esac
24817 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24818 # absolute.
24819 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24820 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24821 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24822 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24823
24824
24825   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24826 echo "$as_me: executing $ac_dest commands" >&6;}
24827   case $ac_dest in
24828     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24829     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24830     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24831     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24832     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24833     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24834     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24835     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24836     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24837     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24838     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24839     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24840     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24841     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24842     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24843     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24844     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24845     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24846     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24847     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24848     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24849     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24850     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24851     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24852     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24853     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24854     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24855     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24856     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24857     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24858     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24859     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24860     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24861     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24862     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24863     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24864     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24865     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24866     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24867     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24868     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24869     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24870     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24871     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24872     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24873     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24874     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24875     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24876     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24877     runtime/libprofile/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libprofile/Makefile runtime/libprofile/Makefile ;;
24878     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24879     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24880     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24881     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24882     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24883     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24884     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24885     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24886     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24887     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24888     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24889     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24890     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24891     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24892     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24893     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24894     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24895     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24896     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24897     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24898     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24899     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24900     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 ;;
24901     test/Programs/External/SPEC/CFP2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/Makefile test/Programs/External/SPEC/CFP2000/Makefile ;;
24902     test/Programs/External/SPEC/CFP2000/177.mesa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/177.mesa/Makefile test/Programs/External/SPEC/CFP2000/177.mesa/Makefile ;;
24903     test/Programs/External/SPEC/CFP2000/179.art/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/179.art/Makefile test/Programs/External/SPEC/CFP2000/179.art/Makefile ;;
24904     test/Programs/External/SPEC/CFP2000/183.equake/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/183.equake/Makefile test/Programs/External/SPEC/CFP2000/183.equake/Makefile ;;
24905     test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/188.ammp/Makefile test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ;;
24906     test/Programs/External/SPEC/CINT2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/Makefile test/Programs/External/SPEC/CINT2000/Makefile ;;
24907     test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/164.gzip/Makefile test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ;;
24908     test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/175.vpr/Makefile test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ;;
24909     test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/176.gcc/Makefile test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ;;
24910     test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/181.mcf/Makefile test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ;;
24911     test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/186.crafty/Makefile test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ;;
24912     test/Programs/External/SPEC/CINT2000/197.parser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/197.parser/Makefile test/Programs/External/SPEC/CINT2000/197.parser/Makefile ;;
24913     test/Programs/External/SPEC/CINT2000/252.eon/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/252.eon/Makefile test/Programs/External/SPEC/CINT2000/252.eon/Makefile ;;
24914     test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ;;
24915     test/Programs/External/SPEC/CINT2000/254.gap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/254.gap/Makefile test/Programs/External/SPEC/CINT2000/254.gap/Makefile ;;
24916     test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/255.vortex/Makefile test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ;;
24917     test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ;;
24918     test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/300.twolf/Makefile test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ;;
24919     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24920     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24921     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24922     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24923     test/Programs/MultiSource/Applications/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Burg/Makefile test/Programs/MultiSource/Applications/Burg/Makefile ;;
24924     test/Programs/MultiSource/Applications/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/aha/Makefile test/Programs/MultiSource/Applications/aha/Makefile ;;
24925     test/Programs/MultiSource/Applications/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/sgefa/Makefile test/Programs/MultiSource/Applications/sgefa/Makefile ;;
24926     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24927     test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ;;
24928     test/Programs/MultiSource/Benchmarks/FreeBench/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/Makefile ;;
24929     test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile ;;
24930     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 ;;
24931     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 ;;
24932     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 ;;
24933     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 ;;
24934     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 ;;
24935     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 ;;
24936     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 ;;
24937     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 ;;
24938     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 ;;
24939     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 ;;
24940     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 ;;
24941     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 ;;
24942     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 ;;
24943     test/Programs/MultiSource/Benchmarks/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/Makefile test/Programs/MultiSource/Benchmarks/McCat/Makefile ;;
24944     test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ;;
24945     test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ;;
24946     test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ;;
24947     test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ;;
24948     test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ;;
24949     test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ;;
24950     test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ;;
24951     test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ;;
24952     test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ;;
24953     test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ;;
24954     test/Programs/MultiSource/Benchmarks/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/Makefile test/Programs/MultiSource/Benchmarks/Olden/Makefile ;;
24955     test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ;;
24956     test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ;;
24957     test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ;;
24958     test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/health/Makefile test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ;;
24959     test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ;;
24960     test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ;;
24961     test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/power/Makefile test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ;;
24962     test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ;;
24963     test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ;;
24964     test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ;;
24965     test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ;;
24966     test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ;;
24967     test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ;;
24968     test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ;;
24969     test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ;;
24970     test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ;;
24971     test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ;;
24972     test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ;;
24973     test/Programs/MultiSource/Benchmarks/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/sim/Makefile test/Programs/MultiSource/Benchmarks/sim/Makefile ;;
24974     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24975     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24976     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24977     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24978     test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ;;
24979     test/Programs/SingleSource/Benchmarks/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Shootout/Makefile test/Programs/SingleSource/Benchmarks/Shootout/Makefile ;;
24980     test/Programs/SingleSource/Benchmarks/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Stanford/Makefile test/Programs/SingleSource/Benchmarks/Stanford/Makefile ;;
24981     test/Programs/SingleSource/Benchmarks/Misc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Misc/Makefile test/Programs/SingleSource/Benchmarks/Misc/Makefile ;;
24982     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24983     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24984     test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
24985     test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
24986     test/Programs/SingleSource/Regression/C/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C/Makefile test/Programs/SingleSource/Regression/C/Makefile ;;
24987     test/Programs/SingleSource/Regression/C++/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/Makefile test/Programs/SingleSource/Regression/C++/Makefile ;;
24988     test/Programs/SingleSource/Regression/C++/EH/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/EH/Makefile test/Programs/SingleSource/Regression/C++/EH/Makefile ;;
24989     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24990     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24991     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24992     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24993     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24994     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24995     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24996     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24997     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24998     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24999     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
25000     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
25001     tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
25002     tools/llvm-nm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-nm/Makefile tools/llvm-nm/Makefile ;;
25003     tools/llvm-prof/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-prof/Makefile tools/llvm-prof/Makefile ;;
25004     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
25005     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25006     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
25007     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
25008     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
25009     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25010     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
25011     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
25012     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
25013     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
25014     projects/Stacker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/Makefile projects/Stacker/Makefile ;;
25015     projects/Stacker/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/lib/Makefile projects/Stacker/lib/Makefile ;;
25016     projects/Stacker/lib/compiler/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/lib/compiler/Makefile projects/Stacker/lib/compiler/Makefile ;;
25017     projects/Stacker/lib/runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/lib/runtime/Makefile projects/Stacker/lib/runtime/Makefile ;;
25018     projects/Stacker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/tools/Makefile projects/Stacker/tools/Makefile ;;
25019     projects/Stacker/tools/stkrc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/tools/stkrc/Makefile projects/Stacker/tools/stkrc/Makefile ;;
25020     projects/Stacker/test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/test/Makefile projects/Stacker/test/Makefile ;;
25021     projects/Stacker/samples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/samples/Makefile projects/Stacker/samples/Makefile ;;
25022   esac
25023 done
25024 _ACEOF
25025
25026 cat >>$CONFIG_STATUS <<\_ACEOF
25027
25028 { (exit 0); exit 0; }
25029 _ACEOF
25030 chmod +x $CONFIG_STATUS
25031 ac_clean_files=$ac_clean_files_save
25032
25033
25034 # configure is writing to config.log, and then calls config.status.
25035 # config.status does its own redirection, appending to config.log.
25036 # Unfortunately, on DOS this fails, as config.log is still kept open
25037 # by configure, so config.status won't be able to write to it; its
25038 # output is simply discarded.  So we exec the FD to /dev/null,
25039 # effectively closing config.log, so it can be properly (re)opened and
25040 # appended to by config.status.  When coming back to configure, we
25041 # need to make the FD available again.
25042 if test "$no_create" != yes; then
25043   ac_cs_success=:
25044   ac_config_status_args=
25045   test "$silent" = yes &&
25046     ac_config_status_args="$ac_config_status_args --quiet"
25047   exec 5>/dev/null
25048   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25049   exec 5>>config.log
25050   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25051   # would make configure fail if this is the last instruction.
25052   $ac_cs_success || { (exit 1); exit 1; }
25053 fi
25054
25055 #
25056 # CONFIG_SUBDIRS section.
25057 #
25058 if test "$no_recursion" != yes; then
25059
25060   # Remove --cache-file and --srcdir arguments so they do not pile up.
25061   ac_sub_configure_args=
25062   ac_prev=
25063   for ac_arg in $ac_configure_args; do
25064     if test -n "$ac_prev"; then
25065       ac_prev=
25066       continue
25067     fi
25068     case $ac_arg in
25069     -cache-file | --cache-file | --cache-fil | --cache-fi \
25070     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25071       ac_prev=cache_file ;;
25072     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25073     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25074     | --c=*)
25075       ;;
25076     --config-cache | -C)
25077       ;;
25078     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25079       ac_prev=srcdir ;;
25080     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25081       ;;
25082     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25083       ac_prev=prefix ;;
25084     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25085       ;;
25086     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25087     esac
25088   done
25089
25090   # Always prepend --prefix to ensure using the same prefix
25091   # in subdir configurations.
25092   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25093
25094   ac_popdir=`pwd`
25095   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25096
25097     # Do not complain, so a configure script can configure whichever
25098     # parts of a large source tree are present.
25099     test -d $srcdir/$ac_dir || continue
25100
25101     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25102 echo "$as_me: configuring in $ac_dir" >&6;}
25103     { if $as_mkdir_p; then
25104     mkdir -p "$ac_dir"
25105   else
25106     as_dir="$ac_dir"
25107     as_dirs=
25108     while test ! -d "$as_dir"; do
25109       as_dirs="$as_dir $as_dirs"
25110       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25111 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25112          X"$as_dir" : 'X\(//\)[^/]' \| \
25113          X"$as_dir" : 'X\(//\)$' \| \
25114          X"$as_dir" : 'X\(/\)' \| \
25115          .     : '\(.\)' 2>/dev/null ||
25116 echo X"$as_dir" |
25117     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25118           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25119           /^X\(\/\/\)$/{ s//\1/; q; }
25120           /^X\(\/\).*/{ s//\1/; q; }
25121           s/.*/./; q'`
25122     done
25123     test ! -n "$as_dirs" || mkdir $as_dirs
25124   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25125 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25126    { (exit 1); exit 1; }; }; }
25127
25128     ac_builddir=.
25129
25130 if test "$ac_dir" != .; then
25131   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25132   # A "../" for each directory in $ac_dir_suffix.
25133   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25134 else
25135   ac_dir_suffix= ac_top_builddir=
25136 fi
25137
25138 case $srcdir in
25139   .)  # No --srcdir option.  We are building in place.
25140     ac_srcdir=.
25141     if test -z "$ac_top_builddir"; then
25142        ac_top_srcdir=.
25143     else
25144        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25145     fi ;;
25146   [\\/]* | ?:[\\/]* )  # Absolute path.
25147     ac_srcdir=$srcdir$ac_dir_suffix;
25148     ac_top_srcdir=$srcdir ;;
25149   *) # Relative path.
25150     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25151     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25152 esac
25153 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25154 # absolute.
25155 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25156 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25157 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25158 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25159
25160
25161     cd $ac_dir
25162
25163     # Check for guested configure; otherwise get Cygnus style configure.
25164     if test -f $ac_srcdir/configure.gnu; then
25165       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25166     elif test -f $ac_srcdir/configure; then
25167       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25168     elif test -f $ac_srcdir/configure.in; then
25169       ac_sub_configure=$ac_configure
25170     else
25171       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25173       ac_sub_configure=
25174     fi
25175
25176     # The recursion is here.
25177     if test -n "$ac_sub_configure"; then
25178       # Make the cache file name correct relative to the subdirectory.
25179       case $cache_file in
25180       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25181       *) # Relative path.
25182         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25183       esac
25184
25185       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25186 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25187       # The eval makes quoting arguments work.
25188       eval $ac_sub_configure $ac_sub_configure_args \
25189            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25190         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25191 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25192    { (exit 1); exit 1; }; }
25193     fi
25194
25195     cd $ac_popdir
25196   done
25197 fi
25198
25199
25200 if test $llvmgccwarn = yes
25201 then
25202         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25203 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25204         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25205 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25206         { echo "$as_me:$LINENO: WARNING: ***** " >&5
25207 echo "$as_me: WARNING: ***** " >&2;}
25208         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25209 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25210         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25211 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25212         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25213 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25214 fi