68055ae696938742ffcadb400492ea2443086b1a
[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/reopt"
430 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_unique_file=""Makefile.config.in""
469 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'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513   # If the previous option needs an argument, assign it.
514   if test -n "$ac_prev"; then
515     eval "$ac_prev=\$ac_option"
516     ac_prev=
517     continue
518   fi
519
520   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522   # Accept the important Cygnus configure options, so we can diagnose typos.
523
524   case $ac_option in
525
526   -bindir | --bindir | --bindi | --bind | --bin | --bi)
527     ac_prev=bindir ;;
528   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529     bindir=$ac_optarg ;;
530
531   -build | --build | --buil | --bui | --bu)
532     ac_prev=build_alias ;;
533   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534     build_alias=$ac_optarg ;;
535
536   -cache-file | --cache-file | --cache-fil | --cache-fi \
537   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538     ac_prev=cache_file ;;
539   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541     cache_file=$ac_optarg ;;
542
543   --config-cache | -C)
544     cache_file=config.cache ;;
545
546   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547     ac_prev=datadir ;;
548   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549   | --da=*)
550     datadir=$ac_optarg ;;
551
552   -disable-* | --disable-*)
553     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554     # Reject names that are not valid shell variable names.
555     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557    { (exit 1); exit 1; }; }
558     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559     eval "enable_$ac_feature=no" ;;
560
561   -enable-* | --enable-*)
562     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566    { (exit 1); exit 1; }; }
567     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568     case $ac_option in
569       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570       *) ac_optarg=yes ;;
571     esac
572     eval "enable_$ac_feature='$ac_optarg'" ;;
573
574   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576   | --exec | --exe | --ex)
577     ac_prev=exec_prefix ;;
578   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580   | --exec=* | --exe=* | --ex=*)
581     exec_prefix=$ac_optarg ;;
582
583   -gas | --gas | --ga | --g)
584     # Obsolete; use --with-gas.
585     with_gas=yes ;;
586
587   -help | --help | --hel | --he | -h)
588     ac_init_help=long ;;
589   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590     ac_init_help=recursive ;;
591   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592     ac_init_help=short ;;
593
594   -host | --host | --hos | --ho)
595     ac_prev=host_alias ;;
596   -host=* | --host=* | --hos=* | --ho=*)
597     host_alias=$ac_optarg ;;
598
599   -includedir | --includedir | --includedi | --included | --include \
600   | --includ | --inclu | --incl | --inc)
601     ac_prev=includedir ;;
602   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603   | --includ=* | --inclu=* | --incl=* | --inc=*)
604     includedir=$ac_optarg ;;
605
606   -infodir | --infodir | --infodi | --infod | --info | --inf)
607     ac_prev=infodir ;;
608   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609     infodir=$ac_optarg ;;
610
611   -libdir | --libdir | --libdi | --libd)
612     ac_prev=libdir ;;
613   -libdir=* | --libdir=* | --libdi=* | --libd=*)
614     libdir=$ac_optarg ;;
615
616   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617   | --libexe | --libex | --libe)
618     ac_prev=libexecdir ;;
619   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620   | --libexe=* | --libex=* | --libe=*)
621     libexecdir=$ac_optarg ;;
622
623   -localstatedir | --localstatedir | --localstatedi | --localstated \
624   | --localstate | --localstat | --localsta | --localst \
625   | --locals | --local | --loca | --loc | --lo)
626     ac_prev=localstatedir ;;
627   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630     localstatedir=$ac_optarg ;;
631
632   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633     ac_prev=mandir ;;
634   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635     mandir=$ac_optarg ;;
636
637   -nfp | --nfp | --nf)
638     # Obsolete; use --without-fp.
639     with_fp=no ;;
640
641   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642   | --no-cr | --no-c | -n)
643     no_create=yes ;;
644
645   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647     no_recursion=yes ;;
648
649   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651   | --oldin | --oldi | --old | --ol | --o)
652     ac_prev=oldincludedir ;;
653   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656     oldincludedir=$ac_optarg ;;
657
658   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659     ac_prev=prefix ;;
660   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661     prefix=$ac_optarg ;;
662
663   -program-prefix | --program-prefix | --program-prefi | --program-pref \
664   | --program-pre | --program-pr | --program-p)
665     ac_prev=program_prefix ;;
666   -program-prefix=* | --program-prefix=* | --program-prefi=* \
667   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668     program_prefix=$ac_optarg ;;
669
670   -program-suffix | --program-suffix | --program-suffi | --program-suff \
671   | --program-suf | --program-su | --program-s)
672     ac_prev=program_suffix ;;
673   -program-suffix=* | --program-suffix=* | --program-suffi=* \
674   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675     program_suffix=$ac_optarg ;;
676
677   -program-transform-name | --program-transform-name \
678   | --program-transform-nam | --program-transform-na \
679   | --program-transform-n | --program-transform- \
680   | --program-transform | --program-transfor \
681   | --program-transfo | --program-transf \
682   | --program-trans | --program-tran \
683   | --progr-tra | --program-tr | --program-t)
684     ac_prev=program_transform_name ;;
685   -program-transform-name=* | --program-transform-name=* \
686   | --program-transform-nam=* | --program-transform-na=* \
687   | --program-transform-n=* | --program-transform-=* \
688   | --program-transform=* | --program-transfor=* \
689   | --program-transfo=* | --program-transf=* \
690   | --program-trans=* | --program-tran=* \
691   | --progr-tra=* | --program-tr=* | --program-t=*)
692     program_transform_name=$ac_optarg ;;
693
694   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695   | -silent | --silent | --silen | --sile | --sil)
696     silent=yes ;;
697
698   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699     ac_prev=sbindir ;;
700   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701   | --sbi=* | --sb=*)
702     sbindir=$ac_optarg ;;
703
704   -sharedstatedir | --sharedstatedir | --sharedstatedi \
705   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706   | --sharedst | --shareds | --shared | --share | --shar \
707   | --sha | --sh)
708     ac_prev=sharedstatedir ;;
709   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712   | --sha=* | --sh=*)
713     sharedstatedir=$ac_optarg ;;
714
715   -site | --site | --sit)
716     ac_prev=site ;;
717   -site=* | --site=* | --sit=*)
718     site=$ac_optarg ;;
719
720   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721     ac_prev=srcdir ;;
722   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723     srcdir=$ac_optarg ;;
724
725   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726   | --syscon | --sysco | --sysc | --sys | --sy)
727     ac_prev=sysconfdir ;;
728   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730     sysconfdir=$ac_optarg ;;
731
732   -target | --target | --targe | --targ | --tar | --ta | --t)
733     ac_prev=target_alias ;;
734   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735     target_alias=$ac_optarg ;;
736
737   -v | -verbose | --verbose | --verbos | --verbo | --verb)
738     verbose=yes ;;
739
740   -version | --version | --versio | --versi | --vers | -V)
741     ac_init_version=: ;;
742
743   -with-* | --with-*)
744     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745     # Reject names that are not valid shell variable names.
746     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747       { echo "$as_me: error: invalid package name: $ac_package" >&2
748    { (exit 1); exit 1; }; }
749     ac_package=`echo $ac_package| sed 's/-/_/g'`
750     case $ac_option in
751       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752       *) ac_optarg=yes ;;
753     esac
754     eval "with_$ac_package='$ac_optarg'" ;;
755
756   -without-* | --without-*)
757     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758     # Reject names that are not valid shell variable names.
759     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760       { echo "$as_me: error: invalid package name: $ac_package" >&2
761    { (exit 1); exit 1; }; }
762     ac_package=`echo $ac_package | sed 's/-/_/g'`
763     eval "with_$ac_package=no" ;;
764
765   --x)
766     # Obsolete; use --with-x.
767     with_x=yes ;;
768
769   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770   | --x-incl | --x-inc | --x-in | --x-i)
771     ac_prev=x_includes ;;
772   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774     x_includes=$ac_optarg ;;
775
776   -x-libraries | --x-libraries | --x-librarie | --x-librari \
777   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778     ac_prev=x_libraries ;;
779   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781     x_libraries=$ac_optarg ;;
782
783   -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785    { (exit 1); exit 1; }; }
786     ;;
787
788   *=*)
789     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790     # Reject names that are not valid shell variable names.
791     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793    { (exit 1); exit 1; }; }
794     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795     eval "$ac_envvar='$ac_optarg'"
796     export $ac_envvar ;;
797
798   *)
799     # FIXME: should be removed in autoconf 3.0.
800     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804     ;;
805
806   esac
807 done
808
809 if test -n "$ac_prev"; then
810   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811   { echo "$as_me: error: missing argument to $ac_option" >&2
812    { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818   eval ac_val=$`echo $ac_var`
819   case $ac_val in
820     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822    { (exit 1); exit 1; }; };;
823   esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828               localstatedir libdir includedir oldincludedir infodir mandir
829 do
830   eval ac_val=$`echo $ac_var`
831   case $ac_val in
832     [\\/$]* | ?:[\\/]* ) ;;
833     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834    { (exit 1); exit 1; }; };;
835   esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847   if test "x$build_alias" = x; then
848     cross_compiling=maybe
849     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850     If a cross compiler is detected then cross compile mode will be used." >&2
851   elif test "x$build_alias" != "x$host_alias"; then
852     cross_compiling=yes
853   fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864   ac_srcdir_defaulted=yes
865   # Try the directory containing this script, then its parent.
866   ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868          X"$0" : 'X\(//\)[^/]' \| \
869          X"$0" : 'X\(//\)$' \| \
870          X"$0" : 'X\(/\)' \| \
871          .     : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875           /^X\(\/\/\)$/{ s//\1/; q; }
876           /^X\(\/\).*/{ s//\1/; q; }
877           s/.*/./; q'`
878   srcdir=$ac_confdir
879   if test ! -r $srcdir/$ac_unique_file; then
880     srcdir=..
881   fi
882 else
883   ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886   if test "$ac_srcdir_defaulted" = yes; then
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888    { (exit 1); exit 1; }; }
889   else
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891    { (exit 1); exit 1; }; }
892   fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896    { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CXX_set=${CXX+set}
911 ac_env_CXX_value=$CXX
912 ac_cv_env_CXX_set=${CXX+set}
913 ac_cv_env_CXX_value=$CXX
914 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_env_CXXFLAGS_value=$CXXFLAGS
916 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CC_set=${CC+set}
927 ac_env_CC_value=$CC
928 ac_cv_env_CC_set=${CC+set}
929 ac_cv_env_CC_value=$CC
930 ac_env_CFLAGS_set=${CFLAGS+set}
931 ac_env_CFLAGS_value=$CFLAGS
932 ac_cv_env_CFLAGS_set=${CFLAGS+set}
933 ac_cv_env_CFLAGS_value=$CFLAGS
934 ac_env_CPP_set=${CPP+set}
935 ac_env_CPP_value=$CPP
936 ac_cv_env_CPP_set=${CPP+set}
937 ac_cv_env_CPP_value=$CPP
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
950
951 #
952 # Report the --help message.
953 #
954 if test "$ac_init_help" = "long"; then
955   # Omit some internal or obsolete options to make the list less imposing.
956   # This message is too long to be a string in the A/UX 3.1 sh.
957   cat <<_ACEOF
958 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
959
960 Usage: $0 [OPTION]... [VAR=VALUE]...
961
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE.  See below for descriptions of some of the useful variables.
964
965 Defaults for the options are specified in brackets.
966
967 Configuration:
968   -h, --help              display this help and exit
969       --help=short        display options specific to this package
970       --help=recursive    display the short help of all the included packages
971   -V, --version           display version information and exit
972   -q, --quiet, --silent   do not print \`checking...' messages
973       --cache-file=FILE   cache test results in FILE [disabled]
974   -C, --config-cache      alias for \`--cache-file=config.cache'
975   -n, --no-create         do not create output files
976       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
977
978 _ACEOF
979
980   cat <<_ACEOF
981 Installation directories:
982   --prefix=PREFIX         install architecture-independent files in PREFIX
983                           [$ac_default_prefix]
984   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
985                           [PREFIX]
986
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
991
992 For better control, use the options below.
993
994 Fine tuning of the installation directories:
995   --bindir=DIR           user executables [EPREFIX/bin]
996   --sbindir=DIR          system admin executables [EPREFIX/sbin]
997   --libexecdir=DIR       program executables [EPREFIX/libexec]
998   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
999   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1000   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1001   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1002   --libdir=DIR           object code libraries [EPREFIX/lib]
1003   --includedir=DIR       C header files [PREFIX/include]
1004   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1005   --infodir=DIR          info documentation [PREFIX/info]
1006   --mandir=DIR           man documentation [PREFIX/man]
1007 _ACEOF
1008
1009   cat <<\_ACEOF
1010
1011 System types:
1012   --build=BUILD     configure for building on BUILD [guessed]
1013   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1014   --target=TARGET   configure for building compilers for TARGET [HOST]
1015 _ACEOF
1016 fi
1017
1018 if test -n "$ac_init_help"; then
1019   case $ac_init_help in
1020      short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1021    esac
1022   cat <<\_ACEOF
1023
1024 Optional Features:
1025   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027   --enable-shared[=PKGS]
1028                           build shared libraries [default=yes]
1029   --enable-static[=PKGS]
1030                           build static libraries [default=yes]
1031   --enable-fast-install[=PKGS]
1032                           optimize for fast installation [default=yes]
1033   --disable-libtool-lock  avoid locking (might break parallel builds)
1034   --enable-purify         Compile with purify (default is NO)
1035   --enable-optimized      Compile with optimizations enabled (default is NO)
1036   --enable-spec           Compile SPEC 2000 benchmarks (default is NO)
1037   --enable-precompiled_bytecode
1038                           Use pre-compiled bytecode (default is NO)
1039   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1040   --enable-jit            Enable Just In Time Compiling (default is YES)
1041
1042 Optional Packages:
1043   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046   --with-pic              try to use only PIC/non-PIC objects [default=use
1047                           both]
1048   --with-tags[=TAGS]
1049                           include additional configurations [automatic]
1050   --with-llvmgccdir       Location of LLVM GCC front-end
1051   --with-bcrepos          Location of Bytecode Repository
1052   --with-papi             Location of PAPI
1053   --with-purify           Location of purify program
1054
1055 Some influential environment variables:
1056   CXX         C++ compiler command
1057   CXXFLAGS    C++ compiler flags
1058   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1059               nonstandard directory <lib dir>
1060   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061               headers in a nonstandard directory <include dir>
1062   CC          C compiler command
1063   CFLAGS      C compiler flags
1064   CPP         C preprocessor
1065   CXXCPP      C++ preprocessor
1066   F77         Fortran 77 compiler command
1067   FFLAGS      Fortran 77 compiler flags
1068
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1071
1072 Report bugs to <llvmbugs@cs.uiuc.edu>.
1073 _ACEOF
1074 fi
1075
1076 if test "$ac_init_help" = "recursive"; then
1077   # If there are subdirs, report their specific --help.
1078   ac_popdir=`pwd`
1079   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080     test -d $ac_dir || continue
1081     ac_builddir=.
1082
1083 if test "$ac_dir" != .; then
1084   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085   # A "../" for each directory in $ac_dir_suffix.
1086   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 else
1088   ac_dir_suffix= ac_top_builddir=
1089 fi
1090
1091 case $srcdir in
1092   .)  # No --srcdir option.  We are building in place.
1093     ac_srcdir=.
1094     if test -z "$ac_top_builddir"; then
1095        ac_top_srcdir=.
1096     else
1097        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098     fi ;;
1099   [\\/]* | ?:[\\/]* )  # Absolute path.
1100     ac_srcdir=$srcdir$ac_dir_suffix;
1101     ac_top_srcdir=$srcdir ;;
1102   *) # Relative path.
1103     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 esac
1106 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1107 # absolute.
1108 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1109 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1110 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1111 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1112
1113     cd $ac_dir
1114     # Check for guested configure; otherwise get Cygnus style configure.
1115     if test -f $ac_srcdir/configure.gnu; then
1116       echo
1117       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1118     elif test -f $ac_srcdir/configure; then
1119       echo
1120       $SHELL $ac_srcdir/configure  --help=recursive
1121     elif test -f $ac_srcdir/configure.ac ||
1122            test -f $ac_srcdir/configure.in; then
1123       echo
1124       $ac_configure --help
1125     else
1126       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127     fi
1128     cd $ac_popdir
1129   done
1130 fi
1131
1132 test -n "$ac_init_help" && exit 0
1133 if $ac_init_version; then
1134   cat <<\_ACEOF
1135 [LLVM] configure [1.0]
1136 generated by GNU Autoconf 2.57
1137
1138 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1139 Free Software Foundation, Inc.
1140 This configure script is free software; the Free Software Foundation
1141 gives unlimited permission to copy, distribute and modify it.
1142 _ACEOF
1143   exit 0
1144 fi
1145 exec 5>config.log
1146 cat >&5 <<_ACEOF
1147 This file contains any messages produced by compilers while
1148 running configure, to aid debugging if configure makes a mistake.
1149
1150 It was created by [LLVM] $as_me [1.0], which was
1151 generated by GNU Autoconf 2.57.  Invocation command line was
1152
1153   $ $0 $@
1154
1155 _ACEOF
1156 {
1157 cat <<_ASUNAME
1158 ## --------- ##
1159 ## Platform. ##
1160 ## --------- ##
1161
1162 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1170
1171 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1172 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1173 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1175 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1176 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1177 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1178
1179 _ASUNAME
1180
1181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182 for as_dir in $PATH
1183 do
1184   IFS=$as_save_IFS
1185   test -z "$as_dir" && as_dir=.
1186   echo "PATH: $as_dir"
1187 done
1188
1189 } >&5
1190
1191 cat >&5 <<_ACEOF
1192
1193
1194 ## ----------- ##
1195 ## Core tests. ##
1196 ## ----------- ##
1197
1198 _ACEOF
1199
1200
1201 # Keep a trace of the command line.
1202 # Strip out --no-create and --no-recursion so they do not pile up.
1203 # Strip out --silent because we don't want to record it for future runs.
1204 # Also quote any args containing shell meta-characters.
1205 # Make two passes to allow for proper duplicate-argument suppression.
1206 ac_configure_args=
1207 ac_configure_args0=
1208 ac_configure_args1=
1209 ac_sep=
1210 ac_must_keep_next=false
1211 for ac_pass in 1 2
1212 do
1213   for ac_arg
1214   do
1215     case $ac_arg in
1216     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218     | -silent | --silent | --silen | --sile | --sil)
1219       continue ;;
1220     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222     esac
1223     case $ac_pass in
1224     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225     2)
1226       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227       if test $ac_must_keep_next = true; then
1228         ac_must_keep_next=false # Got value, back to normal.
1229       else
1230         case $ac_arg in
1231           *=* | --config-cache | -C | -disable-* | --disable-* \
1232           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234           | -with-* | --with-* | -without-* | --without-* | --x)
1235             case "$ac_configure_args0 " in
1236               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237             esac
1238             ;;
1239           -* ) ac_must_keep_next=true ;;
1240         esac
1241       fi
1242       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243       # Get rid of the leading space.
1244       ac_sep=" "
1245       ;;
1246     esac
1247   done
1248 done
1249 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
1252 # When interrupted or exit'd, cleanup temporary files, and complete
1253 # config.log.  We remove comments because anyway the quotes in there
1254 # would cause problems or look ugly.
1255 # WARNING: Be sure not to use single quotes in there, as some shells,
1256 # such as our DU 5.0 friend, will then `close' the trap.
1257 trap 'exit_status=$?
1258   # Save into config.log some information that might help in debugging.
1259   {
1260     echo
1261
1262     cat <<\_ASBOX
1263 ## ---------------- ##
1264 ## Cache variables. ##
1265 ## ---------------- ##
1266 _ASBOX
1267     echo
1268     # The following way of writing the cache mishandles newlines in values,
1269 {
1270   (set) 2>&1 |
1271     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272     *ac_space=\ *)
1273       sed -n \
1274         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276       ;;
1277     *)
1278       sed -n \
1279         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280       ;;
1281     esac;
1282 }
1283     echo
1284
1285     cat <<\_ASBOX
1286 ## ----------------- ##
1287 ## Output variables. ##
1288 ## ----------------- ##
1289 _ASBOX
1290     echo
1291     for ac_var in $ac_subst_vars
1292     do
1293       eval ac_val=$`echo $ac_var`
1294       echo "$ac_var='"'"'$ac_val'"'"'"
1295     done | sort
1296     echo
1297
1298     if test -n "$ac_subst_files"; then
1299       cat <<\_ASBOX
1300 ## ------------- ##
1301 ## Output files. ##
1302 ## ------------- ##
1303 _ASBOX
1304       echo
1305       for ac_var in $ac_subst_files
1306       do
1307         eval ac_val=$`echo $ac_var`
1308         echo "$ac_var='"'"'$ac_val'"'"'"
1309       done | sort
1310       echo
1311     fi
1312
1313     if test -s confdefs.h; then
1314       cat <<\_ASBOX
1315 ## ----------- ##
1316 ## confdefs.h. ##
1317 ## ----------- ##
1318 _ASBOX
1319       echo
1320       sed "/^$/d" confdefs.h | sort
1321       echo
1322     fi
1323     test "$ac_signal" != 0 &&
1324       echo "$as_me: caught signal $ac_signal"
1325     echo "$as_me: exit $exit_status"
1326   } >&5
1327   rm -f core core.* *.core &&
1328   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329     exit $exit_status
1330      ' 0
1331 for ac_signal in 1 2 13 15; do
1332   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333 done
1334 ac_signal=0
1335
1336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1337 rm -rf conftest* confdefs.h
1338 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339 echo >confdefs.h
1340
1341 # Predefined preprocessor variables.
1342
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_NAME "$PACKAGE_NAME"
1345 _ACEOF
1346
1347
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350 _ACEOF
1351
1352
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1355 _ACEOF
1356
1357
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_STRING "$PACKAGE_STRING"
1360 _ACEOF
1361
1362
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365 _ACEOF
1366
1367
1368 # Let the site file select an alternate cache file if it wants to.
1369 # Prefer explicitly selected file to automatically selected ones.
1370 if test -z "$CONFIG_SITE"; then
1371   if test "x$prefix" != xNONE; then
1372     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373   else
1374     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375   fi
1376 fi
1377 for ac_site_file in $CONFIG_SITE; do
1378   if test -r "$ac_site_file"; then
1379     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380 echo "$as_me: loading site script $ac_site_file" >&6;}
1381     sed 's/^/| /' "$ac_site_file" >&5
1382     . "$ac_site_file"
1383   fi
1384 done
1385
1386 if test -r "$cache_file"; then
1387   # Some versions of bash will fail to source /dev/null (special
1388   # files actually), so we avoid doing that.
1389   if test -f "$cache_file"; then
1390     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391 echo "$as_me: loading cache $cache_file" >&6;}
1392     case $cache_file in
1393       [\\/]* | ?:[\\/]* ) . $cache_file;;
1394       *)                      . ./$cache_file;;
1395     esac
1396   fi
1397 else
1398   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399 echo "$as_me: creating cache $cache_file" >&6;}
1400   >$cache_file
1401 fi
1402
1403 # Check that the precious variables saved in the cache have kept the same
1404 # value.
1405 ac_cache_corrupted=false
1406 for ac_var in `(set) 2>&1 |
1407                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409   eval ac_new_set=\$ac_env_${ac_var}_set
1410   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411   eval ac_new_val="\$ac_env_${ac_var}_value"
1412   case $ac_old_set,$ac_new_set in
1413     set,)
1414       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416       ac_cache_corrupted=: ;;
1417     ,set)
1418       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420       ac_cache_corrupted=: ;;
1421     ,);;
1422     *)
1423       if test "x$ac_old_val" != "x$ac_new_val"; then
1424         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1425 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1426         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1427 echo "$as_me:   former value:  $ac_old_val" >&2;}
1428         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1429 echo "$as_me:   current value: $ac_new_val" >&2;}
1430         ac_cache_corrupted=:
1431       fi;;
1432   esac
1433   # Pass precious variables to config.status.
1434   if test "$ac_new_set" = set; then
1435     case $ac_new_val in
1436     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1437       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1438     *) ac_arg=$ac_var=$ac_new_val ;;
1439     esac
1440     case " $ac_configure_args " in
1441       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1442       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1443     esac
1444   fi
1445 done
1446 if $ac_cache_corrupted; then
1447   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1448 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1449   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1450 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1451    { (exit 1); exit 1; }; }
1452 fi
1453
1454 ac_ext=c
1455 ac_cpp='$CPP $CPPFLAGS'
1456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487 ac_aux_dir=
1488 for ac_dir in autoconf $srcdir/autoconf; do
1489   if test -f $ac_dir/install-sh; then
1490     ac_aux_dir=$ac_dir
1491     ac_install_sh="$ac_aux_dir/install-sh -c"
1492     break
1493   elif test -f $ac_dir/install.sh; then
1494     ac_aux_dir=$ac_dir
1495     ac_install_sh="$ac_aux_dir/install.sh -c"
1496     break
1497   elif test -f $ac_dir/shtool; then
1498     ac_aux_dir=$ac_dir
1499     ac_install_sh="$ac_aux_dir/shtool install -c"
1500     break
1501   fi
1502 done
1503 if test -z "$ac_aux_dir"; then
1504   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1505 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1506    { (exit 1); exit 1; }; }
1507 fi
1508 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1511
1512
1513 if test ${srcdir} != "."
1514 then
1515         if test -f ${srcdir}/include/Config/config.h
1516         then
1517                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1518 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1519    { (exit 1); exit 1; }; }
1520         fi
1521 fi
1522
1523 if test -d ${srcdir}/projects/reopt
1524 then
1525
1526
1527 subdirs="$subdirs projects/reopt"
1528
1529 fi
1530
1531 if test -d ${srcdir}/projects/poolalloc
1532 then
1533
1534
1535 subdirs="$subdirs projects/poolalloc"
1536
1537 fi
1538
1539           ac_config_headers="$ac_config_headers include/Config/config.h"
1540
1541           ac_config_commands="$ac_config_commands Makefile"
1542
1543
1544           ac_config_commands="$ac_config_commands Makefile.common"
1545
1546
1547           ac_config_commands="$ac_config_commands Makefile.rules"
1548
1549
1550           ac_config_commands="$ac_config_commands lib/Makefile"
1551
1552
1553           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1554
1555
1556           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1557
1558
1559           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1560
1561
1562           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1563
1564
1565           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1566
1567
1568           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1569
1570
1571           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1572
1573
1574           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1575
1576
1577           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1578
1579
1580           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1584
1585
1586           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1587
1588
1589           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1590
1591
1592           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1593
1594
1595           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1596
1597
1598           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1599
1600
1601           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1602
1603
1604           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1605
1606
1607           ac_config_commands="$ac_config_commands lib/Support/Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1617
1618
1619           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1623
1624
1625           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1626
1627
1628           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1629
1630
1631           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1632
1633
1634           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1635
1636
1637           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1638
1639
1640           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1641
1642
1643           ac_config_commands="$ac_config_commands runtime/Makefile"
1644
1645
1646           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1647
1648
1649           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1650
1651
1652           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1653
1654
1655           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1656
1657
1658           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1659
1660
1661           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1662
1663
1664           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1665
1666
1667           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1668
1669
1670           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1671
1672
1673           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1674
1675
1676           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1677
1678
1679           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1680
1681
1682           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1683
1684
1685           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1686
1687
1688           ac_config_commands="$ac_config_commands test/Makefile"
1689
1690
1691           ac_config_commands="$ac_config_commands test/Makefile.tests"
1692
1693
1694           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1695
1696
1697           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1698
1699
1700           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1701
1702
1703           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1704
1705
1706           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1707
1708
1709           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1710
1711
1712           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1713
1714
1715           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1716
1717
1718           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1719
1720
1721           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1722
1723
1724           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1725
1726
1727           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1728
1729
1730           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1731
1732
1733           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1734
1735
1736           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1737
1738
1739           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1740
1741
1742           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1743
1744
1745           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1746
1747
1748           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1749
1750
1751           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1752
1753
1754           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1755
1756
1757           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1758
1759
1760           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/177.mesa/Makefile"
1761
1762
1763           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1764
1765
1766           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1767
1768
1769           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1770
1771
1772           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1773
1774
1775           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1776
1777
1778           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1779
1780
1781           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1782
1783
1784           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1785
1786
1787           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1788
1789
1790           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1791
1792
1793           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1794
1795
1796           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1797
1798
1799           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1800
1801
1802           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1803
1804
1805           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1806
1807
1808           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1809
1810
1811           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1812
1813
1814           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1815
1816
1817           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1818
1819
1820           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1821
1822
1823           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1824
1825
1826           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1827
1828
1829           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1830
1831
1832           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1833
1834
1835           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1836
1837
1838           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1839
1840
1841           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1842
1843
1844           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1845
1846
1847           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1848
1849
1850           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1851
1852
1853           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1854
1855
1856           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1857
1858
1859           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1860
1861
1862           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1863
1864
1865           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1866
1867
1868           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1869
1870
1871           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1872
1873
1874           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1875
1876
1877           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1878
1879
1880           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1881
1882
1883           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1884
1885
1886           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1887
1888
1889           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1890
1891
1892           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1893
1894
1895           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1896
1897
1898           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1899
1900
1901           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1902
1903
1904           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1905
1906
1907           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1908
1909
1910           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1911
1912
1913           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1914
1915
1916           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1917
1918
1919           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1920
1921
1922           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1923
1924
1925           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1926
1927
1928           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1929
1930
1931           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1932
1933
1934           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1935
1936
1937           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1938
1939
1940           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1941
1942
1943           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1944
1945
1946           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1947
1948
1949           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1950
1951
1952           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1953
1954
1955           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1956
1957
1958           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1959
1960
1961           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1962
1963
1964           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1965
1966
1967           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1968
1969
1970           ac_config_commands="$ac_config_commands tools/Makefile"
1971
1972
1973           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1974
1975
1976           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1977
1978
1979           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1980
1981
1982           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1983
1984
1985           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1986
1987
1988           ac_config_commands="$ac_config_commands tools/llc/Makefile"
1989
1990
1991           ac_config_commands="$ac_config_commands tools/llee/Makefile"
1992
1993
1994           ac_config_commands="$ac_config_commands tools/lli/Makefile"
1995
1996
1997           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1998
1999
2000           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2001
2002
2003           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
2004
2005
2006           ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2007
2008
2009           ac_config_commands="$ac_config_commands tools/opt/Makefile"
2010
2011
2012           ac_config_commands="$ac_config_commands utils/Makefile"
2013
2014
2015           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2016
2017
2018           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2019
2020
2021           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2022
2023
2024           ac_config_commands="$ac_config_commands projects/Makefile"
2025
2026
2027           ac_config_commands="$ac_config_commands projects/sample/Makefile"
2028
2029
2030           ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2031
2032
2033           ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2034
2035
2036           ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2037
2038
2039           ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2040
2041
2042           ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2043
2044
2045           ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2046
2047
2048           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2049
2050
2051           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2052
2053
2054           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2055
2056
2057           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2058
2059
2060
2061
2062 # Find a good install program.  We prefer a C program (faster),
2063 # so one script is as good as another.  But avoid the broken or
2064 # incompatible versions:
2065 # SysV /etc/install, /usr/sbin/install
2066 # SunOS /usr/etc/install
2067 # IRIX /sbin/install
2068 # AIX /bin/install
2069 # AmigaOS /C/install, which installs bootblocks on floppy discs
2070 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2071 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2072 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2073 # ./install, which can be erroneously created by make from ./install.sh.
2074 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2075 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2076 if test -z "$INSTALL"; then
2077 if test "${ac_cv_path_install+set}" = set; then
2078   echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 for as_dir in $PATH
2082 do
2083   IFS=$as_save_IFS
2084   test -z "$as_dir" && as_dir=.
2085   # Account for people who put trailing slashes in PATH elements.
2086 case $as_dir/ in
2087   ./ | .// | /cC/* | \
2088   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2089   /usr/ucb/* ) ;;
2090   *)
2091     # OSF1 and SCO ODT 3.0 have their own names for install.
2092     # Don't use installbsd from OSF since it installs stuff as root
2093     # by default.
2094     for ac_prog in ginstall scoinst install; do
2095       for ac_exec_ext in '' $ac_executable_extensions; do
2096         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2097           if test $ac_prog = install &&
2098             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2099             # AIX install.  It has an incompatible calling convention.
2100             :
2101           elif test $ac_prog = install &&
2102             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2103             # program-specific install script used by HP pwplus--don't use.
2104             :
2105           else
2106             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2107             break 3
2108           fi
2109         fi
2110       done
2111     done
2112     ;;
2113 esac
2114 done
2115
2116
2117 fi
2118   if test "${ac_cv_path_install+set}" = set; then
2119     INSTALL=$ac_cv_path_install
2120   else
2121     # As a last resort, use the slow shell script.  We don't cache a
2122     # path for INSTALL within a source directory, because that will
2123     # break other packages using the cache if that directory is
2124     # removed, or if the path is relative.
2125     INSTALL=$ac_install_sh
2126   fi
2127 fi
2128 echo "$as_me:$LINENO: result: $INSTALL" >&5
2129 echo "${ECHO_T}$INSTALL" >&6
2130
2131 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2132 # It thinks the first close brace ends the variable substitution.
2133 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2134
2135 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2136
2137 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2138
2139
2140 # Make sure we can run config.sub.
2141 $ac_config_sub sun4 >/dev/null 2>&1 ||
2142   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2143 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2144    { (exit 1); exit 1; }; }
2145
2146 echo "$as_me:$LINENO: checking build system type" >&5
2147 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2148 if test "${ac_cv_build+set}" = set; then
2149   echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151   ac_cv_build_alias=$build_alias
2152 test -z "$ac_cv_build_alias" &&
2153   ac_cv_build_alias=`$ac_config_guess`
2154 test -z "$ac_cv_build_alias" &&
2155   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2156 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2157    { (exit 1); exit 1; }; }
2158 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2159   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2160 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2161    { (exit 1); exit 1; }; }
2162
2163 fi
2164 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2165 echo "${ECHO_T}$ac_cv_build" >&6
2166 build=$ac_cv_build
2167 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2168 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2169 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2170
2171
2172 echo "$as_me:$LINENO: checking host system type" >&5
2173 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2174 if test "${ac_cv_host+set}" = set; then
2175   echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177   ac_cv_host_alias=$host_alias
2178 test -z "$ac_cv_host_alias" &&
2179   ac_cv_host_alias=$ac_cv_build_alias
2180 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2181   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2182 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2183    { (exit 1); exit 1; }; }
2184
2185 fi
2186 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2187 echo "${ECHO_T}$ac_cv_host" >&6
2188 host=$ac_cv_host
2189 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2190 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2191 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2192
2193
2194 echo "$as_me:$LINENO: checking target system type" >&5
2195 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2196 if test "${ac_cv_target+set}" = set; then
2197   echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199   ac_cv_target_alias=$target_alias
2200 test "x$ac_cv_target_alias" = "x" &&
2201   ac_cv_target_alias=$ac_cv_host_alias
2202 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2203   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2204 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2205    { (exit 1); exit 1; }; }
2206
2207 fi
2208 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2209 echo "${ECHO_T}$ac_cv_target" >&6
2210 target=$ac_cv_target
2211 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2212 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2213 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2214
2215
2216 # The aliases save the names the user supplied, while $host etc.
2217 # will get canonicalized.
2218 test -n "$target_alias" &&
2219   test "$program_prefix$program_suffix$program_transform_name" = \
2220     NONENONEs,x,x, &&
2221   program_prefix=${target_alias}-
2222
2223 case $build in
2224         *i*86*)  OS=Linux
2225
2226                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2227
2228                  ;;
2229
2230         *sparc*) OS=SunOS
2231
2232                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2233
2234                  ;;
2235
2236         *)       OS=Unknown
2237
2238                  ;;
2239 esac
2240
2241 case $target in
2242         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2243
2244                           ;;
2245 esac
2246
2247 case $target in
2248         *i*86*)           ARCH=x86
2249
2250                           ;;
2251         *sparc*solaris*)  ARCH=Sparc
2252
2253                           ;;
2254 esac
2255
2256
2257 ac_ext=cc
2258 ac_cpp='$CXXCPP $CPPFLAGS'
2259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2262 if test -n "$ac_tool_prefix"; then
2263   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2264   do
2265     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2266 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2267 echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269 if test "${ac_cv_prog_CXX+set}" = set; then
2270   echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272   if test -n "$CXX"; then
2273   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2274 else
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2277 do
2278   IFS=$as_save_IFS
2279   test -z "$as_dir" && as_dir=.
2280   for ac_exec_ext in '' $ac_executable_extensions; do
2281   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2282     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284     break 2
2285   fi
2286 done
2287 done
2288
2289 fi
2290 fi
2291 CXX=$ac_cv_prog_CXX
2292 if test -n "$CXX"; then
2293   echo "$as_me:$LINENO: result: $CXX" >&5
2294 echo "${ECHO_T}$CXX" >&6
2295 else
2296   echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6
2298 fi
2299
2300     test -n "$CXX" && break
2301   done
2302 fi
2303 if test -z "$CXX"; then
2304   ac_ct_CXX=$CXX
2305   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2306 do
2307   # Extract the first word of "$ac_prog", so it can be a program name with args.
2308 set dummy $ac_prog; ac_word=$2
2309 echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2311 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2312   echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314   if test -n "$ac_ct_CXX"; then
2315   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320   IFS=$as_save_IFS
2321   test -z "$as_dir" && as_dir=.
2322   for ac_exec_ext in '' $ac_executable_extensions; do
2323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2324     ac_cv_prog_ac_ct_CXX="$ac_prog"
2325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326     break 2
2327   fi
2328 done
2329 done
2330
2331 fi
2332 fi
2333 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2334 if test -n "$ac_ct_CXX"; then
2335   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2336 echo "${ECHO_T}$ac_ct_CXX" >&6
2337 else
2338   echo "$as_me:$LINENO: result: no" >&5
2339 echo "${ECHO_T}no" >&6
2340 fi
2341
2342   test -n "$ac_ct_CXX" && break
2343 done
2344 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2345
2346   CXX=$ac_ct_CXX
2347 fi
2348
2349
2350 # Provide some information about the compiler.
2351 echo "$as_me:$LINENO:" \
2352      "checking for C++ compiler version" >&5
2353 ac_compiler=`set X $ac_compile; echo $2`
2354 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2355   (eval $ac_compiler --version </dev/null >&5) 2>&5
2356   ac_status=$?
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); }
2359 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2360   (eval $ac_compiler -v </dev/null >&5) 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }
2364 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2365   (eval $ac_compiler -V </dev/null >&5) 2>&5
2366   ac_status=$?
2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368   (exit $ac_status); }
2369
2370 cat >conftest.$ac_ext <<_ACEOF
2371 #line $LINENO "configure"
2372 /* confdefs.h.  */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h.  */
2377
2378 int
2379 main ()
2380 {
2381
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 ac_clean_files_save=$ac_clean_files
2387 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2388 # Try to create an executable without -o first, disregard a.out.
2389 # It will help us diagnose broken compilers, and finding out an intuition
2390 # of exeext.
2391 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2392 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2393 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2394 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2395   (eval $ac_link_default) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; then
2399   # Find the output, starting from the most likely.  This scheme is
2400 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2401 # resort.
2402
2403 # Be careful to initialize this variable, since it used to be cached.
2404 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2405 ac_cv_exeext=
2406 # b.out is created by i960 compilers.
2407 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2408 do
2409   test -f "$ac_file" || continue
2410   case $ac_file in
2411     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2412         ;;
2413     conftest.$ac_ext )
2414         # This is the source file.
2415         ;;
2416     [ab].out )
2417         # We found the default executable, but exeext='' is most
2418         # certainly right.
2419         break;;
2420     *.* )
2421         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422         # FIXME: I believe we export ac_cv_exeext for Libtool,
2423         # but it would be cool to find out if it's true.  Does anybody
2424         # maintain Libtool? --akim.
2425         export ac_cv_exeext
2426         break;;
2427     * )
2428         break;;
2429   esac
2430 done
2431 else
2432   echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: C++ compiler cannot create executables
2438 See \`config.log' for more details." >&2;}
2439    { (exit 77); exit 77; }; }
2440 fi
2441
2442 ac_exeext=$ac_cv_exeext
2443 echo "$as_me:$LINENO: result: $ac_file" >&5
2444 echo "${ECHO_T}$ac_file" >&6
2445
2446 # Check the compiler produces executables we can run.  If not, either
2447 # the compiler is broken, or we cross compile.
2448 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2449 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2450 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2451 # If not cross compiling, check that we can run a simple program.
2452 if test "$cross_compiling" != yes; then
2453   if { ac_try='./$ac_file'
2454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455   (eval $ac_try) 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }; }; then
2459     cross_compiling=no
2460   else
2461     if test "$cross_compiling" = maybe; then
2462         cross_compiling=yes
2463     else
2464         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2465 If you meant to cross compile, use \`--host'.
2466 See \`config.log' for more details." >&5
2467 echo "$as_me: error: cannot run C++ compiled programs.
2468 If you meant to cross compile, use \`--host'.
2469 See \`config.log' for more details." >&2;}
2470    { (exit 1); exit 1; }; }
2471     fi
2472   fi
2473 fi
2474 echo "$as_me:$LINENO: result: yes" >&5
2475 echo "${ECHO_T}yes" >&6
2476
2477 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2478 ac_clean_files=$ac_clean_files_save
2479 # Check the compiler produces executables we can run.  If not, either
2480 # the compiler is broken, or we cross compile.
2481 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2482 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2483 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2484 echo "${ECHO_T}$cross_compiling" >&6
2485
2486 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2487 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2489   (eval $ac_link) 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); }; then
2493   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2494 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2495 # work properly (i.e., refer to `conftest.exe'), while it won't with
2496 # `rm'.
2497 for ac_file in conftest.exe conftest conftest.*; do
2498   test -f "$ac_file" || continue
2499   case $ac_file in
2500     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2501     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2502           export ac_cv_exeext
2503           break;;
2504     * ) break;;
2505   esac
2506 done
2507 else
2508   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2509 See \`config.log' for more details." >&5
2510 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2511 See \`config.log' for more details." >&2;}
2512    { (exit 1); exit 1; }; }
2513 fi
2514
2515 rm -f conftest$ac_cv_exeext
2516 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2517 echo "${ECHO_T}$ac_cv_exeext" >&6
2518
2519 rm -f conftest.$ac_ext
2520 EXEEXT=$ac_cv_exeext
2521 ac_exeext=$EXEEXT
2522 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2523 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2524 if test "${ac_cv_objext+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   cat >conftest.$ac_ext <<_ACEOF
2528 #line $LINENO "configure"
2529 /* confdefs.h.  */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h.  */
2534
2535 int
2536 main ()
2537 {
2538
2539   ;
2540   return 0;
2541 }
2542 _ACEOF
2543 rm -f conftest.o conftest.obj
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545   (eval $ac_compile) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; then
2549   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2550   case $ac_file in
2551     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2552     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2553        break;;
2554   esac
2555 done
2556 else
2557   echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563 See \`config.log' for more details." >&2;}
2564    { (exit 1); exit 1; }; }
2565 fi
2566
2567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2568 fi
2569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570 echo "${ECHO_T}$ac_cv_objext" >&6
2571 OBJEXT=$ac_cv_objext
2572 ac_objext=$OBJEXT
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2575 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2576   echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578   cat >conftest.$ac_ext <<_ACEOF
2579 #line $LINENO "configure"
2580 /* confdefs.h.  */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h.  */
2585
2586 int
2587 main ()
2588 {
2589 #ifndef __GNUC__
2590        choke me
2591 #endif
2592
2593   ;
2594   return 0;
2595 }
2596 _ACEOF
2597 rm -f conftest.$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599   (eval $ac_compile) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); } &&
2603          { ac_try='test -s conftest.$ac_objext'
2604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605   (eval $ac_try) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; }; then
2609   ac_compiler_gnu=yes
2610 else
2611   echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2613
2614 ac_compiler_gnu=no
2615 fi
2616 rm -f conftest.$ac_objext conftest.$ac_ext
2617 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2618
2619 fi
2620 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2621 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2622 GXX=`test $ac_compiler_gnu = yes && echo yes`
2623 ac_test_CXXFLAGS=${CXXFLAGS+set}
2624 ac_save_CXXFLAGS=$CXXFLAGS
2625 CXXFLAGS="-g"
2626 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2627 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2628 if test "${ac_cv_prog_cxx_g+set}" = set; then
2629   echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631   cat >conftest.$ac_ext <<_ACEOF
2632 #line $LINENO "configure"
2633 /* confdefs.h.  */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h.  */
2638
2639 int
2640 main ()
2641 {
2642
2643   ;
2644   return 0;
2645 }
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649   (eval $ac_compile) 2>&5
2650   ac_status=$?
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); } &&
2653          { ac_try='test -s conftest.$ac_objext'
2654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655   (eval $ac_try) 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); }; }; then
2659   ac_cv_prog_cxx_g=yes
2660 else
2661   echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2663
2664 ac_cv_prog_cxx_g=no
2665 fi
2666 rm -f conftest.$ac_objext conftest.$ac_ext
2667 fi
2668 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2669 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2670 if test "$ac_test_CXXFLAGS" = set; then
2671   CXXFLAGS=$ac_save_CXXFLAGS
2672 elif test $ac_cv_prog_cxx_g = yes; then
2673   if test "$GXX" = yes; then
2674     CXXFLAGS="-g -O2"
2675   else
2676     CXXFLAGS="-g"
2677   fi
2678 else
2679   if test "$GXX" = yes; then
2680     CXXFLAGS="-O2"
2681   else
2682     CXXFLAGS=
2683   fi
2684 fi
2685 for ac_declaration in \
2686    ''\
2687    '#include <stdlib.h>' \
2688    'extern "C" void std::exit (int) throw (); using std::exit;' \
2689    'extern "C" void std::exit (int); using std::exit;' \
2690    'extern "C" void exit (int) throw ();' \
2691    'extern "C" void exit (int);' \
2692    'void exit (int);'
2693 do
2694   cat >conftest.$ac_ext <<_ACEOF
2695 #line $LINENO "configure"
2696 /* confdefs.h.  */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h.  */
2701 #include <stdlib.h>
2702 $ac_declaration
2703 int
2704 main ()
2705 {
2706 exit (42);
2707   ;
2708   return 0;
2709 }
2710 _ACEOF
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713   (eval $ac_compile) 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); } &&
2717          { ac_try='test -s conftest.$ac_objext'
2718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719   (eval $ac_try) 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); }; }; then
2723   :
2724 else
2725   echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2727
2728 continue
2729 fi
2730 rm -f conftest.$ac_objext conftest.$ac_ext
2731   cat >conftest.$ac_ext <<_ACEOF
2732 #line $LINENO "configure"
2733 /* confdefs.h.  */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h.  */
2738 $ac_declaration
2739 int
2740 main ()
2741 {
2742 exit (42);
2743   ;
2744   return 0;
2745 }
2746 _ACEOF
2747 rm -f conftest.$ac_objext
2748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749   (eval $ac_compile) 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); } &&
2753          { ac_try='test -s conftest.$ac_objext'
2754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755   (eval $ac_try) 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }; }; then
2759   break
2760 else
2761   echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2763
2764 fi
2765 rm -f conftest.$ac_objext conftest.$ac_ext
2766 done
2767 rm -f conftest*
2768 if test -n "$ac_declaration"; then
2769   echo '#ifdef __cplusplus' >>confdefs.h
2770   echo $ac_declaration      >>confdefs.h
2771   echo '#endif'             >>confdefs.h
2772 fi
2773
2774 ac_ext=c
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779
2780 ac_ext=c
2781 ac_cpp='$CPP $CPPFLAGS'
2782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785 if test -n "$ac_tool_prefix"; then
2786   for ac_prog in gcc
2787   do
2788     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2789 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2790 echo "$as_me:$LINENO: checking for $ac_word" >&5
2791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2792 if test "${ac_cv_prog_CC+set}" = set; then
2793   echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795   if test -n "$CC"; then
2796   ac_cv_prog_CC="$CC" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801   IFS=$as_save_IFS
2802   test -z "$as_dir" && as_dir=.
2803   for ac_exec_ext in '' $ac_executable_extensions; do
2804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807     break 2
2808   fi
2809 done
2810 done
2811
2812 fi
2813 fi
2814 CC=$ac_cv_prog_CC
2815 if test -n "$CC"; then
2816   echo "$as_me:$LINENO: result: $CC" >&5
2817 echo "${ECHO_T}$CC" >&6
2818 else
2819   echo "$as_me:$LINENO: result: no" >&5
2820 echo "${ECHO_T}no" >&6
2821 fi
2822
2823     test -n "$CC" && break
2824   done
2825 fi
2826 if test -z "$CC"; then
2827   ac_ct_CC=$CC
2828   for ac_prog in gcc
2829 do
2830   # Extract the first word of "$ac_prog", so it can be a program name with args.
2831 set dummy $ac_prog; ac_word=$2
2832 echo "$as_me:$LINENO: checking for $ac_word" >&5
2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2834 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2835   echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837   if test -n "$ac_ct_CC"; then
2838   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843   IFS=$as_save_IFS
2844   test -z "$as_dir" && as_dir=.
2845   for ac_exec_ext in '' $ac_executable_extensions; do
2846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847     ac_cv_prog_ac_ct_CC="$ac_prog"
2848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849     break 2
2850   fi
2851 done
2852 done
2853
2854 fi
2855 fi
2856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2857 if test -n "$ac_ct_CC"; then
2858   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2859 echo "${ECHO_T}$ac_ct_CC" >&6
2860 else
2861   echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6
2863 fi
2864
2865   test -n "$ac_ct_CC" && break
2866 done
2867
2868   CC=$ac_ct_CC
2869 fi
2870
2871
2872 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2873 See \`config.log' for more details." >&5
2874 echo "$as_me: error: no acceptable C compiler found in \$PATH
2875 See \`config.log' for more details." >&2;}
2876    { (exit 1); exit 1; }; }
2877
2878 # Provide some information about the compiler.
2879 echo "$as_me:$LINENO:" \
2880      "checking for C compiler version" >&5
2881 ac_compiler=`set X $ac_compile; echo $2`
2882 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2883   (eval $ac_compiler --version </dev/null >&5) 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); }
2887 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2888   (eval $ac_compiler -v </dev/null >&5) 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }
2892 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2893   (eval $ac_compiler -V </dev/null >&5) 2>&5
2894   ac_status=$?
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); }
2897
2898 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2899 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2900 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2901   echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903   cat >conftest.$ac_ext <<_ACEOF
2904 #line $LINENO "configure"
2905 /* confdefs.h.  */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h.  */
2910
2911 int
2912 main ()
2913 {
2914 #ifndef __GNUC__
2915        choke me
2916 #endif
2917
2918   ;
2919   return 0;
2920 }
2921 _ACEOF
2922 rm -f conftest.$ac_objext
2923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2924   (eval $ac_compile) 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); } &&
2928          { ac_try='test -s conftest.$ac_objext'
2929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930   (eval $ac_try) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; }; then
2934   ac_compiler_gnu=yes
2935 else
2936   echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2938
2939 ac_compiler_gnu=no
2940 fi
2941 rm -f conftest.$ac_objext conftest.$ac_ext
2942 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2943
2944 fi
2945 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2946 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2947 GCC=`test $ac_compiler_gnu = yes && echo yes`
2948 ac_test_CFLAGS=${CFLAGS+set}
2949 ac_save_CFLAGS=$CFLAGS
2950 CFLAGS="-g"
2951 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2952 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2953 if test "${ac_cv_prog_cc_g+set}" = set; then
2954   echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956   cat >conftest.$ac_ext <<_ACEOF
2957 #line $LINENO "configure"
2958 /* confdefs.h.  */
2959 _ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h.  */
2963
2964 int
2965 main ()
2966 {
2967
2968   ;
2969   return 0;
2970 }
2971 _ACEOF
2972 rm -f conftest.$ac_objext
2973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2974   (eval $ac_compile) 2>&5
2975   ac_status=$?
2976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977   (exit $ac_status); } &&
2978          { ac_try='test -s conftest.$ac_objext'
2979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980   (eval $ac_try) 2>&5
2981   ac_status=$?
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); }; }; then
2984   ac_cv_prog_cc_g=yes
2985 else
2986   echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2988
2989 ac_cv_prog_cc_g=no
2990 fi
2991 rm -f conftest.$ac_objext conftest.$ac_ext
2992 fi
2993 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2994 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2995 if test "$ac_test_CFLAGS" = set; then
2996   CFLAGS=$ac_save_CFLAGS
2997 elif test $ac_cv_prog_cc_g = yes; then
2998   if test "$GCC" = yes; then
2999     CFLAGS="-g -O2"
3000   else
3001     CFLAGS="-g"
3002   fi
3003 else
3004   if test "$GCC" = yes; then
3005     CFLAGS="-O2"
3006   else
3007     CFLAGS=
3008   fi
3009 fi
3010 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3011 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3012 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3013   echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015   ac_cv_prog_cc_stdc=no
3016 ac_save_CC=$CC
3017 cat >conftest.$ac_ext <<_ACEOF
3018 #line $LINENO "configure"
3019 /* confdefs.h.  */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h.  */
3024 #include <stdarg.h>
3025 #include <stdio.h>
3026 #include <sys/types.h>
3027 #include <sys/stat.h>
3028 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3029 struct buf { int x; };
3030 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3031 static char *e (p, i)
3032      char **p;
3033      int i;
3034 {
3035   return p[i];
3036 }
3037 static char *f (char * (*g) (char **, int), char **p, ...)
3038 {
3039   char *s;
3040   va_list v;
3041   va_start (v,p);
3042   s = g (p, va_arg (v,int));
3043   va_end (v);
3044   return s;
3045 }
3046 int test (int i, double x);
3047 struct s1 {int (*f) (int a);};
3048 struct s2 {int (*f) (double a);};
3049 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3050 int argc;
3051 char **argv;
3052 int
3053 main ()
3054 {
3055 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3056   ;
3057   return 0;
3058 }
3059 _ACEOF
3060 # Don't try gcc -ansi; that turns off useful extensions and
3061 # breaks some systems' header files.
3062 # AIX                   -qlanglvl=ansi
3063 # Ultrix and OSF/1      -std1
3064 # HP-UX 10.20 and later -Ae
3065 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3066 # SVR4                  -Xc -D__EXTENSIONS__
3067 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3068 do
3069   CC="$ac_save_CC $ac_arg"
3070   rm -f conftest.$ac_objext
3071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3072   (eval $ac_compile) 2>&5
3073   ac_status=$?
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); } &&
3076          { ac_try='test -s conftest.$ac_objext'
3077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078   (eval $ac_try) 2>&5
3079   ac_status=$?
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); }; }; then
3082   ac_cv_prog_cc_stdc=$ac_arg
3083 break
3084 else
3085   echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3087
3088 fi
3089 rm -f conftest.$ac_objext
3090 done
3091 rm -f conftest.$ac_ext conftest.$ac_objext
3092 CC=$ac_save_CC
3093
3094 fi
3095
3096 case "x$ac_cv_prog_cc_stdc" in
3097   x|xno)
3098     echo "$as_me:$LINENO: result: none needed" >&5
3099 echo "${ECHO_T}none needed" >&6 ;;
3100   *)
3101     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3102 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3103     CC="$CC $ac_cv_prog_cc_stdc" ;;
3104 esac
3105
3106 # Some people use a C++ compiler to compile C.  Since we use `exit',
3107 # in C++ we need to declare it.  In case someone uses the same compiler
3108 # for both compiling C and C++ we need to have the C++ compiler decide
3109 # the declaration of exit, since it's the most demanding environment.
3110 cat >conftest.$ac_ext <<_ACEOF
3111 #ifndef __cplusplus
3112   choke me
3113 #endif
3114 _ACEOF
3115 rm -f conftest.$ac_objext
3116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3117   (eval $ac_compile) 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); } &&
3121          { ac_try='test -s conftest.$ac_objext'
3122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123   (eval $ac_try) 2>&5
3124   ac_status=$?
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); }; }; then
3127   for ac_declaration in \
3128    ''\
3129    '#include <stdlib.h>' \
3130    'extern "C" void std::exit (int) throw (); using std::exit;' \
3131    'extern "C" void std::exit (int); using std::exit;' \
3132    'extern "C" void exit (int) throw ();' \
3133    'extern "C" void exit (int);' \
3134    'void exit (int);'
3135 do
3136   cat >conftest.$ac_ext <<_ACEOF
3137 #line $LINENO "configure"
3138 /* confdefs.h.  */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h.  */
3143 #include <stdlib.h>
3144 $ac_declaration
3145 int
3146 main ()
3147 {
3148 exit (42);
3149   ;
3150   return 0;
3151 }
3152 _ACEOF
3153 rm -f conftest.$ac_objext
3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155   (eval $ac_compile) 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); } &&
3159          { ac_try='test -s conftest.$ac_objext'
3160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161   (eval $ac_try) 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }; }; then
3165   :
3166 else
3167   echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3169
3170 continue
3171 fi
3172 rm -f conftest.$ac_objext conftest.$ac_ext
3173   cat >conftest.$ac_ext <<_ACEOF
3174 #line $LINENO "configure"
3175 /* confdefs.h.  */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h.  */
3180 $ac_declaration
3181 int
3182 main ()
3183 {
3184 exit (42);
3185   ;
3186   return 0;
3187 }
3188 _ACEOF
3189 rm -f conftest.$ac_objext
3190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191   (eval $ac_compile) 2>&5
3192   ac_status=$?
3193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194   (exit $ac_status); } &&
3195          { ac_try='test -s conftest.$ac_objext'
3196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197   (eval $ac_try) 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }; }; then
3201   break
3202 else
3203   echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3205
3206 fi
3207 rm -f conftest.$ac_objext conftest.$ac_ext
3208 done
3209 rm -f conftest*
3210 if test -n "$ac_declaration"; then
3211   echo '#ifdef __cplusplus' >>confdefs.h
3212   echo $ac_declaration      >>confdefs.h
3213   echo '#endif'             >>confdefs.h
3214 fi
3215
3216 else
3217   echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3219
3220 fi
3221 rm -f conftest.$ac_objext conftest.$ac_ext
3222 ac_ext=c
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227
3228 ac_ext=c
3229 ac_cpp='$CPP $CPPFLAGS'
3230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3234 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3235 # On Suns, sometimes $CPP names a directory.
3236 if test -n "$CPP" && test -d "$CPP"; then
3237   CPP=
3238 fi
3239 if test -z "$CPP"; then
3240   if test "${ac_cv_prog_CPP+set}" = set; then
3241   echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243       # Double quotes because CPP needs to be expanded
3244     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3245     do
3246       ac_preproc_ok=false
3247 for ac_c_preproc_warn_flag in '' yes
3248 do
3249   # Use a header file that comes with gcc, so configuring glibc
3250   # with a fresh cross-compiler works.
3251   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3252   # <limits.h> exists even on freestanding compilers.
3253   # On the NeXT, cc -E runs the code through the compiler's parser,
3254   # not just through cpp. "Syntax error" is here to catch this case.
3255   cat >conftest.$ac_ext <<_ACEOF
3256 #line $LINENO "configure"
3257 /* confdefs.h.  */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h.  */
3262 #ifdef __STDC__
3263 # include <limits.h>
3264 #else
3265 # include <assert.h>
3266 #endif
3267                      Syntax error
3268 _ACEOF
3269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3270   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3271   ac_status=$?
3272   grep -v '^ *+' conftest.er1 >conftest.err
3273   rm -f conftest.er1
3274   cat conftest.err >&5
3275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276   (exit $ac_status); } >/dev/null; then
3277   if test -s conftest.err; then
3278     ac_cpp_err=$ac_c_preproc_warn_flag
3279   else
3280     ac_cpp_err=
3281   fi
3282 else
3283   ac_cpp_err=yes
3284 fi
3285 if test -z "$ac_cpp_err"; then
3286   :
3287 else
3288   echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3290
3291   # Broken: fails on valid input.
3292 continue
3293 fi
3294 rm -f conftest.err conftest.$ac_ext
3295
3296   # OK, works on sane cases.  Now check whether non-existent headers
3297   # can be detected and how.
3298   cat >conftest.$ac_ext <<_ACEOF
3299 #line $LINENO "configure"
3300 /* confdefs.h.  */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h.  */
3305 #include <ac_nonexistent.h>
3306 _ACEOF
3307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3308   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3309   ac_status=$?
3310   grep -v '^ *+' conftest.er1 >conftest.err
3311   rm -f conftest.er1
3312   cat conftest.err >&5
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); } >/dev/null; then
3315   if test -s conftest.err; then
3316     ac_cpp_err=$ac_c_preproc_warn_flag
3317   else
3318     ac_cpp_err=
3319   fi
3320 else
3321   ac_cpp_err=yes
3322 fi
3323 if test -z "$ac_cpp_err"; then
3324   # Broken: success on invalid input.
3325 continue
3326 else
3327   echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3329
3330   # Passes both tests.
3331 ac_preproc_ok=:
3332 break
3333 fi
3334 rm -f conftest.err conftest.$ac_ext
3335
3336 done
3337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3338 rm -f conftest.err conftest.$ac_ext
3339 if $ac_preproc_ok; then
3340   break
3341 fi
3342
3343     done
3344     ac_cv_prog_CPP=$CPP
3345
3346 fi
3347   CPP=$ac_cv_prog_CPP
3348 else
3349   ac_cv_prog_CPP=$CPP
3350 fi
3351 echo "$as_me:$LINENO: result: $CPP" >&5
3352 echo "${ECHO_T}$CPP" >&6
3353 ac_preproc_ok=false
3354 for ac_c_preproc_warn_flag in '' yes
3355 do
3356   # Use a header file that comes with gcc, so configuring glibc
3357   # with a fresh cross-compiler works.
3358   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3359   # <limits.h> exists even on freestanding compilers.
3360   # On the NeXT, cc -E runs the code through the compiler's parser,
3361   # not just through cpp. "Syntax error" is here to catch this case.
3362   cat >conftest.$ac_ext <<_ACEOF
3363 #line $LINENO "configure"
3364 /* confdefs.h.  */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h.  */
3369 #ifdef __STDC__
3370 # include <limits.h>
3371 #else
3372 # include <assert.h>
3373 #endif
3374                      Syntax error
3375 _ACEOF
3376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3377   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3378   ac_status=$?
3379   grep -v '^ *+' conftest.er1 >conftest.err
3380   rm -f conftest.er1
3381   cat conftest.err >&5
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); } >/dev/null; then
3384   if test -s conftest.err; then
3385     ac_cpp_err=$ac_c_preproc_warn_flag
3386   else
3387     ac_cpp_err=
3388   fi
3389 else
3390   ac_cpp_err=yes
3391 fi
3392 if test -z "$ac_cpp_err"; then
3393   :
3394 else
3395   echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3397
3398   # Broken: fails on valid input.
3399 continue
3400 fi
3401 rm -f conftest.err conftest.$ac_ext
3402
3403   # OK, works on sane cases.  Now check whether non-existent headers
3404   # can be detected and how.
3405   cat >conftest.$ac_ext <<_ACEOF
3406 #line $LINENO "configure"
3407 /* confdefs.h.  */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h.  */
3412 #include <ac_nonexistent.h>
3413 _ACEOF
3414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3415   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3416   ac_status=$?
3417   grep -v '^ *+' conftest.er1 >conftest.err
3418   rm -f conftest.er1
3419   cat conftest.err >&5
3420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421   (exit $ac_status); } >/dev/null; then
3422   if test -s conftest.err; then
3423     ac_cpp_err=$ac_c_preproc_warn_flag
3424   else
3425     ac_cpp_err=
3426   fi
3427 else
3428   ac_cpp_err=yes
3429 fi
3430 if test -z "$ac_cpp_err"; then
3431   # Broken: success on invalid input.
3432 continue
3433 else
3434   echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437   # Passes both tests.
3438 ac_preproc_ok=:
3439 break
3440 fi
3441 rm -f conftest.err conftest.$ac_ext
3442
3443 done
3444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3445 rm -f conftest.err conftest.$ac_ext
3446 if $ac_preproc_ok; then
3447   :
3448 else
3449   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3450 See \`config.log' for more details." >&5
3451 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&2;}
3453    { (exit 1); exit 1; }; }
3454 fi
3455
3456 ac_ext=c
3457 ac_cpp='$CPP $CPPFLAGS'
3458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461
3462
3463 if test "$GCC" != "yes"
3464 then
3465         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3466 echo "$as_me: error: gcc required but not found" >&2;}
3467    { (exit 1); exit 1; }; }
3468 fi
3469
3470 if test "$GXX" != "yes"
3471 then
3472         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3473 echo "$as_me: error: g++ required but not found" >&2;}
3474    { (exit 1); exit 1; }; }
3475 fi
3476
3477 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3478 if test "$gccmajor" -lt "3"
3479 then
3480         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3481 echo "$as_me: error: gcc 3.x required" >&2;}
3482    { (exit 1); exit 1; }; }
3483 fi
3484
3485  echo "$as_me:$LINENO: checking for GNU make" >&5
3486 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3487 if test "${_cv_gnu_make_command+set}" = set; then
3488   echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490   _cv_gnu_make_command='' ;
3491                 for a in "$MAKE" make gmake gnumake ; do
3492                         if test -z "$a" ; then continue ; fi ;
3493                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3494                                 _cv_gnu_make_command=$a ;
3495                                 break;
3496                         fi
3497                 done ;
3498
3499 fi
3500 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3501 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3502         if test  "x$_cv_gnu_make_command" != "x"  ; then
3503                 ifGNUmake='' ;
3504         else
3505                 ifGNUmake='#' ;
3506                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3507 echo "${ECHO_T}\"Not found\"" >&6;
3508         fi
3509
3510
3511 if test -z "$_cv_gnu_make_command"
3512 then
3513         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3514 echo "$as_me: error: GNU Make required but not found" >&2;}
3515    { (exit 1); exit 1; }; }
3516 fi
3517
3518
3519 echo "$as_me:$LINENO: checking " >&5
3520 echo $ECHO_N "checking ... $ECHO_C" >&6
3521 if test "${ac_cv_has_flex+set}" = set; then
3522   echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524   for ac_prog in flex lex
3525 do
3526   # Extract the first word of "$ac_prog", so it can be a program name with args.
3527 set dummy $ac_prog; ac_word=$2
3528 echo "$as_me:$LINENO: checking for $ac_word" >&5
3529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3530 if test "${ac_cv_prog_LEX+set}" = set; then
3531   echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533   if test -n "$LEX"; then
3534   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3538 do
3539   IFS=$as_save_IFS
3540   test -z "$as_dir" && as_dir=.
3541   for ac_exec_ext in '' $ac_executable_extensions; do
3542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543     ac_cv_prog_LEX="$ac_prog"
3544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3545     break 2
3546   fi
3547 done
3548 done
3549
3550 fi
3551 fi
3552 LEX=$ac_cv_prog_LEX
3553 if test -n "$LEX"; then
3554   echo "$as_me:$LINENO: result: $LEX" >&5
3555 echo "${ECHO_T}$LEX" >&6
3556 else
3557   echo "$as_me:$LINENO: result: no" >&5
3558 echo "${ECHO_T}no" >&6
3559 fi
3560
3561   test -n "$LEX" && break
3562 done
3563 test -n "$LEX" || LEX=":"
3564
3565 if test -z "$LEXLIB"
3566 then
3567   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3568 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3569 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3570   echo $ECHO_N "(cached) $ECHO_C" >&6
3571 else
3572   ac_check_lib_save_LIBS=$LIBS
3573 LIBS="-lfl  $LIBS"
3574 cat >conftest.$ac_ext <<_ACEOF
3575 #line $LINENO "configure"
3576 /* confdefs.h.  */
3577 _ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h.  */
3581
3582 /* Override any gcc2 internal prototype to avoid an error.  */
3583 #ifdef __cplusplus
3584 extern "C"
3585 #endif
3586 /* We use char because int might match the return type of a gcc2
3587    builtin and then its argument prototype would still apply.  */
3588 char yywrap ();
3589 int
3590 main ()
3591 {
3592 yywrap ();
3593   ;
3594   return 0;
3595 }
3596 _ACEOF
3597 rm -f conftest.$ac_objext conftest$ac_exeext
3598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3599   (eval $ac_link) 2>&5
3600   ac_status=$?
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); } &&
3603          { ac_try='test -s conftest$ac_exeext'
3604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605   (eval $ac_try) 2>&5
3606   ac_status=$?
3607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608   (exit $ac_status); }; }; then
3609   ac_cv_lib_fl_yywrap=yes
3610 else
3611   echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3613
3614 ac_cv_lib_fl_yywrap=no
3615 fi
3616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3617 LIBS=$ac_check_lib_save_LIBS
3618 fi
3619 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3620 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3621 if test $ac_cv_lib_fl_yywrap = yes; then
3622   LEXLIB="-lfl"
3623 else
3624   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3625 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3626 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3627   echo $ECHO_N "(cached) $ECHO_C" >&6
3628 else
3629   ac_check_lib_save_LIBS=$LIBS
3630 LIBS="-ll  $LIBS"
3631 cat >conftest.$ac_ext <<_ACEOF
3632 #line $LINENO "configure"
3633 /* confdefs.h.  */
3634 _ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h.  */
3638
3639 /* Override any gcc2 internal prototype to avoid an error.  */
3640 #ifdef __cplusplus
3641 extern "C"
3642 #endif
3643 /* We use char because int might match the return type of a gcc2
3644    builtin and then its argument prototype would still apply.  */
3645 char yywrap ();
3646 int
3647 main ()
3648 {
3649 yywrap ();
3650   ;
3651   return 0;
3652 }
3653 _ACEOF
3654 rm -f conftest.$ac_objext conftest$ac_exeext
3655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3656   (eval $ac_link) 2>&5
3657   ac_status=$?
3658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); } &&
3660          { ac_try='test -s conftest$ac_exeext'
3661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662   (eval $ac_try) 2>&5
3663   ac_status=$?
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); }; }; then
3666   ac_cv_lib_l_yywrap=yes
3667 else
3668   echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3670
3671 ac_cv_lib_l_yywrap=no
3672 fi
3673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3674 LIBS=$ac_check_lib_save_LIBS
3675 fi
3676 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3677 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3678 if test $ac_cv_lib_l_yywrap = yes; then
3679   LEXLIB="-ll"
3680 fi
3681
3682 fi
3683
3684 fi
3685
3686 if test "x$LEX" != "x:"; then
3687   echo "$as_me:$LINENO: checking lex output file root" >&5
3688 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3689 if test "${ac_cv_prog_lex_root+set}" = set; then
3690   echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692   # The minimal lex program is just a single line: %%.  But some broken lexes
3693 # (Solaris, I think it was) want two %% lines, so accommodate them.
3694 cat >conftest.l <<_ACEOF
3695 %%
3696 %%
3697 _ACEOF
3698 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3699   (eval $LEX conftest.l) 2>&5
3700   ac_status=$?
3701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702   (exit $ac_status); }
3703 if test -f lex.yy.c; then
3704   ac_cv_prog_lex_root=lex.yy
3705 elif test -f lexyy.c; then
3706   ac_cv_prog_lex_root=lexyy
3707 else
3708   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3709 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3710    { (exit 1); exit 1; }; }
3711 fi
3712 fi
3713 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3714 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3715 rm -f conftest.l
3716 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3717
3718 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3719 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3720 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3721   echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723   # POSIX says lex can declare yytext either as a pointer or an array; the
3724 # default is implementation-dependent. Figure out which it is, since
3725 # not all implementations provide the %pointer and %array declarations.
3726 ac_cv_prog_lex_yytext_pointer=no
3727 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3728 ac_save_LIBS=$LIBS
3729 LIBS="$LIBS $LEXLIB"
3730 cat >conftest.$ac_ext <<_ACEOF
3731 `cat $LEX_OUTPUT_ROOT.c`
3732 _ACEOF
3733 rm -f conftest.$ac_objext conftest$ac_exeext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3735   (eval $ac_link) 2>&5
3736   ac_status=$?
3737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738   (exit $ac_status); } &&
3739          { ac_try='test -s conftest$ac_exeext'
3740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741   (eval $ac_try) 2>&5
3742   ac_status=$?
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); }; }; then
3745   ac_cv_prog_lex_yytext_pointer=yes
3746 else
3747   echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3749
3750 fi
3751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3752 LIBS=$ac_save_LIBS
3753 rm -f "${LEX_OUTPUT_ROOT}.c"
3754
3755 fi
3756 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3757 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3758 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3759
3760 cat >>confdefs.h <<\_ACEOF
3761 #define YYTEXT_POINTER 1
3762 _ACEOF
3763
3764 fi
3765
3766 fi
3767
3768 fi
3769 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3770 echo "${ECHO_T}$ac_cv_has_flex" >&6
3771 if test "$LEX" != "flex"; then
3772   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3773 echo "$as_me: error: flex not found but required" >&2;}
3774    { (exit 1); exit 1; }; }
3775 fi
3776
3777 echo "$as_me:$LINENO: checking " >&5
3778 echo $ECHO_N "checking ... $ECHO_C" >&6
3779 if test "${ac_cv_has_bison+set}" = set; then
3780   echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782   for ac_prog in 'bison -y' byacc
3783 do
3784   # Extract the first word of "$ac_prog", so it can be a program name with args.
3785 set dummy $ac_prog; ac_word=$2
3786 echo "$as_me:$LINENO: checking for $ac_word" >&5
3787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3788 if test "${ac_cv_prog_YACC+set}" = set; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791   if test -n "$YACC"; then
3792   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797   IFS=$as_save_IFS
3798   test -z "$as_dir" && as_dir=.
3799   for ac_exec_ext in '' $ac_executable_extensions; do
3800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801     ac_cv_prog_YACC="$ac_prog"
3802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3803     break 2
3804   fi
3805 done
3806 done
3807
3808 fi
3809 fi
3810 YACC=$ac_cv_prog_YACC
3811 if test -n "$YACC"; then
3812   echo "$as_me:$LINENO: result: $YACC" >&5
3813 echo "${ECHO_T}$YACC" >&6
3814 else
3815   echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3817 fi
3818
3819   test -n "$YACC" && break
3820 done
3821 test -n "$YACC" || YACC="yacc"
3822
3823
3824 fi
3825 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3826 echo "${ECHO_T}$ac_cv_has_bison" >&6
3827 if test "$YACC" != "bison -y"; then
3828   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3829 echo "$as_me: error: bison not found but required" >&2;}
3830    { (exit 1); exit 1; }; }
3831 else
3832   YACC=bison
3833
3834 fi
3835
3836
3837 # Check whether --enable-shared or --disable-shared was given.
3838 if test "${enable_shared+set}" = set; then
3839   enableval="$enable_shared"
3840   p=${PACKAGE-default}
3841     case $enableval in
3842     yes) enable_shared=yes ;;
3843     no) enable_shared=no ;;
3844     *)
3845       enable_shared=no
3846       # Look at the argument we got.  We use all the common list separators.
3847       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3848       for pkg in $enableval; do
3849         IFS="$lt_save_ifs"
3850         if test "X$pkg" = "X$p"; then
3851           enable_shared=yes
3852         fi
3853       done
3854       IFS="$lt_save_ifs"
3855       ;;
3856     esac
3857 else
3858   enable_shared=yes
3859 fi;
3860
3861 # Check whether --enable-static or --disable-static was given.
3862 if test "${enable_static+set}" = set; then
3863   enableval="$enable_static"
3864   p=${PACKAGE-default}
3865     case $enableval in
3866     yes) enable_static=yes ;;
3867     no) enable_static=no ;;
3868     *)
3869      enable_static=no
3870       # Look at the argument we got.  We use all the common list separators.
3871       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3872       for pkg in $enableval; do
3873         IFS="$lt_save_ifs"
3874         if test "X$pkg" = "X$p"; then
3875           enable_static=yes
3876         fi
3877       done
3878       IFS="$lt_save_ifs"
3879       ;;
3880     esac
3881 else
3882   enable_static=yes
3883 fi;
3884
3885 # Check whether --enable-fast-install or --disable-fast-install was given.
3886 if test "${enable_fast_install+set}" = set; then
3887   enableval="$enable_fast_install"
3888   p=${PACKAGE-default}
3889     case $enableval in
3890     yes) enable_fast_install=yes ;;
3891     no) enable_fast_install=no ;;
3892     *)
3893       enable_fast_install=no
3894       # Look at the argument we got.  We use all the common list separators.
3895       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3896       for pkg in $enableval; do
3897         IFS="$lt_save_ifs"
3898         if test "X$pkg" = "X$p"; then
3899           enable_fast_install=yes
3900         fi
3901       done
3902       IFS="$lt_save_ifs"
3903       ;;
3904     esac
3905 else
3906   enable_fast_install=yes
3907 fi;
3908
3909 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3910 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3911 if test "${lt_cv_path_SED+set}" = set; then
3912   echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914   # Loop through the user's path and test for sed and gsed.
3915 # Then use that list of sed's as ones to test for truncation.
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH
3918 do
3919   IFS=$as_save_IFS
3920   test -z "$as_dir" && as_dir=.
3921   for lt_ac_prog in sed gsed; do
3922     for ac_exec_ext in '' $ac_executable_extensions; do
3923       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3924         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3925       fi
3926     done
3927   done
3928 done
3929 lt_ac_max=0
3930 lt_ac_count=0
3931 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3932 # along with /bin/sed that truncates output.
3933 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3934   test ! -f $lt_ac_sed && break
3935   cat /dev/null > conftest.in
3936   lt_ac_count=0
3937   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3938   # Check for GNU sed and select it if it is found.
3939   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3940     lt_cv_path_SED=$lt_ac_sed
3941     break
3942   fi
3943   while true; do
3944     cat conftest.in conftest.in >conftest.tmp
3945     mv conftest.tmp conftest.in
3946     cp conftest.in conftest.nl
3947     echo >>conftest.nl
3948     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3949     cmp -s conftest.out conftest.nl || break
3950     # 10000 chars as input seems more than enough
3951     test $lt_ac_count -gt 10 && break
3952     lt_ac_count=`expr $lt_ac_count + 1`
3953     if test $lt_ac_count -gt $lt_ac_max; then
3954       lt_ac_max=$lt_ac_count
3955       lt_cv_path_SED=$lt_ac_sed
3956     fi
3957   done
3958 done
3959 SED=$lt_cv_path_SED
3960
3961 fi
3962
3963 echo "$as_me:$LINENO: result: $SED" >&5
3964 echo "${ECHO_T}$SED" >&6
3965
3966 echo "$as_me:$LINENO: checking for egrep" >&5
3967 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3968 if test "${ac_cv_prog_egrep+set}" = set; then
3969   echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3972     then ac_cv_prog_egrep='grep -E'
3973     else ac_cv_prog_egrep='egrep'
3974     fi
3975 fi
3976 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3977 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3978  EGREP=$ac_cv_prog_egrep
3979
3980
3981
3982 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3983 if test "${with_gnu_ld+set}" = set; then
3984   withval="$with_gnu_ld"
3985   test "$withval" = no || with_gnu_ld=yes
3986 else
3987   with_gnu_ld=no
3988 fi;
3989 ac_prog=ld
3990 if test "$GCC" = yes; then
3991   # Check if gcc -print-prog-name=ld gives a path.
3992   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3993 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3994   case $host in
3995   *-*-mingw*)
3996     # gcc leaves a trailing carriage return which upsets mingw
3997     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3998   *)
3999     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4000   esac
4001   case $ac_prog in
4002     # Accept absolute paths.
4003     [\\/]* | ?:[\\/]*)
4004       re_direlt='/[^/][^/]*/\.\./'
4005       # Canonicalize the path of ld
4006       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4007       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4008         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4009       done
4010       test -z "$LD" && LD="$ac_prog"
4011       ;;
4012   "")
4013     # If it fails, then pretend we aren't using GCC.
4014     ac_prog=ld
4015     ;;
4016   *)
4017     # If it is relative, then search for the first ld in PATH.
4018     with_gnu_ld=unknown
4019     ;;
4020   esac
4021 elif test "$with_gnu_ld" = yes; then
4022   echo "$as_me:$LINENO: checking for GNU ld" >&5
4023 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4024 else
4025   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4026 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4027 fi
4028 if test "${lt_cv_path_LD+set}" = set; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031   if test -z "$LD"; then
4032   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4033   for ac_dir in $PATH; do
4034     IFS="$lt_save_ifs"
4035     test -z "$ac_dir" && ac_dir=.
4036     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4037       lt_cv_path_LD="$ac_dir/$ac_prog"
4038       # Check to see if the program is GNU ld.  I'd rather use --version,
4039       # but apparently some GNU ld's only accept -v.
4040       # Break only if it was the GNU/non-GNU ld that we prefer.
4041       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4042       *GNU* | *'with BFD'*)
4043         test "$with_gnu_ld" != no && break
4044         ;;
4045       *)
4046         test "$with_gnu_ld" != yes && break
4047         ;;
4048       esac
4049     fi
4050   done
4051   IFS="$lt_save_ifs"
4052 else
4053   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4054 fi
4055 fi
4056
4057 LD="$lt_cv_path_LD"
4058 if test -n "$LD"; then
4059   echo "$as_me:$LINENO: result: $LD" >&5
4060 echo "${ECHO_T}$LD" >&6
4061 else
4062   echo "$as_me:$LINENO: result: no" >&5
4063 echo "${ECHO_T}no" >&6
4064 fi
4065 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4066 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4067    { (exit 1); exit 1; }; }
4068 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4069 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4070 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4071   echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4074 case `"$LD" -v 2>&1 </dev/null` in
4075 *GNU* | *'with BFD'*)
4076   lt_cv_prog_gnu_ld=yes
4077   ;;
4078 *)
4079   lt_cv_prog_gnu_ld=no
4080   ;;
4081 esac
4082 fi
4083 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4084 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4085 with_gnu_ld=$lt_cv_prog_gnu_ld
4086
4087
4088 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4089 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4090 if test "${lt_cv_ld_reload_flag+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   lt_cv_ld_reload_flag='-r'
4094 fi
4095 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4096 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4097 reload_flag=$lt_cv_ld_reload_flag
4098 case $reload_flag in
4099 "" | " "*) ;;
4100 *) reload_flag=" $reload_flag" ;;
4101 esac
4102 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4103
4104 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4105 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4106 if test "${lt_cv_path_NM+set}" = set; then
4107   echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109   if test -n "$NM"; then
4110   # Let the user override the test.
4111   lt_cv_path_NM="$NM"
4112 else
4113   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4114   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4115     IFS="$lt_save_ifs"
4116     test -z "$ac_dir" && ac_dir=.
4117     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4118     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4119       # Check to see if the nm accepts a BSD-compat flag.
4120       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4121       #   nm: unknown option "B" ignored
4122       # Tru64's nm complains that /dev/null is an invalid object file
4123       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4124       */dev/null* | *'Invalid file or object type'*)
4125         lt_cv_path_NM="$tmp_nm -B"
4126         break
4127         ;;
4128       *)
4129         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4130         */dev/null*)
4131           lt_cv_path_NM="$tmp_nm -p"
4132           break
4133           ;;
4134         *)
4135           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4136           continue # so that we can try to find one that supports BSD flags
4137           ;;
4138         esac
4139       esac
4140     fi
4141   done
4142   IFS="$lt_save_ifs"
4143   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4144 fi
4145 fi
4146 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4147 echo "${ECHO_T}$lt_cv_path_NM" >&6
4148 NM="$lt_cv_path_NM"
4149
4150 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4151 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4152 LN_S=$as_ln_s
4153 if test "$LN_S" = "ln -s"; then
4154   echo "$as_me:$LINENO: result: yes" >&5
4155 echo "${ECHO_T}yes" >&6
4156 else
4157   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4158 echo "${ECHO_T}no, using $LN_S" >&6
4159 fi
4160
4161 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4162 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4163 if test "${lt_cv_deplibs_check_method+set}" = set; then
4164   echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166   lt_cv_file_magic_cmd='$MAGIC_CMD'
4167 lt_cv_file_magic_test_file=
4168 lt_cv_deplibs_check_method='unknown'
4169 # Need to set the preceding variable on all platforms that support
4170 # interlibrary dependencies.
4171 # 'none' -- dependencies not supported.
4172 # `unknown' -- same as none, but documents that we really don't know.
4173 # 'pass_all' -- all dependencies passed with no checks.
4174 # 'test_compile' -- check by making test program.
4175 # 'file_magic [[regex]]' -- check by looking for files in library path
4176 # which responds to the $file_magic_cmd with a given extended regex.
4177 # If you have `file' or equivalent on your system and you're not sure
4178 # whether `pass_all' will *always* work, you probably want this one.
4179
4180 case $host_os in
4181 aix4* | aix5*)
4182   lt_cv_deplibs_check_method=pass_all
4183   ;;
4184
4185 beos*)
4186   lt_cv_deplibs_check_method=pass_all
4187   ;;
4188
4189 bsdi4*)
4190   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4191   lt_cv_file_magic_cmd='/usr/bin/file -L'
4192   lt_cv_file_magic_test_file=/shlib/libc.so
4193   ;;
4194
4195 cygwin* | mingw* | pw32*)
4196   # win32_libid is a shell function defined in ltmain.sh
4197   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4198   lt_cv_file_magic_cmd='win32_libid'
4199   ;;
4200
4201 darwin* | rhapsody*)
4202   # this will be overwritten by pass_all, but leave it in just in case
4203   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4204   lt_cv_file_magic_cmd='/usr/bin/file -L'
4205   case "$host_os" in
4206   rhapsody* | darwin1.[012])
4207     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4208     ;;
4209   *) # Darwin 1.3 on
4210     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4211     ;;
4212   esac
4213   lt_cv_deplibs_check_method=pass_all
4214   ;;
4215
4216 freebsd*)
4217   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4218     case $host_cpu in
4219     i*86 )
4220       # Not sure whether the presence of OpenBSD here was a mistake.
4221       # Let's accept both of them until this is cleared up.
4222       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4223       lt_cv_file_magic_cmd=/usr/bin/file
4224       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4225       ;;
4226     esac
4227   else
4228     lt_cv_deplibs_check_method=pass_all
4229   fi
4230   ;;
4231
4232 gnu*)
4233   lt_cv_deplibs_check_method=pass_all
4234   ;;
4235
4236 hpux10.20* | hpux11*)
4237   lt_cv_file_magic_cmd=/usr/bin/file
4238   case "$host_cpu" in
4239   ia64*)
4240     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4241     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4242     ;;
4243   hppa*64*)
4244     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]'
4245     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4246     ;;
4247   *)
4248     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4249     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4250     ;;
4251   esac
4252   ;;
4253
4254 irix5* | irix6* | nonstopux*)
4255   case $host_os in
4256   irix5* | nonstopux*)
4257     # this will be overridden with pass_all, but let us keep it just in case
4258     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4259     ;;
4260   *)
4261     case $LD in
4262     *-32|*"-32 ") libmagic=32-bit;;
4263     *-n32|*"-n32 ") libmagic=N32;;
4264     *-64|*"-64 ") libmagic=64-bit;;
4265     *) libmagic=never-match;;
4266     esac
4267     # this will be overridden with pass_all, but let us keep it just in case
4268     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4269     ;;
4270   esac
4271   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4272   lt_cv_deplibs_check_method=pass_all
4273   ;;
4274
4275 # This must be Linux ELF.
4276 linux*)
4277   case $host_cpu in
4278   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4279     lt_cv_deplibs_check_method=pass_all ;;
4280   *)
4281     # glibc up to 2.1.1 does not perform some relocations on ARM
4282     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4283   esac
4284   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4285   ;;
4286
4287 netbsd*)
4288   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4289     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4290   else
4291     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4292   fi
4293   ;;
4294
4295 newos6*)
4296   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4297   lt_cv_file_magic_cmd=/usr/bin/file
4298   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4299   ;;
4300
4301 nto-qnx)
4302   lt_cv_deplibs_check_method=unknown
4303   ;;
4304
4305 openbsd*)
4306   lt_cv_file_magic_cmd=/usr/bin/file
4307   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4308   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4309     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4310   else
4311     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4312   fi
4313   ;;
4314
4315 osf3* | osf4* | osf5*)
4316   # this will be overridden with pass_all, but let us keep it just in case
4317   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4318   lt_cv_file_magic_test_file=/shlib/libc.so
4319   lt_cv_deplibs_check_method=pass_all
4320   ;;
4321
4322 sco3.2v5*)
4323   lt_cv_deplibs_check_method=pass_all
4324   ;;
4325
4326 solaris*)
4327   lt_cv_deplibs_check_method=pass_all
4328   lt_cv_file_magic_test_file=/lib/libc.so
4329   ;;
4330
4331 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4332   case $host_vendor in
4333   motorola)
4334     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]'
4335     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4336     ;;
4337   ncr)
4338     lt_cv_deplibs_check_method=pass_all
4339     ;;
4340   sequent)
4341     lt_cv_file_magic_cmd='/bin/file'
4342     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4343     ;;
4344   sni)
4345     lt_cv_file_magic_cmd='/bin/file'
4346     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4347     lt_cv_file_magic_test_file=/lib/libc.so
4348     ;;
4349   siemens)
4350     lt_cv_deplibs_check_method=pass_all
4351     ;;
4352   esac
4353   ;;
4354
4355 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4356   lt_cv_deplibs_check_method=pass_all
4357   ;;
4358 esac
4359
4360 fi
4361 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4362 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4363 file_magic_cmd=$lt_cv_file_magic_cmd
4364 deplibs_check_method=$lt_cv_deplibs_check_method
4365 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4366
4367
4368
4369
4370 # If no C compiler was specified, use CC.
4371 LTCC=${LTCC-"$CC"}
4372
4373 # Allow CC to be a program name with arguments.
4374 compiler=$CC
4375
4376 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4377 if test "${enable_libtool_lock+set}" = set; then
4378   enableval="$enable_libtool_lock"
4379
4380 fi;
4381 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4382
4383 # Some flags need to be propagated to the compiler or linker for good
4384 # libtool support.
4385 case $host in
4386 ia64-*-hpux*)
4387   # Find out which ABI we are using.
4388   echo 'int i;' > conftest.$ac_ext
4389   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390   (eval $ac_compile) 2>&5
4391   ac_status=$?
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); }; then
4394     case `/usr/bin/file conftest.$ac_objext` in
4395     *ELF-32*)
4396       HPUX_IA64_MODE="32"
4397       ;;
4398     *ELF-64*)
4399       HPUX_IA64_MODE="64"
4400       ;;
4401     esac
4402   fi
4403   rm -rf conftest*
4404   ;;
4405 *-*-irix6*)
4406   # Find out which ABI we are using.
4407   echo '#line 4407 "configure"' > conftest.$ac_ext
4408   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409   (eval $ac_compile) 2>&5
4410   ac_status=$?
4411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412   (exit $ac_status); }; then
4413    if test "$lt_cv_prog_gnu_ld" = yes; then
4414     case `/usr/bin/file conftest.$ac_objext` in
4415     *32-bit*)
4416       LD="${LD-ld} -melf32bsmip"
4417       ;;
4418     *N32*)
4419       LD="${LD-ld} -melf32bmipn32"
4420       ;;
4421     *64-bit*)
4422       LD="${LD-ld} -melf64bmip"
4423       ;;
4424     esac
4425    else
4426     case `/usr/bin/file conftest.$ac_objext` in
4427     *32-bit*)
4428       LD="${LD-ld} -32"
4429       ;;
4430     *N32*)
4431       LD="${LD-ld} -n32"
4432       ;;
4433     *64-bit*)
4434       LD="${LD-ld} -64"
4435       ;;
4436     esac
4437    fi
4438   fi
4439   rm -rf conftest*
4440   ;;
4441
4442 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4443   # Find out which ABI we are using.
4444   echo 'int i;' > conftest.$ac_ext
4445   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4446   (eval $ac_compile) 2>&5
4447   ac_status=$?
4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449   (exit $ac_status); }; then
4450     case "`/usr/bin/file conftest.o`" in
4451     *32-bit*)
4452       case $host in
4453         x86_64-*linux*)
4454           LD="${LD-ld} -m elf_i386"
4455           ;;
4456         ppc64-*linux*)
4457           LD="${LD-ld} -m elf32ppclinux"
4458           ;;
4459         s390x-*linux*)
4460           LD="${LD-ld} -m elf_s390"
4461           ;;
4462         sparc64-*linux*)
4463           LD="${LD-ld} -m elf32_sparc"
4464           ;;
4465       esac
4466       ;;
4467     *64-bit*)
4468       case $host in
4469         x86_64-*linux*)
4470           LD="${LD-ld} -m elf_x86_64"
4471           ;;
4472         ppc*-*linux*|powerpc*-*linux*)
4473           LD="${LD-ld} -m elf64ppc"
4474           ;;
4475         s390*-*linux*)
4476           LD="${LD-ld} -m elf64_s390"
4477           ;;
4478         sparc*-*linux*)
4479           LD="${LD-ld} -m elf64_sparc"
4480           ;;
4481       esac
4482       ;;
4483     esac
4484   fi
4485   rm -rf conftest*
4486   ;;
4487
4488 *-*-sco3.2v5*)
4489   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4490   SAVE_CFLAGS="$CFLAGS"
4491   CFLAGS="$CFLAGS -belf"
4492   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4493 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4494 if test "${lt_cv_cc_needs_belf+set}" = set; then
4495   echo $ECHO_N "(cached) $ECHO_C" >&6
4496 else
4497   ac_ext=c
4498 ac_cpp='$CPP $CPPFLAGS'
4499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502
4503      cat >conftest.$ac_ext <<_ACEOF
4504 #line $LINENO "configure"
4505 /* confdefs.h.  */
4506 _ACEOF
4507 cat confdefs.h >>conftest.$ac_ext
4508 cat >>conftest.$ac_ext <<_ACEOF
4509 /* end confdefs.h.  */
4510
4511 int
4512 main ()
4513 {
4514
4515   ;
4516   return 0;
4517 }
4518 _ACEOF
4519 rm -f conftest.$ac_objext conftest$ac_exeext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4521   (eval $ac_link) 2>&5
4522   ac_status=$?
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); } &&
4525          { ac_try='test -s conftest$ac_exeext'
4526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527   (eval $ac_try) 2>&5
4528   ac_status=$?
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); }; }; then
4531   lt_cv_cc_needs_belf=yes
4532 else
4533   echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4535
4536 lt_cv_cc_needs_belf=no
4537 fi
4538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4539      ac_ext=c
4540 ac_cpp='$CPP $CPPFLAGS'
4541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544
4545 fi
4546 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4547 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4548   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4549     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4550     CFLAGS="$SAVE_CFLAGS"
4551   fi
4552   ;;
4553
4554 esac
4555
4556 need_locks="$enable_libtool_lock"
4557
4558
4559
4560 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4561 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4562 if test "${ac_cv_header_stdc+set}" = set; then
4563   echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565   cat >conftest.$ac_ext <<_ACEOF
4566 #line $LINENO "configure"
4567 /* confdefs.h.  */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h.  */
4572 #include <stdlib.h>
4573 #include <stdarg.h>
4574 #include <string.h>
4575 #include <float.h>
4576
4577 int
4578 main ()
4579 {
4580
4581   ;
4582   return 0;
4583 }
4584 _ACEOF
4585 rm -f conftest.$ac_objext
4586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4587   (eval $ac_compile) 2>&5
4588   ac_status=$?
4589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590   (exit $ac_status); } &&
4591          { ac_try='test -s conftest.$ac_objext'
4592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593   (eval $ac_try) 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; }; then
4597   ac_cv_header_stdc=yes
4598 else
4599   echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4601
4602 ac_cv_header_stdc=no
4603 fi
4604 rm -f conftest.$ac_objext conftest.$ac_ext
4605
4606 if test $ac_cv_header_stdc = yes; then
4607   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4608   cat >conftest.$ac_ext <<_ACEOF
4609 #line $LINENO "configure"
4610 /* confdefs.h.  */
4611 _ACEOF
4612 cat confdefs.h >>conftest.$ac_ext
4613 cat >>conftest.$ac_ext <<_ACEOF
4614 /* end confdefs.h.  */
4615 #include <string.h>
4616
4617 _ACEOF
4618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4619   $EGREP "memchr" >/dev/null 2>&1; then
4620   :
4621 else
4622   ac_cv_header_stdc=no
4623 fi
4624 rm -f conftest*
4625
4626 fi
4627
4628 if test $ac_cv_header_stdc = yes; then
4629   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4630   cat >conftest.$ac_ext <<_ACEOF
4631 #line $LINENO "configure"
4632 /* confdefs.h.  */
4633 _ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h.  */
4637 #include <stdlib.h>
4638
4639 _ACEOF
4640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4641   $EGREP "free" >/dev/null 2>&1; then
4642   :
4643 else
4644   ac_cv_header_stdc=no
4645 fi
4646 rm -f conftest*
4647
4648 fi
4649
4650 if test $ac_cv_header_stdc = yes; then
4651   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4652   if test "$cross_compiling" = yes; then
4653   :
4654 else
4655   cat >conftest.$ac_ext <<_ACEOF
4656 #line $LINENO "configure"
4657 /* confdefs.h.  */
4658 _ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h.  */
4662 #include <ctype.h>
4663 #if ((' ' & 0x0FF) == 0x020)
4664 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4665 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4666 #else
4667 # define ISLOWER(c) \
4668                    (('a' <= (c) && (c) <= 'i') \
4669                      || ('j' <= (c) && (c) <= 'r') \
4670                      || ('s' <= (c) && (c) <= 'z'))
4671 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4672 #endif
4673
4674 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4675 int
4676 main ()
4677 {
4678   int i;
4679   for (i = 0; i < 256; i++)
4680     if (XOR (islower (i), ISLOWER (i))
4681         || toupper (i) != TOUPPER (i))
4682       exit(2);
4683   exit (0);
4684 }
4685 _ACEOF
4686 rm -f conftest$ac_exeext
4687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4688   (eval $ac_link) 2>&5
4689   ac_status=$?
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693   (eval $ac_try) 2>&5
4694   ac_status=$?
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); }; }; then
4697   :
4698 else
4699   echo "$as_me: program exited with status $ac_status" >&5
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4702
4703 ( exit $ac_status )
4704 ac_cv_header_stdc=no
4705 fi
4706 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4707 fi
4708 fi
4709 fi
4710 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4711 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4712 if test $ac_cv_header_stdc = yes; then
4713
4714 cat >>confdefs.h <<\_ACEOF
4715 #define STDC_HEADERS 1
4716 _ACEOF
4717
4718 fi
4719
4720 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4731                   inttypes.h stdint.h unistd.h
4732 do
4733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4734 echo "$as_me:$LINENO: checking for $ac_header" >&5
4735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4737   echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739   cat >conftest.$ac_ext <<_ACEOF
4740 #line $LINENO "configure"
4741 /* confdefs.h.  */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h.  */
4746 $ac_includes_default
4747
4748 #include <$ac_header>
4749 _ACEOF
4750 rm -f conftest.$ac_objext
4751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4752   (eval $ac_compile) 2>&5
4753   ac_status=$?
4754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755   (exit $ac_status); } &&
4756          { ac_try='test -s conftest.$ac_objext'
4757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758   (eval $ac_try) 2>&5
4759   ac_status=$?
4760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761   (exit $ac_status); }; }; then
4762   eval "$as_ac_Header=yes"
4763 else
4764   echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4766
4767 eval "$as_ac_Header=no"
4768 fi
4769 rm -f conftest.$ac_objext conftest.$ac_ext
4770 fi
4771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4774   cat >>confdefs.h <<_ACEOF
4775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4776 _ACEOF
4777
4778 fi
4779
4780 done
4781
4782
4783
4784 for ac_header in dlfcn.h
4785 do
4786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4788   echo "$as_me:$LINENO: checking for $ac_header" >&5
4789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4791   echo $ECHO_N "(cached) $ECHO_C" >&6
4792 fi
4793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4795 else
4796   # Is the header compilable?
4797 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4799 cat >conftest.$ac_ext <<_ACEOF
4800 #line $LINENO "configure"
4801 /* confdefs.h.  */
4802 _ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h.  */
4806 $ac_includes_default
4807 #include <$ac_header>
4808 _ACEOF
4809 rm -f conftest.$ac_objext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811   (eval $ac_compile) 2>&5
4812   ac_status=$?
4813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814   (exit $ac_status); } &&
4815          { ac_try='test -s conftest.$ac_objext'
4816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817   (eval $ac_try) 2>&5
4818   ac_status=$?
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); }; }; then
4821   ac_header_compiler=yes
4822 else
4823   echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4825
4826 ac_header_compiler=no
4827 fi
4828 rm -f conftest.$ac_objext conftest.$ac_ext
4829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4830 echo "${ECHO_T}$ac_header_compiler" >&6
4831
4832 # Is the header present?
4833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4835 cat >conftest.$ac_ext <<_ACEOF
4836 #line $LINENO "configure"
4837 /* confdefs.h.  */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h.  */
4842 #include <$ac_header>
4843 _ACEOF
4844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4845   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4846   ac_status=$?
4847   grep -v '^ *+' conftest.er1 >conftest.err
4848   rm -f conftest.er1
4849   cat conftest.err >&5
4850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); } >/dev/null; then
4852   if test -s conftest.err; then
4853     ac_cpp_err=$ac_c_preproc_warn_flag
4854   else
4855     ac_cpp_err=
4856   fi
4857 else
4858   ac_cpp_err=yes
4859 fi
4860 if test -z "$ac_cpp_err"; then
4861   ac_header_preproc=yes
4862 else
4863   echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4865
4866   ac_header_preproc=no
4867 fi
4868 rm -f conftest.err conftest.$ac_ext
4869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4870 echo "${ECHO_T}$ac_header_preproc" >&6
4871
4872 # So?  What about this header?
4873 case $ac_header_compiler:$ac_header_preproc in
4874   yes:no )
4875     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4879     (
4880       cat <<\_ASBOX
4881 ## ------------------------------------ ##
4882 ## Report this to bug-autoconf@gnu.org. ##
4883 ## ------------------------------------ ##
4884 _ASBOX
4885     ) |
4886       sed "s/^/$as_me: WARNING:     /" >&2
4887     ;;
4888   no:yes )
4889     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4891     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4895     (
4896       cat <<\_ASBOX
4897 ## ------------------------------------ ##
4898 ## Report this to bug-autoconf@gnu.org. ##
4899 ## ------------------------------------ ##
4900 _ASBOX
4901     ) |
4902       sed "s/^/$as_me: WARNING:     /" >&2
4903     ;;
4904 esac
4905 echo "$as_me:$LINENO: checking for $ac_header" >&5
4906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4908   echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910   eval "$as_ac_Header=$ac_header_preproc"
4911 fi
4912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4914
4915 fi
4916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4917   cat >>confdefs.h <<_ACEOF
4918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4919 _ACEOF
4920
4921 fi
4922
4923 done
4924
4925 ac_ext=cc
4926 ac_cpp='$CXXCPP $CPPFLAGS'
4927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4930 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4931 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4932 if test -z "$CXXCPP"; then
4933   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4934   echo $ECHO_N "(cached) $ECHO_C" >&6
4935 else
4936       # Double quotes because CXXCPP needs to be expanded
4937     for CXXCPP in "$CXX -E" "/lib/cpp"
4938     do
4939       ac_preproc_ok=false
4940 for ac_cxx_preproc_warn_flag in '' yes
4941 do
4942   # Use a header file that comes with gcc, so configuring glibc
4943   # with a fresh cross-compiler works.
4944   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4945   # <limits.h> exists even on freestanding compilers.
4946   # On the NeXT, cc -E runs the code through the compiler's parser,
4947   # not just through cpp. "Syntax error" is here to catch this case.
4948   cat >conftest.$ac_ext <<_ACEOF
4949 #line $LINENO "configure"
4950 /* confdefs.h.  */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h.  */
4955 #ifdef __STDC__
4956 # include <limits.h>
4957 #else
4958 # include <assert.h>
4959 #endif
4960                      Syntax error
4961 _ACEOF
4962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4964   ac_status=$?
4965   grep -v '^ *+' conftest.er1 >conftest.err
4966   rm -f conftest.er1
4967   cat conftest.err >&5
4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969   (exit $ac_status); } >/dev/null; then
4970   if test -s conftest.err; then
4971     ac_cpp_err=$ac_cxx_preproc_warn_flag
4972   else
4973     ac_cpp_err=
4974   fi
4975 else
4976   ac_cpp_err=yes
4977 fi
4978 if test -z "$ac_cpp_err"; then
4979   :
4980 else
4981   echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4983
4984   # Broken: fails on valid input.
4985 continue
4986 fi
4987 rm -f conftest.err conftest.$ac_ext
4988
4989   # OK, works on sane cases.  Now check whether non-existent headers
4990   # can be detected and how.
4991   cat >conftest.$ac_ext <<_ACEOF
4992 #line $LINENO "configure"
4993 /* confdefs.h.  */
4994 _ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h.  */
4998 #include <ac_nonexistent.h>
4999 _ACEOF
5000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5002   ac_status=$?
5003   grep -v '^ *+' conftest.er1 >conftest.err
5004   rm -f conftest.er1
5005   cat conftest.err >&5
5006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007   (exit $ac_status); } >/dev/null; then
5008   if test -s conftest.err; then
5009     ac_cpp_err=$ac_cxx_preproc_warn_flag
5010   else
5011     ac_cpp_err=
5012   fi
5013 else
5014   ac_cpp_err=yes
5015 fi
5016 if test -z "$ac_cpp_err"; then
5017   # Broken: success on invalid input.
5018 continue
5019 else
5020   echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5022
5023   # Passes both tests.
5024 ac_preproc_ok=:
5025 break
5026 fi
5027 rm -f conftest.err conftest.$ac_ext
5028
5029 done
5030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5031 rm -f conftest.err conftest.$ac_ext
5032 if $ac_preproc_ok; then
5033   break
5034 fi
5035
5036     done
5037     ac_cv_prog_CXXCPP=$CXXCPP
5038
5039 fi
5040   CXXCPP=$ac_cv_prog_CXXCPP
5041 else
5042   ac_cv_prog_CXXCPP=$CXXCPP
5043 fi
5044 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5045 echo "${ECHO_T}$CXXCPP" >&6
5046 ac_preproc_ok=false
5047 for ac_cxx_preproc_warn_flag in '' yes
5048 do
5049   # Use a header file that comes with gcc, so configuring glibc
5050   # with a fresh cross-compiler works.
5051   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5052   # <limits.h> exists even on freestanding compilers.
5053   # On the NeXT, cc -E runs the code through the compiler's parser,
5054   # not just through cpp. "Syntax error" is here to catch this case.
5055   cat >conftest.$ac_ext <<_ACEOF
5056 #line $LINENO "configure"
5057 /* confdefs.h.  */
5058 _ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h.  */
5062 #ifdef __STDC__
5063 # include <limits.h>
5064 #else
5065 # include <assert.h>
5066 #endif
5067                      Syntax error
5068 _ACEOF
5069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5070   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5071   ac_status=$?
5072   grep -v '^ *+' conftest.er1 >conftest.err
5073   rm -f conftest.er1
5074   cat conftest.err >&5
5075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076   (exit $ac_status); } >/dev/null; then
5077   if test -s conftest.err; then
5078     ac_cpp_err=$ac_cxx_preproc_warn_flag
5079   else
5080     ac_cpp_err=
5081   fi
5082 else
5083   ac_cpp_err=yes
5084 fi
5085 if test -z "$ac_cpp_err"; then
5086   :
5087 else
5088   echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5090
5091   # Broken: fails on valid input.
5092 continue
5093 fi
5094 rm -f conftest.err conftest.$ac_ext
5095
5096   # OK, works on sane cases.  Now check whether non-existent headers
5097   # can be detected and how.
5098   cat >conftest.$ac_ext <<_ACEOF
5099 #line $LINENO "configure"
5100 /* confdefs.h.  */
5101 _ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h.  */
5105 #include <ac_nonexistent.h>
5106 _ACEOF
5107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5109   ac_status=$?
5110   grep -v '^ *+' conftest.er1 >conftest.err
5111   rm -f conftest.er1
5112   cat conftest.err >&5
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); } >/dev/null; then
5115   if test -s conftest.err; then
5116     ac_cpp_err=$ac_cxx_preproc_warn_flag
5117   else
5118     ac_cpp_err=
5119   fi
5120 else
5121   ac_cpp_err=yes
5122 fi
5123 if test -z "$ac_cpp_err"; then
5124   # Broken: success on invalid input.
5125 continue
5126 else
5127   echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5129
5130   # Passes both tests.
5131 ac_preproc_ok=:
5132 break
5133 fi
5134 rm -f conftest.err conftest.$ac_ext
5135
5136 done
5137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5138 rm -f conftest.err conftest.$ac_ext
5139 if $ac_preproc_ok; then
5140   :
5141 else
5142   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5143 See \`config.log' for more details." >&5
5144 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5145 See \`config.log' for more details." >&2;}
5146    { (exit 1); exit 1; }; }
5147 fi
5148
5149 ac_ext=cc
5150 ac_cpp='$CXXCPP $CPPFLAGS'
5151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5154
5155
5156 ac_ext=f
5157 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5158 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5159 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5160 if test -n "$ac_tool_prefix"; then
5161   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5162   do
5163     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5165 echo "$as_me:$LINENO: checking for $ac_word" >&5
5166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5167 if test "${ac_cv_prog_F77+set}" = set; then
5168   echo $ECHO_N "(cached) $ECHO_C" >&6
5169 else
5170   if test -n "$F77"; then
5171   ac_cv_prog_F77="$F77" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176   IFS=$as_save_IFS
5177   test -z "$as_dir" && as_dir=.
5178   for ac_exec_ext in '' $ac_executable_extensions; do
5179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182     break 2
5183   fi
5184 done
5185 done
5186
5187 fi
5188 fi
5189 F77=$ac_cv_prog_F77
5190 if test -n "$F77"; then
5191   echo "$as_me:$LINENO: result: $F77" >&5
5192 echo "${ECHO_T}$F77" >&6
5193 else
5194   echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6
5196 fi
5197
5198     test -n "$F77" && break
5199   done
5200 fi
5201 if test -z "$F77"; then
5202   ac_ct_F77=$F77
5203   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5204 do
5205   # Extract the first word of "$ac_prog", so it can be a program name with args.
5206 set dummy $ac_prog; ac_word=$2
5207 echo "$as_me:$LINENO: checking for $ac_word" >&5
5208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5209 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5210   echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212   if test -n "$ac_ct_F77"; then
5213   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218   IFS=$as_save_IFS
5219   test -z "$as_dir" && as_dir=.
5220   for ac_exec_ext in '' $ac_executable_extensions; do
5221   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222     ac_cv_prog_ac_ct_F77="$ac_prog"
5223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5224     break 2
5225   fi
5226 done
5227 done
5228
5229 fi
5230 fi
5231 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5232 if test -n "$ac_ct_F77"; then
5233   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5234 echo "${ECHO_T}$ac_ct_F77" >&6
5235 else
5236   echo "$as_me:$LINENO: result: no" >&5
5237 echo "${ECHO_T}no" >&6
5238 fi
5239
5240   test -n "$ac_ct_F77" && break
5241 done
5242
5243   F77=$ac_ct_F77
5244 fi
5245
5246
5247 # Provide some information about the compiler.
5248 echo "$as_me:5248:" \
5249      "checking for Fortran 77 compiler version" >&5
5250 ac_compiler=`set X $ac_compile; echo $2`
5251 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5252   (eval $ac_compiler --version </dev/null >&5) 2>&5
5253   ac_status=$?
5254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255   (exit $ac_status); }
5256 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5257   (eval $ac_compiler -v </dev/null >&5) 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); }
5261 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5262   (eval $ac_compiler -V </dev/null >&5) 2>&5
5263   ac_status=$?
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); }
5266
5267 # If we don't use `.F' as extension, the preprocessor is not run on the
5268 # input file.
5269 ac_save_ext=$ac_ext
5270 ac_ext=F
5271 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5272 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5273 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5274   echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276   cat >conftest.$ac_ext <<_ACEOF
5277       program main
5278 #ifndef __GNUC__
5279        choke me
5280 #endif
5281
5282       end
5283 _ACEOF
5284 rm -f conftest.$ac_objext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286   (eval $ac_compile) 2>&5
5287   ac_status=$?
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); } &&
5290          { ac_try='test -s conftest.$ac_objext'
5291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292   (eval $ac_try) 2>&5
5293   ac_status=$?
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); }; }; then
5296   ac_compiler_gnu=yes
5297 else
5298   echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5300
5301 ac_compiler_gnu=no
5302 fi
5303 rm -f conftest.$ac_objext conftest.$ac_ext
5304 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5305
5306 fi
5307 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5308 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5309 ac_ext=$ac_save_ext
5310 G77=`test $ac_compiler_gnu = yes && echo yes`
5311 ac_test_FFLAGS=${FFLAGS+set}
5312 ac_save_FFLAGS=$FFLAGS
5313 FFLAGS=
5314 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5315 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5316 if test "${ac_cv_prog_f77_g+set}" = set; then
5317   echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319   FFLAGS=-g
5320 cat >conftest.$ac_ext <<_ACEOF
5321       program main
5322
5323       end
5324 _ACEOF
5325 rm -f conftest.$ac_objext
5326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5327   (eval $ac_compile) 2>&5
5328   ac_status=$?
5329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); } &&
5331          { ac_try='test -s conftest.$ac_objext'
5332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333   (eval $ac_try) 2>&5
5334   ac_status=$?
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); }; }; then
5337   ac_cv_prog_f77_g=yes
5338 else
5339   echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5341
5342 ac_cv_prog_f77_g=no
5343 fi
5344 rm -f conftest.$ac_objext conftest.$ac_ext
5345
5346 fi
5347 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5348 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5349 if test "$ac_test_FFLAGS" = set; then
5350   FFLAGS=$ac_save_FFLAGS
5351 elif test $ac_cv_prog_f77_g = yes; then
5352   if test "$G77" = yes; then
5353     FFLAGS="-g -O2"
5354   else
5355     FFLAGS="-g"
5356   fi
5357 else
5358   if test "$G77" = yes; then
5359     FFLAGS="-O2"
5360   else
5361     FFLAGS=
5362   fi
5363 fi
5364 ac_ext=c
5365 ac_cpp='$CPP $CPPFLAGS'
5366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5369
5370
5371
5372 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5373
5374 # find the maximum length of command line arguments
5375 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5376 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5377 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5378   echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380     i=0
5381   testring="ABCD"
5382
5383   case $build_os in
5384   msdosdjgpp*)
5385     # On DJGPP, this test can blow up pretty badly due to problems in libc
5386     # (any single argument exceeding 2000 bytes causes a buffer overrun
5387     # during glob expansion).  Even if it were fixed, the result of this
5388     # check would be larger than it should be.
5389     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5390     ;;
5391
5392   gnu*)
5393     # Under GNU Hurd, this test is not required because there is
5394     # no limit to the length of command line arguments.
5395     # Libtool will interpret -1 as no limit whatsoever
5396     lt_cv_sys_max_cmd_len=-1;
5397     ;;
5398
5399   cygwin* | mingw*)
5400     # On Win9x/ME, this test blows up -- it succeeds, but takes
5401     # about 5 minutes as the teststring grows exponentially.
5402     # Worse, since 9x/ME are not pre-emptively multitasking,
5403     # you end up with a "frozen" computer, even though with patience
5404     # the test eventually succeeds (with a max line length of 256k).
5405     # Instead, let's just punt: use the minimum linelength reported by
5406     # all of the supported platforms: 8192 (on NT/2K/XP).
5407     lt_cv_sys_max_cmd_len=8192;
5408     ;;
5409
5410  *)
5411     # If test is not a shell built-in, we'll probably end up computing a
5412     # maximum length that is only half of the actual maximum length, but
5413     # we can't tell.
5414     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5415                = "XX$testring") >/dev/null 2>&1 &&
5416             new_result=`expr "X$testring" : ".*" 2>&1` &&
5417             lt_cv_sys_max_cmd_len=$new_result &&
5418             test $i != 17 # 1/2 MB should be enough
5419     do
5420       i=`expr $i + 1`
5421       testring=$testring$testring
5422     done
5423     testring=
5424     # Add a significant safety factor because C++ compilers can tack on massive
5425     # amounts of additional arguments before passing them to the linker.
5426     # It appears as though 1/2 is a usable value.
5427     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5428     ;;
5429   esac
5430
5431 fi
5432
5433 if test -n $lt_cv_sys_max_cmd_len ; then
5434   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5435 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5436 else
5437   echo "$as_me:$LINENO: result: none" >&5
5438 echo "${ECHO_T}none" >&6
5439 fi
5440
5441
5442
5443
5444 # Check for command to grab the raw symbol name followed by C symbol from nm.
5445 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5446 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5447 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5448   echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5450
5451 # These are sane defaults that work on at least a few old systems.
5452 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5453
5454 # Character class describing NM global symbol codes.
5455 symcode='[BCDEGRST]'
5456
5457 # Regexp to match symbols that can be accessed directly from C.
5458 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5459
5460 # Transform the above into a raw symbol and a C symbol.
5461 symxfrm='\1 \2\3 \3'
5462
5463 # Transform an extracted symbol line into a proper C declaration
5464 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5465
5466 # Transform an extracted symbol line into symbol name and symbol address
5467 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'"
5468
5469 # Define system-specific variables.
5470 case $host_os in
5471 aix*)
5472   symcode='[BCDT]'
5473   ;;
5474 cygwin* | mingw* | pw32*)
5475   symcode='[ABCDGISTW]'
5476   ;;
5477 hpux*) # Its linker distinguishes data from code symbols
5478   if test "$host_cpu" = ia64; then
5479     symcode='[ABCDEGRST]'
5480   fi
5481   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5482   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'"
5483   ;;
5484 irix* | nonstopux*)
5485   symcode='[BCDEGRST]'
5486   ;;
5487 osf*)
5488   symcode='[BCDEGQRST]'
5489   ;;
5490 solaris* | sysv5*)
5491   symcode='[BDT]'
5492   ;;
5493 sysv4)
5494   symcode='[DFNSTU]'
5495   ;;
5496 esac
5497
5498 # Handle CRLF in mingw tool chain
5499 opt_cr=
5500 case $build_os in
5501 mingw*)
5502   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5503   ;;
5504 esac
5505
5506 # If we're using GNU nm, then use its standard symbol codes.
5507 case `$NM -V 2>&1` in
5508 *GNU* | *'with BFD'*)
5509   symcode='[ABCDGISTW]' ;;
5510 esac
5511
5512 # Try without a prefix undercore, then with it.
5513 for ac_symprfx in "" "_"; do
5514
5515   # Write the raw and C identifiers.
5516   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5517
5518   # Check to see that the pipe works correctly.
5519   pipe_works=no
5520
5521   rm -f conftest*
5522   cat > conftest.$ac_ext <<EOF
5523 #ifdef __cplusplus
5524 extern "C" {
5525 #endif
5526 char nm_test_var;
5527 void nm_test_func(){}
5528 #ifdef __cplusplus
5529 }
5530 #endif
5531 int main(){nm_test_var='a';nm_test_func();return(0);}
5532 EOF
5533
5534   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535   (eval $ac_compile) 2>&5
5536   ac_status=$?
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); }; then
5539     # Now try to grab the symbols.
5540     nlist=conftest.nm
5541     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5542   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5543   ac_status=$?
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); } && test -s "$nlist"; then
5546       # Try sorting and uniquifying the output.
5547       if sort "$nlist" | uniq > "$nlist"T; then
5548         mv -f "$nlist"T "$nlist"
5549       else
5550         rm -f "$nlist"T
5551       fi
5552
5553       # Make sure that we snagged all the symbols we need.
5554       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5555         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5556           cat <<EOF > conftest.$ac_ext
5557 #ifdef __cplusplus
5558 extern "C" {
5559 #endif
5560
5561 EOF
5562           # Now generate the symbol file.
5563           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5564
5565           cat <<EOF >> conftest.$ac_ext
5566 #if defined (__STDC__) && __STDC__
5567 # define lt_ptr_t void *
5568 #else
5569 # define lt_ptr_t char *
5570 # define const
5571 #endif
5572
5573 /* The mapping between symbol names and symbols. */
5574 const struct {
5575   const char *name;
5576   lt_ptr_t address;
5577 }
5578 lt_preloaded_symbols[] =
5579 {
5580 EOF
5581           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5582           cat <<\EOF >> conftest.$ac_ext
5583   {0, (lt_ptr_t) 0}
5584 };
5585
5586 #ifdef __cplusplus
5587 }
5588 #endif
5589 EOF
5590           # Now try linking the two files.
5591           mv conftest.$ac_objext conftstm.$ac_objext
5592           lt_save_LIBS="$LIBS"
5593           lt_save_CFLAGS="$CFLAGS"
5594           LIBS="conftstm.$ac_objext"
5595           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5596           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5597   (eval $ac_link) 2>&5
5598   ac_status=$?
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5601             pipe_works=yes
5602           fi
5603           LIBS="$lt_save_LIBS"
5604           CFLAGS="$lt_save_CFLAGS"
5605         else
5606           echo "cannot find nm_test_func in $nlist" >&5
5607         fi
5608       else
5609         echo "cannot find nm_test_var in $nlist" >&5
5610       fi
5611     else
5612       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5613     fi
5614   else
5615     echo "$progname: failed program was:" >&5
5616     cat conftest.$ac_ext >&5
5617   fi
5618   rm -f conftest* conftst*
5619
5620   # Do not use the global_symbol_pipe unless it works.
5621   if test "$pipe_works" = yes; then
5622     break
5623   else
5624     lt_cv_sys_global_symbol_pipe=
5625   fi
5626 done
5627
5628 fi
5629
5630 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5631   lt_cv_sys_global_symbol_to_cdecl=
5632 fi
5633 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5634   echo "$as_me:$LINENO: result: failed" >&5
5635 echo "${ECHO_T}failed" >&6
5636 else
5637   echo "$as_me:$LINENO: result: ok" >&5
5638 echo "${ECHO_T}ok" >&6
5639 fi
5640
5641 echo "$as_me:$LINENO: checking for objdir" >&5
5642 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5643 if test "${lt_cv_objdir+set}" = set; then
5644   echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646   rm -f .libs 2>/dev/null
5647 mkdir .libs 2>/dev/null
5648 if test -d .libs; then
5649   lt_cv_objdir=.libs
5650 else
5651   # MS-DOS does not allow filenames that begin with a dot.
5652   lt_cv_objdir=_libs
5653 fi
5654 rmdir .libs 2>/dev/null
5655 fi
5656 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5657 echo "${ECHO_T}$lt_cv_objdir" >&6
5658 objdir=$lt_cv_objdir
5659
5660
5661
5662
5663
5664 case $host_os in
5665 aix3*)
5666   # AIX sometimes has problems with the GCC collect2 program.  For some
5667   # reason, if we set the COLLECT_NAMES environment variable, the problems
5668   # vanish in a puff of smoke.
5669   if test "X${COLLECT_NAMES+set}" != Xset; then
5670     COLLECT_NAMES=
5671     export COLLECT_NAMES
5672   fi
5673   ;;
5674 esac
5675
5676 # Sed substitution that helps us do robust quoting.  It backslashifies
5677 # metacharacters that are still active within double-quoted strings.
5678 Xsed='sed -e s/^X//'
5679 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5680
5681 # Same as above, but do not quote variable references.
5682 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5683
5684 # Sed substitution to delay expansion of an escaped shell variable in a
5685 # double_quote_subst'ed string.
5686 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5687
5688 # Sed substitution to avoid accidental globbing in evaled expressions
5689 no_glob_subst='s/\*/\\\*/g'
5690
5691 # Constants:
5692 rm="rm -f"
5693
5694 # Global variables:
5695 default_ofile=mklib
5696 can_build_shared=yes
5697
5698 # All known linkers require a `.a' archive for static linking (except M$VC,
5699 # which needs '.lib').
5700 libext=a
5701 ltmain="$ac_aux_dir/ltmain.sh"
5702 ofile="$default_ofile"
5703 with_gnu_ld="$lt_cv_prog_gnu_ld"
5704
5705 if test -n "$ac_tool_prefix"; then
5706   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5707 set dummy ${ac_tool_prefix}ar; ac_word=$2
5708 echo "$as_me:$LINENO: checking for $ac_word" >&5
5709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5710 if test "${ac_cv_prog_AR+set}" = set; then
5711   echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713   if test -n "$AR"; then
5714   ac_cv_prog_AR="$AR" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719   IFS=$as_save_IFS
5720   test -z "$as_dir" && as_dir=.
5721   for ac_exec_ext in '' $ac_executable_extensions; do
5722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723     ac_cv_prog_AR="${ac_tool_prefix}ar"
5724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5725     break 2
5726   fi
5727 done
5728 done
5729
5730 fi
5731 fi
5732 AR=$ac_cv_prog_AR
5733 if test -n "$AR"; then
5734   echo "$as_me:$LINENO: result: $AR" >&5
5735 echo "${ECHO_T}$AR" >&6
5736 else
5737   echo "$as_me:$LINENO: result: no" >&5
5738 echo "${ECHO_T}no" >&6
5739 fi
5740
5741 fi
5742 if test -z "$ac_cv_prog_AR"; then
5743   ac_ct_AR=$AR
5744   # Extract the first word of "ar", so it can be a program name with args.
5745 set dummy ar; ac_word=$2
5746 echo "$as_me:$LINENO: checking for $ac_word" >&5
5747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5748 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5749   echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751   if test -n "$ac_ct_AR"; then
5752   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5753 else
5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 for as_dir in $PATH
5756 do
5757   IFS=$as_save_IFS
5758   test -z "$as_dir" && as_dir=.
5759   for ac_exec_ext in '' $ac_executable_extensions; do
5760   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5761     ac_cv_prog_ac_ct_AR="ar"
5762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5763     break 2
5764   fi
5765 done
5766 done
5767
5768   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5769 fi
5770 fi
5771 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5772 if test -n "$ac_ct_AR"; then
5773   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5774 echo "${ECHO_T}$ac_ct_AR" >&6
5775 else
5776   echo "$as_me:$LINENO: result: no" >&5
5777 echo "${ECHO_T}no" >&6
5778 fi
5779
5780   AR=$ac_ct_AR
5781 else
5782   AR="$ac_cv_prog_AR"
5783 fi
5784
5785 if test -n "$ac_tool_prefix"; then
5786   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5787 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5788 echo "$as_me:$LINENO: checking for $ac_word" >&5
5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5790 if test "${ac_cv_prog_RANLIB+set}" = set; then
5791   echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793   if test -n "$RANLIB"; then
5794   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799   IFS=$as_save_IFS
5800   test -z "$as_dir" && as_dir=.
5801   for ac_exec_ext in '' $ac_executable_extensions; do
5802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805     break 2
5806   fi
5807 done
5808 done
5809
5810 fi
5811 fi
5812 RANLIB=$ac_cv_prog_RANLIB
5813 if test -n "$RANLIB"; then
5814   echo "$as_me:$LINENO: result: $RANLIB" >&5
5815 echo "${ECHO_T}$RANLIB" >&6
5816 else
5817   echo "$as_me:$LINENO: result: no" >&5
5818 echo "${ECHO_T}no" >&6
5819 fi
5820
5821 fi
5822 if test -z "$ac_cv_prog_RANLIB"; then
5823   ac_ct_RANLIB=$RANLIB
5824   # Extract the first word of "ranlib", so it can be a program name with args.
5825 set dummy ranlib; ac_word=$2
5826 echo "$as_me:$LINENO: checking for $ac_word" >&5
5827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5828 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5829   echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831   if test -n "$ac_ct_RANLIB"; then
5832   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5833 else
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 for as_dir in $PATH
5836 do
5837   IFS=$as_save_IFS
5838   test -z "$as_dir" && as_dir=.
5839   for ac_exec_ext in '' $ac_executable_extensions; do
5840   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5841     ac_cv_prog_ac_ct_RANLIB="ranlib"
5842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5843     break 2
5844   fi
5845 done
5846 done
5847
5848   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5849 fi
5850 fi
5851 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5852 if test -n "$ac_ct_RANLIB"; then
5853   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5854 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5855 else
5856   echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6
5858 fi
5859
5860   RANLIB=$ac_ct_RANLIB
5861 else
5862   RANLIB="$ac_cv_prog_RANLIB"
5863 fi
5864
5865 if test -n "$ac_tool_prefix"; then
5866   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5867 set dummy ${ac_tool_prefix}strip; ac_word=$2
5868 echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5870 if test "${ac_cv_prog_STRIP+set}" = set; then
5871   echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873   if test -n "$STRIP"; then
5874   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879   IFS=$as_save_IFS
5880   test -z "$as_dir" && as_dir=.
5881   for ac_exec_ext in '' $ac_executable_extensions; do
5882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5883     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885     break 2
5886   fi
5887 done
5888 done
5889
5890 fi
5891 fi
5892 STRIP=$ac_cv_prog_STRIP
5893 if test -n "$STRIP"; then
5894   echo "$as_me:$LINENO: result: $STRIP" >&5
5895 echo "${ECHO_T}$STRIP" >&6
5896 else
5897   echo "$as_me:$LINENO: result: no" >&5
5898 echo "${ECHO_T}no" >&6
5899 fi
5900
5901 fi
5902 if test -z "$ac_cv_prog_STRIP"; then
5903   ac_ct_STRIP=$STRIP
5904   # Extract the first word of "strip", so it can be a program name with args.
5905 set dummy strip; ac_word=$2
5906 echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5908 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5909   echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911   if test -n "$ac_ct_STRIP"; then
5912   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917   IFS=$as_save_IFS
5918   test -z "$as_dir" && as_dir=.
5919   for ac_exec_ext in '' $ac_executable_extensions; do
5920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921     ac_cv_prog_ac_ct_STRIP="strip"
5922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923     break 2
5924   fi
5925 done
5926 done
5927
5928   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5929 fi
5930 fi
5931 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5932 if test -n "$ac_ct_STRIP"; then
5933   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5934 echo "${ECHO_T}$ac_ct_STRIP" >&6
5935 else
5936   echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6
5938 fi
5939
5940   STRIP=$ac_ct_STRIP
5941 else
5942   STRIP="$ac_cv_prog_STRIP"
5943 fi
5944
5945
5946 old_CC="$CC"
5947 old_CFLAGS="$CFLAGS"
5948
5949 # Set sane defaults for various variables
5950 test -z "$AR" && AR=ar
5951 test -z "$AR_FLAGS" && AR_FLAGS=cru
5952 test -z "$AS" && AS=as
5953 test -z "$CC" && CC=cc
5954 test -z "$LTCC" && LTCC=$CC
5955 test -z "$DLLTOOL" && DLLTOOL=dlltool
5956 test -z "$LD" && LD=ld
5957 test -z "$LN_S" && LN_S="ln -s"
5958 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5959 test -z "$NM" && NM=nm
5960 test -z "$SED" && SED=sed
5961 test -z "$OBJDUMP" && OBJDUMP=objdump
5962 test -z "$RANLIB" && RANLIB=:
5963 test -z "$STRIP" && STRIP=:
5964 test -z "$ac_objext" && ac_objext=o
5965
5966 # Determine commands to create old-style static archives.
5967 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5968 old_postinstall_cmds='chmod 644 $oldlib'
5969 old_postuninstall_cmds=
5970
5971 if test -n "$RANLIB"; then
5972   case $host_os in
5973   openbsd*)
5974     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5975     ;;
5976   *)
5977     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5978     ;;
5979   esac
5980   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5981 fi
5982
5983 # Only perform the check for file, if the check method requires it
5984 case $deplibs_check_method in
5985 file_magic*)
5986   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5987     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5988 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5989 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5990   echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992   case $MAGIC_CMD in
5993 [\\/*] |  ?:[\\/]*)
5994   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5995   ;;
5996 *)
5997   lt_save_MAGIC_CMD="$MAGIC_CMD"
5998   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5999   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6000   for ac_dir in $ac_dummy; do
6001     IFS="$lt_save_ifs"
6002     test -z "$ac_dir" && ac_dir=.
6003     if test -f $ac_dir/${ac_tool_prefix}file; then
6004       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6005       if test -n "$file_magic_test_file"; then
6006         case $deplibs_check_method in
6007         "file_magic "*)
6008           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6009           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6010           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6011             $EGREP "$file_magic_regex" > /dev/null; then
6012             :
6013           else
6014             cat <<EOF 1>&2
6015
6016 *** Warning: the command libtool uses to detect shared libraries,
6017 *** $file_magic_cmd, produces output that libtool cannot recognize.
6018 *** The result is that libtool may fail to recognize shared libraries
6019 *** as such.  This will affect the creation of libtool libraries that
6020 *** depend on shared libraries, but programs linked with such libtool
6021 *** libraries will work regardless of this problem.  Nevertheless, you
6022 *** may want to report the problem to your system manager and/or to
6023 *** bug-libtool@gnu.org
6024
6025 EOF
6026           fi ;;
6027         esac
6028       fi
6029       break
6030     fi
6031   done
6032   IFS="$lt_save_ifs"
6033   MAGIC_CMD="$lt_save_MAGIC_CMD"
6034   ;;
6035 esac
6036 fi
6037
6038 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6039 if test -n "$MAGIC_CMD"; then
6040   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6041 echo "${ECHO_T}$MAGIC_CMD" >&6
6042 else
6043   echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6
6045 fi
6046
6047 if test -z "$lt_cv_path_MAGIC_CMD"; then
6048   if test -n "$ac_tool_prefix"; then
6049     echo "$as_me:$LINENO: checking for file" >&5
6050 echo $ECHO_N "checking for file... $ECHO_C" >&6
6051 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   case $MAGIC_CMD in
6055 [\\/*] |  ?:[\\/]*)
6056   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6057   ;;
6058 *)
6059   lt_save_MAGIC_CMD="$MAGIC_CMD"
6060   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6061   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6062   for ac_dir in $ac_dummy; do
6063     IFS="$lt_save_ifs"
6064     test -z "$ac_dir" && ac_dir=.
6065     if test -f $ac_dir/file; then
6066       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6067       if test -n "$file_magic_test_file"; then
6068         case $deplibs_check_method in
6069         "file_magic "*)
6070           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6071           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6072           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6073             $EGREP "$file_magic_regex" > /dev/null; then
6074             :
6075           else
6076             cat <<EOF 1>&2
6077
6078 *** Warning: the command libtool uses to detect shared libraries,
6079 *** $file_magic_cmd, produces output that libtool cannot recognize.
6080 *** The result is that libtool may fail to recognize shared libraries
6081 *** as such.  This will affect the creation of libtool libraries that
6082 *** depend on shared libraries, but programs linked with such libtool
6083 *** libraries will work regardless of this problem.  Nevertheless, you
6084 *** may want to report the problem to your system manager and/or to
6085 *** bug-libtool@gnu.org
6086
6087 EOF
6088           fi ;;
6089         esac
6090       fi
6091       break
6092     fi
6093   done
6094   IFS="$lt_save_ifs"
6095   MAGIC_CMD="$lt_save_MAGIC_CMD"
6096   ;;
6097 esac
6098 fi
6099
6100 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6101 if test -n "$MAGIC_CMD"; then
6102   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6103 echo "${ECHO_T}$MAGIC_CMD" >&6
6104 else
6105   echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6
6107 fi
6108
6109   else
6110     MAGIC_CMD=:
6111   fi
6112 fi
6113
6114   fi
6115   ;;
6116 esac
6117
6118 enable_dlopen=no
6119 enable_win32_dll=no
6120
6121 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6122 if test "${enable_libtool_lock+set}" = set; then
6123   enableval="$enable_libtool_lock"
6124
6125 fi;
6126 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6127
6128
6129 # Check whether --with-pic or --without-pic was given.
6130 if test "${with_pic+set}" = set; then
6131   withval="$with_pic"
6132   pic_mode="$withval"
6133 else
6134   pic_mode=default
6135 fi;
6136 test -z "$pic_mode" && pic_mode=default
6137
6138 # Use C for the default configuration in the libtool script
6139 tagname=
6140 lt_save_CC="$CC"
6141 ac_ext=c
6142 ac_cpp='$CPP $CPPFLAGS'
6143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6146
6147
6148 # Source file extension for C test sources.
6149 ac_ext=c
6150
6151 # Object file extension for compiled C test sources.
6152 objext=o
6153 objext=$objext
6154
6155 # Code to be used in simple compile tests
6156 lt_simple_compile_test_code="int some_variable = 0;\n"
6157
6158 # Code to be used in simple link tests
6159 lt_simple_link_test_code='int main(){return(0);}\n'
6160
6161
6162 # If no C compiler was specified, use CC.
6163 LTCC=${LTCC-"$CC"}
6164
6165 # Allow CC to be a program name with arguments.
6166 compiler=$CC
6167
6168
6169 #
6170 # Check for any special shared library compilation flags.
6171 #
6172 lt_prog_cc_shlib=
6173 if test "$GCC" = no; then
6174   case $host_os in
6175   sco3.2v5*)
6176     lt_prog_cc_shlib='-belf'
6177     ;;
6178   esac
6179 fi
6180 if test -n "$lt_prog_cc_shlib"; then
6181   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6182 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6183   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6184   else
6185     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6186 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6187     lt_cv_prog_cc_can_build_shared=no
6188   fi
6189 fi
6190
6191
6192 #
6193 # Check to make sure the static flag actually works.
6194 #
6195 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6196 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6197 if test "${lt_prog_compiler_static_works+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200   lt_prog_compiler_static_works=no
6201    save_LDFLAGS="$LDFLAGS"
6202    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6203    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6204    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6205      # The compiler can only warn and ignore the option if not recognized
6206      # So say no if there are warnings
6207      if test -s conftest.err; then
6208        # Append any errors to the config.log.
6209        cat conftest.err 1>&5
6210      else
6211        lt_prog_compiler_static_works=yes
6212      fi
6213    fi
6214    $rm conftest*
6215    LDFLAGS="$save_LDFLAGS"
6216
6217 fi
6218 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6219 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6220
6221 if test x"$lt_prog_compiler_static_works" = xyes; then
6222     :
6223 else
6224     lt_prog_compiler_static=
6225 fi
6226
6227
6228
6229 ## CAVEAT EMPTOR:
6230 ## There is no encapsulation within the following macros, do not change
6231 ## the running order or otherwise move them around unless you know exactly
6232 ## what you are doing...
6233
6234 lt_prog_compiler_no_builtin_flag=
6235
6236 if test "$GCC" = yes; then
6237   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6238
6239   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6240 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6241 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6242   echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244   lt_cv_prog_compiler_rtti_exceptions=no
6245   ac_outfile=conftest.$ac_objext
6246    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6247    lt_compiler_flag="-fno-rtti -fno-exceptions"
6248    # Insert the option either (1) after the last *FLAGS variable, or
6249    # (2) before a word containing "conftest.", or (3) at the end.
6250    # Note that $ac_compile itself does not contain backslashes and begins
6251    # with a dollar sign (not a hyphen), so the echo should work correctly.
6252    # The option is referenced via a variable to avoid confusing sed.
6253    lt_compile=`echo "$ac_compile" | $SED \
6254    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6255    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6256    -e 's:$: $lt_compiler_flag:'`
6257    (eval echo "\"\$as_me:6257: $lt_compile\"" >&5)
6258    (eval "$lt_compile" 2>conftest.err)
6259    ac_status=$?
6260    cat conftest.err >&5
6261    echo "$as_me:6261: \$? = $ac_status" >&5
6262    if (exit $ac_status) && test -s "$ac_outfile"; then
6263      # The compiler can only warn and ignore the option if not recognized
6264      # So say no if there are warnings
6265      if test ! -s conftest.err; then
6266        lt_cv_prog_compiler_rtti_exceptions=yes
6267      fi
6268    fi
6269    $rm conftest*
6270
6271 fi
6272 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6273 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6274
6275 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6276     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6277 else
6278     :
6279 fi
6280
6281 fi
6282
6283 lt_prog_compiler_wl=
6284 lt_prog_compiler_pic=
6285 lt_prog_compiler_static=
6286
6287 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6288 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6289
6290   if test "$GCC" = yes; then
6291     lt_prog_compiler_wl='-Wl,'
6292     lt_prog_compiler_static='-static'
6293
6294     case $host_os in
6295       aix*)
6296       # All AIX code is PIC.
6297       if test "$host_cpu" = ia64; then
6298         # AIX 5 now supports IA64 processor
6299         lt_prog_compiler_static='-Bstatic'
6300       fi
6301       ;;
6302
6303     amigaos*)
6304       # FIXME: we need at least 68020 code to build shared libraries, but
6305       # adding the `-m68020' flag to GCC prevents building anything better,
6306       # like `-m68040'.
6307       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6308       ;;
6309
6310     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6311       # PIC is the default for these OSes.
6312       ;;
6313
6314     mingw* | pw32* | os2*)
6315       # This hack is so that the source file can tell whether it is being
6316       # built for inclusion in a dll (and should export symbols for example).
6317       lt_prog_compiler_pic='-DDLL_EXPORT'
6318       ;;
6319
6320     darwin* | rhapsody*)
6321       # PIC is the default on this platform
6322       # Common symbols not allowed in MH_DYLIB files
6323       lt_prog_compiler_pic='-fno-common'
6324       ;;
6325
6326     msdosdjgpp*)
6327       # Just because we use GCC doesn't mean we suddenly get shared libraries
6328       # on systems that don't support them.
6329       lt_prog_compiler_can_build_shared=no
6330       enable_shared=no
6331       ;;
6332
6333     sysv4*MP*)
6334       if test -d /usr/nec; then
6335         lt_prog_compiler_pic=-Kconform_pic
6336       fi
6337       ;;
6338
6339     hpux*)
6340       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6341       # not for PA HP-UX.
6342       case "$host_cpu" in
6343       hppa*64*|ia64*)
6344         # +Z the default
6345         ;;
6346       *)
6347         lt_prog_compiler_pic='-fPIC'
6348         ;;
6349       esac
6350       ;;
6351
6352     *)
6353       lt_prog_compiler_pic='-fPIC'
6354       ;;
6355     esac
6356   else
6357     # PORTME Check for flag to pass linker flags through the system compiler.
6358     case $host_os in
6359     aix*)
6360       lt_prog_compiler_wl='-Wl,'
6361       if test "$host_cpu" = ia64; then
6362         # AIX 5 now supports IA64 processor
6363         lt_prog_compiler_static='-Bstatic'
6364       else
6365         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6366       fi
6367       ;;
6368
6369     mingw* | pw32* | os2*)
6370       # This hack is so that the source file can tell whether it is being
6371       # built for inclusion in a dll (and should export symbols for example).
6372       lt_prog_compiler_pic='-DDLL_EXPORT'
6373       ;;
6374
6375     hpux9* | hpux10* | hpux11*)
6376       lt_prog_compiler_wl='-Wl,'
6377       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6378       # not for PA HP-UX.
6379       case "$host_cpu" in
6380       hppa*64*|ia64*)
6381         # +Z the default
6382         ;;
6383       *)
6384         lt_prog_compiler_pic='+Z'
6385         ;;
6386       esac
6387       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6388       lt_prog_compiler_static='${wl}-a ${wl}archive'
6389       ;;
6390
6391     irix5* | irix6* | nonstopux*)
6392       lt_prog_compiler_wl='-Wl,'
6393       # PIC (with -KPIC) is the default.
6394       lt_prog_compiler_static='-non_shared'
6395       ;;
6396
6397     newsos6)
6398       lt_prog_compiler_pic='-KPIC'
6399       lt_prog_compiler_static='-Bstatic'
6400       ;;
6401
6402     linux*)
6403       case $CC in
6404       icc|ecc)
6405         lt_prog_compiler_wl='-Wl,'
6406         lt_prog_compiler_pic='-KPIC'
6407         lt_prog_compiler_static='-static'
6408         ;;
6409       ccc)
6410         lt_prog_compiler_wl='-Wl,'
6411         # All Alpha code is PIC.
6412         lt_prog_compiler_static='-non_shared'
6413         ;;
6414       esac
6415       ;;
6416
6417     osf3* | osf4* | osf5*)
6418       lt_prog_compiler_wl='-Wl,'
6419       # All OSF/1 code is PIC.
6420       lt_prog_compiler_static='-non_shared'
6421       ;;
6422
6423     sco3.2v5*)
6424       lt_prog_compiler_pic='-Kpic'
6425       lt_prog_compiler_static='-dn'
6426       ;;
6427
6428     solaris*)
6429       lt_prog_compiler_wl='-Wl,'
6430       lt_prog_compiler_pic='-KPIC'
6431       lt_prog_compiler_static='-Bstatic'
6432       ;;
6433
6434     sunos4*)
6435       lt_prog_compiler_wl='-Qoption ld '
6436       lt_prog_compiler_pic='-PIC'
6437       lt_prog_compiler_static='-Bstatic'
6438       ;;
6439
6440     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6441       lt_prog_compiler_wl='-Wl,'
6442       lt_prog_compiler_pic='-KPIC'
6443       lt_prog_compiler_static='-Bstatic'
6444       ;;
6445
6446     sysv4*MP*)
6447       if test -d /usr/nec ;then
6448         lt_prog_compiler_pic='-Kconform_pic'
6449         lt_prog_compiler_static='-Bstatic'
6450       fi
6451       ;;
6452
6453     uts4*)
6454       lt_prog_compiler_pic='-pic'
6455       lt_prog_compiler_static='-Bstatic'
6456       ;;
6457
6458     *)
6459       lt_prog_compiler_can_build_shared=no
6460       ;;
6461     esac
6462   fi
6463
6464 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6465 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6466
6467 #
6468 # Check to make sure the PIC flag actually works.
6469 #
6470 if test -n "$lt_prog_compiler_pic"; then
6471   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6472 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6473 if test "${lt_prog_compiler_pic_works+set}" = set; then
6474   echo $ECHO_N "(cached) $ECHO_C" >&6
6475 else
6476   lt_prog_compiler_pic_works=no
6477   ac_outfile=conftest.$ac_objext
6478    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6479    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6480    # Insert the option either (1) after the last *FLAGS variable, or
6481    # (2) before a word containing "conftest.", or (3) at the end.
6482    # Note that $ac_compile itself does not contain backslashes and begins
6483    # with a dollar sign (not a hyphen), so the echo should work correctly.
6484    # The option is referenced via a variable to avoid confusing sed.
6485    lt_compile=`echo "$ac_compile" | $SED \
6486    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6487    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6488    -e 's:$: $lt_compiler_flag:'`
6489    (eval echo "\"\$as_me:6489: $lt_compile\"" >&5)
6490    (eval "$lt_compile" 2>conftest.err)
6491    ac_status=$?
6492    cat conftest.err >&5
6493    echo "$as_me:6493: \$? = $ac_status" >&5
6494    if (exit $ac_status) && test -s "$ac_outfile"; then
6495      # The compiler can only warn and ignore the option if not recognized
6496      # So say no if there are warnings
6497      if test ! -s conftest.err; then
6498        lt_prog_compiler_pic_works=yes
6499      fi
6500    fi
6501    $rm conftest*
6502
6503 fi
6504 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6505 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6506
6507 if test x"$lt_prog_compiler_pic_works" = xyes; then
6508     case $lt_prog_compiler_pic in
6509      "" | " "*) ;;
6510      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6511      esac
6512 else
6513     lt_prog_compiler_pic=
6514      lt_prog_compiler_can_build_shared=no
6515 fi
6516
6517 fi
6518 case "$host_os" in
6519   # For platforms which do not support PIC, -DPIC is meaningless:
6520   *djgpp*)
6521     lt_prog_compiler_pic=
6522     ;;
6523   *)
6524     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6525     ;;
6526 esac
6527
6528 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6529 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6530 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6531   echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533   lt_cv_prog_compiler_c_o=no
6534    $rm -r conftest 2>/dev/null
6535    mkdir conftest
6536    cd conftest
6537    mkdir out
6538    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6539
6540    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6541    # that will create temporary files in the current directory regardless of
6542    # the output directory.  Thus, making CWD read-only will cause this test
6543    # to fail, enabling locking or at least warning the user not to do parallel
6544    # builds.
6545    chmod -w .
6546
6547    lt_compiler_flag="-o out/conftest2.$ac_objext"
6548    # Insert the option either (1) after the last *FLAGS variable, or
6549    # (2) before a word containing "conftest.", or (3) at the end.
6550    # Note that $ac_compile itself does not contain backslashes and begins
6551    # with a dollar sign (not a hyphen), so the echo should work correctly.
6552    lt_compile=`echo "$ac_compile" | $SED \
6553    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6554    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6555    -e 's:$: $lt_compiler_flag:'`
6556    (eval echo "\"\$as_me:6556: $lt_compile\"" >&5)
6557    (eval "$lt_compile" 2>out/conftest.err)
6558    ac_status=$?
6559    cat out/conftest.err >&5
6560    echo "$as_me:6560: \$? = $ac_status" >&5
6561    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6562    then
6563      # The compiler can only warn and ignore the option if not recognized
6564      # So say no if there are warnings
6565      if test ! -s out/conftest.err; then
6566        lt_cv_prog_compiler_c_o=yes
6567      fi
6568    fi
6569    chmod u+w .
6570    $rm conftest* out/*
6571    rmdir out
6572    cd ..
6573    rmdir conftest
6574    $rm conftest*
6575
6576 fi
6577 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6578 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6579
6580
6581 hard_links="nottested"
6582 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6583   # do not overwrite the value of need_locks provided by the user
6584   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6585 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6586   hard_links=yes
6587   $rm conftest*
6588   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6589   touch conftest.a
6590   ln conftest.a conftest.b 2>&5 || hard_links=no
6591   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6592   echo "$as_me:$LINENO: result: $hard_links" >&5
6593 echo "${ECHO_T}$hard_links" >&6
6594   if test "$hard_links" = no; then
6595     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6596 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6597     need_locks=warn
6598   fi
6599 else
6600   need_locks=no
6601 fi
6602
6603 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6604 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6605
6606   runpath_var=
6607   allow_undefined_flag=
6608   enable_shared_with_static_runtimes=no
6609   archive_cmds=
6610   archive_expsym_cmds=
6611   old_archive_From_new_cmds=
6612   old_archive_from_expsyms_cmds=
6613   export_dynamic_flag_spec=
6614   whole_archive_flag_spec=
6615   thread_safe_flag_spec=
6616   hardcode_libdir_flag_spec=
6617   hardcode_libdir_flag_spec_ld=
6618   hardcode_libdir_separator=
6619   hardcode_direct=no
6620   hardcode_minus_L=no
6621   hardcode_shlibpath_var=unsupported
6622   link_all_deplibs=unknown
6623   hardcode_automatic=no
6624   module_cmds=
6625   module_expsym_cmds=
6626   always_export_symbols=no
6627   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6628   # include_expsyms should be a list of space-separated symbols to be *always*
6629   # included in the symbol list
6630   include_expsyms=
6631   # exclude_expsyms can be an extended regexp of symbols to exclude
6632   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6633   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6634   # as well as any symbol that contains `d'.
6635   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6636   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6637   # platforms (ab)use it in PIC code, but their linkers get confused if
6638   # the symbol is explicitly referenced.  Since portable code cannot
6639   # rely on this symbol name, it's probably fine to never include it in
6640   # preloaded symbol tables.
6641   extract_expsyms_cmds=
6642
6643   case $host_os in
6644   cygwin* | mingw* | pw32*)
6645     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6646     # When not using gcc, we currently assume that we are using
6647     # Microsoft Visual C++.
6648     if test "$GCC" != yes; then
6649       with_gnu_ld=no
6650     fi
6651     ;;
6652   openbsd*)
6653     with_gnu_ld=no
6654     ;;
6655   esac
6656
6657   ld_shlibs=yes
6658   if test "$with_gnu_ld" = yes; then
6659     # If archive_cmds runs LD, not CC, wlarc should be empty
6660     wlarc='${wl}'
6661
6662     # See if GNU ld supports shared libraries.
6663     case $host_os in
6664     aix3* | aix4* | aix5*)
6665       # On AIX/PPC, the GNU linker is very broken
6666       if test "$host_cpu" != ia64; then
6667         ld_shlibs=no
6668         cat <<EOF 1>&2
6669
6670 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6671 *** to be unable to reliably create shared libraries on AIX.
6672 *** Therefore, libtool is disabling shared libraries support.  If you
6673 *** really care for shared libraries, you may want to modify your PATH
6674 *** so that a non-GNU linker is found, and then restart.
6675
6676 EOF
6677       fi
6678       ;;
6679
6680     amigaos*)
6681       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)'
6682       hardcode_libdir_flag_spec='-L$libdir'
6683       hardcode_minus_L=yes
6684
6685       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6686       # that the semantics of dynamic libraries on AmigaOS, at least up
6687       # to version 4, is to share data among multiple programs linked
6688       # with the same dynamic library.  Since this doesn't match the
6689       # behavior of shared libraries on other platforms, we can't use
6690       # them.
6691       ld_shlibs=no
6692       ;;
6693
6694     beos*)
6695       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6696         allow_undefined_flag=unsupported
6697         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6698         # support --undefined.  This deserves some investigation.  FIXME
6699         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6700       else
6701         ld_shlibs=no
6702       fi
6703       ;;
6704
6705     cygwin* | mingw* | pw32*)
6706       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6707       # as there is no search path for DLLs.
6708       hardcode_libdir_flag_spec='-L$libdir'
6709       allow_undefined_flag=unsupported
6710       always_export_symbols=no
6711       enable_shared_with_static_runtimes=yes
6712       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6713
6714       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6715         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6716         # If the export-symbols file already is a .def file (1st line
6717         # is EXPORTS), use it as is; otherwise, prepend...
6718         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6719           cp $export_symbols $output_objdir/$soname.def;
6720         else
6721           echo EXPORTS > $output_objdir/$soname.def;
6722           cat $export_symbols >> $output_objdir/$soname.def;
6723         fi~
6724         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6725       else
6726         ld_shlibs=no
6727       fi
6728       ;;
6729
6730     netbsd*)
6731       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6732         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6733         wlarc=
6734       else
6735         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6736         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6737       fi
6738       ;;
6739
6740     solaris* | sysv5*)
6741       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6742         ld_shlibs=no
6743         cat <<EOF 1>&2
6744
6745 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6746 *** create shared libraries on Solaris systems.  Therefore, libtool
6747 *** is disabling shared libraries support.  We urge you to upgrade GNU
6748 *** binutils to release 2.9.1 or newer.  Another option is to modify
6749 *** your PATH or compiler configuration so that the native linker is
6750 *** used, and then restart.
6751
6752 EOF
6753       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6754         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6755         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6756       else
6757         ld_shlibs=no
6758       fi
6759       ;;
6760
6761     sunos4*)
6762       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6763       wlarc=
6764       hardcode_direct=yes
6765       hardcode_shlibpath_var=no
6766       ;;
6767
6768     *)
6769       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6770         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6771         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6772       else
6773         ld_shlibs=no
6774       fi
6775       ;;
6776     esac
6777
6778     if test "$ld_shlibs" = yes; then
6779       runpath_var=LD_RUN_PATH
6780       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6781       export_dynamic_flag_spec='${wl}--export-dynamic'
6782       # ancient GNU ld didn't support --whole-archive et. al.
6783       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6784         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6785       else
6786         whole_archive_flag_spec=
6787       fi
6788     fi
6789   else
6790     # PORTME fill in a description of your system's linker (not GNU ld)
6791     case $host_os in
6792     aix3*)
6793       allow_undefined_flag=unsupported
6794       always_export_symbols=yes
6795       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'
6796       # Note: this linker hardcodes the directories in LIBPATH if there
6797       # are no directories specified by -L.
6798       hardcode_minus_L=yes
6799       if test "$GCC" = yes && test -z "$link_static_flag"; then
6800         # Neither direct hardcoding nor static linking is supported with a
6801         # broken collect2.
6802         hardcode_direct=unsupported
6803       fi
6804       ;;
6805
6806     aix4* | aix5*)
6807       if test "$host_cpu" = ia64; then
6808         # On IA64, the linker does run time linking by default, so we don't
6809         # have to do anything special.
6810         aix_use_runtimelinking=no
6811         exp_sym_flag='-Bexport'
6812         no_entry_flag=""
6813       else
6814         # If we're using GNU nm, then we don't want the "-C" option.
6815         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6816         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6817           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'
6818         else
6819           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'
6820         fi
6821         aix_use_runtimelinking=no
6822
6823         # Test if we are trying to use run time linking or normal
6824         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6825         # need to do runtime linking.
6826         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6827           for ld_flag in $LDFLAGS; do
6828           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6829             aix_use_runtimelinking=yes
6830             break
6831           fi
6832           done
6833         esac
6834
6835         exp_sym_flag='-bexport'
6836         no_entry_flag='-bnoentry'
6837       fi
6838
6839       # When large executables or shared objects are built, AIX ld can
6840       # have problems creating the table of contents.  If linking a library
6841       # or program results in "error TOC overflow" add -mminimal-toc to
6842       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6843       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6844
6845       archive_cmds=''
6846       hardcode_direct=yes
6847       hardcode_libdir_separator=':'
6848       link_all_deplibs=yes
6849
6850       if test "$GCC" = yes; then
6851         case $host_os in aix4.012|aix4.012.*)
6852         # We only want to do this on AIX 4.2 and lower, the check
6853         # below for broken collect2 doesn't work under 4.3+
6854           collect2name=`${CC} -print-prog-name=collect2`
6855           if test -f "$collect2name" && \
6856            strings "$collect2name" | grep resolve_lib_name >/dev/null
6857           then
6858           # We have reworked collect2
6859           hardcode_direct=yes
6860           else
6861           # We have old collect2
6862           hardcode_direct=unsupported
6863           # It fails to find uninstalled libraries when the uninstalled
6864           # path is not listed in the libpath.  Setting hardcode_minus_L
6865           # to unsupported forces relinking
6866           hardcode_minus_L=yes
6867           hardcode_libdir_flag_spec='-L$libdir'
6868           hardcode_libdir_separator=
6869           fi
6870         esac
6871         shared_flag='-shared'
6872       else
6873         # not using gcc
6874         if test "$host_cpu" = ia64; then
6875         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6876         # chokes on -Wl,-G. The following line is correct:
6877           shared_flag='-G'
6878         else
6879         if test "$aix_use_runtimelinking" = yes; then
6880             shared_flag='${wl}-G'
6881           else
6882             shared_flag='${wl}-bM:SRE'
6883         fi
6884         fi
6885       fi
6886
6887       # It seems that -bexpall does not export symbols beginning with
6888       # underscore (_), so it is better to generate a list of symbols to export.
6889       always_export_symbols=yes
6890       if test "$aix_use_runtimelinking" = yes; then
6891         # Warning - without using the other runtime loading flags (-brtl),
6892         # -berok will link without error, but may produce a broken library.
6893         allow_undefined_flag='-berok'
6894        # Determine the default libpath from the value encoded in an empty executable.
6895        cat >conftest.$ac_ext <<_ACEOF
6896 #line $LINENO "configure"
6897 /* confdefs.h.  */
6898 _ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h.  */
6902
6903 int
6904 main ()
6905 {
6906
6907   ;
6908   return 0;
6909 }
6910 _ACEOF
6911 rm -f conftest.$ac_objext conftest$ac_exeext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6913   (eval $ac_link) 2>&5
6914   ac_status=$?
6915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916   (exit $ac_status); } &&
6917          { ac_try='test -s conftest$ac_exeext'
6918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919   (eval $ac_try) 2>&5
6920   ac_status=$?
6921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); }; }; then
6923
6924 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6925 }'`
6926 # Check for a 64-bit object if we didn't find anything.
6927 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; }
6928 }'`; fi
6929 else
6930   echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6932
6933 fi
6934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6935 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6936
6937        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6938         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"
6939        else
6940         if test "$host_cpu" = ia64; then
6941           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6942           allow_undefined_flag="-z nodefs"
6943           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"
6944         else
6945          # Determine the default libpath from the value encoded in an empty executable.
6946          cat >conftest.$ac_ext <<_ACEOF
6947 #line $LINENO "configure"
6948 /* confdefs.h.  */
6949 _ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h.  */
6953
6954 int
6955 main ()
6956 {
6957
6958   ;
6959   return 0;
6960 }
6961 _ACEOF
6962 rm -f conftest.$ac_objext conftest$ac_exeext
6963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6964   (eval $ac_link) 2>&5
6965   ac_status=$?
6966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967   (exit $ac_status); } &&
6968          { ac_try='test -s conftest$ac_exeext'
6969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970   (eval $ac_try) 2>&5
6971   ac_status=$?
6972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973   (exit $ac_status); }; }; then
6974
6975 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6976 }'`
6977 # Check for a 64-bit object if we didn't find anything.
6978 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; }
6979 }'`; fi
6980 else
6981   echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6983
6984 fi
6985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6986 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6987
6988          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6989           # Warning - without using the other run time loading flags,
6990           # -berok will link without error, but may produce a broken library.
6991           no_undefined_flag=' ${wl}-bernotok'
6992           allow_undefined_flag=' ${wl}-berok'
6993           # -bexpall does not export symbols beginning with underscore (_)
6994           always_export_symbols=yes
6995           # Exported symbols can be pulled into shared objects from archives
6996           whole_archive_flag_spec=' '
6997           archive_cmds_need_lc=yes
6998           # This is similar to how AIX traditionally builds it's shared libraries.
6999           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'
7000         fi
7001       fi
7002       ;;
7003
7004     amigaos*)
7005       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)'
7006       hardcode_libdir_flag_spec='-L$libdir'
7007       hardcode_minus_L=yes
7008       # see comment about different semantics on the GNU ld section
7009       ld_shlibs=no
7010       ;;
7011
7012     bsdi4*)
7013       export_dynamic_flag_spec=-rdynamic
7014       ;;
7015
7016     cygwin* | mingw* | pw32*)
7017       # When not using gcc, we currently assume that we are using
7018       # Microsoft Visual C++.
7019       # hardcode_libdir_flag_spec is actually meaningless, as there is
7020       # no search path for DLLs.
7021       hardcode_libdir_flag_spec=' '
7022       allow_undefined_flag=unsupported
7023       # Tell ltmain to make .lib files, not .a files.
7024       libext=lib
7025       # Tell ltmain to make .dll files, not .so files.
7026       shrext=".dll"
7027       # FIXME: Setting linknames here is a bad hack.
7028       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7029       # The linker will automatically build a .lib file if we build a DLL.
7030       old_archive_From_new_cmds='true'
7031       # FIXME: Should let the user specify the lib program.
7032       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7033       fix_srcfile_path='`cygpath -w "$srcfile"`'
7034       enable_shared_with_static_runtimes=yes
7035       ;;
7036
7037     darwin* | rhapsody*)
7038     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7039       archive_cmds_need_lc=no
7040       case "$host_os" in
7041       rhapsody* | darwin1.[012])
7042         allow_undefined_flag='-undefined suppress'
7043         ;;
7044       *) # Darwin 1.3 on
7045         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7046         ;;
7047       esac
7048       # FIXME: Relying on posixy $() will cause problems for
7049       #        cross-compilation, but unfortunately the echo tests do not
7050       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7051       #        `"' quotes if we put them in here... so don't!
7052         lt_int_apple_cc_single_mod=no
7053         output_verbose_link_cmd='echo'
7054         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7055           lt_int_apple_cc_single_mod=yes
7056         fi
7057         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7058           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7059         else
7060         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'
7061       fi
7062       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7063       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7064         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7065           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}'
7066         else
7067           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}'
7068         fi
7069           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}'
7070       hardcode_direct=no
7071       hardcode_automatic=yes
7072       hardcode_shlibpath_var=unsupported
7073       whole_archive_flag_spec='-all_load $convenience'
7074       link_all_deplibs=yes
7075     fi
7076       ;;
7077
7078     dgux*)
7079       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7080       hardcode_libdir_flag_spec='-L$libdir'
7081       hardcode_shlibpath_var=no
7082       ;;
7083
7084     freebsd1*)
7085       ld_shlibs=no
7086       ;;
7087
7088     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7089     # support.  Future versions do this automatically, but an explicit c++rt0.o
7090     # does not break anything, and helps significantly (at the cost of a little
7091     # extra space).
7092     freebsd2.2*)
7093       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7094       hardcode_libdir_flag_spec='-R$libdir'
7095       hardcode_direct=yes
7096       hardcode_shlibpath_var=no
7097       ;;
7098
7099     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7100     freebsd2*)
7101       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7102       hardcode_direct=yes
7103       hardcode_minus_L=yes
7104       hardcode_shlibpath_var=no
7105       ;;
7106
7107     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7108     freebsd*)
7109       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7110       hardcode_libdir_flag_spec='-R$libdir'
7111       hardcode_direct=yes
7112       hardcode_shlibpath_var=no
7113       ;;
7114
7115     hpux9*)
7116       if test "$GCC" = yes; then
7117         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'
7118       else
7119         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'
7120       fi
7121       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7122       hardcode_libdir_separator=:
7123       hardcode_direct=yes
7124
7125       # hardcode_minus_L: Not really in the search PATH,
7126       # but as the default location of the library.
7127       hardcode_minus_L=yes
7128       export_dynamic_flag_spec='${wl}-E'
7129       ;;
7130
7131     hpux10* | hpux11*)
7132       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7133         case "$host_cpu" in
7134         hppa*64*|ia64*)
7135           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7136           ;;
7137         *)
7138           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7139           ;;
7140         esac
7141       else
7142         case "$host_cpu" in
7143         hppa*64*|ia64*)
7144           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7145           ;;
7146         *)
7147           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7148           ;;
7149         esac
7150       fi
7151       if test "$with_gnu_ld" = no; then
7152         case "$host_cpu" in
7153         hppa*64*)
7154           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7155           hardcode_libdir_flag_spec_ld='+b $libdir'
7156           hardcode_libdir_separator=:
7157           hardcode_direct=no
7158           hardcode_shlibpath_var=no
7159           ;;
7160         ia64*)
7161           hardcode_libdir_flag_spec='-L$libdir'
7162           hardcode_direct=no
7163           hardcode_shlibpath_var=no
7164
7165           # hardcode_minus_L: Not really in the search PATH,
7166           # but as the default location of the library.
7167           hardcode_minus_L=yes
7168           ;;
7169         *)
7170           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7171           hardcode_libdir_separator=:
7172           hardcode_direct=yes
7173           export_dynamic_flag_spec='${wl}-E'
7174
7175           # hardcode_minus_L: Not really in the search PATH,
7176           # but as the default location of the library.
7177           hardcode_minus_L=yes
7178           ;;
7179         esac
7180       fi
7181       ;;
7182
7183     irix5* | irix6* | nonstopux*)
7184       if test "$GCC" = yes; then
7185         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'
7186       else
7187         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'
7188         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7189       fi
7190       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7191       hardcode_libdir_separator=:
7192       link_all_deplibs=yes
7193       ;;
7194
7195     netbsd*)
7196       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7197         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7198       else
7199         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7200       fi
7201       hardcode_libdir_flag_spec='-R$libdir'
7202       hardcode_direct=yes
7203       hardcode_shlibpath_var=no
7204       ;;
7205
7206     newsos6)
7207       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7208       hardcode_direct=yes
7209       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7210       hardcode_libdir_separator=:
7211       hardcode_shlibpath_var=no
7212       ;;
7213
7214     openbsd*)
7215       hardcode_direct=yes
7216       hardcode_shlibpath_var=no
7217       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7218         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7219         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7220         export_dynamic_flag_spec='${wl}-E'
7221       else
7222        case $host_os in
7223          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7224            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7225            hardcode_libdir_flag_spec='-R$libdir'
7226            ;;
7227          *)
7228            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7229            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7230            ;;
7231        esac
7232       fi
7233       ;;
7234
7235     os2*)
7236       hardcode_libdir_flag_spec='-L$libdir'
7237       hardcode_minus_L=yes
7238       allow_undefined_flag=unsupported
7239       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'
7240       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7241       ;;
7242
7243     osf3*)
7244       if test "$GCC" = yes; then
7245         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7246         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'
7247       else
7248         allow_undefined_flag=' -expect_unresolved \*'
7249         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'
7250       fi
7251       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7252       hardcode_libdir_separator=:
7253       ;;
7254
7255     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7256       if test "$GCC" = yes; then
7257         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7258         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'
7259         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7260       else
7261         allow_undefined_flag=' -expect_unresolved \*'
7262         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'
7263         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7264         $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'
7265
7266         # Both c and cxx compiler support -rpath directly
7267         hardcode_libdir_flag_spec='-rpath $libdir'
7268       fi
7269       hardcode_libdir_separator=:
7270       ;;
7271
7272     sco3.2v5*)
7273       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7274       hardcode_shlibpath_var=no
7275       export_dynamic_flag_spec='${wl}-Bexport'
7276       runpath_var=LD_RUN_PATH
7277       hardcode_runpath_var=yes
7278       ;;
7279
7280     solaris*)
7281       no_undefined_flag=' -z text'
7282       if test "$GCC" = yes; then
7283         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7284         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7285           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7286       else
7287         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7288         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7289         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7290       fi
7291       hardcode_libdir_flag_spec='-R$libdir'
7292       hardcode_shlibpath_var=no
7293       case $host_os in
7294       solaris2.[0-5] | solaris2.[0-5].*) ;;
7295       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7296         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7297       esac
7298       link_all_deplibs=yes
7299       ;;
7300
7301     sunos4*)
7302       if test "x$host_vendor" = xsequent; then
7303         # Use $CC to link under sequent, because it throws in some extra .o
7304         # files that make .init and .fini sections work.
7305         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7306       else
7307         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7308       fi
7309       hardcode_libdir_flag_spec='-L$libdir'
7310       hardcode_direct=yes
7311       hardcode_minus_L=yes
7312       hardcode_shlibpath_var=no
7313       ;;
7314
7315     sysv4)
7316       case $host_vendor in
7317         sni)
7318           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7319           hardcode_direct=yes # is this really true???
7320         ;;
7321         siemens)
7322           ## LD is ld it makes a PLAMLIB
7323           ## CC just makes a GrossModule.
7324           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7325           reload_cmds='$CC -r -o $output$reload_objs'
7326           hardcode_direct=no
7327         ;;
7328         motorola)
7329           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7330           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7331         ;;
7332       esac
7333       runpath_var='LD_RUN_PATH'
7334       hardcode_shlibpath_var=no
7335       ;;
7336
7337     sysv4.3*)
7338       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7339       hardcode_shlibpath_var=no
7340       export_dynamic_flag_spec='-Bexport'
7341       ;;
7342
7343     sysv4*MP*)
7344       if test -d /usr/nec; then
7345         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7346         hardcode_shlibpath_var=no
7347         runpath_var=LD_RUN_PATH
7348         hardcode_runpath_var=yes
7349         ld_shlibs=yes
7350       fi
7351       ;;
7352
7353     sysv4.2uw2*)
7354       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7355       hardcode_direct=yes
7356       hardcode_minus_L=no
7357       hardcode_shlibpath_var=no
7358       hardcode_runpath_var=yes
7359       runpath_var=LD_RUN_PATH
7360       ;;
7361
7362    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7363       no_undefined_flag='${wl}-z ${wl}text'
7364       if test "$GCC" = yes; then
7365         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7366       else
7367         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7368       fi
7369       runpath_var='LD_RUN_PATH'
7370       hardcode_shlibpath_var=no
7371       ;;
7372
7373     sysv5*)
7374       no_undefined_flag=' -z text'
7375       # $CC -shared without GNU ld will not create a library from C++
7376       # object files and a static libstdc++, better avoid it by now
7377       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7378       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7379                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7380       hardcode_libdir_flag_spec=
7381       hardcode_shlibpath_var=no
7382       runpath_var='LD_RUN_PATH'
7383       ;;
7384
7385     uts4*)
7386       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7387       hardcode_libdir_flag_spec='-L$libdir'
7388       hardcode_shlibpath_var=no
7389       ;;
7390
7391     *)
7392       ld_shlibs=no
7393       ;;
7394     esac
7395   fi
7396
7397 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7398 echo "${ECHO_T}$ld_shlibs" >&6
7399 test "$ld_shlibs" = no && can_build_shared=no
7400
7401 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7402 if test "$GCC" = yes; then
7403   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7404 fi
7405
7406 #
7407 # Do we need to explicitly link libc?
7408 #
7409 case "x$archive_cmds_need_lc" in
7410 x|xyes)
7411   # Assume -lc should be added
7412   archive_cmds_need_lc=yes
7413
7414   if test "$enable_shared" = yes && test "$GCC" = yes; then
7415     case $archive_cmds in
7416     *'~'*)
7417       # FIXME: we may have to deal with multi-command sequences.
7418       ;;
7419     '$CC '*)
7420       # Test whether the compiler implicitly links with -lc since on some
7421       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7422       # to ld, don't add -lc before -lgcc.
7423       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7424 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7425       $rm conftest*
7426       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7427
7428       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7429   (eval $ac_compile) 2>&5
7430   ac_status=$?
7431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432   (exit $ac_status); } 2>conftest.err; then
7433         soname=conftest
7434         lib=conftest
7435         libobjs=conftest.$ac_objext
7436         deplibs=
7437         wl=$lt_prog_compiler_wl
7438         compiler_flags=-v
7439         linker_flags=-v
7440         verstring=
7441         output_objdir=.
7442         libname=conftest
7443         lt_save_allow_undefined_flag=$allow_undefined_flag
7444         allow_undefined_flag=
7445         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7446   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7447   ac_status=$?
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); }
7450         then
7451           archive_cmds_need_lc=no
7452         else
7453           archive_cmds_need_lc=yes
7454         fi
7455         allow_undefined_flag=$lt_save_allow_undefined_flag
7456       else
7457         cat conftest.err 1>&5
7458       fi
7459       $rm conftest*
7460       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7461 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7462       ;;
7463     esac
7464   fi
7465   ;;
7466 esac
7467
7468 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7469 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7470 hardcode_action=
7471 if test -n "$hardcode_libdir_flag_spec" || \
7472    test -n "$runpath_var " || \
7473    test "X$hardcode_automatic"="Xyes" ; then
7474
7475   # We can hardcode non-existant directories.
7476   if test "$hardcode_direct" != no &&
7477      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7478      # have to relink, otherwise we might link with an installed library
7479      # when we should be linking with a yet-to-be-installed one
7480      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7481      test "$hardcode_minus_L" != no; then
7482     # Linking always hardcodes the temporary library directory.
7483     hardcode_action=relink
7484   else
7485     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7486     hardcode_action=immediate
7487   fi
7488 else
7489   # We cannot hardcode anything, or else we can only hardcode existing
7490   # directories.
7491   hardcode_action=unsupported
7492 fi
7493 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7494 echo "${ECHO_T}$hardcode_action" >&6
7495
7496 if test "$hardcode_action" = relink; then
7497   # Fast installation is not supported
7498   enable_fast_install=no
7499 elif test "$shlibpath_overrides_runpath" = yes ||
7500      test "$enable_shared" = no; then
7501   # Fast installation is not necessary
7502   enable_fast_install=needless
7503 fi
7504
7505 striplib=
7506 old_striplib=
7507 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7508 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7509 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7510   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7511   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7512   echo "$as_me:$LINENO: result: yes" >&5
7513 echo "${ECHO_T}yes" >&6
7514 else
7515 # FIXME - insert some real tests, host_os isn't really good enough
7516   case $host_os in
7517    darwin*)
7518        if test -n "$STRIP" ; then
7519          striplib="$STRIP -x"
7520          echo "$as_me:$LINENO: result: yes" >&5
7521 echo "${ECHO_T}yes" >&6
7522        else
7523   echo "$as_me:$LINENO: result: no" >&5
7524 echo "${ECHO_T}no" >&6
7525 fi
7526        ;;
7527    *)
7528   echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6
7530     ;;
7531   esac
7532 fi
7533
7534 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7535 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7536 library_names_spec=
7537 libname_spec='lib$name'
7538 soname_spec=
7539 shrext=".so"
7540 postinstall_cmds=
7541 postuninstall_cmds=
7542 finish_cmds=
7543 finish_eval=
7544 shlibpath_var=
7545 shlibpath_overrides_runpath=unknown
7546 version_type=none
7547 dynamic_linker="$host_os ld.so"
7548 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7549 if test "$GCC" = yes; then
7550   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7551   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7552     # if the path contains ";" then we assume it to be the separator
7553     # otherwise default to the standard path separator (i.e. ":") - it is
7554     # assumed that no part of a normal pathname contains ";" but that should
7555     # okay in the real world where ";" in dirpaths is itself problematic.
7556     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7557   else
7558     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7559   fi
7560 else
7561   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7562 fi
7563 need_lib_prefix=unknown
7564 hardcode_into_libs=no
7565
7566 # when you set need_version to no, make sure it does not cause -set_version
7567 # flags to be left without arguments
7568 need_version=unknown
7569
7570 case $host_os in
7571 aix3*)
7572   version_type=linux
7573   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7574   shlibpath_var=LIBPATH
7575
7576   # AIX 3 has no versioning support, so we append a major version to the name.
7577   soname_spec='${libname}${release}${shared_ext}$major'
7578   ;;
7579
7580 aix4* | aix5*)
7581   version_type=linux
7582   need_lib_prefix=no
7583   need_version=no
7584   hardcode_into_libs=yes
7585   if test "$host_cpu" = ia64; then
7586     # AIX 5 supports IA64
7587     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7588     shlibpath_var=LD_LIBRARY_PATH
7589   else
7590     # With GCC up to 2.95.x, collect2 would create an import file
7591     # for dependence libraries.  The import file would start with
7592     # the line `#! .'.  This would cause the generated library to
7593     # depend on `.', always an invalid library.  This was fixed in
7594     # development snapshots of GCC prior to 3.0.
7595     case $host_os in
7596       aix4 | aix4.[01] | aix4.[01].*)
7597       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7598            echo ' yes '
7599            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7600         :
7601       else
7602         can_build_shared=no
7603       fi
7604       ;;
7605     esac
7606     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7607     # soname into executable. Probably we can add versioning support to
7608     # collect2, so additional links can be useful in future.
7609     if test "$aix_use_runtimelinking" = yes; then
7610       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7611       # instead of lib<name>.a to let people know that these are not
7612       # typical AIX shared libraries.
7613       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7614     else
7615       # We preserve .a as extension for shared libraries through AIX4.2
7616       # and later when we are not doing run time linking.
7617       library_names_spec='${libname}${release}.a $libname.a'
7618       soname_spec='${libname}${release}${shared_ext}$major'
7619     fi
7620     shlibpath_var=LIBPATH
7621   fi
7622   ;;
7623
7624 amigaos*)
7625   library_names_spec='$libname.ixlibrary $libname.a'
7626   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7627   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'
7628   ;;
7629
7630 beos*)
7631   library_names_spec='${libname}${shared_ext}'
7632   dynamic_linker="$host_os ld.so"
7633   shlibpath_var=LIBRARY_PATH
7634   ;;
7635
7636 bsdi4*)
7637   version_type=linux
7638   need_version=no
7639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7640   soname_spec='${libname}${release}${shared_ext}$major'
7641   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7642   shlibpath_var=LD_LIBRARY_PATH
7643   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7644   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7645   # the default ld.so.conf also contains /usr/contrib/lib and
7646   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7647   # libtool to hard-code these into programs
7648   ;;
7649
7650 cygwin* | mingw* | pw32*)
7651   version_type=windows
7652   shrext=".dll"
7653   need_version=no
7654   need_lib_prefix=no
7655
7656   case $GCC,$host_os in
7657   yes,cygwin* | yes,mingw* | yes,pw32*)
7658     library_names_spec='$libname.dll.a'
7659     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7660     postinstall_cmds='base_file=`basename \${file}`~
7661       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7662       dldir=$destdir/`dirname \$dlpath`~
7663       test -d \$dldir || mkdir -p \$dldir~
7664       $install_prog $dir/$dlname \$dldir/$dlname'
7665     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7666       dlpath=$dir/\$dldll~
7667        $rm \$dlpath'
7668     shlibpath_overrides_runpath=yes
7669
7670     case $host_os in
7671     cygwin*)
7672       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7673       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7674       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7675       ;;
7676     mingw*)
7677       # MinGW DLLs use traditional 'lib' prefix
7678       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7679       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7680       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7681         # It is most probably a Windows format PATH printed by
7682         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7683         # path with ; separators, and with drive letters. We can handle the
7684         # drive letters (cygwin fileutils understands them), so leave them,
7685         # especially as we might pass files found there to a mingw objdump,
7686         # which wouldn't understand a cygwinified path. Ahh.
7687         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7688       else
7689         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7690       fi
7691       ;;
7692     pw32*)
7693       # pw32 DLLs use 'pw' prefix rather than 'lib'
7694       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7695       ;;
7696     esac
7697     ;;
7698
7699   *)
7700     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7701     ;;
7702   esac
7703   dynamic_linker='Win32 ld.exe'
7704   # FIXME: first we should search . and the directory the executable is in
7705   shlibpath_var=PATH
7706   ;;
7707
7708 darwin* | rhapsody*)
7709   dynamic_linker="$host_os dyld"
7710   version_type=darwin
7711   need_lib_prefix=no
7712   need_version=no
7713   # FIXME: Relying on posixy $() will cause problems for
7714   #        cross-compilation, but unfortunately the echo tests do not
7715   #        yet detect zsh echo's removal of \ escapes.
7716   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7717   soname_spec='${libname}${release}${major}$shared_ext'
7718   shlibpath_overrides_runpath=yes
7719   shlibpath_var=DYLD_LIBRARY_PATH
7720   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7721   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7722   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7723   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"`
7724   fi
7725   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7726   ;;
7727
7728 dgux*)
7729   version_type=linux
7730   need_lib_prefix=no
7731   need_version=no
7732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7733   soname_spec='${libname}${release}${shared_ext}$major'
7734   shlibpath_var=LD_LIBRARY_PATH
7735   ;;
7736
7737 freebsd1*)
7738   dynamic_linker=no
7739   ;;
7740
7741 freebsd*)
7742   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7743   version_type=freebsd-$objformat
7744   case $version_type in
7745     freebsd-elf*)
7746       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7747       need_version=no
7748       need_lib_prefix=no
7749       ;;
7750     freebsd-*)
7751       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7752       need_version=yes
7753       ;;
7754   esac
7755   shlibpath_var=LD_LIBRARY_PATH
7756   case $host_os in
7757   freebsd2*)
7758     shlibpath_overrides_runpath=yes
7759     ;;
7760   freebsd3.01* | freebsdelf3.01*)
7761     shlibpath_overrides_runpath=yes
7762     hardcode_into_libs=yes
7763     ;;
7764   *) # from 3.2 on
7765     shlibpath_overrides_runpath=no
7766     hardcode_into_libs=yes
7767     ;;
7768   esac
7769   ;;
7770
7771 gnu*)
7772   version_type=linux
7773   need_lib_prefix=no
7774   need_version=no
7775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7776   soname_spec='${libname}${release}${shared_ext}$major'
7777   shlibpath_var=LD_LIBRARY_PATH
7778   hardcode_into_libs=yes
7779   ;;
7780
7781 hpux9* | hpux10* | hpux11*)
7782   # Give a soname corresponding to the major version so that dld.sl refuses to
7783   # link against other versions.
7784   version_type=sunos
7785   need_lib_prefix=no
7786   need_version=no
7787   case "$host_cpu" in
7788   ia64*)
7789     shrext='.so'
7790     hardcode_into_libs=yes
7791     dynamic_linker="$host_os dld.so"
7792     shlibpath_var=LD_LIBRARY_PATH
7793     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7794     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7795     soname_spec='${libname}${release}${shared_ext}$major'
7796     if test "X$HPUX_IA64_MODE" = X32; then
7797       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7798     else
7799       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7800     fi
7801     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7802     ;;
7803    hppa*64*)
7804      shrext='.sl'
7805      hardcode_into_libs=yes
7806      dynamic_linker="$host_os dld.sl"
7807      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7808      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7809      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7810      soname_spec='${libname}${release}${shared_ext}$major'
7811      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7812      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7813      ;;
7814    *)
7815     shrext='.sl'
7816     dynamic_linker="$host_os dld.sl"
7817     shlibpath_var=SHLIB_PATH
7818     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7819     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7820     soname_spec='${libname}${release}${shared_ext}$major'
7821     ;;
7822   esac
7823   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7824   postinstall_cmds='chmod 555 $lib'
7825   ;;
7826
7827 irix5* | irix6* | nonstopux*)
7828   case $host_os in
7829     nonstopux*) version_type=nonstopux ;;
7830     *)
7831         if test "$lt_cv_prog_gnu_ld" = yes; then
7832                 version_type=linux
7833         else
7834                 version_type=irix
7835         fi ;;
7836   esac
7837   need_lib_prefix=no
7838   need_version=no
7839   soname_spec='${libname}${release}${shared_ext}$major'
7840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7841   case $host_os in
7842   irix5* | nonstopux*)
7843     libsuff= shlibsuff=
7844     ;;
7845   *)
7846     case $LD in # libtool.m4 will add one of these switches to LD
7847     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7848       libsuff= shlibsuff= libmagic=32-bit;;
7849     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7850       libsuff=32 shlibsuff=N32 libmagic=N32;;
7851     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7852       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7853     *) libsuff= shlibsuff= libmagic=never-match;;
7854     esac
7855     ;;
7856   esac
7857   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7858   shlibpath_overrides_runpath=no
7859   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7860   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7861   hardcode_into_libs=yes
7862   ;;
7863
7864 # No shared lib support for Linux oldld, aout, or coff.
7865 linux*oldld* | linux*aout* | linux*coff*)
7866   dynamic_linker=no
7867   ;;
7868
7869 # This must be Linux ELF.
7870 linux*)
7871   version_type=linux
7872   need_lib_prefix=no
7873   need_version=no
7874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7875   soname_spec='${libname}${release}${shared_ext}$major'
7876   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7877   shlibpath_var=LD_LIBRARY_PATH
7878   shlibpath_overrides_runpath=no
7879   # This implies no fast_install, which is unacceptable.
7880   # Some rework will be needed to allow for fast_install
7881   # before this can be enabled.
7882   hardcode_into_libs=yes
7883
7884   # We used to test for /lib/ld.so.1 and disable shared libraries on
7885   # powerpc, because MkLinux only supported shared libraries with the
7886   # GNU dynamic linker.  Since this was broken with cross compilers,
7887   # most powerpc-linux boxes support dynamic linking these days and
7888   # people can always --disable-shared, the test was removed, and we
7889   # assume the GNU/Linux dynamic linker is in use.
7890   dynamic_linker='GNU/Linux ld.so'
7891   ;;
7892
7893 netbsd*)
7894   version_type=sunos
7895   need_lib_prefix=no
7896   need_version=no
7897   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7898     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7899     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7900     dynamic_linker='NetBSD (a.out) ld.so'
7901   else
7902     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7903     soname_spec='${libname}${release}${shared_ext}$major'
7904     dynamic_linker='NetBSD ld.elf_so'
7905   fi
7906   shlibpath_var=LD_LIBRARY_PATH
7907   shlibpath_overrides_runpath=yes
7908   hardcode_into_libs=yes
7909   ;;
7910
7911 newsos6)
7912   version_type=linux
7913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7914   shlibpath_var=LD_LIBRARY_PATH
7915   shlibpath_overrides_runpath=yes
7916   ;;
7917
7918 nto-qnx)
7919   version_type=linux
7920   need_lib_prefix=no
7921   need_version=no
7922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7923   soname_spec='${libname}${release}${shared_ext}$major'
7924   shlibpath_var=LD_LIBRARY_PATH
7925   shlibpath_overrides_runpath=yes
7926   ;;
7927
7928 openbsd*)
7929   version_type=sunos
7930   need_lib_prefix=no
7931   need_version=no
7932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7933   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7934   shlibpath_var=LD_LIBRARY_PATH
7935   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7936     case $host_os in
7937       openbsd2.[89] | openbsd2.[89].*)
7938         shlibpath_overrides_runpath=no
7939         ;;
7940       *)
7941         shlibpath_overrides_runpath=yes
7942         ;;
7943       esac
7944   else
7945     shlibpath_overrides_runpath=yes
7946   fi
7947   ;;
7948
7949 os2*)
7950   libname_spec='$name'
7951   shrext=".dll"
7952   need_lib_prefix=no
7953   library_names_spec='$libname${shared_ext} $libname.a'
7954   dynamic_linker='OS/2 ld.exe'
7955   shlibpath_var=LIBPATH
7956   ;;
7957
7958 osf3* | osf4* | osf5*)
7959   version_type=osf
7960   need_lib_prefix=no
7961   need_version=no
7962   soname_spec='${libname}${release}${shared_ext}$major'
7963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7964   shlibpath_var=LD_LIBRARY_PATH
7965   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7966   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7967   ;;
7968
7969 sco3.2v5*)
7970   version_type=osf
7971   soname_spec='${libname}${release}${shared_ext}$major'
7972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7973   shlibpath_var=LD_LIBRARY_PATH
7974   ;;
7975
7976 solaris*)
7977   version_type=linux
7978   need_lib_prefix=no
7979   need_version=no
7980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7981   soname_spec='${libname}${release}${shared_ext}$major'
7982   shlibpath_var=LD_LIBRARY_PATH
7983   shlibpath_overrides_runpath=yes
7984   hardcode_into_libs=yes
7985   # ldd complains unless libraries are executable
7986   postinstall_cmds='chmod +x $lib'
7987   ;;
7988
7989 sunos4*)
7990   version_type=sunos
7991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7992   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7993   shlibpath_var=LD_LIBRARY_PATH
7994   shlibpath_overrides_runpath=yes
7995   if test "$with_gnu_ld" = yes; then
7996     need_lib_prefix=no
7997   fi
7998   need_version=yes
7999   ;;
8000
8001 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8002   version_type=linux
8003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8004   soname_spec='${libname}${release}${shared_ext}$major'
8005   shlibpath_var=LD_LIBRARY_PATH
8006   case $host_vendor in
8007     sni)
8008       shlibpath_overrides_runpath=no
8009       need_lib_prefix=no
8010       export_dynamic_flag_spec='${wl}-Blargedynsym'
8011       runpath_var=LD_RUN_PATH
8012       ;;
8013     siemens)
8014       need_lib_prefix=no
8015       ;;
8016     motorola)
8017       need_lib_prefix=no
8018       need_version=no
8019       shlibpath_overrides_runpath=no
8020       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8021       ;;
8022   esac
8023   ;;
8024
8025 sysv4*MP*)
8026   if test -d /usr/nec ;then
8027     version_type=linux
8028     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8029     soname_spec='$libname${shared_ext}.$major'
8030     shlibpath_var=LD_LIBRARY_PATH
8031   fi
8032   ;;
8033
8034 uts4*)
8035   version_type=linux
8036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8037   soname_spec='${libname}${release}${shared_ext}$major'
8038   shlibpath_var=LD_LIBRARY_PATH
8039   ;;
8040
8041 *)
8042   dynamic_linker=no
8043   ;;
8044 esac
8045 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8046 echo "${ECHO_T}$dynamic_linker" >&6
8047 test "$dynamic_linker" = no && can_build_shared=no
8048
8049 if test "x$enable_dlopen" != xyes; then
8050   enable_dlopen=unknown
8051   enable_dlopen_self=unknown
8052   enable_dlopen_self_static=unknown
8053 else
8054   lt_cv_dlopen=no
8055   lt_cv_dlopen_libs=
8056
8057   case $host_os in
8058   beos*)
8059     lt_cv_dlopen="load_add_on"
8060     lt_cv_dlopen_libs=
8061     lt_cv_dlopen_self=yes
8062     ;;
8063
8064   mingw* | pw32*)
8065     lt_cv_dlopen="LoadLibrary"
8066     lt_cv_dlopen_libs=
8067    ;;
8068
8069   cygwin*)
8070     lt_cv_dlopen="dlopen"
8071     lt_cv_dlopen_libs=
8072    ;;
8073
8074   darwin*)
8075   # if libdl is installed we need to link against it
8076     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8077 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8078 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8079   echo $ECHO_N "(cached) $ECHO_C" >&6
8080 else
8081   ac_check_lib_save_LIBS=$LIBS
8082 LIBS="-ldl  $LIBS"
8083 cat >conftest.$ac_ext <<_ACEOF
8084 #line $LINENO "configure"
8085 /* confdefs.h.  */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h.  */
8090
8091 /* Override any gcc2 internal prototype to avoid an error.  */
8092 #ifdef __cplusplus
8093 extern "C"
8094 #endif
8095 /* We use char because int might match the return type of a gcc2
8096    builtin and then its argument prototype would still apply.  */
8097 char dlopen ();
8098 int
8099 main ()
8100 {
8101 dlopen ();
8102   ;
8103   return 0;
8104 }
8105 _ACEOF
8106 rm -f conftest.$ac_objext conftest$ac_exeext
8107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8108   (eval $ac_link) 2>&5
8109   ac_status=$?
8110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111   (exit $ac_status); } &&
8112          { ac_try='test -s conftest$ac_exeext'
8113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114   (eval $ac_try) 2>&5
8115   ac_status=$?
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); }; }; then
8118   ac_cv_lib_dl_dlopen=yes
8119 else
8120   echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8122
8123 ac_cv_lib_dl_dlopen=no
8124 fi
8125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8126 LIBS=$ac_check_lib_save_LIBS
8127 fi
8128 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8129 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8130 if test $ac_cv_lib_dl_dlopen = yes; then
8131   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8132 else
8133
8134     lt_cv_dlopen="dyld"
8135     lt_cv_dlopen_libs=
8136     lt_cv_dlopen_self=yes
8137
8138 fi
8139
8140    ;;
8141
8142   *)
8143     echo "$as_me:$LINENO: checking for shl_load" >&5
8144 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8145 if test "${ac_cv_func_shl_load+set}" = set; then
8146   echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148   cat >conftest.$ac_ext <<_ACEOF
8149 #line $LINENO "configure"
8150 /* confdefs.h.  */
8151 _ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h.  */
8155 /* System header to define __stub macros and hopefully few prototypes,
8156     which can conflict with char shl_load (); below.
8157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8158     <limits.h> exists even on freestanding compilers.  */
8159 #ifdef __STDC__
8160 # include <limits.h>
8161 #else
8162 # include <assert.h>
8163 #endif
8164 /* Override any gcc2 internal prototype to avoid an error.  */
8165 #ifdef __cplusplus
8166 extern "C"
8167 {
8168 #endif
8169 /* We use char because int might match the return type of a gcc2
8170    builtin and then its argument prototype would still apply.  */
8171 char shl_load ();
8172 /* The GNU C library defines this for functions which it implements
8173     to always fail with ENOSYS.  Some functions are actually named
8174     something starting with __ and the normal name is an alias.  */
8175 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8176 choke me
8177 #else
8178 char (*f) () = shl_load;
8179 #endif
8180 #ifdef __cplusplus
8181 }
8182 #endif
8183
8184 int
8185 main ()
8186 {
8187 return f != shl_load;
8188   ;
8189   return 0;
8190 }
8191 _ACEOF
8192 rm -f conftest.$ac_objext conftest$ac_exeext
8193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8194   (eval $ac_link) 2>&5
8195   ac_status=$?
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); } &&
8198          { ac_try='test -s conftest$ac_exeext'
8199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200   (eval $ac_try) 2>&5
8201   ac_status=$?
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); }; }; then
8204   ac_cv_func_shl_load=yes
8205 else
8206   echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8208
8209 ac_cv_func_shl_load=no
8210 fi
8211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8212 fi
8213 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8214 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8215 if test $ac_cv_func_shl_load = yes; then
8216   lt_cv_dlopen="shl_load"
8217 else
8218   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8219 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8220 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8221   echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223   ac_check_lib_save_LIBS=$LIBS
8224 LIBS="-ldld  $LIBS"
8225 cat >conftest.$ac_ext <<_ACEOF
8226 #line $LINENO "configure"
8227 /* confdefs.h.  */
8228 _ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h.  */
8232
8233 /* Override any gcc2 internal prototype to avoid an error.  */
8234 #ifdef __cplusplus
8235 extern "C"
8236 #endif
8237 /* We use char because int might match the return type of a gcc2
8238    builtin and then its argument prototype would still apply.  */
8239 char shl_load ();
8240 int
8241 main ()
8242 {
8243 shl_load ();
8244   ;
8245   return 0;
8246 }
8247 _ACEOF
8248 rm -f conftest.$ac_objext conftest$ac_exeext
8249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8250   (eval $ac_link) 2>&5
8251   ac_status=$?
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); } &&
8254          { ac_try='test -s conftest$ac_exeext'
8255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256   (eval $ac_try) 2>&5
8257   ac_status=$?
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); }; }; then
8260   ac_cv_lib_dld_shl_load=yes
8261 else
8262   echo "$as_me: failed program was:" >&5
8263 sed 's/^/| /' conftest.$ac_ext >&5
8264
8265 ac_cv_lib_dld_shl_load=no
8266 fi
8267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8268 LIBS=$ac_check_lib_save_LIBS
8269 fi
8270 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8271 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8272 if test $ac_cv_lib_dld_shl_load = yes; then
8273   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8274 else
8275   echo "$as_me:$LINENO: checking for dlopen" >&5
8276 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8277 if test "${ac_cv_func_dlopen+set}" = set; then
8278   echo $ECHO_N "(cached) $ECHO_C" >&6
8279 else
8280   cat >conftest.$ac_ext <<_ACEOF
8281 #line $LINENO "configure"
8282 /* confdefs.h.  */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h.  */
8287 /* System header to define __stub macros and hopefully few prototypes,
8288     which can conflict with char dlopen (); below.
8289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8290     <limits.h> exists even on freestanding compilers.  */
8291 #ifdef __STDC__
8292 # include <limits.h>
8293 #else
8294 # include <assert.h>
8295 #endif
8296 /* Override any gcc2 internal prototype to avoid an error.  */
8297 #ifdef __cplusplus
8298 extern "C"
8299 {
8300 #endif
8301 /* We use char because int might match the return type of a gcc2
8302    builtin and then its argument prototype would still apply.  */
8303 char dlopen ();
8304 /* The GNU C library defines this for functions which it implements
8305     to always fail with ENOSYS.  Some functions are actually named
8306     something starting with __ and the normal name is an alias.  */
8307 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8308 choke me
8309 #else
8310 char (*f) () = dlopen;
8311 #endif
8312 #ifdef __cplusplus
8313 }
8314 #endif
8315
8316 int
8317 main ()
8318 {
8319 return f != dlopen;
8320   ;
8321   return 0;
8322 }
8323 _ACEOF
8324 rm -f conftest.$ac_objext conftest$ac_exeext
8325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8326   (eval $ac_link) 2>&5
8327   ac_status=$?
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); } &&
8330          { ac_try='test -s conftest$ac_exeext'
8331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332   (eval $ac_try) 2>&5
8333   ac_status=$?
8334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335   (exit $ac_status); }; }; then
8336   ac_cv_func_dlopen=yes
8337 else
8338   echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8340
8341 ac_cv_func_dlopen=no
8342 fi
8343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8344 fi
8345 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8346 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8347 if test $ac_cv_func_dlopen = yes; then
8348   lt_cv_dlopen="dlopen"
8349 else
8350   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8351 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8352 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8353   echo $ECHO_N "(cached) $ECHO_C" >&6
8354 else
8355   ac_check_lib_save_LIBS=$LIBS
8356 LIBS="-ldl  $LIBS"
8357 cat >conftest.$ac_ext <<_ACEOF
8358 #line $LINENO "configure"
8359 /* confdefs.h.  */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h.  */
8364
8365 /* Override any gcc2 internal prototype to avoid an error.  */
8366 #ifdef __cplusplus
8367 extern "C"
8368 #endif
8369 /* We use char because int might match the return type of a gcc2
8370    builtin and then its argument prototype would still apply.  */
8371 char dlopen ();
8372 int
8373 main ()
8374 {
8375 dlopen ();
8376   ;
8377   return 0;
8378 }
8379 _ACEOF
8380 rm -f conftest.$ac_objext conftest$ac_exeext
8381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8382   (eval $ac_link) 2>&5
8383   ac_status=$?
8384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385   (exit $ac_status); } &&
8386          { ac_try='test -s conftest$ac_exeext'
8387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388   (eval $ac_try) 2>&5
8389   ac_status=$?
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); }; }; then
8392   ac_cv_lib_dl_dlopen=yes
8393 else
8394   echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.$ac_ext >&5
8396
8397 ac_cv_lib_dl_dlopen=no
8398 fi
8399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8400 LIBS=$ac_check_lib_save_LIBS
8401 fi
8402 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8403 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8404 if test $ac_cv_lib_dl_dlopen = yes; then
8405   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8406 else
8407   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8408 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8409 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8410   echo $ECHO_N "(cached) $ECHO_C" >&6
8411 else
8412   ac_check_lib_save_LIBS=$LIBS
8413 LIBS="-lsvld  $LIBS"
8414 cat >conftest.$ac_ext <<_ACEOF
8415 #line $LINENO "configure"
8416 /* confdefs.h.  */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h.  */
8421
8422 /* Override any gcc2 internal prototype to avoid an error.  */
8423 #ifdef __cplusplus
8424 extern "C"
8425 #endif
8426 /* We use char because int might match the return type of a gcc2
8427    builtin and then its argument prototype would still apply.  */
8428 char dlopen ();
8429 int
8430 main ()
8431 {
8432 dlopen ();
8433   ;
8434   return 0;
8435 }
8436 _ACEOF
8437 rm -f conftest.$ac_objext conftest$ac_exeext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8439   (eval $ac_link) 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); } &&
8443          { ac_try='test -s conftest$ac_exeext'
8444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445   (eval $ac_try) 2>&5
8446   ac_status=$?
8447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448   (exit $ac_status); }; }; then
8449   ac_cv_lib_svld_dlopen=yes
8450 else
8451   echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8453
8454 ac_cv_lib_svld_dlopen=no
8455 fi
8456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8457 LIBS=$ac_check_lib_save_LIBS
8458 fi
8459 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8460 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8461 if test $ac_cv_lib_svld_dlopen = yes; then
8462   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8463 else
8464   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8465 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8466 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8467   echo $ECHO_N "(cached) $ECHO_C" >&6
8468 else
8469   ac_check_lib_save_LIBS=$LIBS
8470 LIBS="-ldld  $LIBS"
8471 cat >conftest.$ac_ext <<_ACEOF
8472 #line $LINENO "configure"
8473 /* confdefs.h.  */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h.  */
8478
8479 /* Override any gcc2 internal prototype to avoid an error.  */
8480 #ifdef __cplusplus
8481 extern "C"
8482 #endif
8483 /* We use char because int might match the return type of a gcc2
8484    builtin and then its argument prototype would still apply.  */
8485 char dld_link ();
8486 int
8487 main ()
8488 {
8489 dld_link ();
8490   ;
8491   return 0;
8492 }
8493 _ACEOF
8494 rm -f conftest.$ac_objext conftest$ac_exeext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496   (eval $ac_link) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); } &&
8500          { ac_try='test -s conftest$ac_exeext'
8501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502   (eval $ac_try) 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); }; }; then
8506   ac_cv_lib_dld_dld_link=yes
8507 else
8508   echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 ac_cv_lib_dld_dld_link=no
8512 fi
8513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8514 LIBS=$ac_check_lib_save_LIBS
8515 fi
8516 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8517 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8518 if test $ac_cv_lib_dld_dld_link = yes; then
8519   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8520 fi
8521
8522
8523 fi
8524
8525
8526 fi
8527
8528
8529 fi
8530
8531
8532 fi
8533
8534
8535 fi
8536
8537     ;;
8538   esac
8539
8540   if test "x$lt_cv_dlopen" != xno; then
8541     enable_dlopen=yes
8542   else
8543     enable_dlopen=no
8544   fi
8545
8546   case $lt_cv_dlopen in
8547   dlopen)
8548     save_CPPFLAGS="$CPPFLAGS"
8549     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8550
8551     save_LDFLAGS="$LDFLAGS"
8552     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8553
8554     save_LIBS="$LIBS"
8555     LIBS="$lt_cv_dlopen_libs $LIBS"
8556
8557     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8558 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8559 if test "${lt_cv_dlopen_self+set}" = set; then
8560   echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562           if test "$cross_compiling" = yes; then :
8563   lt_cv_dlopen_self=cross
8564 else
8565   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8566   lt_status=$lt_dlunknown
8567   cat > conftest.$ac_ext <<EOF
8568 #line 8568 "configure"
8569 #include "confdefs.h"
8570
8571 #if HAVE_DLFCN_H
8572 #include <dlfcn.h>
8573 #endif
8574
8575 #include <stdio.h>
8576
8577 #ifdef RTLD_GLOBAL
8578 #  define LT_DLGLOBAL           RTLD_GLOBAL
8579 #else
8580 #  ifdef DL_GLOBAL
8581 #    define LT_DLGLOBAL         DL_GLOBAL
8582 #  else
8583 #    define LT_DLGLOBAL         0
8584 #  endif
8585 #endif
8586
8587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8588    find out it does not work in some platform. */
8589 #ifndef LT_DLLAZY_OR_NOW
8590 #  ifdef RTLD_LAZY
8591 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8592 #  else
8593 #    ifdef DL_LAZY
8594 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8595 #    else
8596 #      ifdef RTLD_NOW
8597 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8598 #      else
8599 #        ifdef DL_NOW
8600 #          define LT_DLLAZY_OR_NOW      DL_NOW
8601 #        else
8602 #          define LT_DLLAZY_OR_NOW      0
8603 #        endif
8604 #      endif
8605 #    endif
8606 #  endif
8607 #endif
8608
8609 #ifdef __cplusplus
8610 extern "C" void exit (int);
8611 #endif
8612
8613 void fnord() { int i=42;}
8614 int main ()
8615 {
8616   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8617   int status = $lt_dlunknown;
8618
8619   if (self)
8620     {
8621       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8622       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8623       /* dlclose (self); */
8624     }
8625
8626     exit (status);
8627 }
8628 EOF
8629   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8630   (eval $ac_link) 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8634     (./conftest; exit; ) 2>/dev/null
8635     lt_status=$?
8636     case x$lt_status in
8637       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8638       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8639       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8640     esac
8641   else :
8642     # compilation failed
8643     lt_cv_dlopen_self=no
8644   fi
8645 fi
8646 rm -fr conftest*
8647
8648
8649 fi
8650 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8651 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8652
8653     if test "x$lt_cv_dlopen_self" = xyes; then
8654       LDFLAGS="$LDFLAGS $link_static_flag"
8655       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8656 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8657 if test "${lt_cv_dlopen_self_static+set}" = set; then
8658   echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660           if test "$cross_compiling" = yes; then :
8661   lt_cv_dlopen_self_static=cross
8662 else
8663   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8664   lt_status=$lt_dlunknown
8665   cat > conftest.$ac_ext <<EOF
8666 #line 8666 "configure"
8667 #include "confdefs.h"
8668
8669 #if HAVE_DLFCN_H
8670 #include <dlfcn.h>
8671 #endif
8672
8673 #include <stdio.h>
8674
8675 #ifdef RTLD_GLOBAL
8676 #  define LT_DLGLOBAL           RTLD_GLOBAL
8677 #else
8678 #  ifdef DL_GLOBAL
8679 #    define LT_DLGLOBAL         DL_GLOBAL
8680 #  else
8681 #    define LT_DLGLOBAL         0
8682 #  endif
8683 #endif
8684
8685 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8686    find out it does not work in some platform. */
8687 #ifndef LT_DLLAZY_OR_NOW
8688 #  ifdef RTLD_LAZY
8689 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8690 #  else
8691 #    ifdef DL_LAZY
8692 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8693 #    else
8694 #      ifdef RTLD_NOW
8695 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8696 #      else
8697 #        ifdef DL_NOW
8698 #          define LT_DLLAZY_OR_NOW      DL_NOW
8699 #        else
8700 #          define LT_DLLAZY_OR_NOW      0
8701 #        endif
8702 #      endif
8703 #    endif
8704 #  endif
8705 #endif
8706
8707 #ifdef __cplusplus
8708 extern "C" void exit (int);
8709 #endif
8710
8711 void fnord() { int i=42;}
8712 int main ()
8713 {
8714   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8715   int status = $lt_dlunknown;
8716
8717   if (self)
8718     {
8719       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8720       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8721       /* dlclose (self); */
8722     }
8723
8724     exit (status);
8725 }
8726 EOF
8727   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8728   (eval $ac_link) 2>&5
8729   ac_status=$?
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8732     (./conftest; exit; ) 2>/dev/null
8733     lt_status=$?
8734     case x$lt_status in
8735       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8736       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8737       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8738     esac
8739   else :
8740     # compilation failed
8741     lt_cv_dlopen_self_static=no
8742   fi
8743 fi
8744 rm -fr conftest*
8745
8746
8747 fi
8748 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8749 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8750     fi
8751
8752     CPPFLAGS="$save_CPPFLAGS"
8753     LDFLAGS="$save_LDFLAGS"
8754     LIBS="$save_LIBS"
8755     ;;
8756   esac
8757
8758   case $lt_cv_dlopen_self in
8759   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8760   *) enable_dlopen_self=unknown ;;
8761   esac
8762
8763   case $lt_cv_dlopen_self_static in
8764   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8765   *) enable_dlopen_self_static=unknown ;;
8766   esac
8767 fi
8768
8769
8770 # Report which librarie types wil actually be built
8771 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8772 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8773 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8774 echo "${ECHO_T}$can_build_shared" >&6
8775
8776 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8777 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8778 test "$can_build_shared" = "no" && enable_shared=no
8779
8780 # On AIX, shared libraries and static libraries use the same namespace, and
8781 # are all built from PIC.
8782 case "$host_os" in
8783 aix3*)
8784   test "$enable_shared" = yes && enable_static=no
8785   if test -n "$RANLIB"; then
8786     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8787     postinstall_cmds='$RANLIB $lib'
8788   fi
8789   ;;
8790
8791 aix4*)
8792   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8793     test "$enable_shared" = yes && enable_static=no
8794   fi
8795   ;;
8796   darwin* | rhapsody*)
8797   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8798     archive_cmds_need_lc=no
8799     case "$host_os" in
8800     rhapsody* | darwin1.[012])
8801       allow_undefined_flag='-undefined suppress'
8802       ;;
8803     *) # Darwin 1.3 on
8804       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8805       ;;
8806     esac
8807     # FIXME: Relying on posixy $() will cause problems for
8808     #        cross-compilation, but unfortunately the echo tests do not
8809     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8810     #          `"' quotes if we put them in here... so don't!
8811                 output_verbose_link_cmd='echo'
8812     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8813     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8814     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8815                   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}'
8816                   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}'
8817     hardcode_direct=no
8818     hardcode_automatic=yes
8819     hardcode_shlibpath_var=unsupported
8820     whole_archive_flag_spec='-all_load $convenience'
8821     link_all_deplibs=yes
8822     fi
8823     ;;
8824 esac
8825 echo "$as_me:$LINENO: result: $enable_shared" >&5
8826 echo "${ECHO_T}$enable_shared" >&6
8827
8828 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8829 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8830 # Make sure either enable_shared or enable_static is yes.
8831 test "$enable_shared" = yes || enable_static=yes
8832 echo "$as_me:$LINENO: result: $enable_static" >&5
8833 echo "${ECHO_T}$enable_static" >&6
8834
8835 # The else clause should only fire when bootstrapping the
8836 # libtool distribution, otherwise you forgot to ship ltmain.sh
8837 # with your package, and you will get complaints that there are
8838 # no rules to generate ltmain.sh.
8839 if test -f "$ltmain"; then
8840   # See if we are running on zsh, and set the options which allow our commands through
8841   # without removal of \ escapes.
8842   if test -n "${ZSH_VERSION+set}" ; then
8843     setopt NO_GLOB_SUBST
8844   fi
8845   # Now quote all the things that may contain metacharacters while being
8846   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8847   # variables and quote the copies for generation of the libtool script.
8848   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8849     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8850     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8851     deplibs_check_method reload_flag reload_cmds need_locks \
8852     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8853     lt_cv_sys_global_symbol_to_c_name_address \
8854     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8855     old_postinstall_cmds old_postuninstall_cmds \
8856     compiler \
8857     CC \
8858     LD \
8859     lt_prog_compiler_wl \
8860     lt_prog_compiler_pic \
8861     lt_prog_compiler_static \
8862     lt_prog_compiler_no_builtin_flag \
8863     export_dynamic_flag_spec \
8864     thread_safe_flag_spec \
8865     whole_archive_flag_spec \
8866     enable_shared_with_static_runtimes \
8867     old_archive_cmds \
8868     old_archive_from_new_cmds \
8869     predep_objects \
8870     postdep_objects \
8871     predeps \
8872     postdeps \
8873     compiler_lib_search_path \
8874     archive_cmds \
8875     archive_expsym_cmds \
8876     postinstall_cmds \
8877     postuninstall_cmds \
8878     old_archive_from_expsyms_cmds \
8879     allow_undefined_flag \
8880     no_undefined_flag \
8881     export_symbols_cmds \
8882     hardcode_libdir_flag_spec \
8883     hardcode_libdir_flag_spec_ld \
8884     hardcode_libdir_separator \
8885     hardcode_automatic \
8886     module_cmds \
8887     module_expsym_cmds \
8888     lt_cv_prog_compiler_c_o \
8889     exclude_expsyms \
8890     include_expsyms; do
8891
8892     case $var in
8893     old_archive_cmds | \
8894     old_archive_from_new_cmds | \
8895     archive_cmds | \
8896     archive_expsym_cmds | \
8897     module_cmds | \
8898     module_expsym_cmds | \
8899     old_archive_from_expsyms_cmds | \
8900     export_symbols_cmds | \
8901     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8902     postinstall_cmds | postuninstall_cmds | \
8903     old_postinstall_cmds | old_postuninstall_cmds | \
8904     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8905       # Double-quote double-evaled strings.
8906       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8907       ;;
8908     *)
8909       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8910       ;;
8911     esac
8912   done
8913
8914   case $lt_echo in
8915   *'\$0 --fallback-echo"')
8916     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8917     ;;
8918   esac
8919
8920 cfgfile="${ofile}T"
8921   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8922   $rm -f "$cfgfile"
8923   { echo "$as_me:$LINENO: creating $ofile" >&5
8924 echo "$as_me: creating $ofile" >&6;}
8925
8926   cat <<__EOF__ >> "$cfgfile"
8927 #! $SHELL
8928
8929 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8930 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8931 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8932 #
8933 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8934 # Free Software Foundation, Inc.
8935 #
8936 # This file is part of GNU Libtool:
8937 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8938 #
8939 # This program is free software; you can redistribute it and/or modify
8940 # it under the terms of the GNU General Public License as published by
8941 # the Free Software Foundation; either version 2 of the License, or
8942 # (at your option) any later version.
8943 #
8944 # This program is distributed in the hope that it will be useful, but
8945 # WITHOUT ANY WARRANTY; without even the implied warranty of
8946 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8947 # General Public License for more details.
8948 #
8949 # You should have received a copy of the GNU General Public License
8950 # along with this program; if not, write to the Free Software
8951 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8952 #
8953 # As a special exception to the GNU General Public License, if you
8954 # distribute this file as part of a program that contains a
8955 # configuration script generated by Autoconf, you may include it under
8956 # the same distribution terms that you use for the rest of that program.
8957
8958 # A sed program that does not truncate output.
8959 SED=$lt_SED
8960
8961 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8962 Xsed="$SED -e s/^X//"
8963
8964 # The HP-UX ksh and POSIX shell print the target directory to stdout
8965 # if CDPATH is set.
8966 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8967
8968 # The names of the tagged configurations supported by this script.
8969 available_tags=
8970
8971 # ### BEGIN LIBTOOL CONFIG
8972
8973 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8974
8975 # Shell to use when invoking shell scripts.
8976 SHELL=$lt_SHELL
8977
8978 # Whether or not to build shared libraries.
8979 build_libtool_libs=$enable_shared
8980
8981 # Whether or not to build static libraries.
8982 build_old_libs=$enable_static
8983
8984 # Whether or not to add -lc for building shared libraries.
8985 build_libtool_need_lc=$archive_cmds_need_lc
8986
8987 # Whether or not to disallow shared libs when runtime libs are static
8988 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8989
8990 # Whether or not to optimize for fast installation.
8991 fast_install=$enable_fast_install
8992
8993 # The host system.
8994 host_alias=$host_alias
8995 host=$host
8996
8997 # An echo program that does not interpret backslashes.
8998 echo=$lt_echo
8999
9000 # The archiver.
9001 AR=$lt_AR
9002 AR_FLAGS=$lt_AR_FLAGS
9003
9004 # A C compiler.
9005 LTCC=$lt_LTCC
9006
9007 # A language-specific compiler.
9008 CC=$lt_compiler
9009
9010 # Is the compiler the GNU C compiler?
9011 with_gcc=$GCC
9012
9013 # An ERE matcher.
9014 EGREP=$lt_EGREP
9015
9016 # The linker used to build libraries.
9017 LD=$lt_LD
9018
9019 # Whether we need hard or soft links.
9020 LN_S=$lt_LN_S
9021
9022 # A BSD-compatible nm program.
9023 NM=$lt_NM
9024
9025 # A symbol stripping program
9026 STRIP=$STRIP
9027
9028 # Used to examine libraries when file_magic_cmd begins "file"
9029 MAGIC_CMD=$MAGIC_CMD
9030
9031 # Used on cygwin: DLL creation program.
9032 DLLTOOL="$DLLTOOL"
9033
9034 # Used on cygwin: object dumper.
9035 OBJDUMP="$OBJDUMP"
9036
9037 # Used on cygwin: assembler.
9038 AS="$AS"
9039
9040 # The name of the directory that contains temporary libtool files.
9041 objdir=$objdir
9042
9043 # How to create reloadable object files.
9044 reload_flag=$lt_reload_flag
9045 reload_cmds=$lt_reload_cmds
9046
9047 # How to pass a linker flag through the compiler.
9048 wl=$lt_lt_prog_compiler_wl
9049
9050 # Object file suffix (normally "o").
9051 objext="$ac_objext"
9052
9053 # Old archive suffix (normally "a").
9054 libext="$libext"
9055
9056 # Shared library suffix (normally ".so").
9057 shrext='$shrext'
9058
9059 # Executable file suffix (normally "").
9060 exeext="$exeext"
9061
9062 # Additional compiler flags for building library objects.
9063 pic_flag=$lt_lt_prog_compiler_pic
9064 pic_mode=$pic_mode
9065
9066 # What is the maximum length of a command?
9067 max_cmd_len=$lt_cv_sys_max_cmd_len
9068
9069 # Does compiler simultaneously support -c and -o options?
9070 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9071
9072 # Must we lock files when doing compilation ?
9073 need_locks=$lt_need_locks
9074
9075 # Do we need the lib prefix for modules?
9076 need_lib_prefix=$need_lib_prefix
9077
9078 # Do we need a version for libraries?
9079 need_version=$need_version
9080
9081 # Whether dlopen is supported.
9082 dlopen_support=$enable_dlopen
9083
9084 # Whether dlopen of programs is supported.
9085 dlopen_self=$enable_dlopen_self
9086
9087 # Whether dlopen of statically linked programs is supported.
9088 dlopen_self_static=$enable_dlopen_self_static
9089
9090 # Compiler flag to prevent dynamic linking.
9091 link_static_flag=$lt_lt_prog_compiler_static
9092
9093 # Compiler flag to turn off builtin functions.
9094 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9095
9096 # Compiler flag to allow reflexive dlopens.
9097 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9098
9099 # Compiler flag to generate shared objects directly from archives.
9100 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9101
9102 # Compiler flag to generate thread-safe objects.
9103 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9104
9105 # Library versioning type.
9106 version_type=$version_type
9107
9108 # Format of library name prefix.
9109 libname_spec=$lt_libname_spec
9110
9111 # List of archive names.  First name is the real one, the rest are links.
9112 # The last name is the one that the linker finds with -lNAME.
9113 library_names_spec=$lt_library_names_spec
9114
9115 # The coded name of the library, if different from the real name.
9116 soname_spec=$lt_soname_spec
9117
9118 # Commands used to build and install an old-style archive.
9119 RANLIB=$lt_RANLIB
9120 old_archive_cmds=$lt_old_archive_cmds
9121 old_postinstall_cmds=$lt_old_postinstall_cmds
9122 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9123
9124 # Create an old-style archive from a shared archive.
9125 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9126
9127 # Create a temporary old-style archive to link instead of a shared archive.
9128 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9129
9130 # Commands used to build and install a shared archive.
9131 archive_cmds=$lt_archive_cmds
9132 archive_expsym_cmds=$lt_archive_expsym_cmds
9133 postinstall_cmds=$lt_postinstall_cmds
9134 postuninstall_cmds=$lt_postuninstall_cmds
9135
9136 # Commands used to build a loadable module (assumed same as above if empty)
9137 module_cmds=$lt_module_cmds
9138 module_expsym_cmds=$lt_module_expsym_cmds
9139
9140 # Commands to strip libraries.
9141 old_striplib=$lt_old_striplib
9142 striplib=$lt_striplib
9143
9144 # Dependencies to place before the objects being linked to create a
9145 # shared library.
9146 predep_objects=$lt_predep_objects
9147
9148 # Dependencies to place after the objects being linked to create a
9149 # shared library.
9150 postdep_objects=$lt_postdep_objects
9151
9152 # Dependencies to place before the objects being linked to create a
9153 # shared library.
9154 predeps=$lt_predeps
9155
9156 # Dependencies to place after the objects being linked to create a
9157 # shared library.
9158 postdeps=$lt_postdeps
9159
9160 # The library search path used internally by the compiler when linking
9161 # a shared library.
9162 compiler_lib_search_path=$lt_compiler_lib_search_path
9163
9164 # Method to check whether dependent libraries are shared objects.
9165 deplibs_check_method=$lt_deplibs_check_method
9166
9167 # Command to use when deplibs_check_method == file_magic.
9168 file_magic_cmd=$lt_file_magic_cmd
9169
9170 # Flag that allows shared libraries with undefined symbols to be built.
9171 allow_undefined_flag=$lt_allow_undefined_flag
9172
9173 # Flag that forces no undefined symbols.
9174 no_undefined_flag=$lt_no_undefined_flag
9175
9176 # Commands used to finish a libtool library installation in a directory.
9177 finish_cmds=$lt_finish_cmds
9178
9179 # Same as above, but a single script fragment to be evaled but not shown.
9180 finish_eval=$lt_finish_eval
9181
9182 # Take the output of nm and produce a listing of raw symbols and C names.
9183 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9184
9185 # Transform the output of nm in a proper C declaration
9186 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9187
9188 # Transform the output of nm in a C name address pair
9189 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9190
9191 # This is the shared library runtime path variable.
9192 runpath_var=$runpath_var
9193
9194 # This is the shared library path variable.
9195 shlibpath_var=$shlibpath_var
9196
9197 # Is shlibpath searched before the hard-coded library search path?
9198 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9199
9200 # How to hardcode a shared library path into an executable.
9201 hardcode_action=$hardcode_action
9202
9203 # Whether we should hardcode library paths into libraries.
9204 hardcode_into_libs=$hardcode_into_libs
9205
9206 # Flag to hardcode \$libdir into a binary during linking.
9207 # This must work even if \$libdir does not exist.
9208 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9209
9210 # If ld is used when linking, flag to hardcode \$libdir into
9211 # a binary during linking. This must work even if \$libdir does
9212 # not exist.
9213 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9214
9215 # Whether we need a single -rpath flag with a separated argument.
9216 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9217
9218 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9219 # resulting binary.
9220 hardcode_direct=$hardcode_direct
9221
9222 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9223 # resulting binary.
9224 hardcode_minus_L=$hardcode_minus_L
9225
9226 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9227 # the resulting binary.
9228 hardcode_shlibpath_var=$hardcode_shlibpath_var
9229
9230 # Set to yes if building a shared library automatically hardcodes DIR into the library
9231 # and all subsequent libraries and executables linked against it.
9232 hardcode_automatic=$hardcode_automatic
9233
9234 # Variables whose values should be saved in libtool wrapper scripts and
9235 # restored at relink time.
9236 variables_saved_for_relink="$variables_saved_for_relink"
9237
9238 # Whether libtool must link a program against all its dependency libraries.
9239 link_all_deplibs=$link_all_deplibs
9240
9241 # Compile-time system search path for libraries
9242 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9243
9244 # Run-time system search path for libraries
9245 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9246
9247 # Fix the shell variable \$srcfile for the compiler.
9248 fix_srcfile_path="$fix_srcfile_path"
9249
9250 # Set to yes if exported symbols are required.
9251 always_export_symbols=$always_export_symbols
9252
9253 # The commands to list exported symbols.
9254 export_symbols_cmds=$lt_export_symbols_cmds
9255
9256 # The commands to extract the exported symbol list from a shared archive.
9257 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9258
9259 # Symbols that should not be listed in the preloaded symbols.
9260 exclude_expsyms=$lt_exclude_expsyms
9261
9262 # Symbols that must always be exported.
9263 include_expsyms=$lt_include_expsyms
9264
9265 # ### END LIBTOOL CONFIG
9266
9267 __EOF__
9268
9269
9270   case $host_os in
9271   aix3*)
9272     cat <<\EOF >> "$cfgfile"
9273
9274 # AIX sometimes has problems with the GCC collect2 program.  For some
9275 # reason, if we set the COLLECT_NAMES environment variable, the problems
9276 # vanish in a puff of smoke.
9277 if test "X${COLLECT_NAMES+set}" != Xset; then
9278   COLLECT_NAMES=
9279   export COLLECT_NAMES
9280 fi
9281 EOF
9282     ;;
9283   esac
9284
9285   # We use sed instead of cat because bash on DJGPP gets confused if
9286   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9287   # text mode, it properly converts lines to CR/LF.  This bash problem
9288   # is reportedly fixed, but why not run on old versions too?
9289   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9290
9291   mv -f "$cfgfile" "$ofile" || \
9292     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9293   chmod +x "$ofile"
9294
9295 else
9296   # If there is no Makefile yet, we rely on a make rule to execute
9297   # `config.status --recheck' to rerun these tests and create the
9298   # libtool script then.
9299   test -f Makefile && make "$ltmain"
9300 fi
9301
9302
9303 ac_ext=c
9304 ac_cpp='$CPP $CPPFLAGS'
9305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9308
9309 CC="$lt_save_CC"
9310
9311
9312 # Check whether --with-tags or --without-tags was given.
9313 if test "${with_tags+set}" = set; then
9314   withval="$with_tags"
9315   tagnames="$withval"
9316 fi;
9317
9318 if test -f "$ltmain" && test -n "$tagnames"; then
9319   if test ! -f "${ofile}"; then
9320     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9321 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9322   fi
9323
9324   if test -z "$LTCC"; then
9325     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9326     if test -z "$LTCC"; then
9327       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9328 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9329     else
9330       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9331 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9332     fi
9333   fi
9334
9335   # Extract list of available tagged configurations in $ofile.
9336   # Note that this assumes the entire list is on one line.
9337   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9338
9339   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9340   for tagname in $tagnames; do
9341     IFS="$lt_save_ifs"
9342     # Check whether tagname contains only valid characters
9343     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9344     "") ;;
9345     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9346 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9347    { (exit 1); exit 1; }; }
9348         ;;
9349     esac
9350
9351     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9352     then
9353       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9354 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9355    { (exit 1); exit 1; }; }
9356     fi
9357
9358     # Update the list of available tags.
9359     if test -n "$tagname"; then
9360       echo appending configuration tag \"$tagname\" to $ofile
9361
9362       case $tagname in
9363       CXX)
9364         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9365           ac_ext=cc
9366 ac_cpp='$CXXCPP $CPPFLAGS'
9367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9370
9371
9372
9373
9374 archive_cmds_need_lc_CXX=no
9375 allow_undefined_flag_CXX=
9376 always_export_symbols_CXX=no
9377 archive_expsym_cmds_CXX=
9378 export_dynamic_flag_spec_CXX=
9379 hardcode_direct_CXX=no
9380 hardcode_libdir_flag_spec_CXX=
9381 hardcode_libdir_flag_spec_ld_CXX=
9382 hardcode_libdir_separator_CXX=
9383 hardcode_minus_L_CXX=no
9384 hardcode_automatic_CXX=no
9385 module_cmds_CXX=
9386 module_expsym_cmds_CXX=
9387 link_all_deplibs_CXX=unknown
9388 old_archive_cmds_CXX=$old_archive_cmds
9389 no_undefined_flag_CXX=
9390 whole_archive_flag_spec_CXX=
9391 enable_shared_with_static_runtimes_CXX=no
9392
9393 # Dependencies to place before and after the object being linked:
9394 predep_objects_CXX=
9395 postdep_objects_CXX=
9396 predeps_CXX=
9397 postdeps_CXX=
9398 compiler_lib_search_path_CXX=
9399
9400 # Source file extension for C++ test sources.
9401 ac_ext=cc
9402
9403 # Object file extension for compiled C++ test sources.
9404 objext=o
9405 objext_CXX=$objext
9406
9407 # Code to be used in simple compile tests
9408 lt_simple_compile_test_code="int some_variable = 0;\n"
9409
9410 # Code to be used in simple link tests
9411 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9412
9413 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9414
9415 # If no C compiler was specified, use CC.
9416 LTCC=${LTCC-"$CC"}
9417
9418 # Allow CC to be a program name with arguments.
9419 compiler=$CC
9420
9421
9422 # Allow CC to be a program name with arguments.
9423 lt_save_CC=$CC
9424 lt_save_LD=$LD
9425 lt_save_GCC=$GCC
9426 GCC=$GXX
9427 lt_save_with_gnu_ld=$with_gnu_ld
9428 lt_save_path_LD=$lt_cv_path_LD
9429 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9430   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9431 else
9432   unset lt_cv_prog_gnu_ld
9433 fi
9434 if test -n "${lt_cv_path_LDCXX+set}"; then
9435   lt_cv_path_LD=$lt_cv_path_LDCXX
9436 else
9437   unset lt_cv_path_LD
9438 fi
9439 test -z "${LDCXX+set}" || LD=$LDCXX
9440 CC=${CXX-"c++"}
9441 compiler=$CC
9442 compiler_CXX=$CC
9443 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9444
9445 # We don't want -fno-exception wen compiling C++ code, so set the
9446 # no_builtin_flag separately
9447 if test "$GXX" = yes; then
9448   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9449 else
9450   lt_prog_compiler_no_builtin_flag_CXX=
9451 fi
9452
9453 if test "$GXX" = yes; then
9454   # Set up default GNU C++ configuration
9455
9456
9457 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9458 if test "${with_gnu_ld+set}" = set; then
9459   withval="$with_gnu_ld"
9460   test "$withval" = no || with_gnu_ld=yes
9461 else
9462   with_gnu_ld=no
9463 fi;
9464 ac_prog=ld
9465 if test "$GCC" = yes; then
9466   # Check if gcc -print-prog-name=ld gives a path.
9467   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9468 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9469   case $host in
9470   *-*-mingw*)
9471     # gcc leaves a trailing carriage return which upsets mingw
9472     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9473   *)
9474     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9475   esac
9476   case $ac_prog in
9477     # Accept absolute paths.
9478     [\\/]* | ?:[\\/]*)
9479       re_direlt='/[^/][^/]*/\.\./'
9480       # Canonicalize the path of ld
9481       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9482       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9483         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9484       done
9485       test -z "$LD" && LD="$ac_prog"
9486       ;;
9487   "")
9488     # If it fails, then pretend we aren't using GCC.
9489     ac_prog=ld
9490     ;;
9491   *)
9492     # If it is relative, then search for the first ld in PATH.
9493     with_gnu_ld=unknown
9494     ;;
9495   esac
9496 elif test "$with_gnu_ld" = yes; then
9497   echo "$as_me:$LINENO: checking for GNU ld" >&5
9498 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9499 else
9500   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9501 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9502 fi
9503 if test "${lt_cv_path_LD+set}" = set; then
9504   echo $ECHO_N "(cached) $ECHO_C" >&6
9505 else
9506   if test -z "$LD"; then
9507   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9508   for ac_dir in $PATH; do
9509     IFS="$lt_save_ifs"
9510     test -z "$ac_dir" && ac_dir=.
9511     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9512       lt_cv_path_LD="$ac_dir/$ac_prog"
9513       # Check to see if the program is GNU ld.  I'd rather use --version,
9514       # but apparently some GNU ld's only accept -v.
9515       # Break only if it was the GNU/non-GNU ld that we prefer.
9516       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9517       *GNU* | *'with BFD'*)
9518         test "$with_gnu_ld" != no && break
9519         ;;
9520       *)
9521         test "$with_gnu_ld" != yes && break
9522         ;;
9523       esac
9524     fi
9525   done
9526   IFS="$lt_save_ifs"
9527 else
9528   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9529 fi
9530 fi
9531
9532 LD="$lt_cv_path_LD"
9533 if test -n "$LD"; then
9534   echo "$as_me:$LINENO: result: $LD" >&5
9535 echo "${ECHO_T}$LD" >&6
9536 else
9537   echo "$as_me:$LINENO: result: no" >&5
9538 echo "${ECHO_T}no" >&6
9539 fi
9540 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9541 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9542    { (exit 1); exit 1; }; }
9543 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9544 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9545 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9546   echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9549 case `"$LD" -v 2>&1 </dev/null` in
9550 *GNU* | *'with BFD'*)
9551   lt_cv_prog_gnu_ld=yes
9552   ;;
9553 *)
9554   lt_cv_prog_gnu_ld=no
9555   ;;
9556 esac
9557 fi
9558 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9559 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9560 with_gnu_ld=$lt_cv_prog_gnu_ld
9561
9562
9563
9564   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9565   # archiving commands below assume that GNU ld is being used.
9566   if test "$with_gnu_ld" = yes; then
9567     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568     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'
9569
9570     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9571     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9572
9573     # If archive_cmds runs LD, not CC, wlarc should be empty
9574     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9575     #     investigate it a little bit more. (MM)
9576     wlarc='${wl}'
9577
9578     # ancient GNU ld didn't support --whole-archive et. al.
9579     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9580         grep 'no-whole-archive' > /dev/null; then
9581       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9582     else
9583       whole_archive_flag_spec_CXX=
9584     fi
9585   else
9586     with_gnu_ld=no
9587     wlarc=
9588
9589     # A generic and very simple default shared library creation
9590     # command for GNU C++ for the case where it uses the native
9591     # linker, instead of GNU ld.  If possible, this setting should
9592     # overridden to take advantage of the native linker features on
9593     # the platform it is being used on.
9594     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9595   fi
9596
9597   # Commands to make compiler produce verbose output that lists
9598   # what "hidden" libraries, object files and flags are used when
9599   # linking a shared library.
9600   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9601
9602 else
9603   GXX=no
9604   with_gnu_ld=no
9605   wlarc=
9606 fi
9607
9608 # PORTME: fill in a description of your system's C++ link characteristics
9609 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9610 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9611 ld_shlibs_CXX=yes
9612 case $host_os in
9613   aix3*)
9614     # FIXME: insert proper C++ library support
9615     ld_shlibs_CXX=no
9616     ;;
9617   aix4* | aix5*)
9618     if test "$host_cpu" = ia64; then
9619       # On IA64, the linker does run time linking by default, so we don't
9620       # have to do anything special.
9621       aix_use_runtimelinking=no
9622       exp_sym_flag='-Bexport'
9623       no_entry_flag=""
9624     else
9625       aix_use_runtimelinking=no
9626
9627       # Test if we are trying to use run time linking or normal
9628       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9629       # need to do runtime linking.
9630       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9631         for ld_flag in $LDFLAGS; do
9632           case $ld_flag in
9633           *-brtl*)
9634             aix_use_runtimelinking=yes
9635             break
9636             ;;
9637           esac
9638         done
9639       esac
9640
9641       exp_sym_flag='-bexport'
9642       no_entry_flag='-bnoentry'
9643     fi
9644
9645     # When large executables or shared objects are built, AIX ld can
9646     # have problems creating the table of contents.  If linking a library
9647     # or program results in "error TOC overflow" add -mminimal-toc to
9648     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9649     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9650
9651     archive_cmds_CXX=''
9652     hardcode_direct_CXX=yes
9653     hardcode_libdir_separator_CXX=':'
9654     link_all_deplibs_CXX=yes
9655
9656     if test "$GXX" = yes; then
9657       case $host_os in aix4.012|aix4.012.*)
9658       # We only want to do this on AIX 4.2 and lower, the check
9659       # below for broken collect2 doesn't work under 4.3+
9660         collect2name=`${CC} -print-prog-name=collect2`
9661         if test -f "$collect2name" && \
9662            strings "$collect2name" | grep resolve_lib_name >/dev/null
9663         then
9664           # We have reworked collect2
9665           hardcode_direct_CXX=yes
9666         else
9667           # We have old collect2
9668           hardcode_direct_CXX=unsupported
9669           # It fails to find uninstalled libraries when the uninstalled
9670           # path is not listed in the libpath.  Setting hardcode_minus_L
9671           # to unsupported forces relinking
9672           hardcode_minus_L_CXX=yes
9673           hardcode_libdir_flag_spec_CXX='-L$libdir'
9674           hardcode_libdir_separator_CXX=
9675         fi
9676       esac
9677       shared_flag='-shared'
9678     else
9679       # not using gcc
9680       if test "$host_cpu" = ia64; then
9681         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9682         # chokes on -Wl,-G. The following line is correct:
9683         shared_flag='-G'
9684       else
9685         if test "$aix_use_runtimelinking" = yes; then
9686           shared_flag='${wl}-G'
9687         else
9688           shared_flag='${wl}-bM:SRE'
9689         fi
9690       fi
9691     fi
9692
9693     # It seems that -bexpall does not export symbols beginning with
9694     # underscore (_), so it is better to generate a list of symbols to export.
9695     always_export_symbols_CXX=yes
9696     if test "$aix_use_runtimelinking" = yes; then
9697       # Warning - without using the other runtime loading flags (-brtl),
9698       # -berok will link without error, but may produce a broken library.
9699       allow_undefined_flag_CXX='-berok'
9700       # Determine the default libpath from the value encoded in an empty executable.
9701       cat >conftest.$ac_ext <<_ACEOF
9702 #line $LINENO "configure"
9703 /* confdefs.h.  */
9704 _ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h.  */
9708
9709 int
9710 main ()
9711 {
9712
9713   ;
9714   return 0;
9715 }
9716 _ACEOF
9717 rm -f conftest.$ac_objext conftest$ac_exeext
9718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9719   (eval $ac_link) 2>&5
9720   ac_status=$?
9721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722   (exit $ac_status); } &&
9723          { ac_try='test -s conftest$ac_exeext'
9724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725   (eval $ac_try) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); }; }; then
9729
9730 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9731 }'`
9732 # Check for a 64-bit object if we didn't find anything.
9733 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; }
9734 }'`; fi
9735 else
9736   echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9738
9739 fi
9740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9742
9743       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9744
9745       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"
9746      else
9747       if test "$host_cpu" = ia64; then
9748         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9749         allow_undefined_flag_CXX="-z nodefs"
9750         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"
9751       else
9752         # Determine the default libpath from the value encoded in an empty executable.
9753         cat >conftest.$ac_ext <<_ACEOF
9754 #line $LINENO "configure"
9755 /* confdefs.h.  */
9756 _ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h.  */
9760
9761 int
9762 main ()
9763 {
9764
9765   ;
9766   return 0;
9767 }
9768 _ACEOF
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9771   (eval $ac_link) 2>&5
9772   ac_status=$?
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); } &&
9775          { ac_try='test -s conftest$ac_exeext'
9776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777   (eval $ac_try) 2>&5
9778   ac_status=$?
9779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780   (exit $ac_status); }; }; then
9781
9782 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9783 }'`
9784 # Check for a 64-bit object if we didn't find anything.
9785 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; }
9786 }'`; fi
9787 else
9788   echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9790
9791 fi
9792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9793 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9794
9795         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9796         # Warning - without using the other run time loading flags,
9797         # -berok will link without error, but may produce a broken library.
9798         no_undefined_flag_CXX=' ${wl}-bernotok'
9799         allow_undefined_flag_CXX=' ${wl}-berok'
9800         # -bexpall does not export symbols beginning with underscore (_)
9801         always_export_symbols_CXX=yes
9802         # Exported symbols can be pulled into shared objects from archives
9803         whole_archive_flag_spec_CXX=' '
9804         archive_cmds_need_lc_CXX=yes
9805         # This is similar to how AIX traditionally builds it's shared libraries.
9806         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'
9807       fi
9808     fi
9809     ;;
9810   chorus*)
9811     case $cc_basename in
9812       *)
9813         # FIXME: insert proper C++ library support
9814         ld_shlibs_CXX=no
9815         ;;
9816     esac
9817     ;;
9818
9819   cygwin* | mingw* | pw32*)
9820     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9821     # as there is no search path for DLLs.
9822     hardcode_libdir_flag_spec_CXX='-L$libdir'
9823     allow_undefined_flag_CXX=unsupported
9824     always_export_symbols_CXX=no
9825     enable_shared_with_static_runtimes_CXX=yes
9826
9827     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9828       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'
9829       # If the export-symbols file already is a .def file (1st line
9830       # is EXPORTS), use it as is; otherwise, prepend...
9831       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9832         cp $export_symbols $output_objdir/$soname.def;
9833       else
9834         echo EXPORTS > $output_objdir/$soname.def;
9835         cat $export_symbols >> $output_objdir/$soname.def;
9836       fi~
9837       $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'
9838     else
9839       ld_shlibs_CXX=no
9840     fi
9841   ;;
9842
9843   darwin* | rhapsody*)
9844    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9845     archive_cmds_need_lc_CXX=no
9846     case "$host_os" in
9847     rhapsody* | darwin1.[012])
9848       allow_undefined_flag_CXX='-undefined suppress'
9849       ;;
9850     *) # Darwin 1.3 on
9851       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9852       ;;
9853     esac
9854         lt_int_apple_cc_single_mod=no
9855         output_verbose_link_cmd='echo'
9856         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9857           lt_int_apple_cc_single_mod=yes
9858         fi
9859         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9860           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9861         else
9862         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'
9863       fi
9864       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9865
9866     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9867       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9868         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}'
9869       else
9870         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}'
9871       fi
9872         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}'
9873     hardcode_direct_CXX=no
9874     hardcode_automatic_CXX=yes
9875     hardcode_shlibpath_var_CXX=unsupported
9876     whole_archive_flag_spec_CXX='-all_load $convenience'
9877     link_all_deplibs_CXX=yes
9878    fi
9879     ;;
9880
9881   dgux*)
9882     case $cc_basename in
9883       ec++)
9884         # FIXME: insert proper C++ library support
9885         ld_shlibs_CXX=no
9886         ;;
9887       ghcx)
9888         # Green Hills C++ Compiler
9889         # FIXME: insert proper C++ library support
9890         ld_shlibs_CXX=no
9891         ;;
9892       *)
9893         # FIXME: insert proper C++ library support
9894         ld_shlibs_CXX=no
9895         ;;
9896     esac
9897     ;;
9898   freebsd12*)
9899     # C++ shared libraries reported to be fairly broken before switch to ELF
9900     ld_shlibs_CXX=no
9901     ;;
9902   freebsd-elf*)
9903     archive_cmds_need_lc_CXX=no
9904     ;;
9905   freebsd*)
9906     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9907     # conventions
9908     ld_shlibs_CXX=yes
9909     ;;
9910   gnu*)
9911     ;;
9912   hpux9*)
9913     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9914     hardcode_libdir_separator_CXX=:
9915     export_dynamic_flag_spec_CXX='${wl}-E'
9916     hardcode_direct_CXX=yes
9917     hardcode_minus_L_CXX=yes # Not in the search PATH,
9918                                 # but as the default
9919                                 # location of the library.
9920
9921     case $cc_basename in
9922     CC)
9923       # FIXME: insert proper C++ library support
9924       ld_shlibs_CXX=no
9925       ;;
9926     aCC)
9927       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'
9928       # Commands to make compiler produce verbose output that lists
9929       # what "hidden" libraries, object files and flags are used when
9930       # linking a shared library.
9931       #
9932       # There doesn't appear to be a way to prevent this compiler from
9933       # explicitly linking system object files so we need to strip them
9934       # from the output so that they don't get included in the library
9935       # dependencies.
9936       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'
9937       ;;
9938     *)
9939       if test "$GXX" = yes; then
9940         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'
9941       else
9942         # FIXME: insert proper C++ library support
9943         ld_shlibs_CXX=no
9944       fi
9945       ;;
9946     esac
9947     ;;
9948   hpux10*|hpux11*)
9949     if test $with_gnu_ld = no; then
9950       case "$host_cpu" in
9951       hppa*64*)
9952         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9953         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9954         hardcode_libdir_separator_CXX=:
9955         ;;
9956       ia64*)
9957         hardcode_libdir_flag_spec_CXX='-L$libdir'
9958         ;;
9959       *)
9960         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9961         hardcode_libdir_separator_CXX=:
9962         export_dynamic_flag_spec_CXX='${wl}-E'
9963         ;;
9964       esac
9965     fi
9966     case "$host_cpu" in
9967     hppa*64*)
9968       hardcode_direct_CXX=no
9969       hardcode_shlibpath_var_CXX=no
9970       ;;
9971     ia64*)
9972       hardcode_direct_CXX=no
9973       hardcode_shlibpath_var_CXX=no
9974       hardcode_minus_L_CXX=yes # Not in the search PATH,
9975                                               # but as the default
9976                                               # location of the library.
9977       ;;
9978     *)
9979       hardcode_direct_CXX=yes
9980       hardcode_minus_L_CXX=yes # Not in the search PATH,
9981                                               # but as the default
9982                                               # location of the library.
9983       ;;
9984     esac
9985
9986     case $cc_basename in
9987       CC)
9988         # FIXME: insert proper C++ library support
9989         ld_shlibs_CXX=no
9990         ;;
9991       aCC)
9992         case "$host_cpu" in
9993         hppa*64*|ia64*)
9994           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9995           ;;
9996         *)
9997           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9998           ;;
9999         esac
10000         # Commands to make compiler produce verbose output that lists
10001         # what "hidden" libraries, object files and flags are used when
10002         # linking a shared library.
10003         #
10004         # There doesn't appear to be a way to prevent this compiler from
10005         # explicitly linking system object files so we need to strip them
10006         # from the output so that they don't get included in the library
10007         # dependencies.
10008         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'
10009         ;;
10010       *)
10011         if test "$GXX" = yes; then
10012           if test $with_gnu_ld = no; then
10013             case "$host_cpu" in
10014             ia64*|hppa*64*)
10015               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10016               ;;
10017             *)
10018               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'
10019               ;;
10020             esac
10021           fi
10022         else
10023           # FIXME: insert proper C++ library support
10024           ld_shlibs_CXX=no
10025         fi
10026         ;;
10027     esac
10028     ;;
10029   irix5* | irix6*)
10030     case $cc_basename in
10031       CC)
10032         # SGI C++
10033         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'
10034
10035         # Archives containing C++ object files must be created using
10036         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10037         # necessary to make sure instantiated templates are included
10038         # in the archive.
10039         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10040         ;;
10041       *)
10042         if test "$GXX" = yes; then
10043           if test "$with_gnu_ld" = no; then
10044             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'
10045           else
10046             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'
10047           fi
10048         fi
10049         link_all_deplibs_CXX=yes
10050         ;;
10051     esac
10052     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10053     hardcode_libdir_separator_CXX=:
10054     ;;
10055   linux*)
10056     case $cc_basename in
10057       KCC)
10058         # Kuck and Associates, Inc. (KAI) C++ Compiler
10059
10060         # KCC will only create a shared library if the output file
10061         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10062         # to its proper name (with version) after linking.
10063         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'
10064         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'
10065         # Commands to make compiler produce verbose output that lists
10066         # what "hidden" libraries, object files and flags are used when
10067         # linking a shared library.
10068         #
10069         # There doesn't appear to be a way to prevent this compiler from
10070         # explicitly linking system object files so we need to strip them
10071         # from the output so that they don't get included in the library
10072         # dependencies.
10073         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'
10074
10075         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10076         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10077
10078         # Archives containing C++ object files must be created using
10079         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10080         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10081         ;;
10082       icpc)
10083         # Intel C++
10084         with_gnu_ld=yes
10085         archive_cmds_need_lc_CXX=no
10086         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10087         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'
10088         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10089         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10090         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10091         ;;
10092       cxx)
10093         # Compaq C++
10094         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10095         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'
10096
10097         runpath_var=LD_RUN_PATH
10098         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10099         hardcode_libdir_separator_CXX=:
10100
10101         # Commands to make compiler produce verbose output that lists
10102         # what "hidden" libraries, object files and flags are used when
10103         # linking a shared library.
10104         #
10105         # There doesn't appear to be a way to prevent this compiler from
10106         # explicitly linking system object files so we need to strip them
10107         # from the output so that they don't get included in the library
10108         # dependencies.
10109         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'
10110         ;;
10111     esac
10112     ;;
10113   lynxos*)
10114     # FIXME: insert proper C++ library support
10115     ld_shlibs_CXX=no
10116     ;;
10117   m88k*)
10118     # FIXME: insert proper C++ library support
10119     ld_shlibs_CXX=no
10120     ;;
10121   mvs*)
10122     case $cc_basename in
10123       cxx)
10124         # FIXME: insert proper C++ library support
10125         ld_shlibs_CXX=no
10126         ;;
10127       *)
10128         # FIXME: insert proper C++ library support
10129         ld_shlibs_CXX=no
10130         ;;
10131     esac
10132     ;;
10133   netbsd*)
10134     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10135       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10136       wlarc=
10137       hardcode_libdir_flag_spec_CXX='-R$libdir'
10138       hardcode_direct_CXX=yes
10139       hardcode_shlibpath_var_CXX=no
10140     fi
10141     # Workaround some broken pre-1.5 toolchains
10142     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10143     ;;
10144   osf3*)
10145     case $cc_basename in
10146       KCC)
10147         # Kuck and Associates, Inc. (KAI) C++ Compiler
10148
10149         # KCC will only create a shared library if the output file
10150         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10151         # to its proper name (with version) after linking.
10152         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'
10153
10154         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10155         hardcode_libdir_separator_CXX=:
10156
10157         # Archives containing C++ object files must be created using
10158         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10159         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10160
10161         ;;
10162       RCC)
10163         # Rational C++ 2.4.1
10164         # FIXME: insert proper C++ library support
10165         ld_shlibs_CXX=no
10166         ;;
10167       cxx)
10168         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10169         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'
10170
10171         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10172         hardcode_libdir_separator_CXX=:
10173
10174         # Commands to make compiler produce verbose output that lists
10175         # what "hidden" libraries, object files and flags are used when
10176         # linking a shared library.
10177         #
10178         # There doesn't appear to be a way to prevent this compiler from
10179         # explicitly linking system object files so we need to strip them
10180         # from the output so that they don't get included in the library
10181         # dependencies.
10182         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'
10183         ;;
10184       *)
10185         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10186           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10187           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'
10188
10189           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$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           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10196
10197         else
10198           # FIXME: insert proper C++ library support
10199           ld_shlibs_CXX=no
10200         fi
10201         ;;
10202     esac
10203     ;;
10204   osf4* | osf5*)
10205     case $cc_basename in
10206       KCC)
10207         # Kuck and Associates, Inc. (KAI) C++ Compiler
10208
10209         # KCC will only create a shared library if the output file
10210         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10211         # to its proper name (with version) after linking.
10212         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'
10213
10214         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10215         hardcode_libdir_separator_CXX=:
10216
10217         # Archives containing C++ object files must be created using
10218         # the KAI C++ compiler.
10219         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10220         ;;
10221       RCC)
10222         # Rational C++ 2.4.1
10223         # FIXME: insert proper C++ library support
10224         ld_shlibs_CXX=no
10225         ;;
10226       cxx)
10227         allow_undefined_flag_CXX=' -expect_unresolved \*'
10228         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'
10229         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10230           echo "-hidden">> $lib.exp~
10231           $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~
10232           $rm $lib.exp'
10233
10234         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10235         hardcode_libdir_separator_CXX=:
10236
10237         # Commands to make compiler produce verbose output that lists
10238         # what "hidden" libraries, object files and flags are used when
10239         # linking a shared library.
10240         #
10241         # There doesn't appear to be a way to prevent this compiler from
10242         # explicitly linking system object files so we need to strip them
10243         # from the output so that they don't get included in the library
10244         # dependencies.
10245         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'
10246         ;;
10247       *)
10248         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10249           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10250          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'
10251
10252           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10253           hardcode_libdir_separator_CXX=:
10254
10255           # Commands to make compiler produce verbose output that lists
10256           # what "hidden" libraries, object files and flags are used when
10257           # linking a shared library.
10258           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10259
10260         else
10261           # FIXME: insert proper C++ library support
10262           ld_shlibs_CXX=no
10263         fi
10264         ;;
10265     esac
10266     ;;
10267   psos*)
10268     # FIXME: insert proper C++ library support
10269     ld_shlibs_CXX=no
10270     ;;
10271   sco*)
10272     archive_cmds_need_lc_CXX=no
10273     case $cc_basename in
10274       CC)
10275         # FIXME: insert proper C++ library support
10276         ld_shlibs_CXX=no
10277         ;;
10278       *)
10279         # FIXME: insert proper C++ library support
10280         ld_shlibs_CXX=no
10281         ;;
10282     esac
10283     ;;
10284   sunos4*)
10285     case $cc_basename in
10286       CC)
10287         # Sun C++ 4.x
10288         # FIXME: insert proper C++ library support
10289         ld_shlibs_CXX=no
10290         ;;
10291       lcc)
10292         # Lucid
10293         # FIXME: insert proper C++ library support
10294         ld_shlibs_CXX=no
10295         ;;
10296       *)
10297         # FIXME: insert proper C++ library support
10298         ld_shlibs_CXX=no
10299         ;;
10300     esac
10301     ;;
10302   solaris*)
10303     case $cc_basename in
10304       CC)
10305         # Sun C++ 4.2, 5.x and Centerline C++
10306         no_undefined_flag_CXX=' -zdefs'
10307         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10308         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10309         $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'
10310
10311         hardcode_libdir_flag_spec_CXX='-R$libdir'
10312         hardcode_shlibpath_var_CXX=no
10313         case $host_os in
10314           solaris2.0-5 | solaris2.0-5.*) ;;
10315           *)
10316             # The C++ compiler is used as linker so we must use $wl
10317             # flag to pass the commands to the underlying system
10318             # linker.
10319             # Supported since Solaris 2.6 (maybe 2.5.1?)
10320             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10321             ;;
10322         esac
10323         link_all_deplibs_CXX=yes
10324
10325         # Commands to make compiler produce verbose output that lists
10326         # what "hidden" libraries, object files and flags are used when
10327         # linking a shared library.
10328         #
10329         # There doesn't appear to be a way to prevent this compiler from
10330         # explicitly linking system object files so we need to strip them
10331         # from the output so that they don't get included in the library
10332         # dependencies.
10333         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'
10334
10335         # Archives containing C++ object files must be created using
10336         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10337         # necessary to make sure instantiated templates are included
10338         # in the archive.
10339         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10340         ;;
10341       gcx)
10342         # Green Hills C++ Compiler
10343         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10344
10345         # The C++ compiler must be used to create the archive.
10346         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10347         ;;
10348       *)
10349         # GNU C++ compiler with Solaris linker
10350         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10351           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10352           if $CC --version | grep -v '^2\.7' > /dev/null; then
10353             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10354             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10355                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10356
10357             # Commands to make compiler produce verbose output that lists
10358             # what "hidden" libraries, object files and flags are used when
10359             # linking a shared library.
10360             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10361           else
10362             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10363             # platform.
10364             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10365             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10366                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10367
10368             # Commands to make compiler produce verbose output that lists
10369             # what "hidden" libraries, object files and flags are used when
10370             # linking a shared library.
10371             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10372           fi
10373
10374           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10375         fi
10376         ;;
10377     esac
10378     ;;
10379   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10380     archive_cmds_need_lc_CXX=no
10381     ;;
10382   tandem*)
10383     case $cc_basename in
10384       NCC)
10385         # NonStop-UX NCC 3.20
10386         # FIXME: insert proper C++ library support
10387         ld_shlibs_CXX=no
10388         ;;
10389       *)
10390         # FIXME: insert proper C++ library support
10391         ld_shlibs_CXX=no
10392         ;;
10393     esac
10394     ;;
10395   vxworks*)
10396     # FIXME: insert proper C++ library support
10397     ld_shlibs_CXX=no
10398     ;;
10399   *)
10400     # FIXME: insert proper C++ library support
10401     ld_shlibs_CXX=no
10402     ;;
10403 esac
10404 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10405 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10406 test "$ld_shlibs_CXX" = no && can_build_shared=no
10407
10408 GCC_CXX="$GXX"
10409 LD_CXX="$LD"
10410
10411 ## CAVEAT EMPTOR:
10412 ## There is no encapsulation within the following macros, do not change
10413 ## the running order or otherwise move them around unless you know exactly
10414 ## what you are doing...
10415
10416 cat > conftest.$ac_ext <<EOF
10417 class Foo
10418 {
10419 public:
10420   Foo (void) { a = 0; }
10421 private:
10422   int a;
10423 };
10424 EOF
10425
10426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10427   (eval $ac_compile) 2>&5
10428   ac_status=$?
10429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430   (exit $ac_status); }; then
10431   # Parse the compiler output and extract the necessary
10432   # objects, libraries and library flags.
10433
10434   # Sentinel used to keep track of whether or not we are before
10435   # the conftest object file.
10436   pre_test_object_deps_done=no
10437
10438   # The `*' in the case matches for architectures that use `case' in
10439   # $output_verbose_cmd can trigger glob expansion during the loop
10440   # eval without this substitution.
10441   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10442
10443   for p in `eval $output_verbose_link_cmd`; do
10444     case $p in
10445
10446     -L* | -R* | -l*)
10447        # Some compilers place space between "-{L,R}" and the path.
10448        # Remove the space.
10449        if test $p = "-L" \
10450           || test $p = "-R"; then
10451          prev=$p
10452          continue
10453        else
10454          prev=
10455        fi
10456
10457        if test "$pre_test_object_deps_done" = no; then
10458          case $p in
10459          -L* | -R*)
10460            # Internal compiler library paths should come after those
10461            # provided the user.  The postdeps already come after the
10462            # user supplied libs so there is no need to process them.
10463            if test -z "$compiler_lib_search_path_CXX"; then
10464              compiler_lib_search_path_CXX="${prev}${p}"
10465            else
10466              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10467            fi
10468            ;;
10469          # The "-l" case would never come before the object being
10470          # linked, so don't bother handling this case.
10471          esac
10472        else
10473          if test -z "$postdeps_CXX"; then
10474            postdeps_CXX="${prev}${p}"
10475          else
10476            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10477          fi
10478        fi
10479        ;;
10480
10481     *.$objext)
10482        # This assumes that the test object file only shows up
10483        # once in the compiler output.
10484        if test "$p" = "conftest.$objext"; then
10485          pre_test_object_deps_done=yes
10486          continue
10487        fi
10488
10489        if test "$pre_test_object_deps_done" = no; then
10490          if test -z "$predep_objects_CXX"; then
10491            predep_objects_CXX="$p"
10492          else
10493            predep_objects_CXX="$predep_objects_CXX $p"
10494          fi
10495        else
10496          if test -z "$postdep_objects_CXX"; then
10497            postdep_objects_CXX="$p"
10498          else
10499            postdep_objects_CXX="$postdep_objects_CXX $p"
10500          fi
10501        fi
10502        ;;
10503
10504     *) ;; # Ignore the rest.
10505
10506     esac
10507   done
10508
10509   # Clean up.
10510   rm -f a.out a.exe
10511 else
10512   echo "libtool.m4: error: problem compiling CXX test program"
10513 fi
10514
10515 $rm -f confest.$objext
10516
10517 case " $postdeps_CXX " in
10518 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10519 esac
10520
10521 lt_prog_compiler_wl_CXX=
10522 lt_prog_compiler_pic_CXX=
10523 lt_prog_compiler_static_CXX=
10524
10525 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10526 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10527
10528   # C++ specific cases for pic, static, wl, etc.
10529   if test "$GXX" = yes; then
10530     lt_prog_compiler_wl_CXX='-Wl,'
10531     lt_prog_compiler_static_CXX='-static'
10532
10533     case $host_os in
10534     aix*)
10535       # All AIX code is PIC.
10536       if test "$host_cpu" = ia64; then
10537         # AIX 5 now supports IA64 processor
10538         lt_prog_compiler_static_CXX='-Bstatic'
10539       fi
10540       ;;
10541     amigaos*)
10542       # FIXME: we need at least 68020 code to build shared libraries, but
10543       # adding the `-m68020' flag to GCC prevents building anything better,
10544       # like `-m68040'.
10545       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10546       ;;
10547     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10548       # PIC is the default for these OSes.
10549       ;;
10550     mingw* | os2* | pw32*)
10551       # This hack is so that the source file can tell whether it is being
10552       # built for inclusion in a dll (and should export symbols for example).
10553       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10554       ;;
10555     darwin* | rhapsody*)
10556       # PIC is the default on this platform
10557       # Common symbols not allowed in MH_DYLIB files
10558       lt_prog_compiler_pic_CXX='-fno-common'
10559       ;;
10560     *djgpp*)
10561       # DJGPP does not support shared libraries at all
10562       lt_prog_compiler_pic_CXX=
10563       ;;
10564     sysv4*MP*)
10565       if test -d /usr/nec; then
10566         lt_prog_compiler_pic_CXX=-Kconform_pic
10567       fi
10568       ;;
10569     hpux*)
10570       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10571       # not for PA HP-UX.
10572       case "$host_cpu" in
10573       hppa*64*|ia64*)
10574         ;;
10575       *)
10576         lt_prog_compiler_pic_CXX='-fPIC'
10577         ;;
10578       esac
10579       ;;
10580     *)
10581       lt_prog_compiler_pic_CXX='-fPIC'
10582       ;;
10583     esac
10584   else
10585     case $host_os in
10586       aix4* | aix5*)
10587         # All AIX code is PIC.
10588         if test "$host_cpu" = ia64; then
10589           # AIX 5 now supports IA64 processor
10590           lt_prog_compiler_static_CXX='-Bstatic'
10591         else
10592           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10593         fi
10594         ;;
10595       chorus*)
10596         case $cc_basename in
10597         cxch68)
10598           # Green Hills C++ Compiler
10599           # _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"
10600           ;;
10601         esac
10602         ;;
10603       dgux*)
10604         case $cc_basename in
10605           ec++)
10606             lt_prog_compiler_pic_CXX='-KPIC'
10607             ;;
10608           ghcx)
10609             # Green Hills C++ Compiler
10610             lt_prog_compiler_pic_CXX='-pic'
10611             ;;
10612           *)
10613             ;;
10614         esac
10615         ;;
10616       freebsd*)
10617         # FreeBSD uses GNU C++
10618         ;;
10619       hpux9* | hpux10* | hpux11*)
10620         case $cc_basename in
10621           CC)
10622             lt_prog_compiler_wl_CXX='-Wl,'
10623             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10624             if test "$host_cpu" != ia64; then
10625               lt_prog_compiler_pic_CXX='+Z'
10626             fi
10627             ;;
10628           aCC)
10629             lt_prog_compiler_wl_CXX='-Wl,'
10630             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10631             case "$host_cpu" in
10632             hppa*64*|ia64*)
10633               # +Z the default
10634               ;;
10635             *)
10636               lt_prog_compiler_pic_CXX='+Z'
10637               ;;
10638             esac
10639             ;;
10640           *)
10641             ;;
10642         esac
10643         ;;
10644       irix5* | irix6* | nonstopux*)
10645         case $cc_basename in
10646           CC)
10647             lt_prog_compiler_wl_CXX='-Wl,'
10648             lt_prog_compiler_static_CXX='-non_shared'
10649             # CC pic flag -KPIC is the default.
10650             ;;
10651           *)
10652             ;;
10653         esac
10654         ;;
10655       linux*)
10656         case $cc_basename in
10657           KCC)
10658             # KAI C++ Compiler
10659             lt_prog_compiler_wl_CXX='--backend -Wl,'
10660             lt_prog_compiler_pic_CXX='-fPIC'
10661             ;;
10662           icpc)
10663             # Intel C++
10664             lt_prog_compiler_wl_CXX='-Wl,'
10665             lt_prog_compiler_pic_CXX='-KPIC'
10666             lt_prog_compiler_static_CXX='-static'
10667             ;;
10668           cxx)
10669             # Compaq C++
10670             # Make sure the PIC flag is empty.  It appears that all Alpha
10671             # Linux and Compaq Tru64 Unix objects are PIC.
10672             lt_prog_compiler_pic_CXX=
10673             lt_prog_compiler_static_CXX='-non_shared'
10674             ;;
10675           *)
10676             ;;
10677         esac
10678         ;;
10679       lynxos*)
10680         ;;
10681       m88k*)
10682         ;;
10683       mvs*)
10684         case $cc_basename in
10685           cxx)
10686             lt_prog_compiler_pic_CXX='-W c,exportall'
10687             ;;
10688           *)
10689             ;;
10690         esac
10691         ;;
10692       netbsd*)
10693         ;;
10694       osf3* | osf4* | osf5*)
10695         case $cc_basename in
10696           KCC)
10697             lt_prog_compiler_wl_CXX='--backend -Wl,'
10698             ;;
10699           RCC)
10700             # Rational C++ 2.4.1
10701             lt_prog_compiler_pic_CXX='-pic'
10702             ;;
10703           cxx)
10704             # Digital/Compaq C++
10705             lt_prog_compiler_wl_CXX='-Wl,'
10706             # Make sure the PIC flag is empty.  It appears that all Alpha
10707             # Linux and Compaq Tru64 Unix objects are PIC.
10708             lt_prog_compiler_pic_CXX=
10709             lt_prog_compiler_static_CXX='-non_shared'
10710             ;;
10711           *)
10712             ;;
10713         esac
10714         ;;
10715       psos*)
10716         ;;
10717       sco*)
10718         case $cc_basename in
10719           CC)
10720             lt_prog_compiler_pic_CXX='-fPIC'
10721             ;;
10722           *)
10723             ;;
10724         esac
10725         ;;
10726       solaris*)
10727         case $cc_basename in
10728           CC)
10729             # Sun C++ 4.2, 5.x and Centerline C++
10730             lt_prog_compiler_pic_CXX='-KPIC'
10731             lt_prog_compiler_static_CXX='-Bstatic'
10732             lt_prog_compiler_wl_CXX='-Qoption ld '
10733             ;;
10734           gcx)
10735             # Green Hills C++ Compiler
10736             lt_prog_compiler_pic_CXX='-PIC'
10737             ;;
10738           *)
10739             ;;
10740         esac
10741         ;;
10742       sunos4*)
10743         case $cc_basename in
10744           CC)
10745             # Sun C++ 4.x
10746             lt_prog_compiler_pic_CXX='-pic'
10747             lt_prog_compiler_static_CXX='-Bstatic'
10748             ;;
10749           lcc)
10750             # Lucid
10751             lt_prog_compiler_pic_CXX='-pic'
10752             ;;
10753           *)
10754             ;;
10755         esac
10756         ;;
10757       tandem*)
10758         case $cc_basename in
10759           NCC)
10760             # NonStop-UX NCC 3.20
10761             lt_prog_compiler_pic_CXX='-KPIC'
10762             ;;
10763           *)
10764             ;;
10765         esac
10766         ;;
10767       unixware*)
10768         ;;
10769       vxworks*)
10770         ;;
10771       *)
10772         lt_prog_compiler_can_build_shared_CXX=no
10773         ;;
10774     esac
10775   fi
10776
10777 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10778 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10779
10780 #
10781 # Check to make sure the PIC flag actually works.
10782 #
10783 if test -n "$lt_prog_compiler_pic_CXX"; then
10784   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10785 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10786 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10787   echo $ECHO_N "(cached) $ECHO_C" >&6
10788 else
10789   lt_prog_compiler_pic_works_CXX=no
10790   ac_outfile=conftest.$ac_objext
10791    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10792    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10793    # Insert the option either (1) after the last *FLAGS variable, or
10794    # (2) before a word containing "conftest.", or (3) at the end.
10795    # Note that $ac_compile itself does not contain backslashes and begins
10796    # with a dollar sign (not a hyphen), so the echo should work correctly.
10797    # The option is referenced via a variable to avoid confusing sed.
10798    lt_compile=`echo "$ac_compile" | $SED \
10799    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10800    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10801    -e 's:$: $lt_compiler_flag:'`
10802    (eval echo "\"\$as_me:10802: $lt_compile\"" >&5)
10803    (eval "$lt_compile" 2>conftest.err)
10804    ac_status=$?
10805    cat conftest.err >&5
10806    echo "$as_me:10806: \$? = $ac_status" >&5
10807    if (exit $ac_status) && test -s "$ac_outfile"; then
10808      # The compiler can only warn and ignore the option if not recognized
10809      # So say no if there are warnings
10810      if test ! -s conftest.err; then
10811        lt_prog_compiler_pic_works_CXX=yes
10812      fi
10813    fi
10814    $rm conftest*
10815
10816 fi
10817 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10818 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10819
10820 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10821     case $lt_prog_compiler_pic_CXX in
10822      "" | " "*) ;;
10823      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10824      esac
10825 else
10826     lt_prog_compiler_pic_CXX=
10827      lt_prog_compiler_can_build_shared_CXX=no
10828 fi
10829
10830 fi
10831 case "$host_os" in
10832   # For platforms which do not support PIC, -DPIC is meaningless:
10833   *djgpp*)
10834     lt_prog_compiler_pic_CXX=
10835     ;;
10836   *)
10837     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10838     ;;
10839 esac
10840
10841 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10842 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10843 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10844   echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846   lt_cv_prog_compiler_c_o_CXX=no
10847    $rm -r conftest 2>/dev/null
10848    mkdir conftest
10849    cd conftest
10850    mkdir out
10851    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10852
10853    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10854    # that will create temporary files in the current directory regardless of
10855    # the output directory.  Thus, making CWD read-only will cause this test
10856    # to fail, enabling locking or at least warning the user not to do parallel
10857    # builds.
10858    chmod -w .
10859
10860    lt_compiler_flag="-o out/conftest2.$ac_objext"
10861    # Insert the option either (1) after the last *FLAGS variable, or
10862    # (2) before a word containing "conftest.", or (3) at the end.
10863    # Note that $ac_compile itself does not contain backslashes and begins
10864    # with a dollar sign (not a hyphen), so the echo should work correctly.
10865    lt_compile=`echo "$ac_compile" | $SED \
10866    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10867    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10868    -e 's:$: $lt_compiler_flag:'`
10869    (eval echo "\"\$as_me:10869: $lt_compile\"" >&5)
10870    (eval "$lt_compile" 2>out/conftest.err)
10871    ac_status=$?
10872    cat out/conftest.err >&5
10873    echo "$as_me:10873: \$? = $ac_status" >&5
10874    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10875    then
10876      # The compiler can only warn and ignore the option if not recognized
10877      # So say no if there are warnings
10878      if test ! -s out/conftest.err; then
10879        lt_cv_prog_compiler_c_o_CXX=yes
10880      fi
10881    fi
10882    chmod u+w .
10883    $rm conftest* out/*
10884    rmdir out
10885    cd ..
10886    rmdir conftest
10887    $rm conftest*
10888
10889 fi
10890 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10891 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10892
10893
10894 hard_links="nottested"
10895 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10896   # do not overwrite the value of need_locks provided by the user
10897   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10898 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10899   hard_links=yes
10900   $rm conftest*
10901   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10902   touch conftest.a
10903   ln conftest.a conftest.b 2>&5 || hard_links=no
10904   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10905   echo "$as_me:$LINENO: result: $hard_links" >&5
10906 echo "${ECHO_T}$hard_links" >&6
10907   if test "$hard_links" = no; then
10908     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10909 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10910     need_locks=warn
10911   fi
10912 else
10913   need_locks=no
10914 fi
10915
10916 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10917 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10918
10919   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10920   case $host_os in
10921   aix4* | aix5*)
10922     # If we're using GNU nm, then we don't want the "-C" option.
10923     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10924     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10925       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'
10926     else
10927       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'
10928     fi
10929     ;;
10930   pw32*)
10931     export_symbols_cmds_CXX="$ltdll_cmds"
10932   ;;
10933   cygwin* | mingw*)
10934     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10935   ;;
10936   *)
10937     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10938   ;;
10939   esac
10940
10941 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10942 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10943 test "$ld_shlibs_CXX" = no && can_build_shared=no
10944
10945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10946 if test "$GCC" = yes; then
10947   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10948 fi
10949
10950 #
10951 # Do we need to explicitly link libc?
10952 #
10953 case "x$archive_cmds_need_lc_CXX" in
10954 x|xyes)
10955   # Assume -lc should be added
10956   archive_cmds_need_lc_CXX=yes
10957
10958   if test "$enable_shared" = yes && test "$GCC" = yes; then
10959     case $archive_cmds_CXX in
10960     *'~'*)
10961       # FIXME: we may have to deal with multi-command sequences.
10962       ;;
10963     '$CC '*)
10964       # Test whether the compiler implicitly links with -lc since on some
10965       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10966       # to ld, don't add -lc before -lgcc.
10967       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10968 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10969       $rm conftest*
10970       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10971
10972       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10973   (eval $ac_compile) 2>&5
10974   ac_status=$?
10975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976   (exit $ac_status); } 2>conftest.err; then
10977         soname=conftest
10978         lib=conftest
10979         libobjs=conftest.$ac_objext
10980         deplibs=
10981         wl=$lt_prog_compiler_wl_CXX
10982         compiler_flags=-v
10983         linker_flags=-v
10984         verstring=
10985         output_objdir=.
10986         libname=conftest
10987         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10988         allow_undefined_flag_CXX=
10989         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10990   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10991   ac_status=$?
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); }
10994         then
10995           archive_cmds_need_lc_CXX=no
10996         else
10997           archive_cmds_need_lc_CXX=yes
10998         fi
10999         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11000       else
11001         cat conftest.err 1>&5
11002       fi
11003       $rm conftest*
11004       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11005 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11006       ;;
11007     esac
11008   fi
11009   ;;
11010 esac
11011
11012 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11013 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11014 hardcode_action_CXX=
11015 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11016    test -n "$runpath_var CXX" || \
11017    test "X$hardcode_automatic_CXX"="Xyes" ; then
11018
11019   # We can hardcode non-existant directories.
11020   if test "$hardcode_direct_CXX" != no &&
11021      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11022      # have to relink, otherwise we might link with an installed library
11023      # when we should be linking with a yet-to-be-installed one
11024      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11025      test "$hardcode_minus_L_CXX" != no; then
11026     # Linking always hardcodes the temporary library directory.
11027     hardcode_action_CXX=relink
11028   else
11029     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11030     hardcode_action_CXX=immediate
11031   fi
11032 else
11033   # We cannot hardcode anything, or else we can only hardcode existing
11034   # directories.
11035   hardcode_action_CXX=unsupported
11036 fi
11037 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11038 echo "${ECHO_T}$hardcode_action_CXX" >&6
11039
11040 if test "$hardcode_action_CXX" = relink; then
11041   # Fast installation is not supported
11042   enable_fast_install=no
11043 elif test "$shlibpath_overrides_runpath" = yes ||
11044      test "$enable_shared" = no; then
11045   # Fast installation is not necessary
11046   enable_fast_install=needless
11047 fi
11048
11049 striplib=
11050 old_striplib=
11051 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11052 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11053 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11054   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11055   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11056   echo "$as_me:$LINENO: result: yes" >&5
11057 echo "${ECHO_T}yes" >&6
11058 else
11059 # FIXME - insert some real tests, host_os isn't really good enough
11060   case $host_os in
11061    darwin*)
11062        if test -n "$STRIP" ; then
11063          striplib="$STRIP -x"
11064          echo "$as_me:$LINENO: result: yes" >&5
11065 echo "${ECHO_T}yes" >&6
11066        else
11067   echo "$as_me:$LINENO: result: no" >&5
11068 echo "${ECHO_T}no" >&6
11069 fi
11070        ;;
11071    *)
11072   echo "$as_me:$LINENO: result: no" >&5
11073 echo "${ECHO_T}no" >&6
11074     ;;
11075   esac
11076 fi
11077
11078 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11079 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11080 library_names_spec=
11081 libname_spec='lib$name'
11082 soname_spec=
11083 shrext=".so"
11084 postinstall_cmds=
11085 postuninstall_cmds=
11086 finish_cmds=
11087 finish_eval=
11088 shlibpath_var=
11089 shlibpath_overrides_runpath=unknown
11090 version_type=none
11091 dynamic_linker="$host_os ld.so"
11092 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11093 if test "$GCC" = yes; then
11094   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11095   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11096     # if the path contains ";" then we assume it to be the separator
11097     # otherwise default to the standard path separator (i.e. ":") - it is
11098     # assumed that no part of a normal pathname contains ";" but that should
11099     # okay in the real world where ";" in dirpaths is itself problematic.
11100     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11101   else
11102     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11103   fi
11104 else
11105   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11106 fi
11107 need_lib_prefix=unknown
11108 hardcode_into_libs=no
11109
11110 # when you set need_version to no, make sure it does not cause -set_version
11111 # flags to be left without arguments
11112 need_version=unknown
11113
11114 case $host_os in
11115 aix3*)
11116   version_type=linux
11117   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11118   shlibpath_var=LIBPATH
11119
11120   # AIX 3 has no versioning support, so we append a major version to the name.
11121   soname_spec='${libname}${release}${shared_ext}$major'
11122   ;;
11123
11124 aix4* | aix5*)
11125   version_type=linux
11126   need_lib_prefix=no
11127   need_version=no
11128   hardcode_into_libs=yes
11129   if test "$host_cpu" = ia64; then
11130     # AIX 5 supports IA64
11131     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11132     shlibpath_var=LD_LIBRARY_PATH
11133   else
11134     # With GCC up to 2.95.x, collect2 would create an import file
11135     # for dependence libraries.  The import file would start with
11136     # the line `#! .'.  This would cause the generated library to
11137     # depend on `.', always an invalid library.  This was fixed in
11138     # development snapshots of GCC prior to 3.0.
11139     case $host_os in
11140       aix4 | aix4.[01] | aix4.[01].*)
11141       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11142            echo ' yes '
11143            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11144         :
11145       else
11146         can_build_shared=no
11147       fi
11148       ;;
11149     esac
11150     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11151     # soname into executable. Probably we can add versioning support to
11152     # collect2, so additional links can be useful in future.
11153     if test "$aix_use_runtimelinking" = yes; then
11154       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11155       # instead of lib<name>.a to let people know that these are not
11156       # typical AIX shared libraries.
11157       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11158     else
11159       # We preserve .a as extension for shared libraries through AIX4.2
11160       # and later when we are not doing run time linking.
11161       library_names_spec='${libname}${release}.a $libname.a'
11162       soname_spec='${libname}${release}${shared_ext}$major'
11163     fi
11164     shlibpath_var=LIBPATH
11165   fi
11166   ;;
11167
11168 amigaos*)
11169   library_names_spec='$libname.ixlibrary $libname.a'
11170   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11171   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'
11172   ;;
11173
11174 beos*)
11175   library_names_spec='${libname}${shared_ext}'
11176   dynamic_linker="$host_os ld.so"
11177   shlibpath_var=LIBRARY_PATH
11178   ;;
11179
11180 bsdi4*)
11181   version_type=linux
11182   need_version=no
11183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184   soname_spec='${libname}${release}${shared_ext}$major'
11185   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11186   shlibpath_var=LD_LIBRARY_PATH
11187   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11188   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11189   # the default ld.so.conf also contains /usr/contrib/lib and
11190   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11191   # libtool to hard-code these into programs
11192   ;;
11193
11194 cygwin* | mingw* | pw32*)
11195   version_type=windows
11196   shrext=".dll"
11197   need_version=no
11198   need_lib_prefix=no
11199
11200   case $GCC,$host_os in
11201   yes,cygwin* | yes,mingw* | yes,pw32*)
11202     library_names_spec='$libname.dll.a'
11203     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11204     postinstall_cmds='base_file=`basename \${file}`~
11205       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11206       dldir=$destdir/`dirname \$dlpath`~
11207       test -d \$dldir || mkdir -p \$dldir~
11208       $install_prog $dir/$dlname \$dldir/$dlname'
11209     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11210       dlpath=$dir/\$dldll~
11211        $rm \$dlpath'
11212     shlibpath_overrides_runpath=yes
11213
11214     case $host_os in
11215     cygwin*)
11216       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11217       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11218       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11219       ;;
11220     mingw*)
11221       # MinGW DLLs use traditional 'lib' prefix
11222       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11223       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11224       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11225         # It is most probably a Windows format PATH printed by
11226         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11227         # path with ; separators, and with drive letters. We can handle the
11228         # drive letters (cygwin fileutils understands them), so leave them,
11229         # especially as we might pass files found there to a mingw objdump,
11230         # which wouldn't understand a cygwinified path. Ahh.
11231         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11232       else
11233         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11234       fi
11235       ;;
11236     pw32*)
11237       # pw32 DLLs use 'pw' prefix rather than 'lib'
11238       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11239       ;;
11240     esac
11241     ;;
11242
11243   *)
11244     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11245     ;;
11246   esac
11247   dynamic_linker='Win32 ld.exe'
11248   # FIXME: first we should search . and the directory the executable is in
11249   shlibpath_var=PATH
11250   ;;
11251
11252 darwin* | rhapsody*)
11253   dynamic_linker="$host_os dyld"
11254   version_type=darwin
11255   need_lib_prefix=no
11256   need_version=no
11257   # FIXME: Relying on posixy $() will cause problems for
11258   #        cross-compilation, but unfortunately the echo tests do not
11259   #        yet detect zsh echo's removal of \ escapes.
11260   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11261   soname_spec='${libname}${release}${major}$shared_ext'
11262   shlibpath_overrides_runpath=yes
11263   shlibpath_var=DYLD_LIBRARY_PATH
11264   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11265   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11266   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11267   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"`
11268   fi
11269   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11270   ;;
11271
11272 dgux*)
11273   version_type=linux
11274   need_lib_prefix=no
11275   need_version=no
11276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11277   soname_spec='${libname}${release}${shared_ext}$major'
11278   shlibpath_var=LD_LIBRARY_PATH
11279   ;;
11280
11281 freebsd1*)
11282   dynamic_linker=no
11283   ;;
11284
11285 freebsd*)
11286   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11287   version_type=freebsd-$objformat
11288   case $version_type in
11289     freebsd-elf*)
11290       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11291       need_version=no
11292       need_lib_prefix=no
11293       ;;
11294     freebsd-*)
11295       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11296       need_version=yes
11297       ;;
11298   esac
11299   shlibpath_var=LD_LIBRARY_PATH
11300   case $host_os in
11301   freebsd2*)
11302     shlibpath_overrides_runpath=yes
11303     ;;
11304   freebsd3.01* | freebsdelf3.01*)
11305     shlibpath_overrides_runpath=yes
11306     hardcode_into_libs=yes
11307     ;;
11308   *) # from 3.2 on
11309     shlibpath_overrides_runpath=no
11310     hardcode_into_libs=yes
11311     ;;
11312   esac
11313   ;;
11314
11315 gnu*)
11316   version_type=linux
11317   need_lib_prefix=no
11318   need_version=no
11319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11320   soname_spec='${libname}${release}${shared_ext}$major'
11321   shlibpath_var=LD_LIBRARY_PATH
11322   hardcode_into_libs=yes
11323   ;;
11324
11325 hpux9* | hpux10* | hpux11*)
11326   # Give a soname corresponding to the major version so that dld.sl refuses to
11327   # link against other versions.
11328   version_type=sunos
11329   need_lib_prefix=no
11330   need_version=no
11331   case "$host_cpu" in
11332   ia64*)
11333     shrext='.so'
11334     hardcode_into_libs=yes
11335     dynamic_linker="$host_os dld.so"
11336     shlibpath_var=LD_LIBRARY_PATH
11337     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11338     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11339     soname_spec='${libname}${release}${shared_ext}$major'
11340     if test "X$HPUX_IA64_MODE" = X32; then
11341       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11342     else
11343       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11344     fi
11345     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11346     ;;
11347    hppa*64*)
11348      shrext='.sl'
11349      hardcode_into_libs=yes
11350      dynamic_linker="$host_os dld.sl"
11351      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11352      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11353      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354      soname_spec='${libname}${release}${shared_ext}$major'
11355      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11356      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11357      ;;
11358    *)
11359     shrext='.sl'
11360     dynamic_linker="$host_os dld.sl"
11361     shlibpath_var=SHLIB_PATH
11362     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11364     soname_spec='${libname}${release}${shared_ext}$major'
11365     ;;
11366   esac
11367   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11368   postinstall_cmds='chmod 555 $lib'
11369   ;;
11370
11371 irix5* | irix6* | nonstopux*)
11372   case $host_os in
11373     nonstopux*) version_type=nonstopux ;;
11374     *)
11375         if test "$lt_cv_prog_gnu_ld" = yes; then
11376                 version_type=linux
11377         else
11378                 version_type=irix
11379         fi ;;
11380   esac
11381   need_lib_prefix=no
11382   need_version=no
11383   soname_spec='${libname}${release}${shared_ext}$major'
11384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11385   case $host_os in
11386   irix5* | nonstopux*)
11387     libsuff= shlibsuff=
11388     ;;
11389   *)
11390     case $LD in # libtool.m4 will add one of these switches to LD
11391     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11392       libsuff= shlibsuff= libmagic=32-bit;;
11393     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11394       libsuff=32 shlibsuff=N32 libmagic=N32;;
11395     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11396       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11397     *) libsuff= shlibsuff= libmagic=never-match;;
11398     esac
11399     ;;
11400   esac
11401   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11402   shlibpath_overrides_runpath=no
11403   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11404   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11405   hardcode_into_libs=yes
11406   ;;
11407
11408 # No shared lib support for Linux oldld, aout, or coff.
11409 linux*oldld* | linux*aout* | linux*coff*)
11410   dynamic_linker=no
11411   ;;
11412
11413 # This must be Linux ELF.
11414 linux*)
11415   version_type=linux
11416   need_lib_prefix=no
11417   need_version=no
11418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11419   soname_spec='${libname}${release}${shared_ext}$major'
11420   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11421   shlibpath_var=LD_LIBRARY_PATH
11422   shlibpath_overrides_runpath=no
11423   # This implies no fast_install, which is unacceptable.
11424   # Some rework will be needed to allow for fast_install
11425   # before this can be enabled.
11426   hardcode_into_libs=yes
11427
11428   # We used to test for /lib/ld.so.1 and disable shared libraries on
11429   # powerpc, because MkLinux only supported shared libraries with the
11430   # GNU dynamic linker.  Since this was broken with cross compilers,
11431   # most powerpc-linux boxes support dynamic linking these days and
11432   # people can always --disable-shared, the test was removed, and we
11433   # assume the GNU/Linux dynamic linker is in use.
11434   dynamic_linker='GNU/Linux ld.so'
11435   ;;
11436
11437 netbsd*)
11438   version_type=sunos
11439   need_lib_prefix=no
11440   need_version=no
11441   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11443     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11444     dynamic_linker='NetBSD (a.out) ld.so'
11445   else
11446     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11447     soname_spec='${libname}${release}${shared_ext}$major'
11448     dynamic_linker='NetBSD ld.elf_so'
11449   fi
11450   shlibpath_var=LD_LIBRARY_PATH
11451   shlibpath_overrides_runpath=yes
11452   hardcode_into_libs=yes
11453   ;;
11454
11455 newsos6)
11456   version_type=linux
11457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11458   shlibpath_var=LD_LIBRARY_PATH
11459   shlibpath_overrides_runpath=yes
11460   ;;
11461
11462 nto-qnx)
11463   version_type=linux
11464   need_lib_prefix=no
11465   need_version=no
11466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11467   soname_spec='${libname}${release}${shared_ext}$major'
11468   shlibpath_var=LD_LIBRARY_PATH
11469   shlibpath_overrides_runpath=yes
11470   ;;
11471
11472 openbsd*)
11473   version_type=sunos
11474   need_lib_prefix=no
11475   need_version=no
11476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11477   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11478   shlibpath_var=LD_LIBRARY_PATH
11479   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11480     case $host_os in
11481       openbsd2.[89] | openbsd2.[89].*)
11482         shlibpath_overrides_runpath=no
11483         ;;
11484       *)
11485         shlibpath_overrides_runpath=yes
11486         ;;
11487       esac
11488   else
11489     shlibpath_overrides_runpath=yes
11490   fi
11491   ;;
11492
11493 os2*)
11494   libname_spec='$name'
11495   shrext=".dll"
11496   need_lib_prefix=no
11497   library_names_spec='$libname${shared_ext} $libname.a'
11498   dynamic_linker='OS/2 ld.exe'
11499   shlibpath_var=LIBPATH
11500   ;;
11501
11502 osf3* | osf4* | osf5*)
11503   version_type=osf
11504   need_lib_prefix=no
11505   need_version=no
11506   soname_spec='${libname}${release}${shared_ext}$major'
11507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508   shlibpath_var=LD_LIBRARY_PATH
11509   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11510   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11511   ;;
11512
11513 sco3.2v5*)
11514   version_type=osf
11515   soname_spec='${libname}${release}${shared_ext}$major'
11516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11517   shlibpath_var=LD_LIBRARY_PATH
11518   ;;
11519
11520 solaris*)
11521   version_type=linux
11522   need_lib_prefix=no
11523   need_version=no
11524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525   soname_spec='${libname}${release}${shared_ext}$major'
11526   shlibpath_var=LD_LIBRARY_PATH
11527   shlibpath_overrides_runpath=yes
11528   hardcode_into_libs=yes
11529   # ldd complains unless libraries are executable
11530   postinstall_cmds='chmod +x $lib'
11531   ;;
11532
11533 sunos4*)
11534   version_type=sunos
11535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11536   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11537   shlibpath_var=LD_LIBRARY_PATH
11538   shlibpath_overrides_runpath=yes
11539   if test "$with_gnu_ld" = yes; then
11540     need_lib_prefix=no
11541   fi
11542   need_version=yes
11543   ;;
11544
11545 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11546   version_type=linux
11547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11548   soname_spec='${libname}${release}${shared_ext}$major'
11549   shlibpath_var=LD_LIBRARY_PATH
11550   case $host_vendor in
11551     sni)
11552       shlibpath_overrides_runpath=no
11553       need_lib_prefix=no
11554       export_dynamic_flag_spec='${wl}-Blargedynsym'
11555       runpath_var=LD_RUN_PATH
11556       ;;
11557     siemens)
11558       need_lib_prefix=no
11559       ;;
11560     motorola)
11561       need_lib_prefix=no
11562       need_version=no
11563       shlibpath_overrides_runpath=no
11564       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11565       ;;
11566   esac
11567   ;;
11568
11569 sysv4*MP*)
11570   if test -d /usr/nec ;then
11571     version_type=linux
11572     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11573     soname_spec='$libname${shared_ext}.$major'
11574     shlibpath_var=LD_LIBRARY_PATH
11575   fi
11576   ;;
11577
11578 uts4*)
11579   version_type=linux
11580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581   soname_spec='${libname}${release}${shared_ext}$major'
11582   shlibpath_var=LD_LIBRARY_PATH
11583   ;;
11584
11585 *)
11586   dynamic_linker=no
11587   ;;
11588 esac
11589 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11590 echo "${ECHO_T}$dynamic_linker" >&6
11591 test "$dynamic_linker" = no && can_build_shared=no
11592
11593 if test "x$enable_dlopen" != xyes; then
11594   enable_dlopen=unknown
11595   enable_dlopen_self=unknown
11596   enable_dlopen_self_static=unknown
11597 else
11598   lt_cv_dlopen=no
11599   lt_cv_dlopen_libs=
11600
11601   case $host_os in
11602   beos*)
11603     lt_cv_dlopen="load_add_on"
11604     lt_cv_dlopen_libs=
11605     lt_cv_dlopen_self=yes
11606     ;;
11607
11608   mingw* | pw32*)
11609     lt_cv_dlopen="LoadLibrary"
11610     lt_cv_dlopen_libs=
11611    ;;
11612
11613   cygwin*)
11614     lt_cv_dlopen="dlopen"
11615     lt_cv_dlopen_libs=
11616    ;;
11617
11618   darwin*)
11619   # if libdl is installed we need to link against it
11620     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11621 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11622 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11623   echo $ECHO_N "(cached) $ECHO_C" >&6
11624 else
11625   ac_check_lib_save_LIBS=$LIBS
11626 LIBS="-ldl  $LIBS"
11627 cat >conftest.$ac_ext <<_ACEOF
11628 #line $LINENO "configure"
11629 /* confdefs.h.  */
11630 _ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h.  */
11634
11635 /* Override any gcc2 internal prototype to avoid an error.  */
11636 #ifdef __cplusplus
11637 extern "C"
11638 #endif
11639 /* We use char because int might match the return type of a gcc2
11640    builtin and then its argument prototype would still apply.  */
11641 char dlopen ();
11642 int
11643 main ()
11644 {
11645 dlopen ();
11646   ;
11647   return 0;
11648 }
11649 _ACEOF
11650 rm -f conftest.$ac_objext conftest$ac_exeext
11651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11652   (eval $ac_link) 2>&5
11653   ac_status=$?
11654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655   (exit $ac_status); } &&
11656          { ac_try='test -s conftest$ac_exeext'
11657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658   (eval $ac_try) 2>&5
11659   ac_status=$?
11660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661   (exit $ac_status); }; }; then
11662   ac_cv_lib_dl_dlopen=yes
11663 else
11664   echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11666
11667 ac_cv_lib_dl_dlopen=no
11668 fi
11669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11670 LIBS=$ac_check_lib_save_LIBS
11671 fi
11672 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11673 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11674 if test $ac_cv_lib_dl_dlopen = yes; then
11675   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11676 else
11677
11678     lt_cv_dlopen="dyld"
11679     lt_cv_dlopen_libs=
11680     lt_cv_dlopen_self=yes
11681
11682 fi
11683
11684    ;;
11685
11686   *)
11687     echo "$as_me:$LINENO: checking for shl_load" >&5
11688 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11689 if test "${ac_cv_func_shl_load+set}" = set; then
11690   echo $ECHO_N "(cached) $ECHO_C" >&6
11691 else
11692   cat >conftest.$ac_ext <<_ACEOF
11693 #line $LINENO "configure"
11694 /* confdefs.h.  */
11695 _ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h.  */
11699 /* System header to define __stub macros and hopefully few prototypes,
11700     which can conflict with char shl_load (); below.
11701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11702     <limits.h> exists even on freestanding compilers.  */
11703 #ifdef __STDC__
11704 # include <limits.h>
11705 #else
11706 # include <assert.h>
11707 #endif
11708 /* Override any gcc2 internal prototype to avoid an error.  */
11709 #ifdef __cplusplus
11710 extern "C"
11711 {
11712 #endif
11713 /* We use char because int might match the return type of a gcc2
11714    builtin and then its argument prototype would still apply.  */
11715 char shl_load ();
11716 /* The GNU C library defines this for functions which it implements
11717     to always fail with ENOSYS.  Some functions are actually named
11718     something starting with __ and the normal name is an alias.  */
11719 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11720 choke me
11721 #else
11722 char (*f) () = shl_load;
11723 #endif
11724 #ifdef __cplusplus
11725 }
11726 #endif
11727
11728 int
11729 main ()
11730 {
11731 return f != shl_load;
11732   ;
11733   return 0;
11734 }
11735 _ACEOF
11736 rm -f conftest.$ac_objext conftest$ac_exeext
11737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11738   (eval $ac_link) 2>&5
11739   ac_status=$?
11740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741   (exit $ac_status); } &&
11742          { ac_try='test -s conftest$ac_exeext'
11743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744   (eval $ac_try) 2>&5
11745   ac_status=$?
11746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747   (exit $ac_status); }; }; then
11748   ac_cv_func_shl_load=yes
11749 else
11750   echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11752
11753 ac_cv_func_shl_load=no
11754 fi
11755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11756 fi
11757 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11758 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11759 if test $ac_cv_func_shl_load = yes; then
11760   lt_cv_dlopen="shl_load"
11761 else
11762   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11763 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11764 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11765   echo $ECHO_N "(cached) $ECHO_C" >&6
11766 else
11767   ac_check_lib_save_LIBS=$LIBS
11768 LIBS="-ldld  $LIBS"
11769 cat >conftest.$ac_ext <<_ACEOF
11770 #line $LINENO "configure"
11771 /* confdefs.h.  */
11772 _ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h.  */
11776
11777 /* Override any gcc2 internal prototype to avoid an error.  */
11778 #ifdef __cplusplus
11779 extern "C"
11780 #endif
11781 /* We use char because int might match the return type of a gcc2
11782    builtin and then its argument prototype would still apply.  */
11783 char shl_load ();
11784 int
11785 main ()
11786 {
11787 shl_load ();
11788   ;
11789   return 0;
11790 }
11791 _ACEOF
11792 rm -f conftest.$ac_objext conftest$ac_exeext
11793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11794   (eval $ac_link) 2>&5
11795   ac_status=$?
11796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797   (exit $ac_status); } &&
11798          { ac_try='test -s conftest$ac_exeext'
11799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800   (eval $ac_try) 2>&5
11801   ac_status=$?
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); }; }; then
11804   ac_cv_lib_dld_shl_load=yes
11805 else
11806   echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11808
11809 ac_cv_lib_dld_shl_load=no
11810 fi
11811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11812 LIBS=$ac_check_lib_save_LIBS
11813 fi
11814 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11815 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11816 if test $ac_cv_lib_dld_shl_load = yes; then
11817   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11818 else
11819   echo "$as_me:$LINENO: checking for dlopen" >&5
11820 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11821 if test "${ac_cv_func_dlopen+set}" = set; then
11822   echo $ECHO_N "(cached) $ECHO_C" >&6
11823 else
11824   cat >conftest.$ac_ext <<_ACEOF
11825 #line $LINENO "configure"
11826 /* confdefs.h.  */
11827 _ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h.  */
11831 /* System header to define __stub macros and hopefully few prototypes,
11832     which can conflict with char dlopen (); below.
11833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11834     <limits.h> exists even on freestanding compilers.  */
11835 #ifdef __STDC__
11836 # include <limits.h>
11837 #else
11838 # include <assert.h>
11839 #endif
11840 /* Override any gcc2 internal prototype to avoid an error.  */
11841 #ifdef __cplusplus
11842 extern "C"
11843 {
11844 #endif
11845 /* We use char because int might match the return type of a gcc2
11846    builtin and then its argument prototype would still apply.  */
11847 char dlopen ();
11848 /* The GNU C library defines this for functions which it implements
11849     to always fail with ENOSYS.  Some functions are actually named
11850     something starting with __ and the normal name is an alias.  */
11851 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11852 choke me
11853 #else
11854 char (*f) () = dlopen;
11855 #endif
11856 #ifdef __cplusplus
11857 }
11858 #endif
11859
11860 int
11861 main ()
11862 {
11863 return f != dlopen;
11864   ;
11865   return 0;
11866 }
11867 _ACEOF
11868 rm -f conftest.$ac_objext conftest$ac_exeext
11869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11870   (eval $ac_link) 2>&5
11871   ac_status=$?
11872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873   (exit $ac_status); } &&
11874          { ac_try='test -s conftest$ac_exeext'
11875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876   (eval $ac_try) 2>&5
11877   ac_status=$?
11878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879   (exit $ac_status); }; }; then
11880   ac_cv_func_dlopen=yes
11881 else
11882   echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11884
11885 ac_cv_func_dlopen=no
11886 fi
11887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11888 fi
11889 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11890 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11891 if test $ac_cv_func_dlopen = yes; then
11892   lt_cv_dlopen="dlopen"
11893 else
11894   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11895 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11896 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11897   echo $ECHO_N "(cached) $ECHO_C" >&6
11898 else
11899   ac_check_lib_save_LIBS=$LIBS
11900 LIBS="-ldl  $LIBS"
11901 cat >conftest.$ac_ext <<_ACEOF
11902 #line $LINENO "configure"
11903 /* confdefs.h.  */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h.  */
11908
11909 /* Override any gcc2 internal prototype to avoid an error.  */
11910 #ifdef __cplusplus
11911 extern "C"
11912 #endif
11913 /* We use char because int might match the return type of a gcc2
11914    builtin and then its argument prototype would still apply.  */
11915 char dlopen ();
11916 int
11917 main ()
11918 {
11919 dlopen ();
11920   ;
11921   return 0;
11922 }
11923 _ACEOF
11924 rm -f conftest.$ac_objext conftest$ac_exeext
11925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11926   (eval $ac_link) 2>&5
11927   ac_status=$?
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); } &&
11930          { ac_try='test -s conftest$ac_exeext'
11931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932   (eval $ac_try) 2>&5
11933   ac_status=$?
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); }; }; then
11936   ac_cv_lib_dl_dlopen=yes
11937 else
11938   echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11940
11941 ac_cv_lib_dl_dlopen=no
11942 fi
11943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11944 LIBS=$ac_check_lib_save_LIBS
11945 fi
11946 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11947 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11948 if test $ac_cv_lib_dl_dlopen = yes; then
11949   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11950 else
11951   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11952 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11953 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11954   echo $ECHO_N "(cached) $ECHO_C" >&6
11955 else
11956   ac_check_lib_save_LIBS=$LIBS
11957 LIBS="-lsvld  $LIBS"
11958 cat >conftest.$ac_ext <<_ACEOF
11959 #line $LINENO "configure"
11960 /* confdefs.h.  */
11961 _ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h.  */
11965
11966 /* Override any gcc2 internal prototype to avoid an error.  */
11967 #ifdef __cplusplus
11968 extern "C"
11969 #endif
11970 /* We use char because int might match the return type of a gcc2
11971    builtin and then its argument prototype would still apply.  */
11972 char dlopen ();
11973 int
11974 main ()
11975 {
11976 dlopen ();
11977   ;
11978   return 0;
11979 }
11980 _ACEOF
11981 rm -f conftest.$ac_objext conftest$ac_exeext
11982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11983   (eval $ac_link) 2>&5
11984   ac_status=$?
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); } &&
11987          { ac_try='test -s conftest$ac_exeext'
11988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989   (eval $ac_try) 2>&5
11990   ac_status=$?
11991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992   (exit $ac_status); }; }; then
11993   ac_cv_lib_svld_dlopen=yes
11994 else
11995   echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11997
11998 ac_cv_lib_svld_dlopen=no
11999 fi
12000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12001 LIBS=$ac_check_lib_save_LIBS
12002 fi
12003 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12004 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12005 if test $ac_cv_lib_svld_dlopen = yes; then
12006   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12007 else
12008   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12009 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12010 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12011   echo $ECHO_N "(cached) $ECHO_C" >&6
12012 else
12013   ac_check_lib_save_LIBS=$LIBS
12014 LIBS="-ldld  $LIBS"
12015 cat >conftest.$ac_ext <<_ACEOF
12016 #line $LINENO "configure"
12017 /* confdefs.h.  */
12018 _ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h.  */
12022
12023 /* Override any gcc2 internal prototype to avoid an error.  */
12024 #ifdef __cplusplus
12025 extern "C"
12026 #endif
12027 /* We use char because int might match the return type of a gcc2
12028    builtin and then its argument prototype would still apply.  */
12029 char dld_link ();
12030 int
12031 main ()
12032 {
12033 dld_link ();
12034   ;
12035   return 0;
12036 }
12037 _ACEOF
12038 rm -f conftest.$ac_objext conftest$ac_exeext
12039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12040   (eval $ac_link) 2>&5
12041   ac_status=$?
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); } &&
12044          { ac_try='test -s conftest$ac_exeext'
12045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046   (eval $ac_try) 2>&5
12047   ac_status=$?
12048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049   (exit $ac_status); }; }; then
12050   ac_cv_lib_dld_dld_link=yes
12051 else
12052   echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12054
12055 ac_cv_lib_dld_dld_link=no
12056 fi
12057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12058 LIBS=$ac_check_lib_save_LIBS
12059 fi
12060 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12061 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12062 if test $ac_cv_lib_dld_dld_link = yes; then
12063   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12064 fi
12065
12066
12067 fi
12068
12069
12070 fi
12071
12072
12073 fi
12074
12075
12076 fi
12077
12078
12079 fi
12080
12081     ;;
12082   esac
12083
12084   if test "x$lt_cv_dlopen" != xno; then
12085     enable_dlopen=yes
12086   else
12087     enable_dlopen=no
12088   fi
12089
12090   case $lt_cv_dlopen in
12091   dlopen)
12092     save_CPPFLAGS="$CPPFLAGS"
12093     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12094
12095     save_LDFLAGS="$LDFLAGS"
12096     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12097
12098     save_LIBS="$LIBS"
12099     LIBS="$lt_cv_dlopen_libs $LIBS"
12100
12101     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12102 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12103 if test "${lt_cv_dlopen_self+set}" = set; then
12104   echo $ECHO_N "(cached) $ECHO_C" >&6
12105 else
12106           if test "$cross_compiling" = yes; then :
12107   lt_cv_dlopen_self=cross
12108 else
12109   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12110   lt_status=$lt_dlunknown
12111   cat > conftest.$ac_ext <<EOF
12112 #line 12112 "configure"
12113 #include "confdefs.h"
12114
12115 #if HAVE_DLFCN_H
12116 #include <dlfcn.h>
12117 #endif
12118
12119 #include <stdio.h>
12120
12121 #ifdef RTLD_GLOBAL
12122 #  define LT_DLGLOBAL           RTLD_GLOBAL
12123 #else
12124 #  ifdef DL_GLOBAL
12125 #    define LT_DLGLOBAL         DL_GLOBAL
12126 #  else
12127 #    define LT_DLGLOBAL         0
12128 #  endif
12129 #endif
12130
12131 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12132    find out it does not work in some platform. */
12133 #ifndef LT_DLLAZY_OR_NOW
12134 #  ifdef RTLD_LAZY
12135 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12136 #  else
12137 #    ifdef DL_LAZY
12138 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12139 #    else
12140 #      ifdef RTLD_NOW
12141 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12142 #      else
12143 #        ifdef DL_NOW
12144 #          define LT_DLLAZY_OR_NOW      DL_NOW
12145 #        else
12146 #          define LT_DLLAZY_OR_NOW      0
12147 #        endif
12148 #      endif
12149 #    endif
12150 #  endif
12151 #endif
12152
12153 #ifdef __cplusplus
12154 extern "C" void exit (int);
12155 #endif
12156
12157 void fnord() { int i=42;}
12158 int main ()
12159 {
12160   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12161   int status = $lt_dlunknown;
12162
12163   if (self)
12164     {
12165       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12166       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12167       /* dlclose (self); */
12168     }
12169
12170     exit (status);
12171 }
12172 EOF
12173   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12174   (eval $ac_link) 2>&5
12175   ac_status=$?
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12178     (./conftest; exit; ) 2>/dev/null
12179     lt_status=$?
12180     case x$lt_status in
12181       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12182       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12183       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12184     esac
12185   else :
12186     # compilation failed
12187     lt_cv_dlopen_self=no
12188   fi
12189 fi
12190 rm -fr conftest*
12191
12192
12193 fi
12194 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12195 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12196
12197     if test "x$lt_cv_dlopen_self" = xyes; then
12198       LDFLAGS="$LDFLAGS $link_static_flag"
12199       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12200 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12201 if test "${lt_cv_dlopen_self_static+set}" = set; then
12202   echo $ECHO_N "(cached) $ECHO_C" >&6
12203 else
12204           if test "$cross_compiling" = yes; then :
12205   lt_cv_dlopen_self_static=cross
12206 else
12207   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12208   lt_status=$lt_dlunknown
12209   cat > conftest.$ac_ext <<EOF
12210 #line 12210 "configure"
12211 #include "confdefs.h"
12212
12213 #if HAVE_DLFCN_H
12214 #include <dlfcn.h>
12215 #endif
12216
12217 #include <stdio.h>
12218
12219 #ifdef RTLD_GLOBAL
12220 #  define LT_DLGLOBAL           RTLD_GLOBAL
12221 #else
12222 #  ifdef DL_GLOBAL
12223 #    define LT_DLGLOBAL         DL_GLOBAL
12224 #  else
12225 #    define LT_DLGLOBAL         0
12226 #  endif
12227 #endif
12228
12229 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12230    find out it does not work in some platform. */
12231 #ifndef LT_DLLAZY_OR_NOW
12232 #  ifdef RTLD_LAZY
12233 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12234 #  else
12235 #    ifdef DL_LAZY
12236 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12237 #    else
12238 #      ifdef RTLD_NOW
12239 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12240 #      else
12241 #        ifdef DL_NOW
12242 #          define LT_DLLAZY_OR_NOW      DL_NOW
12243 #        else
12244 #          define LT_DLLAZY_OR_NOW      0
12245 #        endif
12246 #      endif
12247 #    endif
12248 #  endif
12249 #endif
12250
12251 #ifdef __cplusplus
12252 extern "C" void exit (int);
12253 #endif
12254
12255 void fnord() { int i=42;}
12256 int main ()
12257 {
12258   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12259   int status = $lt_dlunknown;
12260
12261   if (self)
12262     {
12263       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12264       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12265       /* dlclose (self); */
12266     }
12267
12268     exit (status);
12269 }
12270 EOF
12271   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12272   (eval $ac_link) 2>&5
12273   ac_status=$?
12274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12276     (./conftest; exit; ) 2>/dev/null
12277     lt_status=$?
12278     case x$lt_status in
12279       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12280       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12281       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12282     esac
12283   else :
12284     # compilation failed
12285     lt_cv_dlopen_self_static=no
12286   fi
12287 fi
12288 rm -fr conftest*
12289
12290
12291 fi
12292 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12293 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12294     fi
12295
12296     CPPFLAGS="$save_CPPFLAGS"
12297     LDFLAGS="$save_LDFLAGS"
12298     LIBS="$save_LIBS"
12299     ;;
12300   esac
12301
12302   case $lt_cv_dlopen_self in
12303   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12304   *) enable_dlopen_self=unknown ;;
12305   esac
12306
12307   case $lt_cv_dlopen_self_static in
12308   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12309   *) enable_dlopen_self_static=unknown ;;
12310   esac
12311 fi
12312
12313
12314 # The else clause should only fire when bootstrapping the
12315 # libtool distribution, otherwise you forgot to ship ltmain.sh
12316 # with your package, and you will get complaints that there are
12317 # no rules to generate ltmain.sh.
12318 if test -f "$ltmain"; then
12319   # See if we are running on zsh, and set the options which allow our commands through
12320   # without removal of \ escapes.
12321   if test -n "${ZSH_VERSION+set}" ; then
12322     setopt NO_GLOB_SUBST
12323   fi
12324   # Now quote all the things that may contain metacharacters while being
12325   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12326   # variables and quote the copies for generation of the libtool script.
12327   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12328     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12329     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12330     deplibs_check_method reload_flag reload_cmds need_locks \
12331     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12332     lt_cv_sys_global_symbol_to_c_name_address \
12333     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12334     old_postinstall_cmds old_postuninstall_cmds \
12335     compiler_CXX \
12336     CC_CXX \
12337     LD_CXX \
12338     lt_prog_compiler_wl_CXX \
12339     lt_prog_compiler_pic_CXX \
12340     lt_prog_compiler_static_CXX \
12341     lt_prog_compiler_no_builtin_flag_CXX \
12342     export_dynamic_flag_spec_CXX \
12343     thread_safe_flag_spec_CXX \
12344     whole_archive_flag_spec_CXX \
12345     enable_shared_with_static_runtimes_CXX \
12346     old_archive_cmds_CXX \
12347     old_archive_from_new_cmds_CXX \
12348     predep_objects_CXX \
12349     postdep_objects_CXX \
12350     predeps_CXX \
12351     postdeps_CXX \
12352     compiler_lib_search_path_CXX \
12353     archive_cmds_CXX \
12354     archive_expsym_cmds_CXX \
12355     postinstall_cmds_CXX \
12356     postuninstall_cmds_CXX \
12357     old_archive_from_expsyms_cmds_CXX \
12358     allow_undefined_flag_CXX \
12359     no_undefined_flag_CXX \
12360     export_symbols_cmds_CXX \
12361     hardcode_libdir_flag_spec_CXX \
12362     hardcode_libdir_flag_spec_ld_CXX \
12363     hardcode_libdir_separator_CXX \
12364     hardcode_automatic_CXX \
12365     module_cmds_CXX \
12366     module_expsym_cmds_CXX \
12367     lt_cv_prog_compiler_c_o_CXX \
12368     exclude_expsyms_CXX \
12369     include_expsyms_CXX; do
12370
12371     case $var in
12372     old_archive_cmds_CXX | \
12373     old_archive_from_new_cmds_CXX | \
12374     archive_cmds_CXX | \
12375     archive_expsym_cmds_CXX | \
12376     module_cmds_CXX | \
12377     module_expsym_cmds_CXX | \
12378     old_archive_from_expsyms_cmds_CXX | \
12379     export_symbols_cmds_CXX | \
12380     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12381     postinstall_cmds | postuninstall_cmds | \
12382     old_postinstall_cmds | old_postuninstall_cmds | \
12383     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12384       # Double-quote double-evaled strings.
12385       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12386       ;;
12387     *)
12388       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12389       ;;
12390     esac
12391   done
12392
12393   case $lt_echo in
12394   *'\$0 --fallback-echo"')
12395     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12396     ;;
12397   esac
12398
12399 cfgfile="$ofile"
12400
12401   cat <<__EOF__ >> "$cfgfile"
12402 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12403
12404 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12405
12406 # Shell to use when invoking shell scripts.
12407 SHELL=$lt_SHELL
12408
12409 # Whether or not to build shared libraries.
12410 build_libtool_libs=$enable_shared
12411
12412 # Whether or not to build static libraries.
12413 build_old_libs=$enable_static
12414
12415 # Whether or not to add -lc for building shared libraries.
12416 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12417
12418 # Whether or not to disallow shared libs when runtime libs are static
12419 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12420
12421 # Whether or not to optimize for fast installation.
12422 fast_install=$enable_fast_install
12423
12424 # The host system.
12425 host_alias=$host_alias
12426 host=$host
12427
12428 # An echo program that does not interpret backslashes.
12429 echo=$lt_echo
12430
12431 # The archiver.
12432 AR=$lt_AR
12433 AR_FLAGS=$lt_AR_FLAGS
12434
12435 # A C compiler.
12436 LTCC=$lt_LTCC
12437
12438 # A language-specific compiler.
12439 CC=$lt_compiler_CXX
12440
12441 # Is the compiler the GNU C compiler?
12442 with_gcc=$GCC_CXX
12443
12444 # An ERE matcher.
12445 EGREP=$lt_EGREP
12446
12447 # The linker used to build libraries.
12448 LD=$lt_LD_CXX
12449
12450 # Whether we need hard or soft links.
12451 LN_S=$lt_LN_S
12452
12453 # A BSD-compatible nm program.
12454 NM=$lt_NM
12455
12456 # A symbol stripping program
12457 STRIP=$STRIP
12458
12459 # Used to examine libraries when file_magic_cmd begins "file"
12460 MAGIC_CMD=$MAGIC_CMD
12461
12462 # Used on cygwin: DLL creation program.
12463 DLLTOOL="$DLLTOOL"
12464
12465 # Used on cygwin: object dumper.
12466 OBJDUMP="$OBJDUMP"
12467
12468 # Used on cygwin: assembler.
12469 AS="$AS"
12470
12471 # The name of the directory that contains temporary libtool files.
12472 objdir=$objdir
12473
12474 # How to create reloadable object files.
12475 reload_flag=$lt_reload_flag
12476 reload_cmds=$lt_reload_cmds
12477
12478 # How to pass a linker flag through the compiler.
12479 wl=$lt_lt_prog_compiler_wl_CXX
12480
12481 # Object file suffix (normally "o").
12482 objext="$ac_objext"
12483
12484 # Old archive suffix (normally "a").
12485 libext="$libext"
12486
12487 # Shared library suffix (normally ".so").
12488 shrext='$shrext'
12489
12490 # Executable file suffix (normally "").
12491 exeext="$exeext"
12492
12493 # Additional compiler flags for building library objects.
12494 pic_flag=$lt_lt_prog_compiler_pic_CXX
12495 pic_mode=$pic_mode
12496
12497 # What is the maximum length of a command?
12498 max_cmd_len=$lt_cv_sys_max_cmd_len
12499
12500 # Does compiler simultaneously support -c and -o options?
12501 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12502
12503 # Must we lock files when doing compilation ?
12504 need_locks=$lt_need_locks
12505
12506 # Do we need the lib prefix for modules?
12507 need_lib_prefix=$need_lib_prefix
12508
12509 # Do we need a version for libraries?
12510 need_version=$need_version
12511
12512 # Whether dlopen is supported.
12513 dlopen_support=$enable_dlopen
12514
12515 # Whether dlopen of programs is supported.
12516 dlopen_self=$enable_dlopen_self
12517
12518 # Whether dlopen of statically linked programs is supported.
12519 dlopen_self_static=$enable_dlopen_self_static
12520
12521 # Compiler flag to prevent dynamic linking.
12522 link_static_flag=$lt_lt_prog_compiler_static_CXX
12523
12524 # Compiler flag to turn off builtin functions.
12525 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12526
12527 # Compiler flag to allow reflexive dlopens.
12528 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12529
12530 # Compiler flag to generate shared objects directly from archives.
12531 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12532
12533 # Compiler flag to generate thread-safe objects.
12534 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12535
12536 # Library versioning type.
12537 version_type=$version_type
12538
12539 # Format of library name prefix.
12540 libname_spec=$lt_libname_spec
12541
12542 # List of archive names.  First name is the real one, the rest are links.
12543 # The last name is the one that the linker finds with -lNAME.
12544 library_names_spec=$lt_library_names_spec
12545
12546 # The coded name of the library, if different from the real name.
12547 soname_spec=$lt_soname_spec
12548
12549 # Commands used to build and install an old-style archive.
12550 RANLIB=$lt_RANLIB
12551 old_archive_cmds=$lt_old_archive_cmds_CXX
12552 old_postinstall_cmds=$lt_old_postinstall_cmds
12553 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12554
12555 # Create an old-style archive from a shared archive.
12556 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12557
12558 # Create a temporary old-style archive to link instead of a shared archive.
12559 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12560
12561 # Commands used to build and install a shared archive.
12562 archive_cmds=$lt_archive_cmds_CXX
12563 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12564 postinstall_cmds=$lt_postinstall_cmds
12565 postuninstall_cmds=$lt_postuninstall_cmds
12566
12567 # Commands used to build a loadable module (assumed same as above if empty)
12568 module_cmds=$lt_module_cmds_CXX
12569 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12570
12571 # Commands to strip libraries.
12572 old_striplib=$lt_old_striplib
12573 striplib=$lt_striplib
12574
12575 # Dependencies to place before the objects being linked to create a
12576 # shared library.
12577 predep_objects=$lt_predep_objects_CXX
12578
12579 # Dependencies to place after the objects being linked to create a
12580 # shared library.
12581 postdep_objects=$lt_postdep_objects_CXX
12582
12583 # Dependencies to place before the objects being linked to create a
12584 # shared library.
12585 predeps=$lt_predeps_CXX
12586
12587 # Dependencies to place after the objects being linked to create a
12588 # shared library.
12589 postdeps=$lt_postdeps_CXX
12590
12591 # The library search path used internally by the compiler when linking
12592 # a shared library.
12593 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12594
12595 # Method to check whether dependent libraries are shared objects.
12596 deplibs_check_method=$lt_deplibs_check_method
12597
12598 # Command to use when deplibs_check_method == file_magic.
12599 file_magic_cmd=$lt_file_magic_cmd
12600
12601 # Flag that allows shared libraries with undefined symbols to be built.
12602 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12603
12604 # Flag that forces no undefined symbols.
12605 no_undefined_flag=$lt_no_undefined_flag_CXX
12606
12607 # Commands used to finish a libtool library installation in a directory.
12608 finish_cmds=$lt_finish_cmds
12609
12610 # Same as above, but a single script fragment to be evaled but not shown.
12611 finish_eval=$lt_finish_eval
12612
12613 # Take the output of nm and produce a listing of raw symbols and C names.
12614 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12615
12616 # Transform the output of nm in a proper C declaration
12617 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12618
12619 # Transform the output of nm in a C name address pair
12620 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12621
12622 # This is the shared library runtime path variable.
12623 runpath_var=$runpath_var
12624
12625 # This is the shared library path variable.
12626 shlibpath_var=$shlibpath_var
12627
12628 # Is shlibpath searched before the hard-coded library search path?
12629 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12630
12631 # How to hardcode a shared library path into an executable.
12632 hardcode_action=$hardcode_action_CXX
12633
12634 # Whether we should hardcode library paths into libraries.
12635 hardcode_into_libs=$hardcode_into_libs
12636
12637 # Flag to hardcode \$libdir into a binary during linking.
12638 # This must work even if \$libdir does not exist.
12639 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12640
12641 # If ld is used when linking, flag to hardcode \$libdir into
12642 # a binary during linking. This must work even if \$libdir does
12643 # not exist.
12644 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12645
12646 # Whether we need a single -rpath flag with a separated argument.
12647 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12648
12649 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12650 # resulting binary.
12651 hardcode_direct=$hardcode_direct_CXX
12652
12653 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12654 # resulting binary.
12655 hardcode_minus_L=$hardcode_minus_L_CXX
12656
12657 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12658 # the resulting binary.
12659 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12660
12661 # Set to yes if building a shared library automatically hardcodes DIR into the library
12662 # and all subsequent libraries and executables linked against it.
12663 hardcode_automatic=$hardcode_automatic_CXX
12664
12665 # Variables whose values should be saved in libtool wrapper scripts and
12666 # restored at relink time.
12667 variables_saved_for_relink="$variables_saved_for_relink"
12668
12669 # Whether libtool must link a program against all its dependency libraries.
12670 link_all_deplibs=$link_all_deplibs_CXX
12671
12672 # Compile-time system search path for libraries
12673 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12674
12675 # Run-time system search path for libraries
12676 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12677
12678 # Fix the shell variable \$srcfile for the compiler.
12679 fix_srcfile_path="$fix_srcfile_path_CXX"
12680
12681 # Set to yes if exported symbols are required.
12682 always_export_symbols=$always_export_symbols_CXX
12683
12684 # The commands to list exported symbols.
12685 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12686
12687 # The commands to extract the exported symbol list from a shared archive.
12688 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12689
12690 # Symbols that should not be listed in the preloaded symbols.
12691 exclude_expsyms=$lt_exclude_expsyms_CXX
12692
12693 # Symbols that must always be exported.
12694 include_expsyms=$lt_include_expsyms_CXX
12695
12696 # ### END LIBTOOL TAG CONFIG: $tagname
12697
12698 __EOF__
12699
12700
12701 else
12702   # If there is no Makefile yet, we rely on a make rule to execute
12703   # `config.status --recheck' to rerun these tests and create the
12704   # libtool script then.
12705   test -f Makefile && make "$ltmain"
12706 fi
12707
12708
12709 ac_ext=c
12710 ac_cpp='$CPP $CPPFLAGS'
12711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12714
12715 CC=$lt_save_CC
12716 LDCXX=$LD
12717 LD=$lt_save_LD
12718 GCC=$lt_save_GCC
12719 with_gnu_ldcxx=$with_gnu_ld
12720 with_gnu_ld=$lt_save_with_gnu_ld
12721 lt_cv_path_LDCXX=$lt_cv_path_LD
12722 lt_cv_path_LD=$lt_save_path_LD
12723 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12724 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12725
12726         else
12727           tagname=""
12728         fi
12729         ;;
12730
12731       F77)
12732         if test -n "$F77" && test "X$F77" != "Xno"; then
12733
12734 ac_ext=f
12735 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12736 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12737 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12738
12739
12740 archive_cmds_need_lc_F77=no
12741 allow_undefined_flag_F77=
12742 always_export_symbols_F77=no
12743 archive_expsym_cmds_F77=
12744 export_dynamic_flag_spec_F77=
12745 hardcode_direct_F77=no
12746 hardcode_libdir_flag_spec_F77=
12747 hardcode_libdir_flag_spec_ld_F77=
12748 hardcode_libdir_separator_F77=
12749 hardcode_minus_L_F77=no
12750 hardcode_automatic_F77=no
12751 module_cmds_F77=
12752 module_expsym_cmds_F77=
12753 link_all_deplibs_F77=unknown
12754 old_archive_cmds_F77=$old_archive_cmds
12755 no_undefined_flag_F77=
12756 whole_archive_flag_spec_F77=
12757 enable_shared_with_static_runtimes_F77=no
12758
12759 # Source file extension for f77 test sources.
12760 ac_ext=f
12761
12762 # Object file extension for compiled f77 test sources.
12763 objext=o
12764 objext_F77=$objext
12765
12766 # Code to be used in simple compile tests
12767 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12768
12769 # Code to be used in simple link tests
12770 lt_simple_link_test_code="      program t\n      end\n"
12771
12772 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12773
12774 # If no C compiler was specified, use CC.
12775 LTCC=${LTCC-"$CC"}
12776
12777 # Allow CC to be a program name with arguments.
12778 compiler=$CC
12779
12780
12781 # Allow CC to be a program name with arguments.
12782 lt_save_CC="$CC"
12783 CC=${F77-"f77"}
12784 compiler=$CC
12785 compiler_F77=$CC
12786 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12787
12788 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12789 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12790 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12791 echo "${ECHO_T}$can_build_shared" >&6
12792
12793 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12794 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12795 test "$can_build_shared" = "no" && enable_shared=no
12796
12797 # On AIX, shared libraries and static libraries use the same namespace, and
12798 # are all built from PIC.
12799 case "$host_os" in
12800 aix3*)
12801   test "$enable_shared" = yes && enable_static=no
12802   if test -n "$RANLIB"; then
12803     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12804     postinstall_cmds='$RANLIB $lib'
12805   fi
12806   ;;
12807 aix4*)
12808   test "$enable_shared" = yes && enable_static=no
12809   ;;
12810 esac
12811 echo "$as_me:$LINENO: result: $enable_shared" >&5
12812 echo "${ECHO_T}$enable_shared" >&6
12813
12814 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12815 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12816 # Make sure either enable_shared or enable_static is yes.
12817 test "$enable_shared" = yes || enable_static=yes
12818 echo "$as_me:$LINENO: result: $enable_static" >&5
12819 echo "${ECHO_T}$enable_static" >&6
12820
12821 test "$ld_shlibs_F77" = no && can_build_shared=no
12822
12823 GCC_F77="$G77"
12824 LD_F77="$LD"
12825
12826 lt_prog_compiler_wl_F77=
12827 lt_prog_compiler_pic_F77=
12828 lt_prog_compiler_static_F77=
12829
12830 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12831 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12832
12833   if test "$GCC" = yes; then
12834     lt_prog_compiler_wl_F77='-Wl,'
12835     lt_prog_compiler_static_F77='-static'
12836
12837     case $host_os in
12838       aix*)
12839       # All AIX code is PIC.
12840       if test "$host_cpu" = ia64; then
12841         # AIX 5 now supports IA64 processor
12842         lt_prog_compiler_static_F77='-Bstatic'
12843       fi
12844       ;;
12845
12846     amigaos*)
12847       # FIXME: we need at least 68020 code to build shared libraries, but
12848       # adding the `-m68020' flag to GCC prevents building anything better,
12849       # like `-m68040'.
12850       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12851       ;;
12852
12853     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12854       # PIC is the default for these OSes.
12855       ;;
12856
12857     mingw* | pw32* | os2*)
12858       # This hack is so that the source file can tell whether it is being
12859       # built for inclusion in a dll (and should export symbols for example).
12860       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12861       ;;
12862
12863     darwin* | rhapsody*)
12864       # PIC is the default on this platform
12865       # Common symbols not allowed in MH_DYLIB files
12866       lt_prog_compiler_pic_F77='-fno-common'
12867       ;;
12868
12869     msdosdjgpp*)
12870       # Just because we use GCC doesn't mean we suddenly get shared libraries
12871       # on systems that don't support them.
12872       lt_prog_compiler_can_build_shared_F77=no
12873       enable_shared=no
12874       ;;
12875
12876     sysv4*MP*)
12877       if test -d /usr/nec; then
12878         lt_prog_compiler_pic_F77=-Kconform_pic
12879       fi
12880       ;;
12881
12882     hpux*)
12883       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12884       # not for PA HP-UX.
12885       case "$host_cpu" in
12886       hppa*64*|ia64*)
12887         # +Z the default
12888         ;;
12889       *)
12890         lt_prog_compiler_pic_F77='-fPIC'
12891         ;;
12892       esac
12893       ;;
12894
12895     *)
12896       lt_prog_compiler_pic_F77='-fPIC'
12897       ;;
12898     esac
12899   else
12900     # PORTME Check for flag to pass linker flags through the system compiler.
12901     case $host_os in
12902     aix*)
12903       lt_prog_compiler_wl_F77='-Wl,'
12904       if test "$host_cpu" = ia64; then
12905         # AIX 5 now supports IA64 processor
12906         lt_prog_compiler_static_F77='-Bstatic'
12907       else
12908         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12909       fi
12910       ;;
12911
12912     mingw* | pw32* | os2*)
12913       # This hack is so that the source file can tell whether it is being
12914       # built for inclusion in a dll (and should export symbols for example).
12915       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12916       ;;
12917
12918     hpux9* | hpux10* | hpux11*)
12919       lt_prog_compiler_wl_F77='-Wl,'
12920       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12921       # not for PA HP-UX.
12922       case "$host_cpu" in
12923       hppa*64*|ia64*)
12924         # +Z the default
12925         ;;
12926       *)
12927         lt_prog_compiler_pic_F77='+Z'
12928         ;;
12929       esac
12930       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12931       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12932       ;;
12933
12934     irix5* | irix6* | nonstopux*)
12935       lt_prog_compiler_wl_F77='-Wl,'
12936       # PIC (with -KPIC) is the default.
12937       lt_prog_compiler_static_F77='-non_shared'
12938       ;;
12939
12940     newsos6)
12941       lt_prog_compiler_pic_F77='-KPIC'
12942       lt_prog_compiler_static_F77='-Bstatic'
12943       ;;
12944
12945     linux*)
12946       case $CC in
12947       icc|ecc)
12948         lt_prog_compiler_wl_F77='-Wl,'
12949         lt_prog_compiler_pic_F77='-KPIC'
12950         lt_prog_compiler_static_F77='-static'
12951         ;;
12952       ccc)
12953         lt_prog_compiler_wl_F77='-Wl,'
12954         # All Alpha code is PIC.
12955         lt_prog_compiler_static_F77='-non_shared'
12956         ;;
12957       esac
12958       ;;
12959
12960     osf3* | osf4* | osf5*)
12961       lt_prog_compiler_wl_F77='-Wl,'
12962       # All OSF/1 code is PIC.
12963       lt_prog_compiler_static_F77='-non_shared'
12964       ;;
12965
12966     sco3.2v5*)
12967       lt_prog_compiler_pic_F77='-Kpic'
12968       lt_prog_compiler_static_F77='-dn'
12969       ;;
12970
12971     solaris*)
12972       lt_prog_compiler_wl_F77='-Wl,'
12973       lt_prog_compiler_pic_F77='-KPIC'
12974       lt_prog_compiler_static_F77='-Bstatic'
12975       ;;
12976
12977     sunos4*)
12978       lt_prog_compiler_wl_F77='-Qoption ld '
12979       lt_prog_compiler_pic_F77='-PIC'
12980       lt_prog_compiler_static_F77='-Bstatic'
12981       ;;
12982
12983     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12984       lt_prog_compiler_wl_F77='-Wl,'
12985       lt_prog_compiler_pic_F77='-KPIC'
12986       lt_prog_compiler_static_F77='-Bstatic'
12987       ;;
12988
12989     sysv4*MP*)
12990       if test -d /usr/nec ;then
12991         lt_prog_compiler_pic_F77='-Kconform_pic'
12992         lt_prog_compiler_static_F77='-Bstatic'
12993       fi
12994       ;;
12995
12996     uts4*)
12997       lt_prog_compiler_pic_F77='-pic'
12998       lt_prog_compiler_static_F77='-Bstatic'
12999       ;;
13000
13001     *)
13002       lt_prog_compiler_can_build_shared_F77=no
13003       ;;
13004     esac
13005   fi
13006
13007 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13008 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13009
13010 #
13011 # Check to make sure the PIC flag actually works.
13012 #
13013 if test -n "$lt_prog_compiler_pic_F77"; then
13014   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13015 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13016 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13017   echo $ECHO_N "(cached) $ECHO_C" >&6
13018 else
13019   lt_prog_compiler_pic_works_F77=no
13020   ac_outfile=conftest.$ac_objext
13021    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13022    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13023    # Insert the option either (1) after the last *FLAGS variable, or
13024    # (2) before a word containing "conftest.", or (3) at the end.
13025    # Note that $ac_compile itself does not contain backslashes and begins
13026    # with a dollar sign (not a hyphen), so the echo should work correctly.
13027    # The option is referenced via a variable to avoid confusing sed.
13028    lt_compile=`echo "$ac_compile" | $SED \
13029    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13030    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13031    -e 's:$: $lt_compiler_flag:'`
13032    (eval echo "\"\$as_me:13032: $lt_compile\"" >&5)
13033    (eval "$lt_compile" 2>conftest.err)
13034    ac_status=$?
13035    cat conftest.err >&5
13036    echo "$as_me:13036: \$? = $ac_status" >&5
13037    if (exit $ac_status) && test -s "$ac_outfile"; then
13038      # The compiler can only warn and ignore the option if not recognized
13039      # So say no if there are warnings
13040      if test ! -s conftest.err; then
13041        lt_prog_compiler_pic_works_F77=yes
13042      fi
13043    fi
13044    $rm conftest*
13045
13046 fi
13047 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13048 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13049
13050 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13051     case $lt_prog_compiler_pic_F77 in
13052      "" | " "*) ;;
13053      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13054      esac
13055 else
13056     lt_prog_compiler_pic_F77=
13057      lt_prog_compiler_can_build_shared_F77=no
13058 fi
13059
13060 fi
13061 case "$host_os" in
13062   # For platforms which do not support PIC, -DPIC is meaningless:
13063   *djgpp*)
13064     lt_prog_compiler_pic_F77=
13065     ;;
13066   *)
13067     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13068     ;;
13069 esac
13070
13071 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13072 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13073 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13074   echo $ECHO_N "(cached) $ECHO_C" >&6
13075 else
13076   lt_cv_prog_compiler_c_o_F77=no
13077    $rm -r conftest 2>/dev/null
13078    mkdir conftest
13079    cd conftest
13080    mkdir out
13081    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13082
13083    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13084    # that will create temporary files in the current directory regardless of
13085    # the output directory.  Thus, making CWD read-only will cause this test
13086    # to fail, enabling locking or at least warning the user not to do parallel
13087    # builds.
13088    chmod -w .
13089
13090    lt_compiler_flag="-o out/conftest2.$ac_objext"
13091    # Insert the option either (1) after the last *FLAGS variable, or
13092    # (2) before a word containing "conftest.", or (3) at the end.
13093    # Note that $ac_compile itself does not contain backslashes and begins
13094    # with a dollar sign (not a hyphen), so the echo should work correctly.
13095    lt_compile=`echo "$ac_compile" | $SED \
13096    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13097    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13098    -e 's:$: $lt_compiler_flag:'`
13099    (eval echo "\"\$as_me:13099: $lt_compile\"" >&5)
13100    (eval "$lt_compile" 2>out/conftest.err)
13101    ac_status=$?
13102    cat out/conftest.err >&5
13103    echo "$as_me:13103: \$? = $ac_status" >&5
13104    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13105    then
13106      # The compiler can only warn and ignore the option if not recognized
13107      # So say no if there are warnings
13108      if test ! -s out/conftest.err; then
13109        lt_cv_prog_compiler_c_o_F77=yes
13110      fi
13111    fi
13112    chmod u+w .
13113    $rm conftest* out/*
13114    rmdir out
13115    cd ..
13116    rmdir conftest
13117    $rm conftest*
13118
13119 fi
13120 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13121 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13122
13123
13124 hard_links="nottested"
13125 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13126   # do not overwrite the value of need_locks provided by the user
13127   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13128 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13129   hard_links=yes
13130   $rm conftest*
13131   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13132   touch conftest.a
13133   ln conftest.a conftest.b 2>&5 || hard_links=no
13134   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13135   echo "$as_me:$LINENO: result: $hard_links" >&5
13136 echo "${ECHO_T}$hard_links" >&6
13137   if test "$hard_links" = no; then
13138     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13139 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13140     need_locks=warn
13141   fi
13142 else
13143   need_locks=no
13144 fi
13145
13146 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13147 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13148
13149   runpath_var=
13150   allow_undefined_flag_F77=
13151   enable_shared_with_static_runtimes_F77=no
13152   archive_cmds_F77=
13153   archive_expsym_cmds_F77=
13154   old_archive_From_new_cmds_F77=
13155   old_archive_from_expsyms_cmds_F77=
13156   export_dynamic_flag_spec_F77=
13157   whole_archive_flag_spec_F77=
13158   thread_safe_flag_spec_F77=
13159   hardcode_libdir_flag_spec_F77=
13160   hardcode_libdir_flag_spec_ld_F77=
13161   hardcode_libdir_separator_F77=
13162   hardcode_direct_F77=no
13163   hardcode_minus_L_F77=no
13164   hardcode_shlibpath_var_F77=unsupported
13165   link_all_deplibs_F77=unknown
13166   hardcode_automatic_F77=no
13167   module_cmds_F77=
13168   module_expsym_cmds_F77=
13169   always_export_symbols_F77=no
13170   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13171   # include_expsyms should be a list of space-separated symbols to be *always*
13172   # included in the symbol list
13173   include_expsyms_F77=
13174   # exclude_expsyms can be an extended regexp of symbols to exclude
13175   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13176   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13177   # as well as any symbol that contains `d'.
13178   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13179   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13180   # platforms (ab)use it in PIC code, but their linkers get confused if
13181   # the symbol is explicitly referenced.  Since portable code cannot
13182   # rely on this symbol name, it's probably fine to never include it in
13183   # preloaded symbol tables.
13184   extract_expsyms_cmds=
13185
13186   case $host_os in
13187   cygwin* | mingw* | pw32*)
13188     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13189     # When not using gcc, we currently assume that we are using
13190     # Microsoft Visual C++.
13191     if test "$GCC" != yes; then
13192       with_gnu_ld=no
13193     fi
13194     ;;
13195   openbsd*)
13196     with_gnu_ld=no
13197     ;;
13198   esac
13199
13200   ld_shlibs_F77=yes
13201   if test "$with_gnu_ld" = yes; then
13202     # If archive_cmds runs LD, not CC, wlarc should be empty
13203     wlarc='${wl}'
13204
13205     # See if GNU ld supports shared libraries.
13206     case $host_os in
13207     aix3* | aix4* | aix5*)
13208       # On AIX/PPC, the GNU linker is very broken
13209       if test "$host_cpu" != ia64; then
13210         ld_shlibs_F77=no
13211         cat <<EOF 1>&2
13212
13213 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13214 *** to be unable to reliably create shared libraries on AIX.
13215 *** Therefore, libtool is disabling shared libraries support.  If you
13216 *** really care for shared libraries, you may want to modify your PATH
13217 *** so that a non-GNU linker is found, and then restart.
13218
13219 EOF
13220       fi
13221       ;;
13222
13223     amigaos*)
13224       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)'
13225       hardcode_libdir_flag_spec_F77='-L$libdir'
13226       hardcode_minus_L_F77=yes
13227
13228       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13229       # that the semantics of dynamic libraries on AmigaOS, at least up
13230       # to version 4, is to share data among multiple programs linked
13231       # with the same dynamic library.  Since this doesn't match the
13232       # behavior of shared libraries on other platforms, we can't use
13233       # them.
13234       ld_shlibs_F77=no
13235       ;;
13236
13237     beos*)
13238       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13239         allow_undefined_flag_F77=unsupported
13240         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13241         # support --undefined.  This deserves some investigation.  FIXME
13242         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13243       else
13244         ld_shlibs_F77=no
13245       fi
13246       ;;
13247
13248     cygwin* | mingw* | pw32*)
13249       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13250       # as there is no search path for DLLs.
13251       hardcode_libdir_flag_spec_F77='-L$libdir'
13252       allow_undefined_flag_F77=unsupported
13253       always_export_symbols_F77=no
13254       enable_shared_with_static_runtimes_F77=yes
13255       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13256
13257       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13258         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13259         # If the export-symbols file already is a .def file (1st line
13260         # is EXPORTS), use it as is; otherwise, prepend...
13261         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13262           cp $export_symbols $output_objdir/$soname.def;
13263         else
13264           echo EXPORTS > $output_objdir/$soname.def;
13265           cat $export_symbols >> $output_objdir/$soname.def;
13266         fi~
13267         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13268       else
13269         ld_shlibs=no
13270       fi
13271       ;;
13272
13273     netbsd*)
13274       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13275         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13276         wlarc=
13277       else
13278         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13279         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13280       fi
13281       ;;
13282
13283     solaris* | sysv5*)
13284       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13285         ld_shlibs_F77=no
13286         cat <<EOF 1>&2
13287
13288 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13289 *** create shared libraries on Solaris systems.  Therefore, libtool
13290 *** is disabling shared libraries support.  We urge you to upgrade GNU
13291 *** binutils to release 2.9.1 or newer.  Another option is to modify
13292 *** your PATH or compiler configuration so that the native linker is
13293 *** used, and then restart.
13294
13295 EOF
13296       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13297         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13298         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13299       else
13300         ld_shlibs_F77=no
13301       fi
13302       ;;
13303
13304     sunos4*)
13305       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13306       wlarc=
13307       hardcode_direct_F77=yes
13308       hardcode_shlibpath_var_F77=no
13309       ;;
13310
13311     *)
13312       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13313         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13314         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13315       else
13316         ld_shlibs_F77=no
13317       fi
13318       ;;
13319     esac
13320
13321     if test "$ld_shlibs_F77" = yes; then
13322       runpath_var=LD_RUN_PATH
13323       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13324       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13325       # ancient GNU ld didn't support --whole-archive et. al.
13326       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13327         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13328       else
13329         whole_archive_flag_spec_F77=
13330       fi
13331     fi
13332   else
13333     # PORTME fill in a description of your system's linker (not GNU ld)
13334     case $host_os in
13335     aix3*)
13336       allow_undefined_flag_F77=unsupported
13337       always_export_symbols_F77=yes
13338       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'
13339       # Note: this linker hardcodes the directories in LIBPATH if there
13340       # are no directories specified by -L.
13341       hardcode_minus_L_F77=yes
13342       if test "$GCC" = yes && test -z "$link_static_flag"; then
13343         # Neither direct hardcoding nor static linking is supported with a
13344         # broken collect2.
13345         hardcode_direct_F77=unsupported
13346       fi
13347       ;;
13348
13349     aix4* | aix5*)
13350       if test "$host_cpu" = ia64; then
13351         # On IA64, the linker does run time linking by default, so we don't
13352         # have to do anything special.
13353         aix_use_runtimelinking=no
13354         exp_sym_flag='-Bexport'
13355         no_entry_flag=""
13356       else
13357         # If we're using GNU nm, then we don't want the "-C" option.
13358         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13359         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13360           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'
13361         else
13362           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'
13363         fi
13364         aix_use_runtimelinking=no
13365
13366         # Test if we are trying to use run time linking or normal
13367         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13368         # need to do runtime linking.
13369         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13370           for ld_flag in $LDFLAGS; do
13371           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13372             aix_use_runtimelinking=yes
13373             break
13374           fi
13375           done
13376         esac
13377
13378         exp_sym_flag='-bexport'
13379         no_entry_flag='-bnoentry'
13380       fi
13381
13382       # When large executables or shared objects are built, AIX ld can
13383       # have problems creating the table of contents.  If linking a library
13384       # or program results in "error TOC overflow" add -mminimal-toc to
13385       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13386       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13387
13388       archive_cmds_F77=''
13389       hardcode_direct_F77=yes
13390       hardcode_libdir_separator_F77=':'
13391       link_all_deplibs_F77=yes
13392
13393       if test "$GCC" = yes; then
13394         case $host_os in aix4.012|aix4.012.*)
13395         # We only want to do this on AIX 4.2 and lower, the check
13396         # below for broken collect2 doesn't work under 4.3+
13397           collect2name=`${CC} -print-prog-name=collect2`
13398           if test -f "$collect2name" && \
13399            strings "$collect2name" | grep resolve_lib_name >/dev/null
13400           then
13401           # We have reworked collect2
13402           hardcode_direct_F77=yes
13403           else
13404           # We have old collect2
13405           hardcode_direct_F77=unsupported
13406           # It fails to find uninstalled libraries when the uninstalled
13407           # path is not listed in the libpath.  Setting hardcode_minus_L
13408           # to unsupported forces relinking
13409           hardcode_minus_L_F77=yes
13410           hardcode_libdir_flag_spec_F77='-L$libdir'
13411           hardcode_libdir_separator_F77=
13412           fi
13413         esac
13414         shared_flag='-shared'
13415       else
13416         # not using gcc
13417         if test "$host_cpu" = ia64; then
13418         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13419         # chokes on -Wl,-G. The following line is correct:
13420           shared_flag='-G'
13421         else
13422         if test "$aix_use_runtimelinking" = yes; then
13423             shared_flag='${wl}-G'
13424           else
13425             shared_flag='${wl}-bM:SRE'
13426         fi
13427         fi
13428       fi
13429
13430       # It seems that -bexpall does not export symbols beginning with
13431       # underscore (_), so it is better to generate a list of symbols to export.
13432       always_export_symbols_F77=yes
13433       if test "$aix_use_runtimelinking" = yes; then
13434         # Warning - without using the other runtime loading flags (-brtl),
13435         # -berok will link without error, but may produce a broken library.
13436         allow_undefined_flag_F77='-berok'
13437        # Determine the default libpath from the value encoded in an empty executable.
13438        cat >conftest.$ac_ext <<_ACEOF
13439       program main
13440
13441       end
13442 _ACEOF
13443 rm -f conftest.$ac_objext conftest$ac_exeext
13444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13445   (eval $ac_link) 2>&5
13446   ac_status=$?
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); } &&
13449          { ac_try='test -s conftest$ac_exeext'
13450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451   (eval $ac_try) 2>&5
13452   ac_status=$?
13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); }; }; then
13455
13456 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13457 }'`
13458 # Check for a 64-bit object if we didn't find anything.
13459 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; }
13460 }'`; fi
13461 else
13462   echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13464
13465 fi
13466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13468
13469        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13470         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"
13471        else
13472         if test "$host_cpu" = ia64; then
13473           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13474           allow_undefined_flag_F77="-z nodefs"
13475           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"
13476         else
13477          # Determine the default libpath from the value encoded in an empty executable.
13478          cat >conftest.$ac_ext <<_ACEOF
13479       program main
13480
13481       end
13482 _ACEOF
13483 rm -f conftest.$ac_objext conftest$ac_exeext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13485   (eval $ac_link) 2>&5
13486   ac_status=$?
13487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488   (exit $ac_status); } &&
13489          { ac_try='test -s conftest$ac_exeext'
13490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491   (eval $ac_try) 2>&5
13492   ac_status=$?
13493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494   (exit $ac_status); }; }; then
13495
13496 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13497 }'`
13498 # Check for a 64-bit object if we didn't find anything.
13499 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; }
13500 }'`; fi
13501 else
13502   echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.$ac_ext >&5
13504
13505 fi
13506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13507 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13508
13509          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13510           # Warning - without using the other run time loading flags,
13511           # -berok will link without error, but may produce a broken library.
13512           no_undefined_flag_F77=' ${wl}-bernotok'
13513           allow_undefined_flag_F77=' ${wl}-berok'
13514           # -bexpall does not export symbols beginning with underscore (_)
13515           always_export_symbols_F77=yes
13516           # Exported symbols can be pulled into shared objects from archives
13517           whole_archive_flag_spec_F77=' '
13518           archive_cmds_need_lc_F77=yes
13519           # This is similar to how AIX traditionally builds it's shared libraries.
13520           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'
13521         fi
13522       fi
13523       ;;
13524
13525     amigaos*)
13526       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)'
13527       hardcode_libdir_flag_spec_F77='-L$libdir'
13528       hardcode_minus_L_F77=yes
13529       # see comment about different semantics on the GNU ld section
13530       ld_shlibs_F77=no
13531       ;;
13532
13533     bsdi4*)
13534       export_dynamic_flag_spec_F77=-rdynamic
13535       ;;
13536
13537     cygwin* | mingw* | pw32*)
13538       # When not using gcc, we currently assume that we are using
13539       # Microsoft Visual C++.
13540       # hardcode_libdir_flag_spec is actually meaningless, as there is
13541       # no search path for DLLs.
13542       hardcode_libdir_flag_spec_F77=' '
13543       allow_undefined_flag_F77=unsupported
13544       # Tell ltmain to make .lib files, not .a files.
13545       libext=lib
13546       # Tell ltmain to make .dll files, not .so files.
13547       shrext=".dll"
13548       # FIXME: Setting linknames here is a bad hack.
13549       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13550       # The linker will automatically build a .lib file if we build a DLL.
13551       old_archive_From_new_cmds_F77='true'
13552       # FIXME: Should let the user specify the lib program.
13553       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13554       fix_srcfile_path='`cygpath -w "$srcfile"`'
13555       enable_shared_with_static_runtimes_F77=yes
13556       ;;
13557
13558     darwin* | rhapsody*)
13559     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13560       archive_cmds_need_lc_F77=no
13561       case "$host_os" in
13562       rhapsody* | darwin1.[012])
13563         allow_undefined_flag_F77='-undefined suppress'
13564         ;;
13565       *) # Darwin 1.3 on
13566         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13567         ;;
13568       esac
13569       # FIXME: Relying on posixy $() will cause problems for
13570       #        cross-compilation, but unfortunately the echo tests do not
13571       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13572       #        `"' quotes if we put them in here... so don't!
13573         lt_int_apple_cc_single_mod=no
13574         output_verbose_link_cmd='echo'
13575         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13576           lt_int_apple_cc_single_mod=yes
13577         fi
13578         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13579           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13580         else
13581         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'
13582       fi
13583       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13584       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13585         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13586           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}'
13587         else
13588           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}'
13589         fi
13590           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}'
13591       hardcode_direct_F77=no
13592       hardcode_automatic_F77=yes
13593       hardcode_shlibpath_var_F77=unsupported
13594       whole_archive_flag_spec_F77='-all_load $convenience'
13595       link_all_deplibs_F77=yes
13596     fi
13597       ;;
13598
13599     dgux*)
13600       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13601       hardcode_libdir_flag_spec_F77='-L$libdir'
13602       hardcode_shlibpath_var_F77=no
13603       ;;
13604
13605     freebsd1*)
13606       ld_shlibs_F77=no
13607       ;;
13608
13609     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13610     # support.  Future versions do this automatically, but an explicit c++rt0.o
13611     # does not break anything, and helps significantly (at the cost of a little
13612     # extra space).
13613     freebsd2.2*)
13614       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13615       hardcode_libdir_flag_spec_F77='-R$libdir'
13616       hardcode_direct_F77=yes
13617       hardcode_shlibpath_var_F77=no
13618       ;;
13619
13620     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13621     freebsd2*)
13622       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13623       hardcode_direct_F77=yes
13624       hardcode_minus_L_F77=yes
13625       hardcode_shlibpath_var_F77=no
13626       ;;
13627
13628     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13629     freebsd*)
13630       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13631       hardcode_libdir_flag_spec_F77='-R$libdir'
13632       hardcode_direct_F77=yes
13633       hardcode_shlibpath_var_F77=no
13634       ;;
13635
13636     hpux9*)
13637       if test "$GCC" = yes; then
13638         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'
13639       else
13640         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'
13641       fi
13642       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13643       hardcode_libdir_separator_F77=:
13644       hardcode_direct_F77=yes
13645
13646       # hardcode_minus_L: Not really in the search PATH,
13647       # but as the default location of the library.
13648       hardcode_minus_L_F77=yes
13649       export_dynamic_flag_spec_F77='${wl}-E'
13650       ;;
13651
13652     hpux10* | hpux11*)
13653       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13654         case "$host_cpu" in
13655         hppa*64*|ia64*)
13656           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13657           ;;
13658         *)
13659           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13660           ;;
13661         esac
13662       else
13663         case "$host_cpu" in
13664         hppa*64*|ia64*)
13665           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13666           ;;
13667         *)
13668           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13669           ;;
13670         esac
13671       fi
13672       if test "$with_gnu_ld" = no; then
13673         case "$host_cpu" in
13674         hppa*64*)
13675           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13676           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13677           hardcode_libdir_separator_F77=:
13678           hardcode_direct_F77=no
13679           hardcode_shlibpath_var_F77=no
13680           ;;
13681         ia64*)
13682           hardcode_libdir_flag_spec_F77='-L$libdir'
13683           hardcode_direct_F77=no
13684           hardcode_shlibpath_var_F77=no
13685
13686           # hardcode_minus_L: Not really in the search PATH,
13687           # but as the default location of the library.
13688           hardcode_minus_L_F77=yes
13689           ;;
13690         *)
13691           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13692           hardcode_libdir_separator_F77=:
13693           hardcode_direct_F77=yes
13694           export_dynamic_flag_spec_F77='${wl}-E'
13695
13696           # hardcode_minus_L: Not really in the search PATH,
13697           # but as the default location of the library.
13698           hardcode_minus_L_F77=yes
13699           ;;
13700         esac
13701       fi
13702       ;;
13703
13704     irix5* | irix6* | nonstopux*)
13705       if test "$GCC" = yes; then
13706         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'
13707       else
13708         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'
13709         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13710       fi
13711       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13712       hardcode_libdir_separator_F77=:
13713       link_all_deplibs_F77=yes
13714       ;;
13715
13716     netbsd*)
13717       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13718         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13719       else
13720         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13721       fi
13722       hardcode_libdir_flag_spec_F77='-R$libdir'
13723       hardcode_direct_F77=yes
13724       hardcode_shlibpath_var_F77=no
13725       ;;
13726
13727     newsos6)
13728       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13729       hardcode_direct_F77=yes
13730       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13731       hardcode_libdir_separator_F77=:
13732       hardcode_shlibpath_var_F77=no
13733       ;;
13734
13735     openbsd*)
13736       hardcode_direct_F77=yes
13737       hardcode_shlibpath_var_F77=no
13738       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13739         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13740         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13741         export_dynamic_flag_spec_F77='${wl}-E'
13742       else
13743        case $host_os in
13744          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13745            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13746            hardcode_libdir_flag_spec_F77='-R$libdir'
13747            ;;
13748          *)
13749            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13750            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13751            ;;
13752        esac
13753       fi
13754       ;;
13755
13756     os2*)
13757       hardcode_libdir_flag_spec_F77='-L$libdir'
13758       hardcode_minus_L_F77=yes
13759       allow_undefined_flag_F77=unsupported
13760       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'
13761       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13762       ;;
13763
13764     osf3*)
13765       if test "$GCC" = yes; then
13766         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13767         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'
13768       else
13769         allow_undefined_flag_F77=' -expect_unresolved \*'
13770         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'
13771       fi
13772       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13773       hardcode_libdir_separator_F77=:
13774       ;;
13775
13776     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13777       if test "$GCC" = yes; then
13778         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13779         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'
13780         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13781       else
13782         allow_undefined_flag_F77=' -expect_unresolved \*'
13783         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'
13784         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~
13785         $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'
13786
13787         # Both c and cxx compiler support -rpath directly
13788         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13789       fi
13790       hardcode_libdir_separator_F77=:
13791       ;;
13792
13793     sco3.2v5*)
13794       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13795       hardcode_shlibpath_var_F77=no
13796       export_dynamic_flag_spec_F77='${wl}-Bexport'
13797       runpath_var=LD_RUN_PATH
13798       hardcode_runpath_var=yes
13799       ;;
13800
13801     solaris*)
13802       no_undefined_flag_F77=' -z text'
13803       if test "$GCC" = yes; then
13804         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13805         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13806           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13807       else
13808         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13809         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13810         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13811       fi
13812       hardcode_libdir_flag_spec_F77='-R$libdir'
13813       hardcode_shlibpath_var_F77=no
13814       case $host_os in
13815       solaris2.[0-5] | solaris2.[0-5].*) ;;
13816       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13817         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13818       esac
13819       link_all_deplibs_F77=yes
13820       ;;
13821
13822     sunos4*)
13823       if test "x$host_vendor" = xsequent; then
13824         # Use $CC to link under sequent, because it throws in some extra .o
13825         # files that make .init and .fini sections work.
13826         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13827       else
13828         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13829       fi
13830       hardcode_libdir_flag_spec_F77='-L$libdir'
13831       hardcode_direct_F77=yes
13832       hardcode_minus_L_F77=yes
13833       hardcode_shlibpath_var_F77=no
13834       ;;
13835
13836     sysv4)
13837       case $host_vendor in
13838         sni)
13839           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13840           hardcode_direct_F77=yes # is this really true???
13841         ;;
13842         siemens)
13843           ## LD is ld it makes a PLAMLIB
13844           ## CC just makes a GrossModule.
13845           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13846           reload_cmds_F77='$CC -r -o $output$reload_objs'
13847           hardcode_direct_F77=no
13848         ;;
13849         motorola)
13850           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13851           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13852         ;;
13853       esac
13854       runpath_var='LD_RUN_PATH'
13855       hardcode_shlibpath_var_F77=no
13856       ;;
13857
13858     sysv4.3*)
13859       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13860       hardcode_shlibpath_var_F77=no
13861       export_dynamic_flag_spec_F77='-Bexport'
13862       ;;
13863
13864     sysv4*MP*)
13865       if test -d /usr/nec; then
13866         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13867         hardcode_shlibpath_var_F77=no
13868         runpath_var=LD_RUN_PATH
13869         hardcode_runpath_var=yes
13870         ld_shlibs_F77=yes
13871       fi
13872       ;;
13873
13874     sysv4.2uw2*)
13875       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13876       hardcode_direct_F77=yes
13877       hardcode_minus_L_F77=no
13878       hardcode_shlibpath_var_F77=no
13879       hardcode_runpath_var=yes
13880       runpath_var=LD_RUN_PATH
13881       ;;
13882
13883    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13884       no_undefined_flag_F77='${wl}-z ${wl}text'
13885       if test "$GCC" = yes; then
13886         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13887       else
13888         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13889       fi
13890       runpath_var='LD_RUN_PATH'
13891       hardcode_shlibpath_var_F77=no
13892       ;;
13893
13894     sysv5*)
13895       no_undefined_flag_F77=' -z text'
13896       # $CC -shared without GNU ld will not create a library from C++
13897       # object files and a static libstdc++, better avoid it by now
13898       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13899       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13900                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13901       hardcode_libdir_flag_spec_F77=
13902       hardcode_shlibpath_var_F77=no
13903       runpath_var='LD_RUN_PATH'
13904       ;;
13905
13906     uts4*)
13907       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13908       hardcode_libdir_flag_spec_F77='-L$libdir'
13909       hardcode_shlibpath_var_F77=no
13910       ;;
13911
13912     *)
13913       ld_shlibs_F77=no
13914       ;;
13915     esac
13916   fi
13917
13918 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13919 echo "${ECHO_T}$ld_shlibs_F77" >&6
13920 test "$ld_shlibs_F77" = no && can_build_shared=no
13921
13922 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13923 if test "$GCC" = yes; then
13924   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13925 fi
13926
13927 #
13928 # Do we need to explicitly link libc?
13929 #
13930 case "x$archive_cmds_need_lc_F77" in
13931 x|xyes)
13932   # Assume -lc should be added
13933   archive_cmds_need_lc_F77=yes
13934
13935   if test "$enable_shared" = yes && test "$GCC" = yes; then
13936     case $archive_cmds_F77 in
13937     *'~'*)
13938       # FIXME: we may have to deal with multi-command sequences.
13939       ;;
13940     '$CC '*)
13941       # Test whether the compiler implicitly links with -lc since on some
13942       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13943       # to ld, don't add -lc before -lgcc.
13944       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13945 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13946       $rm conftest*
13947       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13948
13949       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13950   (eval $ac_compile) 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); } 2>conftest.err; then
13954         soname=conftest
13955         lib=conftest
13956         libobjs=conftest.$ac_objext
13957         deplibs=
13958         wl=$lt_prog_compiler_wl_F77
13959         compiler_flags=-v
13960         linker_flags=-v
13961         verstring=
13962         output_objdir=.
13963         libname=conftest
13964         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13965         allow_undefined_flag_F77=
13966         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13967   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13968   ac_status=$?
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); }
13971         then
13972           archive_cmds_need_lc_F77=no
13973         else
13974           archive_cmds_need_lc_F77=yes
13975         fi
13976         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13977       else
13978         cat conftest.err 1>&5
13979       fi
13980       $rm conftest*
13981       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13982 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13983       ;;
13984     esac
13985   fi
13986   ;;
13987 esac
13988
13989 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13990 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13991 hardcode_action_F77=
13992 if test -n "$hardcode_libdir_flag_spec_F77" || \
13993    test -n "$runpath_var F77" || \
13994    test "X$hardcode_automatic_F77"="Xyes" ; then
13995
13996   # We can hardcode non-existant directories.
13997   if test "$hardcode_direct_F77" != no &&
13998      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13999      # have to relink, otherwise we might link with an installed library
14000      # when we should be linking with a yet-to-be-installed one
14001      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14002      test "$hardcode_minus_L_F77" != no; then
14003     # Linking always hardcodes the temporary library directory.
14004     hardcode_action_F77=relink
14005   else
14006     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14007     hardcode_action_F77=immediate
14008   fi
14009 else
14010   # We cannot hardcode anything, or else we can only hardcode existing
14011   # directories.
14012   hardcode_action_F77=unsupported
14013 fi
14014 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14015 echo "${ECHO_T}$hardcode_action_F77" >&6
14016
14017 if test "$hardcode_action_F77" = relink; then
14018   # Fast installation is not supported
14019   enable_fast_install=no
14020 elif test "$shlibpath_overrides_runpath" = yes ||
14021      test "$enable_shared" = no; then
14022   # Fast installation is not necessary
14023   enable_fast_install=needless
14024 fi
14025
14026 striplib=
14027 old_striplib=
14028 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14029 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14030 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14031   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14032   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14033   echo "$as_me:$LINENO: result: yes" >&5
14034 echo "${ECHO_T}yes" >&6
14035 else
14036 # FIXME - insert some real tests, host_os isn't really good enough
14037   case $host_os in
14038    darwin*)
14039        if test -n "$STRIP" ; then
14040          striplib="$STRIP -x"
14041          echo "$as_me:$LINENO: result: yes" >&5
14042 echo "${ECHO_T}yes" >&6
14043        else
14044   echo "$as_me:$LINENO: result: no" >&5
14045 echo "${ECHO_T}no" >&6
14046 fi
14047        ;;
14048    *)
14049   echo "$as_me:$LINENO: result: no" >&5
14050 echo "${ECHO_T}no" >&6
14051     ;;
14052   esac
14053 fi
14054
14055 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14056 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14057 library_names_spec=
14058 libname_spec='lib$name'
14059 soname_spec=
14060 shrext=".so"
14061 postinstall_cmds=
14062 postuninstall_cmds=
14063 finish_cmds=
14064 finish_eval=
14065 shlibpath_var=
14066 shlibpath_overrides_runpath=unknown
14067 version_type=none
14068 dynamic_linker="$host_os ld.so"
14069 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14070 if test "$GCC" = yes; then
14071   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14072   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14073     # if the path contains ";" then we assume it to be the separator
14074     # otherwise default to the standard path separator (i.e. ":") - it is
14075     # assumed that no part of a normal pathname contains ";" but that should
14076     # okay in the real world where ";" in dirpaths is itself problematic.
14077     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14078   else
14079     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14080   fi
14081 else
14082   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14083 fi
14084 need_lib_prefix=unknown
14085 hardcode_into_libs=no
14086
14087 # when you set need_version to no, make sure it does not cause -set_version
14088 # flags to be left without arguments
14089 need_version=unknown
14090
14091 case $host_os in
14092 aix3*)
14093   version_type=linux
14094   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14095   shlibpath_var=LIBPATH
14096
14097   # AIX 3 has no versioning support, so we append a major version to the name.
14098   soname_spec='${libname}${release}${shared_ext}$major'
14099   ;;
14100
14101 aix4* | aix5*)
14102   version_type=linux
14103   need_lib_prefix=no
14104   need_version=no
14105   hardcode_into_libs=yes
14106   if test "$host_cpu" = ia64; then
14107     # AIX 5 supports IA64
14108     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14109     shlibpath_var=LD_LIBRARY_PATH
14110   else
14111     # With GCC up to 2.95.x, collect2 would create an import file
14112     # for dependence libraries.  The import file would start with
14113     # the line `#! .'.  This would cause the generated library to
14114     # depend on `.', always an invalid library.  This was fixed in
14115     # development snapshots of GCC prior to 3.0.
14116     case $host_os in
14117       aix4 | aix4.[01] | aix4.[01].*)
14118       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14119            echo ' yes '
14120            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14121         :
14122       else
14123         can_build_shared=no
14124       fi
14125       ;;
14126     esac
14127     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14128     # soname into executable. Probably we can add versioning support to
14129     # collect2, so additional links can be useful in future.
14130     if test "$aix_use_runtimelinking" = yes; then
14131       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14132       # instead of lib<name>.a to let people know that these are not
14133       # typical AIX shared libraries.
14134       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14135     else
14136       # We preserve .a as extension for shared libraries through AIX4.2
14137       # and later when we are not doing run time linking.
14138       library_names_spec='${libname}${release}.a $libname.a'
14139       soname_spec='${libname}${release}${shared_ext}$major'
14140     fi
14141     shlibpath_var=LIBPATH
14142   fi
14143   ;;
14144
14145 amigaos*)
14146   library_names_spec='$libname.ixlibrary $libname.a'
14147   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14148   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'
14149   ;;
14150
14151 beos*)
14152   library_names_spec='${libname}${shared_ext}'
14153   dynamic_linker="$host_os ld.so"
14154   shlibpath_var=LIBRARY_PATH
14155   ;;
14156
14157 bsdi4*)
14158   version_type=linux
14159   need_version=no
14160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14161   soname_spec='${libname}${release}${shared_ext}$major'
14162   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14163   shlibpath_var=LD_LIBRARY_PATH
14164   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14165   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14166   # the default ld.so.conf also contains /usr/contrib/lib and
14167   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14168   # libtool to hard-code these into programs
14169   ;;
14170
14171 cygwin* | mingw* | pw32*)
14172   version_type=windows
14173   shrext=".dll"
14174   need_version=no
14175   need_lib_prefix=no
14176
14177   case $GCC,$host_os in
14178   yes,cygwin* | yes,mingw* | yes,pw32*)
14179     library_names_spec='$libname.dll.a'
14180     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14181     postinstall_cmds='base_file=`basename \${file}`~
14182       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14183       dldir=$destdir/`dirname \$dlpath`~
14184       test -d \$dldir || mkdir -p \$dldir~
14185       $install_prog $dir/$dlname \$dldir/$dlname'
14186     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14187       dlpath=$dir/\$dldll~
14188        $rm \$dlpath'
14189     shlibpath_overrides_runpath=yes
14190
14191     case $host_os in
14192     cygwin*)
14193       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14194       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14195       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14196       ;;
14197     mingw*)
14198       # MinGW DLLs use traditional 'lib' prefix
14199       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14200       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14201       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14202         # It is most probably a Windows format PATH printed by
14203         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14204         # path with ; separators, and with drive letters. We can handle the
14205         # drive letters (cygwin fileutils understands them), so leave them,
14206         # especially as we might pass files found there to a mingw objdump,
14207         # which wouldn't understand a cygwinified path. Ahh.
14208         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14209       else
14210         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14211       fi
14212       ;;
14213     pw32*)
14214       # pw32 DLLs use 'pw' prefix rather than 'lib'
14215       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14216       ;;
14217     esac
14218     ;;
14219
14220   *)
14221     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14222     ;;
14223   esac
14224   dynamic_linker='Win32 ld.exe'
14225   # FIXME: first we should search . and the directory the executable is in
14226   shlibpath_var=PATH
14227   ;;
14228
14229 darwin* | rhapsody*)
14230   dynamic_linker="$host_os dyld"
14231   version_type=darwin
14232   need_lib_prefix=no
14233   need_version=no
14234   # FIXME: Relying on posixy $() will cause problems for
14235   #        cross-compilation, but unfortunately the echo tests do not
14236   #        yet detect zsh echo's removal of \ escapes.
14237   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14238   soname_spec='${libname}${release}${major}$shared_ext'
14239   shlibpath_overrides_runpath=yes
14240   shlibpath_var=DYLD_LIBRARY_PATH
14241   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14242   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14243   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14244   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"`
14245   fi
14246   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14247   ;;
14248
14249 dgux*)
14250   version_type=linux
14251   need_lib_prefix=no
14252   need_version=no
14253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14254   soname_spec='${libname}${release}${shared_ext}$major'
14255   shlibpath_var=LD_LIBRARY_PATH
14256   ;;
14257
14258 freebsd1*)
14259   dynamic_linker=no
14260   ;;
14261
14262 freebsd*)
14263   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14264   version_type=freebsd-$objformat
14265   case $version_type in
14266     freebsd-elf*)
14267       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14268       need_version=no
14269       need_lib_prefix=no
14270       ;;
14271     freebsd-*)
14272       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14273       need_version=yes
14274       ;;
14275   esac
14276   shlibpath_var=LD_LIBRARY_PATH
14277   case $host_os in
14278   freebsd2*)
14279     shlibpath_overrides_runpath=yes
14280     ;;
14281   freebsd3.01* | freebsdelf3.01*)
14282     shlibpath_overrides_runpath=yes
14283     hardcode_into_libs=yes
14284     ;;
14285   *) # from 3.2 on
14286     shlibpath_overrides_runpath=no
14287     hardcode_into_libs=yes
14288     ;;
14289   esac
14290   ;;
14291
14292 gnu*)
14293   version_type=linux
14294   need_lib_prefix=no
14295   need_version=no
14296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14297   soname_spec='${libname}${release}${shared_ext}$major'
14298   shlibpath_var=LD_LIBRARY_PATH
14299   hardcode_into_libs=yes
14300   ;;
14301
14302 hpux9* | hpux10* | hpux11*)
14303   # Give a soname corresponding to the major version so that dld.sl refuses to
14304   # link against other versions.
14305   version_type=sunos
14306   need_lib_prefix=no
14307   need_version=no
14308   case "$host_cpu" in
14309   ia64*)
14310     shrext='.so'
14311     hardcode_into_libs=yes
14312     dynamic_linker="$host_os dld.so"
14313     shlibpath_var=LD_LIBRARY_PATH
14314     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14315     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14316     soname_spec='${libname}${release}${shared_ext}$major'
14317     if test "X$HPUX_IA64_MODE" = X32; then
14318       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14319     else
14320       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14321     fi
14322     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14323     ;;
14324    hppa*64*)
14325      shrext='.sl'
14326      hardcode_into_libs=yes
14327      dynamic_linker="$host_os dld.sl"
14328      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14329      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14330      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14331      soname_spec='${libname}${release}${shared_ext}$major'
14332      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14333      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14334      ;;
14335    *)
14336     shrext='.sl'
14337     dynamic_linker="$host_os dld.sl"
14338     shlibpath_var=SHLIB_PATH
14339     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14340     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341     soname_spec='${libname}${release}${shared_ext}$major'
14342     ;;
14343   esac
14344   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14345   postinstall_cmds='chmod 555 $lib'
14346   ;;
14347
14348 irix5* | irix6* | nonstopux*)
14349   case $host_os in
14350     nonstopux*) version_type=nonstopux ;;
14351     *)
14352         if test "$lt_cv_prog_gnu_ld" = yes; then
14353                 version_type=linux
14354         else
14355                 version_type=irix
14356         fi ;;
14357   esac
14358   need_lib_prefix=no
14359   need_version=no
14360   soname_spec='${libname}${release}${shared_ext}$major'
14361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14362   case $host_os in
14363   irix5* | nonstopux*)
14364     libsuff= shlibsuff=
14365     ;;
14366   *)
14367     case $LD in # libtool.m4 will add one of these switches to LD
14368     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14369       libsuff= shlibsuff= libmagic=32-bit;;
14370     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14371       libsuff=32 shlibsuff=N32 libmagic=N32;;
14372     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14373       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14374     *) libsuff= shlibsuff= libmagic=never-match;;
14375     esac
14376     ;;
14377   esac
14378   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14379   shlibpath_overrides_runpath=no
14380   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14381   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14382   hardcode_into_libs=yes
14383   ;;
14384
14385 # No shared lib support for Linux oldld, aout, or coff.
14386 linux*oldld* | linux*aout* | linux*coff*)
14387   dynamic_linker=no
14388   ;;
14389
14390 # This must be Linux ELF.
14391 linux*)
14392   version_type=linux
14393   need_lib_prefix=no
14394   need_version=no
14395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14396   soname_spec='${libname}${release}${shared_ext}$major'
14397   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14398   shlibpath_var=LD_LIBRARY_PATH
14399   shlibpath_overrides_runpath=no
14400   # This implies no fast_install, which is unacceptable.
14401   # Some rework will be needed to allow for fast_install
14402   # before this can be enabled.
14403   hardcode_into_libs=yes
14404
14405   # We used to test for /lib/ld.so.1 and disable shared libraries on
14406   # powerpc, because MkLinux only supported shared libraries with the
14407   # GNU dynamic linker.  Since this was broken with cross compilers,
14408   # most powerpc-linux boxes support dynamic linking these days and
14409   # people can always --disable-shared, the test was removed, and we
14410   # assume the GNU/Linux dynamic linker is in use.
14411   dynamic_linker='GNU/Linux ld.so'
14412   ;;
14413
14414 netbsd*)
14415   version_type=sunos
14416   need_lib_prefix=no
14417   need_version=no
14418   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14419     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14420     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14421     dynamic_linker='NetBSD (a.out) ld.so'
14422   else
14423     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14424     soname_spec='${libname}${release}${shared_ext}$major'
14425     dynamic_linker='NetBSD ld.elf_so'
14426   fi
14427   shlibpath_var=LD_LIBRARY_PATH
14428   shlibpath_overrides_runpath=yes
14429   hardcode_into_libs=yes
14430   ;;
14431
14432 newsos6)
14433   version_type=linux
14434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14435   shlibpath_var=LD_LIBRARY_PATH
14436   shlibpath_overrides_runpath=yes
14437   ;;
14438
14439 nto-qnx)
14440   version_type=linux
14441   need_lib_prefix=no
14442   need_version=no
14443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14444   soname_spec='${libname}${release}${shared_ext}$major'
14445   shlibpath_var=LD_LIBRARY_PATH
14446   shlibpath_overrides_runpath=yes
14447   ;;
14448
14449 openbsd*)
14450   version_type=sunos
14451   need_lib_prefix=no
14452   need_version=no
14453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14454   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14455   shlibpath_var=LD_LIBRARY_PATH
14456   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14457     case $host_os in
14458       openbsd2.[89] | openbsd2.[89].*)
14459         shlibpath_overrides_runpath=no
14460         ;;
14461       *)
14462         shlibpath_overrides_runpath=yes
14463         ;;
14464       esac
14465   else
14466     shlibpath_overrides_runpath=yes
14467   fi
14468   ;;
14469
14470 os2*)
14471   libname_spec='$name'
14472   shrext=".dll"
14473   need_lib_prefix=no
14474   library_names_spec='$libname${shared_ext} $libname.a'
14475   dynamic_linker='OS/2 ld.exe'
14476   shlibpath_var=LIBPATH
14477   ;;
14478
14479 osf3* | osf4* | osf5*)
14480   version_type=osf
14481   need_lib_prefix=no
14482   need_version=no
14483   soname_spec='${libname}${release}${shared_ext}$major'
14484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14485   shlibpath_var=LD_LIBRARY_PATH
14486   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14487   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14488   ;;
14489
14490 sco3.2v5*)
14491   version_type=osf
14492   soname_spec='${libname}${release}${shared_ext}$major'
14493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14494   shlibpath_var=LD_LIBRARY_PATH
14495   ;;
14496
14497 solaris*)
14498   version_type=linux
14499   need_lib_prefix=no
14500   need_version=no
14501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14502   soname_spec='${libname}${release}${shared_ext}$major'
14503   shlibpath_var=LD_LIBRARY_PATH
14504   shlibpath_overrides_runpath=yes
14505   hardcode_into_libs=yes
14506   # ldd complains unless libraries are executable
14507   postinstall_cmds='chmod +x $lib'
14508   ;;
14509
14510 sunos4*)
14511   version_type=sunos
14512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14513   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14514   shlibpath_var=LD_LIBRARY_PATH
14515   shlibpath_overrides_runpath=yes
14516   if test "$with_gnu_ld" = yes; then
14517     need_lib_prefix=no
14518   fi
14519   need_version=yes
14520   ;;
14521
14522 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14523   version_type=linux
14524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525   soname_spec='${libname}${release}${shared_ext}$major'
14526   shlibpath_var=LD_LIBRARY_PATH
14527   case $host_vendor in
14528     sni)
14529       shlibpath_overrides_runpath=no
14530       need_lib_prefix=no
14531       export_dynamic_flag_spec='${wl}-Blargedynsym'
14532       runpath_var=LD_RUN_PATH
14533       ;;
14534     siemens)
14535       need_lib_prefix=no
14536       ;;
14537     motorola)
14538       need_lib_prefix=no
14539       need_version=no
14540       shlibpath_overrides_runpath=no
14541       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14542       ;;
14543   esac
14544   ;;
14545
14546 sysv4*MP*)
14547   if test -d /usr/nec ;then
14548     version_type=linux
14549     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14550     soname_spec='$libname${shared_ext}.$major'
14551     shlibpath_var=LD_LIBRARY_PATH
14552   fi
14553   ;;
14554
14555 uts4*)
14556   version_type=linux
14557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14558   soname_spec='${libname}${release}${shared_ext}$major'
14559   shlibpath_var=LD_LIBRARY_PATH
14560   ;;
14561
14562 *)
14563   dynamic_linker=no
14564   ;;
14565 esac
14566 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14567 echo "${ECHO_T}$dynamic_linker" >&6
14568 test "$dynamic_linker" = no && can_build_shared=no
14569
14570
14571 # The else clause should only fire when bootstrapping the
14572 # libtool distribution, otherwise you forgot to ship ltmain.sh
14573 # with your package, and you will get complaints that there are
14574 # no rules to generate ltmain.sh.
14575 if test -f "$ltmain"; then
14576   # See if we are running on zsh, and set the options which allow our commands through
14577   # without removal of \ escapes.
14578   if test -n "${ZSH_VERSION+set}" ; then
14579     setopt NO_GLOB_SUBST
14580   fi
14581   # Now quote all the things that may contain metacharacters while being
14582   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14583   # variables and quote the copies for generation of the libtool script.
14584   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14585     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14586     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14587     deplibs_check_method reload_flag reload_cmds need_locks \
14588     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14589     lt_cv_sys_global_symbol_to_c_name_address \
14590     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14591     old_postinstall_cmds old_postuninstall_cmds \
14592     compiler_F77 \
14593     CC_F77 \
14594     LD_F77 \
14595     lt_prog_compiler_wl_F77 \
14596     lt_prog_compiler_pic_F77 \
14597     lt_prog_compiler_static_F77 \
14598     lt_prog_compiler_no_builtin_flag_F77 \
14599     export_dynamic_flag_spec_F77 \
14600     thread_safe_flag_spec_F77 \
14601     whole_archive_flag_spec_F77 \
14602     enable_shared_with_static_runtimes_F77 \
14603     old_archive_cmds_F77 \
14604     old_archive_from_new_cmds_F77 \
14605     predep_objects_F77 \
14606     postdep_objects_F77 \
14607     predeps_F77 \
14608     postdeps_F77 \
14609     compiler_lib_search_path_F77 \
14610     archive_cmds_F77 \
14611     archive_expsym_cmds_F77 \
14612     postinstall_cmds_F77 \
14613     postuninstall_cmds_F77 \
14614     old_archive_from_expsyms_cmds_F77 \
14615     allow_undefined_flag_F77 \
14616     no_undefined_flag_F77 \
14617     export_symbols_cmds_F77 \
14618     hardcode_libdir_flag_spec_F77 \
14619     hardcode_libdir_flag_spec_ld_F77 \
14620     hardcode_libdir_separator_F77 \
14621     hardcode_automatic_F77 \
14622     module_cmds_F77 \
14623     module_expsym_cmds_F77 \
14624     lt_cv_prog_compiler_c_o_F77 \
14625     exclude_expsyms_F77 \
14626     include_expsyms_F77; do
14627
14628     case $var in
14629     old_archive_cmds_F77 | \
14630     old_archive_from_new_cmds_F77 | \
14631     archive_cmds_F77 | \
14632     archive_expsym_cmds_F77 | \
14633     module_cmds_F77 | \
14634     module_expsym_cmds_F77 | \
14635     old_archive_from_expsyms_cmds_F77 | \
14636     export_symbols_cmds_F77 | \
14637     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14638     postinstall_cmds | postuninstall_cmds | \
14639     old_postinstall_cmds | old_postuninstall_cmds | \
14640     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14641       # Double-quote double-evaled strings.
14642       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14643       ;;
14644     *)
14645       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14646       ;;
14647     esac
14648   done
14649
14650   case $lt_echo in
14651   *'\$0 --fallback-echo"')
14652     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14653     ;;
14654   esac
14655
14656 cfgfile="$ofile"
14657
14658   cat <<__EOF__ >> "$cfgfile"
14659 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14660
14661 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14662
14663 # Shell to use when invoking shell scripts.
14664 SHELL=$lt_SHELL
14665
14666 # Whether or not to build shared libraries.
14667 build_libtool_libs=$enable_shared
14668
14669 # Whether or not to build static libraries.
14670 build_old_libs=$enable_static
14671
14672 # Whether or not to add -lc for building shared libraries.
14673 build_libtool_need_lc=$archive_cmds_need_lc_F77
14674
14675 # Whether or not to disallow shared libs when runtime libs are static
14676 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14677
14678 # Whether or not to optimize for fast installation.
14679 fast_install=$enable_fast_install
14680
14681 # The host system.
14682 host_alias=$host_alias
14683 host=$host
14684
14685 # An echo program that does not interpret backslashes.
14686 echo=$lt_echo
14687
14688 # The archiver.
14689 AR=$lt_AR
14690 AR_FLAGS=$lt_AR_FLAGS
14691
14692 # A C compiler.
14693 LTCC=$lt_LTCC
14694
14695 # A language-specific compiler.
14696 CC=$lt_compiler_F77
14697
14698 # Is the compiler the GNU C compiler?
14699 with_gcc=$GCC_F77
14700
14701 # An ERE matcher.
14702 EGREP=$lt_EGREP
14703
14704 # The linker used to build libraries.
14705 LD=$lt_LD_F77
14706
14707 # Whether we need hard or soft links.
14708 LN_S=$lt_LN_S
14709
14710 # A BSD-compatible nm program.
14711 NM=$lt_NM
14712
14713 # A symbol stripping program
14714 STRIP=$STRIP
14715
14716 # Used to examine libraries when file_magic_cmd begins "file"
14717 MAGIC_CMD=$MAGIC_CMD
14718
14719 # Used on cygwin: DLL creation program.
14720 DLLTOOL="$DLLTOOL"
14721
14722 # Used on cygwin: object dumper.
14723 OBJDUMP="$OBJDUMP"
14724
14725 # Used on cygwin: assembler.
14726 AS="$AS"
14727
14728 # The name of the directory that contains temporary libtool files.
14729 objdir=$objdir
14730
14731 # How to create reloadable object files.
14732 reload_flag=$lt_reload_flag
14733 reload_cmds=$lt_reload_cmds
14734
14735 # How to pass a linker flag through the compiler.
14736 wl=$lt_lt_prog_compiler_wl_F77
14737
14738 # Object file suffix (normally "o").
14739 objext="$ac_objext"
14740
14741 # Old archive suffix (normally "a").
14742 libext="$libext"
14743
14744 # Shared library suffix (normally ".so").
14745 shrext='$shrext'
14746
14747 # Executable file suffix (normally "").
14748 exeext="$exeext"
14749
14750 # Additional compiler flags for building library objects.
14751 pic_flag=$lt_lt_prog_compiler_pic_F77
14752 pic_mode=$pic_mode
14753
14754 # What is the maximum length of a command?
14755 max_cmd_len=$lt_cv_sys_max_cmd_len
14756
14757 # Does compiler simultaneously support -c and -o options?
14758 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14759
14760 # Must we lock files when doing compilation ?
14761 need_locks=$lt_need_locks
14762
14763 # Do we need the lib prefix for modules?
14764 need_lib_prefix=$need_lib_prefix
14765
14766 # Do we need a version for libraries?
14767 need_version=$need_version
14768
14769 # Whether dlopen is supported.
14770 dlopen_support=$enable_dlopen
14771
14772 # Whether dlopen of programs is supported.
14773 dlopen_self=$enable_dlopen_self
14774
14775 # Whether dlopen of statically linked programs is supported.
14776 dlopen_self_static=$enable_dlopen_self_static
14777
14778 # Compiler flag to prevent dynamic linking.
14779 link_static_flag=$lt_lt_prog_compiler_static_F77
14780
14781 # Compiler flag to turn off builtin functions.
14782 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14783
14784 # Compiler flag to allow reflexive dlopens.
14785 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14786
14787 # Compiler flag to generate shared objects directly from archives.
14788 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14789
14790 # Compiler flag to generate thread-safe objects.
14791 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14792
14793 # Library versioning type.
14794 version_type=$version_type
14795
14796 # Format of library name prefix.
14797 libname_spec=$lt_libname_spec
14798
14799 # List of archive names.  First name is the real one, the rest are links.
14800 # The last name is the one that the linker finds with -lNAME.
14801 library_names_spec=$lt_library_names_spec
14802
14803 # The coded name of the library, if different from the real name.
14804 soname_spec=$lt_soname_spec
14805
14806 # Commands used to build and install an old-style archive.
14807 RANLIB=$lt_RANLIB
14808 old_archive_cmds=$lt_old_archive_cmds_F77
14809 old_postinstall_cmds=$lt_old_postinstall_cmds
14810 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14811
14812 # Create an old-style archive from a shared archive.
14813 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14814
14815 # Create a temporary old-style archive to link instead of a shared archive.
14816 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14817
14818 # Commands used to build and install a shared archive.
14819 archive_cmds=$lt_archive_cmds_F77
14820 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14821 postinstall_cmds=$lt_postinstall_cmds
14822 postuninstall_cmds=$lt_postuninstall_cmds
14823
14824 # Commands used to build a loadable module (assumed same as above if empty)
14825 module_cmds=$lt_module_cmds_F77
14826 module_expsym_cmds=$lt_module_expsym_cmds_F77
14827
14828 # Commands to strip libraries.
14829 old_striplib=$lt_old_striplib
14830 striplib=$lt_striplib
14831
14832 # Dependencies to place before the objects being linked to create a
14833 # shared library.
14834 predep_objects=$lt_predep_objects_F77
14835
14836 # Dependencies to place after the objects being linked to create a
14837 # shared library.
14838 postdep_objects=$lt_postdep_objects_F77
14839
14840 # Dependencies to place before the objects being linked to create a
14841 # shared library.
14842 predeps=$lt_predeps_F77
14843
14844 # Dependencies to place after the objects being linked to create a
14845 # shared library.
14846 postdeps=$lt_postdeps_F77
14847
14848 # The library search path used internally by the compiler when linking
14849 # a shared library.
14850 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14851
14852 # Method to check whether dependent libraries are shared objects.
14853 deplibs_check_method=$lt_deplibs_check_method
14854
14855 # Command to use when deplibs_check_method == file_magic.
14856 file_magic_cmd=$lt_file_magic_cmd
14857
14858 # Flag that allows shared libraries with undefined symbols to be built.
14859 allow_undefined_flag=$lt_allow_undefined_flag_F77
14860
14861 # Flag that forces no undefined symbols.
14862 no_undefined_flag=$lt_no_undefined_flag_F77
14863
14864 # Commands used to finish a libtool library installation in a directory.
14865 finish_cmds=$lt_finish_cmds
14866
14867 # Same as above, but a single script fragment to be evaled but not shown.
14868 finish_eval=$lt_finish_eval
14869
14870 # Take the output of nm and produce a listing of raw symbols and C names.
14871 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14872
14873 # Transform the output of nm in a proper C declaration
14874 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14875
14876 # Transform the output of nm in a C name address pair
14877 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14878
14879 # This is the shared library runtime path variable.
14880 runpath_var=$runpath_var
14881
14882 # This is the shared library path variable.
14883 shlibpath_var=$shlibpath_var
14884
14885 # Is shlibpath searched before the hard-coded library search path?
14886 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14887
14888 # How to hardcode a shared library path into an executable.
14889 hardcode_action=$hardcode_action_F77
14890
14891 # Whether we should hardcode library paths into libraries.
14892 hardcode_into_libs=$hardcode_into_libs
14893
14894 # Flag to hardcode \$libdir into a binary during linking.
14895 # This must work even if \$libdir does not exist.
14896 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14897
14898 # If ld is used when linking, flag to hardcode \$libdir into
14899 # a binary during linking. This must work even if \$libdir does
14900 # not exist.
14901 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14902
14903 # Whether we need a single -rpath flag with a separated argument.
14904 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14905
14906 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14907 # resulting binary.
14908 hardcode_direct=$hardcode_direct_F77
14909
14910 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14911 # resulting binary.
14912 hardcode_minus_L=$hardcode_minus_L_F77
14913
14914 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14915 # the resulting binary.
14916 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14917
14918 # Set to yes if building a shared library automatically hardcodes DIR into the library
14919 # and all subsequent libraries and executables linked against it.
14920 hardcode_automatic=$hardcode_automatic_F77
14921
14922 # Variables whose values should be saved in libtool wrapper scripts and
14923 # restored at relink time.
14924 variables_saved_for_relink="$variables_saved_for_relink"
14925
14926 # Whether libtool must link a program against all its dependency libraries.
14927 link_all_deplibs=$link_all_deplibs_F77
14928
14929 # Compile-time system search path for libraries
14930 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14931
14932 # Run-time system search path for libraries
14933 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14934
14935 # Fix the shell variable \$srcfile for the compiler.
14936 fix_srcfile_path="$fix_srcfile_path_F77"
14937
14938 # Set to yes if exported symbols are required.
14939 always_export_symbols=$always_export_symbols_F77
14940
14941 # The commands to list exported symbols.
14942 export_symbols_cmds=$lt_export_symbols_cmds_F77
14943
14944 # The commands to extract the exported symbol list from a shared archive.
14945 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14946
14947 # Symbols that should not be listed in the preloaded symbols.
14948 exclude_expsyms=$lt_exclude_expsyms_F77
14949
14950 # Symbols that must always be exported.
14951 include_expsyms=$lt_include_expsyms_F77
14952
14953 # ### END LIBTOOL TAG CONFIG: $tagname
14954
14955 __EOF__
14956
14957
14958 else
14959   # If there is no Makefile yet, we rely on a make rule to execute
14960   # `config.status --recheck' to rerun these tests and create the
14961   # libtool script then.
14962   test -f Makefile && make "$ltmain"
14963 fi
14964
14965
14966 ac_ext=c
14967 ac_cpp='$CPP $CPPFLAGS'
14968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14971
14972 CC="$lt_save_CC"
14973
14974         else
14975           tagname=""
14976         fi
14977         ;;
14978
14979       GCJ)
14980         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14981
14982
14983
14984 # Source file extension for Java test sources.
14985 ac_ext=java
14986
14987 # Object file extension for compiled Java test sources.
14988 objext=o
14989 objext_GCJ=$objext
14990
14991 # Code to be used in simple compile tests
14992 lt_simple_compile_test_code="class foo {}\n"
14993
14994 # Code to be used in simple link tests
14995 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14996
14997 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14998
14999 # If no C compiler was specified, use CC.
15000 LTCC=${LTCC-"$CC"}
15001
15002 # Allow CC to be a program name with arguments.
15003 compiler=$CC
15004
15005
15006 # Allow CC to be a program name with arguments.
15007 lt_save_CC="$CC"
15008 CC=${GCJ-"gcj"}
15009 compiler=$CC
15010 compiler_GCJ=$CC
15011
15012 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15013 archive_cmds_need_lc_GCJ=no
15014
15015 ## CAVEAT EMPTOR:
15016 ## There is no encapsulation within the following macros, do not change
15017 ## the running order or otherwise move them around unless you know exactly
15018 ## what you are doing...
15019
15020 lt_prog_compiler_no_builtin_flag_GCJ=
15021
15022 if test "$GCC" = yes; then
15023   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15024
15025   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15026 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15027 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15028   echo $ECHO_N "(cached) $ECHO_C" >&6
15029 else
15030   lt_cv_prog_compiler_rtti_exceptions=no
15031   ac_outfile=conftest.$ac_objext
15032    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15033    lt_compiler_flag="-fno-rtti -fno-exceptions"
15034    # Insert the option either (1) after the last *FLAGS variable, or
15035    # (2) before a word containing "conftest.", or (3) at the end.
15036    # Note that $ac_compile itself does not contain backslashes and begins
15037    # with a dollar sign (not a hyphen), so the echo should work correctly.
15038    # The option is referenced via a variable to avoid confusing sed.
15039    lt_compile=`echo "$ac_compile" | $SED \
15040    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15041    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15042    -e 's:$: $lt_compiler_flag:'`
15043    (eval echo "\"\$as_me:15043: $lt_compile\"" >&5)
15044    (eval "$lt_compile" 2>conftest.err)
15045    ac_status=$?
15046    cat conftest.err >&5
15047    echo "$as_me:15047: \$? = $ac_status" >&5
15048    if (exit $ac_status) && test -s "$ac_outfile"; then
15049      # The compiler can only warn and ignore the option if not recognized
15050      # So say no if there are warnings
15051      if test ! -s conftest.err; then
15052        lt_cv_prog_compiler_rtti_exceptions=yes
15053      fi
15054    fi
15055    $rm conftest*
15056
15057 fi
15058 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15059 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15060
15061 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15062     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15063 else
15064     :
15065 fi
15066
15067 fi
15068
15069 lt_prog_compiler_wl_GCJ=
15070 lt_prog_compiler_pic_GCJ=
15071 lt_prog_compiler_static_GCJ=
15072
15073 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15074 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15075
15076   if test "$GCC" = yes; then
15077     lt_prog_compiler_wl_GCJ='-Wl,'
15078     lt_prog_compiler_static_GCJ='-static'
15079
15080     case $host_os in
15081       aix*)
15082       # All AIX code is PIC.
15083       if test "$host_cpu" = ia64; then
15084         # AIX 5 now supports IA64 processor
15085         lt_prog_compiler_static_GCJ='-Bstatic'
15086       fi
15087       ;;
15088
15089     amigaos*)
15090       # FIXME: we need at least 68020 code to build shared libraries, but
15091       # adding the `-m68020' flag to GCC prevents building anything better,
15092       # like `-m68040'.
15093       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15094       ;;
15095
15096     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15097       # PIC is the default for these OSes.
15098       ;;
15099
15100     mingw* | pw32* | os2*)
15101       # This hack is so that the source file can tell whether it is being
15102       # built for inclusion in a dll (and should export symbols for example).
15103       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15104       ;;
15105
15106     darwin* | rhapsody*)
15107       # PIC is the default on this platform
15108       # Common symbols not allowed in MH_DYLIB files
15109       lt_prog_compiler_pic_GCJ='-fno-common'
15110       ;;
15111
15112     msdosdjgpp*)
15113       # Just because we use GCC doesn't mean we suddenly get shared libraries
15114       # on systems that don't support them.
15115       lt_prog_compiler_can_build_shared_GCJ=no
15116       enable_shared=no
15117       ;;
15118
15119     sysv4*MP*)
15120       if test -d /usr/nec; then
15121         lt_prog_compiler_pic_GCJ=-Kconform_pic
15122       fi
15123       ;;
15124
15125     hpux*)
15126       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15127       # not for PA HP-UX.
15128       case "$host_cpu" in
15129       hppa*64*|ia64*)
15130         # +Z the default
15131         ;;
15132       *)
15133         lt_prog_compiler_pic_GCJ='-fPIC'
15134         ;;
15135       esac
15136       ;;
15137
15138     *)
15139       lt_prog_compiler_pic_GCJ='-fPIC'
15140       ;;
15141     esac
15142   else
15143     # PORTME Check for flag to pass linker flags through the system compiler.
15144     case $host_os in
15145     aix*)
15146       lt_prog_compiler_wl_GCJ='-Wl,'
15147       if test "$host_cpu" = ia64; then
15148         # AIX 5 now supports IA64 processor
15149         lt_prog_compiler_static_GCJ='-Bstatic'
15150       else
15151         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15152       fi
15153       ;;
15154
15155     mingw* | pw32* | os2*)
15156       # This hack is so that the source file can tell whether it is being
15157       # built for inclusion in a dll (and should export symbols for example).
15158       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15159       ;;
15160
15161     hpux9* | hpux10* | hpux11*)
15162       lt_prog_compiler_wl_GCJ='-Wl,'
15163       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15164       # not for PA HP-UX.
15165       case "$host_cpu" in
15166       hppa*64*|ia64*)
15167         # +Z the default
15168         ;;
15169       *)
15170         lt_prog_compiler_pic_GCJ='+Z'
15171         ;;
15172       esac
15173       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15174       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15175       ;;
15176
15177     irix5* | irix6* | nonstopux*)
15178       lt_prog_compiler_wl_GCJ='-Wl,'
15179       # PIC (with -KPIC) is the default.
15180       lt_prog_compiler_static_GCJ='-non_shared'
15181       ;;
15182
15183     newsos6)
15184       lt_prog_compiler_pic_GCJ='-KPIC'
15185       lt_prog_compiler_static_GCJ='-Bstatic'
15186       ;;
15187
15188     linux*)
15189       case $CC in
15190       icc|ecc)
15191         lt_prog_compiler_wl_GCJ='-Wl,'
15192         lt_prog_compiler_pic_GCJ='-KPIC'
15193         lt_prog_compiler_static_GCJ='-static'
15194         ;;
15195       ccc)
15196         lt_prog_compiler_wl_GCJ='-Wl,'
15197         # All Alpha code is PIC.
15198         lt_prog_compiler_static_GCJ='-non_shared'
15199         ;;
15200       esac
15201       ;;
15202
15203     osf3* | osf4* | osf5*)
15204       lt_prog_compiler_wl_GCJ='-Wl,'
15205       # All OSF/1 code is PIC.
15206       lt_prog_compiler_static_GCJ='-non_shared'
15207       ;;
15208
15209     sco3.2v5*)
15210       lt_prog_compiler_pic_GCJ='-Kpic'
15211       lt_prog_compiler_static_GCJ='-dn'
15212       ;;
15213
15214     solaris*)
15215       lt_prog_compiler_wl_GCJ='-Wl,'
15216       lt_prog_compiler_pic_GCJ='-KPIC'
15217       lt_prog_compiler_static_GCJ='-Bstatic'
15218       ;;
15219
15220     sunos4*)
15221       lt_prog_compiler_wl_GCJ='-Qoption ld '
15222       lt_prog_compiler_pic_GCJ='-PIC'
15223       lt_prog_compiler_static_GCJ='-Bstatic'
15224       ;;
15225
15226     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15227       lt_prog_compiler_wl_GCJ='-Wl,'
15228       lt_prog_compiler_pic_GCJ='-KPIC'
15229       lt_prog_compiler_static_GCJ='-Bstatic'
15230       ;;
15231
15232     sysv4*MP*)
15233       if test -d /usr/nec ;then
15234         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15235         lt_prog_compiler_static_GCJ='-Bstatic'
15236       fi
15237       ;;
15238
15239     uts4*)
15240       lt_prog_compiler_pic_GCJ='-pic'
15241       lt_prog_compiler_static_GCJ='-Bstatic'
15242       ;;
15243
15244     *)
15245       lt_prog_compiler_can_build_shared_GCJ=no
15246       ;;
15247     esac
15248   fi
15249
15250 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15251 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15252
15253 #
15254 # Check to make sure the PIC flag actually works.
15255 #
15256 if test -n "$lt_prog_compiler_pic_GCJ"; then
15257   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15258 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15259 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15260   echo $ECHO_N "(cached) $ECHO_C" >&6
15261 else
15262   lt_prog_compiler_pic_works_GCJ=no
15263   ac_outfile=conftest.$ac_objext
15264    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15265    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15266    # Insert the option either (1) after the last *FLAGS variable, or
15267    # (2) before a word containing "conftest.", or (3) at the end.
15268    # Note that $ac_compile itself does not contain backslashes and begins
15269    # with a dollar sign (not a hyphen), so the echo should work correctly.
15270    # The option is referenced via a variable to avoid confusing sed.
15271    lt_compile=`echo "$ac_compile" | $SED \
15272    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15273    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15274    -e 's:$: $lt_compiler_flag:'`
15275    (eval echo "\"\$as_me:15275: $lt_compile\"" >&5)
15276    (eval "$lt_compile" 2>conftest.err)
15277    ac_status=$?
15278    cat conftest.err >&5
15279    echo "$as_me:15279: \$? = $ac_status" >&5
15280    if (exit $ac_status) && test -s "$ac_outfile"; then
15281      # The compiler can only warn and ignore the option if not recognized
15282      # So say no if there are warnings
15283      if test ! -s conftest.err; then
15284        lt_prog_compiler_pic_works_GCJ=yes
15285      fi
15286    fi
15287    $rm conftest*
15288
15289 fi
15290 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15291 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15292
15293 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15294     case $lt_prog_compiler_pic_GCJ in
15295      "" | " "*) ;;
15296      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15297      esac
15298 else
15299     lt_prog_compiler_pic_GCJ=
15300      lt_prog_compiler_can_build_shared_GCJ=no
15301 fi
15302
15303 fi
15304 case "$host_os" in
15305   # For platforms which do not support PIC, -DPIC is meaningless:
15306   *djgpp*)
15307     lt_prog_compiler_pic_GCJ=
15308     ;;
15309   *)
15310     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15311     ;;
15312 esac
15313
15314 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15315 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15316 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15317   echo $ECHO_N "(cached) $ECHO_C" >&6
15318 else
15319   lt_cv_prog_compiler_c_o_GCJ=no
15320    $rm -r conftest 2>/dev/null
15321    mkdir conftest
15322    cd conftest
15323    mkdir out
15324    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15325
15326    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15327    # that will create temporary files in the current directory regardless of
15328    # the output directory.  Thus, making CWD read-only will cause this test
15329    # to fail, enabling locking or at least warning the user not to do parallel
15330    # builds.
15331    chmod -w .
15332
15333    lt_compiler_flag="-o out/conftest2.$ac_objext"
15334    # Insert the option either (1) after the last *FLAGS variable, or
15335    # (2) before a word containing "conftest.", or (3) at the end.
15336    # Note that $ac_compile itself does not contain backslashes and begins
15337    # with a dollar sign (not a hyphen), so the echo should work correctly.
15338    lt_compile=`echo "$ac_compile" | $SED \
15339    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15340    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15341    -e 's:$: $lt_compiler_flag:'`
15342    (eval echo "\"\$as_me:15342: $lt_compile\"" >&5)
15343    (eval "$lt_compile" 2>out/conftest.err)
15344    ac_status=$?
15345    cat out/conftest.err >&5
15346    echo "$as_me:15346: \$? = $ac_status" >&5
15347    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15348    then
15349      # The compiler can only warn and ignore the option if not recognized
15350      # So say no if there are warnings
15351      if test ! -s out/conftest.err; then
15352        lt_cv_prog_compiler_c_o_GCJ=yes
15353      fi
15354    fi
15355    chmod u+w .
15356    $rm conftest* out/*
15357    rmdir out
15358    cd ..
15359    rmdir conftest
15360    $rm conftest*
15361
15362 fi
15363 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15364 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15365
15366
15367 hard_links="nottested"
15368 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15369   # do not overwrite the value of need_locks provided by the user
15370   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15371 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15372   hard_links=yes
15373   $rm conftest*
15374   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15375   touch conftest.a
15376   ln conftest.a conftest.b 2>&5 || hard_links=no
15377   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15378   echo "$as_me:$LINENO: result: $hard_links" >&5
15379 echo "${ECHO_T}$hard_links" >&6
15380   if test "$hard_links" = no; then
15381     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15382 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15383     need_locks=warn
15384   fi
15385 else
15386   need_locks=no
15387 fi
15388
15389 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15390 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15391
15392   runpath_var=
15393   allow_undefined_flag_GCJ=
15394   enable_shared_with_static_runtimes_GCJ=no
15395   archive_cmds_GCJ=
15396   archive_expsym_cmds_GCJ=
15397   old_archive_From_new_cmds_GCJ=
15398   old_archive_from_expsyms_cmds_GCJ=
15399   export_dynamic_flag_spec_GCJ=
15400   whole_archive_flag_spec_GCJ=
15401   thread_safe_flag_spec_GCJ=
15402   hardcode_libdir_flag_spec_GCJ=
15403   hardcode_libdir_flag_spec_ld_GCJ=
15404   hardcode_libdir_separator_GCJ=
15405   hardcode_direct_GCJ=no
15406   hardcode_minus_L_GCJ=no
15407   hardcode_shlibpath_var_GCJ=unsupported
15408   link_all_deplibs_GCJ=unknown
15409   hardcode_automatic_GCJ=no
15410   module_cmds_GCJ=
15411   module_expsym_cmds_GCJ=
15412   always_export_symbols_GCJ=no
15413   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15414   # include_expsyms should be a list of space-separated symbols to be *always*
15415   # included in the symbol list
15416   include_expsyms_GCJ=
15417   # exclude_expsyms can be an extended regexp of symbols to exclude
15418   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15419   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15420   # as well as any symbol that contains `d'.
15421   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15422   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15423   # platforms (ab)use it in PIC code, but their linkers get confused if
15424   # the symbol is explicitly referenced.  Since portable code cannot
15425   # rely on this symbol name, it's probably fine to never include it in
15426   # preloaded symbol tables.
15427   extract_expsyms_cmds=
15428
15429   case $host_os in
15430   cygwin* | mingw* | pw32*)
15431     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15432     # When not using gcc, we currently assume that we are using
15433     # Microsoft Visual C++.
15434     if test "$GCC" != yes; then
15435       with_gnu_ld=no
15436     fi
15437     ;;
15438   openbsd*)
15439     with_gnu_ld=no
15440     ;;
15441   esac
15442
15443   ld_shlibs_GCJ=yes
15444   if test "$with_gnu_ld" = yes; then
15445     # If archive_cmds runs LD, not CC, wlarc should be empty
15446     wlarc='${wl}'
15447
15448     # See if GNU ld supports shared libraries.
15449     case $host_os in
15450     aix3* | aix4* | aix5*)
15451       # On AIX/PPC, the GNU linker is very broken
15452       if test "$host_cpu" != ia64; then
15453         ld_shlibs_GCJ=no
15454         cat <<EOF 1>&2
15455
15456 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15457 *** to be unable to reliably create shared libraries on AIX.
15458 *** Therefore, libtool is disabling shared libraries support.  If you
15459 *** really care for shared libraries, you may want to modify your PATH
15460 *** so that a non-GNU linker is found, and then restart.
15461
15462 EOF
15463       fi
15464       ;;
15465
15466     amigaos*)
15467       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)'
15468       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15469       hardcode_minus_L_GCJ=yes
15470
15471       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15472       # that the semantics of dynamic libraries on AmigaOS, at least up
15473       # to version 4, is to share data among multiple programs linked
15474       # with the same dynamic library.  Since this doesn't match the
15475       # behavior of shared libraries on other platforms, we can't use
15476       # them.
15477       ld_shlibs_GCJ=no
15478       ;;
15479
15480     beos*)
15481       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15482         allow_undefined_flag_GCJ=unsupported
15483         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15484         # support --undefined.  This deserves some investigation.  FIXME
15485         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15486       else
15487         ld_shlibs_GCJ=no
15488       fi
15489       ;;
15490
15491     cygwin* | mingw* | pw32*)
15492       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15493       # as there is no search path for DLLs.
15494       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15495       allow_undefined_flag_GCJ=unsupported
15496       always_export_symbols_GCJ=no
15497       enable_shared_with_static_runtimes_GCJ=yes
15498       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15499
15500       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15501         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15502         # If the export-symbols file already is a .def file (1st line
15503         # is EXPORTS), use it as is; otherwise, prepend...
15504         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15505           cp $export_symbols $output_objdir/$soname.def;
15506         else
15507           echo EXPORTS > $output_objdir/$soname.def;
15508           cat $export_symbols >> $output_objdir/$soname.def;
15509         fi~
15510         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15511       else
15512         ld_shlibs=no
15513       fi
15514       ;;
15515
15516     netbsd*)
15517       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15518         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15519         wlarc=
15520       else
15521         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15522         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15523       fi
15524       ;;
15525
15526     solaris* | sysv5*)
15527       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15528         ld_shlibs_GCJ=no
15529         cat <<EOF 1>&2
15530
15531 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15532 *** create shared libraries on Solaris systems.  Therefore, libtool
15533 *** is disabling shared libraries support.  We urge you to upgrade GNU
15534 *** binutils to release 2.9.1 or newer.  Another option is to modify
15535 *** your PATH or compiler configuration so that the native linker is
15536 *** used, and then restart.
15537
15538 EOF
15539       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15540         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15541         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15542       else
15543         ld_shlibs_GCJ=no
15544       fi
15545       ;;
15546
15547     sunos4*)
15548       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15549       wlarc=
15550       hardcode_direct_GCJ=yes
15551       hardcode_shlibpath_var_GCJ=no
15552       ;;
15553
15554     *)
15555       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15556         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15557         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15558       else
15559         ld_shlibs_GCJ=no
15560       fi
15561       ;;
15562     esac
15563
15564     if test "$ld_shlibs_GCJ" = yes; then
15565       runpath_var=LD_RUN_PATH
15566       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15567       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15568       # ancient GNU ld didn't support --whole-archive et. al.
15569       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15570         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15571       else
15572         whole_archive_flag_spec_GCJ=
15573       fi
15574     fi
15575   else
15576     # PORTME fill in a description of your system's linker (not GNU ld)
15577     case $host_os in
15578     aix3*)
15579       allow_undefined_flag_GCJ=unsupported
15580       always_export_symbols_GCJ=yes
15581       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'
15582       # Note: this linker hardcodes the directories in LIBPATH if there
15583       # are no directories specified by -L.
15584       hardcode_minus_L_GCJ=yes
15585       if test "$GCC" = yes && test -z "$link_static_flag"; then
15586         # Neither direct hardcoding nor static linking is supported with a
15587         # broken collect2.
15588         hardcode_direct_GCJ=unsupported
15589       fi
15590       ;;
15591
15592     aix4* | aix5*)
15593       if test "$host_cpu" = ia64; then
15594         # On IA64, the linker does run time linking by default, so we don't
15595         # have to do anything special.
15596         aix_use_runtimelinking=no
15597         exp_sym_flag='-Bexport'
15598         no_entry_flag=""
15599       else
15600         # If we're using GNU nm, then we don't want the "-C" option.
15601         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15602         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15603           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'
15604         else
15605           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'
15606         fi
15607         aix_use_runtimelinking=no
15608
15609         # Test if we are trying to use run time linking or normal
15610         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15611         # need to do runtime linking.
15612         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15613           for ld_flag in $LDFLAGS; do
15614           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15615             aix_use_runtimelinking=yes
15616             break
15617           fi
15618           done
15619         esac
15620
15621         exp_sym_flag='-bexport'
15622         no_entry_flag='-bnoentry'
15623       fi
15624
15625       # When large executables or shared objects are built, AIX ld can
15626       # have problems creating the table of contents.  If linking a library
15627       # or program results in "error TOC overflow" add -mminimal-toc to
15628       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15629       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15630
15631       archive_cmds_GCJ=''
15632       hardcode_direct_GCJ=yes
15633       hardcode_libdir_separator_GCJ=':'
15634       link_all_deplibs_GCJ=yes
15635
15636       if test "$GCC" = yes; then
15637         case $host_os in aix4.012|aix4.012.*)
15638         # We only want to do this on AIX 4.2 and lower, the check
15639         # below for broken collect2 doesn't work under 4.3+
15640           collect2name=`${CC} -print-prog-name=collect2`
15641           if test -f "$collect2name" && \
15642            strings "$collect2name" | grep resolve_lib_name >/dev/null
15643           then
15644           # We have reworked collect2
15645           hardcode_direct_GCJ=yes
15646           else
15647           # We have old collect2
15648           hardcode_direct_GCJ=unsupported
15649           # It fails to find uninstalled libraries when the uninstalled
15650           # path is not listed in the libpath.  Setting hardcode_minus_L
15651           # to unsupported forces relinking
15652           hardcode_minus_L_GCJ=yes
15653           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15654           hardcode_libdir_separator_GCJ=
15655           fi
15656         esac
15657         shared_flag='-shared'
15658       else
15659         # not using gcc
15660         if test "$host_cpu" = ia64; then
15661         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15662         # chokes on -Wl,-G. The following line is correct:
15663           shared_flag='-G'
15664         else
15665         if test "$aix_use_runtimelinking" = yes; then
15666             shared_flag='${wl}-G'
15667           else
15668             shared_flag='${wl}-bM:SRE'
15669         fi
15670         fi
15671       fi
15672
15673       # It seems that -bexpall does not export symbols beginning with
15674       # underscore (_), so it is better to generate a list of symbols to export.
15675       always_export_symbols_GCJ=yes
15676       if test "$aix_use_runtimelinking" = yes; then
15677         # Warning - without using the other runtime loading flags (-brtl),
15678         # -berok will link without error, but may produce a broken library.
15679         allow_undefined_flag_GCJ='-berok'
15680        # Determine the default libpath from the value encoded in an empty executable.
15681        cat >conftest.$ac_ext <<_ACEOF
15682 #line $LINENO "configure"
15683 /* confdefs.h.  */
15684 _ACEOF
15685 cat confdefs.h >>conftest.$ac_ext
15686 cat >>conftest.$ac_ext <<_ACEOF
15687 /* end confdefs.h.  */
15688
15689 int
15690 main ()
15691 {
15692
15693   ;
15694   return 0;
15695 }
15696 _ACEOF
15697 rm -f conftest.$ac_objext conftest$ac_exeext
15698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15699   (eval $ac_link) 2>&5
15700   ac_status=$?
15701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702   (exit $ac_status); } &&
15703          { ac_try='test -s conftest$ac_exeext'
15704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705   (eval $ac_try) 2>&5
15706   ac_status=$?
15707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708   (exit $ac_status); }; }; then
15709
15710 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15711 }'`
15712 # Check for a 64-bit object if we didn't find anything.
15713 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; }
15714 }'`; fi
15715 else
15716   echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15718
15719 fi
15720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15721 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15722
15723        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15724         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"
15725        else
15726         if test "$host_cpu" = ia64; then
15727           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15728           allow_undefined_flag_GCJ="-z nodefs"
15729           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"
15730         else
15731          # Determine the default libpath from the value encoded in an empty executable.
15732          cat >conftest.$ac_ext <<_ACEOF
15733 #line $LINENO "configure"
15734 /* confdefs.h.  */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h.  */
15739
15740 int
15741 main ()
15742 {
15743
15744   ;
15745   return 0;
15746 }
15747 _ACEOF
15748 rm -f conftest.$ac_objext conftest$ac_exeext
15749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15750   (eval $ac_link) 2>&5
15751   ac_status=$?
15752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753   (exit $ac_status); } &&
15754          { ac_try='test -s conftest$ac_exeext'
15755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756   (eval $ac_try) 2>&5
15757   ac_status=$?
15758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759   (exit $ac_status); }; }; then
15760
15761 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15762 }'`
15763 # Check for a 64-bit object if we didn't find anything.
15764 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; }
15765 }'`; fi
15766 else
15767   echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15769
15770 fi
15771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15773
15774          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15775           # Warning - without using the other run time loading flags,
15776           # -berok will link without error, but may produce a broken library.
15777           no_undefined_flag_GCJ=' ${wl}-bernotok'
15778           allow_undefined_flag_GCJ=' ${wl}-berok'
15779           # -bexpall does not export symbols beginning with underscore (_)
15780           always_export_symbols_GCJ=yes
15781           # Exported symbols can be pulled into shared objects from archives
15782           whole_archive_flag_spec_GCJ=' '
15783           archive_cmds_need_lc_GCJ=yes
15784           # This is similar to how AIX traditionally builds it's shared libraries.
15785           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'
15786         fi
15787       fi
15788       ;;
15789
15790     amigaos*)
15791       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)'
15792       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15793       hardcode_minus_L_GCJ=yes
15794       # see comment about different semantics on the GNU ld section
15795       ld_shlibs_GCJ=no
15796       ;;
15797
15798     bsdi4*)
15799       export_dynamic_flag_spec_GCJ=-rdynamic
15800       ;;
15801
15802     cygwin* | mingw* | pw32*)
15803       # When not using gcc, we currently assume that we are using
15804       # Microsoft Visual C++.
15805       # hardcode_libdir_flag_spec is actually meaningless, as there is
15806       # no search path for DLLs.
15807       hardcode_libdir_flag_spec_GCJ=' '
15808       allow_undefined_flag_GCJ=unsupported
15809       # Tell ltmain to make .lib files, not .a files.
15810       libext=lib
15811       # Tell ltmain to make .dll files, not .so files.
15812       shrext=".dll"
15813       # FIXME: Setting linknames here is a bad hack.
15814       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15815       # The linker will automatically build a .lib file if we build a DLL.
15816       old_archive_From_new_cmds_GCJ='true'
15817       # FIXME: Should let the user specify the lib program.
15818       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15819       fix_srcfile_path='`cygpath -w "$srcfile"`'
15820       enable_shared_with_static_runtimes_GCJ=yes
15821       ;;
15822
15823     darwin* | rhapsody*)
15824     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15825       archive_cmds_need_lc_GCJ=no
15826       case "$host_os" in
15827       rhapsody* | darwin1.[012])
15828         allow_undefined_flag_GCJ='-undefined suppress'
15829         ;;
15830       *) # Darwin 1.3 on
15831         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15832         ;;
15833       esac
15834       # FIXME: Relying on posixy $() will cause problems for
15835       #        cross-compilation, but unfortunately the echo tests do not
15836       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15837       #        `"' quotes if we put them in here... so don't!
15838         lt_int_apple_cc_single_mod=no
15839         output_verbose_link_cmd='echo'
15840         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15841           lt_int_apple_cc_single_mod=yes
15842         fi
15843         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15844           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15845         else
15846         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'
15847       fi
15848       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15849       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15850         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15851           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}'
15852         else
15853           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}'
15854         fi
15855           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}'
15856       hardcode_direct_GCJ=no
15857       hardcode_automatic_GCJ=yes
15858       hardcode_shlibpath_var_GCJ=unsupported
15859       whole_archive_flag_spec_GCJ='-all_load $convenience'
15860       link_all_deplibs_GCJ=yes
15861     fi
15862       ;;
15863
15864     dgux*)
15865       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15866       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15867       hardcode_shlibpath_var_GCJ=no
15868       ;;
15869
15870     freebsd1*)
15871       ld_shlibs_GCJ=no
15872       ;;
15873
15874     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15875     # support.  Future versions do this automatically, but an explicit c++rt0.o
15876     # does not break anything, and helps significantly (at the cost of a little
15877     # extra space).
15878     freebsd2.2*)
15879       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15880       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15881       hardcode_direct_GCJ=yes
15882       hardcode_shlibpath_var_GCJ=no
15883       ;;
15884
15885     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15886     freebsd2*)
15887       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15888       hardcode_direct_GCJ=yes
15889       hardcode_minus_L_GCJ=yes
15890       hardcode_shlibpath_var_GCJ=no
15891       ;;
15892
15893     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15894     freebsd*)
15895       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15896       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15897       hardcode_direct_GCJ=yes
15898       hardcode_shlibpath_var_GCJ=no
15899       ;;
15900
15901     hpux9*)
15902       if test "$GCC" = yes; then
15903         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'
15904       else
15905         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'
15906       fi
15907       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15908       hardcode_libdir_separator_GCJ=:
15909       hardcode_direct_GCJ=yes
15910
15911       # hardcode_minus_L: Not really in the search PATH,
15912       # but as the default location of the library.
15913       hardcode_minus_L_GCJ=yes
15914       export_dynamic_flag_spec_GCJ='${wl}-E'
15915       ;;
15916
15917     hpux10* | hpux11*)
15918       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15919         case "$host_cpu" in
15920         hppa*64*|ia64*)
15921           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15922           ;;
15923         *)
15924           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15925           ;;
15926         esac
15927       else
15928         case "$host_cpu" in
15929         hppa*64*|ia64*)
15930           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15931           ;;
15932         *)
15933           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15934           ;;
15935         esac
15936       fi
15937       if test "$with_gnu_ld" = no; then
15938         case "$host_cpu" in
15939         hppa*64*)
15940           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15941           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15942           hardcode_libdir_separator_GCJ=:
15943           hardcode_direct_GCJ=no
15944           hardcode_shlibpath_var_GCJ=no
15945           ;;
15946         ia64*)
15947           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15948           hardcode_direct_GCJ=no
15949           hardcode_shlibpath_var_GCJ=no
15950
15951           # hardcode_minus_L: Not really in the search PATH,
15952           # but as the default location of the library.
15953           hardcode_minus_L_GCJ=yes
15954           ;;
15955         *)
15956           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15957           hardcode_libdir_separator_GCJ=:
15958           hardcode_direct_GCJ=yes
15959           export_dynamic_flag_spec_GCJ='${wl}-E'
15960
15961           # hardcode_minus_L: Not really in the search PATH,
15962           # but as the default location of the library.
15963           hardcode_minus_L_GCJ=yes
15964           ;;
15965         esac
15966       fi
15967       ;;
15968
15969     irix5* | irix6* | nonstopux*)
15970       if test "$GCC" = yes; then
15971         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'
15972       else
15973         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'
15974         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15975       fi
15976       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15977       hardcode_libdir_separator_GCJ=:
15978       link_all_deplibs_GCJ=yes
15979       ;;
15980
15981     netbsd*)
15982       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15983         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15984       else
15985         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15986       fi
15987       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15988       hardcode_direct_GCJ=yes
15989       hardcode_shlibpath_var_GCJ=no
15990       ;;
15991
15992     newsos6)
15993       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15994       hardcode_direct_GCJ=yes
15995       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15996       hardcode_libdir_separator_GCJ=:
15997       hardcode_shlibpath_var_GCJ=no
15998       ;;
15999
16000     openbsd*)
16001       hardcode_direct_GCJ=yes
16002       hardcode_shlibpath_var_GCJ=no
16003       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16004         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16005         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16006         export_dynamic_flag_spec_GCJ='${wl}-E'
16007       else
16008        case $host_os in
16009          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16010            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16011            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16012            ;;
16013          *)
16014            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16015            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16016            ;;
16017        esac
16018       fi
16019       ;;
16020
16021     os2*)
16022       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16023       hardcode_minus_L_GCJ=yes
16024       allow_undefined_flag_GCJ=unsupported
16025       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'
16026       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16027       ;;
16028
16029     osf3*)
16030       if test "$GCC" = yes; then
16031         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16032         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'
16033       else
16034         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16035         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'
16036       fi
16037       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16038       hardcode_libdir_separator_GCJ=:
16039       ;;
16040
16041     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16042       if test "$GCC" = yes; then
16043         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16044         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'
16045         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16046       else
16047         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16048         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'
16049         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~
16050         $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'
16051
16052         # Both c and cxx compiler support -rpath directly
16053         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16054       fi
16055       hardcode_libdir_separator_GCJ=:
16056       ;;
16057
16058     sco3.2v5*)
16059       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16060       hardcode_shlibpath_var_GCJ=no
16061       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16062       runpath_var=LD_RUN_PATH
16063       hardcode_runpath_var=yes
16064       ;;
16065
16066     solaris*)
16067       no_undefined_flag_GCJ=' -z text'
16068       if test "$GCC" = yes; then
16069         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16070         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16071           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16072       else
16073         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16074         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16075         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16076       fi
16077       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16078       hardcode_shlibpath_var_GCJ=no
16079       case $host_os in
16080       solaris2.[0-5] | solaris2.[0-5].*) ;;
16081       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16082         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16083       esac
16084       link_all_deplibs_GCJ=yes
16085       ;;
16086
16087     sunos4*)
16088       if test "x$host_vendor" = xsequent; then
16089         # Use $CC to link under sequent, because it throws in some extra .o
16090         # files that make .init and .fini sections work.
16091         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16092       else
16093         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16094       fi
16095       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16096       hardcode_direct_GCJ=yes
16097       hardcode_minus_L_GCJ=yes
16098       hardcode_shlibpath_var_GCJ=no
16099       ;;
16100
16101     sysv4)
16102       case $host_vendor in
16103         sni)
16104           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16105           hardcode_direct_GCJ=yes # is this really true???
16106         ;;
16107         siemens)
16108           ## LD is ld it makes a PLAMLIB
16109           ## CC just makes a GrossModule.
16110           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16111           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16112           hardcode_direct_GCJ=no
16113         ;;
16114         motorola)
16115           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16116           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16117         ;;
16118       esac
16119       runpath_var='LD_RUN_PATH'
16120       hardcode_shlibpath_var_GCJ=no
16121       ;;
16122
16123     sysv4.3*)
16124       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16125       hardcode_shlibpath_var_GCJ=no
16126       export_dynamic_flag_spec_GCJ='-Bexport'
16127       ;;
16128
16129     sysv4*MP*)
16130       if test -d /usr/nec; then
16131         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16132         hardcode_shlibpath_var_GCJ=no
16133         runpath_var=LD_RUN_PATH
16134         hardcode_runpath_var=yes
16135         ld_shlibs_GCJ=yes
16136       fi
16137       ;;
16138
16139     sysv4.2uw2*)
16140       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16141       hardcode_direct_GCJ=yes
16142       hardcode_minus_L_GCJ=no
16143       hardcode_shlibpath_var_GCJ=no
16144       hardcode_runpath_var=yes
16145       runpath_var=LD_RUN_PATH
16146       ;;
16147
16148    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16149       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16150       if test "$GCC" = yes; then
16151         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16152       else
16153         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16154       fi
16155       runpath_var='LD_RUN_PATH'
16156       hardcode_shlibpath_var_GCJ=no
16157       ;;
16158
16159     sysv5*)
16160       no_undefined_flag_GCJ=' -z text'
16161       # $CC -shared without GNU ld will not create a library from C++
16162       # object files and a static libstdc++, better avoid it by now
16163       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16164       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16165                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16166       hardcode_libdir_flag_spec_GCJ=
16167       hardcode_shlibpath_var_GCJ=no
16168       runpath_var='LD_RUN_PATH'
16169       ;;
16170
16171     uts4*)
16172       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16173       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16174       hardcode_shlibpath_var_GCJ=no
16175       ;;
16176
16177     *)
16178       ld_shlibs_GCJ=no
16179       ;;
16180     esac
16181   fi
16182
16183 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16184 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16185 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16186
16187 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16188 if test "$GCC" = yes; then
16189   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16190 fi
16191
16192 #
16193 # Do we need to explicitly link libc?
16194 #
16195 case "x$archive_cmds_need_lc_GCJ" in
16196 x|xyes)
16197   # Assume -lc should be added
16198   archive_cmds_need_lc_GCJ=yes
16199
16200   if test "$enable_shared" = yes && test "$GCC" = yes; then
16201     case $archive_cmds_GCJ in
16202     *'~'*)
16203       # FIXME: we may have to deal with multi-command sequences.
16204       ;;
16205     '$CC '*)
16206       # Test whether the compiler implicitly links with -lc since on some
16207       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16208       # to ld, don't add -lc before -lgcc.
16209       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16210 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16211       $rm conftest*
16212       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16213
16214       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16215   (eval $ac_compile) 2>&5
16216   ac_status=$?
16217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218   (exit $ac_status); } 2>conftest.err; then
16219         soname=conftest
16220         lib=conftest
16221         libobjs=conftest.$ac_objext
16222         deplibs=
16223         wl=$lt_prog_compiler_wl_GCJ
16224         compiler_flags=-v
16225         linker_flags=-v
16226         verstring=
16227         output_objdir=.
16228         libname=conftest
16229         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16230         allow_undefined_flag_GCJ=
16231         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16232   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16233   ac_status=$?
16234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235   (exit $ac_status); }
16236         then
16237           archive_cmds_need_lc_GCJ=no
16238         else
16239           archive_cmds_need_lc_GCJ=yes
16240         fi
16241         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16242       else
16243         cat conftest.err 1>&5
16244       fi
16245       $rm conftest*
16246       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16247 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16248       ;;
16249     esac
16250   fi
16251   ;;
16252 esac
16253
16254 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16255 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16256 hardcode_action_GCJ=
16257 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16258    test -n "$runpath_var GCJ" || \
16259    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16260
16261   # We can hardcode non-existant directories.
16262   if test "$hardcode_direct_GCJ" != no &&
16263      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16264      # have to relink, otherwise we might link with an installed library
16265      # when we should be linking with a yet-to-be-installed one
16266      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16267      test "$hardcode_minus_L_GCJ" != no; then
16268     # Linking always hardcodes the temporary library directory.
16269     hardcode_action_GCJ=relink
16270   else
16271     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16272     hardcode_action_GCJ=immediate
16273   fi
16274 else
16275   # We cannot hardcode anything, or else we can only hardcode existing
16276   # directories.
16277   hardcode_action_GCJ=unsupported
16278 fi
16279 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16280 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16281
16282 if test "$hardcode_action_GCJ" = relink; then
16283   # Fast installation is not supported
16284   enable_fast_install=no
16285 elif test "$shlibpath_overrides_runpath" = yes ||
16286      test "$enable_shared" = no; then
16287   # Fast installation is not necessary
16288   enable_fast_install=needless
16289 fi
16290
16291 striplib=
16292 old_striplib=
16293 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16294 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16295 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16296   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16297   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16298   echo "$as_me:$LINENO: result: yes" >&5
16299 echo "${ECHO_T}yes" >&6
16300 else
16301 # FIXME - insert some real tests, host_os isn't really good enough
16302   case $host_os in
16303    darwin*)
16304        if test -n "$STRIP" ; then
16305          striplib="$STRIP -x"
16306          echo "$as_me:$LINENO: result: yes" >&5
16307 echo "${ECHO_T}yes" >&6
16308        else
16309   echo "$as_me:$LINENO: result: no" >&5
16310 echo "${ECHO_T}no" >&6
16311 fi
16312        ;;
16313    *)
16314   echo "$as_me:$LINENO: result: no" >&5
16315 echo "${ECHO_T}no" >&6
16316     ;;
16317   esac
16318 fi
16319
16320 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16321 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16322 library_names_spec=
16323 libname_spec='lib$name'
16324 soname_spec=
16325 shrext=".so"
16326 postinstall_cmds=
16327 postuninstall_cmds=
16328 finish_cmds=
16329 finish_eval=
16330 shlibpath_var=
16331 shlibpath_overrides_runpath=unknown
16332 version_type=none
16333 dynamic_linker="$host_os ld.so"
16334 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16335 if test "$GCC" = yes; then
16336   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16337   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16338     # if the path contains ";" then we assume it to be the separator
16339     # otherwise default to the standard path separator (i.e. ":") - it is
16340     # assumed that no part of a normal pathname contains ";" but that should
16341     # okay in the real world where ";" in dirpaths is itself problematic.
16342     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16343   else
16344     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16345   fi
16346 else
16347   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16348 fi
16349 need_lib_prefix=unknown
16350 hardcode_into_libs=no
16351
16352 # when you set need_version to no, make sure it does not cause -set_version
16353 # flags to be left without arguments
16354 need_version=unknown
16355
16356 case $host_os in
16357 aix3*)
16358   version_type=linux
16359   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16360   shlibpath_var=LIBPATH
16361
16362   # AIX 3 has no versioning support, so we append a major version to the name.
16363   soname_spec='${libname}${release}${shared_ext}$major'
16364   ;;
16365
16366 aix4* | aix5*)
16367   version_type=linux
16368   need_lib_prefix=no
16369   need_version=no
16370   hardcode_into_libs=yes
16371   if test "$host_cpu" = ia64; then
16372     # AIX 5 supports IA64
16373     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16374     shlibpath_var=LD_LIBRARY_PATH
16375   else
16376     # With GCC up to 2.95.x, collect2 would create an import file
16377     # for dependence libraries.  The import file would start with
16378     # the line `#! .'.  This would cause the generated library to
16379     # depend on `.', always an invalid library.  This was fixed in
16380     # development snapshots of GCC prior to 3.0.
16381     case $host_os in
16382       aix4 | aix4.[01] | aix4.[01].*)
16383       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16384            echo ' yes '
16385            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16386         :
16387       else
16388         can_build_shared=no
16389       fi
16390       ;;
16391     esac
16392     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16393     # soname into executable. Probably we can add versioning support to
16394     # collect2, so additional links can be useful in future.
16395     if test "$aix_use_runtimelinking" = yes; then
16396       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16397       # instead of lib<name>.a to let people know that these are not
16398       # typical AIX shared libraries.
16399       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16400     else
16401       # We preserve .a as extension for shared libraries through AIX4.2
16402       # and later when we are not doing run time linking.
16403       library_names_spec='${libname}${release}.a $libname.a'
16404       soname_spec='${libname}${release}${shared_ext}$major'
16405     fi
16406     shlibpath_var=LIBPATH
16407   fi
16408   ;;
16409
16410 amigaos*)
16411   library_names_spec='$libname.ixlibrary $libname.a'
16412   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16413   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'
16414   ;;
16415
16416 beos*)
16417   library_names_spec='${libname}${shared_ext}'
16418   dynamic_linker="$host_os ld.so"
16419   shlibpath_var=LIBRARY_PATH
16420   ;;
16421
16422 bsdi4*)
16423   version_type=linux
16424   need_version=no
16425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426   soname_spec='${libname}${release}${shared_ext}$major'
16427   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16428   shlibpath_var=LD_LIBRARY_PATH
16429   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16430   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16431   # the default ld.so.conf also contains /usr/contrib/lib and
16432   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16433   # libtool to hard-code these into programs
16434   ;;
16435
16436 cygwin* | mingw* | pw32*)
16437   version_type=windows
16438   shrext=".dll"
16439   need_version=no
16440   need_lib_prefix=no
16441
16442   case $GCC,$host_os in
16443   yes,cygwin* | yes,mingw* | yes,pw32*)
16444     library_names_spec='$libname.dll.a'
16445     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16446     postinstall_cmds='base_file=`basename \${file}`~
16447       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16448       dldir=$destdir/`dirname \$dlpath`~
16449       test -d \$dldir || mkdir -p \$dldir~
16450       $install_prog $dir/$dlname \$dldir/$dlname'
16451     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16452       dlpath=$dir/\$dldll~
16453        $rm \$dlpath'
16454     shlibpath_overrides_runpath=yes
16455
16456     case $host_os in
16457     cygwin*)
16458       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16459       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16460       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16461       ;;
16462     mingw*)
16463       # MinGW DLLs use traditional 'lib' prefix
16464       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16465       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16466       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16467         # It is most probably a Windows format PATH printed by
16468         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16469         # path with ; separators, and with drive letters. We can handle the
16470         # drive letters (cygwin fileutils understands them), so leave them,
16471         # especially as we might pass files found there to a mingw objdump,
16472         # which wouldn't understand a cygwinified path. Ahh.
16473         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16474       else
16475         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16476       fi
16477       ;;
16478     pw32*)
16479       # pw32 DLLs use 'pw' prefix rather than 'lib'
16480       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16481       ;;
16482     esac
16483     ;;
16484
16485   *)
16486     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16487     ;;
16488   esac
16489   dynamic_linker='Win32 ld.exe'
16490   # FIXME: first we should search . and the directory the executable is in
16491   shlibpath_var=PATH
16492   ;;
16493
16494 darwin* | rhapsody*)
16495   dynamic_linker="$host_os dyld"
16496   version_type=darwin
16497   need_lib_prefix=no
16498   need_version=no
16499   # FIXME: Relying on posixy $() will cause problems for
16500   #        cross-compilation, but unfortunately the echo tests do not
16501   #        yet detect zsh echo's removal of \ escapes.
16502   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16503   soname_spec='${libname}${release}${major}$shared_ext'
16504   shlibpath_overrides_runpath=yes
16505   shlibpath_var=DYLD_LIBRARY_PATH
16506   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16507   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16508   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16509   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"`
16510   fi
16511   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16512   ;;
16513
16514 dgux*)
16515   version_type=linux
16516   need_lib_prefix=no
16517   need_version=no
16518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16519   soname_spec='${libname}${release}${shared_ext}$major'
16520   shlibpath_var=LD_LIBRARY_PATH
16521   ;;
16522
16523 freebsd1*)
16524   dynamic_linker=no
16525   ;;
16526
16527 freebsd*)
16528   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16529   version_type=freebsd-$objformat
16530   case $version_type in
16531     freebsd-elf*)
16532       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16533       need_version=no
16534       need_lib_prefix=no
16535       ;;
16536     freebsd-*)
16537       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16538       need_version=yes
16539       ;;
16540   esac
16541   shlibpath_var=LD_LIBRARY_PATH
16542   case $host_os in
16543   freebsd2*)
16544     shlibpath_overrides_runpath=yes
16545     ;;
16546   freebsd3.01* | freebsdelf3.01*)
16547     shlibpath_overrides_runpath=yes
16548     hardcode_into_libs=yes
16549     ;;
16550   *) # from 3.2 on
16551     shlibpath_overrides_runpath=no
16552     hardcode_into_libs=yes
16553     ;;
16554   esac
16555   ;;
16556
16557 gnu*)
16558   version_type=linux
16559   need_lib_prefix=no
16560   need_version=no
16561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16562   soname_spec='${libname}${release}${shared_ext}$major'
16563   shlibpath_var=LD_LIBRARY_PATH
16564   hardcode_into_libs=yes
16565   ;;
16566
16567 hpux9* | hpux10* | hpux11*)
16568   # Give a soname corresponding to the major version so that dld.sl refuses to
16569   # link against other versions.
16570   version_type=sunos
16571   need_lib_prefix=no
16572   need_version=no
16573   case "$host_cpu" in
16574   ia64*)
16575     shrext='.so'
16576     hardcode_into_libs=yes
16577     dynamic_linker="$host_os dld.so"
16578     shlibpath_var=LD_LIBRARY_PATH
16579     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16580     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16581     soname_spec='${libname}${release}${shared_ext}$major'
16582     if test "X$HPUX_IA64_MODE" = X32; then
16583       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16584     else
16585       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16586     fi
16587     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16588     ;;
16589    hppa*64*)
16590      shrext='.sl'
16591      hardcode_into_libs=yes
16592      dynamic_linker="$host_os dld.sl"
16593      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16594      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16595      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16596      soname_spec='${libname}${release}${shared_ext}$major'
16597      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16598      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16599      ;;
16600    *)
16601     shrext='.sl'
16602     dynamic_linker="$host_os dld.sl"
16603     shlibpath_var=SHLIB_PATH
16604     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16605     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16606     soname_spec='${libname}${release}${shared_ext}$major'
16607     ;;
16608   esac
16609   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16610   postinstall_cmds='chmod 555 $lib'
16611   ;;
16612
16613 irix5* | irix6* | nonstopux*)
16614   case $host_os in
16615     nonstopux*) version_type=nonstopux ;;
16616     *)
16617         if test "$lt_cv_prog_gnu_ld" = yes; then
16618                 version_type=linux
16619         else
16620                 version_type=irix
16621         fi ;;
16622   esac
16623   need_lib_prefix=no
16624   need_version=no
16625   soname_spec='${libname}${release}${shared_ext}$major'
16626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16627   case $host_os in
16628   irix5* | nonstopux*)
16629     libsuff= shlibsuff=
16630     ;;
16631   *)
16632     case $LD in # libtool.m4 will add one of these switches to LD
16633     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16634       libsuff= shlibsuff= libmagic=32-bit;;
16635     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16636       libsuff=32 shlibsuff=N32 libmagic=N32;;
16637     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16638       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16639     *) libsuff= shlibsuff= libmagic=never-match;;
16640     esac
16641     ;;
16642   esac
16643   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16644   shlibpath_overrides_runpath=no
16645   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16646   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16647   hardcode_into_libs=yes
16648   ;;
16649
16650 # No shared lib support for Linux oldld, aout, or coff.
16651 linux*oldld* | linux*aout* | linux*coff*)
16652   dynamic_linker=no
16653   ;;
16654
16655 # This must be Linux ELF.
16656 linux*)
16657   version_type=linux
16658   need_lib_prefix=no
16659   need_version=no
16660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16661   soname_spec='${libname}${release}${shared_ext}$major'
16662   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16663   shlibpath_var=LD_LIBRARY_PATH
16664   shlibpath_overrides_runpath=no
16665   # This implies no fast_install, which is unacceptable.
16666   # Some rework will be needed to allow for fast_install
16667   # before this can be enabled.
16668   hardcode_into_libs=yes
16669
16670   # We used to test for /lib/ld.so.1 and disable shared libraries on
16671   # powerpc, because MkLinux only supported shared libraries with the
16672   # GNU dynamic linker.  Since this was broken with cross compilers,
16673   # most powerpc-linux boxes support dynamic linking these days and
16674   # people can always --disable-shared, the test was removed, and we
16675   # assume the GNU/Linux dynamic linker is in use.
16676   dynamic_linker='GNU/Linux ld.so'
16677   ;;
16678
16679 netbsd*)
16680   version_type=sunos
16681   need_lib_prefix=no
16682   need_version=no
16683   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16684     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16685     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16686     dynamic_linker='NetBSD (a.out) ld.so'
16687   else
16688     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16689     soname_spec='${libname}${release}${shared_ext}$major'
16690     dynamic_linker='NetBSD ld.elf_so'
16691   fi
16692   shlibpath_var=LD_LIBRARY_PATH
16693   shlibpath_overrides_runpath=yes
16694   hardcode_into_libs=yes
16695   ;;
16696
16697 newsos6)
16698   version_type=linux
16699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16700   shlibpath_var=LD_LIBRARY_PATH
16701   shlibpath_overrides_runpath=yes
16702   ;;
16703
16704 nto-qnx)
16705   version_type=linux
16706   need_lib_prefix=no
16707   need_version=no
16708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16709   soname_spec='${libname}${release}${shared_ext}$major'
16710   shlibpath_var=LD_LIBRARY_PATH
16711   shlibpath_overrides_runpath=yes
16712   ;;
16713
16714 openbsd*)
16715   version_type=sunos
16716   need_lib_prefix=no
16717   need_version=no
16718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16719   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16720   shlibpath_var=LD_LIBRARY_PATH
16721   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16722     case $host_os in
16723       openbsd2.[89] | openbsd2.[89].*)
16724         shlibpath_overrides_runpath=no
16725         ;;
16726       *)
16727         shlibpath_overrides_runpath=yes
16728         ;;
16729       esac
16730   else
16731     shlibpath_overrides_runpath=yes
16732   fi
16733   ;;
16734
16735 os2*)
16736   libname_spec='$name'
16737   shrext=".dll"
16738   need_lib_prefix=no
16739   library_names_spec='$libname${shared_ext} $libname.a'
16740   dynamic_linker='OS/2 ld.exe'
16741   shlibpath_var=LIBPATH
16742   ;;
16743
16744 osf3* | osf4* | osf5*)
16745   version_type=osf
16746   need_lib_prefix=no
16747   need_version=no
16748   soname_spec='${libname}${release}${shared_ext}$major'
16749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16750   shlibpath_var=LD_LIBRARY_PATH
16751   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16752   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16753   ;;
16754
16755 sco3.2v5*)
16756   version_type=osf
16757   soname_spec='${libname}${release}${shared_ext}$major'
16758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16759   shlibpath_var=LD_LIBRARY_PATH
16760   ;;
16761
16762 solaris*)
16763   version_type=linux
16764   need_lib_prefix=no
16765   need_version=no
16766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16767   soname_spec='${libname}${release}${shared_ext}$major'
16768   shlibpath_var=LD_LIBRARY_PATH
16769   shlibpath_overrides_runpath=yes
16770   hardcode_into_libs=yes
16771   # ldd complains unless libraries are executable
16772   postinstall_cmds='chmod +x $lib'
16773   ;;
16774
16775 sunos4*)
16776   version_type=sunos
16777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16778   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16779   shlibpath_var=LD_LIBRARY_PATH
16780   shlibpath_overrides_runpath=yes
16781   if test "$with_gnu_ld" = yes; then
16782     need_lib_prefix=no
16783   fi
16784   need_version=yes
16785   ;;
16786
16787 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16788   version_type=linux
16789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16790   soname_spec='${libname}${release}${shared_ext}$major'
16791   shlibpath_var=LD_LIBRARY_PATH
16792   case $host_vendor in
16793     sni)
16794       shlibpath_overrides_runpath=no
16795       need_lib_prefix=no
16796       export_dynamic_flag_spec='${wl}-Blargedynsym'
16797       runpath_var=LD_RUN_PATH
16798       ;;
16799     siemens)
16800       need_lib_prefix=no
16801       ;;
16802     motorola)
16803       need_lib_prefix=no
16804       need_version=no
16805       shlibpath_overrides_runpath=no
16806       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16807       ;;
16808   esac
16809   ;;
16810
16811 sysv4*MP*)
16812   if test -d /usr/nec ;then
16813     version_type=linux
16814     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16815     soname_spec='$libname${shared_ext}.$major'
16816     shlibpath_var=LD_LIBRARY_PATH
16817   fi
16818   ;;
16819
16820 uts4*)
16821   version_type=linux
16822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16823   soname_spec='${libname}${release}${shared_ext}$major'
16824   shlibpath_var=LD_LIBRARY_PATH
16825   ;;
16826
16827 *)
16828   dynamic_linker=no
16829   ;;
16830 esac
16831 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16832 echo "${ECHO_T}$dynamic_linker" >&6
16833 test "$dynamic_linker" = no && can_build_shared=no
16834
16835 if test "x$enable_dlopen" != xyes; then
16836   enable_dlopen=unknown
16837   enable_dlopen_self=unknown
16838   enable_dlopen_self_static=unknown
16839 else
16840   lt_cv_dlopen=no
16841   lt_cv_dlopen_libs=
16842
16843   case $host_os in
16844   beos*)
16845     lt_cv_dlopen="load_add_on"
16846     lt_cv_dlopen_libs=
16847     lt_cv_dlopen_self=yes
16848     ;;
16849
16850   mingw* | pw32*)
16851     lt_cv_dlopen="LoadLibrary"
16852     lt_cv_dlopen_libs=
16853    ;;
16854
16855   cygwin*)
16856     lt_cv_dlopen="dlopen"
16857     lt_cv_dlopen_libs=
16858    ;;
16859
16860   darwin*)
16861   # if libdl is installed we need to link against it
16862     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16863 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16864 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16865   echo $ECHO_N "(cached) $ECHO_C" >&6
16866 else
16867   ac_check_lib_save_LIBS=$LIBS
16868 LIBS="-ldl  $LIBS"
16869 cat >conftest.$ac_ext <<_ACEOF
16870 #line $LINENO "configure"
16871 /* confdefs.h.  */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h.  */
16876
16877 /* Override any gcc2 internal prototype to avoid an error.  */
16878 #ifdef __cplusplus
16879 extern "C"
16880 #endif
16881 /* We use char because int might match the return type of a gcc2
16882    builtin and then its argument prototype would still apply.  */
16883 char dlopen ();
16884 int
16885 main ()
16886 {
16887 dlopen ();
16888   ;
16889   return 0;
16890 }
16891 _ACEOF
16892 rm -f conftest.$ac_objext conftest$ac_exeext
16893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16894   (eval $ac_link) 2>&5
16895   ac_status=$?
16896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897   (exit $ac_status); } &&
16898          { ac_try='test -s conftest$ac_exeext'
16899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900   (eval $ac_try) 2>&5
16901   ac_status=$?
16902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903   (exit $ac_status); }; }; then
16904   ac_cv_lib_dl_dlopen=yes
16905 else
16906   echo "$as_me: failed program was:" >&5
16907 sed 's/^/| /' conftest.$ac_ext >&5
16908
16909 ac_cv_lib_dl_dlopen=no
16910 fi
16911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16912 LIBS=$ac_check_lib_save_LIBS
16913 fi
16914 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16915 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16916 if test $ac_cv_lib_dl_dlopen = yes; then
16917   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16918 else
16919
16920     lt_cv_dlopen="dyld"
16921     lt_cv_dlopen_libs=
16922     lt_cv_dlopen_self=yes
16923
16924 fi
16925
16926    ;;
16927
16928   *)
16929     echo "$as_me:$LINENO: checking for shl_load" >&5
16930 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16931 if test "${ac_cv_func_shl_load+set}" = set; then
16932   echo $ECHO_N "(cached) $ECHO_C" >&6
16933 else
16934   cat >conftest.$ac_ext <<_ACEOF
16935 #line $LINENO "configure"
16936 /* confdefs.h.  */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h.  */
16941 /* System header to define __stub macros and hopefully few prototypes,
16942     which can conflict with char shl_load (); below.
16943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16944     <limits.h> exists even on freestanding compilers.  */
16945 #ifdef __STDC__
16946 # include <limits.h>
16947 #else
16948 # include <assert.h>
16949 #endif
16950 /* Override any gcc2 internal prototype to avoid an error.  */
16951 #ifdef __cplusplus
16952 extern "C"
16953 {
16954 #endif
16955 /* We use char because int might match the return type of a gcc2
16956    builtin and then its argument prototype would still apply.  */
16957 char shl_load ();
16958 /* The GNU C library defines this for functions which it implements
16959     to always fail with ENOSYS.  Some functions are actually named
16960     something starting with __ and the normal name is an alias.  */
16961 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16962 choke me
16963 #else
16964 char (*f) () = shl_load;
16965 #endif
16966 #ifdef __cplusplus
16967 }
16968 #endif
16969
16970 int
16971 main ()
16972 {
16973 return f != shl_load;
16974   ;
16975   return 0;
16976 }
16977 _ACEOF
16978 rm -f conftest.$ac_objext conftest$ac_exeext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16980   (eval $ac_link) 2>&5
16981   ac_status=$?
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); } &&
16984          { ac_try='test -s conftest$ac_exeext'
16985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986   (eval $ac_try) 2>&5
16987   ac_status=$?
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); }; }; then
16990   ac_cv_func_shl_load=yes
16991 else
16992   echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16994
16995 ac_cv_func_shl_load=no
16996 fi
16997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16998 fi
16999 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17000 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17001 if test $ac_cv_func_shl_load = yes; then
17002   lt_cv_dlopen="shl_load"
17003 else
17004   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17005 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17006 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17007   echo $ECHO_N "(cached) $ECHO_C" >&6
17008 else
17009   ac_check_lib_save_LIBS=$LIBS
17010 LIBS="-ldld  $LIBS"
17011 cat >conftest.$ac_ext <<_ACEOF
17012 #line $LINENO "configure"
17013 /* confdefs.h.  */
17014 _ACEOF
17015 cat confdefs.h >>conftest.$ac_ext
17016 cat >>conftest.$ac_ext <<_ACEOF
17017 /* end confdefs.h.  */
17018
17019 /* Override any gcc2 internal prototype to avoid an error.  */
17020 #ifdef __cplusplus
17021 extern "C"
17022 #endif
17023 /* We use char because int might match the return type of a gcc2
17024    builtin and then its argument prototype would still apply.  */
17025 char shl_load ();
17026 int
17027 main ()
17028 {
17029 shl_load ();
17030   ;
17031   return 0;
17032 }
17033 _ACEOF
17034 rm -f conftest.$ac_objext conftest$ac_exeext
17035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17036   (eval $ac_link) 2>&5
17037   ac_status=$?
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); } &&
17040          { ac_try='test -s conftest$ac_exeext'
17041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17042   (eval $ac_try) 2>&5
17043   ac_status=$?
17044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045   (exit $ac_status); }; }; then
17046   ac_cv_lib_dld_shl_load=yes
17047 else
17048   echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.$ac_ext >&5
17050
17051 ac_cv_lib_dld_shl_load=no
17052 fi
17053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17054 LIBS=$ac_check_lib_save_LIBS
17055 fi
17056 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17057 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17058 if test $ac_cv_lib_dld_shl_load = yes; then
17059   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17060 else
17061   echo "$as_me:$LINENO: checking for dlopen" >&5
17062 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17063 if test "${ac_cv_func_dlopen+set}" = set; then
17064   echo $ECHO_N "(cached) $ECHO_C" >&6
17065 else
17066   cat >conftest.$ac_ext <<_ACEOF
17067 #line $LINENO "configure"
17068 /* confdefs.h.  */
17069 _ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h.  */
17073 /* System header to define __stub macros and hopefully few prototypes,
17074     which can conflict with char dlopen (); below.
17075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17076     <limits.h> exists even on freestanding compilers.  */
17077 #ifdef __STDC__
17078 # include <limits.h>
17079 #else
17080 # include <assert.h>
17081 #endif
17082 /* Override any gcc2 internal prototype to avoid an error.  */
17083 #ifdef __cplusplus
17084 extern "C"
17085 {
17086 #endif
17087 /* We use char because int might match the return type of a gcc2
17088    builtin and then its argument prototype would still apply.  */
17089 char dlopen ();
17090 /* The GNU C library defines this for functions which it implements
17091     to always fail with ENOSYS.  Some functions are actually named
17092     something starting with __ and the normal name is an alias.  */
17093 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17094 choke me
17095 #else
17096 char (*f) () = dlopen;
17097 #endif
17098 #ifdef __cplusplus
17099 }
17100 #endif
17101
17102 int
17103 main ()
17104 {
17105 return f != dlopen;
17106   ;
17107   return 0;
17108 }
17109 _ACEOF
17110 rm -f conftest.$ac_objext conftest$ac_exeext
17111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17112   (eval $ac_link) 2>&5
17113   ac_status=$?
17114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115   (exit $ac_status); } &&
17116          { ac_try='test -s conftest$ac_exeext'
17117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118   (eval $ac_try) 2>&5
17119   ac_status=$?
17120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121   (exit $ac_status); }; }; then
17122   ac_cv_func_dlopen=yes
17123 else
17124   echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17126
17127 ac_cv_func_dlopen=no
17128 fi
17129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17130 fi
17131 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17132 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17133 if test $ac_cv_func_dlopen = yes; then
17134   lt_cv_dlopen="dlopen"
17135 else
17136   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17137 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17138 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17139   echo $ECHO_N "(cached) $ECHO_C" >&6
17140 else
17141   ac_check_lib_save_LIBS=$LIBS
17142 LIBS="-ldl  $LIBS"
17143 cat >conftest.$ac_ext <<_ACEOF
17144 #line $LINENO "configure"
17145 /* confdefs.h.  */
17146 _ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h.  */
17150
17151 /* Override any gcc2 internal prototype to avoid an error.  */
17152 #ifdef __cplusplus
17153 extern "C"
17154 #endif
17155 /* We use char because int might match the return type of a gcc2
17156    builtin and then its argument prototype would still apply.  */
17157 char dlopen ();
17158 int
17159 main ()
17160 {
17161 dlopen ();
17162   ;
17163   return 0;
17164 }
17165 _ACEOF
17166 rm -f conftest.$ac_objext conftest$ac_exeext
17167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17168   (eval $ac_link) 2>&5
17169   ac_status=$?
17170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171   (exit $ac_status); } &&
17172          { ac_try='test -s conftest$ac_exeext'
17173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174   (eval $ac_try) 2>&5
17175   ac_status=$?
17176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177   (exit $ac_status); }; }; then
17178   ac_cv_lib_dl_dlopen=yes
17179 else
17180   echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17182
17183 ac_cv_lib_dl_dlopen=no
17184 fi
17185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17186 LIBS=$ac_check_lib_save_LIBS
17187 fi
17188 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17189 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17190 if test $ac_cv_lib_dl_dlopen = yes; then
17191   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17192 else
17193   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17194 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17195 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17196   echo $ECHO_N "(cached) $ECHO_C" >&6
17197 else
17198   ac_check_lib_save_LIBS=$LIBS
17199 LIBS="-lsvld  $LIBS"
17200 cat >conftest.$ac_ext <<_ACEOF
17201 #line $LINENO "configure"
17202 /* confdefs.h.  */
17203 _ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h.  */
17207
17208 /* Override any gcc2 internal prototype to avoid an error.  */
17209 #ifdef __cplusplus
17210 extern "C"
17211 #endif
17212 /* We use char because int might match the return type of a gcc2
17213    builtin and then its argument prototype would still apply.  */
17214 char dlopen ();
17215 int
17216 main ()
17217 {
17218 dlopen ();
17219   ;
17220   return 0;
17221 }
17222 _ACEOF
17223 rm -f conftest.$ac_objext conftest$ac_exeext
17224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17225   (eval $ac_link) 2>&5
17226   ac_status=$?
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); } &&
17229          { ac_try='test -s conftest$ac_exeext'
17230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231   (eval $ac_try) 2>&5
17232   ac_status=$?
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); }; }; then
17235   ac_cv_lib_svld_dlopen=yes
17236 else
17237   echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17239
17240 ac_cv_lib_svld_dlopen=no
17241 fi
17242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17243 LIBS=$ac_check_lib_save_LIBS
17244 fi
17245 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17246 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17247 if test $ac_cv_lib_svld_dlopen = yes; then
17248   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17249 else
17250   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17251 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17252 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17253   echo $ECHO_N "(cached) $ECHO_C" >&6
17254 else
17255   ac_check_lib_save_LIBS=$LIBS
17256 LIBS="-ldld  $LIBS"
17257 cat >conftest.$ac_ext <<_ACEOF
17258 #line $LINENO "configure"
17259 /* confdefs.h.  */
17260 _ACEOF
17261 cat confdefs.h >>conftest.$ac_ext
17262 cat >>conftest.$ac_ext <<_ACEOF
17263 /* end confdefs.h.  */
17264
17265 /* Override any gcc2 internal prototype to avoid an error.  */
17266 #ifdef __cplusplus
17267 extern "C"
17268 #endif
17269 /* We use char because int might match the return type of a gcc2
17270    builtin and then its argument prototype would still apply.  */
17271 char dld_link ();
17272 int
17273 main ()
17274 {
17275 dld_link ();
17276   ;
17277   return 0;
17278 }
17279 _ACEOF
17280 rm -f conftest.$ac_objext conftest$ac_exeext
17281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17282   (eval $ac_link) 2>&5
17283   ac_status=$?
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); } &&
17286          { ac_try='test -s conftest$ac_exeext'
17287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288   (eval $ac_try) 2>&5
17289   ac_status=$?
17290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291   (exit $ac_status); }; }; then
17292   ac_cv_lib_dld_dld_link=yes
17293 else
17294   echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17296
17297 ac_cv_lib_dld_dld_link=no
17298 fi
17299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17300 LIBS=$ac_check_lib_save_LIBS
17301 fi
17302 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17303 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17304 if test $ac_cv_lib_dld_dld_link = yes; then
17305   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17306 fi
17307
17308
17309 fi
17310
17311
17312 fi
17313
17314
17315 fi
17316
17317
17318 fi
17319
17320
17321 fi
17322
17323     ;;
17324   esac
17325
17326   if test "x$lt_cv_dlopen" != xno; then
17327     enable_dlopen=yes
17328   else
17329     enable_dlopen=no
17330   fi
17331
17332   case $lt_cv_dlopen in
17333   dlopen)
17334     save_CPPFLAGS="$CPPFLAGS"
17335     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17336
17337     save_LDFLAGS="$LDFLAGS"
17338     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17339
17340     save_LIBS="$LIBS"
17341     LIBS="$lt_cv_dlopen_libs $LIBS"
17342
17343     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17344 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17345 if test "${lt_cv_dlopen_self+set}" = set; then
17346   echo $ECHO_N "(cached) $ECHO_C" >&6
17347 else
17348           if test "$cross_compiling" = yes; then :
17349   lt_cv_dlopen_self=cross
17350 else
17351   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17352   lt_status=$lt_dlunknown
17353   cat > conftest.$ac_ext <<EOF
17354 #line 17354 "configure"
17355 #include "confdefs.h"
17356
17357 #if HAVE_DLFCN_H
17358 #include <dlfcn.h>
17359 #endif
17360
17361 #include <stdio.h>
17362
17363 #ifdef RTLD_GLOBAL
17364 #  define LT_DLGLOBAL           RTLD_GLOBAL
17365 #else
17366 #  ifdef DL_GLOBAL
17367 #    define LT_DLGLOBAL         DL_GLOBAL
17368 #  else
17369 #    define LT_DLGLOBAL         0
17370 #  endif
17371 #endif
17372
17373 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17374    find out it does not work in some platform. */
17375 #ifndef LT_DLLAZY_OR_NOW
17376 #  ifdef RTLD_LAZY
17377 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17378 #  else
17379 #    ifdef DL_LAZY
17380 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17381 #    else
17382 #      ifdef RTLD_NOW
17383 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17384 #      else
17385 #        ifdef DL_NOW
17386 #          define LT_DLLAZY_OR_NOW      DL_NOW
17387 #        else
17388 #          define LT_DLLAZY_OR_NOW      0
17389 #        endif
17390 #      endif
17391 #    endif
17392 #  endif
17393 #endif
17394
17395 #ifdef __cplusplus
17396 extern "C" void exit (int);
17397 #endif
17398
17399 void fnord() { int i=42;}
17400 int main ()
17401 {
17402   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17403   int status = $lt_dlunknown;
17404
17405   if (self)
17406     {
17407       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17408       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17409       /* dlclose (self); */
17410     }
17411
17412     exit (status);
17413 }
17414 EOF
17415   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17416   (eval $ac_link) 2>&5
17417   ac_status=$?
17418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17420     (./conftest; exit; ) 2>/dev/null
17421     lt_status=$?
17422     case x$lt_status in
17423       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17424       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17425       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17426     esac
17427   else :
17428     # compilation failed
17429     lt_cv_dlopen_self=no
17430   fi
17431 fi
17432 rm -fr conftest*
17433
17434
17435 fi
17436 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17437 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17438
17439     if test "x$lt_cv_dlopen_self" = xyes; then
17440       LDFLAGS="$LDFLAGS $link_static_flag"
17441       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17442 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17443 if test "${lt_cv_dlopen_self_static+set}" = set; then
17444   echo $ECHO_N "(cached) $ECHO_C" >&6
17445 else
17446           if test "$cross_compiling" = yes; then :
17447   lt_cv_dlopen_self_static=cross
17448 else
17449   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17450   lt_status=$lt_dlunknown
17451   cat > conftest.$ac_ext <<EOF
17452 #line 17452 "configure"
17453 #include "confdefs.h"
17454
17455 #if HAVE_DLFCN_H
17456 #include <dlfcn.h>
17457 #endif
17458
17459 #include <stdio.h>
17460
17461 #ifdef RTLD_GLOBAL
17462 #  define LT_DLGLOBAL           RTLD_GLOBAL
17463 #else
17464 #  ifdef DL_GLOBAL
17465 #    define LT_DLGLOBAL         DL_GLOBAL
17466 #  else
17467 #    define LT_DLGLOBAL         0
17468 #  endif
17469 #endif
17470
17471 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17472    find out it does not work in some platform. */
17473 #ifndef LT_DLLAZY_OR_NOW
17474 #  ifdef RTLD_LAZY
17475 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17476 #  else
17477 #    ifdef DL_LAZY
17478 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17479 #    else
17480 #      ifdef RTLD_NOW
17481 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17482 #      else
17483 #        ifdef DL_NOW
17484 #          define LT_DLLAZY_OR_NOW      DL_NOW
17485 #        else
17486 #          define LT_DLLAZY_OR_NOW      0
17487 #        endif
17488 #      endif
17489 #    endif
17490 #  endif
17491 #endif
17492
17493 #ifdef __cplusplus
17494 extern "C" void exit (int);
17495 #endif
17496
17497 void fnord() { int i=42;}
17498 int main ()
17499 {
17500   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17501   int status = $lt_dlunknown;
17502
17503   if (self)
17504     {
17505       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17506       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17507       /* dlclose (self); */
17508     }
17509
17510     exit (status);
17511 }
17512 EOF
17513   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17514   (eval $ac_link) 2>&5
17515   ac_status=$?
17516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17518     (./conftest; exit; ) 2>/dev/null
17519     lt_status=$?
17520     case x$lt_status in
17521       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17522       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17523       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17524     esac
17525   else :
17526     # compilation failed
17527     lt_cv_dlopen_self_static=no
17528   fi
17529 fi
17530 rm -fr conftest*
17531
17532
17533 fi
17534 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17535 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17536     fi
17537
17538     CPPFLAGS="$save_CPPFLAGS"
17539     LDFLAGS="$save_LDFLAGS"
17540     LIBS="$save_LIBS"
17541     ;;
17542   esac
17543
17544   case $lt_cv_dlopen_self in
17545   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17546   *) enable_dlopen_self=unknown ;;
17547   esac
17548
17549   case $lt_cv_dlopen_self_static in
17550   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17551   *) enable_dlopen_self_static=unknown ;;
17552   esac
17553 fi
17554
17555
17556 # The else clause should only fire when bootstrapping the
17557 # libtool distribution, otherwise you forgot to ship ltmain.sh
17558 # with your package, and you will get complaints that there are
17559 # no rules to generate ltmain.sh.
17560 if test -f "$ltmain"; then
17561   # See if we are running on zsh, and set the options which allow our commands through
17562   # without removal of \ escapes.
17563   if test -n "${ZSH_VERSION+set}" ; then
17564     setopt NO_GLOB_SUBST
17565   fi
17566   # Now quote all the things that may contain metacharacters while being
17567   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17568   # variables and quote the copies for generation of the libtool script.
17569   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17570     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17571     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17572     deplibs_check_method reload_flag reload_cmds need_locks \
17573     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17574     lt_cv_sys_global_symbol_to_c_name_address \
17575     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17576     old_postinstall_cmds old_postuninstall_cmds \
17577     compiler_GCJ \
17578     CC_GCJ \
17579     LD_GCJ \
17580     lt_prog_compiler_wl_GCJ \
17581     lt_prog_compiler_pic_GCJ \
17582     lt_prog_compiler_static_GCJ \
17583     lt_prog_compiler_no_builtin_flag_GCJ \
17584     export_dynamic_flag_spec_GCJ \
17585     thread_safe_flag_spec_GCJ \
17586     whole_archive_flag_spec_GCJ \
17587     enable_shared_with_static_runtimes_GCJ \
17588     old_archive_cmds_GCJ \
17589     old_archive_from_new_cmds_GCJ \
17590     predep_objects_GCJ \
17591     postdep_objects_GCJ \
17592     predeps_GCJ \
17593     postdeps_GCJ \
17594     compiler_lib_search_path_GCJ \
17595     archive_cmds_GCJ \
17596     archive_expsym_cmds_GCJ \
17597     postinstall_cmds_GCJ \
17598     postuninstall_cmds_GCJ \
17599     old_archive_from_expsyms_cmds_GCJ \
17600     allow_undefined_flag_GCJ \
17601     no_undefined_flag_GCJ \
17602     export_symbols_cmds_GCJ \
17603     hardcode_libdir_flag_spec_GCJ \
17604     hardcode_libdir_flag_spec_ld_GCJ \
17605     hardcode_libdir_separator_GCJ \
17606     hardcode_automatic_GCJ \
17607     module_cmds_GCJ \
17608     module_expsym_cmds_GCJ \
17609     lt_cv_prog_compiler_c_o_GCJ \
17610     exclude_expsyms_GCJ \
17611     include_expsyms_GCJ; do
17612
17613     case $var in
17614     old_archive_cmds_GCJ | \
17615     old_archive_from_new_cmds_GCJ | \
17616     archive_cmds_GCJ | \
17617     archive_expsym_cmds_GCJ | \
17618     module_cmds_GCJ | \
17619     module_expsym_cmds_GCJ | \
17620     old_archive_from_expsyms_cmds_GCJ | \
17621     export_symbols_cmds_GCJ | \
17622     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17623     postinstall_cmds | postuninstall_cmds | \
17624     old_postinstall_cmds | old_postuninstall_cmds | \
17625     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17626       # Double-quote double-evaled strings.
17627       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17628       ;;
17629     *)
17630       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17631       ;;
17632     esac
17633   done
17634
17635   case $lt_echo in
17636   *'\$0 --fallback-echo"')
17637     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17638     ;;
17639   esac
17640
17641 cfgfile="$ofile"
17642
17643   cat <<__EOF__ >> "$cfgfile"
17644 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17645
17646 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17647
17648 # Shell to use when invoking shell scripts.
17649 SHELL=$lt_SHELL
17650
17651 # Whether or not to build shared libraries.
17652 build_libtool_libs=$enable_shared
17653
17654 # Whether or not to build static libraries.
17655 build_old_libs=$enable_static
17656
17657 # Whether or not to add -lc for building shared libraries.
17658 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17659
17660 # Whether or not to disallow shared libs when runtime libs are static
17661 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17662
17663 # Whether or not to optimize for fast installation.
17664 fast_install=$enable_fast_install
17665
17666 # The host system.
17667 host_alias=$host_alias
17668 host=$host
17669
17670 # An echo program that does not interpret backslashes.
17671 echo=$lt_echo
17672
17673 # The archiver.
17674 AR=$lt_AR
17675 AR_FLAGS=$lt_AR_FLAGS
17676
17677 # A C compiler.
17678 LTCC=$lt_LTCC
17679
17680 # A language-specific compiler.
17681 CC=$lt_compiler_GCJ
17682
17683 # Is the compiler the GNU C compiler?
17684 with_gcc=$GCC_GCJ
17685
17686 # An ERE matcher.
17687 EGREP=$lt_EGREP
17688
17689 # The linker used to build libraries.
17690 LD=$lt_LD_GCJ
17691
17692 # Whether we need hard or soft links.
17693 LN_S=$lt_LN_S
17694
17695 # A BSD-compatible nm program.
17696 NM=$lt_NM
17697
17698 # A symbol stripping program
17699 STRIP=$STRIP
17700
17701 # Used to examine libraries when file_magic_cmd begins "file"
17702 MAGIC_CMD=$MAGIC_CMD
17703
17704 # Used on cygwin: DLL creation program.
17705 DLLTOOL="$DLLTOOL"
17706
17707 # Used on cygwin: object dumper.
17708 OBJDUMP="$OBJDUMP"
17709
17710 # Used on cygwin: assembler.
17711 AS="$AS"
17712
17713 # The name of the directory that contains temporary libtool files.
17714 objdir=$objdir
17715
17716 # How to create reloadable object files.
17717 reload_flag=$lt_reload_flag
17718 reload_cmds=$lt_reload_cmds
17719
17720 # How to pass a linker flag through the compiler.
17721 wl=$lt_lt_prog_compiler_wl_GCJ
17722
17723 # Object file suffix (normally "o").
17724 objext="$ac_objext"
17725
17726 # Old archive suffix (normally "a").
17727 libext="$libext"
17728
17729 # Shared library suffix (normally ".so").
17730 shrext='$shrext'
17731
17732 # Executable file suffix (normally "").
17733 exeext="$exeext"
17734
17735 # Additional compiler flags for building library objects.
17736 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17737 pic_mode=$pic_mode
17738
17739 # What is the maximum length of a command?
17740 max_cmd_len=$lt_cv_sys_max_cmd_len
17741
17742 # Does compiler simultaneously support -c and -o options?
17743 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17744
17745 # Must we lock files when doing compilation ?
17746 need_locks=$lt_need_locks
17747
17748 # Do we need the lib prefix for modules?
17749 need_lib_prefix=$need_lib_prefix
17750
17751 # Do we need a version for libraries?
17752 need_version=$need_version
17753
17754 # Whether dlopen is supported.
17755 dlopen_support=$enable_dlopen
17756
17757 # Whether dlopen of programs is supported.
17758 dlopen_self=$enable_dlopen_self
17759
17760 # Whether dlopen of statically linked programs is supported.
17761 dlopen_self_static=$enable_dlopen_self_static
17762
17763 # Compiler flag to prevent dynamic linking.
17764 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17765
17766 # Compiler flag to turn off builtin functions.
17767 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17768
17769 # Compiler flag to allow reflexive dlopens.
17770 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17771
17772 # Compiler flag to generate shared objects directly from archives.
17773 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17774
17775 # Compiler flag to generate thread-safe objects.
17776 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17777
17778 # Library versioning type.
17779 version_type=$version_type
17780
17781 # Format of library name prefix.
17782 libname_spec=$lt_libname_spec
17783
17784 # List of archive names.  First name is the real one, the rest are links.
17785 # The last name is the one that the linker finds with -lNAME.
17786 library_names_spec=$lt_library_names_spec
17787
17788 # The coded name of the library, if different from the real name.
17789 soname_spec=$lt_soname_spec
17790
17791 # Commands used to build and install an old-style archive.
17792 RANLIB=$lt_RANLIB
17793 old_archive_cmds=$lt_old_archive_cmds_GCJ
17794 old_postinstall_cmds=$lt_old_postinstall_cmds
17795 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17796
17797 # Create an old-style archive from a shared archive.
17798 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17799
17800 # Create a temporary old-style archive to link instead of a shared archive.
17801 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17802
17803 # Commands used to build and install a shared archive.
17804 archive_cmds=$lt_archive_cmds_GCJ
17805 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17806 postinstall_cmds=$lt_postinstall_cmds
17807 postuninstall_cmds=$lt_postuninstall_cmds
17808
17809 # Commands used to build a loadable module (assumed same as above if empty)
17810 module_cmds=$lt_module_cmds_GCJ
17811 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17812
17813 # Commands to strip libraries.
17814 old_striplib=$lt_old_striplib
17815 striplib=$lt_striplib
17816
17817 # Dependencies to place before the objects being linked to create a
17818 # shared library.
17819 predep_objects=$lt_predep_objects_GCJ
17820
17821 # Dependencies to place after the objects being linked to create a
17822 # shared library.
17823 postdep_objects=$lt_postdep_objects_GCJ
17824
17825 # Dependencies to place before the objects being linked to create a
17826 # shared library.
17827 predeps=$lt_predeps_GCJ
17828
17829 # Dependencies to place after the objects being linked to create a
17830 # shared library.
17831 postdeps=$lt_postdeps_GCJ
17832
17833 # The library search path used internally by the compiler when linking
17834 # a shared library.
17835 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17836
17837 # Method to check whether dependent libraries are shared objects.
17838 deplibs_check_method=$lt_deplibs_check_method
17839
17840 # Command to use when deplibs_check_method == file_magic.
17841 file_magic_cmd=$lt_file_magic_cmd
17842
17843 # Flag that allows shared libraries with undefined symbols to be built.
17844 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17845
17846 # Flag that forces no undefined symbols.
17847 no_undefined_flag=$lt_no_undefined_flag_GCJ
17848
17849 # Commands used to finish a libtool library installation in a directory.
17850 finish_cmds=$lt_finish_cmds
17851
17852 # Same as above, but a single script fragment to be evaled but not shown.
17853 finish_eval=$lt_finish_eval
17854
17855 # Take the output of nm and produce a listing of raw symbols and C names.
17856 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17857
17858 # Transform the output of nm in a proper C declaration
17859 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17860
17861 # Transform the output of nm in a C name address pair
17862 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17863
17864 # This is the shared library runtime path variable.
17865 runpath_var=$runpath_var
17866
17867 # This is the shared library path variable.
17868 shlibpath_var=$shlibpath_var
17869
17870 # Is shlibpath searched before the hard-coded library search path?
17871 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17872
17873 # How to hardcode a shared library path into an executable.
17874 hardcode_action=$hardcode_action_GCJ
17875
17876 # Whether we should hardcode library paths into libraries.
17877 hardcode_into_libs=$hardcode_into_libs
17878
17879 # Flag to hardcode \$libdir into a binary during linking.
17880 # This must work even if \$libdir does not exist.
17881 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17882
17883 # If ld is used when linking, flag to hardcode \$libdir into
17884 # a binary during linking. This must work even if \$libdir does
17885 # not exist.
17886 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17887
17888 # Whether we need a single -rpath flag with a separated argument.
17889 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17890
17891 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17892 # resulting binary.
17893 hardcode_direct=$hardcode_direct_GCJ
17894
17895 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17896 # resulting binary.
17897 hardcode_minus_L=$hardcode_minus_L_GCJ
17898
17899 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17900 # the resulting binary.
17901 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17902
17903 # Set to yes if building a shared library automatically hardcodes DIR into the library
17904 # and all subsequent libraries and executables linked against it.
17905 hardcode_automatic=$hardcode_automatic_GCJ
17906
17907 # Variables whose values should be saved in libtool wrapper scripts and
17908 # restored at relink time.
17909 variables_saved_for_relink="$variables_saved_for_relink"
17910
17911 # Whether libtool must link a program against all its dependency libraries.
17912 link_all_deplibs=$link_all_deplibs_GCJ
17913
17914 # Compile-time system search path for libraries
17915 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17916
17917 # Run-time system search path for libraries
17918 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17919
17920 # Fix the shell variable \$srcfile for the compiler.
17921 fix_srcfile_path="$fix_srcfile_path_GCJ"
17922
17923 # Set to yes if exported symbols are required.
17924 always_export_symbols=$always_export_symbols_GCJ
17925
17926 # The commands to list exported symbols.
17927 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17928
17929 # The commands to extract the exported symbol list from a shared archive.
17930 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17931
17932 # Symbols that should not be listed in the preloaded symbols.
17933 exclude_expsyms=$lt_exclude_expsyms_GCJ
17934
17935 # Symbols that must always be exported.
17936 include_expsyms=$lt_include_expsyms_GCJ
17937
17938 # ### END LIBTOOL TAG CONFIG: $tagname
17939
17940 __EOF__
17941
17942
17943 else
17944   # If there is no Makefile yet, we rely on a make rule to execute
17945   # `config.status --recheck' to rerun these tests and create the
17946   # libtool script then.
17947   test -f Makefile && make "$ltmain"
17948 fi
17949
17950
17951 ac_ext=c
17952 ac_cpp='$CPP $CPPFLAGS'
17953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17956
17957 CC="$lt_save_CC"
17958
17959         else
17960           tagname=""
17961         fi
17962         ;;
17963
17964       RC)
17965
17966
17967
17968 # Source file extension for RC test sources.
17969 ac_ext=rc
17970
17971 # Object file extension for compiled RC test sources.
17972 objext=o
17973 objext_RC=$objext
17974
17975 # Code to be used in simple compile tests
17976 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17977
17978 # Code to be used in simple link tests
17979 lt_simple_link_test_code="$lt_simple_compile_test_code"
17980
17981 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17982
17983 # If no C compiler was specified, use CC.
17984 LTCC=${LTCC-"$CC"}
17985
17986 # Allow CC to be a program name with arguments.
17987 compiler=$CC
17988
17989
17990 # Allow CC to be a program name with arguments.
17991 lt_save_CC="$CC"
17992 CC=${RC-"windres"}
17993 compiler=$CC
17994 compiler_RC=$CC
17995 lt_cv_prog_compiler_c_o_RC=yes
17996
17997 # The else clause should only fire when bootstrapping the
17998 # libtool distribution, otherwise you forgot to ship ltmain.sh
17999 # with your package, and you will get complaints that there are
18000 # no rules to generate ltmain.sh.
18001 if test -f "$ltmain"; then
18002   # See if we are running on zsh, and set the options which allow our commands through
18003   # without removal of \ escapes.
18004   if test -n "${ZSH_VERSION+set}" ; then
18005     setopt NO_GLOB_SUBST
18006   fi
18007   # Now quote all the things that may contain metacharacters while being
18008   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18009   # variables and quote the copies for generation of the libtool script.
18010   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18011     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18012     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18013     deplibs_check_method reload_flag reload_cmds need_locks \
18014     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18015     lt_cv_sys_global_symbol_to_c_name_address \
18016     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18017     old_postinstall_cmds old_postuninstall_cmds \
18018     compiler_RC \
18019     CC_RC \
18020     LD_RC \
18021     lt_prog_compiler_wl_RC \
18022     lt_prog_compiler_pic_RC \
18023     lt_prog_compiler_static_RC \
18024     lt_prog_compiler_no_builtin_flag_RC \
18025     export_dynamic_flag_spec_RC \
18026     thread_safe_flag_spec_RC \
18027     whole_archive_flag_spec_RC \
18028     enable_shared_with_static_runtimes_RC \
18029     old_archive_cmds_RC \
18030     old_archive_from_new_cmds_RC \
18031     predep_objects_RC \
18032     postdep_objects_RC \
18033     predeps_RC \
18034     postdeps_RC \
18035     compiler_lib_search_path_RC \
18036     archive_cmds_RC \
18037     archive_expsym_cmds_RC \
18038     postinstall_cmds_RC \
18039     postuninstall_cmds_RC \
18040     old_archive_from_expsyms_cmds_RC \
18041     allow_undefined_flag_RC \
18042     no_undefined_flag_RC \
18043     export_symbols_cmds_RC \
18044     hardcode_libdir_flag_spec_RC \
18045     hardcode_libdir_flag_spec_ld_RC \
18046     hardcode_libdir_separator_RC \
18047     hardcode_automatic_RC \
18048     module_cmds_RC \
18049     module_expsym_cmds_RC \
18050     lt_cv_prog_compiler_c_o_RC \
18051     exclude_expsyms_RC \
18052     include_expsyms_RC; do
18053
18054     case $var in
18055     old_archive_cmds_RC | \
18056     old_archive_from_new_cmds_RC | \
18057     archive_cmds_RC | \
18058     archive_expsym_cmds_RC | \
18059     module_cmds_RC | \
18060     module_expsym_cmds_RC | \
18061     old_archive_from_expsyms_cmds_RC | \
18062     export_symbols_cmds_RC | \
18063     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18064     postinstall_cmds | postuninstall_cmds | \
18065     old_postinstall_cmds | old_postuninstall_cmds | \
18066     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18067       # Double-quote double-evaled strings.
18068       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18069       ;;
18070     *)
18071       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18072       ;;
18073     esac
18074   done
18075
18076   case $lt_echo in
18077   *'\$0 --fallback-echo"')
18078     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18079     ;;
18080   esac
18081
18082 cfgfile="$ofile"
18083
18084   cat <<__EOF__ >> "$cfgfile"
18085 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18086
18087 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18088
18089 # Shell to use when invoking shell scripts.
18090 SHELL=$lt_SHELL
18091
18092 # Whether or not to build shared libraries.
18093 build_libtool_libs=$enable_shared
18094
18095 # Whether or not to build static libraries.
18096 build_old_libs=$enable_static
18097
18098 # Whether or not to add -lc for building shared libraries.
18099 build_libtool_need_lc=$archive_cmds_need_lc_RC
18100
18101 # Whether or not to disallow shared libs when runtime libs are static
18102 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18103
18104 # Whether or not to optimize for fast installation.
18105 fast_install=$enable_fast_install
18106
18107 # The host system.
18108 host_alias=$host_alias
18109 host=$host
18110
18111 # An echo program that does not interpret backslashes.
18112 echo=$lt_echo
18113
18114 # The archiver.
18115 AR=$lt_AR
18116 AR_FLAGS=$lt_AR_FLAGS
18117
18118 # A C compiler.
18119 LTCC=$lt_LTCC
18120
18121 # A language-specific compiler.
18122 CC=$lt_compiler_RC
18123
18124 # Is the compiler the GNU C compiler?
18125 with_gcc=$GCC_RC
18126
18127 # An ERE matcher.
18128 EGREP=$lt_EGREP
18129
18130 # The linker used to build libraries.
18131 LD=$lt_LD_RC
18132
18133 # Whether we need hard or soft links.
18134 LN_S=$lt_LN_S
18135
18136 # A BSD-compatible nm program.
18137 NM=$lt_NM
18138
18139 # A symbol stripping program
18140 STRIP=$STRIP
18141
18142 # Used to examine libraries when file_magic_cmd begins "file"
18143 MAGIC_CMD=$MAGIC_CMD
18144
18145 # Used on cygwin: DLL creation program.
18146 DLLTOOL="$DLLTOOL"
18147
18148 # Used on cygwin: object dumper.
18149 OBJDUMP="$OBJDUMP"
18150
18151 # Used on cygwin: assembler.
18152 AS="$AS"
18153
18154 # The name of the directory that contains temporary libtool files.
18155 objdir=$objdir
18156
18157 # How to create reloadable object files.
18158 reload_flag=$lt_reload_flag
18159 reload_cmds=$lt_reload_cmds
18160
18161 # How to pass a linker flag through the compiler.
18162 wl=$lt_lt_prog_compiler_wl_RC
18163
18164 # Object file suffix (normally "o").
18165 objext="$ac_objext"
18166
18167 # Old archive suffix (normally "a").
18168 libext="$libext"
18169
18170 # Shared library suffix (normally ".so").
18171 shrext='$shrext'
18172
18173 # Executable file suffix (normally "").
18174 exeext="$exeext"
18175
18176 # Additional compiler flags for building library objects.
18177 pic_flag=$lt_lt_prog_compiler_pic_RC
18178 pic_mode=$pic_mode
18179
18180 # What is the maximum length of a command?
18181 max_cmd_len=$lt_cv_sys_max_cmd_len
18182
18183 # Does compiler simultaneously support -c and -o options?
18184 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18185
18186 # Must we lock files when doing compilation ?
18187 need_locks=$lt_need_locks
18188
18189 # Do we need the lib prefix for modules?
18190 need_lib_prefix=$need_lib_prefix
18191
18192 # Do we need a version for libraries?
18193 need_version=$need_version
18194
18195 # Whether dlopen is supported.
18196 dlopen_support=$enable_dlopen
18197
18198 # Whether dlopen of programs is supported.
18199 dlopen_self=$enable_dlopen_self
18200
18201 # Whether dlopen of statically linked programs is supported.
18202 dlopen_self_static=$enable_dlopen_self_static
18203
18204 # Compiler flag to prevent dynamic linking.
18205 link_static_flag=$lt_lt_prog_compiler_static_RC
18206
18207 # Compiler flag to turn off builtin functions.
18208 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18209
18210 # Compiler flag to allow reflexive dlopens.
18211 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18212
18213 # Compiler flag to generate shared objects directly from archives.
18214 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18215
18216 # Compiler flag to generate thread-safe objects.
18217 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18218
18219 # Library versioning type.
18220 version_type=$version_type
18221
18222 # Format of library name prefix.
18223 libname_spec=$lt_libname_spec
18224
18225 # List of archive names.  First name is the real one, the rest are links.
18226 # The last name is the one that the linker finds with -lNAME.
18227 library_names_spec=$lt_library_names_spec
18228
18229 # The coded name of the library, if different from the real name.
18230 soname_spec=$lt_soname_spec
18231
18232 # Commands used to build and install an old-style archive.
18233 RANLIB=$lt_RANLIB
18234 old_archive_cmds=$lt_old_archive_cmds_RC
18235 old_postinstall_cmds=$lt_old_postinstall_cmds
18236 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18237
18238 # Create an old-style archive from a shared archive.
18239 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18240
18241 # Create a temporary old-style archive to link instead of a shared archive.
18242 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18243
18244 # Commands used to build and install a shared archive.
18245 archive_cmds=$lt_archive_cmds_RC
18246 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18247 postinstall_cmds=$lt_postinstall_cmds
18248 postuninstall_cmds=$lt_postuninstall_cmds
18249
18250 # Commands used to build a loadable module (assumed same as above if empty)
18251 module_cmds=$lt_module_cmds_RC
18252 module_expsym_cmds=$lt_module_expsym_cmds_RC
18253
18254 # Commands to strip libraries.
18255 old_striplib=$lt_old_striplib
18256 striplib=$lt_striplib
18257
18258 # Dependencies to place before the objects being linked to create a
18259 # shared library.
18260 predep_objects=$lt_predep_objects_RC
18261
18262 # Dependencies to place after the objects being linked to create a
18263 # shared library.
18264 postdep_objects=$lt_postdep_objects_RC
18265
18266 # Dependencies to place before the objects being linked to create a
18267 # shared library.
18268 predeps=$lt_predeps_RC
18269
18270 # Dependencies to place after the objects being linked to create a
18271 # shared library.
18272 postdeps=$lt_postdeps_RC
18273
18274 # The library search path used internally by the compiler when linking
18275 # a shared library.
18276 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18277
18278 # Method to check whether dependent libraries are shared objects.
18279 deplibs_check_method=$lt_deplibs_check_method
18280
18281 # Command to use when deplibs_check_method == file_magic.
18282 file_magic_cmd=$lt_file_magic_cmd
18283
18284 # Flag that allows shared libraries with undefined symbols to be built.
18285 allow_undefined_flag=$lt_allow_undefined_flag_RC
18286
18287 # Flag that forces no undefined symbols.
18288 no_undefined_flag=$lt_no_undefined_flag_RC
18289
18290 # Commands used to finish a libtool library installation in a directory.
18291 finish_cmds=$lt_finish_cmds
18292
18293 # Same as above, but a single script fragment to be evaled but not shown.
18294 finish_eval=$lt_finish_eval
18295
18296 # Take the output of nm and produce a listing of raw symbols and C names.
18297 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18298
18299 # Transform the output of nm in a proper C declaration
18300 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18301
18302 # Transform the output of nm in a C name address pair
18303 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18304
18305 # This is the shared library runtime path variable.
18306 runpath_var=$runpath_var
18307
18308 # This is the shared library path variable.
18309 shlibpath_var=$shlibpath_var
18310
18311 # Is shlibpath searched before the hard-coded library search path?
18312 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18313
18314 # How to hardcode a shared library path into an executable.
18315 hardcode_action=$hardcode_action_RC
18316
18317 # Whether we should hardcode library paths into libraries.
18318 hardcode_into_libs=$hardcode_into_libs
18319
18320 # Flag to hardcode \$libdir into a binary during linking.
18321 # This must work even if \$libdir does not exist.
18322 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18323
18324 # If ld is used when linking, flag to hardcode \$libdir into
18325 # a binary during linking. This must work even if \$libdir does
18326 # not exist.
18327 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18328
18329 # Whether we need a single -rpath flag with a separated argument.
18330 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18331
18332 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18333 # resulting binary.
18334 hardcode_direct=$hardcode_direct_RC
18335
18336 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18337 # resulting binary.
18338 hardcode_minus_L=$hardcode_minus_L_RC
18339
18340 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18341 # the resulting binary.
18342 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18343
18344 # Set to yes if building a shared library automatically hardcodes DIR into the library
18345 # and all subsequent libraries and executables linked against it.
18346 hardcode_automatic=$hardcode_automatic_RC
18347
18348 # Variables whose values should be saved in libtool wrapper scripts and
18349 # restored at relink time.
18350 variables_saved_for_relink="$variables_saved_for_relink"
18351
18352 # Whether libtool must link a program against all its dependency libraries.
18353 link_all_deplibs=$link_all_deplibs_RC
18354
18355 # Compile-time system search path for libraries
18356 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18357
18358 # Run-time system search path for libraries
18359 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18360
18361 # Fix the shell variable \$srcfile for the compiler.
18362 fix_srcfile_path="$fix_srcfile_path_RC"
18363
18364 # Set to yes if exported symbols are required.
18365 always_export_symbols=$always_export_symbols_RC
18366
18367 # The commands to list exported symbols.
18368 export_symbols_cmds=$lt_export_symbols_cmds_RC
18369
18370 # The commands to extract the exported symbol list from a shared archive.
18371 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18372
18373 # Symbols that should not be listed in the preloaded symbols.
18374 exclude_expsyms=$lt_exclude_expsyms_RC
18375
18376 # Symbols that must always be exported.
18377 include_expsyms=$lt_include_expsyms_RC
18378
18379 # ### END LIBTOOL TAG CONFIG: $tagname
18380
18381 __EOF__
18382
18383
18384 else
18385   # If there is no Makefile yet, we rely on a make rule to execute
18386   # `config.status --recheck' to rerun these tests and create the
18387   # libtool script then.
18388   test -f Makefile && make "$ltmain"
18389 fi
18390
18391
18392 ac_ext=c
18393 ac_cpp='$CPP $CPPFLAGS'
18394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18397
18398 CC="$lt_save_CC"
18399
18400         ;;
18401
18402       *)
18403         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18404 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18405    { (exit 1); exit 1; }; }
18406         ;;
18407       esac
18408
18409       # Append the new tag name to the list of available tags.
18410       if test -n "$tagname" ; then
18411       available_tags="$available_tags $tagname"
18412     fi
18413     fi
18414   done
18415   IFS="$lt_save_ifs"
18416
18417   # Now substitute the updated list of available tags.
18418   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18419     mv "${ofile}T" "$ofile"
18420     chmod +x "$ofile"
18421   else
18422     rm -f "${ofile}T"
18423     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18424 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18425    { (exit 1); exit 1; }; }
18426   fi
18427 fi
18428
18429
18430
18431 # This can be used to rebuild libtool when needed
18432 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18433
18434 # Always use our own libtool.
18435 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18436
18437 # Prevent multiple expansion
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459 # Extract the first word of "pwd", so it can be a program name with args.
18460 set dummy pwd; ac_word=$2
18461 echo "$as_me:$LINENO: checking for $ac_word" >&5
18462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18463 if test "${ac_cv_path_RPWD+set}" = set; then
18464   echo $ECHO_N "(cached) $ECHO_C" >&6
18465 else
18466   case $RPWD in
18467   [\\/]* | ?:[\\/]*)
18468   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18469   ;;
18470   *)
18471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18472 for as_dir in $PATH
18473 do
18474   IFS=$as_save_IFS
18475   test -z "$as_dir" && as_dir=.
18476   for ac_exec_ext in '' $ac_executable_extensions; do
18477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18478     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18480     break 2
18481   fi
18482 done
18483 done
18484
18485   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18486   ;;
18487 esac
18488 fi
18489 RPWD=$ac_cv_path_RPWD
18490
18491 if test -n "$RPWD"; then
18492   echo "$as_me:$LINENO: result: $RPWD" >&5
18493 echo "${ECHO_T}$RPWD" >&6
18494 else
18495   echo "$as_me:$LINENO: result: no" >&5
18496 echo "${ECHO_T}no" >&6
18497 fi
18498
18499 if test ${RPWD} = "false"
18500 then
18501         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18502 echo "$as_me: error: pwd required but not found" >&2;}
18503    { (exit 1); exit 1; }; }
18504 fi
18505
18506 # Extract the first word of "ar", so it can be a program name with args.
18507 set dummy ar; ac_word=$2
18508 echo "$as_me:$LINENO: checking for $ac_word" >&5
18509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18510 if test "${ac_cv_path_AR+set}" = set; then
18511   echo $ECHO_N "(cached) $ECHO_C" >&6
18512 else
18513   case $AR in
18514   [\\/]* | ?:[\\/]*)
18515   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18516   ;;
18517   *)
18518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18519 for as_dir in $PATH
18520 do
18521   IFS=$as_save_IFS
18522   test -z "$as_dir" && as_dir=.
18523   for ac_exec_ext in '' $ac_executable_extensions; do
18524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18525     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18527     break 2
18528   fi
18529 done
18530 done
18531
18532   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18533   ;;
18534 esac
18535 fi
18536 AR=$ac_cv_path_AR
18537
18538 if test -n "$AR"; then
18539   echo "$as_me:$LINENO: result: $AR" >&5
18540 echo "${ECHO_T}$AR" >&6
18541 else
18542   echo "$as_me:$LINENO: result: no" >&5
18543 echo "${ECHO_T}no" >&6
18544 fi
18545
18546 if test ${AR} = "false"
18547 then
18548         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18549 echo "$as_me: error: ar required but not found" >&2;}
18550    { (exit 1); exit 1; }; }
18551 fi
18552
18553 # Extract the first word of "sed", so it can be a program name with args.
18554 set dummy sed; ac_word=$2
18555 echo "$as_me:$LINENO: checking for $ac_word" >&5
18556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18557 if test "${ac_cv_path_SED+set}" = set; then
18558   echo $ECHO_N "(cached) $ECHO_C" >&6
18559 else
18560   case $SED in
18561   [\\/]* | ?:[\\/]*)
18562   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18563   ;;
18564   *)
18565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18566 for as_dir in $PATH
18567 do
18568   IFS=$as_save_IFS
18569   test -z "$as_dir" && as_dir=.
18570   for ac_exec_ext in '' $ac_executable_extensions; do
18571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18572     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18574     break 2
18575   fi
18576 done
18577 done
18578
18579   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18580   ;;
18581 esac
18582 fi
18583 SED=$ac_cv_path_SED
18584
18585 if test -n "$SED"; then
18586   echo "$as_me:$LINENO: result: $SED" >&5
18587 echo "${ECHO_T}$SED" >&6
18588 else
18589   echo "$as_me:$LINENO: result: no" >&5
18590 echo "${ECHO_T}no" >&6
18591 fi
18592
18593 if test ${SED} = "false"
18594 then
18595         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18596 echo "$as_me: error: sed required but not found" >&2;}
18597    { (exit 1); exit 1; }; }
18598 fi
18599
18600 # Extract the first word of "rm", so it can be a program name with args.
18601 set dummy rm; ac_word=$2
18602 echo "$as_me:$LINENO: checking for $ac_word" >&5
18603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18604 if test "${ac_cv_path_RM+set}" = set; then
18605   echo $ECHO_N "(cached) $ECHO_C" >&6
18606 else
18607   case $RM in
18608   [\\/]* | ?:[\\/]*)
18609   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18610   ;;
18611   *)
18612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18613 for as_dir in $PATH
18614 do
18615   IFS=$as_save_IFS
18616   test -z "$as_dir" && as_dir=.
18617   for ac_exec_ext in '' $ac_executable_extensions; do
18618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18619     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18621     break 2
18622   fi
18623 done
18624 done
18625
18626   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18627   ;;
18628 esac
18629 fi
18630 RM=$ac_cv_path_RM
18631
18632 if test -n "$RM"; then
18633   echo "$as_me:$LINENO: result: $RM" >&5
18634 echo "${ECHO_T}$RM" >&6
18635 else
18636   echo "$as_me:$LINENO: result: no" >&5
18637 echo "${ECHO_T}no" >&6
18638 fi
18639
18640 if test ${RM} = "false"
18641 then
18642         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18643 echo "$as_me: error: rm required but not found" >&2;}
18644    { (exit 1); exit 1; }; }
18645 fi
18646
18647 # Extract the first word of "echo", so it can be a program name with args.
18648 set dummy echo; ac_word=$2
18649 echo "$as_me:$LINENO: checking for $ac_word" >&5
18650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18651 if test "${ac_cv_path_ECHO+set}" = set; then
18652   echo $ECHO_N "(cached) $ECHO_C" >&6
18653 else
18654   case $ECHO in
18655   [\\/]* | ?:[\\/]*)
18656   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18657   ;;
18658   *)
18659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18660 for as_dir in $PATH
18661 do
18662   IFS=$as_save_IFS
18663   test -z "$as_dir" && as_dir=.
18664   for ac_exec_ext in '' $ac_executable_extensions; do
18665   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18666     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18668     break 2
18669   fi
18670 done
18671 done
18672
18673   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18674   ;;
18675 esac
18676 fi
18677 ECHO=$ac_cv_path_ECHO
18678
18679 if test -n "$ECHO"; then
18680   echo "$as_me:$LINENO: result: $ECHO" >&5
18681 echo "${ECHO_T}$ECHO" >&6
18682 else
18683   echo "$as_me:$LINENO: result: no" >&5
18684 echo "${ECHO_T}no" >&6
18685 fi
18686
18687 if test ${ECHO} = "false"
18688 then
18689         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18690 echo "$as_me: error: echo required but not found" >&2;}
18691    { (exit 1); exit 1; }; }
18692 fi
18693
18694 # Extract the first word of "mkdir", so it can be a program name with args.
18695 set dummy mkdir; ac_word=$2
18696 echo "$as_me:$LINENO: checking for $ac_word" >&5
18697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18698 if test "${ac_cv_path_MKDIR+set}" = set; then
18699   echo $ECHO_N "(cached) $ECHO_C" >&6
18700 else
18701   case $MKDIR in
18702   [\\/]* | ?:[\\/]*)
18703   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18704   ;;
18705   *)
18706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18707 for as_dir in $PATH
18708 do
18709   IFS=$as_save_IFS
18710   test -z "$as_dir" && as_dir=.
18711   for ac_exec_ext in '' $ac_executable_extensions; do
18712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18713     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18715     break 2
18716   fi
18717 done
18718 done
18719
18720   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18721   ;;
18722 esac
18723 fi
18724 MKDIR=$ac_cv_path_MKDIR
18725
18726 if test -n "$MKDIR"; then
18727   echo "$as_me:$LINENO: result: $MKDIR" >&5
18728 echo "${ECHO_T}$MKDIR" >&6
18729 else
18730   echo "$as_me:$LINENO: result: no" >&5
18731 echo "${ECHO_T}no" >&6
18732 fi
18733
18734 if test ${MKDIR} = "false"
18735 then
18736         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18737 echo "$as_me: error: mkdir required but not found" >&2;}
18738    { (exit 1); exit 1; }; }
18739 fi
18740
18741 # Extract the first word of "date", so it can be a program name with args.
18742 set dummy date; ac_word=$2
18743 echo "$as_me:$LINENO: checking for $ac_word" >&5
18744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18745 if test "${ac_cv_path_DATE+set}" = set; then
18746   echo $ECHO_N "(cached) $ECHO_C" >&6
18747 else
18748   case $DATE in
18749   [\\/]* | ?:[\\/]*)
18750   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18751   ;;
18752   *)
18753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18754 for as_dir in $PATH
18755 do
18756   IFS=$as_save_IFS
18757   test -z "$as_dir" && as_dir=.
18758   for ac_exec_ext in '' $ac_executable_extensions; do
18759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18760     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18762     break 2
18763   fi
18764 done
18765 done
18766
18767   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18768   ;;
18769 esac
18770 fi
18771 DATE=$ac_cv_path_DATE
18772
18773 if test -n "$DATE"; then
18774   echo "$as_me:$LINENO: result: $DATE" >&5
18775 echo "${ECHO_T}$DATE" >&6
18776 else
18777   echo "$as_me:$LINENO: result: no" >&5
18778 echo "${ECHO_T}no" >&6
18779 fi
18780
18781 if test ${DATE} = "false"
18782 then
18783         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18784 echo "$as_me: error: date required but not found" >&2;}
18785    { (exit 1); exit 1; }; }
18786 fi
18787
18788 # Extract the first word of "mv", so it can be a program name with args.
18789 set dummy mv; ac_word=$2
18790 echo "$as_me:$LINENO: checking for $ac_word" >&5
18791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18792 if test "${ac_cv_path_MV+set}" = set; then
18793   echo $ECHO_N "(cached) $ECHO_C" >&6
18794 else
18795   case $MV in
18796   [\\/]* | ?:[\\/]*)
18797   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18798   ;;
18799   *)
18800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18801 for as_dir in $PATH
18802 do
18803   IFS=$as_save_IFS
18804   test -z "$as_dir" && as_dir=.
18805   for ac_exec_ext in '' $ac_executable_extensions; do
18806   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18807     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18809     break 2
18810   fi
18811 done
18812 done
18813
18814   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18815   ;;
18816 esac
18817 fi
18818 MV=$ac_cv_path_MV
18819
18820 if test -n "$MV"; then
18821   echo "$as_me:$LINENO: result: $MV" >&5
18822 echo "${ECHO_T}$MV" >&6
18823 else
18824   echo "$as_me:$LINENO: result: no" >&5
18825 echo "${ECHO_T}no" >&6
18826 fi
18827
18828 if test ${MV} = "false"
18829 then
18830         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18831 echo "$as_me: error: mv required but not found" >&2;}
18832    { (exit 1); exit 1; }; }
18833 fi
18834
18835 # Extract the first word of "dot", so it can be a program name with args.
18836 set dummy dot; ac_word=$2
18837 echo "$as_me:$LINENO: checking for $ac_word" >&5
18838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18839 if test "${ac_cv_path_DOT+set}" = set; then
18840   echo $ECHO_N "(cached) $ECHO_C" >&6
18841 else
18842   case $DOT in
18843   [\\/]* | ?:[\\/]*)
18844   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18845   ;;
18846   *)
18847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18848 for as_dir in $PATH
18849 do
18850   IFS=$as_save_IFS
18851   test -z "$as_dir" && as_dir=.
18852   for ac_exec_ext in '' $ac_executable_extensions; do
18853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18854     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18856     break 2
18857   fi
18858 done
18859 done
18860
18861   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18862   ;;
18863 esac
18864 fi
18865 DOT=$ac_cv_path_DOT
18866
18867 if test -n "$DOT"; then
18868   echo "$as_me:$LINENO: result: $DOT" >&5
18869 echo "${ECHO_T}$DOT" >&6
18870 else
18871   echo "$as_me:$LINENO: result: no" >&5
18872 echo "${ECHO_T}no" >&6
18873 fi
18874
18875
18876 # Extract the first word of "etags", so it can be a program name with args.
18877 set dummy etags; ac_word=$2
18878 echo "$as_me:$LINENO: checking for $ac_word" >&5
18879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18880 if test "${ac_cv_path_ETAGS+set}" = set; then
18881   echo $ECHO_N "(cached) $ECHO_C" >&6
18882 else
18883   case $ETAGS in
18884   [\\/]* | ?:[\\/]*)
18885   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18886   ;;
18887   *)
18888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18889 for as_dir in $PATH
18890 do
18891   IFS=$as_save_IFS
18892   test -z "$as_dir" && as_dir=.
18893   for ac_exec_ext in '' $ac_executable_extensions; do
18894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18895     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18897     break 2
18898   fi
18899 done
18900 done
18901
18902   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18903   ;;
18904 esac
18905 fi
18906 ETAGS=$ac_cv_path_ETAGS
18907
18908 if test -n "$ETAGS"; then
18909   echo "$as_me:$LINENO: result: $ETAGS" >&5
18910 echo "${ECHO_T}$ETAGS" >&6
18911 else
18912   echo "$as_me:$LINENO: result: no" >&5
18913 echo "${ECHO_T}no" >&6
18914 fi
18915
18916
18917 # Extract the first word of "python", so it can be a program name with args.
18918 set dummy python; ac_word=$2
18919 echo "$as_me:$LINENO: checking for $ac_word" >&5
18920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18921 if test "${ac_cv_path_PYTHON+set}" = set; then
18922   echo $ECHO_N "(cached) $ECHO_C" >&6
18923 else
18924   case $PYTHON in
18925   [\\/]* | ?:[\\/]*)
18926   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18927   ;;
18928   *)
18929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18930 for as_dir in $PATH
18931 do
18932   IFS=$as_save_IFS
18933   test -z "$as_dir" && as_dir=.
18934   for ac_exec_ext in '' $ac_executable_extensions; do
18935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18936     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18938     break 2
18939   fi
18940 done
18941 done
18942
18943   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18944   ;;
18945 esac
18946 fi
18947 PYTHON=$ac_cv_path_PYTHON
18948
18949 if test -n "$PYTHON"; then
18950   echo "$as_me:$LINENO: result: $PYTHON" >&5
18951 echo "${ECHO_T}$PYTHON" >&6
18952 else
18953   echo "$as_me:$LINENO: result: no" >&5
18954 echo "${ECHO_T}no" >&6
18955 fi
18956
18957 if test ${PYTHON} = "false"
18958 then
18959         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18960 echo "$as_me: WARNING: python required but not found" >&2;}
18961 fi
18962
18963 # Extract the first word of "qmtest", so it can be a program name with args.
18964 set dummy qmtest; ac_word=$2
18965 echo "$as_me:$LINENO: checking for $ac_word" >&5
18966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18967 if test "${ac_cv_path_QMTEST+set}" = set; then
18968   echo $ECHO_N "(cached) $ECHO_C" >&6
18969 else
18970   case $QMTEST in
18971   [\\/]* | ?:[\\/]*)
18972   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18973   ;;
18974   *)
18975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18976 for as_dir in $PATH
18977 do
18978   IFS=$as_save_IFS
18979   test -z "$as_dir" && as_dir=.
18980   for ac_exec_ext in '' $ac_executable_extensions; do
18981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18982     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18984     break 2
18985   fi
18986 done
18987 done
18988
18989   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
18990   ;;
18991 esac
18992 fi
18993 QMTEST=$ac_cv_path_QMTEST
18994
18995 if test -n "$QMTEST"; then
18996   echo "$as_me:$LINENO: result: $QMTEST" >&5
18997 echo "${ECHO_T}$QMTEST" >&6
18998 else
18999   echo "$as_me:$LINENO: result: no" >&5
19000 echo "${ECHO_T}no" >&6
19001 fi
19002
19003 if test ${QMTEST} = "false"
19004 then
19005         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19006 echo "$as_me: WARNING: qmtest required but not found" >&2;}
19007 fi
19008
19009 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19010 pymajor=`echo $pyversion | cut -d. -f1`
19011 pyminor=`echo $pyversion | cut -d. -f2`
19012
19013 if test "$pymajor" -ge "2"
19014 then
19015         if test "$pymajor" -eq "2"
19016         then
19017                 if test "$pyminor" -lt "2"
19018                 then
19019                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19020 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19021    { (exit 1); exit 1; }; }
19022                 fi
19023         fi
19024 else
19025         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19026 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19027    { (exit 1); exit 1; }; }
19028 fi
19029
19030
19031
19032
19033
19034 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19035 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19036 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19037   echo $ECHO_N "(cached) $ECHO_C" >&6
19038 else
19039   ac_check_lib_save_LIBS=$LIBS
19040 LIBS="-lelf  $LIBS"
19041 cat >conftest.$ac_ext <<_ACEOF
19042 #line $LINENO "configure"
19043 /* confdefs.h.  */
19044 _ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h.  */
19048
19049 /* Override any gcc2 internal prototype to avoid an error.  */
19050 #ifdef __cplusplus
19051 extern "C"
19052 #endif
19053 /* We use char because int might match the return type of a gcc2
19054    builtin and then its argument prototype would still apply.  */
19055 char elf_begin ();
19056 int
19057 main ()
19058 {
19059 elf_begin ();
19060   ;
19061   return 0;
19062 }
19063 _ACEOF
19064 rm -f conftest.$ac_objext conftest$ac_exeext
19065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19066   (eval $ac_link) 2>&5
19067   ac_status=$?
19068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069   (exit $ac_status); } &&
19070          { ac_try='test -s conftest$ac_exeext'
19071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072   (eval $ac_try) 2>&5
19073   ac_status=$?
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); }; }; then
19076   ac_cv_lib_elf_elf_begin=yes
19077 else
19078   echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19080
19081 ac_cv_lib_elf_elf_begin=no
19082 fi
19083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19084 LIBS=$ac_check_lib_save_LIBS
19085 fi
19086 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19087 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19088 if test $ac_cv_lib_elf_elf_begin = yes; then
19089   cat >>confdefs.h <<_ACEOF
19090 #define HAVE_LIBELF 1
19091 _ACEOF
19092
19093   LIBS="-lelf $LIBS"
19094
19095 fi
19096
19097
19098 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19099 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19100 if test "${ac_cv_search_dlopen+set}" = set; then
19101   echo $ECHO_N "(cached) $ECHO_C" >&6
19102 else
19103   ac_func_search_save_LIBS=$LIBS
19104 ac_cv_search_dlopen=no
19105 cat >conftest.$ac_ext <<_ACEOF
19106 #line $LINENO "configure"
19107 /* confdefs.h.  */
19108 _ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h.  */
19112
19113 /* Override any gcc2 internal prototype to avoid an error.  */
19114 #ifdef __cplusplus
19115 extern "C"
19116 #endif
19117 /* We use char because int might match the return type of a gcc2
19118    builtin and then its argument prototype would still apply.  */
19119 char dlopen ();
19120 int
19121 main ()
19122 {
19123 dlopen ();
19124   ;
19125   return 0;
19126 }
19127 _ACEOF
19128 rm -f conftest.$ac_objext conftest$ac_exeext
19129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19130   (eval $ac_link) 2>&5
19131   ac_status=$?
19132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133   (exit $ac_status); } &&
19134          { ac_try='test -s conftest$ac_exeext'
19135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136   (eval $ac_try) 2>&5
19137   ac_status=$?
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); }; }; then
19140   ac_cv_search_dlopen="none required"
19141 else
19142   echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19144
19145 fi
19146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19147 if test "$ac_cv_search_dlopen" = no; then
19148   for ac_lib in dl; do
19149     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19150     cat >conftest.$ac_ext <<_ACEOF
19151 #line $LINENO "configure"
19152 /* confdefs.h.  */
19153 _ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h.  */
19157
19158 /* Override any gcc2 internal prototype to avoid an error.  */
19159 #ifdef __cplusplus
19160 extern "C"
19161 #endif
19162 /* We use char because int might match the return type of a gcc2
19163    builtin and then its argument prototype would still apply.  */
19164 char dlopen ();
19165 int
19166 main ()
19167 {
19168 dlopen ();
19169   ;
19170   return 0;
19171 }
19172 _ACEOF
19173 rm -f conftest.$ac_objext conftest$ac_exeext
19174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19175   (eval $ac_link) 2>&5
19176   ac_status=$?
19177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178   (exit $ac_status); } &&
19179          { ac_try='test -s conftest$ac_exeext'
19180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181   (eval $ac_try) 2>&5
19182   ac_status=$?
19183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184   (exit $ac_status); }; }; then
19185   ac_cv_search_dlopen="-l$ac_lib"
19186 break
19187 else
19188   echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19190
19191 fi
19192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19193   done
19194 fi
19195 LIBS=$ac_func_search_save_LIBS
19196 fi
19197 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19198 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19199 if test "$ac_cv_search_dlopen" != no; then
19200   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19201
19202 cat >>confdefs.h <<\_ACEOF
19203 #define HAVE_DLOPEN 1
19204 _ACEOF
19205
19206 else
19207   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19208 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19209 fi
19210
19211
19212 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19213 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19214 if test "${ac_cv_search_mallinfo+set}" = set; then
19215   echo $ECHO_N "(cached) $ECHO_C" >&6
19216 else
19217   ac_func_search_save_LIBS=$LIBS
19218 ac_cv_search_mallinfo=no
19219 cat >conftest.$ac_ext <<_ACEOF
19220 #line $LINENO "configure"
19221 /* confdefs.h.  */
19222 _ACEOF
19223 cat confdefs.h >>conftest.$ac_ext
19224 cat >>conftest.$ac_ext <<_ACEOF
19225 /* end confdefs.h.  */
19226
19227 /* Override any gcc2 internal prototype to avoid an error.  */
19228 #ifdef __cplusplus
19229 extern "C"
19230 #endif
19231 /* We use char because int might match the return type of a gcc2
19232    builtin and then its argument prototype would still apply.  */
19233 char mallinfo ();
19234 int
19235 main ()
19236 {
19237 mallinfo ();
19238   ;
19239   return 0;
19240 }
19241 _ACEOF
19242 rm -f conftest.$ac_objext conftest$ac_exeext
19243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19244   (eval $ac_link) 2>&5
19245   ac_status=$?
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); } &&
19248          { ac_try='test -s conftest$ac_exeext'
19249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250   (eval $ac_try) 2>&5
19251   ac_status=$?
19252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253   (exit $ac_status); }; }; then
19254   ac_cv_search_mallinfo="none required"
19255 else
19256   echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19258
19259 fi
19260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19261 if test "$ac_cv_search_mallinfo" = no; then
19262   for ac_lib in malloc; do
19263     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19264     cat >conftest.$ac_ext <<_ACEOF
19265 #line $LINENO "configure"
19266 /* confdefs.h.  */
19267 _ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h.  */
19271
19272 /* Override any gcc2 internal prototype to avoid an error.  */
19273 #ifdef __cplusplus
19274 extern "C"
19275 #endif
19276 /* We use char because int might match the return type of a gcc2
19277    builtin and then its argument prototype would still apply.  */
19278 char mallinfo ();
19279 int
19280 main ()
19281 {
19282 mallinfo ();
19283   ;
19284   return 0;
19285 }
19286 _ACEOF
19287 rm -f conftest.$ac_objext conftest$ac_exeext
19288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19289   (eval $ac_link) 2>&5
19290   ac_status=$?
19291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292   (exit $ac_status); } &&
19293          { ac_try='test -s conftest$ac_exeext'
19294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295   (eval $ac_try) 2>&5
19296   ac_status=$?
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); }; }; then
19299   ac_cv_search_mallinfo="-l$ac_lib"
19300 break
19301 else
19302   echo "$as_me: failed program was:" >&5
19303 sed 's/^/| /' conftest.$ac_ext >&5
19304
19305 fi
19306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19307   done
19308 fi
19309 LIBS=$ac_func_search_save_LIBS
19310 fi
19311 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19312 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19313 if test "$ac_cv_search_mallinfo" != no; then
19314   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19315
19316 cat >>confdefs.h <<\_ACEOF
19317 #define HAVE_MALLINFO 1
19318 _ACEOF
19319
19320 fi
19321
19322
19323
19324 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19325 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19326 if test "${ac_cv_header_stdc+set}" = set; then
19327   echo $ECHO_N "(cached) $ECHO_C" >&6
19328 else
19329   cat >conftest.$ac_ext <<_ACEOF
19330 #line $LINENO "configure"
19331 /* confdefs.h.  */
19332 _ACEOF
19333 cat confdefs.h >>conftest.$ac_ext
19334 cat >>conftest.$ac_ext <<_ACEOF
19335 /* end confdefs.h.  */
19336 #include <stdlib.h>
19337 #include <stdarg.h>
19338 #include <string.h>
19339 #include <float.h>
19340
19341 int
19342 main ()
19343 {
19344
19345   ;
19346   return 0;
19347 }
19348 _ACEOF
19349 rm -f conftest.$ac_objext
19350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19351   (eval $ac_compile) 2>&5
19352   ac_status=$?
19353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354   (exit $ac_status); } &&
19355          { ac_try='test -s conftest.$ac_objext'
19356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357   (eval $ac_try) 2>&5
19358   ac_status=$?
19359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360   (exit $ac_status); }; }; then
19361   ac_cv_header_stdc=yes
19362 else
19363   echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19365
19366 ac_cv_header_stdc=no
19367 fi
19368 rm -f conftest.$ac_objext conftest.$ac_ext
19369
19370 if test $ac_cv_header_stdc = yes; then
19371   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19372   cat >conftest.$ac_ext <<_ACEOF
19373 #line $LINENO "configure"
19374 /* confdefs.h.  */
19375 _ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h.  */
19379 #include <string.h>
19380
19381 _ACEOF
19382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19383   $EGREP "memchr" >/dev/null 2>&1; then
19384   :
19385 else
19386   ac_cv_header_stdc=no
19387 fi
19388 rm -f conftest*
19389
19390 fi
19391
19392 if test $ac_cv_header_stdc = yes; then
19393   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19394   cat >conftest.$ac_ext <<_ACEOF
19395 #line $LINENO "configure"
19396 /* confdefs.h.  */
19397 _ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h.  */
19401 #include <stdlib.h>
19402
19403 _ACEOF
19404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19405   $EGREP "free" >/dev/null 2>&1; then
19406   :
19407 else
19408   ac_cv_header_stdc=no
19409 fi
19410 rm -f conftest*
19411
19412 fi
19413
19414 if test $ac_cv_header_stdc = yes; then
19415   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19416   if test "$cross_compiling" = yes; then
19417   :
19418 else
19419   cat >conftest.$ac_ext <<_ACEOF
19420 #line $LINENO "configure"
19421 /* confdefs.h.  */
19422 _ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h.  */
19426 #include <ctype.h>
19427 #if ((' ' & 0x0FF) == 0x020)
19428 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19429 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19430 #else
19431 # define ISLOWER(c) \
19432                    (('a' <= (c) && (c) <= 'i') \
19433                      || ('j' <= (c) && (c) <= 'r') \
19434                      || ('s' <= (c) && (c) <= 'z'))
19435 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19436 #endif
19437
19438 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19439 int
19440 main ()
19441 {
19442   int i;
19443   for (i = 0; i < 256; i++)
19444     if (XOR (islower (i), ISLOWER (i))
19445         || toupper (i) != TOUPPER (i))
19446       exit(2);
19447   exit (0);
19448 }
19449 _ACEOF
19450 rm -f conftest$ac_exeext
19451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19452   (eval $ac_link) 2>&5
19453   ac_status=$?
19454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457   (eval $ac_try) 2>&5
19458   ac_status=$?
19459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460   (exit $ac_status); }; }; then
19461   :
19462 else
19463   echo "$as_me: program exited with status $ac_status" >&5
19464 echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19466
19467 ( exit $ac_status )
19468 ac_cv_header_stdc=no
19469 fi
19470 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19471 fi
19472 fi
19473 fi
19474 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19475 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19476 if test $ac_cv_header_stdc = yes; then
19477
19478 cat >>confdefs.h <<\_ACEOF
19479 #define STDC_HEADERS 1
19480 _ACEOF
19481
19482 fi
19483
19484 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19485 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19486 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19487   echo $ECHO_N "(cached) $ECHO_C" >&6
19488 else
19489   cat >conftest.$ac_ext <<_ACEOF
19490 #line $LINENO "configure"
19491 /* confdefs.h.  */
19492 _ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h.  */
19496 #include <sys/types.h>
19497 #include <sys/wait.h>
19498 #ifndef WEXITSTATUS
19499 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19500 #endif
19501 #ifndef WIFEXITED
19502 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19503 #endif
19504
19505 int
19506 main ()
19507 {
19508   int s;
19509   wait (&s);
19510   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19511   ;
19512   return 0;
19513 }
19514 _ACEOF
19515 rm -f conftest.$ac_objext
19516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19517   (eval $ac_compile) 2>&5
19518   ac_status=$?
19519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520   (exit $ac_status); } &&
19521          { ac_try='test -s conftest.$ac_objext'
19522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19523   (eval $ac_try) 2>&5
19524   ac_status=$?
19525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526   (exit $ac_status); }; }; then
19527   ac_cv_header_sys_wait_h=yes
19528 else
19529   echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19531
19532 ac_cv_header_sys_wait_h=no
19533 fi
19534 rm -f conftest.$ac_objext conftest.$ac_ext
19535 fi
19536 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19537 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19538 if test $ac_cv_header_sys_wait_h = yes; then
19539
19540 cat >>confdefs.h <<\_ACEOF
19541 #define HAVE_SYS_WAIT_H 1
19542 _ACEOF
19543
19544 fi
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19556 do
19557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19559   echo "$as_me:$LINENO: checking for $ac_header" >&5
19560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19562   echo $ECHO_N "(cached) $ECHO_C" >&6
19563 fi
19564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19566 else
19567   # Is the header compilable?
19568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19570 cat >conftest.$ac_ext <<_ACEOF
19571 #line $LINENO "configure"
19572 /* confdefs.h.  */
19573 _ACEOF
19574 cat confdefs.h >>conftest.$ac_ext
19575 cat >>conftest.$ac_ext <<_ACEOF
19576 /* end confdefs.h.  */
19577 $ac_includes_default
19578 #include <$ac_header>
19579 _ACEOF
19580 rm -f conftest.$ac_objext
19581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19582   (eval $ac_compile) 2>&5
19583   ac_status=$?
19584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585   (exit $ac_status); } &&
19586          { ac_try='test -s conftest.$ac_objext'
19587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588   (eval $ac_try) 2>&5
19589   ac_status=$?
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); }; }; then
19592   ac_header_compiler=yes
19593 else
19594   echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19596
19597 ac_header_compiler=no
19598 fi
19599 rm -f conftest.$ac_objext conftest.$ac_ext
19600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19601 echo "${ECHO_T}$ac_header_compiler" >&6
19602
19603 # Is the header present?
19604 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19606 cat >conftest.$ac_ext <<_ACEOF
19607 #line $LINENO "configure"
19608 /* confdefs.h.  */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h.  */
19613 #include <$ac_header>
19614 _ACEOF
19615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19616   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19617   ac_status=$?
19618   grep -v '^ *+' conftest.er1 >conftest.err
19619   rm -f conftest.er1
19620   cat conftest.err >&5
19621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622   (exit $ac_status); } >/dev/null; then
19623   if test -s conftest.err; then
19624     ac_cpp_err=$ac_c_preproc_warn_flag
19625   else
19626     ac_cpp_err=
19627   fi
19628 else
19629   ac_cpp_err=yes
19630 fi
19631 if test -z "$ac_cpp_err"; then
19632   ac_header_preproc=yes
19633 else
19634   echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19636
19637   ac_header_preproc=no
19638 fi
19639 rm -f conftest.err conftest.$ac_ext
19640 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19641 echo "${ECHO_T}$ac_header_preproc" >&6
19642
19643 # So?  What about this header?
19644 case $ac_header_compiler:$ac_header_preproc in
19645   yes:no )
19646     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19648     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19650     (
19651       cat <<\_ASBOX
19652 ## ------------------------------------ ##
19653 ## Report this to bug-autoconf@gnu.org. ##
19654 ## ------------------------------------ ##
19655 _ASBOX
19656     ) |
19657       sed "s/^/$as_me: WARNING:     /" >&2
19658     ;;
19659   no:yes )
19660     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19662     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19666     (
19667       cat <<\_ASBOX
19668 ## ------------------------------------ ##
19669 ## Report this to bug-autoconf@gnu.org. ##
19670 ## ------------------------------------ ##
19671 _ASBOX
19672     ) |
19673       sed "s/^/$as_me: WARNING:     /" >&2
19674     ;;
19675 esac
19676 echo "$as_me:$LINENO: checking for $ac_header" >&5
19677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19679   echo $ECHO_N "(cached) $ECHO_C" >&6
19680 else
19681   eval "$as_ac_Header=$ac_header_preproc"
19682 fi
19683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19685
19686 fi
19687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19688   cat >>confdefs.h <<_ACEOF
19689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19690 _ACEOF
19691
19692 fi
19693
19694 done
19695
19696
19697
19698
19699
19700
19701 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19702 do
19703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19705   echo "$as_me:$LINENO: checking for $ac_header" >&5
19706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19708   echo $ECHO_N "(cached) $ECHO_C" >&6
19709 fi
19710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19712 else
19713   # Is the header compilable?
19714 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19716 cat >conftest.$ac_ext <<_ACEOF
19717 #line $LINENO "configure"
19718 /* confdefs.h.  */
19719 _ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h.  */
19723 $ac_includes_default
19724 #include <$ac_header>
19725 _ACEOF
19726 rm -f conftest.$ac_objext
19727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19728   (eval $ac_compile) 2>&5
19729   ac_status=$?
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); } &&
19732          { ac_try='test -s conftest.$ac_objext'
19733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734   (eval $ac_try) 2>&5
19735   ac_status=$?
19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737   (exit $ac_status); }; }; then
19738   ac_header_compiler=yes
19739 else
19740   echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19742
19743 ac_header_compiler=no
19744 fi
19745 rm -f conftest.$ac_objext conftest.$ac_ext
19746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19747 echo "${ECHO_T}$ac_header_compiler" >&6
19748
19749 # Is the header present?
19750 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19752 cat >conftest.$ac_ext <<_ACEOF
19753 #line $LINENO "configure"
19754 /* confdefs.h.  */
19755 _ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h.  */
19759 #include <$ac_header>
19760 _ACEOF
19761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19762   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19763   ac_status=$?
19764   grep -v '^ *+' conftest.er1 >conftest.err
19765   rm -f conftest.er1
19766   cat conftest.err >&5
19767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768   (exit $ac_status); } >/dev/null; then
19769   if test -s conftest.err; then
19770     ac_cpp_err=$ac_c_preproc_warn_flag
19771   else
19772     ac_cpp_err=
19773   fi
19774 else
19775   ac_cpp_err=yes
19776 fi
19777 if test -z "$ac_cpp_err"; then
19778   ac_header_preproc=yes
19779 else
19780   echo "$as_me: failed program was:" >&5
19781 sed 's/^/| /' conftest.$ac_ext >&5
19782
19783   ac_header_preproc=no
19784 fi
19785 rm -f conftest.err conftest.$ac_ext
19786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19787 echo "${ECHO_T}$ac_header_preproc" >&6
19788
19789 # So?  What about this header?
19790 case $ac_header_compiler:$ac_header_preproc in
19791   yes:no )
19792     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19796     (
19797       cat <<\_ASBOX
19798 ## ------------------------------------ ##
19799 ## Report this to bug-autoconf@gnu.org. ##
19800 ## ------------------------------------ ##
19801 _ASBOX
19802     ) |
19803       sed "s/^/$as_me: WARNING:     /" >&2
19804     ;;
19805   no:yes )
19806     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19808     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19812     (
19813       cat <<\_ASBOX
19814 ## ------------------------------------ ##
19815 ## Report this to bug-autoconf@gnu.org. ##
19816 ## ------------------------------------ ##
19817 _ASBOX
19818     ) |
19819       sed "s/^/$as_me: WARNING:     /" >&2
19820     ;;
19821 esac
19822 echo "$as_me:$LINENO: checking for $ac_header" >&5
19823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19825   echo $ECHO_N "(cached) $ECHO_C" >&6
19826 else
19827   eval "$as_ac_Header=$ac_header_preproc"
19828 fi
19829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19831
19832 fi
19833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19834   cat >>confdefs.h <<_ACEOF
19835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19836 _ACEOF
19837
19838 fi
19839
19840 done
19841
19842
19843
19844
19845 for ac_header in dlfcn.h link.h
19846 do
19847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19849   echo "$as_me:$LINENO: checking for $ac_header" >&5
19850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19852   echo $ECHO_N "(cached) $ECHO_C" >&6
19853 fi
19854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19856 else
19857   # Is the header compilable?
19858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19860 cat >conftest.$ac_ext <<_ACEOF
19861 #line $LINENO "configure"
19862 /* confdefs.h.  */
19863 _ACEOF
19864 cat confdefs.h >>conftest.$ac_ext
19865 cat >>conftest.$ac_ext <<_ACEOF
19866 /* end confdefs.h.  */
19867 $ac_includes_default
19868 #include <$ac_header>
19869 _ACEOF
19870 rm -f conftest.$ac_objext
19871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19872   (eval $ac_compile) 2>&5
19873   ac_status=$?
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); } &&
19876          { ac_try='test -s conftest.$ac_objext'
19877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878   (eval $ac_try) 2>&5
19879   ac_status=$?
19880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881   (exit $ac_status); }; }; then
19882   ac_header_compiler=yes
19883 else
19884   echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19886
19887 ac_header_compiler=no
19888 fi
19889 rm -f conftest.$ac_objext conftest.$ac_ext
19890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19891 echo "${ECHO_T}$ac_header_compiler" >&6
19892
19893 # Is the header present?
19894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19896 cat >conftest.$ac_ext <<_ACEOF
19897 #line $LINENO "configure"
19898 /* confdefs.h.  */
19899 _ACEOF
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>conftest.$ac_ext <<_ACEOF
19902 /* end confdefs.h.  */
19903 #include <$ac_header>
19904 _ACEOF
19905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19907   ac_status=$?
19908   grep -v '^ *+' conftest.er1 >conftest.err
19909   rm -f conftest.er1
19910   cat conftest.err >&5
19911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912   (exit $ac_status); } >/dev/null; then
19913   if test -s conftest.err; then
19914     ac_cpp_err=$ac_c_preproc_warn_flag
19915   else
19916     ac_cpp_err=
19917   fi
19918 else
19919   ac_cpp_err=yes
19920 fi
19921 if test -z "$ac_cpp_err"; then
19922   ac_header_preproc=yes
19923 else
19924   echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19926
19927   ac_header_preproc=no
19928 fi
19929 rm -f conftest.err conftest.$ac_ext
19930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19931 echo "${ECHO_T}$ac_header_preproc" >&6
19932
19933 # So?  What about this header?
19934 case $ac_header_compiler:$ac_header_preproc in
19935   yes:no )
19936     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19940     (
19941       cat <<\_ASBOX
19942 ## ------------------------------------ ##
19943 ## Report this to bug-autoconf@gnu.org. ##
19944 ## ------------------------------------ ##
19945 _ASBOX
19946     ) |
19947       sed "s/^/$as_me: WARNING:     /" >&2
19948     ;;
19949   no:yes )
19950     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19952     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19956     (
19957       cat <<\_ASBOX
19958 ## ------------------------------------ ##
19959 ## Report this to bug-autoconf@gnu.org. ##
19960 ## ------------------------------------ ##
19961 _ASBOX
19962     ) |
19963       sed "s/^/$as_me: WARNING:     /" >&2
19964     ;;
19965 esac
19966 echo "$as_me:$LINENO: checking for $ac_header" >&5
19967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19969   echo $ECHO_N "(cached) $ECHO_C" >&6
19970 else
19971   eval "$as_ac_Header=$ac_header_preproc"
19972 fi
19973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19975
19976 fi
19977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19978   cat >>confdefs.h <<_ACEOF
19979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19980 _ACEOF
19981
19982 fi
19983
19984 done
19985
19986
19987
19988 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19989 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19990 if test "${ac_cv_c_const+set}" = set; then
19991   echo $ECHO_N "(cached) $ECHO_C" >&6
19992 else
19993   cat >conftest.$ac_ext <<_ACEOF
19994 #line $LINENO "configure"
19995 /* confdefs.h.  */
19996 _ACEOF
19997 cat confdefs.h >>conftest.$ac_ext
19998 cat >>conftest.$ac_ext <<_ACEOF
19999 /* end confdefs.h.  */
20000
20001 int
20002 main ()
20003 {
20004 /* FIXME: Include the comments suggested by Paul. */
20005 #ifndef __cplusplus
20006   /* Ultrix mips cc rejects this.  */
20007   typedef int charset[2];
20008   const charset x;
20009   /* SunOS 4.1.1 cc rejects this.  */
20010   char const *const *ccp;
20011   char **p;
20012   /* NEC SVR4.0.2 mips cc rejects this.  */
20013   struct point {int x, y;};
20014   static struct point const zero = {0,0};
20015   /* AIX XL C 1.02.0.0 rejects this.
20016      It does not let you subtract one const X* pointer from another in
20017      an arm of an if-expression whose if-part is not a constant
20018      expression */
20019   const char *g = "string";
20020   ccp = &g + (g ? g-g : 0);
20021   /* HPUX 7.0 cc rejects these. */
20022   ++ccp;
20023   p = (char**) ccp;
20024   ccp = (char const *const *) p;
20025   { /* SCO 3.2v4 cc rejects this.  */
20026     char *t;
20027     char const *s = 0 ? (char *) 0 : (char const *) 0;
20028
20029     *t++ = 0;
20030   }
20031   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20032     int x[] = {25, 17};
20033     const int *foo = &x[0];
20034     ++foo;
20035   }
20036   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20037     typedef const int *iptr;
20038     iptr p = 0;
20039     ++p;
20040   }
20041   { /* AIX XL C 1.02.0.0 rejects this saying
20042        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20043     struct s { int j; const int *ap[3]; };
20044     struct s *b; b->j = 5;
20045   }
20046   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20047     const int foo = 10;
20048   }
20049 #endif
20050
20051   ;
20052   return 0;
20053 }
20054 _ACEOF
20055 rm -f conftest.$ac_objext
20056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20057   (eval $ac_compile) 2>&5
20058   ac_status=$?
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); } &&
20061          { ac_try='test -s conftest.$ac_objext'
20062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063   (eval $ac_try) 2>&5
20064   ac_status=$?
20065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066   (exit $ac_status); }; }; then
20067   ac_cv_c_const=yes
20068 else
20069   echo "$as_me: failed program was:" >&5
20070 sed 's/^/| /' conftest.$ac_ext >&5
20071
20072 ac_cv_c_const=no
20073 fi
20074 rm -f conftest.$ac_objext conftest.$ac_ext
20075 fi
20076 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20077 echo "${ECHO_T}$ac_cv_c_const" >&6
20078 if test $ac_cv_c_const = no; then
20079
20080 cat >>confdefs.h <<\_ACEOF
20081 #define const
20082 _ACEOF
20083
20084 fi
20085
20086 echo "$as_me:$LINENO: checking for inline" >&5
20087 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20088 if test "${ac_cv_c_inline+set}" = set; then
20089   echo $ECHO_N "(cached) $ECHO_C" >&6
20090 else
20091   ac_cv_c_inline=no
20092 for ac_kw in inline __inline__ __inline; do
20093   cat >conftest.$ac_ext <<_ACEOF
20094 #line $LINENO "configure"
20095 /* confdefs.h.  */
20096 _ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h.  */
20100 #ifndef __cplusplus
20101 typedef int foo_t;
20102 static $ac_kw foo_t static_foo () {return 0; }
20103 $ac_kw foo_t foo () {return 0; }
20104 #endif
20105
20106 _ACEOF
20107 rm -f conftest.$ac_objext
20108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20109   (eval $ac_compile) 2>&5
20110   ac_status=$?
20111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112   (exit $ac_status); } &&
20113          { ac_try='test -s conftest.$ac_objext'
20114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115   (eval $ac_try) 2>&5
20116   ac_status=$?
20117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118   (exit $ac_status); }; }; then
20119   ac_cv_c_inline=$ac_kw; break
20120 else
20121   echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20123
20124 fi
20125 rm -f conftest.$ac_objext conftest.$ac_ext
20126 done
20127
20128 fi
20129 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20130 echo "${ECHO_T}$ac_cv_c_inline" >&6
20131 case $ac_cv_c_inline in
20132   inline | yes) ;;
20133   no)
20134 cat >>confdefs.h <<\_ACEOF
20135 #define inline
20136 _ACEOF
20137  ;;
20138   *)  cat >>confdefs.h <<_ACEOF
20139 #define inline $ac_cv_c_inline
20140 _ACEOF
20141  ;;
20142 esac
20143
20144
20145 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20146 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20147 if test "${ac_cv_c_bigendian+set}" = set; then
20148   echo $ECHO_N "(cached) $ECHO_C" >&6
20149 else
20150   # See if sys/param.h defines the BYTE_ORDER macro.
20151 cat >conftest.$ac_ext <<_ACEOF
20152 #line $LINENO "configure"
20153 /* confdefs.h.  */
20154 _ACEOF
20155 cat confdefs.h >>conftest.$ac_ext
20156 cat >>conftest.$ac_ext <<_ACEOF
20157 /* end confdefs.h.  */
20158 #include <sys/types.h>
20159 #include <sys/param.h>
20160
20161 int
20162 main ()
20163 {
20164 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20165  bogus endian macros
20166 #endif
20167
20168   ;
20169   return 0;
20170 }
20171 _ACEOF
20172 rm -f conftest.$ac_objext
20173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20174   (eval $ac_compile) 2>&5
20175   ac_status=$?
20176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177   (exit $ac_status); } &&
20178          { ac_try='test -s conftest.$ac_objext'
20179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180   (eval $ac_try) 2>&5
20181   ac_status=$?
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); }; }; then
20184   # It does; now see whether it defined to BIG_ENDIAN or not.
20185 cat >conftest.$ac_ext <<_ACEOF
20186 #line $LINENO "configure"
20187 /* confdefs.h.  */
20188 _ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h.  */
20192 #include <sys/types.h>
20193 #include <sys/param.h>
20194
20195 int
20196 main ()
20197 {
20198 #if BYTE_ORDER != BIG_ENDIAN
20199  not big endian
20200 #endif
20201
20202   ;
20203   return 0;
20204 }
20205 _ACEOF
20206 rm -f conftest.$ac_objext
20207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20208   (eval $ac_compile) 2>&5
20209   ac_status=$?
20210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211   (exit $ac_status); } &&
20212          { ac_try='test -s conftest.$ac_objext'
20213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20214   (eval $ac_try) 2>&5
20215   ac_status=$?
20216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217   (exit $ac_status); }; }; then
20218   ac_cv_c_bigendian=yes
20219 else
20220   echo "$as_me: failed program was:" >&5
20221 sed 's/^/| /' conftest.$ac_ext >&5
20222
20223 ac_cv_c_bigendian=no
20224 fi
20225 rm -f conftest.$ac_objext conftest.$ac_ext
20226 else
20227   echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20229
20230 # It does not; compile a test program.
20231 if test "$cross_compiling" = yes; then
20232   # try to guess the endianness by grepping values into an object file
20233   ac_cv_c_bigendian=unknown
20234   cat >conftest.$ac_ext <<_ACEOF
20235 #line $LINENO "configure"
20236 /* confdefs.h.  */
20237 _ACEOF
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h.  */
20241 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20242 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20243 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20244 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20245 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20246 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20247 int
20248 main ()
20249 {
20250  _ascii (); _ebcdic ();
20251   ;
20252   return 0;
20253 }
20254 _ACEOF
20255 rm -f conftest.$ac_objext
20256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20257   (eval $ac_compile) 2>&5
20258   ac_status=$?
20259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260   (exit $ac_status); } &&
20261          { ac_try='test -s conftest.$ac_objext'
20262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263   (eval $ac_try) 2>&5
20264   ac_status=$?
20265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266   (exit $ac_status); }; }; then
20267   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20268   ac_cv_c_bigendian=yes
20269 fi
20270 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20271   if test "$ac_cv_c_bigendian" = unknown; then
20272     ac_cv_c_bigendian=no
20273   else
20274     # finding both strings is unlikely to happen, but who knows?
20275     ac_cv_c_bigendian=unknown
20276   fi
20277 fi
20278 else
20279   echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20281
20282 fi
20283 rm -f conftest.$ac_objext conftest.$ac_ext
20284 else
20285   cat >conftest.$ac_ext <<_ACEOF
20286 #line $LINENO "configure"
20287 /* confdefs.h.  */
20288 _ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h.  */
20292 int
20293 main ()
20294 {
20295   /* Are we little or big endian?  From Harbison&Steele.  */
20296   union
20297   {
20298     long l;
20299     char c[sizeof (long)];
20300   } u;
20301   u.l = 1;
20302   exit (u.c[sizeof (long) - 1] == 1);
20303 }
20304 _ACEOF
20305 rm -f conftest$ac_exeext
20306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20307   (eval $ac_link) 2>&5
20308   ac_status=$?
20309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312   (eval $ac_try) 2>&5
20313   ac_status=$?
20314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315   (exit $ac_status); }; }; then
20316   ac_cv_c_bigendian=no
20317 else
20318   echo "$as_me: program exited with status $ac_status" >&5
20319 echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.$ac_ext >&5
20321
20322 ( exit $ac_status )
20323 ac_cv_c_bigendian=yes
20324 fi
20325 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20326 fi
20327 fi
20328 rm -f conftest.$ac_objext conftest.$ac_ext
20329 fi
20330 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20331 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20332 case $ac_cv_c_bigendian in
20333   yes)
20334
20335 cat >>confdefs.h <<\_ACEOF
20336 #define ENDIAN_BIG
20337 _ACEOF
20338  ;;
20339   no)
20340
20341 cat >>confdefs.h <<\_ACEOF
20342 #define ENDIAN_LITTLE
20343 _ACEOF
20344  ;;
20345   *)
20346     { { echo "$as_me:$LINENO: error: unknown endianness
20347 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20348 echo "$as_me: error: unknown endianness
20349 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20350    { (exit 1); exit 1; }; } ;;
20351 esac
20352
20353
20354 echo "$as_me:$LINENO: checking for pid_t" >&5
20355 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20356 if test "${ac_cv_type_pid_t+set}" = set; then
20357   echo $ECHO_N "(cached) $ECHO_C" >&6
20358 else
20359   cat >conftest.$ac_ext <<_ACEOF
20360 #line $LINENO "configure"
20361 /* confdefs.h.  */
20362 _ACEOF
20363 cat confdefs.h >>conftest.$ac_ext
20364 cat >>conftest.$ac_ext <<_ACEOF
20365 /* end confdefs.h.  */
20366 $ac_includes_default
20367 int
20368 main ()
20369 {
20370 if ((pid_t *) 0)
20371   return 0;
20372 if (sizeof (pid_t))
20373   return 0;
20374   ;
20375   return 0;
20376 }
20377 _ACEOF
20378 rm -f conftest.$ac_objext
20379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20380   (eval $ac_compile) 2>&5
20381   ac_status=$?
20382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383   (exit $ac_status); } &&
20384          { ac_try='test -s conftest.$ac_objext'
20385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386   (eval $ac_try) 2>&5
20387   ac_status=$?
20388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389   (exit $ac_status); }; }; then
20390   ac_cv_type_pid_t=yes
20391 else
20392   echo "$as_me: failed program was:" >&5
20393 sed 's/^/| /' conftest.$ac_ext >&5
20394
20395 ac_cv_type_pid_t=no
20396 fi
20397 rm -f conftest.$ac_objext conftest.$ac_ext
20398 fi
20399 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20400 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20401 if test $ac_cv_type_pid_t = yes; then
20402   :
20403 else
20404
20405 cat >>confdefs.h <<_ACEOF
20406 #define pid_t int
20407 _ACEOF
20408
20409 fi
20410
20411 echo "$as_me:$LINENO: checking for size_t" >&5
20412 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20413 if test "${ac_cv_type_size_t+set}" = set; then
20414   echo $ECHO_N "(cached) $ECHO_C" >&6
20415 else
20416   cat >conftest.$ac_ext <<_ACEOF
20417 #line $LINENO "configure"
20418 /* confdefs.h.  */
20419 _ACEOF
20420 cat confdefs.h >>conftest.$ac_ext
20421 cat >>conftest.$ac_ext <<_ACEOF
20422 /* end confdefs.h.  */
20423 $ac_includes_default
20424 int
20425 main ()
20426 {
20427 if ((size_t *) 0)
20428   return 0;
20429 if (sizeof (size_t))
20430   return 0;
20431   ;
20432   return 0;
20433 }
20434 _ACEOF
20435 rm -f conftest.$ac_objext
20436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20437   (eval $ac_compile) 2>&5
20438   ac_status=$?
20439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440   (exit $ac_status); } &&
20441          { ac_try='test -s conftest.$ac_objext'
20442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443   (eval $ac_try) 2>&5
20444   ac_status=$?
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); }; }; then
20447   ac_cv_type_size_t=yes
20448 else
20449   echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20451
20452 ac_cv_type_size_t=no
20453 fi
20454 rm -f conftest.$ac_objext conftest.$ac_ext
20455 fi
20456 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20457 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20458 if test $ac_cv_type_size_t = yes; then
20459   :
20460 else
20461
20462 cat >>confdefs.h <<_ACEOF
20463 #define size_t unsigned
20464 _ACEOF
20465
20466 fi
20467
20468 echo "$as_me:$LINENO: checking for int64_t" >&5
20469 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20470 if test "${ac_cv_type_int64_t+set}" = set; then
20471   echo $ECHO_N "(cached) $ECHO_C" >&6
20472 else
20473   cat >conftest.$ac_ext <<_ACEOF
20474 #line $LINENO "configure"
20475 /* confdefs.h.  */
20476 _ACEOF
20477 cat confdefs.h >>conftest.$ac_ext
20478 cat >>conftest.$ac_ext <<_ACEOF
20479 /* end confdefs.h.  */
20480 $ac_includes_default
20481 int
20482 main ()
20483 {
20484 if ((int64_t *) 0)
20485   return 0;
20486 if (sizeof (int64_t))
20487   return 0;
20488   ;
20489   return 0;
20490 }
20491 _ACEOF
20492 rm -f conftest.$ac_objext
20493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20494   (eval $ac_compile) 2>&5
20495   ac_status=$?
20496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497   (exit $ac_status); } &&
20498          { ac_try='test -s conftest.$ac_objext'
20499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20500   (eval $ac_try) 2>&5
20501   ac_status=$?
20502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503   (exit $ac_status); }; }; then
20504   ac_cv_type_int64_t=yes
20505 else
20506   echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20508
20509 ac_cv_type_int64_t=no
20510 fi
20511 rm -f conftest.$ac_objext conftest.$ac_ext
20512 fi
20513 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20514 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20515 if test $ac_cv_type_int64_t = yes; then
20516
20517 cat >>confdefs.h <<_ACEOF
20518 #define HAVE_INT64_T 1
20519 _ACEOF
20520
20521
20522 else
20523   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20524 echo "$as_me: error: Type int64_t required but not found" >&2;}
20525    { (exit 1); exit 1; }; }
20526 fi
20527
20528 echo "$as_me:$LINENO: checking for uint64_t" >&5
20529 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20530 if test "${ac_cv_type_uint64_t+set}" = set; then
20531   echo $ECHO_N "(cached) $ECHO_C" >&6
20532 else
20533   cat >conftest.$ac_ext <<_ACEOF
20534 #line $LINENO "configure"
20535 /* confdefs.h.  */
20536 _ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h.  */
20540 $ac_includes_default
20541 int
20542 main ()
20543 {
20544 if ((uint64_t *) 0)
20545   return 0;
20546 if (sizeof (uint64_t))
20547   return 0;
20548   ;
20549   return 0;
20550 }
20551 _ACEOF
20552 rm -f conftest.$ac_objext
20553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20554   (eval $ac_compile) 2>&5
20555   ac_status=$?
20556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); } &&
20558          { ac_try='test -s conftest.$ac_objext'
20559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560   (eval $ac_try) 2>&5
20561   ac_status=$?
20562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563   (exit $ac_status); }; }; then
20564   ac_cv_type_uint64_t=yes
20565 else
20566   echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20568
20569 ac_cv_type_uint64_t=no
20570 fi
20571 rm -f conftest.$ac_objext conftest.$ac_ext
20572 fi
20573 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20574 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20575 if test $ac_cv_type_uint64_t = yes; then
20576
20577 cat >>confdefs.h <<_ACEOF
20578 #define HAVE_UINT64_T 1
20579 _ACEOF
20580
20581
20582 else
20583   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20584 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20585    { (exit 1); exit 1; }; }
20586 fi
20587
20588 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20589 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20590 if test "${ac_cv_header_time+set}" = set; then
20591   echo $ECHO_N "(cached) $ECHO_C" >&6
20592 else
20593   cat >conftest.$ac_ext <<_ACEOF
20594 #line $LINENO "configure"
20595 /* confdefs.h.  */
20596 _ACEOF
20597 cat confdefs.h >>conftest.$ac_ext
20598 cat >>conftest.$ac_ext <<_ACEOF
20599 /* end confdefs.h.  */
20600 #include <sys/types.h>
20601 #include <sys/time.h>
20602 #include <time.h>
20603
20604 int
20605 main ()
20606 {
20607 if ((struct tm *) 0)
20608 return 0;
20609   ;
20610   return 0;
20611 }
20612 _ACEOF
20613 rm -f conftest.$ac_objext
20614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20615   (eval $ac_compile) 2>&5
20616   ac_status=$?
20617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618   (exit $ac_status); } &&
20619          { ac_try='test -s conftest.$ac_objext'
20620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20621   (eval $ac_try) 2>&5
20622   ac_status=$?
20623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624   (exit $ac_status); }; }; then
20625   ac_cv_header_time=yes
20626 else
20627   echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20629
20630 ac_cv_header_time=no
20631 fi
20632 rm -f conftest.$ac_objext conftest.$ac_ext
20633 fi
20634 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20635 echo "${ECHO_T}$ac_cv_header_time" >&6
20636 if test $ac_cv_header_time = yes; then
20637
20638 cat >>confdefs.h <<\_ACEOF
20639 #define TIME_WITH_SYS_TIME 1
20640 _ACEOF
20641
20642 fi
20643
20644 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20645 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20646 if test "${ac_cv_struct_tm+set}" = set; then
20647   echo $ECHO_N "(cached) $ECHO_C" >&6
20648 else
20649   cat >conftest.$ac_ext <<_ACEOF
20650 #line $LINENO "configure"
20651 /* confdefs.h.  */
20652 _ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h.  */
20656 #include <sys/types.h>
20657 #include <time.h>
20658
20659 int
20660 main ()
20661 {
20662 struct tm *tp; tp->tm_sec;
20663   ;
20664   return 0;
20665 }
20666 _ACEOF
20667 rm -f conftest.$ac_objext
20668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20669   (eval $ac_compile) 2>&5
20670   ac_status=$?
20671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672   (exit $ac_status); } &&
20673          { ac_try='test -s conftest.$ac_objext'
20674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675   (eval $ac_try) 2>&5
20676   ac_status=$?
20677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678   (exit $ac_status); }; }; then
20679   ac_cv_struct_tm=time.h
20680 else
20681   echo "$as_me: failed program was:" >&5
20682 sed 's/^/| /' conftest.$ac_ext >&5
20683
20684 ac_cv_struct_tm=sys/time.h
20685 fi
20686 rm -f conftest.$ac_objext conftest.$ac_ext
20687 fi
20688 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20689 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20690 if test $ac_cv_struct_tm = sys/time.h; then
20691
20692 cat >>confdefs.h <<\_ACEOF
20693 #define TM_IN_SYS_TIME 1
20694 _ACEOF
20695
20696 fi
20697
20698
20699 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20700 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20701 if test "${ac_cv_cxx_namespaces+set}" = set; then
20702   echo $ECHO_N "(cached) $ECHO_C" >&6
20703 else
20704
20705
20706  ac_ext=cc
20707 ac_cpp='$CXXCPP $CPPFLAGS'
20708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20711
20712  cat >conftest.$ac_ext <<_ACEOF
20713 #line $LINENO "configure"
20714 /* confdefs.h.  */
20715 _ACEOF
20716 cat confdefs.h >>conftest.$ac_ext
20717 cat >>conftest.$ac_ext <<_ACEOF
20718 /* end confdefs.h.  */
20719 namespace Outer { namespace Inner { int i = 0; }}
20720 int
20721 main ()
20722 {
20723 using namespace Outer::Inner; return i;
20724   ;
20725   return 0;
20726 }
20727 _ACEOF
20728 rm -f conftest.$ac_objext
20729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20730   (eval $ac_compile) 2>&5
20731   ac_status=$?
20732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733   (exit $ac_status); } &&
20734          { ac_try='test -s conftest.$ac_objext'
20735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736   (eval $ac_try) 2>&5
20737   ac_status=$?
20738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739   (exit $ac_status); }; }; then
20740   ac_cv_cxx_namespaces=yes
20741 else
20742   echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20744
20745 ac_cv_cxx_namespaces=no
20746 fi
20747 rm -f conftest.$ac_objext conftest.$ac_ext
20748  ac_ext=c
20749 ac_cpp='$CPP $CPPFLAGS'
20750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20753
20754
20755 fi
20756 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20757 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20758 if test "$ac_cv_cxx_namespaces" = yes; then
20759
20760 cat >>confdefs.h <<\_ACEOF
20761 #define HAVE_NAMESPACES
20762 _ACEOF
20763
20764 fi
20765
20766 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20767 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20768 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20769   echo $ECHO_N "(cached) $ECHO_C" >&6
20770 else
20771
20772
20773
20774   ac_ext=cc
20775 ac_cpp='$CXXCPP $CPPFLAGS'
20776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20779
20780   cat >conftest.$ac_ext <<_ACEOF
20781 #line $LINENO "configure"
20782 /* confdefs.h.  */
20783 _ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h.  */
20787 #include <ext/hash_map>
20788 #ifdef HAVE_NAMESPACES
20789 using namespace std;
20790 #endif
20791 int
20792 main ()
20793 {
20794 hash_map<int, int> t; return 0;
20795   ;
20796   return 0;
20797 }
20798 _ACEOF
20799 rm -f conftest.$ac_objext
20800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20801   (eval $ac_compile) 2>&5
20802   ac_status=$?
20803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804   (exit $ac_status); } &&
20805          { ac_try='test -s conftest.$ac_objext'
20806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807   (eval $ac_try) 2>&5
20808   ac_status=$?
20809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810   (exit $ac_status); }; }; then
20811   ac_cv_cxx_have_ext_hash_map=std
20812 else
20813   echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20815
20816 ac_cv_cxx_have_ext_hash_map=no
20817 fi
20818 rm -f conftest.$ac_objext conftest.$ac_ext
20819   cat >conftest.$ac_ext <<_ACEOF
20820 #line $LINENO "configure"
20821 /* confdefs.h.  */
20822 _ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h.  */
20826 #include <ext/hash_map>
20827 #ifdef HAVE_NAMESPACES
20828 using namespace __gnu_cxx;
20829 #endif
20830 int
20831 main ()
20832 {
20833 hash_map<int, int> t; return 0;
20834   ;
20835   return 0;
20836 }
20837 _ACEOF
20838 rm -f conftest.$ac_objext
20839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20840   (eval $ac_compile) 2>&5
20841   ac_status=$?
20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843   (exit $ac_status); } &&
20844          { ac_try='test -s conftest.$ac_objext'
20845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846   (eval $ac_try) 2>&5
20847   ac_status=$?
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); }; }; then
20850   ac_cv_cxx_have_ext_hash_map=gnu
20851 else
20852   echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20854
20855 ac_cv_cxx_have_ext_hash_map=no
20856 fi
20857 rm -f conftest.$ac_objext conftest.$ac_ext
20858   ac_ext=c
20859 ac_cpp='$CPP $CPPFLAGS'
20860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20863
20864
20865 fi
20866 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20867 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20868 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20869
20870 cat >>confdefs.h <<\_ACEOF
20871 #define HAVE_STD_EXT_HASH_MAP
20872 _ACEOF
20873
20874 fi
20875 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20876
20877 cat >>confdefs.h <<\_ACEOF
20878 #define HAVE_GNU_EXT_HASH_MAP
20879 _ACEOF
20880
20881 fi
20882
20883 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20884 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20885 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20886   echo $ECHO_N "(cached) $ECHO_C" >&6
20887 else
20888
20889
20890
20891   ac_ext=cc
20892 ac_cpp='$CXXCPP $CPPFLAGS'
20893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20896
20897   cat >conftest.$ac_ext <<_ACEOF
20898 #line $LINENO "configure"
20899 /* confdefs.h.  */
20900 _ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h.  */
20904 #include <ext/hash_set>
20905 #ifdef HAVE_NAMESPACES
20906 using namespace std;
20907 #endif
20908 int
20909 main ()
20910 {
20911 hash_set<int> t; return 0;
20912   ;
20913   return 0;
20914 }
20915 _ACEOF
20916 rm -f conftest.$ac_objext
20917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20918   (eval $ac_compile) 2>&5
20919   ac_status=$?
20920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921   (exit $ac_status); } &&
20922          { ac_try='test -s conftest.$ac_objext'
20923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924   (eval $ac_try) 2>&5
20925   ac_status=$?
20926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927   (exit $ac_status); }; }; then
20928   ac_cv_cxx_have_ext_hash_set=std
20929 else
20930   echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.$ac_ext >&5
20932
20933 ac_cv_cxx_have_ext_hash_set=no
20934 fi
20935 rm -f conftest.$ac_objext conftest.$ac_ext
20936   cat >conftest.$ac_ext <<_ACEOF
20937 #line $LINENO "configure"
20938 /* confdefs.h.  */
20939 _ACEOF
20940 cat confdefs.h >>conftest.$ac_ext
20941 cat >>conftest.$ac_ext <<_ACEOF
20942 /* end confdefs.h.  */
20943 #include <ext/hash_set>
20944 #ifdef HAVE_NAMESPACES
20945 using namespace __gnu_cxx;
20946 #endif
20947 int
20948 main ()
20949 {
20950 hash_set<int> t; return 0;
20951   ;
20952   return 0;
20953 }
20954 _ACEOF
20955 rm -f conftest.$ac_objext
20956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20957   (eval $ac_compile) 2>&5
20958   ac_status=$?
20959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960   (exit $ac_status); } &&
20961          { ac_try='test -s conftest.$ac_objext'
20962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20963   (eval $ac_try) 2>&5
20964   ac_status=$?
20965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966   (exit $ac_status); }; }; then
20967   ac_cv_cxx_have_ext_hash_set=gnu
20968 else
20969   echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20971
20972 ac_cv_cxx_have_ext_hash_set=no
20973 fi
20974 rm -f conftest.$ac_objext conftest.$ac_ext
20975   ac_ext=c
20976 ac_cpp='$CPP $CPPFLAGS'
20977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20980
20981
20982 fi
20983 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20984 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20985 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20986
20987 cat >>confdefs.h <<\_ACEOF
20988 #define HAVE_STD_EXT_HASH_SET
20989 _ACEOF
20990
20991 fi
20992 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20993
20994 cat >>confdefs.h <<\_ACEOF
20995 #define HAVE_GNU_EXT_HASH_SET
20996 _ACEOF
20997
20998 fi
20999
21000 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21001 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21002 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21003   echo $ECHO_N "(cached) $ECHO_C" >&6
21004 else
21005
21006
21007
21008   ac_ext=cc
21009 ac_cpp='$CXXCPP $CPPFLAGS'
21010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21013
21014   cat >conftest.$ac_ext <<_ACEOF
21015 #line $LINENO "configure"
21016 /* confdefs.h.  */
21017 _ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h.  */
21021 #include <ext/slist>
21022 #ifdef HAVE_NAMESPACES
21023 using namespace std;
21024 #endif
21025 int
21026 main ()
21027 {
21028 slist<int> s; return 0;
21029   ;
21030   return 0;
21031 }
21032 _ACEOF
21033 rm -f conftest.$ac_objext
21034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21035   (eval $ac_compile) 2>&5
21036   ac_status=$?
21037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038   (exit $ac_status); } &&
21039          { ac_try='test -s conftest.$ac_objext'
21040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041   (eval $ac_try) 2>&5
21042   ac_status=$?
21043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044   (exit $ac_status); }; }; then
21045   ac_cv_cxx_have_ext_slist=std
21046 else
21047   echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21049
21050 ac_cv_cxx_have_ext_slist=no
21051 fi
21052 rm -f conftest.$ac_objext conftest.$ac_ext
21053   cat >conftest.$ac_ext <<_ACEOF
21054 #line $LINENO "configure"
21055 /* confdefs.h.  */
21056 _ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h.  */
21060 #include <ext/slist>
21061 #ifdef HAVE_NAMESPACES
21062 using namespace __gnu_cxx;
21063 #endif
21064 int
21065 main ()
21066 {
21067 slist<int> s; return 0;
21068   ;
21069   return 0;
21070 }
21071 _ACEOF
21072 rm -f conftest.$ac_objext
21073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21074   (eval $ac_compile) 2>&5
21075   ac_status=$?
21076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077   (exit $ac_status); } &&
21078          { ac_try='test -s conftest.$ac_objext'
21079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080   (eval $ac_try) 2>&5
21081   ac_status=$?
21082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083   (exit $ac_status); }; }; then
21084   ac_cv_cxx_have_ext_slist=gnu
21085 else
21086   echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21088
21089 ac_cv_cxx_have_ext_slist=no
21090 fi
21091 rm -f conftest.$ac_objext conftest.$ac_ext
21092
21093   ac_ext=c
21094 ac_cpp='$CPP $CPPFLAGS'
21095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21098
21099
21100 fi
21101 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21102 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21103 if test "$ac_cv_cxx_have_ext_slist" = std; then
21104
21105 cat >>confdefs.h <<\_ACEOF
21106 #define HAVE_EXT_SLIST std
21107 _ACEOF
21108
21109 fi
21110 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21111
21112 cat >>confdefs.h <<\_ACEOF
21113 #define HAVE_EXT_SLIST gnu
21114 _ACEOF
21115
21116 fi
21117
21118 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21119 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21120 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21121   echo $ECHO_N "(cached) $ECHO_C" >&6
21122 else
21123
21124
21125
21126   ac_ext=cc
21127 ac_cpp='$CXXCPP $CPPFLAGS'
21128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21131
21132   cat >conftest.$ac_ext <<_ACEOF
21133 #line $LINENO "configure"
21134 /* confdefs.h.  */
21135 _ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h.  */
21139 #include <iterator>
21140 #ifdef HAVE_NAMESPACES
21141 using namespace std;
21142 #endif
21143 int
21144 main ()
21145 {
21146 iterator<int,int,int> t; return 0;
21147   ;
21148   return 0;
21149 }
21150 _ACEOF
21151 rm -f conftest.$ac_objext
21152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21153   (eval $ac_compile) 2>&5
21154   ac_status=$?
21155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156   (exit $ac_status); } &&
21157          { ac_try='test -s conftest.$ac_objext'
21158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21159   (eval $ac_try) 2>&5
21160   ac_status=$?
21161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162   (exit $ac_status); }; }; then
21163   ac_cv_cxx_have_std_iterator=yes
21164 else
21165   echo "$as_me: failed program was:" >&5
21166 sed 's/^/| /' conftest.$ac_ext >&5
21167
21168 ac_cv_cxx_have_std_iterator=no
21169 fi
21170 rm -f conftest.$ac_objext conftest.$ac_ext
21171   ac_ext=c
21172 ac_cpp='$CPP $CPPFLAGS'
21173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21176
21177
21178 fi
21179 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21180 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21181 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21182
21183 cat >>confdefs.h <<\_ACEOF
21184 #define HAVE_STD_ITERATOR
21185 _ACEOF
21186
21187 fi
21188
21189 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21190 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21191 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21192   echo $ECHO_N "(cached) $ECHO_C" >&6
21193 else
21194
21195
21196
21197   ac_ext=cc
21198 ac_cpp='$CXXCPP $CPPFLAGS'
21199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21202
21203   cat >conftest.$ac_ext <<_ACEOF
21204 #line $LINENO "configure"
21205 /* confdefs.h.  */
21206 _ACEOF
21207 cat confdefs.h >>conftest.$ac_ext
21208 cat >>conftest.$ac_ext <<_ACEOF
21209 /* end confdefs.h.  */
21210 #include <iterator>
21211 #ifdef HAVE_NAMESPACES
21212 using namespace std;
21213 #endif
21214 int
21215 main ()
21216 {
21217 bidirectional_iterator<int,int> t; return 0;
21218   ;
21219   return 0;
21220 }
21221 _ACEOF
21222 rm -f conftest.$ac_objext
21223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21224   (eval $ac_compile) 2>&5
21225   ac_status=$?
21226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227   (exit $ac_status); } &&
21228          { ac_try='test -s conftest.$ac_objext'
21229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21230   (eval $ac_try) 2>&5
21231   ac_status=$?
21232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233   (exit $ac_status); }; }; then
21234   ac_cv_cxx_have_bi_iterator=yes
21235 else
21236   echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21238
21239 ac_cv_cxx_have_bi_iterator=no
21240 fi
21241 rm -f conftest.$ac_objext conftest.$ac_ext
21242   ac_ext=c
21243 ac_cpp='$CPP $CPPFLAGS'
21244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21247
21248
21249 fi
21250 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21251 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21252 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21253
21254 cat >>confdefs.h <<\_ACEOF
21255 #define HAVE_BI_ITERATOR
21256 _ACEOF
21257
21258 fi
21259
21260 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21261 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21262 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21263   echo $ECHO_N "(cached) $ECHO_C" >&6
21264 else
21265
21266
21267
21268   ac_ext=cc
21269 ac_cpp='$CXXCPP $CPPFLAGS'
21270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21273
21274   cat >conftest.$ac_ext <<_ACEOF
21275 #line $LINENO "configure"
21276 /* confdefs.h.  */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h.  */
21281 #include <iterator>
21282 #ifdef HAVE_NAMESPACES
21283 using namespace std;
21284 #endif
21285 int
21286 main ()
21287 {
21288 forward_iterator<int,int> t; return 0;
21289   ;
21290   return 0;
21291 }
21292 _ACEOF
21293 rm -f conftest.$ac_objext
21294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21295   (eval $ac_compile) 2>&5
21296   ac_status=$?
21297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298   (exit $ac_status); } &&
21299          { ac_try='test -s conftest.$ac_objext'
21300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301   (eval $ac_try) 2>&5
21302   ac_status=$?
21303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304   (exit $ac_status); }; }; then
21305   ac_cv_cxx_have_fwd_iterator=yes
21306 else
21307   echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21309
21310 ac_cv_cxx_have_fwd_iterator=no
21311 fi
21312 rm -f conftest.$ac_objext conftest.$ac_ext
21313   ac_ext=c
21314 ac_cpp='$CPP $CPPFLAGS'
21315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21318
21319
21320 fi
21321 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21322 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21323 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21324
21325 cat >>confdefs.h <<\_ACEOF
21326 #define HAVE_FWD_ITERATOR
21327 _ACEOF
21328
21329 fi
21330
21331
21332 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21333 # for constant arguments.  Useless!
21334 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21335 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21336 if test "${ac_cv_working_alloca_h+set}" = set; then
21337   echo $ECHO_N "(cached) $ECHO_C" >&6
21338 else
21339   cat >conftest.$ac_ext <<_ACEOF
21340 #line $LINENO "configure"
21341 /* confdefs.h.  */
21342 _ACEOF
21343 cat confdefs.h >>conftest.$ac_ext
21344 cat >>conftest.$ac_ext <<_ACEOF
21345 /* end confdefs.h.  */
21346 #include <alloca.h>
21347 int
21348 main ()
21349 {
21350 char *p = (char *) alloca (2 * sizeof (int));
21351   ;
21352   return 0;
21353 }
21354 _ACEOF
21355 rm -f conftest.$ac_objext conftest$ac_exeext
21356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21357   (eval $ac_link) 2>&5
21358   ac_status=$?
21359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360   (exit $ac_status); } &&
21361          { ac_try='test -s conftest$ac_exeext'
21362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21363   (eval $ac_try) 2>&5
21364   ac_status=$?
21365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366   (exit $ac_status); }; }; then
21367   ac_cv_working_alloca_h=yes
21368 else
21369   echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21371
21372 ac_cv_working_alloca_h=no
21373 fi
21374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21375 fi
21376 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21377 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21378 if test $ac_cv_working_alloca_h = yes; then
21379
21380 cat >>confdefs.h <<\_ACEOF
21381 #define HAVE_ALLOCA_H 1
21382 _ACEOF
21383
21384 fi
21385
21386 echo "$as_me:$LINENO: checking for alloca" >&5
21387 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21388 if test "${ac_cv_func_alloca_works+set}" = set; then
21389   echo $ECHO_N "(cached) $ECHO_C" >&6
21390 else
21391   cat >conftest.$ac_ext <<_ACEOF
21392 #line $LINENO "configure"
21393 /* confdefs.h.  */
21394 _ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h.  */
21398 #ifdef __GNUC__
21399 # define alloca __builtin_alloca
21400 #else
21401 # ifdef _MSC_VER
21402 #  include <malloc.h>
21403 #  define alloca _alloca
21404 # else
21405 #  if HAVE_ALLOCA_H
21406 #   include <alloca.h>
21407 #  else
21408 #   ifdef _AIX
21409  #pragma alloca
21410 #   else
21411 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21412 char *alloca ();
21413 #    endif
21414 #   endif
21415 #  endif
21416 # endif
21417 #endif
21418
21419 int
21420 main ()
21421 {
21422 char *p = (char *) alloca (1);
21423   ;
21424   return 0;
21425 }
21426 _ACEOF
21427 rm -f conftest.$ac_objext conftest$ac_exeext
21428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21429   (eval $ac_link) 2>&5
21430   ac_status=$?
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); } &&
21433          { ac_try='test -s conftest$ac_exeext'
21434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435   (eval $ac_try) 2>&5
21436   ac_status=$?
21437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438   (exit $ac_status); }; }; then
21439   ac_cv_func_alloca_works=yes
21440 else
21441   echo "$as_me: failed program was:" >&5
21442 sed 's/^/| /' conftest.$ac_ext >&5
21443
21444 ac_cv_func_alloca_works=no
21445 fi
21446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21447 fi
21448 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21449 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21450
21451 if test $ac_cv_func_alloca_works = yes; then
21452
21453 cat >>confdefs.h <<\_ACEOF
21454 #define HAVE_ALLOCA 1
21455 _ACEOF
21456
21457 else
21458   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21459 # that cause trouble.  Some versions do not even contain alloca or
21460 # contain a buggy version.  If you still want to use their alloca,
21461 # use ar to extract alloca.o from them instead of compiling alloca.c.
21462
21463 ALLOCA=alloca.$ac_objext
21464
21465 cat >>confdefs.h <<\_ACEOF
21466 #define C_ALLOCA 1
21467 _ACEOF
21468
21469
21470 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21471 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21472 if test "${ac_cv_os_cray+set}" = set; then
21473   echo $ECHO_N "(cached) $ECHO_C" >&6
21474 else
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 #if defined(CRAY) && ! defined(CRAY2)
21483 webecray
21484 #else
21485 wenotbecray
21486 #endif
21487
21488 _ACEOF
21489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21490   $EGREP "webecray" >/dev/null 2>&1; then
21491   ac_cv_os_cray=yes
21492 else
21493   ac_cv_os_cray=no
21494 fi
21495 rm -f conftest*
21496
21497 fi
21498 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21499 echo "${ECHO_T}$ac_cv_os_cray" >&6
21500 if test $ac_cv_os_cray = yes; then
21501   for ac_func in _getb67 GETB67 getb67; do
21502     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21503 echo "$as_me:$LINENO: checking for $ac_func" >&5
21504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21505 if eval "test \"\${$as_ac_var+set}\" = set"; then
21506   echo $ECHO_N "(cached) $ECHO_C" >&6
21507 else
21508   cat >conftest.$ac_ext <<_ACEOF
21509 #line $LINENO "configure"
21510 /* confdefs.h.  */
21511 _ACEOF
21512 cat confdefs.h >>conftest.$ac_ext
21513 cat >>conftest.$ac_ext <<_ACEOF
21514 /* end confdefs.h.  */
21515 /* System header to define __stub macros and hopefully few prototypes,
21516     which can conflict with char $ac_func (); below.
21517     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21518     <limits.h> exists even on freestanding compilers.  */
21519 #ifdef __STDC__
21520 # include <limits.h>
21521 #else
21522 # include <assert.h>
21523 #endif
21524 /* Override any gcc2 internal prototype to avoid an error.  */
21525 #ifdef __cplusplus
21526 extern "C"
21527 {
21528 #endif
21529 /* We use char because int might match the return type of a gcc2
21530    builtin and then its argument prototype would still apply.  */
21531 char $ac_func ();
21532 /* The GNU C library defines this for functions which it implements
21533     to always fail with ENOSYS.  Some functions are actually named
21534     something starting with __ and the normal name is an alias.  */
21535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21536 choke me
21537 #else
21538 char (*f) () = $ac_func;
21539 #endif
21540 #ifdef __cplusplus
21541 }
21542 #endif
21543
21544 int
21545 main ()
21546 {
21547 return f != $ac_func;
21548   ;
21549   return 0;
21550 }
21551 _ACEOF
21552 rm -f conftest.$ac_objext conftest$ac_exeext
21553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21554   (eval $ac_link) 2>&5
21555   ac_status=$?
21556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557   (exit $ac_status); } &&
21558          { ac_try='test -s conftest$ac_exeext'
21559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560   (eval $ac_try) 2>&5
21561   ac_status=$?
21562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563   (exit $ac_status); }; }; then
21564   eval "$as_ac_var=yes"
21565 else
21566   echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21568
21569 eval "$as_ac_var=no"
21570 fi
21571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21572 fi
21573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21575 if test `eval echo '${'$as_ac_var'}'` = yes; then
21576
21577 cat >>confdefs.h <<_ACEOF
21578 #define CRAY_STACKSEG_END $ac_func
21579 _ACEOF
21580
21581     break
21582 fi
21583
21584   done
21585 fi
21586
21587 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21588 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21589 if test "${ac_cv_c_stack_direction+set}" = set; then
21590   echo $ECHO_N "(cached) $ECHO_C" >&6
21591 else
21592   if test "$cross_compiling" = yes; then
21593   ac_cv_c_stack_direction=0
21594 else
21595   cat >conftest.$ac_ext <<_ACEOF
21596 #line $LINENO "configure"
21597 /* confdefs.h.  */
21598 _ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h.  */
21602 int
21603 find_stack_direction ()
21604 {
21605   static char *addr = 0;
21606   auto char dummy;
21607   if (addr == 0)
21608     {
21609       addr = &dummy;
21610       return find_stack_direction ();
21611     }
21612   else
21613     return (&dummy > addr) ? 1 : -1;
21614 }
21615
21616 int
21617 main ()
21618 {
21619   exit (find_stack_direction () < 0);
21620 }
21621 _ACEOF
21622 rm -f conftest$ac_exeext
21623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21624   (eval $ac_link) 2>&5
21625   ac_status=$?
21626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629   (eval $ac_try) 2>&5
21630   ac_status=$?
21631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632   (exit $ac_status); }; }; then
21633   ac_cv_c_stack_direction=1
21634 else
21635   echo "$as_me: program exited with status $ac_status" >&5
21636 echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21638
21639 ( exit $ac_status )
21640 ac_cv_c_stack_direction=-1
21641 fi
21642 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21643 fi
21644 fi
21645 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21646 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21647
21648 cat >>confdefs.h <<_ACEOF
21649 #define STACK_DIRECTION $ac_cv_c_stack_direction
21650 _ACEOF
21651
21652
21653 fi
21654
21655 if test $ac_cv_c_compiler_gnu = yes; then
21656     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21657 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21658 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21659   echo $ECHO_N "(cached) $ECHO_C" >&6
21660 else
21661     ac_pattern="Autoconf.*'x'"
21662   cat >conftest.$ac_ext <<_ACEOF
21663 #line $LINENO "configure"
21664 /* confdefs.h.  */
21665 _ACEOF
21666 cat confdefs.h >>conftest.$ac_ext
21667 cat >>conftest.$ac_ext <<_ACEOF
21668 /* end confdefs.h.  */
21669 #include <sgtty.h>
21670 Autoconf TIOCGETP
21671 _ACEOF
21672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21673   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21674   ac_cv_prog_gcc_traditional=yes
21675 else
21676   ac_cv_prog_gcc_traditional=no
21677 fi
21678 rm -f conftest*
21679
21680
21681   if test $ac_cv_prog_gcc_traditional = no; then
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 <termio.h>
21690 Autoconf TCGETA
21691 _ACEOF
21692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21693   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21694   ac_cv_prog_gcc_traditional=yes
21695 fi
21696 rm -f conftest*
21697
21698   fi
21699 fi
21700 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21701 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21702   if test $ac_cv_prog_gcc_traditional = yes; then
21703     CC="$CC -traditional"
21704   fi
21705 fi
21706
21707 echo "$as_me:$LINENO: checking for working memcmp" >&5
21708 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21709 if test "${ac_cv_func_memcmp_working+set}" = set; then
21710   echo $ECHO_N "(cached) $ECHO_C" >&6
21711 else
21712   if test "$cross_compiling" = yes; then
21713   ac_cv_func_memcmp_working=no
21714 else
21715   cat >conftest.$ac_ext <<_ACEOF
21716 #line $LINENO "configure"
21717 /* confdefs.h.  */
21718 _ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h.  */
21722
21723 int
21724 main ()
21725 {
21726
21727   /* Some versions of memcmp are not 8-bit clean.  */
21728   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21729   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21730     exit (1);
21731
21732   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21733      or more and with at least one buffer not starting on a 4-byte boundary.
21734      William Lewis provided this test program.   */
21735   {
21736     char foo[21];
21737     char bar[21];
21738     int i;
21739     for (i = 0; i < 4; i++)
21740       {
21741         char *a = foo + i;
21742         char *b = bar + i;
21743         strcpy (a, "--------01111111");
21744         strcpy (b, "--------10000000");
21745         if (memcmp (a, b, 16) >= 0)
21746           exit (1);
21747       }
21748     exit (0);
21749   }
21750
21751   ;
21752   return 0;
21753 }
21754 _ACEOF
21755 rm -f conftest$ac_exeext
21756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21757   (eval $ac_link) 2>&5
21758   ac_status=$?
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21762   (eval $ac_try) 2>&5
21763   ac_status=$?
21764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765   (exit $ac_status); }; }; then
21766   ac_cv_func_memcmp_working=yes
21767 else
21768   echo "$as_me: program exited with status $ac_status" >&5
21769 echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21771
21772 ( exit $ac_status )
21773 ac_cv_func_memcmp_working=no
21774 fi
21775 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21776 fi
21777 fi
21778 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21779 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21780 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21781
21782
21783
21784 for ac_header in stdlib.h unistd.h
21785 do
21786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21788   echo "$as_me:$LINENO: checking for $ac_header" >&5
21789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21791   echo $ECHO_N "(cached) $ECHO_C" >&6
21792 fi
21793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21795 else
21796   # Is the header compilable?
21797 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21799 cat >conftest.$ac_ext <<_ACEOF
21800 #line $LINENO "configure"
21801 /* confdefs.h.  */
21802 _ACEOF
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h.  */
21806 $ac_includes_default
21807 #include <$ac_header>
21808 _ACEOF
21809 rm -f conftest.$ac_objext
21810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21811   (eval $ac_compile) 2>&5
21812   ac_status=$?
21813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814   (exit $ac_status); } &&
21815          { ac_try='test -s conftest.$ac_objext'
21816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817   (eval $ac_try) 2>&5
21818   ac_status=$?
21819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820   (exit $ac_status); }; }; then
21821   ac_header_compiler=yes
21822 else
21823   echo "$as_me: failed program was:" >&5
21824 sed 's/^/| /' conftest.$ac_ext >&5
21825
21826 ac_header_compiler=no
21827 fi
21828 rm -f conftest.$ac_objext conftest.$ac_ext
21829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21830 echo "${ECHO_T}$ac_header_compiler" >&6
21831
21832 # Is the header present?
21833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21835 cat >conftest.$ac_ext <<_ACEOF
21836 #line $LINENO "configure"
21837 /* confdefs.h.  */
21838 _ACEOF
21839 cat confdefs.h >>conftest.$ac_ext
21840 cat >>conftest.$ac_ext <<_ACEOF
21841 /* end confdefs.h.  */
21842 #include <$ac_header>
21843 _ACEOF
21844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21845   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21846   ac_status=$?
21847   grep -v '^ *+' conftest.er1 >conftest.err
21848   rm -f conftest.er1
21849   cat conftest.err >&5
21850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851   (exit $ac_status); } >/dev/null; then
21852   if test -s conftest.err; then
21853     ac_cpp_err=$ac_c_preproc_warn_flag
21854   else
21855     ac_cpp_err=
21856   fi
21857 else
21858   ac_cpp_err=yes
21859 fi
21860 if test -z "$ac_cpp_err"; then
21861   ac_header_preproc=yes
21862 else
21863   echo "$as_me: failed program was:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21865
21866   ac_header_preproc=no
21867 fi
21868 rm -f conftest.err conftest.$ac_ext
21869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21870 echo "${ECHO_T}$ac_header_preproc" >&6
21871
21872 # So?  What about this header?
21873 case $ac_header_compiler:$ac_header_preproc in
21874   yes:no )
21875     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21879     (
21880       cat <<\_ASBOX
21881 ## ------------------------------------ ##
21882 ## Report this to bug-autoconf@gnu.org. ##
21883 ## ------------------------------------ ##
21884 _ASBOX
21885     ) |
21886       sed "s/^/$as_me: WARNING:     /" >&2
21887     ;;
21888   no:yes )
21889     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21891     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21895     (
21896       cat <<\_ASBOX
21897 ## ------------------------------------ ##
21898 ## Report this to bug-autoconf@gnu.org. ##
21899 ## ------------------------------------ ##
21900 _ASBOX
21901     ) |
21902       sed "s/^/$as_me: WARNING:     /" >&2
21903     ;;
21904 esac
21905 echo "$as_me:$LINENO: checking for $ac_header" >&5
21906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21908   echo $ECHO_N "(cached) $ECHO_C" >&6
21909 else
21910   eval "$as_ac_Header=$ac_header_preproc"
21911 fi
21912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21914
21915 fi
21916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21917   cat >>confdefs.h <<_ACEOF
21918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21919 _ACEOF
21920
21921 fi
21922
21923 done
21924
21925
21926 for ac_func in getpagesize
21927 do
21928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21929 echo "$as_me:$LINENO: checking for $ac_func" >&5
21930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21931 if eval "test \"\${$as_ac_var+set}\" = set"; then
21932   echo $ECHO_N "(cached) $ECHO_C" >&6
21933 else
21934   cat >conftest.$ac_ext <<_ACEOF
21935 #line $LINENO "configure"
21936 /* confdefs.h.  */
21937 _ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h.  */
21941 /* System header to define __stub macros and hopefully few prototypes,
21942     which can conflict with char $ac_func (); below.
21943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21944     <limits.h> exists even on freestanding compilers.  */
21945 #ifdef __STDC__
21946 # include <limits.h>
21947 #else
21948 # include <assert.h>
21949 #endif
21950 /* Override any gcc2 internal prototype to avoid an error.  */
21951 #ifdef __cplusplus
21952 extern "C"
21953 {
21954 #endif
21955 /* We use char because int might match the return type of a gcc2
21956    builtin and then its argument prototype would still apply.  */
21957 char $ac_func ();
21958 /* The GNU C library defines this for functions which it implements
21959     to always fail with ENOSYS.  Some functions are actually named
21960     something starting with __ and the normal name is an alias.  */
21961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21962 choke me
21963 #else
21964 char (*f) () = $ac_func;
21965 #endif
21966 #ifdef __cplusplus
21967 }
21968 #endif
21969
21970 int
21971 main ()
21972 {
21973 return f != $ac_func;
21974   ;
21975   return 0;
21976 }
21977 _ACEOF
21978 rm -f conftest.$ac_objext conftest$ac_exeext
21979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21980   (eval $ac_link) 2>&5
21981   ac_status=$?
21982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983   (exit $ac_status); } &&
21984          { ac_try='test -s conftest$ac_exeext'
21985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21986   (eval $ac_try) 2>&5
21987   ac_status=$?
21988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989   (exit $ac_status); }; }; then
21990   eval "$as_ac_var=yes"
21991 else
21992   echo "$as_me: failed program was:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21994
21995 eval "$as_ac_var=no"
21996 fi
21997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21998 fi
21999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22001 if test `eval echo '${'$as_ac_var'}'` = yes; then
22002   cat >>confdefs.h <<_ACEOF
22003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22004 _ACEOF
22005
22006 fi
22007 done
22008
22009 echo "$as_me:$LINENO: checking for working mmap" >&5
22010 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22011 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22012   echo $ECHO_N "(cached) $ECHO_C" >&6
22013 else
22014   if test "$cross_compiling" = yes; then
22015   ac_cv_func_mmap_fixed_mapped=no
22016 else
22017   cat >conftest.$ac_ext <<_ACEOF
22018 #line $LINENO "configure"
22019 /* confdefs.h.  */
22020 _ACEOF
22021 cat confdefs.h >>conftest.$ac_ext
22022 cat >>conftest.$ac_ext <<_ACEOF
22023 /* end confdefs.h.  */
22024 $ac_includes_default
22025 /* malloc might have been renamed as rpl_malloc. */
22026 #undef malloc
22027
22028 /* Thanks to Mike Haertel and Jim Avera for this test.
22029    Here is a matrix of mmap possibilities:
22030         mmap private not fixed
22031         mmap private fixed at somewhere currently unmapped
22032         mmap private fixed at somewhere already mapped
22033         mmap shared not fixed
22034         mmap shared fixed at somewhere currently unmapped
22035         mmap shared fixed at somewhere already mapped
22036    For private mappings, we should verify that changes cannot be read()
22037    back from the file, nor mmap's back from the file at a different
22038    address.  (There have been systems where private was not correctly
22039    implemented like the infamous i386 svr4.0, and systems where the
22040    VM page cache was not coherent with the file system buffer cache
22041    like early versions of FreeBSD and possibly contemporary NetBSD.)
22042    For shared mappings, we should conversely verify that changes get
22043    propagated back to all the places they're supposed to be.
22044
22045    Grep wants private fixed already mapped.
22046    The main things grep needs to know about mmap are:
22047    * does it exist and is it safe to write into the mmap'd area
22048    * how to use it (BSD variants)  */
22049
22050 #include <fcntl.h>
22051 #include <sys/mman.h>
22052
22053 #if !STDC_HEADERS && !HAVE_STDLIB_H
22054 char *malloc ();
22055 #endif
22056
22057 /* This mess was copied from the GNU getpagesize.h.  */
22058 #if !HAVE_GETPAGESIZE
22059 /* Assume that all systems that can run configure have sys/param.h.  */
22060 # if !HAVE_SYS_PARAM_H
22061 #  define HAVE_SYS_PARAM_H 1
22062 # endif
22063
22064 # ifdef _SC_PAGESIZE
22065 #  define getpagesize() sysconf(_SC_PAGESIZE)
22066 # else /* no _SC_PAGESIZE */
22067 #  if HAVE_SYS_PARAM_H
22068 #   include <sys/param.h>
22069 #   ifdef EXEC_PAGESIZE
22070 #    define getpagesize() EXEC_PAGESIZE
22071 #   else /* no EXEC_PAGESIZE */
22072 #    ifdef NBPG
22073 #     define getpagesize() NBPG * CLSIZE
22074 #     ifndef CLSIZE
22075 #      define CLSIZE 1
22076 #     endif /* no CLSIZE */
22077 #    else /* no NBPG */
22078 #     ifdef NBPC
22079 #      define getpagesize() NBPC
22080 #     else /* no NBPC */
22081 #      ifdef PAGESIZE
22082 #       define getpagesize() PAGESIZE
22083 #      endif /* PAGESIZE */
22084 #     endif /* no NBPC */
22085 #    endif /* no NBPG */
22086 #   endif /* no EXEC_PAGESIZE */
22087 #  else /* no HAVE_SYS_PARAM_H */
22088 #   define getpagesize() 8192   /* punt totally */
22089 #  endif /* no HAVE_SYS_PARAM_H */
22090 # endif /* no _SC_PAGESIZE */
22091
22092 #endif /* no HAVE_GETPAGESIZE */
22093
22094 int
22095 main ()
22096 {
22097   char *data, *data2, *data3;
22098   int i, pagesize;
22099   int fd;
22100
22101   pagesize = getpagesize ();
22102
22103   /* First, make a file with some known garbage in it. */
22104   data = (char *) malloc (pagesize);
22105   if (!data)
22106     exit (1);
22107   for (i = 0; i < pagesize; ++i)
22108     *(data + i) = rand ();
22109   umask (0);
22110   fd = creat ("conftest.mmap", 0600);
22111   if (fd < 0)
22112     exit (1);
22113   if (write (fd, data, pagesize) != pagesize)
22114     exit (1);
22115   close (fd);
22116
22117   /* Next, try to mmap the file at a fixed address which already has
22118      something else allocated at it.  If we can, also make sure that
22119      we see the same garbage.  */
22120   fd = open ("conftest.mmap", O_RDWR);
22121   if (fd < 0)
22122     exit (1);
22123   data2 = (char *) malloc (2 * pagesize);
22124   if (!data2)
22125     exit (1);
22126   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22127   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22128                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22129     exit (1);
22130   for (i = 0; i < pagesize; ++i)
22131     if (*(data + i) != *(data2 + i))
22132       exit (1);
22133
22134   /* Finally, make sure that changes to the mapped area do not
22135      percolate back to the file as seen by read().  (This is a bug on
22136      some variants of i386 svr4.0.)  */
22137   for (i = 0; i < pagesize; ++i)
22138     *(data2 + i) = *(data2 + i) + 1;
22139   data3 = (char *) malloc (pagesize);
22140   if (!data3)
22141     exit (1);
22142   if (read (fd, data3, pagesize) != pagesize)
22143     exit (1);
22144   for (i = 0; i < pagesize; ++i)
22145     if (*(data + i) != *(data3 + i))
22146       exit (1);
22147   close (fd);
22148   exit (0);
22149 }
22150 _ACEOF
22151 rm -f conftest$ac_exeext
22152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22153   (eval $ac_link) 2>&5
22154   ac_status=$?
22155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22158   (eval $ac_try) 2>&5
22159   ac_status=$?
22160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161   (exit $ac_status); }; }; then
22162   ac_cv_func_mmap_fixed_mapped=yes
22163 else
22164   echo "$as_me: program exited with status $ac_status" >&5
22165 echo "$as_me: failed program was:" >&5
22166 sed 's/^/| /' conftest.$ac_ext >&5
22167
22168 ( exit $ac_status )
22169 ac_cv_func_mmap_fixed_mapped=no
22170 fi
22171 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22172 fi
22173 fi
22174 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22175 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22176 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22177
22178 cat >>confdefs.h <<\_ACEOF
22179 #define HAVE_MMAP 1
22180 _ACEOF
22181
22182 fi
22183 rm -f conftest.mmap
22184
22185 echo "$as_me:$LINENO: checking for mmap of files" >&5
22186 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22187 if test "${ac_cv_func_mmap_file+set}" = set; then
22188   echo $ECHO_N "(cached) $ECHO_C" >&6
22189 else
22190
22191
22192   ac_ext=c
22193 ac_cpp='$CPP $CPPFLAGS'
22194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22197
22198   if test "$cross_compiling" = yes; then
22199   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22200 See \`config.log' for more details." >&5
22201 echo "$as_me: error: cannot run test program while cross compiling
22202 See \`config.log' for more details." >&2;}
22203    { (exit 1); exit 1; }; }
22204 else
22205   cat >conftest.$ac_ext <<_ACEOF
22206 #line $LINENO "configure"
22207 /* confdefs.h.  */
22208 _ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h.  */
22212
22213 #ifdef HAVE_SYS_TYPES_H
22214 #include <sys/types.h>
22215 #endif
22216
22217 #ifdef HAVE_SYS_MMAN_H
22218 #include <sys/mman.h>
22219 #endif
22220
22221 #ifdef HAVE_FCNTL_H
22222 #include <fcntl.h>
22223 #endif
22224
22225   int fd;
22226   int main () {
22227   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22228 _ACEOF
22229 rm -f conftest$ac_exeext
22230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22231   (eval $ac_link) 2>&5
22232   ac_status=$?
22233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22236   (eval $ac_try) 2>&5
22237   ac_status=$?
22238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239   (exit $ac_status); }; }; then
22240   ac_cv_func_mmap_file=yes
22241 else
22242   echo "$as_me: program exited with status $ac_status" >&5
22243 echo "$as_me: failed program was:" >&5
22244 sed 's/^/| /' conftest.$ac_ext >&5
22245
22246 ( exit $ac_status )
22247 ac_cv_func_mmap_file=no
22248 fi
22249 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22250 fi
22251   ac_ext=c
22252 ac_cpp='$CPP $CPPFLAGS'
22253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22256
22257
22258 fi
22259 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22260 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22261 if test "$ac_cv_func_mmap_file" = yes; then
22262
22263 cat >>confdefs.h <<\_ACEOF
22264 #define HAVE_MMAP_FILE
22265 _ACEOF
22266
22267    MMAP_FILE=yes
22268
22269 fi
22270
22271 if test ${ac_cv_func_mmap_file} = "no"
22272 then
22273         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22274 echo "$as_me: error: mmap() of files required but not found" >&2;}
22275    { (exit 1); exit 1; }; }
22276 fi
22277 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22278 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22279 if test "${ac_cv_header_mmap_anon+set}" = set; then
22280   echo $ECHO_N "(cached) $ECHO_C" >&6
22281 else
22282
22283
22284   ac_ext=c
22285 ac_cpp='$CPP $CPPFLAGS'
22286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22289
22290   cat >conftest.$ac_ext <<_ACEOF
22291 #line $LINENO "configure"
22292 /* confdefs.h.  */
22293 _ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h.  */
22297 #include <sys/mman.h>
22298   #include <unistd.h>
22299   #include <fcntl.h>
22300 int
22301 main ()
22302 {
22303 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22304   ;
22305   return 0;
22306 }
22307 _ACEOF
22308 rm -f conftest.$ac_objext
22309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22310   (eval $ac_compile) 2>&5
22311   ac_status=$?
22312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313   (exit $ac_status); } &&
22314          { ac_try='test -s conftest.$ac_objext'
22315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22316   (eval $ac_try) 2>&5
22317   ac_status=$?
22318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319   (exit $ac_status); }; }; then
22320   ac_cv_header_mmap_anon=yes
22321 else
22322   echo "$as_me: failed program was:" >&5
22323 sed 's/^/| /' conftest.$ac_ext >&5
22324
22325 ac_cv_header_mmap_anon=no
22326 fi
22327 rm -f conftest.$ac_objext conftest.$ac_ext
22328   ac_ext=c
22329 ac_cpp='$CPP $CPPFLAGS'
22330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22333
22334
22335 fi
22336 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22337 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22338 if test "$ac_cv_header_mmap_anon" = yes; then
22339
22340 cat >>confdefs.h <<\_ACEOF
22341 #define HAVE_MMAP_ANONYMOUS
22342 _ACEOF
22343
22344 fi
22345
22346 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22347 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22348 if test "${ac_cv_type_signal+set}" = set; then
22349   echo $ECHO_N "(cached) $ECHO_C" >&6
22350 else
22351   cat >conftest.$ac_ext <<_ACEOF
22352 #line $LINENO "configure"
22353 /* confdefs.h.  */
22354 _ACEOF
22355 cat confdefs.h >>conftest.$ac_ext
22356 cat >>conftest.$ac_ext <<_ACEOF
22357 /* end confdefs.h.  */
22358 #include <sys/types.h>
22359 #include <signal.h>
22360 #ifdef signal
22361 # undef signal
22362 #endif
22363 #ifdef __cplusplus
22364 extern "C" void (*signal (int, void (*)(int)))(int);
22365 #else
22366 void (*signal ()) ();
22367 #endif
22368
22369 int
22370 main ()
22371 {
22372 int i;
22373   ;
22374   return 0;
22375 }
22376 _ACEOF
22377 rm -f conftest.$ac_objext
22378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22379   (eval $ac_compile) 2>&5
22380   ac_status=$?
22381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382   (exit $ac_status); } &&
22383          { ac_try='test -s conftest.$ac_objext'
22384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22385   (eval $ac_try) 2>&5
22386   ac_status=$?
22387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388   (exit $ac_status); }; }; then
22389   ac_cv_type_signal=void
22390 else
22391   echo "$as_me: failed program was:" >&5
22392 sed 's/^/| /' conftest.$ac_ext >&5
22393
22394 ac_cv_type_signal=int
22395 fi
22396 rm -f conftest.$ac_objext conftest.$ac_ext
22397 fi
22398 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22399 echo "${ECHO_T}$ac_cv_type_signal" >&6
22400
22401 cat >>confdefs.h <<_ACEOF
22402 #define RETSIGTYPE $ac_cv_type_signal
22403 _ACEOF
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll strsignal
22419 do
22420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22421 echo "$as_me:$LINENO: checking for $ac_func" >&5
22422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22423 if eval "test \"\${$as_ac_var+set}\" = set"; then
22424   echo $ECHO_N "(cached) $ECHO_C" >&6
22425 else
22426   cat >conftest.$ac_ext <<_ACEOF
22427 #line $LINENO "configure"
22428 /* confdefs.h.  */
22429 _ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h.  */
22433 /* System header to define __stub macros and hopefully few prototypes,
22434     which can conflict with char $ac_func (); below.
22435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22436     <limits.h> exists even on freestanding compilers.  */
22437 #ifdef __STDC__
22438 # include <limits.h>
22439 #else
22440 # include <assert.h>
22441 #endif
22442 /* Override any gcc2 internal prototype to avoid an error.  */
22443 #ifdef __cplusplus
22444 extern "C"
22445 {
22446 #endif
22447 /* We use char because int might match the return type of a gcc2
22448    builtin and then its argument prototype would still apply.  */
22449 char $ac_func ();
22450 /* The GNU C library defines this for functions which it implements
22451     to always fail with ENOSYS.  Some functions are actually named
22452     something starting with __ and the normal name is an alias.  */
22453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22454 choke me
22455 #else
22456 char (*f) () = $ac_func;
22457 #endif
22458 #ifdef __cplusplus
22459 }
22460 #endif
22461
22462 int
22463 main ()
22464 {
22465 return f != $ac_func;
22466   ;
22467   return 0;
22468 }
22469 _ACEOF
22470 rm -f conftest.$ac_objext conftest$ac_exeext
22471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22472   (eval $ac_link) 2>&5
22473   ac_status=$?
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); } &&
22476          { ac_try='test -s conftest$ac_exeext'
22477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478   (eval $ac_try) 2>&5
22479   ac_status=$?
22480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481   (exit $ac_status); }; }; then
22482   eval "$as_ac_var=yes"
22483 else
22484   echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22486
22487 eval "$as_ac_var=no"
22488 fi
22489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22490 fi
22491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22493 if test `eval echo '${'$as_ac_var'}'` = yes; then
22494   cat >>confdefs.h <<_ACEOF
22495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22496 _ACEOF
22497
22498 fi
22499 done
22500
22501 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
22502 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
22503 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
22504   echo $ECHO_N "(cached) $ECHO_C" >&6
22505 else
22506   cat >conftest.$ac_ext <<_ACEOF
22507 #line $LINENO "configure"
22508 /* confdefs.h.  */
22509 _ACEOF
22510 cat confdefs.h >>conftest.$ac_ext
22511 cat >>conftest.$ac_ext <<_ACEOF
22512 /* end confdefs.h.  */
22513
22514 #if HAVE_SIGNAL_H
22515 #include <signal.h>
22516 #endif
22517
22518 int
22519 main ()
22520 {
22521 #ifndef sys_siglist
22522   char *p = (char *) sys_siglist;
22523 #endif
22524
22525   ;
22526   return 0;
22527 }
22528 _ACEOF
22529 rm -f conftest.$ac_objext
22530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22531   (eval $ac_compile) 2>&5
22532   ac_status=$?
22533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534   (exit $ac_status); } &&
22535          { ac_try='test -s conftest.$ac_objext'
22536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22537   (eval $ac_try) 2>&5
22538   ac_status=$?
22539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540   (exit $ac_status); }; }; then
22541   ac_cv_have_decl_sys_siglist=yes
22542 else
22543   echo "$as_me: failed program was:" >&5
22544 sed 's/^/| /' conftest.$ac_ext >&5
22545
22546 ac_cv_have_decl_sys_siglist=no
22547 fi
22548 rm -f conftest.$ac_objext conftest.$ac_ext
22549 fi
22550 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
22551 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
22552 if test $ac_cv_have_decl_sys_siglist = yes; then
22553
22554 cat >>confdefs.h <<_ACEOF
22555 #define HAVE_DECL_SYS_SIGLIST 1
22556 _ACEOF
22557
22558
22559 else
22560   cat >>confdefs.h <<_ACEOF
22561 #define HAVE_DECL_SYS_SIGLIST 0
22562 _ACEOF
22563
22564
22565 fi
22566
22567
22568
22569
22570 echo "$as_me:$LINENO: checking for mmap" >&5
22571 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22572 if test "${ac_cv_func_mmap+set}" = set; then
22573   echo $ECHO_N "(cached) $ECHO_C" >&6
22574 else
22575   cat >conftest.$ac_ext <<_ACEOF
22576 #line $LINENO "configure"
22577 /* confdefs.h.  */
22578 _ACEOF
22579 cat confdefs.h >>conftest.$ac_ext
22580 cat >>conftest.$ac_ext <<_ACEOF
22581 /* end confdefs.h.  */
22582 /* System header to define __stub macros and hopefully few prototypes,
22583     which can conflict with char mmap (); below.
22584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22585     <limits.h> exists even on freestanding compilers.  */
22586 #ifdef __STDC__
22587 # include <limits.h>
22588 #else
22589 # include <assert.h>
22590 #endif
22591 /* Override any gcc2 internal prototype to avoid an error.  */
22592 #ifdef __cplusplus
22593 extern "C"
22594 {
22595 #endif
22596 /* We use char because int might match the return type of a gcc2
22597    builtin and then its argument prototype would still apply.  */
22598 char mmap ();
22599 /* The GNU C library defines this for functions which it implements
22600     to always fail with ENOSYS.  Some functions are actually named
22601     something starting with __ and the normal name is an alias.  */
22602 #if defined (__stub_mmap) || defined (__stub___mmap)
22603 choke me
22604 #else
22605 char (*f) () = mmap;
22606 #endif
22607 #ifdef __cplusplus
22608 }
22609 #endif
22610
22611 int
22612 main ()
22613 {
22614 return f != mmap;
22615   ;
22616   return 0;
22617 }
22618 _ACEOF
22619 rm -f conftest.$ac_objext conftest$ac_exeext
22620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22621   (eval $ac_link) 2>&5
22622   ac_status=$?
22623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624   (exit $ac_status); } &&
22625          { ac_try='test -s conftest$ac_exeext'
22626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22627   (eval $ac_try) 2>&5
22628   ac_status=$?
22629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630   (exit $ac_status); }; }; then
22631   ac_cv_func_mmap=yes
22632 else
22633   echo "$as_me: failed program was:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22635
22636 ac_cv_func_mmap=no
22637 fi
22638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22639 fi
22640 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22641 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22642 if test $ac_cv_func_mmap = yes; then
22643   :
22644 else
22645   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22646 echo "$as_me: error: Function mmap() required but not found" >&2;}
22647    { (exit 1); exit 1; }; }
22648 fi
22649
22650 echo "$as_me:$LINENO: checking for mprotect" >&5
22651 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22652 if test "${ac_cv_func_mprotect+set}" = set; then
22653   echo $ECHO_N "(cached) $ECHO_C" >&6
22654 else
22655   cat >conftest.$ac_ext <<_ACEOF
22656 #line $LINENO "configure"
22657 /* confdefs.h.  */
22658 _ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h.  */
22662 /* System header to define __stub macros and hopefully few prototypes,
22663     which can conflict with char mprotect (); below.
22664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22665     <limits.h> exists even on freestanding compilers.  */
22666 #ifdef __STDC__
22667 # include <limits.h>
22668 #else
22669 # include <assert.h>
22670 #endif
22671 /* Override any gcc2 internal prototype to avoid an error.  */
22672 #ifdef __cplusplus
22673 extern "C"
22674 {
22675 #endif
22676 /* We use char because int might match the return type of a gcc2
22677    builtin and then its argument prototype would still apply.  */
22678 char mprotect ();
22679 /* The GNU C library defines this for functions which it implements
22680     to always fail with ENOSYS.  Some functions are actually named
22681     something starting with __ and the normal name is an alias.  */
22682 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22683 choke me
22684 #else
22685 char (*f) () = mprotect;
22686 #endif
22687 #ifdef __cplusplus
22688 }
22689 #endif
22690
22691 int
22692 main ()
22693 {
22694 return f != mprotect;
22695   ;
22696   return 0;
22697 }
22698 _ACEOF
22699 rm -f conftest.$ac_objext conftest$ac_exeext
22700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22701   (eval $ac_link) 2>&5
22702   ac_status=$?
22703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704   (exit $ac_status); } &&
22705          { ac_try='test -s conftest$ac_exeext'
22706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22707   (eval $ac_try) 2>&5
22708   ac_status=$?
22709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710   (exit $ac_status); }; }; then
22711   ac_cv_func_mprotect=yes
22712 else
22713   echo "$as_me: failed program was:" >&5
22714 sed 's/^/| /' conftest.$ac_ext >&5
22715
22716 ac_cv_func_mprotect=no
22717 fi
22718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22719 fi
22720 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22721 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22722 if test $ac_cv_func_mprotect = yes; then
22723   :
22724 else
22725   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22726 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22727    { (exit 1); exit 1; }; }
22728 fi
22729
22730
22731
22732 # Check whether --enable-purify or --disable-purify was given.
22733 if test "${enable_purify+set}" = set; then
22734   enableval="$enable_purify"
22735
22736 else
22737   enableval="no"
22738 fi;
22739 if test ${enableval} = "no"
22740 then
22741         ENABLE_PURIFY=
22742
22743 else
22744         ENABLE_PURIFY=ENABLE_PURIFY=1
22745
22746 fi
22747
22748 # Check whether --enable-optimized or --disable-optimized was given.
22749 if test "${enable_optimized+set}" = set; then
22750   enableval="$enable_optimized"
22751
22752 else
22753   enableval=no
22754 fi;
22755 if test ${enableval} = "no"
22756 then
22757         ENABLE_OPTIMIZED=
22758
22759 else
22760         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22761
22762 fi
22763
22764 # Check whether --enable-spec2000 or --disable-spec2000 was given.
22765 if test "${enable_spec2000+set}" = set; then
22766   enableval="$enable_spec2000"
22767
22768 else
22769   enableval=no
22770 fi;
22771 if test ${enableval} = "no"
22772 then
22773         if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22774         then
22775                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22776
22777                 USE_SPEC=USE_SPEC=1
22778
22779         else
22780                 USE_SPEC=
22781
22782
22783         fi
22784 else
22785         if test ${enableval} = ""
22786         then
22787                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22788
22789         else
22790                 SPEC_ROOT=${enableval}
22791
22792         fi
22793         USE_SPEC=USE_SPEC=1
22794
22795 fi
22796
22797 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22798 if test "${enable_precompiled_bytecode+set}" = set; then
22799   enableval="$enable_precompiled_bytecode"
22800
22801 else
22802   enableval=no
22803 fi;
22804 if test ${enableval} = "no"
22805 then
22806         UPB=
22807
22808 else
22809         UPB=USE_PRECOMPILED_BYTECODE=1
22810
22811 fi
22812
22813
22814 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22815 if test "${enable_llc_diffs+set}" = set; then
22816   enableval="$enable_llc_diffs"
22817
22818 else
22819   enableval=yes
22820 fi;
22821 if test ${enableval} = "no"
22822 then
22823         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22824
22825 else
22826         DISABLE_LLC_DIFFS=
22827
22828 fi
22829
22830 # Check whether --enable-jit or --disable-jit was given.
22831 if test "${enable_jit+set}" = set; then
22832   enableval="$enable_jit"
22833
22834 else
22835   enableval=default
22836 fi;
22837
22838 if test ${enableval} = "no"
22839 then
22840         JIT=
22841
22842 else
22843         case $target in
22844                 *i*86*)
22845                         JIT=TARGET_HAS_JIT=1
22846
22847                         ;;
22848                 *sparc*)
22849                         JIT=TARGET_HAS_JIT=1
22850
22851                         ;;
22852                 *)
22853                         JIT=
22854
22855                         ;;
22856         esac
22857 fi
22858
22859
22860
22861 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22862 if test "${with_llvmgccdir+set}" = set; then
22863   withval="$with_llvmgccdir"
22864   LLVMGCCDIR=$withval
22865
22866 fi;
22867
22868
22869 # Check whether --with-bcrepos or --without-bcrepos was given.
22870 if test "${with_bcrepos+set}" = set; then
22871   withval="$with_bcrepos"
22872   BCR=$withval
22873
22874 else
22875   BCR=/home/vadve/lattner/LLVMPrograms
22876
22877 fi;
22878
22879
22880 # Check whether --with-papi or --without-papi was given.
22881 if test "${with_papi+set}" = set; then
22882   withval="$with_papi"
22883   PAPIDIR=$withval
22884
22885 else
22886   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22887
22888 fi;
22889
22890
22891 # Check whether --with-purify or --without-purify was given.
22892 if test "${with_purify+set}" = set; then
22893   withval="$with_purify"
22894   PURIFY=$withval
22895
22896 fi;
22897
22898
22899           ac_config_files="$ac_config_files Makefile.config"
22900 cat >confcache <<\_ACEOF
22901 # This file is a shell script that caches the results of configure
22902 # tests run on this system so they can be shared between configure
22903 # scripts and configure runs, see configure's option --config-cache.
22904 # It is not useful on other systems.  If it contains results you don't
22905 # want to keep, you may remove or edit it.
22906 #
22907 # config.status only pays attention to the cache file if you give it
22908 # the --recheck option to rerun configure.
22909 #
22910 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22911 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22912 # following values.
22913
22914 _ACEOF
22915
22916 # The following way of writing the cache mishandles newlines in values,
22917 # but we know of no workaround that is simple, portable, and efficient.
22918 # So, don't put newlines in cache variables' values.
22919 # Ultrix sh set writes to stderr and can't be redirected directly,
22920 # and sets the high bit in the cache file unless we assign to the vars.
22921 {
22922   (set) 2>&1 |
22923     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22924     *ac_space=\ *)
22925       # `set' does not quote correctly, so add quotes (double-quote
22926       # substitution turns \\\\ into \\, and sed turns \\ into \).
22927       sed -n \
22928         "s/'/'\\\\''/g;
22929           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22930       ;;
22931     *)
22932       # `set' quotes correctly as required by POSIX, so do not add quotes.
22933       sed -n \
22934         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22935       ;;
22936     esac;
22937 } |
22938   sed '
22939      t clear
22940      : clear
22941      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22942      t end
22943      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22944      : end' >>confcache
22945 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22946   if test -w $cache_file; then
22947     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22948     cat confcache >$cache_file
22949   else
22950     echo "not updating unwritable cache $cache_file"
22951   fi
22952 fi
22953 rm -f confcache
22954
22955 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22956 # Let make expand exec_prefix.
22957 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22958
22959 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22960 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22961 # trailing colons and then remove the whole line if VPATH becomes empty
22962 # (actually we leave an empty line to preserve line numbers).
22963 if test "x$srcdir" = x.; then
22964   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22965 s/:*\$(srcdir):*/:/;
22966 s/:*\${srcdir}:*/:/;
22967 s/:*@srcdir@:*/:/;
22968 s/^\([^=]*=[    ]*\):*/\1/;
22969 s/:*$//;
22970 s/^[^=]*=[      ]*$//;
22971 }'
22972 fi
22973
22974 DEFS=-DHAVE_CONFIG_H
22975
22976 ac_libobjs=
22977 ac_ltlibobjs=
22978 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22979   # 1. Remove the extension, and $U if already installed.
22980   ac_i=`echo "$ac_i" |
22981          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22982   # 2. Add them.
22983   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22984   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22985 done
22986 LIBOBJS=$ac_libobjs
22987
22988 LTLIBOBJS=$ac_ltlibobjs
22989
22990
22991
22992 : ${CONFIG_STATUS=./config.status}
22993 ac_clean_files_save=$ac_clean_files
22994 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22995 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22996 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22997 cat >$CONFIG_STATUS <<_ACEOF
22998 #! $SHELL
22999 # Generated by $as_me.
23000 # Run this file to recreate the current configuration.
23001 # Compiler output produced by configure, useful for debugging
23002 # configure, is in config.log if it exists.
23003
23004 debug=false
23005 ac_cs_recheck=false
23006 ac_cs_silent=false
23007 SHELL=\${CONFIG_SHELL-$SHELL}
23008 _ACEOF
23009
23010 cat >>$CONFIG_STATUS <<\_ACEOF
23011 ## --------------------- ##
23012 ## M4sh Initialization.  ##
23013 ## --------------------- ##
23014
23015 # Be Bourne compatible
23016 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23017   emulate sh
23018   NULLCMD=:
23019   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23020   # is contrary to our usage.  Disable this feature.
23021   alias -g '${1+"$@"}'='"$@"'
23022 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23023   set -o posix
23024 fi
23025
23026 # Support unset when possible.
23027 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23028   as_unset=unset
23029 else
23030   as_unset=false
23031 fi
23032
23033
23034 # Work around bugs in pre-3.0 UWIN ksh.
23035 $as_unset ENV MAIL MAILPATH
23036 PS1='$ '
23037 PS2='> '
23038 PS4='+ '
23039
23040 # NLS nuisances.
23041 for as_var in \
23042   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23043   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23044   LC_TELEPHONE LC_TIME
23045 do
23046   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23047     eval $as_var=C; export $as_var
23048   else
23049     $as_unset $as_var
23050   fi
23051 done
23052
23053 # Required to use basename.
23054 if expr a : '\(a\)' >/dev/null 2>&1; then
23055   as_expr=expr
23056 else
23057   as_expr=false
23058 fi
23059
23060 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23061   as_basename=basename
23062 else
23063   as_basename=false
23064 fi
23065
23066
23067 # Name of the executable.
23068 as_me=`$as_basename "$0" ||
23069 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23070          X"$0" : 'X\(//\)$' \| \
23071          X"$0" : 'X\(/\)$' \| \
23072          .     : '\(.\)' 2>/dev/null ||
23073 echo X/"$0" |
23074     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23075           /^X\/\(\/\/\)$/{ s//\1/; q; }
23076           /^X\/\(\/\).*/{ s//\1/; q; }
23077           s/.*/./; q'`
23078
23079
23080 # PATH needs CR, and LINENO needs CR and PATH.
23081 # Avoid depending upon Character Ranges.
23082 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23083 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23084 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23085 as_cr_digits='0123456789'
23086 as_cr_alnum=$as_cr_Letters$as_cr_digits
23087
23088 # The user is always right.
23089 if test "${PATH_SEPARATOR+set}" != set; then
23090   echo "#! /bin/sh" >conf$$.sh
23091   echo  "exit 0"   >>conf$$.sh
23092   chmod +x conf$$.sh
23093   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23094     PATH_SEPARATOR=';'
23095   else
23096     PATH_SEPARATOR=:
23097   fi
23098   rm -f conf$$.sh
23099 fi
23100
23101
23102   as_lineno_1=$LINENO
23103   as_lineno_2=$LINENO
23104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23105   test "x$as_lineno_1" != "x$as_lineno_2" &&
23106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23107   # Find who we are.  Look in the path if we contain no path at all
23108   # relative or not.
23109   case $0 in
23110     *[\\/]* ) as_myself=$0 ;;
23111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23112 for as_dir in $PATH
23113 do
23114   IFS=$as_save_IFS
23115   test -z "$as_dir" && as_dir=.
23116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23117 done
23118
23119        ;;
23120   esac
23121   # We did not find ourselves, most probably we were run as `sh COMMAND'
23122   # in which case we are not to be found in the path.
23123   if test "x$as_myself" = x; then
23124     as_myself=$0
23125   fi
23126   if test ! -f "$as_myself"; then
23127     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23128 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23129    { (exit 1); exit 1; }; }
23130   fi
23131   case $CONFIG_SHELL in
23132   '')
23133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23135 do
23136   IFS=$as_save_IFS
23137   test -z "$as_dir" && as_dir=.
23138   for as_base in sh bash ksh sh5; do
23139          case $as_dir in
23140          /*)
23141            if ("$as_dir/$as_base" -c '
23142   as_lineno_1=$LINENO
23143   as_lineno_2=$LINENO
23144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23145   test "x$as_lineno_1" != "x$as_lineno_2" &&
23146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23149              CONFIG_SHELL=$as_dir/$as_base
23150              export CONFIG_SHELL
23151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23152            fi;;
23153          esac
23154        done
23155 done
23156 ;;
23157   esac
23158
23159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23160   # uniformly replaced by the line number.  The first 'sed' inserts a
23161   # line-number line before each line; the second 'sed' does the real
23162   # work.  The second script uses 'N' to pair each line-number line
23163   # with the numbered line, and appends trailing '-' during
23164   # substitution so that $LINENO is not a special case at line end.
23165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23167   sed '=' <$as_myself |
23168     sed '
23169       N
23170       s,$,-,
23171       : loop
23172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23173       t loop
23174       s,-$,,
23175       s,^['$as_cr_digits']*\n,,
23176     ' >$as_me.lineno &&
23177   chmod +x $as_me.lineno ||
23178     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23179 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23180    { (exit 1); exit 1; }; }
23181
23182   # Don't try to exec as it changes $[0], causing all sort of problems
23183   # (the dirname of $[0] is not the place where we might find the
23184   # original and so on.  Autoconf is especially sensible to this).
23185   . ./$as_me.lineno
23186   # Exit status is that of the last command.
23187   exit
23188 }
23189
23190
23191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23192   *c*,-n*) ECHO_N= ECHO_C='
23193 ' ECHO_T='      ' ;;
23194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23196 esac
23197
23198 if expr a : '\(a\)' >/dev/null 2>&1; then
23199   as_expr=expr
23200 else
23201   as_expr=false
23202 fi
23203
23204 rm -f conf$$ conf$$.exe conf$$.file
23205 echo >conf$$.file
23206 if ln -s conf$$.file conf$$ 2>/dev/null; then
23207   # We could just check for DJGPP; but this test a) works b) is more generic
23208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23209   if test -f conf$$.exe; then
23210     # Don't use ln at all; we don't have any links
23211     as_ln_s='cp -p'
23212   else
23213     as_ln_s='ln -s'
23214   fi
23215 elif ln conf$$.file conf$$ 2>/dev/null; then
23216   as_ln_s=ln
23217 else
23218   as_ln_s='cp -p'
23219 fi
23220 rm -f conf$$ conf$$.exe conf$$.file
23221
23222 if mkdir -p . 2>/dev/null; then
23223   as_mkdir_p=:
23224 else
23225   as_mkdir_p=false
23226 fi
23227
23228 as_executable_p="test -f"
23229
23230 # Sed expression to map a string onto a valid CPP name.
23231 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23232
23233 # Sed expression to map a string onto a valid variable name.
23234 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23235
23236
23237 # IFS
23238 # We need space, tab and new line, in precisely that order.
23239 as_nl='
23240 '
23241 IFS="   $as_nl"
23242
23243 # CDPATH.
23244 $as_unset CDPATH
23245
23246 exec 6>&1
23247
23248 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23249 # report actual input values of CONFIG_FILES etc. instead of their
23250 # values after options handling.  Logging --version etc. is OK.
23251 exec 5>>config.log
23252 {
23253   echo
23254   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23255 ## Running $as_me. ##
23256 _ASBOX
23257 } >&5
23258 cat >&5 <<_CSEOF
23259
23260 This file was extended by [LLVM] $as_me [1.0], which was
23261 generated by GNU Autoconf 2.57.  Invocation command line was
23262
23263   CONFIG_FILES    = $CONFIG_FILES
23264   CONFIG_HEADERS  = $CONFIG_HEADERS
23265   CONFIG_LINKS    = $CONFIG_LINKS
23266   CONFIG_COMMANDS = $CONFIG_COMMANDS
23267   $ $0 $@
23268
23269 _CSEOF
23270 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23271 echo >&5
23272 _ACEOF
23273
23274 # Files that config.status was made for.
23275 if test -n "$ac_config_files"; then
23276   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23277 fi
23278
23279 if test -n "$ac_config_headers"; then
23280   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23281 fi
23282
23283 if test -n "$ac_config_links"; then
23284   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23285 fi
23286
23287 if test -n "$ac_config_commands"; then
23288   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23289 fi
23290
23291 cat >>$CONFIG_STATUS <<\_ACEOF
23292
23293 ac_cs_usage="\
23294 \`$as_me' instantiates files from templates according to the
23295 current configuration.
23296
23297 Usage: $0 [OPTIONS] [FILE]...
23298
23299   -h, --help       print this help, then exit
23300   -V, --version    print version number, then exit
23301   -q, --quiet      do not print progress messages
23302   -d, --debug      don't remove temporary files
23303       --recheck    update $as_me by reconfiguring in the same conditions
23304   --file=FILE[:TEMPLATE]
23305                    instantiate the configuration file FILE
23306   --header=FILE[:TEMPLATE]
23307                    instantiate the configuration header FILE
23308
23309 Configuration files:
23310 $config_files
23311
23312 Configuration headers:
23313 $config_headers
23314
23315 Configuration commands:
23316 $config_commands
23317
23318 Report bugs to <bug-autoconf@gnu.org>."
23319 _ACEOF
23320
23321 cat >>$CONFIG_STATUS <<_ACEOF
23322 ac_cs_version="\\
23323 [LLVM] config.status [1.0]
23324 configured by $0, generated by GNU Autoconf 2.57,
23325   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23326
23327 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23328 Free Software Foundation, Inc.
23329 This config.status script is free software; the Free Software Foundation
23330 gives unlimited permission to copy, distribute and modify it."
23331 srcdir=$srcdir
23332 INSTALL="$INSTALL"
23333 _ACEOF
23334
23335 cat >>$CONFIG_STATUS <<\_ACEOF
23336 # If no file are specified by the user, then we need to provide default
23337 # value.  By we need to know if files were specified by the user.
23338 ac_need_defaults=:
23339 while test $# != 0
23340 do
23341   case $1 in
23342   --*=*)
23343     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23344     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23345     ac_shift=:
23346     ;;
23347   -*)
23348     ac_option=$1
23349     ac_optarg=$2
23350     ac_shift=shift
23351     ;;
23352   *) # This is not an option, so the user has probably given explicit
23353      # arguments.
23354      ac_option=$1
23355      ac_need_defaults=false;;
23356   esac
23357
23358   case $ac_option in
23359   # Handling of the options.
23360 _ACEOF
23361 cat >>$CONFIG_STATUS <<\_ACEOF
23362   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23363     ac_cs_recheck=: ;;
23364   --version | --vers* | -V )
23365     echo "$ac_cs_version"; exit 0 ;;
23366   --he | --h)
23367     # Conflict between --help and --header
23368     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23369 Try \`$0 --help' for more information." >&5
23370 echo "$as_me: error: ambiguous option: $1
23371 Try \`$0 --help' for more information." >&2;}
23372    { (exit 1); exit 1; }; };;
23373   --help | --hel | -h )
23374     echo "$ac_cs_usage"; exit 0 ;;
23375   --debug | --d* | -d )
23376     debug=: ;;
23377   --file | --fil | --fi | --f )
23378     $ac_shift
23379     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23380     ac_need_defaults=false;;
23381   --header | --heade | --head | --hea )
23382     $ac_shift
23383     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23384     ac_need_defaults=false;;
23385   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23386   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23387     ac_cs_silent=: ;;
23388
23389   # This is an error.
23390   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23391 Try \`$0 --help' for more information." >&5
23392 echo "$as_me: error: unrecognized option: $1
23393 Try \`$0 --help' for more information." >&2;}
23394    { (exit 1); exit 1; }; } ;;
23395
23396   *) ac_config_targets="$ac_config_targets $1" ;;
23397
23398   esac
23399   shift
23400 done
23401
23402 ac_configure_extra_args=
23403
23404 if $ac_cs_silent; then
23405   exec 6>/dev/null
23406   ac_configure_extra_args="$ac_configure_extra_args --silent"
23407 fi
23408
23409 _ACEOF
23410 cat >>$CONFIG_STATUS <<_ACEOF
23411 if \$ac_cs_recheck; then
23412   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23413   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23414 fi
23415
23416 _ACEOF
23417
23418 cat >>$CONFIG_STATUS <<_ACEOF
23419 #
23420 # INIT-COMMANDS section.
23421 #
23422
23423 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23424 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23454 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23455 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23456 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23457 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23458 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23459 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23460 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23461 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23462 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23463 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23464 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23465 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23466 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23467 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23468 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23469 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23470 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23471 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23472 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23473 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23474 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23475 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23476 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23477 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23478 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23479 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23480 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23481 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23482 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23483 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23484 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23485 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23486 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23487 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23488 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23489 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23490 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23491 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23492 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23493 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23494 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23495 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23496 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/177.mesa/Makefile`
23497 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23498 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23499 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23500 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23501 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23502 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23503 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23504 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23505 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23506 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23507 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23508 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23509 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23510 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23511 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23512 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23513 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23514 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23515 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23516 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23517 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23518 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23519 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23520 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23521 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23522 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23523 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23524 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23525 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23526 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23527 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23528 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23529 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23530 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23531 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23532 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23533 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23534 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23535 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23536 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23537 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23538 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23539 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23540 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23541 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23542 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23543 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23544 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23545 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23546 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23547 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23548 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23549 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23550 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23551 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23552 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23553 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23554 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23555 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23556 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23557 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23558 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23559 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23560 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23561 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23562 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
23563 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23564 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
23565 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
23566 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23567 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23568 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23569 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23570 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23571 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23572 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23573 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23574 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23575 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23576 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23577 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23578 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23579 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23580 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23581 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23582 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23583 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23584 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23585 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23586 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23587 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23588 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23589 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23590 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23591 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23592 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23593 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23594 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23595 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23596
23597 _ACEOF
23598
23599
23600
23601 cat >>$CONFIG_STATUS <<\_ACEOF
23602 for ac_config_target in $ac_config_targets
23603 do
23604   case "$ac_config_target" in
23605   # Handling of arguments.
23606   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23607   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23608   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23609   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23610   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23611   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23612   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23613   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23614   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23615   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23616   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23617   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23618   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23619   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23620   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23621   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23622   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23623   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23624   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23625   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23626   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23627   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23628   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23629   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23630   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23631   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23632   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23633   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23634   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23635   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23636   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23637   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23638   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23639   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23640   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23641   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23642   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23643   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23644   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23645   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23646   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23647   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23648   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23649   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23650   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23651   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23652   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23653   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23654   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23655   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23656   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23657   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23658   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23659   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23660   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23661   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23662   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23663   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23664   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23665   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23666   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23667   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23668   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23669   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23670   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23671   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23672   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23673   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23674   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23675   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23676   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23677   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23678   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23679   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23680   "test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ;;
23681   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23682   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23683   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23684   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23685   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23686   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23687   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23688   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23689   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23690   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23691   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23692   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23693   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23694   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23695   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23696   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23697   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23698   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23699   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23700   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23701   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23702   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23703   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23704   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23705   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23706   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23707   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23708   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23709   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23710   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23711   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23712   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23713   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23714   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23715   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23716   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23717   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23718   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23719   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23720   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23721   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23722   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23723   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23724   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23725   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23726   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23727   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23728   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23729   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23730   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23731   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23732   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23733   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23734   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23735   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23736   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23737   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23738   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23739   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23740   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23741   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23742   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23743   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23744   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23745   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23746   "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
23747   "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23748   "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
23749   "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
23750   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23751   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23752   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23753   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23754   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23755   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23756   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23757   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23758   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23759   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23760   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23761   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23762   "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23763   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23764   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23765   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23766   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23767   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23768   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23769   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23770   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23771   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23772   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23773   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23774   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23775   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23776   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23777   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23778   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23779   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23780   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23781   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23782 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23783    { (exit 1); exit 1; }; };;
23784   esac
23785 done
23786
23787 # If the user did not use the arguments to specify the items to instantiate,
23788 # then the envvar interface is used.  Set only those that are not.
23789 # We use the long form for the default assignment because of an extremely
23790 # bizarre bug on SunOS 4.1.3.
23791 if $ac_need_defaults; then
23792   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23793   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23794   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23795 fi
23796
23797 # Have a temporary directory for convenience.  Make it in the build tree
23798 # simply because there is no reason to put it here, and in addition,
23799 # creating and moving files from /tmp can sometimes cause problems.
23800 # Create a temporary directory, and hook for its removal unless debugging.
23801 $debug ||
23802 {
23803   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23804   trap '{ (exit 1); exit 1; }' 1 2 13 15
23805 }
23806
23807 # Create a (secure) tmp directory for tmp files.
23808
23809 {
23810   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23811   test -n "$tmp" && test -d "$tmp"
23812 }  ||
23813 {
23814   tmp=./confstat$$-$RANDOM
23815   (umask 077 && mkdir $tmp)
23816 } ||
23817 {
23818    echo "$me: cannot create a temporary directory in ." >&2
23819    { (exit 1); exit 1; }
23820 }
23821
23822 _ACEOF
23823
23824 cat >>$CONFIG_STATUS <<_ACEOF
23825
23826 #
23827 # CONFIG_FILES section.
23828 #
23829
23830 # No need to generate the scripts if there are no CONFIG_FILES.
23831 # This happens for instance when ./config.status config.h
23832 if test -n "\$CONFIG_FILES"; then
23833   # Protect against being on the right side of a sed subst in config.status.
23834   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23835    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23836 s,@SHELL@,$SHELL,;t t
23837 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23838 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23839 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23840 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23841 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23842 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23843 s,@exec_prefix@,$exec_prefix,;t t
23844 s,@prefix@,$prefix,;t t
23845 s,@program_transform_name@,$program_transform_name,;t t
23846 s,@bindir@,$bindir,;t t
23847 s,@sbindir@,$sbindir,;t t
23848 s,@libexecdir@,$libexecdir,;t t
23849 s,@datadir@,$datadir,;t t
23850 s,@sysconfdir@,$sysconfdir,;t t
23851 s,@sharedstatedir@,$sharedstatedir,;t t
23852 s,@localstatedir@,$localstatedir,;t t
23853 s,@libdir@,$libdir,;t t
23854 s,@includedir@,$includedir,;t t
23855 s,@oldincludedir@,$oldincludedir,;t t
23856 s,@infodir@,$infodir,;t t
23857 s,@mandir@,$mandir,;t t
23858 s,@build_alias@,$build_alias,;t t
23859 s,@host_alias@,$host_alias,;t t
23860 s,@target_alias@,$target_alias,;t t
23861 s,@DEFS@,$DEFS,;t t
23862 s,@ECHO_C@,$ECHO_C,;t t
23863 s,@ECHO_N@,$ECHO_N,;t t
23864 s,@ECHO_T@,$ECHO_T,;t t
23865 s,@LIBS@,$LIBS,;t t
23866 s,@subdirs@,$subdirs,;t t
23867 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23868 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23869 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23870 s,@build@,$build,;t t
23871 s,@build_cpu@,$build_cpu,;t t
23872 s,@build_vendor@,$build_vendor,;t t
23873 s,@build_os@,$build_os,;t t
23874 s,@host@,$host,;t t
23875 s,@host_cpu@,$host_cpu,;t t
23876 s,@host_vendor@,$host_vendor,;t t
23877 s,@host_os@,$host_os,;t t
23878 s,@target@,$target,;t t
23879 s,@target_cpu@,$target_cpu,;t t
23880 s,@target_vendor@,$target_vendor,;t t
23881 s,@target_os@,$target_os,;t t
23882 s,@OS@,$OS,;t t
23883 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23884 s,@ARCH@,$ARCH,;t t
23885 s,@CXX@,$CXX,;t t
23886 s,@CXXFLAGS@,$CXXFLAGS,;t t
23887 s,@LDFLAGS@,$LDFLAGS,;t t
23888 s,@CPPFLAGS@,$CPPFLAGS,;t t
23889 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23890 s,@EXEEXT@,$EXEEXT,;t t
23891 s,@OBJEXT@,$OBJEXT,;t t
23892 s,@CC@,$CC,;t t
23893 s,@CFLAGS@,$CFLAGS,;t t
23894 s,@ac_ct_CC@,$ac_ct_CC,;t t
23895 s,@CPP@,$CPP,;t t
23896 s,@ifGNUmake@,$ifGNUmake,;t t
23897 s,@LEX@,$LEX,;t t
23898 s,@LEXLIB@,$LEXLIB,;t t
23899 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23900 s,@YACC@,$YACC,;t t
23901 s,@EGREP@,$EGREP,;t t
23902 s,@LN_S@,$LN_S,;t t
23903 s,@ECHO@,$ECHO,;t t
23904 s,@AR@,$AR,;t t
23905 s,@ac_ct_AR@,$ac_ct_AR,;t t
23906 s,@RANLIB@,$RANLIB,;t t
23907 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23908 s,@STRIP@,$STRIP,;t t
23909 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23910 s,@CXXCPP@,$CXXCPP,;t t
23911 s,@F77@,$F77,;t t
23912 s,@FFLAGS@,$FFLAGS,;t t
23913 s,@ac_ct_F77@,$ac_ct_F77,;t t
23914 s,@LIBTOOL@,$LIBTOOL,;t t
23915 s,@RPWD@,$RPWD,;t t
23916 s,@SED@,$SED,;t t
23917 s,@RM@,$RM,;t t
23918 s,@MKDIR@,$MKDIR,;t t
23919 s,@DATE@,$DATE,;t t
23920 s,@MV@,$MV,;t t
23921 s,@DOT@,$DOT,;t t
23922 s,@ETAGS@,$ETAGS,;t t
23923 s,@PYTHON@,$PYTHON,;t t
23924 s,@QMTEST@,$QMTEST,;t t
23925 s,@ALLOCA@,$ALLOCA,;t t
23926 s,@LIBOBJS@,$LIBOBJS,;t t
23927 s,@MMAP_FILE@,$MMAP_FILE,;t t
23928 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23929 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23930 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23931 s,@USE_SPEC@,$USE_SPEC,;t t
23932 s,@UPB@,$UPB,;t t
23933 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23934 s,@JIT@,$JIT,;t t
23935 s,@BCR@,$BCR,;t t
23936 s,@PAPIDIR@,$PAPIDIR,;t t
23937 s,@PURIFY@,$PURIFY,;t t
23938 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23939 CEOF
23940
23941 _ACEOF
23942
23943   cat >>$CONFIG_STATUS <<\_ACEOF
23944   # Split the substitutions into bite-sized pieces for seds with
23945   # small command number limits, like on Digital OSF/1 and HP-UX.
23946   ac_max_sed_lines=48
23947   ac_sed_frag=1 # Number of current file.
23948   ac_beg=1 # First line for current file.
23949   ac_end=$ac_max_sed_lines # Line after last line for current file.
23950   ac_more_lines=:
23951   ac_sed_cmds=
23952   while $ac_more_lines; do
23953     if test $ac_beg -gt 1; then
23954       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23955     else
23956       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23957     fi
23958     if test ! -s $tmp/subs.frag; then
23959       ac_more_lines=false
23960     else
23961       # The purpose of the label and of the branching condition is to
23962       # speed up the sed processing (if there are no `@' at all, there
23963       # is no need to browse any of the substitutions).
23964       # These are the two extra sed commands mentioned above.
23965       (echo ':t
23966   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23967       if test -z "$ac_sed_cmds"; then
23968         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23969       else
23970         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23971       fi
23972       ac_sed_frag=`expr $ac_sed_frag + 1`
23973       ac_beg=$ac_end
23974       ac_end=`expr $ac_end + $ac_max_sed_lines`
23975     fi
23976   done
23977   if test -z "$ac_sed_cmds"; then
23978     ac_sed_cmds=cat
23979   fi
23980 fi # test -n "$CONFIG_FILES"
23981
23982 _ACEOF
23983 cat >>$CONFIG_STATUS <<\_ACEOF
23984 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23985   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23986   case $ac_file in
23987   - | *:- | *:-:* ) # input from stdin
23988         cat >$tmp/stdin
23989         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23990         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23991   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23992         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23993   * )   ac_file_in=$ac_file.in ;;
23994   esac
23995
23996   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23997   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23998 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23999          X"$ac_file" : 'X\(//\)[^/]' \| \
24000          X"$ac_file" : 'X\(//\)$' \| \
24001          X"$ac_file" : 'X\(/\)' \| \
24002          .     : '\(.\)' 2>/dev/null ||
24003 echo X"$ac_file" |
24004     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24005           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24006           /^X\(\/\/\)$/{ s//\1/; q; }
24007           /^X\(\/\).*/{ s//\1/; q; }
24008           s/.*/./; q'`
24009   { if $as_mkdir_p; then
24010     mkdir -p "$ac_dir"
24011   else
24012     as_dir="$ac_dir"
24013     as_dirs=
24014     while test ! -d "$as_dir"; do
24015       as_dirs="$as_dir $as_dirs"
24016       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24018          X"$as_dir" : 'X\(//\)[^/]' \| \
24019          X"$as_dir" : 'X\(//\)$' \| \
24020          X"$as_dir" : 'X\(/\)' \| \
24021          .     : '\(.\)' 2>/dev/null ||
24022 echo X"$as_dir" |
24023     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24024           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24025           /^X\(\/\/\)$/{ s//\1/; q; }
24026           /^X\(\/\).*/{ s//\1/; q; }
24027           s/.*/./; q'`
24028     done
24029     test ! -n "$as_dirs" || mkdir $as_dirs
24030   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24031 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24032    { (exit 1); exit 1; }; }; }
24033
24034   ac_builddir=.
24035
24036 if test "$ac_dir" != .; then
24037   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24038   # A "../" for each directory in $ac_dir_suffix.
24039   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24040 else
24041   ac_dir_suffix= ac_top_builddir=
24042 fi
24043
24044 case $srcdir in
24045   .)  # No --srcdir option.  We are building in place.
24046     ac_srcdir=.
24047     if test -z "$ac_top_builddir"; then
24048        ac_top_srcdir=.
24049     else
24050        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24051     fi ;;
24052   [\\/]* | ?:[\\/]* )  # Absolute path.
24053     ac_srcdir=$srcdir$ac_dir_suffix;
24054     ac_top_srcdir=$srcdir ;;
24055   *) # Relative path.
24056     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24057     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24058 esac
24059 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24060 # absolute.
24061 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24062 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24063 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24064 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24065
24066
24067   case $INSTALL in
24068   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24069   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24070   esac
24071
24072   if test x"$ac_file" != x-; then
24073     { echo "$as_me:$LINENO: creating $ac_file" >&5
24074 echo "$as_me: creating $ac_file" >&6;}
24075     rm -f "$ac_file"
24076   fi
24077   # Let's still pretend it is `configure' which instantiates (i.e., don't
24078   # use $as_me), people would be surprised to read:
24079   #    /* config.h.  Generated by config.status.  */
24080   if test x"$ac_file" = x-; then
24081     configure_input=
24082   else
24083     configure_input="$ac_file.  "
24084   fi
24085   configure_input=$configure_input"Generated from `echo $ac_file_in |
24086                                      sed 's,.*/,,'` by configure."
24087
24088   # First look for the input files in the build tree, otherwise in the
24089   # src tree.
24090   ac_file_inputs=`IFS=:
24091     for f in $ac_file_in; do
24092       case $f in
24093       -) echo $tmp/stdin ;;
24094       [\\/$]*)
24095          # Absolute (can't be DOS-style, as IFS=:)
24096          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24097 echo "$as_me: error: cannot find input file: $f" >&2;}
24098    { (exit 1); exit 1; }; }
24099          echo $f;;
24100       *) # Relative
24101          if test -f "$f"; then
24102            # Build tree
24103            echo $f
24104          elif test -f "$srcdir/$f"; then
24105            # Source tree
24106            echo $srcdir/$f
24107          else
24108            # /dev/null tree
24109            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24110 echo "$as_me: error: cannot find input file: $f" >&2;}
24111    { (exit 1); exit 1; }; }
24112          fi;;
24113       esac
24114     done` || { (exit 1); exit 1; }
24115 _ACEOF
24116 cat >>$CONFIG_STATUS <<_ACEOF
24117   sed "$ac_vpsub
24118 $extrasub
24119 _ACEOF
24120 cat >>$CONFIG_STATUS <<\_ACEOF
24121 :t
24122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24123 s,@configure_input@,$configure_input,;t t
24124 s,@srcdir@,$ac_srcdir,;t t
24125 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24126 s,@top_srcdir@,$ac_top_srcdir,;t t
24127 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24128 s,@builddir@,$ac_builddir,;t t
24129 s,@abs_builddir@,$ac_abs_builddir,;t t
24130 s,@top_builddir@,$ac_top_builddir,;t t
24131 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24132 s,@INSTALL@,$ac_INSTALL,;t t
24133 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24134   rm -f $tmp/stdin
24135   if test x"$ac_file" != x-; then
24136     mv $tmp/out $ac_file
24137   else
24138     cat $tmp/out
24139     rm -f $tmp/out
24140   fi
24141
24142 done
24143 _ACEOF
24144 cat >>$CONFIG_STATUS <<\_ACEOF
24145
24146 #
24147 # CONFIG_HEADER section.
24148 #
24149
24150 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24151 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24152 #
24153 # ac_d sets the value in "#define NAME VALUE" lines.
24154 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24155 ac_dB='[        ].*$,\1#\2'
24156 ac_dC=' '
24157 ac_dD=',;t'
24158 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24159 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24160 ac_uB='$,\1#\2define\3'
24161 ac_uC=' '
24162 ac_uD=',;t'
24163
24164 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24165   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24166   case $ac_file in
24167   - | *:- | *:-:* ) # input from stdin
24168         cat >$tmp/stdin
24169         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24170         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24171   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24172         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24173   * )   ac_file_in=$ac_file.in ;;
24174   esac
24175
24176   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24177 echo "$as_me: creating $ac_file" >&6;}
24178
24179   # First look for the input files in the build tree, otherwise in the
24180   # src tree.
24181   ac_file_inputs=`IFS=:
24182     for f in $ac_file_in; do
24183       case $f in
24184       -) echo $tmp/stdin ;;
24185       [\\/$]*)
24186          # Absolute (can't be DOS-style, as IFS=:)
24187          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24188 echo "$as_me: error: cannot find input file: $f" >&2;}
24189    { (exit 1); exit 1; }; }
24190          echo $f;;
24191       *) # Relative
24192          if test -f "$f"; then
24193            # Build tree
24194            echo $f
24195          elif test -f "$srcdir/$f"; then
24196            # Source tree
24197            echo $srcdir/$f
24198          else
24199            # /dev/null tree
24200            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24201 echo "$as_me: error: cannot find input file: $f" >&2;}
24202    { (exit 1); exit 1; }; }
24203          fi;;
24204       esac
24205     done` || { (exit 1); exit 1; }
24206   # Remove the trailing spaces.
24207   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24208
24209 _ACEOF
24210
24211 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24212 # `conftest.undefs', that substitutes the proper values into
24213 # config.h.in to produce config.h.  The first handles `#define'
24214 # templates, and the second `#undef' templates.
24215 # And first: Protect against being on the right side of a sed subst in
24216 # config.status.  Protect against being in an unquoted here document
24217 # in config.status.
24218 rm -f conftest.defines conftest.undefs
24219 # Using a here document instead of a string reduces the quoting nightmare.
24220 # Putting comments in sed scripts is not portable.
24221 #
24222 # `end' is used to avoid that the second main sed command (meant for
24223 # 0-ary CPP macros) applies to n-ary macro definitions.
24224 # See the Autoconf documentation for `clear'.
24225 cat >confdef2sed.sed <<\_ACEOF
24226 s/[\\&,]/\\&/g
24227 s,[\\$`],\\&,g
24228 t clear
24229 : clear
24230 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24231 t end
24232 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24233 : end
24234 _ACEOF
24235 # If some macros were called several times there might be several times
24236 # the same #defines, which is useless.  Nevertheless, we may not want to
24237 # sort them, since we want the *last* AC-DEFINE to be honored.
24238 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24239 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24240 rm -f confdef2sed.sed
24241
24242 # This sed command replaces #undef with comments.  This is necessary, for
24243 # example, in the case of _POSIX_SOURCE, which is predefined and required
24244 # on some systems where configure will not decide to define it.
24245 cat >>conftest.undefs <<\_ACEOF
24246 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24247 _ACEOF
24248
24249 # Break up conftest.defines because some shells have a limit on the size
24250 # of here documents, and old seds have small limits too (100 cmds).
24251 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24252 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24253 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24254 echo '  :' >>$CONFIG_STATUS
24255 rm -f conftest.tail
24256 while grep . conftest.defines >/dev/null
24257 do
24258   # Write a limited-size here document to $tmp/defines.sed.
24259   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24260   # Speed up: don't consider the non `#define' lines.
24261   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24262   # Work around the forget-to-reset-the-flag bug.
24263   echo 't clr' >>$CONFIG_STATUS
24264   echo ': clr' >>$CONFIG_STATUS
24265   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24266   echo 'CEOF
24267   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24268   rm -f $tmp/in
24269   mv $tmp/out $tmp/in
24270 ' >>$CONFIG_STATUS
24271   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24272   rm -f conftest.defines
24273   mv conftest.tail conftest.defines
24274 done
24275 rm -f conftest.defines
24276 echo '  fi # grep' >>$CONFIG_STATUS
24277 echo >>$CONFIG_STATUS
24278
24279 # Break up conftest.undefs because some shells have a limit on the size
24280 # of here documents, and old seds have small limits too (100 cmds).
24281 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24282 rm -f conftest.tail
24283 while grep . conftest.undefs >/dev/null
24284 do
24285   # Write a limited-size here document to $tmp/undefs.sed.
24286   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24287   # Speed up: don't consider the non `#undef'
24288   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24289   # Work around the forget-to-reset-the-flag bug.
24290   echo 't clr' >>$CONFIG_STATUS
24291   echo ': clr' >>$CONFIG_STATUS
24292   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24293   echo 'CEOF
24294   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24295   rm -f $tmp/in
24296   mv $tmp/out $tmp/in
24297 ' >>$CONFIG_STATUS
24298   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24299   rm -f conftest.undefs
24300   mv conftest.tail conftest.undefs
24301 done
24302 rm -f conftest.undefs
24303
24304 cat >>$CONFIG_STATUS <<\_ACEOF
24305   # Let's still pretend it is `configure' which instantiates (i.e., don't
24306   # use $as_me), people would be surprised to read:
24307   #    /* config.h.  Generated by config.status.  */
24308   if test x"$ac_file" = x-; then
24309     echo "/* Generated by configure.  */" >$tmp/config.h
24310   else
24311     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24312   fi
24313   cat $tmp/in >>$tmp/config.h
24314   rm -f $tmp/in
24315   if test x"$ac_file" != x-; then
24316     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24317       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24318 echo "$as_me: $ac_file is unchanged" >&6;}
24319     else
24320       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24321 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24322          X"$ac_file" : 'X\(//\)[^/]' \| \
24323          X"$ac_file" : 'X\(//\)$' \| \
24324          X"$ac_file" : 'X\(/\)' \| \
24325          .     : '\(.\)' 2>/dev/null ||
24326 echo X"$ac_file" |
24327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24328           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24329           /^X\(\/\/\)$/{ s//\1/; q; }
24330           /^X\(\/\).*/{ s//\1/; q; }
24331           s/.*/./; q'`
24332       { if $as_mkdir_p; then
24333     mkdir -p "$ac_dir"
24334   else
24335     as_dir="$ac_dir"
24336     as_dirs=
24337     while test ! -d "$as_dir"; do
24338       as_dirs="$as_dir $as_dirs"
24339       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24341          X"$as_dir" : 'X\(//\)[^/]' \| \
24342          X"$as_dir" : 'X\(//\)$' \| \
24343          X"$as_dir" : 'X\(/\)' \| \
24344          .     : '\(.\)' 2>/dev/null ||
24345 echo X"$as_dir" |
24346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24347           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24348           /^X\(\/\/\)$/{ s//\1/; q; }
24349           /^X\(\/\).*/{ s//\1/; q; }
24350           s/.*/./; q'`
24351     done
24352     test ! -n "$as_dirs" || mkdir $as_dirs
24353   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24354 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24355    { (exit 1); exit 1; }; }; }
24356
24357       rm -f $ac_file
24358       mv $tmp/config.h $ac_file
24359     fi
24360   else
24361     cat $tmp/config.h
24362     rm -f $tmp/config.h
24363   fi
24364 done
24365 _ACEOF
24366 cat >>$CONFIG_STATUS <<\_ACEOF
24367
24368 #
24369 # CONFIG_COMMANDS section.
24370 #
24371 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24372   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24373   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24374   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24375 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24376          X"$ac_dest" : 'X\(//\)[^/]' \| \
24377          X"$ac_dest" : 'X\(//\)$' \| \
24378          X"$ac_dest" : 'X\(/\)' \| \
24379          .     : '\(.\)' 2>/dev/null ||
24380 echo X"$ac_dest" |
24381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24382           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24383           /^X\(\/\/\)$/{ s//\1/; q; }
24384           /^X\(\/\).*/{ s//\1/; q; }
24385           s/.*/./; q'`
24386   ac_builddir=.
24387
24388 if test "$ac_dir" != .; then
24389   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24390   # A "../" for each directory in $ac_dir_suffix.
24391   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24392 else
24393   ac_dir_suffix= ac_top_builddir=
24394 fi
24395
24396 case $srcdir in
24397   .)  # No --srcdir option.  We are building in place.
24398     ac_srcdir=.
24399     if test -z "$ac_top_builddir"; then
24400        ac_top_srcdir=.
24401     else
24402        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24403     fi ;;
24404   [\\/]* | ?:[\\/]* )  # Absolute path.
24405     ac_srcdir=$srcdir$ac_dir_suffix;
24406     ac_top_srcdir=$srcdir ;;
24407   *) # Relative path.
24408     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24409     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24410 esac
24411 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24412 # absolute.
24413 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24414 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24415 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24416 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24417
24418
24419   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24420 echo "$as_me: executing $ac_dest commands" >&6;}
24421   case $ac_dest in
24422     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24423     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24424     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24425     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24426     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24427     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24428     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24429     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24430     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24431     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24432     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24433     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24434     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24435     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24436     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24437     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24438     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24439     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24440     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24441     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24442     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24443     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24444     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24445     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24446     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24447     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24448     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24449     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24450     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24451     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24452     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24453     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24454     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24455     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24456     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24457     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24458     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24459     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24460     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24461     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24462     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24463     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24464     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24465     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24466     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24467     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24468     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24469     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24470     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24471     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24472     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24473     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24474     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24475     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24476     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24477     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24478     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24479     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24480     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24481     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24482     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24483     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24484     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24485     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24486     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24487     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24488     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24489     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24490     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24491     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24492     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24493     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 ;;
24494     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 ;;
24495     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 ;;
24496     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 ;;
24497     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 ;;
24498     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 ;;
24499     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 ;;
24500     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 ;;
24501     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 ;;
24502     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 ;;
24503     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 ;;
24504     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 ;;
24505     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 ;;
24506     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 ;;
24507     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 ;;
24508     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 ;;
24509     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 ;;
24510     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24511     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24512     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24513     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24514     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 ;;
24515     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 ;;
24516     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 ;;
24517     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24518     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 ;;
24519     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 ;;
24520     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 ;;
24521     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 ;;
24522     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 ;;
24523     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 ;;
24524     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 ;;
24525     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 ;;
24526     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 ;;
24527     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 ;;
24528     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 ;;
24529     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 ;;
24530     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 ;;
24531     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 ;;
24532     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 ;;
24533     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 ;;
24534     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 ;;
24535     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 ;;
24536     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 ;;
24537     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 ;;
24538     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 ;;
24539     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 ;;
24540     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 ;;
24541     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 ;;
24542     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 ;;
24543     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 ;;
24544     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 ;;
24545     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 ;;
24546     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 ;;
24547     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 ;;
24548     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 ;;
24549     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 ;;
24550     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24551     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24552     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24553     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24554     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 ;;
24555     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 ;;
24556     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 ;;
24557     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 ;;
24558     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24559     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24560     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 ;;
24561     test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
24562     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 ;;
24563     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 ;;
24564     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 ;;
24565     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24566     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24567     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24568     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24569     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24570     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24571     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24572     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24573     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24574     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24575     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24576     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24577     tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24578     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24579     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24580     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24581     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24582     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24583     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24584     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24585     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24586     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24587     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24588     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24589     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24590     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24591     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24592     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24593     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24594     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24595   esac
24596 done
24597 _ACEOF
24598
24599 cat >>$CONFIG_STATUS <<\_ACEOF
24600
24601 { (exit 0); exit 0; }
24602 _ACEOF
24603 chmod +x $CONFIG_STATUS
24604 ac_clean_files=$ac_clean_files_save
24605
24606
24607 # configure is writing to config.log, and then calls config.status.
24608 # config.status does its own redirection, appending to config.log.
24609 # Unfortunately, on DOS this fails, as config.log is still kept open
24610 # by configure, so config.status won't be able to write to it; its
24611 # output is simply discarded.  So we exec the FD to /dev/null,
24612 # effectively closing config.log, so it can be properly (re)opened and
24613 # appended to by config.status.  When coming back to configure, we
24614 # need to make the FD available again.
24615 if test "$no_create" != yes; then
24616   ac_cs_success=:
24617   ac_config_status_args=
24618   test "$silent" = yes &&
24619     ac_config_status_args="$ac_config_status_args --quiet"
24620   exec 5>/dev/null
24621   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24622   exec 5>>config.log
24623   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24624   # would make configure fail if this is the last instruction.
24625   $ac_cs_success || { (exit 1); exit 1; }
24626 fi
24627
24628 #
24629 # CONFIG_SUBDIRS section.
24630 #
24631 if test "$no_recursion" != yes; then
24632
24633   # Remove --cache-file and --srcdir arguments so they do not pile up.
24634   ac_sub_configure_args=
24635   ac_prev=
24636   for ac_arg in $ac_configure_args; do
24637     if test -n "$ac_prev"; then
24638       ac_prev=
24639       continue
24640     fi
24641     case $ac_arg in
24642     -cache-file | --cache-file | --cache-fil | --cache-fi \
24643     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24644       ac_prev=cache_file ;;
24645     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24646     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24647     | --c=*)
24648       ;;
24649     --config-cache | -C)
24650       ;;
24651     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24652       ac_prev=srcdir ;;
24653     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24654       ;;
24655     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24656       ac_prev=prefix ;;
24657     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24658       ;;
24659     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24660     esac
24661   done
24662
24663   # Always prepend --prefix to ensure using the same prefix
24664   # in subdir configurations.
24665   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24666
24667   ac_popdir=`pwd`
24668   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24669
24670     # Do not complain, so a configure script can configure whichever
24671     # parts of a large source tree are present.
24672     test -d $srcdir/$ac_dir || continue
24673
24674     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24675 echo "$as_me: configuring in $ac_dir" >&6;}
24676     { if $as_mkdir_p; then
24677     mkdir -p "$ac_dir"
24678   else
24679     as_dir="$ac_dir"
24680     as_dirs=
24681     while test ! -d "$as_dir"; do
24682       as_dirs="$as_dir $as_dirs"
24683       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24684 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24685          X"$as_dir" : 'X\(//\)[^/]' \| \
24686          X"$as_dir" : 'X\(//\)$' \| \
24687          X"$as_dir" : 'X\(/\)' \| \
24688          .     : '\(.\)' 2>/dev/null ||
24689 echo X"$as_dir" |
24690     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24691           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24692           /^X\(\/\/\)$/{ s//\1/; q; }
24693           /^X\(\/\).*/{ s//\1/; q; }
24694           s/.*/./; q'`
24695     done
24696     test ! -n "$as_dirs" || mkdir $as_dirs
24697   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24698 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24699    { (exit 1); exit 1; }; }; }
24700
24701     ac_builddir=.
24702
24703 if test "$ac_dir" != .; then
24704   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24705   # A "../" for each directory in $ac_dir_suffix.
24706   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24707 else
24708   ac_dir_suffix= ac_top_builddir=
24709 fi
24710
24711 case $srcdir in
24712   .)  # No --srcdir option.  We are building in place.
24713     ac_srcdir=.
24714     if test -z "$ac_top_builddir"; then
24715        ac_top_srcdir=.
24716     else
24717        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24718     fi ;;
24719   [\\/]* | ?:[\\/]* )  # Absolute path.
24720     ac_srcdir=$srcdir$ac_dir_suffix;
24721     ac_top_srcdir=$srcdir ;;
24722   *) # Relative path.
24723     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24724     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24725 esac
24726 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24727 # absolute.
24728 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24729 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24730 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24731 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24732
24733
24734     cd $ac_dir
24735
24736     # Check for guested configure; otherwise get Cygnus style configure.
24737     if test -f $ac_srcdir/configure.gnu; then
24738       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24739     elif test -f $ac_srcdir/configure; then
24740       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24741     elif test -f $ac_srcdir/configure.in; then
24742       ac_sub_configure=$ac_configure
24743     else
24744       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24745 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24746       ac_sub_configure=
24747     fi
24748
24749     # The recursion is here.
24750     if test -n "$ac_sub_configure"; then
24751       # Make the cache file name correct relative to the subdirectory.
24752       case $cache_file in
24753       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24754       *) # Relative path.
24755         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24756       esac
24757
24758       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24759 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24760       # The eval makes quoting arguments work.
24761       eval $ac_sub_configure $ac_sub_configure_args \
24762            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24763         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24764 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24765    { (exit 1); exit 1; }; }
24766     fi
24767
24768     cd $ac_popdir
24769   done
24770 fi
24771