Renamed -use-spec to -use-spec2000.
[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/179.art/Makefile"
1761
1762
1763           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1764
1765
1766           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1767
1768
1769           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1770
1771
1772           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1773
1774
1775           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1776
1777
1778           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1779
1780
1781           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1782
1783
1784           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1785
1786
1787           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1788
1789
1790           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1791
1792
1793           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1794
1795
1796           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1797
1798
1799           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1800
1801
1802           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1803
1804
1805           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1806
1807
1808           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1809
1810
1811           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1812
1813
1814           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1815
1816
1817           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1818
1819
1820           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1821
1822
1823           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1824
1825
1826           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1827
1828
1829           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1830
1831
1832           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1833
1834
1835           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1836
1837
1838           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1839
1840
1841           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1842
1843
1844           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1845
1846
1847           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1848
1849
1850           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1851
1852
1853           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1854
1855
1856           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1857
1858
1859           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1860
1861
1862           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1863
1864
1865           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1866
1867
1868           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1869
1870
1871           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1872
1873
1874           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1875
1876
1877           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1878
1879
1880           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1881
1882
1883           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1884
1885
1886           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1887
1888
1889           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1890
1891
1892           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1893
1894
1895           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1896
1897
1898           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1899
1900
1901           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1902
1903
1904           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1905
1906
1907           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1908
1909
1910           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1911
1912
1913           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1914
1915
1916           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1917
1918
1919           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1920
1921
1922           ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1923
1924
1925           ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1926
1927
1928           ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1929
1930
1931           ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1932
1933
1934           ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1935
1936
1937           ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1938
1939
1940           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1941
1942
1943           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1944
1945
1946           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1947
1948
1949           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1950
1951
1952           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1953
1954
1955           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1956
1957
1958           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1959
1960
1961           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1962
1963
1964           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1965
1966
1967           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1968
1969
1970           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1971
1972
1973           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1974
1975
1976           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1977
1978
1979           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1980
1981
1982           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1983
1984
1985           ac_config_commands="$ac_config_commands tools/Makefile"
1986
1987
1988           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1989
1990
1991           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1992
1993
1994           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1995
1996
1997           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1998
1999
2000           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
2001
2002
2003           ac_config_commands="$ac_config_commands tools/llc/Makefile"
2004
2005
2006           ac_config_commands="$ac_config_commands tools/llee/Makefile"
2007
2008
2009           ac_config_commands="$ac_config_commands tools/lli/Makefile"
2010
2011
2012           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2013
2014
2015           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2016
2017
2018           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
2019
2020
2021           ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2022
2023
2024           ac_config_commands="$ac_config_commands tools/opt/Makefile"
2025
2026
2027           ac_config_commands="$ac_config_commands utils/Makefile"
2028
2029
2030           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2031
2032
2033           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2034
2035
2036           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2037
2038
2039           ac_config_commands="$ac_config_commands www/docs/Makefile"
2040
2041
2042           ac_config_commands="$ac_config_commands projects/Makefile"
2043
2044
2045           ac_config_commands="$ac_config_commands projects/sample/Makefile"
2046
2047
2048           ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2049
2050
2051           ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2052
2053
2054           ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2055
2056
2057           ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2058
2059
2060           ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2061
2062
2063           ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2064
2065
2066           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2067
2068
2069           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2070
2071
2072           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2073
2074
2075           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2076
2077
2078
2079
2080 # Find a good install program.  We prefer a C program (faster),
2081 # so one script is as good as another.  But avoid the broken or
2082 # incompatible versions:
2083 # SysV /etc/install, /usr/sbin/install
2084 # SunOS /usr/etc/install
2085 # IRIX /sbin/install
2086 # AIX /bin/install
2087 # AmigaOS /C/install, which installs bootblocks on floppy discs
2088 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2089 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2090 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2091 # ./install, which can be erroneously created by make from ./install.sh.
2092 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2093 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2094 if test -z "$INSTALL"; then
2095 if test "${ac_cv_path_install+set}" = set; then
2096   echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2100 do
2101   IFS=$as_save_IFS
2102   test -z "$as_dir" && as_dir=.
2103   # Account for people who put trailing slashes in PATH elements.
2104 case $as_dir/ in
2105   ./ | .// | /cC/* | \
2106   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2107   /usr/ucb/* ) ;;
2108   *)
2109     # OSF1 and SCO ODT 3.0 have their own names for install.
2110     # Don't use installbsd from OSF since it installs stuff as root
2111     # by default.
2112     for ac_prog in ginstall scoinst install; do
2113       for ac_exec_ext in '' $ac_executable_extensions; do
2114         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2115           if test $ac_prog = install &&
2116             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2117             # AIX install.  It has an incompatible calling convention.
2118             :
2119           elif test $ac_prog = install &&
2120             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2121             # program-specific install script used by HP pwplus--don't use.
2122             :
2123           else
2124             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2125             break 3
2126           fi
2127         fi
2128       done
2129     done
2130     ;;
2131 esac
2132 done
2133
2134
2135 fi
2136   if test "${ac_cv_path_install+set}" = set; then
2137     INSTALL=$ac_cv_path_install
2138   else
2139     # As a last resort, use the slow shell script.  We don't cache a
2140     # path for INSTALL within a source directory, because that will
2141     # break other packages using the cache if that directory is
2142     # removed, or if the path is relative.
2143     INSTALL=$ac_install_sh
2144   fi
2145 fi
2146 echo "$as_me:$LINENO: result: $INSTALL" >&5
2147 echo "${ECHO_T}$INSTALL" >&6
2148
2149 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2150 # It thinks the first close brace ends the variable substitution.
2151 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2152
2153 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2154
2155 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2156
2157
2158 # Make sure we can run config.sub.
2159 $ac_config_sub sun4 >/dev/null 2>&1 ||
2160   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2161 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2162    { (exit 1); exit 1; }; }
2163
2164 echo "$as_me:$LINENO: checking build system type" >&5
2165 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2166 if test "${ac_cv_build+set}" = set; then
2167   echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169   ac_cv_build_alias=$build_alias
2170 test -z "$ac_cv_build_alias" &&
2171   ac_cv_build_alias=`$ac_config_guess`
2172 test -z "$ac_cv_build_alias" &&
2173   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2174 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2175    { (exit 1); exit 1; }; }
2176 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2177   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2178 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2179    { (exit 1); exit 1; }; }
2180
2181 fi
2182 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2183 echo "${ECHO_T}$ac_cv_build" >&6
2184 build=$ac_cv_build
2185 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2186 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2187 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2188
2189
2190 echo "$as_me:$LINENO: checking host system type" >&5
2191 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2192 if test "${ac_cv_host+set}" = set; then
2193   echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195   ac_cv_host_alias=$host_alias
2196 test -z "$ac_cv_host_alias" &&
2197   ac_cv_host_alias=$ac_cv_build_alias
2198 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2199   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2200 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2201    { (exit 1); exit 1; }; }
2202
2203 fi
2204 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2205 echo "${ECHO_T}$ac_cv_host" >&6
2206 host=$ac_cv_host
2207 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2208 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2209 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2210
2211
2212 echo "$as_me:$LINENO: checking target system type" >&5
2213 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2214 if test "${ac_cv_target+set}" = set; then
2215   echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217   ac_cv_target_alias=$target_alias
2218 test "x$ac_cv_target_alias" = "x" &&
2219   ac_cv_target_alias=$ac_cv_host_alias
2220 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2221   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2222 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2223    { (exit 1); exit 1; }; }
2224
2225 fi
2226 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2227 echo "${ECHO_T}$ac_cv_target" >&6
2228 target=$ac_cv_target
2229 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2230 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2231 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2232
2233
2234 # The aliases save the names the user supplied, while $host etc.
2235 # will get canonicalized.
2236 test -n "$target_alias" &&
2237   test "$program_prefix$program_suffix$program_transform_name" = \
2238     NONENONEs,x,x, &&
2239   program_prefix=${target_alias}-
2240
2241 case $build in
2242         *i*86*)  OS=Linux
2243
2244                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2245
2246                  ;;
2247
2248         *sparc*) OS=SunOS
2249
2250                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2251
2252                  ;;
2253
2254         *)       OS=Unknown
2255
2256                  ;;
2257 esac
2258
2259 case $target in
2260         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2261
2262                           ;;
2263 esac
2264
2265 case $target in
2266         *i*86*)           ARCH=x86
2267
2268                           ;;
2269         *sparc*solaris*)  ARCH=Sparc
2270
2271                           ;;
2272 esac
2273
2274
2275 ac_ext=cc
2276 ac_cpp='$CXXCPP $CPPFLAGS'
2277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2280 if test -n "$ac_tool_prefix"; then
2281   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2282   do
2283     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2285 echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287 if test "${ac_cv_prog_CXX+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   if test -n "$CXX"; then
2291   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296   IFS=$as_save_IFS
2297   test -z "$as_dir" && as_dir=.
2298   for ac_exec_ext in '' $ac_executable_extensions; do
2299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302     break 2
2303   fi
2304 done
2305 done
2306
2307 fi
2308 fi
2309 CXX=$ac_cv_prog_CXX
2310 if test -n "$CXX"; then
2311   echo "$as_me:$LINENO: result: $CXX" >&5
2312 echo "${ECHO_T}$CXX" >&6
2313 else
2314   echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2316 fi
2317
2318     test -n "$CXX" && break
2319   done
2320 fi
2321 if test -z "$CXX"; then
2322   ac_ct_CXX=$CXX
2323   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2324 do
2325   # Extract the first word of "$ac_prog", so it can be a program name with args.
2326 set dummy $ac_prog; ac_word=$2
2327 echo "$as_me:$LINENO: checking for $ac_word" >&5
2328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2329 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2330   echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332   if test -n "$ac_ct_CXX"; then
2333   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2334 else
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2337 do
2338   IFS=$as_save_IFS
2339   test -z "$as_dir" && as_dir=.
2340   for ac_exec_ext in '' $ac_executable_extensions; do
2341   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2342     ac_cv_prog_ac_ct_CXX="$ac_prog"
2343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344     break 2
2345   fi
2346 done
2347 done
2348
2349 fi
2350 fi
2351 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2352 if test -n "$ac_ct_CXX"; then
2353   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2354 echo "${ECHO_T}$ac_ct_CXX" >&6
2355 else
2356   echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6
2358 fi
2359
2360   test -n "$ac_ct_CXX" && break
2361 done
2362 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2363
2364   CXX=$ac_ct_CXX
2365 fi
2366
2367
2368 # Provide some information about the compiler.
2369 echo "$as_me:$LINENO:" \
2370      "checking for C++ compiler version" >&5
2371 ac_compiler=`set X $ac_compile; echo $2`
2372 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2373   (eval $ac_compiler --version </dev/null >&5) 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }
2377 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2378   (eval $ac_compiler -v </dev/null >&5) 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); }
2382 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2383   (eval $ac_compiler -V </dev/null >&5) 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }
2387
2388 cat >conftest.$ac_ext <<_ACEOF
2389 #line $LINENO "configure"
2390 /* confdefs.h.  */
2391 _ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h.  */
2395
2396 int
2397 main ()
2398 {
2399
2400   ;
2401   return 0;
2402 }
2403 _ACEOF
2404 ac_clean_files_save=$ac_clean_files
2405 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2406 # Try to create an executable without -o first, disregard a.out.
2407 # It will help us diagnose broken compilers, and finding out an intuition
2408 # of exeext.
2409 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2410 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2411 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2412 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2413   (eval $ac_link_default) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }; then
2417   # Find the output, starting from the most likely.  This scheme is
2418 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2419 # resort.
2420
2421 # Be careful to initialize this variable, since it used to be cached.
2422 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2423 ac_cv_exeext=
2424 # b.out is created by i960 compilers.
2425 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2426 do
2427   test -f "$ac_file" || continue
2428   case $ac_file in
2429     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2430         ;;
2431     conftest.$ac_ext )
2432         # This is the source file.
2433         ;;
2434     [ab].out )
2435         # We found the default executable, but exeext='' is most
2436         # certainly right.
2437         break;;
2438     *.* )
2439         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2440         # FIXME: I believe we export ac_cv_exeext for Libtool,
2441         # but it would be cool to find out if it's true.  Does anybody
2442         # maintain Libtool? --akim.
2443         export ac_cv_exeext
2444         break;;
2445     * )
2446         break;;
2447   esac
2448 done
2449 else
2450   echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2452
2453 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2454 See \`config.log' for more details." >&5
2455 echo "$as_me: error: C++ compiler cannot create executables
2456 See \`config.log' for more details." >&2;}
2457    { (exit 77); exit 77; }; }
2458 fi
2459
2460 ac_exeext=$ac_cv_exeext
2461 echo "$as_me:$LINENO: result: $ac_file" >&5
2462 echo "${ECHO_T}$ac_file" >&6
2463
2464 # Check the compiler produces executables we can run.  If not, either
2465 # the compiler is broken, or we cross compile.
2466 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2467 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2468 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2469 # If not cross compiling, check that we can run a simple program.
2470 if test "$cross_compiling" != yes; then
2471   if { ac_try='./$ac_file'
2472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473   (eval $ac_try) 2>&5
2474   ac_status=$?
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); }; }; then
2477     cross_compiling=no
2478   else
2479     if test "$cross_compiling" = maybe; then
2480         cross_compiling=yes
2481     else
2482         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2483 If you meant to cross compile, use \`--host'.
2484 See \`config.log' for more details." >&5
2485 echo "$as_me: error: cannot run C++ compiled programs.
2486 If you meant to cross compile, use \`--host'.
2487 See \`config.log' for more details." >&2;}
2488    { (exit 1); exit 1; }; }
2489     fi
2490   fi
2491 fi
2492 echo "$as_me:$LINENO: result: yes" >&5
2493 echo "${ECHO_T}yes" >&6
2494
2495 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2496 ac_clean_files=$ac_clean_files_save
2497 # Check the compiler produces executables we can run.  If not, either
2498 # the compiler is broken, or we cross compile.
2499 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2500 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2501 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2502 echo "${ECHO_T}$cross_compiling" >&6
2503
2504 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2505 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2507   (eval $ac_link) 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); }; then
2511   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2512 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2513 # work properly (i.e., refer to `conftest.exe'), while it won't with
2514 # `rm'.
2515 for ac_file in conftest.exe conftest conftest.*; do
2516   test -f "$ac_file" || continue
2517   case $ac_file in
2518     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2519     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2520           export ac_cv_exeext
2521           break;;
2522     * ) break;;
2523   esac
2524 done
2525 else
2526   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2529 See \`config.log' for more details." >&2;}
2530    { (exit 1); exit 1; }; }
2531 fi
2532
2533 rm -f conftest$ac_cv_exeext
2534 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2535 echo "${ECHO_T}$ac_cv_exeext" >&6
2536
2537 rm -f conftest.$ac_ext
2538 EXEEXT=$ac_cv_exeext
2539 ac_exeext=$EXEEXT
2540 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2541 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2542 if test "${ac_cv_objext+set}" = set; then
2543   echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545   cat >conftest.$ac_ext <<_ACEOF
2546 #line $LINENO "configure"
2547 /* confdefs.h.  */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h.  */
2552
2553 int
2554 main ()
2555 {
2556
2557   ;
2558   return 0;
2559 }
2560 _ACEOF
2561 rm -f conftest.o conftest.obj
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563   (eval $ac_compile) 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }; then
2567   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2568   case $ac_file in
2569     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2570     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2571        break;;
2572   esac
2573 done
2574 else
2575   echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2577
2578 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2579 See \`config.log' for more details." >&5
2580 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2581 See \`config.log' for more details." >&2;}
2582    { (exit 1); exit 1; }; }
2583 fi
2584
2585 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2586 fi
2587 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2588 echo "${ECHO_T}$ac_cv_objext" >&6
2589 OBJEXT=$ac_cv_objext
2590 ac_objext=$OBJEXT
2591 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2592 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2593 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2594   echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596   cat >conftest.$ac_ext <<_ACEOF
2597 #line $LINENO "configure"
2598 /* confdefs.h.  */
2599 _ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h.  */
2603
2604 int
2605 main ()
2606 {
2607 #ifndef __GNUC__
2608        choke me
2609 #endif
2610
2611   ;
2612   return 0;
2613 }
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617   (eval $ac_compile) 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); } &&
2621          { ac_try='test -s conftest.$ac_objext'
2622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623   (eval $ac_try) 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; }; then
2627   ac_compiler_gnu=yes
2628 else
2629   echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632 ac_compiler_gnu=no
2633 fi
2634 rm -f conftest.$ac_objext conftest.$ac_ext
2635 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2636
2637 fi
2638 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2639 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2640 GXX=`test $ac_compiler_gnu = yes && echo yes`
2641 ac_test_CXXFLAGS=${CXXFLAGS+set}
2642 ac_save_CXXFLAGS=$CXXFLAGS
2643 CXXFLAGS="-g"
2644 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2645 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2646 if test "${ac_cv_prog_cxx_g+set}" = set; then
2647   echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649   cat >conftest.$ac_ext <<_ACEOF
2650 #line $LINENO "configure"
2651 /* confdefs.h.  */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h.  */
2656
2657 int
2658 main ()
2659 {
2660
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667   (eval $ac_compile) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); } &&
2671          { ac_try='test -s conftest.$ac_objext'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; }; then
2677   ac_cv_prog_cxx_g=yes
2678 else
2679   echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 ac_cv_prog_cxx_g=no
2683 fi
2684 rm -f conftest.$ac_objext conftest.$ac_ext
2685 fi
2686 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2687 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2688 if test "$ac_test_CXXFLAGS" = set; then
2689   CXXFLAGS=$ac_save_CXXFLAGS
2690 elif test $ac_cv_prog_cxx_g = yes; then
2691   if test "$GXX" = yes; then
2692     CXXFLAGS="-g -O2"
2693   else
2694     CXXFLAGS="-g"
2695   fi
2696 else
2697   if test "$GXX" = yes; then
2698     CXXFLAGS="-O2"
2699   else
2700     CXXFLAGS=
2701   fi
2702 fi
2703 for ac_declaration in \
2704    ''\
2705    '#include <stdlib.h>' \
2706    'extern "C" void std::exit (int) throw (); using std::exit;' \
2707    'extern "C" void std::exit (int); using std::exit;' \
2708    'extern "C" void exit (int) throw ();' \
2709    'extern "C" void exit (int);' \
2710    'void exit (int);'
2711 do
2712   cat >conftest.$ac_ext <<_ACEOF
2713 #line $LINENO "configure"
2714 /* confdefs.h.  */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h.  */
2719 #include <stdlib.h>
2720 $ac_declaration
2721 int
2722 main ()
2723 {
2724 exit (42);
2725   ;
2726   return 0;
2727 }
2728 _ACEOF
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731   (eval $ac_compile) 2>&5
2732   ac_status=$?
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); } &&
2735          { ac_try='test -s conftest.$ac_objext'
2736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737   (eval $ac_try) 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; }; then
2741   :
2742 else
2743   echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2745
2746 continue
2747 fi
2748 rm -f conftest.$ac_objext conftest.$ac_ext
2749   cat >conftest.$ac_ext <<_ACEOF
2750 #line $LINENO "configure"
2751 /* confdefs.h.  */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h.  */
2756 $ac_declaration
2757 int
2758 main ()
2759 {
2760 exit (42);
2761   ;
2762   return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767   (eval $ac_compile) 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); } &&
2771          { ac_try='test -s conftest.$ac_objext'
2772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773   (eval $ac_try) 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; }; then
2777   break
2778 else
2779   echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2781
2782 fi
2783 rm -f conftest.$ac_objext conftest.$ac_ext
2784 done
2785 rm -f conftest*
2786 if test -n "$ac_declaration"; then
2787   echo '#ifdef __cplusplus' >>confdefs.h
2788   echo $ac_declaration      >>confdefs.h
2789   echo '#endif'             >>confdefs.h
2790 fi
2791
2792 ac_ext=c
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797
2798 ac_ext=c
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803 if test -n "$ac_tool_prefix"; then
2804   for ac_prog in gcc
2805   do
2806     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2808 echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2810 if test "${ac_cv_prog_CC+set}" = set; then
2811   echo $ECHO_N "(cached) $ECHO_C" >&6
2812 else
2813   if test -n "$CC"; then
2814   ac_cv_prog_CC="$CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819   IFS=$as_save_IFS
2820   test -z "$as_dir" && as_dir=.
2821   for ac_exec_ext in '' $ac_executable_extensions; do
2822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825     break 2
2826   fi
2827 done
2828 done
2829
2830 fi
2831 fi
2832 CC=$ac_cv_prog_CC
2833 if test -n "$CC"; then
2834   echo "$as_me:$LINENO: result: $CC" >&5
2835 echo "${ECHO_T}$CC" >&6
2836 else
2837   echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2839 fi
2840
2841     test -n "$CC" && break
2842   done
2843 fi
2844 if test -z "$CC"; then
2845   ac_ct_CC=$CC
2846   for ac_prog in gcc
2847 do
2848   # Extract the first word of "$ac_prog", so it can be a program name with args.
2849 set dummy $ac_prog; ac_word=$2
2850 echo "$as_me:$LINENO: checking for $ac_word" >&5
2851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2853   echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855   if test -n "$ac_ct_CC"; then
2856   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861   IFS=$as_save_IFS
2862   test -z "$as_dir" && as_dir=.
2863   for ac_exec_ext in '' $ac_executable_extensions; do
2864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865     ac_cv_prog_ac_ct_CC="$ac_prog"
2866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867     break 2
2868   fi
2869 done
2870 done
2871
2872 fi
2873 fi
2874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2875 if test -n "$ac_ct_CC"; then
2876   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2877 echo "${ECHO_T}$ac_ct_CC" >&6
2878 else
2879   echo "$as_me:$LINENO: result: no" >&5
2880 echo "${ECHO_T}no" >&6
2881 fi
2882
2883   test -n "$ac_ct_CC" && break
2884 done
2885
2886   CC=$ac_ct_CC
2887 fi
2888
2889
2890 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2891 See \`config.log' for more details." >&5
2892 echo "$as_me: error: no acceptable C compiler found in \$PATH
2893 See \`config.log' for more details." >&2;}
2894    { (exit 1); exit 1; }; }
2895
2896 # Provide some information about the compiler.
2897 echo "$as_me:$LINENO:" \
2898      "checking for C compiler version" >&5
2899 ac_compiler=`set X $ac_compile; echo $2`
2900 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2901   (eval $ac_compiler --version </dev/null >&5) 2>&5
2902   ac_status=$?
2903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904   (exit $ac_status); }
2905 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2906   (eval $ac_compiler -v </dev/null >&5) 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); }
2910 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2911   (eval $ac_compiler -V </dev/null >&5) 2>&5
2912   ac_status=$?
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); }
2915
2916 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2917 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2918 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2919   echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921   cat >conftest.$ac_ext <<_ACEOF
2922 #line $LINENO "configure"
2923 /* confdefs.h.  */
2924 _ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h.  */
2928
2929 int
2930 main ()
2931 {
2932 #ifndef __GNUC__
2933        choke me
2934 #endif
2935
2936   ;
2937   return 0;
2938 }
2939 _ACEOF
2940 rm -f conftest.$ac_objext
2941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2942   (eval $ac_compile) 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); } &&
2946          { ac_try='test -s conftest.$ac_objext'
2947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948   (eval $ac_try) 2>&5
2949   ac_status=$?
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); }; }; then
2952   ac_compiler_gnu=yes
2953 else
2954   echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2956
2957 ac_compiler_gnu=no
2958 fi
2959 rm -f conftest.$ac_objext conftest.$ac_ext
2960 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2961
2962 fi
2963 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2964 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2965 GCC=`test $ac_compiler_gnu = yes && echo yes`
2966 ac_test_CFLAGS=${CFLAGS+set}
2967 ac_save_CFLAGS=$CFLAGS
2968 CFLAGS="-g"
2969 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2970 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2971 if test "${ac_cv_prog_cc_g+set}" = set; then
2972   echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974   cat >conftest.$ac_ext <<_ACEOF
2975 #line $LINENO "configure"
2976 /* confdefs.h.  */
2977 _ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h.  */
2981
2982 int
2983 main ()
2984 {
2985
2986   ;
2987   return 0;
2988 }
2989 _ACEOF
2990 rm -f conftest.$ac_objext
2991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2992   (eval $ac_compile) 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); } &&
2996          { ac_try='test -s conftest.$ac_objext'
2997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998   (eval $ac_try) 2>&5
2999   ac_status=$?
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); }; }; then
3002   ac_cv_prog_cc_g=yes
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007 ac_cv_prog_cc_g=no
3008 fi
3009 rm -f conftest.$ac_objext conftest.$ac_ext
3010 fi
3011 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3012 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3013 if test "$ac_test_CFLAGS" = set; then
3014   CFLAGS=$ac_save_CFLAGS
3015 elif test $ac_cv_prog_cc_g = yes; then
3016   if test "$GCC" = yes; then
3017     CFLAGS="-g -O2"
3018   else
3019     CFLAGS="-g"
3020   fi
3021 else
3022   if test "$GCC" = yes; then
3023     CFLAGS="-O2"
3024   else
3025     CFLAGS=
3026   fi
3027 fi
3028 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3029 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3030 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3031   echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033   ac_cv_prog_cc_stdc=no
3034 ac_save_CC=$CC
3035 cat >conftest.$ac_ext <<_ACEOF
3036 #line $LINENO "configure"
3037 /* confdefs.h.  */
3038 _ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h.  */
3042 #include <stdarg.h>
3043 #include <stdio.h>
3044 #include <sys/types.h>
3045 #include <sys/stat.h>
3046 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3047 struct buf { int x; };
3048 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3049 static char *e (p, i)
3050      char **p;
3051      int i;
3052 {
3053   return p[i];
3054 }
3055 static char *f (char * (*g) (char **, int), char **p, ...)
3056 {
3057   char *s;
3058   va_list v;
3059   va_start (v,p);
3060   s = g (p, va_arg (v,int));
3061   va_end (v);
3062   return s;
3063 }
3064 int test (int i, double x);
3065 struct s1 {int (*f) (int a);};
3066 struct s2 {int (*f) (double a);};
3067 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3068 int argc;
3069 char **argv;
3070 int
3071 main ()
3072 {
3073 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3074   ;
3075   return 0;
3076 }
3077 _ACEOF
3078 # Don't try gcc -ansi; that turns off useful extensions and
3079 # breaks some systems' header files.
3080 # AIX                   -qlanglvl=ansi
3081 # Ultrix and OSF/1      -std1
3082 # HP-UX 10.20 and later -Ae
3083 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3084 # SVR4                  -Xc -D__EXTENSIONS__
3085 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3086 do
3087   CC="$ac_save_CC $ac_arg"
3088   rm -f conftest.$ac_objext
3089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090   (eval $ac_compile) 2>&5
3091   ac_status=$?
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } &&
3094          { ac_try='test -s conftest.$ac_objext'
3095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096   (eval $ac_try) 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); }; }; then
3100   ac_cv_prog_cc_stdc=$ac_arg
3101 break
3102 else
3103   echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106 fi
3107 rm -f conftest.$ac_objext
3108 done
3109 rm -f conftest.$ac_ext conftest.$ac_objext
3110 CC=$ac_save_CC
3111
3112 fi
3113
3114 case "x$ac_cv_prog_cc_stdc" in
3115   x|xno)
3116     echo "$as_me:$LINENO: result: none needed" >&5
3117 echo "${ECHO_T}none needed" >&6 ;;
3118   *)
3119     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3120 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3121     CC="$CC $ac_cv_prog_cc_stdc" ;;
3122 esac
3123
3124 # Some people use a C++ compiler to compile C.  Since we use `exit',
3125 # in C++ we need to declare it.  In case someone uses the same compiler
3126 # for both compiling C and C++ we need to have the C++ compiler decide
3127 # the declaration of exit, since it's the most demanding environment.
3128 cat >conftest.$ac_ext <<_ACEOF
3129 #ifndef __cplusplus
3130   choke me
3131 #endif
3132 _ACEOF
3133 rm -f conftest.$ac_objext
3134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3135   (eval $ac_compile) 2>&5
3136   ac_status=$?
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); } &&
3139          { ac_try='test -s conftest.$ac_objext'
3140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141   (eval $ac_try) 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }; }; then
3145   for ac_declaration in \
3146    ''\
3147    '#include <stdlib.h>' \
3148    'extern "C" void std::exit (int) throw (); using std::exit;' \
3149    'extern "C" void std::exit (int); using std::exit;' \
3150    'extern "C" void exit (int) throw ();' \
3151    'extern "C" void exit (int);' \
3152    'void exit (int);'
3153 do
3154   cat >conftest.$ac_ext <<_ACEOF
3155 #line $LINENO "configure"
3156 /* confdefs.h.  */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h.  */
3161 #include <stdlib.h>
3162 $ac_declaration
3163 int
3164 main ()
3165 {
3166 exit (42);
3167   ;
3168   return 0;
3169 }
3170 _ACEOF
3171 rm -f conftest.$ac_objext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173   (eval $ac_compile) 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); } &&
3177          { ac_try='test -s conftest.$ac_objext'
3178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179   (eval $ac_try) 2>&5
3180   ac_status=$?
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); }; }; then
3183   :
3184 else
3185   echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188 continue
3189 fi
3190 rm -f conftest.$ac_objext conftest.$ac_ext
3191   cat >conftest.$ac_ext <<_ACEOF
3192 #line $LINENO "configure"
3193 /* confdefs.h.  */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h.  */
3198 $ac_declaration
3199 int
3200 main ()
3201 {
3202 exit (42);
3203   ;
3204   return 0;
3205 }
3206 _ACEOF
3207 rm -f conftest.$ac_objext
3208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209   (eval $ac_compile) 2>&5
3210   ac_status=$?
3211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212   (exit $ac_status); } &&
3213          { ac_try='test -s conftest.$ac_objext'
3214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215   (eval $ac_try) 2>&5
3216   ac_status=$?
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); }; }; then
3219   break
3220 else
3221   echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224 fi
3225 rm -f conftest.$ac_objext conftest.$ac_ext
3226 done
3227 rm -f conftest*
3228 if test -n "$ac_declaration"; then
3229   echo '#ifdef __cplusplus' >>confdefs.h
3230   echo $ac_declaration      >>confdefs.h
3231   echo '#endif'             >>confdefs.h
3232 fi
3233
3234 else
3235   echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3237
3238 fi
3239 rm -f conftest.$ac_objext conftest.$ac_ext
3240 ac_ext=c
3241 ac_cpp='$CPP $CPPFLAGS'
3242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3245
3246 ac_ext=c
3247 ac_cpp='$CPP $CPPFLAGS'
3248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3252 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3253 # On Suns, sometimes $CPP names a directory.
3254 if test -n "$CPP" && test -d "$CPP"; then
3255   CPP=
3256 fi
3257 if test -z "$CPP"; then
3258   if test "${ac_cv_prog_CPP+set}" = set; then
3259   echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261       # Double quotes because CPP needs to be expanded
3262     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3263     do
3264       ac_preproc_ok=false
3265 for ac_c_preproc_warn_flag in '' yes
3266 do
3267   # Use a header file that comes with gcc, so configuring glibc
3268   # with a fresh cross-compiler works.
3269   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3270   # <limits.h> exists even on freestanding compilers.
3271   # On the NeXT, cc -E runs the code through the compiler's parser,
3272   # not just through cpp. "Syntax error" is here to catch this case.
3273   cat >conftest.$ac_ext <<_ACEOF
3274 #line $LINENO "configure"
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280 #ifdef __STDC__
3281 # include <limits.h>
3282 #else
3283 # include <assert.h>
3284 #endif
3285                      Syntax error
3286 _ACEOF
3287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3288   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3289   ac_status=$?
3290   grep -v '^ *+' conftest.er1 >conftest.err
3291   rm -f conftest.er1
3292   cat conftest.err >&5
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); } >/dev/null; then
3295   if test -s conftest.err; then
3296     ac_cpp_err=$ac_c_preproc_warn_flag
3297   else
3298     ac_cpp_err=
3299   fi
3300 else
3301   ac_cpp_err=yes
3302 fi
3303 if test -z "$ac_cpp_err"; then
3304   :
3305 else
3306   echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309   # Broken: fails on valid input.
3310 continue
3311 fi
3312 rm -f conftest.err conftest.$ac_ext
3313
3314   # OK, works on sane cases.  Now check whether non-existent headers
3315   # can be detected and how.
3316   cat >conftest.$ac_ext <<_ACEOF
3317 #line $LINENO "configure"
3318 /* confdefs.h.  */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h.  */
3323 #include <ac_nonexistent.h>
3324 _ACEOF
3325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3326   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3327   ac_status=$?
3328   grep -v '^ *+' conftest.er1 >conftest.err
3329   rm -f conftest.er1
3330   cat conftest.err >&5
3331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332   (exit $ac_status); } >/dev/null; then
3333   if test -s conftest.err; then
3334     ac_cpp_err=$ac_c_preproc_warn_flag
3335   else
3336     ac_cpp_err=
3337   fi
3338 else
3339   ac_cpp_err=yes
3340 fi
3341 if test -z "$ac_cpp_err"; then
3342   # Broken: success on invalid input.
3343 continue
3344 else
3345   echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3347
3348   # Passes both tests.
3349 ac_preproc_ok=:
3350 break
3351 fi
3352 rm -f conftest.err conftest.$ac_ext
3353
3354 done
3355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3356 rm -f conftest.err conftest.$ac_ext
3357 if $ac_preproc_ok; then
3358   break
3359 fi
3360
3361     done
3362     ac_cv_prog_CPP=$CPP
3363
3364 fi
3365   CPP=$ac_cv_prog_CPP
3366 else
3367   ac_cv_prog_CPP=$CPP
3368 fi
3369 echo "$as_me:$LINENO: result: $CPP" >&5
3370 echo "${ECHO_T}$CPP" >&6
3371 ac_preproc_ok=false
3372 for ac_c_preproc_warn_flag in '' yes
3373 do
3374   # Use a header file that comes with gcc, so configuring glibc
3375   # with a fresh cross-compiler works.
3376   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3377   # <limits.h> exists even on freestanding compilers.
3378   # On the NeXT, cc -E runs the code through the compiler's parser,
3379   # not just through cpp. "Syntax error" is here to catch this case.
3380   cat >conftest.$ac_ext <<_ACEOF
3381 #line $LINENO "configure"
3382 /* confdefs.h.  */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h.  */
3387 #ifdef __STDC__
3388 # include <limits.h>
3389 #else
3390 # include <assert.h>
3391 #endif
3392                      Syntax error
3393 _ACEOF
3394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3395   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3396   ac_status=$?
3397   grep -v '^ *+' conftest.er1 >conftest.err
3398   rm -f conftest.er1
3399   cat conftest.err >&5
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); } >/dev/null; then
3402   if test -s conftest.err; then
3403     ac_cpp_err=$ac_c_preproc_warn_flag
3404   else
3405     ac_cpp_err=
3406   fi
3407 else
3408   ac_cpp_err=yes
3409 fi
3410 if test -z "$ac_cpp_err"; then
3411   :
3412 else
3413   echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416   # Broken: fails on valid input.
3417 continue
3418 fi
3419 rm -f conftest.err conftest.$ac_ext
3420
3421   # OK, works on sane cases.  Now check whether non-existent headers
3422   # can be detected and how.
3423   cat >conftest.$ac_ext <<_ACEOF
3424 #line $LINENO "configure"
3425 /* confdefs.h.  */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h.  */
3430 #include <ac_nonexistent.h>
3431 _ACEOF
3432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3433   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3434   ac_status=$?
3435   grep -v '^ *+' conftest.er1 >conftest.err
3436   rm -f conftest.er1
3437   cat conftest.err >&5
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); } >/dev/null; then
3440   if test -s conftest.err; then
3441     ac_cpp_err=$ac_c_preproc_warn_flag
3442   else
3443     ac_cpp_err=
3444   fi
3445 else
3446   ac_cpp_err=yes
3447 fi
3448 if test -z "$ac_cpp_err"; then
3449   # Broken: success on invalid input.
3450 continue
3451 else
3452   echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455   # Passes both tests.
3456 ac_preproc_ok=:
3457 break
3458 fi
3459 rm -f conftest.err conftest.$ac_ext
3460
3461 done
3462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3463 rm -f conftest.err conftest.$ac_ext
3464 if $ac_preproc_ok; then
3465   :
3466 else
3467   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3468 See \`config.log' for more details." >&5
3469 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3470 See \`config.log' for more details." >&2;}
3471    { (exit 1); exit 1; }; }
3472 fi
3473
3474 ac_ext=c
3475 ac_cpp='$CPP $CPPFLAGS'
3476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3479
3480
3481 if test "$GCC" != "yes"
3482 then
3483         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3484 echo "$as_me: error: gcc required but not found" >&2;}
3485    { (exit 1); exit 1; }; }
3486 fi
3487
3488 if test "$GXX" != "yes"
3489 then
3490         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3491 echo "$as_me: error: g++ required but not found" >&2;}
3492    { (exit 1); exit 1; }; }
3493 fi
3494
3495 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3496 if test "$gccmajor" -lt "3"
3497 then
3498         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3499 echo "$as_me: error: gcc 3.x required" >&2;}
3500    { (exit 1); exit 1; }; }
3501 fi
3502
3503  echo "$as_me:$LINENO: checking for GNU make" >&5
3504 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3505 if test "${_cv_gnu_make_command+set}" = set; then
3506   echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508   _cv_gnu_make_command='' ;
3509                 for a in "$MAKE" make gmake gnumake ; do
3510                         if test -z "$a" ; then continue ; fi ;
3511                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3512                                 _cv_gnu_make_command=$a ;
3513                                 break;
3514                         fi
3515                 done ;
3516
3517 fi
3518 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3519 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3520         if test  "x$_cv_gnu_make_command" != "x"  ; then
3521                 ifGNUmake='' ;
3522         else
3523                 ifGNUmake='#' ;
3524                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3525 echo "${ECHO_T}\"Not found\"" >&6;
3526         fi
3527
3528
3529 if test -z "$_cv_gnu_make_command"
3530 then
3531         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3532 echo "$as_me: error: GNU Make required but not found" >&2;}
3533    { (exit 1); exit 1; }; }
3534 fi
3535
3536
3537 echo "$as_me:$LINENO: checking " >&5
3538 echo $ECHO_N "checking ... $ECHO_C" >&6
3539 if test "${ac_cv_has_flex+set}" = set; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   for ac_prog in flex lex
3543 do
3544   # Extract the first word of "$ac_prog", so it can be a program name with args.
3545 set dummy $ac_prog; ac_word=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_prog_LEX+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   if test -n "$LEX"; then
3552   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557   IFS=$as_save_IFS
3558   test -z "$as_dir" && as_dir=.
3559   for ac_exec_ext in '' $ac_executable_extensions; do
3560   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561     ac_cv_prog_LEX="$ac_prog"
3562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3563     break 2
3564   fi
3565 done
3566 done
3567
3568 fi
3569 fi
3570 LEX=$ac_cv_prog_LEX
3571 if test -n "$LEX"; then
3572   echo "$as_me:$LINENO: result: $LEX" >&5
3573 echo "${ECHO_T}$LEX" >&6
3574 else
3575   echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6
3577 fi
3578
3579   test -n "$LEX" && break
3580 done
3581 test -n "$LEX" || LEX=":"
3582
3583 if test -z "$LEXLIB"
3584 then
3585   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3586 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3587 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3588   echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590   ac_check_lib_save_LIBS=$LIBS
3591 LIBS="-lfl  $LIBS"
3592 cat >conftest.$ac_ext <<_ACEOF
3593 #line $LINENO "configure"
3594 /* confdefs.h.  */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h.  */
3599
3600 /* Override any gcc2 internal prototype to avoid an error.  */
3601 #ifdef __cplusplus
3602 extern "C"
3603 #endif
3604 /* We use char because int might match the return type of a gcc2
3605    builtin and then its argument prototype would still apply.  */
3606 char yywrap ();
3607 int
3608 main ()
3609 {
3610 yywrap ();
3611   ;
3612   return 0;
3613 }
3614 _ACEOF
3615 rm -f conftest.$ac_objext conftest$ac_exeext
3616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3617   (eval $ac_link) 2>&5
3618   ac_status=$?
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); } &&
3621          { ac_try='test -s conftest$ac_exeext'
3622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623   (eval $ac_try) 2>&5
3624   ac_status=$?
3625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); }; }; then
3627   ac_cv_lib_fl_yywrap=yes
3628 else
3629   echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3631
3632 ac_cv_lib_fl_yywrap=no
3633 fi
3634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3635 LIBS=$ac_check_lib_save_LIBS
3636 fi
3637 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3638 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3639 if test $ac_cv_lib_fl_yywrap = yes; then
3640   LEXLIB="-lfl"
3641 else
3642   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3643 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3644 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3645   echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647   ac_check_lib_save_LIBS=$LIBS
3648 LIBS="-ll  $LIBS"
3649 cat >conftest.$ac_ext <<_ACEOF
3650 #line $LINENO "configure"
3651 /* confdefs.h.  */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h.  */
3656
3657 /* Override any gcc2 internal prototype to avoid an error.  */
3658 #ifdef __cplusplus
3659 extern "C"
3660 #endif
3661 /* We use char because int might match the return type of a gcc2
3662    builtin and then its argument prototype would still apply.  */
3663 char yywrap ();
3664 int
3665 main ()
3666 {
3667 yywrap ();
3668   ;
3669   return 0;
3670 }
3671 _ACEOF
3672 rm -f conftest.$ac_objext conftest$ac_exeext
3673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3674   (eval $ac_link) 2>&5
3675   ac_status=$?
3676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677   (exit $ac_status); } &&
3678          { ac_try='test -s conftest$ac_exeext'
3679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680   (eval $ac_try) 2>&5
3681   ac_status=$?
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); }; }; then
3684   ac_cv_lib_l_yywrap=yes
3685 else
3686   echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3688
3689 ac_cv_lib_l_yywrap=no
3690 fi
3691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3692 LIBS=$ac_check_lib_save_LIBS
3693 fi
3694 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3695 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3696 if test $ac_cv_lib_l_yywrap = yes; then
3697   LEXLIB="-ll"
3698 fi
3699
3700 fi
3701
3702 fi
3703
3704 if test "x$LEX" != "x:"; then
3705   echo "$as_me:$LINENO: checking lex output file root" >&5
3706 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3707 if test "${ac_cv_prog_lex_root+set}" = set; then
3708   echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710   # The minimal lex program is just a single line: %%.  But some broken lexes
3711 # (Solaris, I think it was) want two %% lines, so accommodate them.
3712 cat >conftest.l <<_ACEOF
3713 %%
3714 %%
3715 _ACEOF
3716 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3717   (eval $LEX conftest.l) 2>&5
3718   ac_status=$?
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); }
3721 if test -f lex.yy.c; then
3722   ac_cv_prog_lex_root=lex.yy
3723 elif test -f lexyy.c; then
3724   ac_cv_prog_lex_root=lexyy
3725 else
3726   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3727 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3728    { (exit 1); exit 1; }; }
3729 fi
3730 fi
3731 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3732 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3733 rm -f conftest.l
3734 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3735
3736 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3737 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3738 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3739   echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741   # POSIX says lex can declare yytext either as a pointer or an array; the
3742 # default is implementation-dependent. Figure out which it is, since
3743 # not all implementations provide the %pointer and %array declarations.
3744 ac_cv_prog_lex_yytext_pointer=no
3745 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3746 ac_save_LIBS=$LIBS
3747 LIBS="$LIBS $LEXLIB"
3748 cat >conftest.$ac_ext <<_ACEOF
3749 `cat $LEX_OUTPUT_ROOT.c`
3750 _ACEOF
3751 rm -f conftest.$ac_objext conftest$ac_exeext
3752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3753   (eval $ac_link) 2>&5
3754   ac_status=$?
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); } &&
3757          { ac_try='test -s conftest$ac_exeext'
3758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759   (eval $ac_try) 2>&5
3760   ac_status=$?
3761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762   (exit $ac_status); }; }; then
3763   ac_cv_prog_lex_yytext_pointer=yes
3764 else
3765   echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3767
3768 fi
3769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3770 LIBS=$ac_save_LIBS
3771 rm -f "${LEX_OUTPUT_ROOT}.c"
3772
3773 fi
3774 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3775 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3776 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3777
3778 cat >>confdefs.h <<\_ACEOF
3779 #define YYTEXT_POINTER 1
3780 _ACEOF
3781
3782 fi
3783
3784 fi
3785
3786 fi
3787 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3788 echo "${ECHO_T}$ac_cv_has_flex" >&6
3789 if test "$LEX" != "flex"; then
3790   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3791 echo "$as_me: error: flex not found but required" >&2;}
3792    { (exit 1); exit 1; }; }
3793 fi
3794
3795 echo "$as_me:$LINENO: checking " >&5
3796 echo $ECHO_N "checking ... $ECHO_C" >&6
3797 if test "${ac_cv_has_bison+set}" = set; then
3798   echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800   for ac_prog in 'bison -y' byacc
3801 do
3802   # Extract the first word of "$ac_prog", so it can be a program name with args.
3803 set dummy $ac_prog; ac_word=$2
3804 echo "$as_me:$LINENO: checking for $ac_word" >&5
3805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3806 if test "${ac_cv_prog_YACC+set}" = set; then
3807   echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809   if test -n "$YACC"; then
3810   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3811 else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3814 do
3815   IFS=$as_save_IFS
3816   test -z "$as_dir" && as_dir=.
3817   for ac_exec_ext in '' $ac_executable_extensions; do
3818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3819     ac_cv_prog_YACC="$ac_prog"
3820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3821     break 2
3822   fi
3823 done
3824 done
3825
3826 fi
3827 fi
3828 YACC=$ac_cv_prog_YACC
3829 if test -n "$YACC"; then
3830   echo "$as_me:$LINENO: result: $YACC" >&5
3831 echo "${ECHO_T}$YACC" >&6
3832 else
3833   echo "$as_me:$LINENO: result: no" >&5
3834 echo "${ECHO_T}no" >&6
3835 fi
3836
3837   test -n "$YACC" && break
3838 done
3839 test -n "$YACC" || YACC="yacc"
3840
3841
3842 fi
3843 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3844 echo "${ECHO_T}$ac_cv_has_bison" >&6
3845 if test "$YACC" != "bison -y"; then
3846   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3847 echo "$as_me: error: bison not found but required" >&2;}
3848    { (exit 1); exit 1; }; }
3849 else
3850   YACC=bison
3851
3852 fi
3853
3854
3855 # Check whether --enable-shared or --disable-shared was given.
3856 if test "${enable_shared+set}" = set; then
3857   enableval="$enable_shared"
3858   p=${PACKAGE-default}
3859     case $enableval in
3860     yes) enable_shared=yes ;;
3861     no) enable_shared=no ;;
3862     *)
3863       enable_shared=no
3864       # Look at the argument we got.  We use all the common list separators.
3865       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3866       for pkg in $enableval; do
3867         IFS="$lt_save_ifs"
3868         if test "X$pkg" = "X$p"; then
3869           enable_shared=yes
3870         fi
3871       done
3872       IFS="$lt_save_ifs"
3873       ;;
3874     esac
3875 else
3876   enable_shared=yes
3877 fi;
3878
3879 # Check whether --enable-static or --disable-static was given.
3880 if test "${enable_static+set}" = set; then
3881   enableval="$enable_static"
3882   p=${PACKAGE-default}
3883     case $enableval in
3884     yes) enable_static=yes ;;
3885     no) enable_static=no ;;
3886     *)
3887      enable_static=no
3888       # Look at the argument we got.  We use all the common list separators.
3889       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3890       for pkg in $enableval; do
3891         IFS="$lt_save_ifs"
3892         if test "X$pkg" = "X$p"; then
3893           enable_static=yes
3894         fi
3895       done
3896       IFS="$lt_save_ifs"
3897       ;;
3898     esac
3899 else
3900   enable_static=yes
3901 fi;
3902
3903 # Check whether --enable-fast-install or --disable-fast-install was given.
3904 if test "${enable_fast_install+set}" = set; then
3905   enableval="$enable_fast_install"
3906   p=${PACKAGE-default}
3907     case $enableval in
3908     yes) enable_fast_install=yes ;;
3909     no) enable_fast_install=no ;;
3910     *)
3911       enable_fast_install=no
3912       # Look at the argument we got.  We use all the common list separators.
3913       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3914       for pkg in $enableval; do
3915         IFS="$lt_save_ifs"
3916         if test "X$pkg" = "X$p"; then
3917           enable_fast_install=yes
3918         fi
3919       done
3920       IFS="$lt_save_ifs"
3921       ;;
3922     esac
3923 else
3924   enable_fast_install=yes
3925 fi;
3926
3927 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3928 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3929 if test "${lt_cv_path_SED+set}" = set; then
3930   echo $ECHO_N "(cached) $ECHO_C" >&6
3931 else
3932   # Loop through the user's path and test for sed and gsed.
3933 # Then use that list of sed's as ones to test for truncation.
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH
3936 do
3937   IFS=$as_save_IFS
3938   test -z "$as_dir" && as_dir=.
3939   for lt_ac_prog in sed gsed; do
3940     for ac_exec_ext in '' $ac_executable_extensions; do
3941       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3942         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3943       fi
3944     done
3945   done
3946 done
3947 lt_ac_max=0
3948 lt_ac_count=0
3949 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3950 # along with /bin/sed that truncates output.
3951 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3952   test ! -f $lt_ac_sed && break
3953   cat /dev/null > conftest.in
3954   lt_ac_count=0
3955   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3956   # Check for GNU sed and select it if it is found.
3957   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3958     lt_cv_path_SED=$lt_ac_sed
3959     break
3960   fi
3961   while true; do
3962     cat conftest.in conftest.in >conftest.tmp
3963     mv conftest.tmp conftest.in
3964     cp conftest.in conftest.nl
3965     echo >>conftest.nl
3966     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3967     cmp -s conftest.out conftest.nl || break
3968     # 10000 chars as input seems more than enough
3969     test $lt_ac_count -gt 10 && break
3970     lt_ac_count=`expr $lt_ac_count + 1`
3971     if test $lt_ac_count -gt $lt_ac_max; then
3972       lt_ac_max=$lt_ac_count
3973       lt_cv_path_SED=$lt_ac_sed
3974     fi
3975   done
3976 done
3977 SED=$lt_cv_path_SED
3978
3979 fi
3980
3981 echo "$as_me:$LINENO: result: $SED" >&5
3982 echo "${ECHO_T}$SED" >&6
3983
3984 echo "$as_me:$LINENO: checking for egrep" >&5
3985 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3986 if test "${ac_cv_prog_egrep+set}" = set; then
3987   echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3990     then ac_cv_prog_egrep='grep -E'
3991     else ac_cv_prog_egrep='egrep'
3992     fi
3993 fi
3994 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3995 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3996  EGREP=$ac_cv_prog_egrep
3997
3998
3999
4000 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4001 if test "${with_gnu_ld+set}" = set; then
4002   withval="$with_gnu_ld"
4003   test "$withval" = no || with_gnu_ld=yes
4004 else
4005   with_gnu_ld=no
4006 fi;
4007 ac_prog=ld
4008 if test "$GCC" = yes; then
4009   # Check if gcc -print-prog-name=ld gives a path.
4010   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4011 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4012   case $host in
4013   *-*-mingw*)
4014     # gcc leaves a trailing carriage return which upsets mingw
4015     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4016   *)
4017     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4018   esac
4019   case $ac_prog in
4020     # Accept absolute paths.
4021     [\\/]* | ?:[\\/]*)
4022       re_direlt='/[^/][^/]*/\.\./'
4023       # Canonicalize the path of ld
4024       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4025       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4026         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4027       done
4028       test -z "$LD" && LD="$ac_prog"
4029       ;;
4030   "")
4031     # If it fails, then pretend we aren't using GCC.
4032     ac_prog=ld
4033     ;;
4034   *)
4035     # If it is relative, then search for the first ld in PATH.
4036     with_gnu_ld=unknown
4037     ;;
4038   esac
4039 elif test "$with_gnu_ld" = yes; then
4040   echo "$as_me:$LINENO: checking for GNU ld" >&5
4041 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4042 else
4043   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4044 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4045 fi
4046 if test "${lt_cv_path_LD+set}" = set; then
4047   echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049   if test -z "$LD"; then
4050   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4051   for ac_dir in $PATH; do
4052     IFS="$lt_save_ifs"
4053     test -z "$ac_dir" && ac_dir=.
4054     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4055       lt_cv_path_LD="$ac_dir/$ac_prog"
4056       # Check to see if the program is GNU ld.  I'd rather use --version,
4057       # but apparently some GNU ld's only accept -v.
4058       # Break only if it was the GNU/non-GNU ld that we prefer.
4059       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4060       *GNU* | *'with BFD'*)
4061         test "$with_gnu_ld" != no && break
4062         ;;
4063       *)
4064         test "$with_gnu_ld" != yes && break
4065         ;;
4066       esac
4067     fi
4068   done
4069   IFS="$lt_save_ifs"
4070 else
4071   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4072 fi
4073 fi
4074
4075 LD="$lt_cv_path_LD"
4076 if test -n "$LD"; then
4077   echo "$as_me:$LINENO: result: $LD" >&5
4078 echo "${ECHO_T}$LD" >&6
4079 else
4080   echo "$as_me:$LINENO: result: no" >&5
4081 echo "${ECHO_T}no" >&6
4082 fi
4083 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4084 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4085    { (exit 1); exit 1; }; }
4086 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4087 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4088 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4092 case `"$LD" -v 2>&1 </dev/null` in
4093 *GNU* | *'with BFD'*)
4094   lt_cv_prog_gnu_ld=yes
4095   ;;
4096 *)
4097   lt_cv_prog_gnu_ld=no
4098   ;;
4099 esac
4100 fi
4101 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4102 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4103 with_gnu_ld=$lt_cv_prog_gnu_ld
4104
4105
4106 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4107 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4108 if test "${lt_cv_ld_reload_flag+set}" = set; then
4109   echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111   lt_cv_ld_reload_flag='-r'
4112 fi
4113 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4114 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4115 reload_flag=$lt_cv_ld_reload_flag
4116 case $reload_flag in
4117 "" | " "*) ;;
4118 *) reload_flag=" $reload_flag" ;;
4119 esac
4120 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4121
4122 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4123 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4124 if test "${lt_cv_path_NM+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   if test -n "$NM"; then
4128   # Let the user override the test.
4129   lt_cv_path_NM="$NM"
4130 else
4131   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4132   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4133     IFS="$lt_save_ifs"
4134     test -z "$ac_dir" && ac_dir=.
4135     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4136     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4137       # Check to see if the nm accepts a BSD-compat flag.
4138       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4139       #   nm: unknown option "B" ignored
4140       # Tru64's nm complains that /dev/null is an invalid object file
4141       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4142       */dev/null* | *'Invalid file or object type'*)
4143         lt_cv_path_NM="$tmp_nm -B"
4144         break
4145         ;;
4146       *)
4147         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4148         */dev/null*)
4149           lt_cv_path_NM="$tmp_nm -p"
4150           break
4151           ;;
4152         *)
4153           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4154           continue # so that we can try to find one that supports BSD flags
4155           ;;
4156         esac
4157       esac
4158     fi
4159   done
4160   IFS="$lt_save_ifs"
4161   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4162 fi
4163 fi
4164 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4165 echo "${ECHO_T}$lt_cv_path_NM" >&6
4166 NM="$lt_cv_path_NM"
4167
4168 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4169 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4170 LN_S=$as_ln_s
4171 if test "$LN_S" = "ln -s"; then
4172   echo "$as_me:$LINENO: result: yes" >&5
4173 echo "${ECHO_T}yes" >&6
4174 else
4175   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4176 echo "${ECHO_T}no, using $LN_S" >&6
4177 fi
4178
4179 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4180 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4181 if test "${lt_cv_deplibs_check_method+set}" = set; then
4182   echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184   lt_cv_file_magic_cmd='$MAGIC_CMD'
4185 lt_cv_file_magic_test_file=
4186 lt_cv_deplibs_check_method='unknown'
4187 # Need to set the preceding variable on all platforms that support
4188 # interlibrary dependencies.
4189 # 'none' -- dependencies not supported.
4190 # `unknown' -- same as none, but documents that we really don't know.
4191 # 'pass_all' -- all dependencies passed with no checks.
4192 # 'test_compile' -- check by making test program.
4193 # 'file_magic [[regex]]' -- check by looking for files in library path
4194 # which responds to the $file_magic_cmd with a given extended regex.
4195 # If you have `file' or equivalent on your system and you're not sure
4196 # whether `pass_all' will *always* work, you probably want this one.
4197
4198 case $host_os in
4199 aix4* | aix5*)
4200   lt_cv_deplibs_check_method=pass_all
4201   ;;
4202
4203 beos*)
4204   lt_cv_deplibs_check_method=pass_all
4205   ;;
4206
4207 bsdi4*)
4208   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4209   lt_cv_file_magic_cmd='/usr/bin/file -L'
4210   lt_cv_file_magic_test_file=/shlib/libc.so
4211   ;;
4212
4213 cygwin* | mingw* | pw32*)
4214   # win32_libid is a shell function defined in ltmain.sh
4215   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4216   lt_cv_file_magic_cmd='win32_libid'
4217   ;;
4218
4219 darwin* | rhapsody*)
4220   # this will be overwritten by pass_all, but leave it in just in case
4221   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4222   lt_cv_file_magic_cmd='/usr/bin/file -L'
4223   case "$host_os" in
4224   rhapsody* | darwin1.[012])
4225     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4226     ;;
4227   *) # Darwin 1.3 on
4228     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4229     ;;
4230   esac
4231   lt_cv_deplibs_check_method=pass_all
4232   ;;
4233
4234 freebsd*)
4235   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4236     case $host_cpu in
4237     i*86 )
4238       # Not sure whether the presence of OpenBSD here was a mistake.
4239       # Let's accept both of them until this is cleared up.
4240       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4241       lt_cv_file_magic_cmd=/usr/bin/file
4242       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4243       ;;
4244     esac
4245   else
4246     lt_cv_deplibs_check_method=pass_all
4247   fi
4248   ;;
4249
4250 gnu*)
4251   lt_cv_deplibs_check_method=pass_all
4252   ;;
4253
4254 hpux10.20* | hpux11*)
4255   lt_cv_file_magic_cmd=/usr/bin/file
4256   case "$host_cpu" in
4257   ia64*)
4258     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4259     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4260     ;;
4261   hppa*64*)
4262     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]'
4263     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4264     ;;
4265   *)
4266     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4267     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4268     ;;
4269   esac
4270   ;;
4271
4272 irix5* | irix6* | nonstopux*)
4273   case $host_os in
4274   irix5* | nonstopux*)
4275     # this will be overridden with pass_all, but let us keep it just in case
4276     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4277     ;;
4278   *)
4279     case $LD in
4280     *-32|*"-32 ") libmagic=32-bit;;
4281     *-n32|*"-n32 ") libmagic=N32;;
4282     *-64|*"-64 ") libmagic=64-bit;;
4283     *) libmagic=never-match;;
4284     esac
4285     # this will be overridden with pass_all, but let us keep it just in case
4286     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4287     ;;
4288   esac
4289   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4290   lt_cv_deplibs_check_method=pass_all
4291   ;;
4292
4293 # This must be Linux ELF.
4294 linux*)
4295   case $host_cpu in
4296   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4297     lt_cv_deplibs_check_method=pass_all ;;
4298   *)
4299     # glibc up to 2.1.1 does not perform some relocations on ARM
4300     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4301   esac
4302   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4303   ;;
4304
4305 netbsd*)
4306   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4307     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4308   else
4309     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4310   fi
4311   ;;
4312
4313 newos6*)
4314   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4315   lt_cv_file_magic_cmd=/usr/bin/file
4316   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4317   ;;
4318
4319 nto-qnx)
4320   lt_cv_deplibs_check_method=unknown
4321   ;;
4322
4323 openbsd*)
4324   lt_cv_file_magic_cmd=/usr/bin/file
4325   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4326   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4327     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4328   else
4329     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4330   fi
4331   ;;
4332
4333 osf3* | osf4* | osf5*)
4334   # this will be overridden with pass_all, but let us keep it just in case
4335   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4336   lt_cv_file_magic_test_file=/shlib/libc.so
4337   lt_cv_deplibs_check_method=pass_all
4338   ;;
4339
4340 sco3.2v5*)
4341   lt_cv_deplibs_check_method=pass_all
4342   ;;
4343
4344 solaris*)
4345   lt_cv_deplibs_check_method=pass_all
4346   lt_cv_file_magic_test_file=/lib/libc.so
4347   ;;
4348
4349 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4350   case $host_vendor in
4351   motorola)
4352     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]'
4353     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4354     ;;
4355   ncr)
4356     lt_cv_deplibs_check_method=pass_all
4357     ;;
4358   sequent)
4359     lt_cv_file_magic_cmd='/bin/file'
4360     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4361     ;;
4362   sni)
4363     lt_cv_file_magic_cmd='/bin/file'
4364     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4365     lt_cv_file_magic_test_file=/lib/libc.so
4366     ;;
4367   siemens)
4368     lt_cv_deplibs_check_method=pass_all
4369     ;;
4370   esac
4371   ;;
4372
4373 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4374   lt_cv_deplibs_check_method=pass_all
4375   ;;
4376 esac
4377
4378 fi
4379 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4380 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4381 file_magic_cmd=$lt_cv_file_magic_cmd
4382 deplibs_check_method=$lt_cv_deplibs_check_method
4383 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4384
4385
4386
4387
4388 # If no C compiler was specified, use CC.
4389 LTCC=${LTCC-"$CC"}
4390
4391 # Allow CC to be a program name with arguments.
4392 compiler=$CC
4393
4394 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4395 if test "${enable_libtool_lock+set}" = set; then
4396   enableval="$enable_libtool_lock"
4397
4398 fi;
4399 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4400
4401 # Some flags need to be propagated to the compiler or linker for good
4402 # libtool support.
4403 case $host in
4404 ia64-*-hpux*)
4405   # Find out which ABI we are using.
4406   echo 'int i;' > conftest.$ac_ext
4407   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408   (eval $ac_compile) 2>&5
4409   ac_status=$?
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); }; then
4412     case `/usr/bin/file conftest.$ac_objext` in
4413     *ELF-32*)
4414       HPUX_IA64_MODE="32"
4415       ;;
4416     *ELF-64*)
4417       HPUX_IA64_MODE="64"
4418       ;;
4419     esac
4420   fi
4421   rm -rf conftest*
4422   ;;
4423 *-*-irix6*)
4424   # Find out which ABI we are using.
4425   echo '#line 4425 "configure"' > conftest.$ac_ext
4426   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427   (eval $ac_compile) 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }; then
4431    if test "$lt_cv_prog_gnu_ld" = yes; then
4432     case `/usr/bin/file conftest.$ac_objext` in
4433     *32-bit*)
4434       LD="${LD-ld} -melf32bsmip"
4435       ;;
4436     *N32*)
4437       LD="${LD-ld} -melf32bmipn32"
4438       ;;
4439     *64-bit*)
4440       LD="${LD-ld} -melf64bmip"
4441       ;;
4442     esac
4443    else
4444     case `/usr/bin/file conftest.$ac_objext` in
4445     *32-bit*)
4446       LD="${LD-ld} -32"
4447       ;;
4448     *N32*)
4449       LD="${LD-ld} -n32"
4450       ;;
4451     *64-bit*)
4452       LD="${LD-ld} -64"
4453       ;;
4454     esac
4455    fi
4456   fi
4457   rm -rf conftest*
4458   ;;
4459
4460 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4461   # Find out which ABI we are using.
4462   echo 'int i;' > conftest.$ac_ext
4463   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464   (eval $ac_compile) 2>&5
4465   ac_status=$?
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); }; then
4468     case "`/usr/bin/file conftest.o`" in
4469     *32-bit*)
4470       case $host in
4471         x86_64-*linux*)
4472           LD="${LD-ld} -m elf_i386"
4473           ;;
4474         ppc64-*linux*)
4475           LD="${LD-ld} -m elf32ppclinux"
4476           ;;
4477         s390x-*linux*)
4478           LD="${LD-ld} -m elf_s390"
4479           ;;
4480         sparc64-*linux*)
4481           LD="${LD-ld} -m elf32_sparc"
4482           ;;
4483       esac
4484       ;;
4485     *64-bit*)
4486       case $host in
4487         x86_64-*linux*)
4488           LD="${LD-ld} -m elf_x86_64"
4489           ;;
4490         ppc*-*linux*|powerpc*-*linux*)
4491           LD="${LD-ld} -m elf64ppc"
4492           ;;
4493         s390*-*linux*)
4494           LD="${LD-ld} -m elf64_s390"
4495           ;;
4496         sparc*-*linux*)
4497           LD="${LD-ld} -m elf64_sparc"
4498           ;;
4499       esac
4500       ;;
4501     esac
4502   fi
4503   rm -rf conftest*
4504   ;;
4505
4506 *-*-sco3.2v5*)
4507   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4508   SAVE_CFLAGS="$CFLAGS"
4509   CFLAGS="$CFLAGS -belf"
4510   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4511 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4512 if test "${lt_cv_cc_needs_belf+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   ac_ext=c
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520
4521      cat >conftest.$ac_ext <<_ACEOF
4522 #line $LINENO "configure"
4523 /* confdefs.h.  */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h.  */
4528
4529 int
4530 main ()
4531 {
4532
4533   ;
4534   return 0;
4535 }
4536 _ACEOF
4537 rm -f conftest.$ac_objext conftest$ac_exeext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4539   (eval $ac_link) 2>&5
4540   ac_status=$?
4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); } &&
4543          { ac_try='test -s conftest$ac_exeext'
4544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545   (eval $ac_try) 2>&5
4546   ac_status=$?
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); }; }; then
4549   lt_cv_cc_needs_belf=yes
4550 else
4551   echo "$as_me: failed program was:" >&5
4552 sed 's/^/| /' conftest.$ac_ext >&5
4553
4554 lt_cv_cc_needs_belf=no
4555 fi
4556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4557      ac_ext=c
4558 ac_cpp='$CPP $CPPFLAGS'
4559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4562
4563 fi
4564 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4565 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4566   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4567     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4568     CFLAGS="$SAVE_CFLAGS"
4569   fi
4570   ;;
4571
4572 esac
4573
4574 need_locks="$enable_libtool_lock"
4575
4576
4577
4578 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4579 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4580 if test "${ac_cv_header_stdc+set}" = set; then
4581   echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583   cat >conftest.$ac_ext <<_ACEOF
4584 #line $LINENO "configure"
4585 /* confdefs.h.  */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h.  */
4590 #include <stdlib.h>
4591 #include <stdarg.h>
4592 #include <string.h>
4593 #include <float.h>
4594
4595 int
4596 main ()
4597 {
4598
4599   ;
4600   return 0;
4601 }
4602 _ACEOF
4603 rm -f conftest.$ac_objext
4604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605   (eval $ac_compile) 2>&5
4606   ac_status=$?
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); } &&
4609          { ac_try='test -s conftest.$ac_objext'
4610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611   (eval $ac_try) 2>&5
4612   ac_status=$?
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); }; }; then
4615   ac_cv_header_stdc=yes
4616 else
4617   echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620 ac_cv_header_stdc=no
4621 fi
4622 rm -f conftest.$ac_objext conftest.$ac_ext
4623
4624 if test $ac_cv_header_stdc = yes; then
4625   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4626   cat >conftest.$ac_ext <<_ACEOF
4627 #line $LINENO "configure"
4628 /* confdefs.h.  */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h.  */
4633 #include <string.h>
4634
4635 _ACEOF
4636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4637   $EGREP "memchr" >/dev/null 2>&1; then
4638   :
4639 else
4640   ac_cv_header_stdc=no
4641 fi
4642 rm -f conftest*
4643
4644 fi
4645
4646 if test $ac_cv_header_stdc = yes; then
4647   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4648   cat >conftest.$ac_ext <<_ACEOF
4649 #line $LINENO "configure"
4650 /* confdefs.h.  */
4651 _ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h.  */
4655 #include <stdlib.h>
4656
4657 _ACEOF
4658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4659   $EGREP "free" >/dev/null 2>&1; then
4660   :
4661 else
4662   ac_cv_header_stdc=no
4663 fi
4664 rm -f conftest*
4665
4666 fi
4667
4668 if test $ac_cv_header_stdc = yes; then
4669   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4670   if test "$cross_compiling" = yes; then
4671   :
4672 else
4673   cat >conftest.$ac_ext <<_ACEOF
4674 #line $LINENO "configure"
4675 /* confdefs.h.  */
4676 _ACEOF
4677 cat confdefs.h >>conftest.$ac_ext
4678 cat >>conftest.$ac_ext <<_ACEOF
4679 /* end confdefs.h.  */
4680 #include <ctype.h>
4681 #if ((' ' & 0x0FF) == 0x020)
4682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4684 #else
4685 # define ISLOWER(c) \
4686                    (('a' <= (c) && (c) <= 'i') \
4687                      || ('j' <= (c) && (c) <= 'r') \
4688                      || ('s' <= (c) && (c) <= 'z'))
4689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4690 #endif
4691
4692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4693 int
4694 main ()
4695 {
4696   int i;
4697   for (i = 0; i < 256; i++)
4698     if (XOR (islower (i), ISLOWER (i))
4699         || toupper (i) != TOUPPER (i))
4700       exit(2);
4701   exit (0);
4702 }
4703 _ACEOF
4704 rm -f conftest$ac_exeext
4705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4706   (eval $ac_link) 2>&5
4707   ac_status=$?
4708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711   (eval $ac_try) 2>&5
4712   ac_status=$?
4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); }; }; then
4715   :
4716 else
4717   echo "$as_me: program exited with status $ac_status" >&5
4718 echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4720
4721 ( exit $ac_status )
4722 ac_cv_header_stdc=no
4723 fi
4724 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4725 fi
4726 fi
4727 fi
4728 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4729 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4730 if test $ac_cv_header_stdc = yes; then
4731
4732 cat >>confdefs.h <<\_ACEOF
4733 #define STDC_HEADERS 1
4734 _ACEOF
4735
4736 fi
4737
4738 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4749                   inttypes.h stdint.h unistd.h
4750 do
4751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4752 echo "$as_me:$LINENO: checking for $ac_header" >&5
4753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4755   echo $ECHO_N "(cached) $ECHO_C" >&6
4756 else
4757   cat >conftest.$ac_ext <<_ACEOF
4758 #line $LINENO "configure"
4759 /* confdefs.h.  */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h.  */
4764 $ac_includes_default
4765
4766 #include <$ac_header>
4767 _ACEOF
4768 rm -f conftest.$ac_objext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770   (eval $ac_compile) 2>&5
4771   ac_status=$?
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); } &&
4774          { ac_try='test -s conftest.$ac_objext'
4775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776   (eval $ac_try) 2>&5
4777   ac_status=$?
4778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779   (exit $ac_status); }; }; then
4780   eval "$as_ac_Header=yes"
4781 else
4782   echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785 eval "$as_ac_Header=no"
4786 fi
4787 rm -f conftest.$ac_objext conftest.$ac_ext
4788 fi
4789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4792   cat >>confdefs.h <<_ACEOF
4793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4794 _ACEOF
4795
4796 fi
4797
4798 done
4799
4800
4801
4802 for ac_header in dlfcn.h
4803 do
4804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4806   echo "$as_me:$LINENO: checking for $ac_header" >&5
4807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4809   echo $ECHO_N "(cached) $ECHO_C" >&6
4810 fi
4811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4813 else
4814   # Is the header compilable?
4815 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4817 cat >conftest.$ac_ext <<_ACEOF
4818 #line $LINENO "configure"
4819 /* confdefs.h.  */
4820 _ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h.  */
4824 $ac_includes_default
4825 #include <$ac_header>
4826 _ACEOF
4827 rm -f conftest.$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829   (eval $ac_compile) 2>&5
4830   ac_status=$?
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); } &&
4833          { ac_try='test -s conftest.$ac_objext'
4834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835   (eval $ac_try) 2>&5
4836   ac_status=$?
4837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838   (exit $ac_status); }; }; then
4839   ac_header_compiler=yes
4840 else
4841   echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4843
4844 ac_header_compiler=no
4845 fi
4846 rm -f conftest.$ac_objext conftest.$ac_ext
4847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4848 echo "${ECHO_T}$ac_header_compiler" >&6
4849
4850 # Is the header present?
4851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4853 cat >conftest.$ac_ext <<_ACEOF
4854 #line $LINENO "configure"
4855 /* confdefs.h.  */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h.  */
4860 #include <$ac_header>
4861 _ACEOF
4862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4863   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4864   ac_status=$?
4865   grep -v '^ *+' conftest.er1 >conftest.err
4866   rm -f conftest.er1
4867   cat conftest.err >&5
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); } >/dev/null; then
4870   if test -s conftest.err; then
4871     ac_cpp_err=$ac_c_preproc_warn_flag
4872   else
4873     ac_cpp_err=
4874   fi
4875 else
4876   ac_cpp_err=yes
4877 fi
4878 if test -z "$ac_cpp_err"; then
4879   ac_header_preproc=yes
4880 else
4881   echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4883
4884   ac_header_preproc=no
4885 fi
4886 rm -f conftest.err conftest.$ac_ext
4887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4888 echo "${ECHO_T}$ac_header_preproc" >&6
4889
4890 # So?  What about this header?
4891 case $ac_header_compiler:$ac_header_preproc in
4892   yes:no )
4893     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4897     (
4898       cat <<\_ASBOX
4899 ## ------------------------------------ ##
4900 ## Report this to bug-autoconf@gnu.org. ##
4901 ## ------------------------------------ ##
4902 _ASBOX
4903     ) |
4904       sed "s/^/$as_me: WARNING:     /" >&2
4905     ;;
4906   no:yes )
4907     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4909     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4913     (
4914       cat <<\_ASBOX
4915 ## ------------------------------------ ##
4916 ## Report this to bug-autoconf@gnu.org. ##
4917 ## ------------------------------------ ##
4918 _ASBOX
4919     ) |
4920       sed "s/^/$as_me: WARNING:     /" >&2
4921     ;;
4922 esac
4923 echo "$as_me:$LINENO: checking for $ac_header" >&5
4924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4926   echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928   eval "$as_ac_Header=$ac_header_preproc"
4929 fi
4930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4932
4933 fi
4934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4935   cat >>confdefs.h <<_ACEOF
4936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4937 _ACEOF
4938
4939 fi
4940
4941 done
4942
4943 ac_ext=cc
4944 ac_cpp='$CXXCPP $CPPFLAGS'
4945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4948 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4949 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4950 if test -z "$CXXCPP"; then
4951   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4952   echo $ECHO_N "(cached) $ECHO_C" >&6
4953 else
4954       # Double quotes because CXXCPP needs to be expanded
4955     for CXXCPP in "$CXX -E" "/lib/cpp"
4956     do
4957       ac_preproc_ok=false
4958 for ac_cxx_preproc_warn_flag in '' yes
4959 do
4960   # Use a header file that comes with gcc, so configuring glibc
4961   # with a fresh cross-compiler works.
4962   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4963   # <limits.h> exists even on freestanding compilers.
4964   # On the NeXT, cc -E runs the code through the compiler's parser,
4965   # not just through cpp. "Syntax error" is here to catch this case.
4966   cat >conftest.$ac_ext <<_ACEOF
4967 #line $LINENO "configure"
4968 /* confdefs.h.  */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h.  */
4973 #ifdef __STDC__
4974 # include <limits.h>
4975 #else
4976 # include <assert.h>
4977 #endif
4978                      Syntax error
4979 _ACEOF
4980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4981   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4982   ac_status=$?
4983   grep -v '^ *+' conftest.er1 >conftest.err
4984   rm -f conftest.er1
4985   cat conftest.err >&5
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); } >/dev/null; then
4988   if test -s conftest.err; then
4989     ac_cpp_err=$ac_cxx_preproc_warn_flag
4990   else
4991     ac_cpp_err=
4992   fi
4993 else
4994   ac_cpp_err=yes
4995 fi
4996 if test -z "$ac_cpp_err"; then
4997   :
4998 else
4999   echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5001
5002   # Broken: fails on valid input.
5003 continue
5004 fi
5005 rm -f conftest.err conftest.$ac_ext
5006
5007   # OK, works on sane cases.  Now check whether non-existent headers
5008   # can be detected and how.
5009   cat >conftest.$ac_ext <<_ACEOF
5010 #line $LINENO "configure"
5011 /* confdefs.h.  */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h.  */
5016 #include <ac_nonexistent.h>
5017 _ACEOF
5018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5019   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5020   ac_status=$?
5021   grep -v '^ *+' conftest.er1 >conftest.err
5022   rm -f conftest.er1
5023   cat conftest.err >&5
5024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025   (exit $ac_status); } >/dev/null; then
5026   if test -s conftest.err; then
5027     ac_cpp_err=$ac_cxx_preproc_warn_flag
5028   else
5029     ac_cpp_err=
5030   fi
5031 else
5032   ac_cpp_err=yes
5033 fi
5034 if test -z "$ac_cpp_err"; then
5035   # Broken: success on invalid input.
5036 continue
5037 else
5038   echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5040
5041   # Passes both tests.
5042 ac_preproc_ok=:
5043 break
5044 fi
5045 rm -f conftest.err conftest.$ac_ext
5046
5047 done
5048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5049 rm -f conftest.err conftest.$ac_ext
5050 if $ac_preproc_ok; then
5051   break
5052 fi
5053
5054     done
5055     ac_cv_prog_CXXCPP=$CXXCPP
5056
5057 fi
5058   CXXCPP=$ac_cv_prog_CXXCPP
5059 else
5060   ac_cv_prog_CXXCPP=$CXXCPP
5061 fi
5062 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5063 echo "${ECHO_T}$CXXCPP" >&6
5064 ac_preproc_ok=false
5065 for ac_cxx_preproc_warn_flag in '' yes
5066 do
5067   # Use a header file that comes with gcc, so configuring glibc
5068   # with a fresh cross-compiler works.
5069   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5070   # <limits.h> exists even on freestanding compilers.
5071   # On the NeXT, cc -E runs the code through the compiler's parser,
5072   # not just through cpp. "Syntax error" is here to catch this case.
5073   cat >conftest.$ac_ext <<_ACEOF
5074 #line $LINENO "configure"
5075 /* confdefs.h.  */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h.  */
5080 #ifdef __STDC__
5081 # include <limits.h>
5082 #else
5083 # include <assert.h>
5084 #endif
5085                      Syntax error
5086 _ACEOF
5087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5088   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5089   ac_status=$?
5090   grep -v '^ *+' conftest.er1 >conftest.err
5091   rm -f conftest.er1
5092   cat conftest.err >&5
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); } >/dev/null; then
5095   if test -s conftest.err; then
5096     ac_cpp_err=$ac_cxx_preproc_warn_flag
5097   else
5098     ac_cpp_err=
5099   fi
5100 else
5101   ac_cpp_err=yes
5102 fi
5103 if test -z "$ac_cpp_err"; then
5104   :
5105 else
5106   echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5108
5109   # Broken: fails on valid input.
5110 continue
5111 fi
5112 rm -f conftest.err conftest.$ac_ext
5113
5114   # OK, works on sane cases.  Now check whether non-existent headers
5115   # can be detected and how.
5116   cat >conftest.$ac_ext <<_ACEOF
5117 #line $LINENO "configure"
5118 /* confdefs.h.  */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h.  */
5123 #include <ac_nonexistent.h>
5124 _ACEOF
5125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5126   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5127   ac_status=$?
5128   grep -v '^ *+' conftest.er1 >conftest.err
5129   rm -f conftest.er1
5130   cat conftest.err >&5
5131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132   (exit $ac_status); } >/dev/null; then
5133   if test -s conftest.err; then
5134     ac_cpp_err=$ac_cxx_preproc_warn_flag
5135   else
5136     ac_cpp_err=
5137   fi
5138 else
5139   ac_cpp_err=yes
5140 fi
5141 if test -z "$ac_cpp_err"; then
5142   # Broken: success on invalid input.
5143 continue
5144 else
5145   echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5147
5148   # Passes both tests.
5149 ac_preproc_ok=:
5150 break
5151 fi
5152 rm -f conftest.err conftest.$ac_ext
5153
5154 done
5155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5156 rm -f conftest.err conftest.$ac_ext
5157 if $ac_preproc_ok; then
5158   :
5159 else
5160   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5161 See \`config.log' for more details." >&5
5162 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5163 See \`config.log' for more details." >&2;}
5164    { (exit 1); exit 1; }; }
5165 fi
5166
5167 ac_ext=cc
5168 ac_cpp='$CXXCPP $CPPFLAGS'
5169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5172
5173
5174 ac_ext=f
5175 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5176 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5177 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5178 if test -n "$ac_tool_prefix"; then
5179   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5180   do
5181     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5183 echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5185 if test "${ac_cv_prog_F77+set}" = set; then
5186   echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188   if test -n "$F77"; then
5189   ac_cv_prog_F77="$F77" # Let the user override the test.
5190 else
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5193 do
5194   IFS=$as_save_IFS
5195   test -z "$as_dir" && as_dir=.
5196   for ac_exec_ext in '' $ac_executable_extensions; do
5197   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200     break 2
5201   fi
5202 done
5203 done
5204
5205 fi
5206 fi
5207 F77=$ac_cv_prog_F77
5208 if test -n "$F77"; then
5209   echo "$as_me:$LINENO: result: $F77" >&5
5210 echo "${ECHO_T}$F77" >&6
5211 else
5212   echo "$as_me:$LINENO: result: no" >&5
5213 echo "${ECHO_T}no" >&6
5214 fi
5215
5216     test -n "$F77" && break
5217   done
5218 fi
5219 if test -z "$F77"; then
5220   ac_ct_F77=$F77
5221   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5222 do
5223   # Extract the first word of "$ac_prog", so it can be a program name with args.
5224 set dummy $ac_prog; ac_word=$2
5225 echo "$as_me:$LINENO: checking for $ac_word" >&5
5226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5227 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230   if test -n "$ac_ct_F77"; then
5231   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236   IFS=$as_save_IFS
5237   test -z "$as_dir" && as_dir=.
5238   for ac_exec_ext in '' $ac_executable_extensions; do
5239   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240     ac_cv_prog_ac_ct_F77="$ac_prog"
5241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242     break 2
5243   fi
5244 done
5245 done
5246
5247 fi
5248 fi
5249 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5250 if test -n "$ac_ct_F77"; then
5251   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5252 echo "${ECHO_T}$ac_ct_F77" >&6
5253 else
5254   echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6
5256 fi
5257
5258   test -n "$ac_ct_F77" && break
5259 done
5260
5261   F77=$ac_ct_F77
5262 fi
5263
5264
5265 # Provide some information about the compiler.
5266 echo "$as_me:5266:" \
5267      "checking for Fortran 77 compiler version" >&5
5268 ac_compiler=`set X $ac_compile; echo $2`
5269 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5270   (eval $ac_compiler --version </dev/null >&5) 2>&5
5271   ac_status=$?
5272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); }
5274 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5275   (eval $ac_compiler -v </dev/null >&5) 2>&5
5276   ac_status=$?
5277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278   (exit $ac_status); }
5279 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5280   (eval $ac_compiler -V </dev/null >&5) 2>&5
5281   ac_status=$?
5282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283   (exit $ac_status); }
5284
5285 # If we don't use `.F' as extension, the preprocessor is not run on the
5286 # input file.
5287 ac_save_ext=$ac_ext
5288 ac_ext=F
5289 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5290 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5291 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5292   echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294   cat >conftest.$ac_ext <<_ACEOF
5295       program main
5296 #ifndef __GNUC__
5297        choke me
5298 #endif
5299
5300       end
5301 _ACEOF
5302 rm -f conftest.$ac_objext
5303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5304   (eval $ac_compile) 2>&5
5305   ac_status=$?
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); } &&
5308          { ac_try='test -s conftest.$ac_objext'
5309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310   (eval $ac_try) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); }; }; then
5314   ac_compiler_gnu=yes
5315 else
5316   echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
5318
5319 ac_compiler_gnu=no
5320 fi
5321 rm -f conftest.$ac_objext conftest.$ac_ext
5322 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5323
5324 fi
5325 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5326 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5327 ac_ext=$ac_save_ext
5328 G77=`test $ac_compiler_gnu = yes && echo yes`
5329 ac_test_FFLAGS=${FFLAGS+set}
5330 ac_save_FFLAGS=$FFLAGS
5331 FFLAGS=
5332 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5333 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5334 if test "${ac_cv_prog_f77_g+set}" = set; then
5335   echo $ECHO_N "(cached) $ECHO_C" >&6
5336 else
5337   FFLAGS=-g
5338 cat >conftest.$ac_ext <<_ACEOF
5339       program main
5340
5341       end
5342 _ACEOF
5343 rm -f conftest.$ac_objext
5344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5345   (eval $ac_compile) 2>&5
5346   ac_status=$?
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); } &&
5349          { ac_try='test -s conftest.$ac_objext'
5350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351   (eval $ac_try) 2>&5
5352   ac_status=$?
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); }; }; then
5355   ac_cv_prog_f77_g=yes
5356 else
5357   echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5359
5360 ac_cv_prog_f77_g=no
5361 fi
5362 rm -f conftest.$ac_objext conftest.$ac_ext
5363
5364 fi
5365 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5366 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5367 if test "$ac_test_FFLAGS" = set; then
5368   FFLAGS=$ac_save_FFLAGS
5369 elif test $ac_cv_prog_f77_g = yes; then
5370   if test "$G77" = yes; then
5371     FFLAGS="-g -O2"
5372   else
5373     FFLAGS="-g"
5374   fi
5375 else
5376   if test "$G77" = yes; then
5377     FFLAGS="-O2"
5378   else
5379     FFLAGS=
5380   fi
5381 fi
5382 ac_ext=c
5383 ac_cpp='$CPP $CPPFLAGS'
5384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5387
5388
5389
5390 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5391
5392 # find the maximum length of command line arguments
5393 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5394 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5395 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5396   echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398     i=0
5399   testring="ABCD"
5400
5401   case $build_os in
5402   msdosdjgpp*)
5403     # On DJGPP, this test can blow up pretty badly due to problems in libc
5404     # (any single argument exceeding 2000 bytes causes a buffer overrun
5405     # during glob expansion).  Even if it were fixed, the result of this
5406     # check would be larger than it should be.
5407     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5408     ;;
5409
5410   gnu*)
5411     # Under GNU Hurd, this test is not required because there is
5412     # no limit to the length of command line arguments.
5413     # Libtool will interpret -1 as no limit whatsoever
5414     lt_cv_sys_max_cmd_len=-1;
5415     ;;
5416
5417   cygwin* | mingw*)
5418     # On Win9x/ME, this test blows up -- it succeeds, but takes
5419     # about 5 minutes as the teststring grows exponentially.
5420     # Worse, since 9x/ME are not pre-emptively multitasking,
5421     # you end up with a "frozen" computer, even though with patience
5422     # the test eventually succeeds (with a max line length of 256k).
5423     # Instead, let's just punt: use the minimum linelength reported by
5424     # all of the supported platforms: 8192 (on NT/2K/XP).
5425     lt_cv_sys_max_cmd_len=8192;
5426     ;;
5427
5428  *)
5429     # If test is not a shell built-in, we'll probably end up computing a
5430     # maximum length that is only half of the actual maximum length, but
5431     # we can't tell.
5432     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5433                = "XX$testring") >/dev/null 2>&1 &&
5434             new_result=`expr "X$testring" : ".*" 2>&1` &&
5435             lt_cv_sys_max_cmd_len=$new_result &&
5436             test $i != 17 # 1/2 MB should be enough
5437     do
5438       i=`expr $i + 1`
5439       testring=$testring$testring
5440     done
5441     testring=
5442     # Add a significant safety factor because C++ compilers can tack on massive
5443     # amounts of additional arguments before passing them to the linker.
5444     # It appears as though 1/2 is a usable value.
5445     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5446     ;;
5447   esac
5448
5449 fi
5450
5451 if test -n $lt_cv_sys_max_cmd_len ; then
5452   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5453 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5454 else
5455   echo "$as_me:$LINENO: result: none" >&5
5456 echo "${ECHO_T}none" >&6
5457 fi
5458
5459
5460
5461
5462 # Check for command to grab the raw symbol name followed by C symbol from nm.
5463 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5464 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5465 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5466   echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468
5469 # These are sane defaults that work on at least a few old systems.
5470 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5471
5472 # Character class describing NM global symbol codes.
5473 symcode='[BCDEGRST]'
5474
5475 # Regexp to match symbols that can be accessed directly from C.
5476 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5477
5478 # Transform the above into a raw symbol and a C symbol.
5479 symxfrm='\1 \2\3 \3'
5480
5481 # Transform an extracted symbol line into a proper C declaration
5482 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5483
5484 # Transform an extracted symbol line into symbol name and symbol address
5485 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'"
5486
5487 # Define system-specific variables.
5488 case $host_os in
5489 aix*)
5490   symcode='[BCDT]'
5491   ;;
5492 cygwin* | mingw* | pw32*)
5493   symcode='[ABCDGISTW]'
5494   ;;
5495 hpux*) # Its linker distinguishes data from code symbols
5496   if test "$host_cpu" = ia64; then
5497     symcode='[ABCDEGRST]'
5498   fi
5499   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5500   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'"
5501   ;;
5502 irix* | nonstopux*)
5503   symcode='[BCDEGRST]'
5504   ;;
5505 osf*)
5506   symcode='[BCDEGQRST]'
5507   ;;
5508 solaris* | sysv5*)
5509   symcode='[BDT]'
5510   ;;
5511 sysv4)
5512   symcode='[DFNSTU]'
5513   ;;
5514 esac
5515
5516 # Handle CRLF in mingw tool chain
5517 opt_cr=
5518 case $build_os in
5519 mingw*)
5520   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5521   ;;
5522 esac
5523
5524 # If we're using GNU nm, then use its standard symbol codes.
5525 case `$NM -V 2>&1` in
5526 *GNU* | *'with BFD'*)
5527   symcode='[ABCDGISTW]' ;;
5528 esac
5529
5530 # Try without a prefix undercore, then with it.
5531 for ac_symprfx in "" "_"; do
5532
5533   # Write the raw and C identifiers.
5534   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5535
5536   # Check to see that the pipe works correctly.
5537   pipe_works=no
5538
5539   rm -f conftest*
5540   cat > conftest.$ac_ext <<EOF
5541 #ifdef __cplusplus
5542 extern "C" {
5543 #endif
5544 char nm_test_var;
5545 void nm_test_func(){}
5546 #ifdef __cplusplus
5547 }
5548 #endif
5549 int main(){nm_test_var='a';nm_test_func();return(0);}
5550 EOF
5551
5552   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553   (eval $ac_compile) 2>&5
5554   ac_status=$?
5555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556   (exit $ac_status); }; then
5557     # Now try to grab the symbols.
5558     nlist=conftest.nm
5559     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5560   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5561   ac_status=$?
5562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563   (exit $ac_status); } && test -s "$nlist"; then
5564       # Try sorting and uniquifying the output.
5565       if sort "$nlist" | uniq > "$nlist"T; then
5566         mv -f "$nlist"T "$nlist"
5567       else
5568         rm -f "$nlist"T
5569       fi
5570
5571       # Make sure that we snagged all the symbols we need.
5572       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5573         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5574           cat <<EOF > conftest.$ac_ext
5575 #ifdef __cplusplus
5576 extern "C" {
5577 #endif
5578
5579 EOF
5580           # Now generate the symbol file.
5581           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5582
5583           cat <<EOF >> conftest.$ac_ext
5584 #if defined (__STDC__) && __STDC__
5585 # define lt_ptr_t void *
5586 #else
5587 # define lt_ptr_t char *
5588 # define const
5589 #endif
5590
5591 /* The mapping between symbol names and symbols. */
5592 const struct {
5593   const char *name;
5594   lt_ptr_t address;
5595 }
5596 lt_preloaded_symbols[] =
5597 {
5598 EOF
5599           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5600           cat <<\EOF >> conftest.$ac_ext
5601   {0, (lt_ptr_t) 0}
5602 };
5603
5604 #ifdef __cplusplus
5605 }
5606 #endif
5607 EOF
5608           # Now try linking the two files.
5609           mv conftest.$ac_objext conftstm.$ac_objext
5610           lt_save_LIBS="$LIBS"
5611           lt_save_CFLAGS="$CFLAGS"
5612           LIBS="conftstm.$ac_objext"
5613           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5614           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5615   (eval $ac_link) 2>&5
5616   ac_status=$?
5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5619             pipe_works=yes
5620           fi
5621           LIBS="$lt_save_LIBS"
5622           CFLAGS="$lt_save_CFLAGS"
5623         else
5624           echo "cannot find nm_test_func in $nlist" >&5
5625         fi
5626       else
5627         echo "cannot find nm_test_var in $nlist" >&5
5628       fi
5629     else
5630       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5631     fi
5632   else
5633     echo "$progname: failed program was:" >&5
5634     cat conftest.$ac_ext >&5
5635   fi
5636   rm -f conftest* conftst*
5637
5638   # Do not use the global_symbol_pipe unless it works.
5639   if test "$pipe_works" = yes; then
5640     break
5641   else
5642     lt_cv_sys_global_symbol_pipe=
5643   fi
5644 done
5645
5646 fi
5647
5648 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5649   lt_cv_sys_global_symbol_to_cdecl=
5650 fi
5651 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5652   echo "$as_me:$LINENO: result: failed" >&5
5653 echo "${ECHO_T}failed" >&6
5654 else
5655   echo "$as_me:$LINENO: result: ok" >&5
5656 echo "${ECHO_T}ok" >&6
5657 fi
5658
5659 echo "$as_me:$LINENO: checking for objdir" >&5
5660 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5661 if test "${lt_cv_objdir+set}" = set; then
5662   echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664   rm -f .libs 2>/dev/null
5665 mkdir .libs 2>/dev/null
5666 if test -d .libs; then
5667   lt_cv_objdir=.libs
5668 else
5669   # MS-DOS does not allow filenames that begin with a dot.
5670   lt_cv_objdir=_libs
5671 fi
5672 rmdir .libs 2>/dev/null
5673 fi
5674 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5675 echo "${ECHO_T}$lt_cv_objdir" >&6
5676 objdir=$lt_cv_objdir
5677
5678
5679
5680
5681
5682 case $host_os in
5683 aix3*)
5684   # AIX sometimes has problems with the GCC collect2 program.  For some
5685   # reason, if we set the COLLECT_NAMES environment variable, the problems
5686   # vanish in a puff of smoke.
5687   if test "X${COLLECT_NAMES+set}" != Xset; then
5688     COLLECT_NAMES=
5689     export COLLECT_NAMES
5690   fi
5691   ;;
5692 esac
5693
5694 # Sed substitution that helps us do robust quoting.  It backslashifies
5695 # metacharacters that are still active within double-quoted strings.
5696 Xsed='sed -e s/^X//'
5697 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5698
5699 # Same as above, but do not quote variable references.
5700 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5701
5702 # Sed substitution to delay expansion of an escaped shell variable in a
5703 # double_quote_subst'ed string.
5704 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5705
5706 # Sed substitution to avoid accidental globbing in evaled expressions
5707 no_glob_subst='s/\*/\\\*/g'
5708
5709 # Constants:
5710 rm="rm -f"
5711
5712 # Global variables:
5713 default_ofile=mklib
5714 can_build_shared=yes
5715
5716 # All known linkers require a `.a' archive for static linking (except M$VC,
5717 # which needs '.lib').
5718 libext=a
5719 ltmain="$ac_aux_dir/ltmain.sh"
5720 ofile="$default_ofile"
5721 with_gnu_ld="$lt_cv_prog_gnu_ld"
5722
5723 if test -n "$ac_tool_prefix"; then
5724   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5725 set dummy ${ac_tool_prefix}ar; ac_word=$2
5726 echo "$as_me:$LINENO: checking for $ac_word" >&5
5727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5728 if test "${ac_cv_prog_AR+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   if test -n "$AR"; then
5732   ac_cv_prog_AR="$AR" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737   IFS=$as_save_IFS
5738   test -z "$as_dir" && as_dir=.
5739   for ac_exec_ext in '' $ac_executable_extensions; do
5740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741     ac_cv_prog_AR="${ac_tool_prefix}ar"
5742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743     break 2
5744   fi
5745 done
5746 done
5747
5748 fi
5749 fi
5750 AR=$ac_cv_prog_AR
5751 if test -n "$AR"; then
5752   echo "$as_me:$LINENO: result: $AR" >&5
5753 echo "${ECHO_T}$AR" >&6
5754 else
5755   echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6
5757 fi
5758
5759 fi
5760 if test -z "$ac_cv_prog_AR"; then
5761   ac_ct_AR=$AR
5762   # Extract the first word of "ar", so it can be a program name with args.
5763 set dummy ar; ac_word=$2
5764 echo "$as_me:$LINENO: checking for $ac_word" >&5
5765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5766 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   if test -n "$ac_ct_AR"; then
5770   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5771 else
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5774 do
5775   IFS=$as_save_IFS
5776   test -z "$as_dir" && as_dir=.
5777   for ac_exec_ext in '' $ac_executable_extensions; do
5778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779     ac_cv_prog_ac_ct_AR="ar"
5780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781     break 2
5782   fi
5783 done
5784 done
5785
5786   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5787 fi
5788 fi
5789 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5790 if test -n "$ac_ct_AR"; then
5791   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5792 echo "${ECHO_T}$ac_ct_AR" >&6
5793 else
5794   echo "$as_me:$LINENO: result: no" >&5
5795 echo "${ECHO_T}no" >&6
5796 fi
5797
5798   AR=$ac_ct_AR
5799 else
5800   AR="$ac_cv_prog_AR"
5801 fi
5802
5803 if test -n "$ac_tool_prefix"; then
5804   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5805 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5806 echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5808 if test "${ac_cv_prog_RANLIB+set}" = set; then
5809   echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811   if test -n "$RANLIB"; then
5812   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5813 else
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5816 do
5817   IFS=$as_save_IFS
5818   test -z "$as_dir" && as_dir=.
5819   for ac_exec_ext in '' $ac_executable_extensions; do
5820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823     break 2
5824   fi
5825 done
5826 done
5827
5828 fi
5829 fi
5830 RANLIB=$ac_cv_prog_RANLIB
5831 if test -n "$RANLIB"; then
5832   echo "$as_me:$LINENO: result: $RANLIB" >&5
5833 echo "${ECHO_T}$RANLIB" >&6
5834 else
5835   echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6
5837 fi
5838
5839 fi
5840 if test -z "$ac_cv_prog_RANLIB"; then
5841   ac_ct_RANLIB=$RANLIB
5842   # Extract the first word of "ranlib", so it can be a program name with args.
5843 set dummy ranlib; ac_word=$2
5844 echo "$as_me:$LINENO: checking for $ac_word" >&5
5845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5846 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5847   echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849   if test -n "$ac_ct_RANLIB"; then
5850   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5851 else
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 for as_dir in $PATH
5854 do
5855   IFS=$as_save_IFS
5856   test -z "$as_dir" && as_dir=.
5857   for ac_exec_ext in '' $ac_executable_extensions; do
5858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859     ac_cv_prog_ac_ct_RANLIB="ranlib"
5860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861     break 2
5862   fi
5863 done
5864 done
5865
5866   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5867 fi
5868 fi
5869 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5870 if test -n "$ac_ct_RANLIB"; then
5871   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5872 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5873 else
5874   echo "$as_me:$LINENO: result: no" >&5
5875 echo "${ECHO_T}no" >&6
5876 fi
5877
5878   RANLIB=$ac_ct_RANLIB
5879 else
5880   RANLIB="$ac_cv_prog_RANLIB"
5881 fi
5882
5883 if test -n "$ac_tool_prefix"; then
5884   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5885 set dummy ${ac_tool_prefix}strip; ac_word=$2
5886 echo "$as_me:$LINENO: checking for $ac_word" >&5
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5888 if test "${ac_cv_prog_STRIP+set}" = set; then
5889   echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891   if test -n "$STRIP"; then
5892   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5893 else
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5896 do
5897   IFS=$as_save_IFS
5898   test -z "$as_dir" && as_dir=.
5899   for ac_exec_ext in '' $ac_executable_extensions; do
5900   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903     break 2
5904   fi
5905 done
5906 done
5907
5908 fi
5909 fi
5910 STRIP=$ac_cv_prog_STRIP
5911 if test -n "$STRIP"; then
5912   echo "$as_me:$LINENO: result: $STRIP" >&5
5913 echo "${ECHO_T}$STRIP" >&6
5914 else
5915   echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6
5917 fi
5918
5919 fi
5920 if test -z "$ac_cv_prog_STRIP"; then
5921   ac_ct_STRIP=$STRIP
5922   # Extract the first word of "strip", so it can be a program name with args.
5923 set dummy strip; ac_word=$2
5924 echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5926 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929   if test -n "$ac_ct_STRIP"; then
5930   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5931 else
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5934 do
5935   IFS=$as_save_IFS
5936   test -z "$as_dir" && as_dir=.
5937   for ac_exec_ext in '' $ac_executable_extensions; do
5938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939     ac_cv_prog_ac_ct_STRIP="strip"
5940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941     break 2
5942   fi
5943 done
5944 done
5945
5946   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5947 fi
5948 fi
5949 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5950 if test -n "$ac_ct_STRIP"; then
5951   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5952 echo "${ECHO_T}$ac_ct_STRIP" >&6
5953 else
5954   echo "$as_me:$LINENO: result: no" >&5
5955 echo "${ECHO_T}no" >&6
5956 fi
5957
5958   STRIP=$ac_ct_STRIP
5959 else
5960   STRIP="$ac_cv_prog_STRIP"
5961 fi
5962
5963
5964 old_CC="$CC"
5965 old_CFLAGS="$CFLAGS"
5966
5967 # Set sane defaults for various variables
5968 test -z "$AR" && AR=ar
5969 test -z "$AR_FLAGS" && AR_FLAGS=cru
5970 test -z "$AS" && AS=as
5971 test -z "$CC" && CC=cc
5972 test -z "$LTCC" && LTCC=$CC
5973 test -z "$DLLTOOL" && DLLTOOL=dlltool
5974 test -z "$LD" && LD=ld
5975 test -z "$LN_S" && LN_S="ln -s"
5976 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5977 test -z "$NM" && NM=nm
5978 test -z "$SED" && SED=sed
5979 test -z "$OBJDUMP" && OBJDUMP=objdump
5980 test -z "$RANLIB" && RANLIB=:
5981 test -z "$STRIP" && STRIP=:
5982 test -z "$ac_objext" && ac_objext=o
5983
5984 # Determine commands to create old-style static archives.
5985 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5986 old_postinstall_cmds='chmod 644 $oldlib'
5987 old_postuninstall_cmds=
5988
5989 if test -n "$RANLIB"; then
5990   case $host_os in
5991   openbsd*)
5992     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5993     ;;
5994   *)
5995     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5996     ;;
5997   esac
5998   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5999 fi
6000
6001 # Only perform the check for file, if the check method requires it
6002 case $deplibs_check_method in
6003 file_magic*)
6004   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6005     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6006 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6007 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6008   echo $ECHO_N "(cached) $ECHO_C" >&6
6009 else
6010   case $MAGIC_CMD in
6011 [\\/*] |  ?:[\\/]*)
6012   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6013   ;;
6014 *)
6015   lt_save_MAGIC_CMD="$MAGIC_CMD"
6016   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6017   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6018   for ac_dir in $ac_dummy; do
6019     IFS="$lt_save_ifs"
6020     test -z "$ac_dir" && ac_dir=.
6021     if test -f $ac_dir/${ac_tool_prefix}file; then
6022       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6023       if test -n "$file_magic_test_file"; then
6024         case $deplibs_check_method in
6025         "file_magic "*)
6026           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6027           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6028           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6029             $EGREP "$file_magic_regex" > /dev/null; then
6030             :
6031           else
6032             cat <<EOF 1>&2
6033
6034 *** Warning: the command libtool uses to detect shared libraries,
6035 *** $file_magic_cmd, produces output that libtool cannot recognize.
6036 *** The result is that libtool may fail to recognize shared libraries
6037 *** as such.  This will affect the creation of libtool libraries that
6038 *** depend on shared libraries, but programs linked with such libtool
6039 *** libraries will work regardless of this problem.  Nevertheless, you
6040 *** may want to report the problem to your system manager and/or to
6041 *** bug-libtool@gnu.org
6042
6043 EOF
6044           fi ;;
6045         esac
6046       fi
6047       break
6048     fi
6049   done
6050   IFS="$lt_save_ifs"
6051   MAGIC_CMD="$lt_save_MAGIC_CMD"
6052   ;;
6053 esac
6054 fi
6055
6056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6057 if test -n "$MAGIC_CMD"; then
6058   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6059 echo "${ECHO_T}$MAGIC_CMD" >&6
6060 else
6061   echo "$as_me:$LINENO: result: no" >&5
6062 echo "${ECHO_T}no" >&6
6063 fi
6064
6065 if test -z "$lt_cv_path_MAGIC_CMD"; then
6066   if test -n "$ac_tool_prefix"; then
6067     echo "$as_me:$LINENO: checking for file" >&5
6068 echo $ECHO_N "checking for file... $ECHO_C" >&6
6069 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6070   echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072   case $MAGIC_CMD in
6073 [\\/*] |  ?:[\\/]*)
6074   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6075   ;;
6076 *)
6077   lt_save_MAGIC_CMD="$MAGIC_CMD"
6078   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6079   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6080   for ac_dir in $ac_dummy; do
6081     IFS="$lt_save_ifs"
6082     test -z "$ac_dir" && ac_dir=.
6083     if test -f $ac_dir/file; then
6084       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6085       if test -n "$file_magic_test_file"; then
6086         case $deplibs_check_method in
6087         "file_magic "*)
6088           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6089           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6090           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6091             $EGREP "$file_magic_regex" > /dev/null; then
6092             :
6093           else
6094             cat <<EOF 1>&2
6095
6096 *** Warning: the command libtool uses to detect shared libraries,
6097 *** $file_magic_cmd, produces output that libtool cannot recognize.
6098 *** The result is that libtool may fail to recognize shared libraries
6099 *** as such.  This will affect the creation of libtool libraries that
6100 *** depend on shared libraries, but programs linked with such libtool
6101 *** libraries will work regardless of this problem.  Nevertheless, you
6102 *** may want to report the problem to your system manager and/or to
6103 *** bug-libtool@gnu.org
6104
6105 EOF
6106           fi ;;
6107         esac
6108       fi
6109       break
6110     fi
6111   done
6112   IFS="$lt_save_ifs"
6113   MAGIC_CMD="$lt_save_MAGIC_CMD"
6114   ;;
6115 esac
6116 fi
6117
6118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6119 if test -n "$MAGIC_CMD"; then
6120   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6121 echo "${ECHO_T}$MAGIC_CMD" >&6
6122 else
6123   echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6
6125 fi
6126
6127   else
6128     MAGIC_CMD=:
6129   fi
6130 fi
6131
6132   fi
6133   ;;
6134 esac
6135
6136 enable_dlopen=no
6137 enable_win32_dll=no
6138
6139 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6140 if test "${enable_libtool_lock+set}" = set; then
6141   enableval="$enable_libtool_lock"
6142
6143 fi;
6144 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6145
6146
6147 # Check whether --with-pic or --without-pic was given.
6148 if test "${with_pic+set}" = set; then
6149   withval="$with_pic"
6150   pic_mode="$withval"
6151 else
6152   pic_mode=default
6153 fi;
6154 test -z "$pic_mode" && pic_mode=default
6155
6156 # Use C for the default configuration in the libtool script
6157 tagname=
6158 lt_save_CC="$CC"
6159 ac_ext=c
6160 ac_cpp='$CPP $CPPFLAGS'
6161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6164
6165
6166 # Source file extension for C test sources.
6167 ac_ext=c
6168
6169 # Object file extension for compiled C test sources.
6170 objext=o
6171 objext=$objext
6172
6173 # Code to be used in simple compile tests
6174 lt_simple_compile_test_code="int some_variable = 0;\n"
6175
6176 # Code to be used in simple link tests
6177 lt_simple_link_test_code='int main(){return(0);}\n'
6178
6179
6180 # If no C compiler was specified, use CC.
6181 LTCC=${LTCC-"$CC"}
6182
6183 # Allow CC to be a program name with arguments.
6184 compiler=$CC
6185
6186
6187 #
6188 # Check for any special shared library compilation flags.
6189 #
6190 lt_prog_cc_shlib=
6191 if test "$GCC" = no; then
6192   case $host_os in
6193   sco3.2v5*)
6194     lt_prog_cc_shlib='-belf'
6195     ;;
6196   esac
6197 fi
6198 if test -n "$lt_prog_cc_shlib"; then
6199   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6200 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6201   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6202   else
6203     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6204 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6205     lt_cv_prog_cc_can_build_shared=no
6206   fi
6207 fi
6208
6209
6210 #
6211 # Check to make sure the static flag actually works.
6212 #
6213 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6214 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6215 if test "${lt_prog_compiler_static_works+set}" = set; then
6216   echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218   lt_prog_compiler_static_works=no
6219    save_LDFLAGS="$LDFLAGS"
6220    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6221    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6222    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6223      # The compiler can only warn and ignore the option if not recognized
6224      # So say no if there are warnings
6225      if test -s conftest.err; then
6226        # Append any errors to the config.log.
6227        cat conftest.err 1>&5
6228      else
6229        lt_prog_compiler_static_works=yes
6230      fi
6231    fi
6232    $rm conftest*
6233    LDFLAGS="$save_LDFLAGS"
6234
6235 fi
6236 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6237 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6238
6239 if test x"$lt_prog_compiler_static_works" = xyes; then
6240     :
6241 else
6242     lt_prog_compiler_static=
6243 fi
6244
6245
6246
6247 ## CAVEAT EMPTOR:
6248 ## There is no encapsulation within the following macros, do not change
6249 ## the running order or otherwise move them around unless you know exactly
6250 ## what you are doing...
6251
6252 lt_prog_compiler_no_builtin_flag=
6253
6254 if test "$GCC" = yes; then
6255   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6256
6257   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6258 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6259 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6260   echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262   lt_cv_prog_compiler_rtti_exceptions=no
6263   ac_outfile=conftest.$ac_objext
6264    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6265    lt_compiler_flag="-fno-rtti -fno-exceptions"
6266    # Insert the option either (1) after the last *FLAGS variable, or
6267    # (2) before a word containing "conftest.", or (3) at the end.
6268    # Note that $ac_compile itself does not contain backslashes and begins
6269    # with a dollar sign (not a hyphen), so the echo should work correctly.
6270    # The option is referenced via a variable to avoid confusing sed.
6271    lt_compile=`echo "$ac_compile" | $SED \
6272    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6273    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6274    -e 's:$: $lt_compiler_flag:'`
6275    (eval echo "\"\$as_me:6275: $lt_compile\"" >&5)
6276    (eval "$lt_compile" 2>conftest.err)
6277    ac_status=$?
6278    cat conftest.err >&5
6279    echo "$as_me:6279: \$? = $ac_status" >&5
6280    if (exit $ac_status) && test -s "$ac_outfile"; then
6281      # The compiler can only warn and ignore the option if not recognized
6282      # So say no if there are warnings
6283      if test ! -s conftest.err; then
6284        lt_cv_prog_compiler_rtti_exceptions=yes
6285      fi
6286    fi
6287    $rm conftest*
6288
6289 fi
6290 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6291 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6292
6293 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6294     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6295 else
6296     :
6297 fi
6298
6299 fi
6300
6301 lt_prog_compiler_wl=
6302 lt_prog_compiler_pic=
6303 lt_prog_compiler_static=
6304
6305 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6306 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6307
6308   if test "$GCC" = yes; then
6309     lt_prog_compiler_wl='-Wl,'
6310     lt_prog_compiler_static='-static'
6311
6312     case $host_os in
6313       aix*)
6314       # All AIX code is PIC.
6315       if test "$host_cpu" = ia64; then
6316         # AIX 5 now supports IA64 processor
6317         lt_prog_compiler_static='-Bstatic'
6318       fi
6319       ;;
6320
6321     amigaos*)
6322       # FIXME: we need at least 68020 code to build shared libraries, but
6323       # adding the `-m68020' flag to GCC prevents building anything better,
6324       # like `-m68040'.
6325       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6326       ;;
6327
6328     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6329       # PIC is the default for these OSes.
6330       ;;
6331
6332     mingw* | pw32* | os2*)
6333       # This hack is so that the source file can tell whether it is being
6334       # built for inclusion in a dll (and should export symbols for example).
6335       lt_prog_compiler_pic='-DDLL_EXPORT'
6336       ;;
6337
6338     darwin* | rhapsody*)
6339       # PIC is the default on this platform
6340       # Common symbols not allowed in MH_DYLIB files
6341       lt_prog_compiler_pic='-fno-common'
6342       ;;
6343
6344     msdosdjgpp*)
6345       # Just because we use GCC doesn't mean we suddenly get shared libraries
6346       # on systems that don't support them.
6347       lt_prog_compiler_can_build_shared=no
6348       enable_shared=no
6349       ;;
6350
6351     sysv4*MP*)
6352       if test -d /usr/nec; then
6353         lt_prog_compiler_pic=-Kconform_pic
6354       fi
6355       ;;
6356
6357     hpux*)
6358       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6359       # not for PA HP-UX.
6360       case "$host_cpu" in
6361       hppa*64*|ia64*)
6362         # +Z the default
6363         ;;
6364       *)
6365         lt_prog_compiler_pic='-fPIC'
6366         ;;
6367       esac
6368       ;;
6369
6370     *)
6371       lt_prog_compiler_pic='-fPIC'
6372       ;;
6373     esac
6374   else
6375     # PORTME Check for flag to pass linker flags through the system compiler.
6376     case $host_os in
6377     aix*)
6378       lt_prog_compiler_wl='-Wl,'
6379       if test "$host_cpu" = ia64; then
6380         # AIX 5 now supports IA64 processor
6381         lt_prog_compiler_static='-Bstatic'
6382       else
6383         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6384       fi
6385       ;;
6386
6387     mingw* | pw32* | os2*)
6388       # This hack is so that the source file can tell whether it is being
6389       # built for inclusion in a dll (and should export symbols for example).
6390       lt_prog_compiler_pic='-DDLL_EXPORT'
6391       ;;
6392
6393     hpux9* | hpux10* | hpux11*)
6394       lt_prog_compiler_wl='-Wl,'
6395       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6396       # not for PA HP-UX.
6397       case "$host_cpu" in
6398       hppa*64*|ia64*)
6399         # +Z the default
6400         ;;
6401       *)
6402         lt_prog_compiler_pic='+Z'
6403         ;;
6404       esac
6405       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6406       lt_prog_compiler_static='${wl}-a ${wl}archive'
6407       ;;
6408
6409     irix5* | irix6* | nonstopux*)
6410       lt_prog_compiler_wl='-Wl,'
6411       # PIC (with -KPIC) is the default.
6412       lt_prog_compiler_static='-non_shared'
6413       ;;
6414
6415     newsos6)
6416       lt_prog_compiler_pic='-KPIC'
6417       lt_prog_compiler_static='-Bstatic'
6418       ;;
6419
6420     linux*)
6421       case $CC in
6422       icc|ecc)
6423         lt_prog_compiler_wl='-Wl,'
6424         lt_prog_compiler_pic='-KPIC'
6425         lt_prog_compiler_static='-static'
6426         ;;
6427       ccc)
6428         lt_prog_compiler_wl='-Wl,'
6429         # All Alpha code is PIC.
6430         lt_prog_compiler_static='-non_shared'
6431         ;;
6432       esac
6433       ;;
6434
6435     osf3* | osf4* | osf5*)
6436       lt_prog_compiler_wl='-Wl,'
6437       # All OSF/1 code is PIC.
6438       lt_prog_compiler_static='-non_shared'
6439       ;;
6440
6441     sco3.2v5*)
6442       lt_prog_compiler_pic='-Kpic'
6443       lt_prog_compiler_static='-dn'
6444       ;;
6445
6446     solaris*)
6447       lt_prog_compiler_wl='-Wl,'
6448       lt_prog_compiler_pic='-KPIC'
6449       lt_prog_compiler_static='-Bstatic'
6450       ;;
6451
6452     sunos4*)
6453       lt_prog_compiler_wl='-Qoption ld '
6454       lt_prog_compiler_pic='-PIC'
6455       lt_prog_compiler_static='-Bstatic'
6456       ;;
6457
6458     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6459       lt_prog_compiler_wl='-Wl,'
6460       lt_prog_compiler_pic='-KPIC'
6461       lt_prog_compiler_static='-Bstatic'
6462       ;;
6463
6464     sysv4*MP*)
6465       if test -d /usr/nec ;then
6466         lt_prog_compiler_pic='-Kconform_pic'
6467         lt_prog_compiler_static='-Bstatic'
6468       fi
6469       ;;
6470
6471     uts4*)
6472       lt_prog_compiler_pic='-pic'
6473       lt_prog_compiler_static='-Bstatic'
6474       ;;
6475
6476     *)
6477       lt_prog_compiler_can_build_shared=no
6478       ;;
6479     esac
6480   fi
6481
6482 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6483 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6484
6485 #
6486 # Check to make sure the PIC flag actually works.
6487 #
6488 if test -n "$lt_prog_compiler_pic"; then
6489   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6490 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6491 if test "${lt_prog_compiler_pic_works+set}" = set; then
6492   echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494   lt_prog_compiler_pic_works=no
6495   ac_outfile=conftest.$ac_objext
6496    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6497    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6498    # Insert the option either (1) after the last *FLAGS variable, or
6499    # (2) before a word containing "conftest.", or (3) at the end.
6500    # Note that $ac_compile itself does not contain backslashes and begins
6501    # with a dollar sign (not a hyphen), so the echo should work correctly.
6502    # The option is referenced via a variable to avoid confusing sed.
6503    lt_compile=`echo "$ac_compile" | $SED \
6504    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6505    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6506    -e 's:$: $lt_compiler_flag:'`
6507    (eval echo "\"\$as_me:6507: $lt_compile\"" >&5)
6508    (eval "$lt_compile" 2>conftest.err)
6509    ac_status=$?
6510    cat conftest.err >&5
6511    echo "$as_me:6511: \$? = $ac_status" >&5
6512    if (exit $ac_status) && test -s "$ac_outfile"; then
6513      # The compiler can only warn and ignore the option if not recognized
6514      # So say no if there are warnings
6515      if test ! -s conftest.err; then
6516        lt_prog_compiler_pic_works=yes
6517      fi
6518    fi
6519    $rm conftest*
6520
6521 fi
6522 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6523 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6524
6525 if test x"$lt_prog_compiler_pic_works" = xyes; then
6526     case $lt_prog_compiler_pic in
6527      "" | " "*) ;;
6528      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6529      esac
6530 else
6531     lt_prog_compiler_pic=
6532      lt_prog_compiler_can_build_shared=no
6533 fi
6534
6535 fi
6536 case "$host_os" in
6537   # For platforms which do not support PIC, -DPIC is meaningless:
6538   *djgpp*)
6539     lt_prog_compiler_pic=
6540     ;;
6541   *)
6542     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6543     ;;
6544 esac
6545
6546 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6547 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6548 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6549   echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551   lt_cv_prog_compiler_c_o=no
6552    $rm -r conftest 2>/dev/null
6553    mkdir conftest
6554    cd conftest
6555    mkdir out
6556    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6557
6558    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6559    # that will create temporary files in the current directory regardless of
6560    # the output directory.  Thus, making CWD read-only will cause this test
6561    # to fail, enabling locking or at least warning the user not to do parallel
6562    # builds.
6563    chmod -w .
6564
6565    lt_compiler_flag="-o out/conftest2.$ac_objext"
6566    # Insert the option either (1) after the last *FLAGS variable, or
6567    # (2) before a word containing "conftest.", or (3) at the end.
6568    # Note that $ac_compile itself does not contain backslashes and begins
6569    # with a dollar sign (not a hyphen), so the echo should work correctly.
6570    lt_compile=`echo "$ac_compile" | $SED \
6571    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6572    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6573    -e 's:$: $lt_compiler_flag:'`
6574    (eval echo "\"\$as_me:6574: $lt_compile\"" >&5)
6575    (eval "$lt_compile" 2>out/conftest.err)
6576    ac_status=$?
6577    cat out/conftest.err >&5
6578    echo "$as_me:6578: \$? = $ac_status" >&5
6579    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6580    then
6581      # The compiler can only warn and ignore the option if not recognized
6582      # So say no if there are warnings
6583      if test ! -s out/conftest.err; then
6584        lt_cv_prog_compiler_c_o=yes
6585      fi
6586    fi
6587    chmod u+w .
6588    $rm conftest* out/*
6589    rmdir out
6590    cd ..
6591    rmdir conftest
6592    $rm conftest*
6593
6594 fi
6595 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6596 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6597
6598
6599 hard_links="nottested"
6600 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6601   # do not overwrite the value of need_locks provided by the user
6602   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6603 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6604   hard_links=yes
6605   $rm conftest*
6606   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6607   touch conftest.a
6608   ln conftest.a conftest.b 2>&5 || hard_links=no
6609   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6610   echo "$as_me:$LINENO: result: $hard_links" >&5
6611 echo "${ECHO_T}$hard_links" >&6
6612   if test "$hard_links" = no; then
6613     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6614 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6615     need_locks=warn
6616   fi
6617 else
6618   need_locks=no
6619 fi
6620
6621 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6622 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6623
6624   runpath_var=
6625   allow_undefined_flag=
6626   enable_shared_with_static_runtimes=no
6627   archive_cmds=
6628   archive_expsym_cmds=
6629   old_archive_From_new_cmds=
6630   old_archive_from_expsyms_cmds=
6631   export_dynamic_flag_spec=
6632   whole_archive_flag_spec=
6633   thread_safe_flag_spec=
6634   hardcode_libdir_flag_spec=
6635   hardcode_libdir_flag_spec_ld=
6636   hardcode_libdir_separator=
6637   hardcode_direct=no
6638   hardcode_minus_L=no
6639   hardcode_shlibpath_var=unsupported
6640   link_all_deplibs=unknown
6641   hardcode_automatic=no
6642   module_cmds=
6643   module_expsym_cmds=
6644   always_export_symbols=no
6645   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6646   # include_expsyms should be a list of space-separated symbols to be *always*
6647   # included in the symbol list
6648   include_expsyms=
6649   # exclude_expsyms can be an extended regexp of symbols to exclude
6650   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6651   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6652   # as well as any symbol that contains `d'.
6653   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6654   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6655   # platforms (ab)use it in PIC code, but their linkers get confused if
6656   # the symbol is explicitly referenced.  Since portable code cannot
6657   # rely on this symbol name, it's probably fine to never include it in
6658   # preloaded symbol tables.
6659   extract_expsyms_cmds=
6660
6661   case $host_os in
6662   cygwin* | mingw* | pw32*)
6663     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6664     # When not using gcc, we currently assume that we are using
6665     # Microsoft Visual C++.
6666     if test "$GCC" != yes; then
6667       with_gnu_ld=no
6668     fi
6669     ;;
6670   openbsd*)
6671     with_gnu_ld=no
6672     ;;
6673   esac
6674
6675   ld_shlibs=yes
6676   if test "$with_gnu_ld" = yes; then
6677     # If archive_cmds runs LD, not CC, wlarc should be empty
6678     wlarc='${wl}'
6679
6680     # See if GNU ld supports shared libraries.
6681     case $host_os in
6682     aix3* | aix4* | aix5*)
6683       # On AIX/PPC, the GNU linker is very broken
6684       if test "$host_cpu" != ia64; then
6685         ld_shlibs=no
6686         cat <<EOF 1>&2
6687
6688 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6689 *** to be unable to reliably create shared libraries on AIX.
6690 *** Therefore, libtool is disabling shared libraries support.  If you
6691 *** really care for shared libraries, you may want to modify your PATH
6692 *** so that a non-GNU linker is found, and then restart.
6693
6694 EOF
6695       fi
6696       ;;
6697
6698     amigaos*)
6699       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)'
6700       hardcode_libdir_flag_spec='-L$libdir'
6701       hardcode_minus_L=yes
6702
6703       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6704       # that the semantics of dynamic libraries on AmigaOS, at least up
6705       # to version 4, is to share data among multiple programs linked
6706       # with the same dynamic library.  Since this doesn't match the
6707       # behavior of shared libraries on other platforms, we can't use
6708       # them.
6709       ld_shlibs=no
6710       ;;
6711
6712     beos*)
6713       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6714         allow_undefined_flag=unsupported
6715         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6716         # support --undefined.  This deserves some investigation.  FIXME
6717         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6718       else
6719         ld_shlibs=no
6720       fi
6721       ;;
6722
6723     cygwin* | mingw* | pw32*)
6724       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6725       # as there is no search path for DLLs.
6726       hardcode_libdir_flag_spec='-L$libdir'
6727       allow_undefined_flag=unsupported
6728       always_export_symbols=no
6729       enable_shared_with_static_runtimes=yes
6730       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6731
6732       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6733         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6734         # If the export-symbols file already is a .def file (1st line
6735         # is EXPORTS), use it as is; otherwise, prepend...
6736         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6737           cp $export_symbols $output_objdir/$soname.def;
6738         else
6739           echo EXPORTS > $output_objdir/$soname.def;
6740           cat $export_symbols >> $output_objdir/$soname.def;
6741         fi~
6742         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6743       else
6744         ld_shlibs=no
6745       fi
6746       ;;
6747
6748     netbsd*)
6749       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6750         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6751         wlarc=
6752       else
6753         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6754         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6755       fi
6756       ;;
6757
6758     solaris* | sysv5*)
6759       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6760         ld_shlibs=no
6761         cat <<EOF 1>&2
6762
6763 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6764 *** create shared libraries on Solaris systems.  Therefore, libtool
6765 *** is disabling shared libraries support.  We urge you to upgrade GNU
6766 *** binutils to release 2.9.1 or newer.  Another option is to modify
6767 *** your PATH or compiler configuration so that the native linker is
6768 *** used, and then restart.
6769
6770 EOF
6771       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6772         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6773         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6774       else
6775         ld_shlibs=no
6776       fi
6777       ;;
6778
6779     sunos4*)
6780       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6781       wlarc=
6782       hardcode_direct=yes
6783       hardcode_shlibpath_var=no
6784       ;;
6785
6786     *)
6787       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6788         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6789         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6790       else
6791         ld_shlibs=no
6792       fi
6793       ;;
6794     esac
6795
6796     if test "$ld_shlibs" = yes; then
6797       runpath_var=LD_RUN_PATH
6798       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6799       export_dynamic_flag_spec='${wl}--export-dynamic'
6800       # ancient GNU ld didn't support --whole-archive et. al.
6801       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6802         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6803       else
6804         whole_archive_flag_spec=
6805       fi
6806     fi
6807   else
6808     # PORTME fill in a description of your system's linker (not GNU ld)
6809     case $host_os in
6810     aix3*)
6811       allow_undefined_flag=unsupported
6812       always_export_symbols=yes
6813       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'
6814       # Note: this linker hardcodes the directories in LIBPATH if there
6815       # are no directories specified by -L.
6816       hardcode_minus_L=yes
6817       if test "$GCC" = yes && test -z "$link_static_flag"; then
6818         # Neither direct hardcoding nor static linking is supported with a
6819         # broken collect2.
6820         hardcode_direct=unsupported
6821       fi
6822       ;;
6823
6824     aix4* | aix5*)
6825       if test "$host_cpu" = ia64; then
6826         # On IA64, the linker does run time linking by default, so we don't
6827         # have to do anything special.
6828         aix_use_runtimelinking=no
6829         exp_sym_flag='-Bexport'
6830         no_entry_flag=""
6831       else
6832         # If we're using GNU nm, then we don't want the "-C" option.
6833         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6834         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6835           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'
6836         else
6837           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'
6838         fi
6839         aix_use_runtimelinking=no
6840
6841         # Test if we are trying to use run time linking or normal
6842         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6843         # need to do runtime linking.
6844         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6845           for ld_flag in $LDFLAGS; do
6846           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6847             aix_use_runtimelinking=yes
6848             break
6849           fi
6850           done
6851         esac
6852
6853         exp_sym_flag='-bexport'
6854         no_entry_flag='-bnoentry'
6855       fi
6856
6857       # When large executables or shared objects are built, AIX ld can
6858       # have problems creating the table of contents.  If linking a library
6859       # or program results in "error TOC overflow" add -mminimal-toc to
6860       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6861       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6862
6863       archive_cmds=''
6864       hardcode_direct=yes
6865       hardcode_libdir_separator=':'
6866       link_all_deplibs=yes
6867
6868       if test "$GCC" = yes; then
6869         case $host_os in aix4.012|aix4.012.*)
6870         # We only want to do this on AIX 4.2 and lower, the check
6871         # below for broken collect2 doesn't work under 4.3+
6872           collect2name=`${CC} -print-prog-name=collect2`
6873           if test -f "$collect2name" && \
6874            strings "$collect2name" | grep resolve_lib_name >/dev/null
6875           then
6876           # We have reworked collect2
6877           hardcode_direct=yes
6878           else
6879           # We have old collect2
6880           hardcode_direct=unsupported
6881           # It fails to find uninstalled libraries when the uninstalled
6882           # path is not listed in the libpath.  Setting hardcode_minus_L
6883           # to unsupported forces relinking
6884           hardcode_minus_L=yes
6885           hardcode_libdir_flag_spec='-L$libdir'
6886           hardcode_libdir_separator=
6887           fi
6888         esac
6889         shared_flag='-shared'
6890       else
6891         # not using gcc
6892         if test "$host_cpu" = ia64; then
6893         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6894         # chokes on -Wl,-G. The following line is correct:
6895           shared_flag='-G'
6896         else
6897         if test "$aix_use_runtimelinking" = yes; then
6898             shared_flag='${wl}-G'
6899           else
6900             shared_flag='${wl}-bM:SRE'
6901         fi
6902         fi
6903       fi
6904
6905       # It seems that -bexpall does not export symbols beginning with
6906       # underscore (_), so it is better to generate a list of symbols to export.
6907       always_export_symbols=yes
6908       if test "$aix_use_runtimelinking" = yes; then
6909         # Warning - without using the other runtime loading flags (-brtl),
6910         # -berok will link without error, but may produce a broken library.
6911         allow_undefined_flag='-berok'
6912        # Determine the default libpath from the value encoded in an empty executable.
6913        cat >conftest.$ac_ext <<_ACEOF
6914 #line $LINENO "configure"
6915 /* confdefs.h.  */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h.  */
6920
6921 int
6922 main ()
6923 {
6924
6925   ;
6926   return 0;
6927 }
6928 _ACEOF
6929 rm -f conftest.$ac_objext conftest$ac_exeext
6930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6931   (eval $ac_link) 2>&5
6932   ac_status=$?
6933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934   (exit $ac_status); } &&
6935          { ac_try='test -s conftest$ac_exeext'
6936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937   (eval $ac_try) 2>&5
6938   ac_status=$?
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); }; }; then
6941
6942 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6943 }'`
6944 # Check for a 64-bit object if we didn't find anything.
6945 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; }
6946 }'`; fi
6947 else
6948   echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6950
6951 fi
6952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6953 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6954
6955        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6956         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"
6957        else
6958         if test "$host_cpu" = ia64; then
6959           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6960           allow_undefined_flag="-z nodefs"
6961           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"
6962         else
6963          # Determine the default libpath from the value encoded in an empty executable.
6964          cat >conftest.$ac_ext <<_ACEOF
6965 #line $LINENO "configure"
6966 /* confdefs.h.  */
6967 _ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h.  */
6971
6972 int
6973 main ()
6974 {
6975
6976   ;
6977   return 0;
6978 }
6979 _ACEOF
6980 rm -f conftest.$ac_objext conftest$ac_exeext
6981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6982   (eval $ac_link) 2>&5
6983   ac_status=$?
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); } &&
6986          { ac_try='test -s conftest$ac_exeext'
6987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988   (eval $ac_try) 2>&5
6989   ac_status=$?
6990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991   (exit $ac_status); }; }; then
6992
6993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6994 }'`
6995 # Check for a 64-bit object if we didn't find anything.
6996 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; }
6997 }'`; fi
6998 else
6999   echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7001
7002 fi
7003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7004 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7005
7006          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7007           # Warning - without using the other run time loading flags,
7008           # -berok will link without error, but may produce a broken library.
7009           no_undefined_flag=' ${wl}-bernotok'
7010           allow_undefined_flag=' ${wl}-berok'
7011           # -bexpall does not export symbols beginning with underscore (_)
7012           always_export_symbols=yes
7013           # Exported symbols can be pulled into shared objects from archives
7014           whole_archive_flag_spec=' '
7015           archive_cmds_need_lc=yes
7016           # This is similar to how AIX traditionally builds it's shared libraries.
7017           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'
7018         fi
7019       fi
7020       ;;
7021
7022     amigaos*)
7023       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)'
7024       hardcode_libdir_flag_spec='-L$libdir'
7025       hardcode_minus_L=yes
7026       # see comment about different semantics on the GNU ld section
7027       ld_shlibs=no
7028       ;;
7029
7030     bsdi4*)
7031       export_dynamic_flag_spec=-rdynamic
7032       ;;
7033
7034     cygwin* | mingw* | pw32*)
7035       # When not using gcc, we currently assume that we are using
7036       # Microsoft Visual C++.
7037       # hardcode_libdir_flag_spec is actually meaningless, as there is
7038       # no search path for DLLs.
7039       hardcode_libdir_flag_spec=' '
7040       allow_undefined_flag=unsupported
7041       # Tell ltmain to make .lib files, not .a files.
7042       libext=lib
7043       # Tell ltmain to make .dll files, not .so files.
7044       shrext=".dll"
7045       # FIXME: Setting linknames here is a bad hack.
7046       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7047       # The linker will automatically build a .lib file if we build a DLL.
7048       old_archive_From_new_cmds='true'
7049       # FIXME: Should let the user specify the lib program.
7050       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7051       fix_srcfile_path='`cygpath -w "$srcfile"`'
7052       enable_shared_with_static_runtimes=yes
7053       ;;
7054
7055     darwin* | rhapsody*)
7056     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7057       archive_cmds_need_lc=no
7058       case "$host_os" in
7059       rhapsody* | darwin1.[012])
7060         allow_undefined_flag='-undefined suppress'
7061         ;;
7062       *) # Darwin 1.3 on
7063         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7064         ;;
7065       esac
7066       # FIXME: Relying on posixy $() will cause problems for
7067       #        cross-compilation, but unfortunately the echo tests do not
7068       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7069       #        `"' quotes if we put them in here... so don't!
7070         lt_int_apple_cc_single_mod=no
7071         output_verbose_link_cmd='echo'
7072         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7073           lt_int_apple_cc_single_mod=yes
7074         fi
7075         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7076           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7077         else
7078         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'
7079       fi
7080       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7081       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7082         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7083           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}'
7084         else
7085           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}'
7086         fi
7087           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}'
7088       hardcode_direct=no
7089       hardcode_automatic=yes
7090       hardcode_shlibpath_var=unsupported
7091       whole_archive_flag_spec='-all_load $convenience'
7092       link_all_deplibs=yes
7093     fi
7094       ;;
7095
7096     dgux*)
7097       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7098       hardcode_libdir_flag_spec='-L$libdir'
7099       hardcode_shlibpath_var=no
7100       ;;
7101
7102     freebsd1*)
7103       ld_shlibs=no
7104       ;;
7105
7106     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7107     # support.  Future versions do this automatically, but an explicit c++rt0.o
7108     # does not break anything, and helps significantly (at the cost of a little
7109     # extra space).
7110     freebsd2.2*)
7111       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7112       hardcode_libdir_flag_spec='-R$libdir'
7113       hardcode_direct=yes
7114       hardcode_shlibpath_var=no
7115       ;;
7116
7117     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7118     freebsd2*)
7119       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7120       hardcode_direct=yes
7121       hardcode_minus_L=yes
7122       hardcode_shlibpath_var=no
7123       ;;
7124
7125     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7126     freebsd*)
7127       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7128       hardcode_libdir_flag_spec='-R$libdir'
7129       hardcode_direct=yes
7130       hardcode_shlibpath_var=no
7131       ;;
7132
7133     hpux9*)
7134       if test "$GCC" = yes; then
7135         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'
7136       else
7137         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'
7138       fi
7139       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7140       hardcode_libdir_separator=:
7141       hardcode_direct=yes
7142
7143       # hardcode_minus_L: Not really in the search PATH,
7144       # but as the default location of the library.
7145       hardcode_minus_L=yes
7146       export_dynamic_flag_spec='${wl}-E'
7147       ;;
7148
7149     hpux10* | hpux11*)
7150       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7151         case "$host_cpu" in
7152         hppa*64*|ia64*)
7153           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7154           ;;
7155         *)
7156           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7157           ;;
7158         esac
7159       else
7160         case "$host_cpu" in
7161         hppa*64*|ia64*)
7162           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7163           ;;
7164         *)
7165           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7166           ;;
7167         esac
7168       fi
7169       if test "$with_gnu_ld" = no; then
7170         case "$host_cpu" in
7171         hppa*64*)
7172           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7173           hardcode_libdir_flag_spec_ld='+b $libdir'
7174           hardcode_libdir_separator=:
7175           hardcode_direct=no
7176           hardcode_shlibpath_var=no
7177           ;;
7178         ia64*)
7179           hardcode_libdir_flag_spec='-L$libdir'
7180           hardcode_direct=no
7181           hardcode_shlibpath_var=no
7182
7183           # hardcode_minus_L: Not really in the search PATH,
7184           # but as the default location of the library.
7185           hardcode_minus_L=yes
7186           ;;
7187         *)
7188           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7189           hardcode_libdir_separator=:
7190           hardcode_direct=yes
7191           export_dynamic_flag_spec='${wl}-E'
7192
7193           # hardcode_minus_L: Not really in the search PATH,
7194           # but as the default location of the library.
7195           hardcode_minus_L=yes
7196           ;;
7197         esac
7198       fi
7199       ;;
7200
7201     irix5* | irix6* | nonstopux*)
7202       if test "$GCC" = yes; then
7203         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'
7204       else
7205         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'
7206         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7207       fi
7208       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7209       hardcode_libdir_separator=:
7210       link_all_deplibs=yes
7211       ;;
7212
7213     netbsd*)
7214       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7215         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7216       else
7217         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7218       fi
7219       hardcode_libdir_flag_spec='-R$libdir'
7220       hardcode_direct=yes
7221       hardcode_shlibpath_var=no
7222       ;;
7223
7224     newsos6)
7225       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7226       hardcode_direct=yes
7227       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7228       hardcode_libdir_separator=:
7229       hardcode_shlibpath_var=no
7230       ;;
7231
7232     openbsd*)
7233       hardcode_direct=yes
7234       hardcode_shlibpath_var=no
7235       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7236         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7237         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7238         export_dynamic_flag_spec='${wl}-E'
7239       else
7240        case $host_os in
7241          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7242            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7243            hardcode_libdir_flag_spec='-R$libdir'
7244            ;;
7245          *)
7246            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7247            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7248            ;;
7249        esac
7250       fi
7251       ;;
7252
7253     os2*)
7254       hardcode_libdir_flag_spec='-L$libdir'
7255       hardcode_minus_L=yes
7256       allow_undefined_flag=unsupported
7257       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'
7258       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7259       ;;
7260
7261     osf3*)
7262       if test "$GCC" = yes; then
7263         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7264         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'
7265       else
7266         allow_undefined_flag=' -expect_unresolved \*'
7267         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'
7268       fi
7269       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7270       hardcode_libdir_separator=:
7271       ;;
7272
7273     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7274       if test "$GCC" = yes; then
7275         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7276         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'
7277         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7278       else
7279         allow_undefined_flag=' -expect_unresolved \*'
7280         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'
7281         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7282         $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'
7283
7284         # Both c and cxx compiler support -rpath directly
7285         hardcode_libdir_flag_spec='-rpath $libdir'
7286       fi
7287       hardcode_libdir_separator=:
7288       ;;
7289
7290     sco3.2v5*)
7291       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7292       hardcode_shlibpath_var=no
7293       export_dynamic_flag_spec='${wl}-Bexport'
7294       runpath_var=LD_RUN_PATH
7295       hardcode_runpath_var=yes
7296       ;;
7297
7298     solaris*)
7299       no_undefined_flag=' -z text'
7300       if test "$GCC" = yes; then
7301         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7302         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7303           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7304       else
7305         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7306         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7307         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7308       fi
7309       hardcode_libdir_flag_spec='-R$libdir'
7310       hardcode_shlibpath_var=no
7311       case $host_os in
7312       solaris2.[0-5] | solaris2.[0-5].*) ;;
7313       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7314         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7315       esac
7316       link_all_deplibs=yes
7317       ;;
7318
7319     sunos4*)
7320       if test "x$host_vendor" = xsequent; then
7321         # Use $CC to link under sequent, because it throws in some extra .o
7322         # files that make .init and .fini sections work.
7323         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7324       else
7325         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7326       fi
7327       hardcode_libdir_flag_spec='-L$libdir'
7328       hardcode_direct=yes
7329       hardcode_minus_L=yes
7330       hardcode_shlibpath_var=no
7331       ;;
7332
7333     sysv4)
7334       case $host_vendor in
7335         sni)
7336           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7337           hardcode_direct=yes # is this really true???
7338         ;;
7339         siemens)
7340           ## LD is ld it makes a PLAMLIB
7341           ## CC just makes a GrossModule.
7342           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7343           reload_cmds='$CC -r -o $output$reload_objs'
7344           hardcode_direct=no
7345         ;;
7346         motorola)
7347           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7348           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7349         ;;
7350       esac
7351       runpath_var='LD_RUN_PATH'
7352       hardcode_shlibpath_var=no
7353       ;;
7354
7355     sysv4.3*)
7356       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7357       hardcode_shlibpath_var=no
7358       export_dynamic_flag_spec='-Bexport'
7359       ;;
7360
7361     sysv4*MP*)
7362       if test -d /usr/nec; then
7363         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7364         hardcode_shlibpath_var=no
7365         runpath_var=LD_RUN_PATH
7366         hardcode_runpath_var=yes
7367         ld_shlibs=yes
7368       fi
7369       ;;
7370
7371     sysv4.2uw2*)
7372       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7373       hardcode_direct=yes
7374       hardcode_minus_L=no
7375       hardcode_shlibpath_var=no
7376       hardcode_runpath_var=yes
7377       runpath_var=LD_RUN_PATH
7378       ;;
7379
7380    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7381       no_undefined_flag='${wl}-z ${wl}text'
7382       if test "$GCC" = yes; then
7383         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7384       else
7385         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7386       fi
7387       runpath_var='LD_RUN_PATH'
7388       hardcode_shlibpath_var=no
7389       ;;
7390
7391     sysv5*)
7392       no_undefined_flag=' -z text'
7393       # $CC -shared without GNU ld will not create a library from C++
7394       # object files and a static libstdc++, better avoid it by now
7395       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7396       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7397                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7398       hardcode_libdir_flag_spec=
7399       hardcode_shlibpath_var=no
7400       runpath_var='LD_RUN_PATH'
7401       ;;
7402
7403     uts4*)
7404       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7405       hardcode_libdir_flag_spec='-L$libdir'
7406       hardcode_shlibpath_var=no
7407       ;;
7408
7409     *)
7410       ld_shlibs=no
7411       ;;
7412     esac
7413   fi
7414
7415 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7416 echo "${ECHO_T}$ld_shlibs" >&6
7417 test "$ld_shlibs" = no && can_build_shared=no
7418
7419 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7420 if test "$GCC" = yes; then
7421   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7422 fi
7423
7424 #
7425 # Do we need to explicitly link libc?
7426 #
7427 case "x$archive_cmds_need_lc" in
7428 x|xyes)
7429   # Assume -lc should be added
7430   archive_cmds_need_lc=yes
7431
7432   if test "$enable_shared" = yes && test "$GCC" = yes; then
7433     case $archive_cmds in
7434     *'~'*)
7435       # FIXME: we may have to deal with multi-command sequences.
7436       ;;
7437     '$CC '*)
7438       # Test whether the compiler implicitly links with -lc since on some
7439       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7440       # to ld, don't add -lc before -lgcc.
7441       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7442 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7443       $rm conftest*
7444       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7445
7446       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7447   (eval $ac_compile) 2>&5
7448   ac_status=$?
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); } 2>conftest.err; then
7451         soname=conftest
7452         lib=conftest
7453         libobjs=conftest.$ac_objext
7454         deplibs=
7455         wl=$lt_prog_compiler_wl
7456         compiler_flags=-v
7457         linker_flags=-v
7458         verstring=
7459         output_objdir=.
7460         libname=conftest
7461         lt_save_allow_undefined_flag=$allow_undefined_flag
7462         allow_undefined_flag=
7463         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7464   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7465   ac_status=$?
7466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467   (exit $ac_status); }
7468         then
7469           archive_cmds_need_lc=no
7470         else
7471           archive_cmds_need_lc=yes
7472         fi
7473         allow_undefined_flag=$lt_save_allow_undefined_flag
7474       else
7475         cat conftest.err 1>&5
7476       fi
7477       $rm conftest*
7478       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7479 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7480       ;;
7481     esac
7482   fi
7483   ;;
7484 esac
7485
7486 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7487 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7488 hardcode_action=
7489 if test -n "$hardcode_libdir_flag_spec" || \
7490    test -n "$runpath_var " || \
7491    test "X$hardcode_automatic"="Xyes" ; then
7492
7493   # We can hardcode non-existant directories.
7494   if test "$hardcode_direct" != no &&
7495      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7496      # have to relink, otherwise we might link with an installed library
7497      # when we should be linking with a yet-to-be-installed one
7498      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7499      test "$hardcode_minus_L" != no; then
7500     # Linking always hardcodes the temporary library directory.
7501     hardcode_action=relink
7502   else
7503     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7504     hardcode_action=immediate
7505   fi
7506 else
7507   # We cannot hardcode anything, or else we can only hardcode existing
7508   # directories.
7509   hardcode_action=unsupported
7510 fi
7511 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7512 echo "${ECHO_T}$hardcode_action" >&6
7513
7514 if test "$hardcode_action" = relink; then
7515   # Fast installation is not supported
7516   enable_fast_install=no
7517 elif test "$shlibpath_overrides_runpath" = yes ||
7518      test "$enable_shared" = no; then
7519   # Fast installation is not necessary
7520   enable_fast_install=needless
7521 fi
7522
7523 striplib=
7524 old_striplib=
7525 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7526 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7527 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7528   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7529   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7530   echo "$as_me:$LINENO: result: yes" >&5
7531 echo "${ECHO_T}yes" >&6
7532 else
7533 # FIXME - insert some real tests, host_os isn't really good enough
7534   case $host_os in
7535    darwin*)
7536        if test -n "$STRIP" ; then
7537          striplib="$STRIP -x"
7538          echo "$as_me:$LINENO: result: yes" >&5
7539 echo "${ECHO_T}yes" >&6
7540        else
7541   echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6
7543 fi
7544        ;;
7545    *)
7546   echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6
7548     ;;
7549   esac
7550 fi
7551
7552 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7553 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7554 library_names_spec=
7555 libname_spec='lib$name'
7556 soname_spec=
7557 shrext=".so"
7558 postinstall_cmds=
7559 postuninstall_cmds=
7560 finish_cmds=
7561 finish_eval=
7562 shlibpath_var=
7563 shlibpath_overrides_runpath=unknown
7564 version_type=none
7565 dynamic_linker="$host_os ld.so"
7566 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7567 if test "$GCC" = yes; then
7568   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7569   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7570     # if the path contains ";" then we assume it to be the separator
7571     # otherwise default to the standard path separator (i.e. ":") - it is
7572     # assumed that no part of a normal pathname contains ";" but that should
7573     # okay in the real world where ";" in dirpaths is itself problematic.
7574     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7575   else
7576     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7577   fi
7578 else
7579   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7580 fi
7581 need_lib_prefix=unknown
7582 hardcode_into_libs=no
7583
7584 # when you set need_version to no, make sure it does not cause -set_version
7585 # flags to be left without arguments
7586 need_version=unknown
7587
7588 case $host_os in
7589 aix3*)
7590   version_type=linux
7591   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7592   shlibpath_var=LIBPATH
7593
7594   # AIX 3 has no versioning support, so we append a major version to the name.
7595   soname_spec='${libname}${release}${shared_ext}$major'
7596   ;;
7597
7598 aix4* | aix5*)
7599   version_type=linux
7600   need_lib_prefix=no
7601   need_version=no
7602   hardcode_into_libs=yes
7603   if test "$host_cpu" = ia64; then
7604     # AIX 5 supports IA64
7605     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7606     shlibpath_var=LD_LIBRARY_PATH
7607   else
7608     # With GCC up to 2.95.x, collect2 would create an import file
7609     # for dependence libraries.  The import file would start with
7610     # the line `#! .'.  This would cause the generated library to
7611     # depend on `.', always an invalid library.  This was fixed in
7612     # development snapshots of GCC prior to 3.0.
7613     case $host_os in
7614       aix4 | aix4.[01] | aix4.[01].*)
7615       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7616            echo ' yes '
7617            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7618         :
7619       else
7620         can_build_shared=no
7621       fi
7622       ;;
7623     esac
7624     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7625     # soname into executable. Probably we can add versioning support to
7626     # collect2, so additional links can be useful in future.
7627     if test "$aix_use_runtimelinking" = yes; then
7628       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7629       # instead of lib<name>.a to let people know that these are not
7630       # typical AIX shared libraries.
7631       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7632     else
7633       # We preserve .a as extension for shared libraries through AIX4.2
7634       # and later when we are not doing run time linking.
7635       library_names_spec='${libname}${release}.a $libname.a'
7636       soname_spec='${libname}${release}${shared_ext}$major'
7637     fi
7638     shlibpath_var=LIBPATH
7639   fi
7640   ;;
7641
7642 amigaos*)
7643   library_names_spec='$libname.ixlibrary $libname.a'
7644   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7645   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'
7646   ;;
7647
7648 beos*)
7649   library_names_spec='${libname}${shared_ext}'
7650   dynamic_linker="$host_os ld.so"
7651   shlibpath_var=LIBRARY_PATH
7652   ;;
7653
7654 bsdi4*)
7655   version_type=linux
7656   need_version=no
7657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7658   soname_spec='${libname}${release}${shared_ext}$major'
7659   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7660   shlibpath_var=LD_LIBRARY_PATH
7661   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7662   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7663   # the default ld.so.conf also contains /usr/contrib/lib and
7664   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7665   # libtool to hard-code these into programs
7666   ;;
7667
7668 cygwin* | mingw* | pw32*)
7669   version_type=windows
7670   shrext=".dll"
7671   need_version=no
7672   need_lib_prefix=no
7673
7674   case $GCC,$host_os in
7675   yes,cygwin* | yes,mingw* | yes,pw32*)
7676     library_names_spec='$libname.dll.a'
7677     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7678     postinstall_cmds='base_file=`basename \${file}`~
7679       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7680       dldir=$destdir/`dirname \$dlpath`~
7681       test -d \$dldir || mkdir -p \$dldir~
7682       $install_prog $dir/$dlname \$dldir/$dlname'
7683     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7684       dlpath=$dir/\$dldll~
7685        $rm \$dlpath'
7686     shlibpath_overrides_runpath=yes
7687
7688     case $host_os in
7689     cygwin*)
7690       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7691       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7692       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7693       ;;
7694     mingw*)
7695       # MinGW DLLs use traditional 'lib' prefix
7696       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7697       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7698       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7699         # It is most probably a Windows format PATH printed by
7700         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7701         # path with ; separators, and with drive letters. We can handle the
7702         # drive letters (cygwin fileutils understands them), so leave them,
7703         # especially as we might pass files found there to a mingw objdump,
7704         # which wouldn't understand a cygwinified path. Ahh.
7705         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7706       else
7707         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7708       fi
7709       ;;
7710     pw32*)
7711       # pw32 DLLs use 'pw' prefix rather than 'lib'
7712       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7713       ;;
7714     esac
7715     ;;
7716
7717   *)
7718     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7719     ;;
7720   esac
7721   dynamic_linker='Win32 ld.exe'
7722   # FIXME: first we should search . and the directory the executable is in
7723   shlibpath_var=PATH
7724   ;;
7725
7726 darwin* | rhapsody*)
7727   dynamic_linker="$host_os dyld"
7728   version_type=darwin
7729   need_lib_prefix=no
7730   need_version=no
7731   # FIXME: Relying on posixy $() will cause problems for
7732   #        cross-compilation, but unfortunately the echo tests do not
7733   #        yet detect zsh echo's removal of \ escapes.
7734   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7735   soname_spec='${libname}${release}${major}$shared_ext'
7736   shlibpath_overrides_runpath=yes
7737   shlibpath_var=DYLD_LIBRARY_PATH
7738   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7739   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7740   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7741   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"`
7742   fi
7743   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7744   ;;
7745
7746 dgux*)
7747   version_type=linux
7748   need_lib_prefix=no
7749   need_version=no
7750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7751   soname_spec='${libname}${release}${shared_ext}$major'
7752   shlibpath_var=LD_LIBRARY_PATH
7753   ;;
7754
7755 freebsd1*)
7756   dynamic_linker=no
7757   ;;
7758
7759 freebsd*)
7760   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7761   version_type=freebsd-$objformat
7762   case $version_type in
7763     freebsd-elf*)
7764       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7765       need_version=no
7766       need_lib_prefix=no
7767       ;;
7768     freebsd-*)
7769       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7770       need_version=yes
7771       ;;
7772   esac
7773   shlibpath_var=LD_LIBRARY_PATH
7774   case $host_os in
7775   freebsd2*)
7776     shlibpath_overrides_runpath=yes
7777     ;;
7778   freebsd3.01* | freebsdelf3.01*)
7779     shlibpath_overrides_runpath=yes
7780     hardcode_into_libs=yes
7781     ;;
7782   *) # from 3.2 on
7783     shlibpath_overrides_runpath=no
7784     hardcode_into_libs=yes
7785     ;;
7786   esac
7787   ;;
7788
7789 gnu*)
7790   version_type=linux
7791   need_lib_prefix=no
7792   need_version=no
7793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7794   soname_spec='${libname}${release}${shared_ext}$major'
7795   shlibpath_var=LD_LIBRARY_PATH
7796   hardcode_into_libs=yes
7797   ;;
7798
7799 hpux9* | hpux10* | hpux11*)
7800   # Give a soname corresponding to the major version so that dld.sl refuses to
7801   # link against other versions.
7802   version_type=sunos
7803   need_lib_prefix=no
7804   need_version=no
7805   case "$host_cpu" in
7806   ia64*)
7807     shrext='.so'
7808     hardcode_into_libs=yes
7809     dynamic_linker="$host_os dld.so"
7810     shlibpath_var=LD_LIBRARY_PATH
7811     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7812     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7813     soname_spec='${libname}${release}${shared_ext}$major'
7814     if test "X$HPUX_IA64_MODE" = X32; then
7815       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7816     else
7817       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7818     fi
7819     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7820     ;;
7821    hppa*64*)
7822      shrext='.sl'
7823      hardcode_into_libs=yes
7824      dynamic_linker="$host_os dld.sl"
7825      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7826      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7827      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7828      soname_spec='${libname}${release}${shared_ext}$major'
7829      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7830      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7831      ;;
7832    *)
7833     shrext='.sl'
7834     dynamic_linker="$host_os dld.sl"
7835     shlibpath_var=SHLIB_PATH
7836     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7837     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7838     soname_spec='${libname}${release}${shared_ext}$major'
7839     ;;
7840   esac
7841   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7842   postinstall_cmds='chmod 555 $lib'
7843   ;;
7844
7845 irix5* | irix6* | nonstopux*)
7846   case $host_os in
7847     nonstopux*) version_type=nonstopux ;;
7848     *)
7849         if test "$lt_cv_prog_gnu_ld" = yes; then
7850                 version_type=linux
7851         else
7852                 version_type=irix
7853         fi ;;
7854   esac
7855   need_lib_prefix=no
7856   need_version=no
7857   soname_spec='${libname}${release}${shared_ext}$major'
7858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7859   case $host_os in
7860   irix5* | nonstopux*)
7861     libsuff= shlibsuff=
7862     ;;
7863   *)
7864     case $LD in # libtool.m4 will add one of these switches to LD
7865     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7866       libsuff= shlibsuff= libmagic=32-bit;;
7867     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7868       libsuff=32 shlibsuff=N32 libmagic=N32;;
7869     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7870       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7871     *) libsuff= shlibsuff= libmagic=never-match;;
7872     esac
7873     ;;
7874   esac
7875   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7876   shlibpath_overrides_runpath=no
7877   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7878   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7879   hardcode_into_libs=yes
7880   ;;
7881
7882 # No shared lib support for Linux oldld, aout, or coff.
7883 linux*oldld* | linux*aout* | linux*coff*)
7884   dynamic_linker=no
7885   ;;
7886
7887 # This must be Linux ELF.
7888 linux*)
7889   version_type=linux
7890   need_lib_prefix=no
7891   need_version=no
7892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7893   soname_spec='${libname}${release}${shared_ext}$major'
7894   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7895   shlibpath_var=LD_LIBRARY_PATH
7896   shlibpath_overrides_runpath=no
7897   # This implies no fast_install, which is unacceptable.
7898   # Some rework will be needed to allow for fast_install
7899   # before this can be enabled.
7900   hardcode_into_libs=yes
7901
7902   # We used to test for /lib/ld.so.1 and disable shared libraries on
7903   # powerpc, because MkLinux only supported shared libraries with the
7904   # GNU dynamic linker.  Since this was broken with cross compilers,
7905   # most powerpc-linux boxes support dynamic linking these days and
7906   # people can always --disable-shared, the test was removed, and we
7907   # assume the GNU/Linux dynamic linker is in use.
7908   dynamic_linker='GNU/Linux ld.so'
7909   ;;
7910
7911 netbsd*)
7912   version_type=sunos
7913   need_lib_prefix=no
7914   need_version=no
7915   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7916     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7917     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7918     dynamic_linker='NetBSD (a.out) ld.so'
7919   else
7920     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7921     soname_spec='${libname}${release}${shared_ext}$major'
7922     dynamic_linker='NetBSD ld.elf_so'
7923   fi
7924   shlibpath_var=LD_LIBRARY_PATH
7925   shlibpath_overrides_runpath=yes
7926   hardcode_into_libs=yes
7927   ;;
7928
7929 newsos6)
7930   version_type=linux
7931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7932   shlibpath_var=LD_LIBRARY_PATH
7933   shlibpath_overrides_runpath=yes
7934   ;;
7935
7936 nto-qnx)
7937   version_type=linux
7938   need_lib_prefix=no
7939   need_version=no
7940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7941   soname_spec='${libname}${release}${shared_ext}$major'
7942   shlibpath_var=LD_LIBRARY_PATH
7943   shlibpath_overrides_runpath=yes
7944   ;;
7945
7946 openbsd*)
7947   version_type=sunos
7948   need_lib_prefix=no
7949   need_version=no
7950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7951   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7952   shlibpath_var=LD_LIBRARY_PATH
7953   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7954     case $host_os in
7955       openbsd2.[89] | openbsd2.[89].*)
7956         shlibpath_overrides_runpath=no
7957         ;;
7958       *)
7959         shlibpath_overrides_runpath=yes
7960         ;;
7961       esac
7962   else
7963     shlibpath_overrides_runpath=yes
7964   fi
7965   ;;
7966
7967 os2*)
7968   libname_spec='$name'
7969   shrext=".dll"
7970   need_lib_prefix=no
7971   library_names_spec='$libname${shared_ext} $libname.a'
7972   dynamic_linker='OS/2 ld.exe'
7973   shlibpath_var=LIBPATH
7974   ;;
7975
7976 osf3* | osf4* | osf5*)
7977   version_type=osf
7978   need_lib_prefix=no
7979   need_version=no
7980   soname_spec='${libname}${release}${shared_ext}$major'
7981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7982   shlibpath_var=LD_LIBRARY_PATH
7983   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7984   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7985   ;;
7986
7987 sco3.2v5*)
7988   version_type=osf
7989   soname_spec='${libname}${release}${shared_ext}$major'
7990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7991   shlibpath_var=LD_LIBRARY_PATH
7992   ;;
7993
7994 solaris*)
7995   version_type=linux
7996   need_lib_prefix=no
7997   need_version=no
7998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7999   soname_spec='${libname}${release}${shared_ext}$major'
8000   shlibpath_var=LD_LIBRARY_PATH
8001   shlibpath_overrides_runpath=yes
8002   hardcode_into_libs=yes
8003   # ldd complains unless libraries are executable
8004   postinstall_cmds='chmod +x $lib'
8005   ;;
8006
8007 sunos4*)
8008   version_type=sunos
8009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8010   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8011   shlibpath_var=LD_LIBRARY_PATH
8012   shlibpath_overrides_runpath=yes
8013   if test "$with_gnu_ld" = yes; then
8014     need_lib_prefix=no
8015   fi
8016   need_version=yes
8017   ;;
8018
8019 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8020   version_type=linux
8021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8022   soname_spec='${libname}${release}${shared_ext}$major'
8023   shlibpath_var=LD_LIBRARY_PATH
8024   case $host_vendor in
8025     sni)
8026       shlibpath_overrides_runpath=no
8027       need_lib_prefix=no
8028       export_dynamic_flag_spec='${wl}-Blargedynsym'
8029       runpath_var=LD_RUN_PATH
8030       ;;
8031     siemens)
8032       need_lib_prefix=no
8033       ;;
8034     motorola)
8035       need_lib_prefix=no
8036       need_version=no
8037       shlibpath_overrides_runpath=no
8038       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8039       ;;
8040   esac
8041   ;;
8042
8043 sysv4*MP*)
8044   if test -d /usr/nec ;then
8045     version_type=linux
8046     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8047     soname_spec='$libname${shared_ext}.$major'
8048     shlibpath_var=LD_LIBRARY_PATH
8049   fi
8050   ;;
8051
8052 uts4*)
8053   version_type=linux
8054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8055   soname_spec='${libname}${release}${shared_ext}$major'
8056   shlibpath_var=LD_LIBRARY_PATH
8057   ;;
8058
8059 *)
8060   dynamic_linker=no
8061   ;;
8062 esac
8063 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8064 echo "${ECHO_T}$dynamic_linker" >&6
8065 test "$dynamic_linker" = no && can_build_shared=no
8066
8067 if test "x$enable_dlopen" != xyes; then
8068   enable_dlopen=unknown
8069   enable_dlopen_self=unknown
8070   enable_dlopen_self_static=unknown
8071 else
8072   lt_cv_dlopen=no
8073   lt_cv_dlopen_libs=
8074
8075   case $host_os in
8076   beos*)
8077     lt_cv_dlopen="load_add_on"
8078     lt_cv_dlopen_libs=
8079     lt_cv_dlopen_self=yes
8080     ;;
8081
8082   mingw* | pw32*)
8083     lt_cv_dlopen="LoadLibrary"
8084     lt_cv_dlopen_libs=
8085    ;;
8086
8087   cygwin*)
8088     lt_cv_dlopen="dlopen"
8089     lt_cv_dlopen_libs=
8090    ;;
8091
8092   darwin*)
8093   # if libdl is installed we need to link against it
8094     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8095 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8096 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8097   echo $ECHO_N "(cached) $ECHO_C" >&6
8098 else
8099   ac_check_lib_save_LIBS=$LIBS
8100 LIBS="-ldl  $LIBS"
8101 cat >conftest.$ac_ext <<_ACEOF
8102 #line $LINENO "configure"
8103 /* confdefs.h.  */
8104 _ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h.  */
8108
8109 /* Override any gcc2 internal prototype to avoid an error.  */
8110 #ifdef __cplusplus
8111 extern "C"
8112 #endif
8113 /* We use char because int might match the return type of a gcc2
8114    builtin and then its argument prototype would still apply.  */
8115 char dlopen ();
8116 int
8117 main ()
8118 {
8119 dlopen ();
8120   ;
8121   return 0;
8122 }
8123 _ACEOF
8124 rm -f conftest.$ac_objext conftest$ac_exeext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8126   (eval $ac_link) 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); } &&
8130          { ac_try='test -s conftest$ac_exeext'
8131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132   (eval $ac_try) 2>&5
8133   ac_status=$?
8134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135   (exit $ac_status); }; }; then
8136   ac_cv_lib_dl_dlopen=yes
8137 else
8138   echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8140
8141 ac_cv_lib_dl_dlopen=no
8142 fi
8143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8144 LIBS=$ac_check_lib_save_LIBS
8145 fi
8146 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8147 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8148 if test $ac_cv_lib_dl_dlopen = yes; then
8149   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8150 else
8151
8152     lt_cv_dlopen="dyld"
8153     lt_cv_dlopen_libs=
8154     lt_cv_dlopen_self=yes
8155
8156 fi
8157
8158    ;;
8159
8160   *)
8161     echo "$as_me:$LINENO: checking for shl_load" >&5
8162 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8163 if test "${ac_cv_func_shl_load+set}" = set; then
8164   echo $ECHO_N "(cached) $ECHO_C" >&6
8165 else
8166   cat >conftest.$ac_ext <<_ACEOF
8167 #line $LINENO "configure"
8168 /* confdefs.h.  */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h.  */
8173 /* System header to define __stub macros and hopefully few prototypes,
8174     which can conflict with char shl_load (); below.
8175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8176     <limits.h> exists even on freestanding compilers.  */
8177 #ifdef __STDC__
8178 # include <limits.h>
8179 #else
8180 # include <assert.h>
8181 #endif
8182 /* Override any gcc2 internal prototype to avoid an error.  */
8183 #ifdef __cplusplus
8184 extern "C"
8185 {
8186 #endif
8187 /* We use char because int might match the return type of a gcc2
8188    builtin and then its argument prototype would still apply.  */
8189 char shl_load ();
8190 /* The GNU C library defines this for functions which it implements
8191     to always fail with ENOSYS.  Some functions are actually named
8192     something starting with __ and the normal name is an alias.  */
8193 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8194 choke me
8195 #else
8196 char (*f) () = shl_load;
8197 #endif
8198 #ifdef __cplusplus
8199 }
8200 #endif
8201
8202 int
8203 main ()
8204 {
8205 return f != shl_load;
8206   ;
8207   return 0;
8208 }
8209 _ACEOF
8210 rm -f conftest.$ac_objext conftest$ac_exeext
8211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8212   (eval $ac_link) 2>&5
8213   ac_status=$?
8214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); } &&
8216          { ac_try='test -s conftest$ac_exeext'
8217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218   (eval $ac_try) 2>&5
8219   ac_status=$?
8220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221   (exit $ac_status); }; }; then
8222   ac_cv_func_shl_load=yes
8223 else
8224   echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8226
8227 ac_cv_func_shl_load=no
8228 fi
8229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8230 fi
8231 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8232 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8233 if test $ac_cv_func_shl_load = yes; then
8234   lt_cv_dlopen="shl_load"
8235 else
8236   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8237 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8238 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8239   echo $ECHO_N "(cached) $ECHO_C" >&6
8240 else
8241   ac_check_lib_save_LIBS=$LIBS
8242 LIBS="-ldld  $LIBS"
8243 cat >conftest.$ac_ext <<_ACEOF
8244 #line $LINENO "configure"
8245 /* confdefs.h.  */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h.  */
8250
8251 /* Override any gcc2 internal prototype to avoid an error.  */
8252 #ifdef __cplusplus
8253 extern "C"
8254 #endif
8255 /* We use char because int might match the return type of a gcc2
8256    builtin and then its argument prototype would still apply.  */
8257 char shl_load ();
8258 int
8259 main ()
8260 {
8261 shl_load ();
8262   ;
8263   return 0;
8264 }
8265 _ACEOF
8266 rm -f conftest.$ac_objext conftest$ac_exeext
8267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8268   (eval $ac_link) 2>&5
8269   ac_status=$?
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); } &&
8272          { ac_try='test -s conftest$ac_exeext'
8273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274   (eval $ac_try) 2>&5
8275   ac_status=$?
8276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277   (exit $ac_status); }; }; then
8278   ac_cv_lib_dld_shl_load=yes
8279 else
8280   echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8282
8283 ac_cv_lib_dld_shl_load=no
8284 fi
8285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8286 LIBS=$ac_check_lib_save_LIBS
8287 fi
8288 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8289 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8290 if test $ac_cv_lib_dld_shl_load = yes; then
8291   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8292 else
8293   echo "$as_me:$LINENO: checking for dlopen" >&5
8294 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8295 if test "${ac_cv_func_dlopen+set}" = set; then
8296   echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298   cat >conftest.$ac_ext <<_ACEOF
8299 #line $LINENO "configure"
8300 /* confdefs.h.  */
8301 _ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h.  */
8305 /* System header to define __stub macros and hopefully few prototypes,
8306     which can conflict with char dlopen (); below.
8307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8308     <limits.h> exists even on freestanding compilers.  */
8309 #ifdef __STDC__
8310 # include <limits.h>
8311 #else
8312 # include <assert.h>
8313 #endif
8314 /* Override any gcc2 internal prototype to avoid an error.  */
8315 #ifdef __cplusplus
8316 extern "C"
8317 {
8318 #endif
8319 /* We use char because int might match the return type of a gcc2
8320    builtin and then its argument prototype would still apply.  */
8321 char dlopen ();
8322 /* The GNU C library defines this for functions which it implements
8323     to always fail with ENOSYS.  Some functions are actually named
8324     something starting with __ and the normal name is an alias.  */
8325 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8326 choke me
8327 #else
8328 char (*f) () = dlopen;
8329 #endif
8330 #ifdef __cplusplus
8331 }
8332 #endif
8333
8334 int
8335 main ()
8336 {
8337 return f != dlopen;
8338   ;
8339   return 0;
8340 }
8341 _ACEOF
8342 rm -f conftest.$ac_objext conftest$ac_exeext
8343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8344   (eval $ac_link) 2>&5
8345   ac_status=$?
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); } &&
8348          { ac_try='test -s conftest$ac_exeext'
8349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350   (eval $ac_try) 2>&5
8351   ac_status=$?
8352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353   (exit $ac_status); }; }; then
8354   ac_cv_func_dlopen=yes
8355 else
8356   echo "$as_me: failed program was:" >&5
8357 sed 's/^/| /' conftest.$ac_ext >&5
8358
8359 ac_cv_func_dlopen=no
8360 fi
8361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8362 fi
8363 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8364 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8365 if test $ac_cv_func_dlopen = yes; then
8366   lt_cv_dlopen="dlopen"
8367 else
8368   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8369 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8370 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8371   echo $ECHO_N "(cached) $ECHO_C" >&6
8372 else
8373   ac_check_lib_save_LIBS=$LIBS
8374 LIBS="-ldl  $LIBS"
8375 cat >conftest.$ac_ext <<_ACEOF
8376 #line $LINENO "configure"
8377 /* confdefs.h.  */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h.  */
8382
8383 /* Override any gcc2 internal prototype to avoid an error.  */
8384 #ifdef __cplusplus
8385 extern "C"
8386 #endif
8387 /* We use char because int might match the return type of a gcc2
8388    builtin and then its argument prototype would still apply.  */
8389 char dlopen ();
8390 int
8391 main ()
8392 {
8393 dlopen ();
8394   ;
8395   return 0;
8396 }
8397 _ACEOF
8398 rm -f conftest.$ac_objext conftest$ac_exeext
8399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8400   (eval $ac_link) 2>&5
8401   ac_status=$?
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); } &&
8404          { ac_try='test -s conftest$ac_exeext'
8405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406   (eval $ac_try) 2>&5
8407   ac_status=$?
8408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409   (exit $ac_status); }; }; then
8410   ac_cv_lib_dl_dlopen=yes
8411 else
8412   echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415 ac_cv_lib_dl_dlopen=no
8416 fi
8417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8418 LIBS=$ac_check_lib_save_LIBS
8419 fi
8420 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8421 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8422 if test $ac_cv_lib_dl_dlopen = yes; then
8423   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8424 else
8425   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8426 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8427 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8428   echo $ECHO_N "(cached) $ECHO_C" >&6
8429 else
8430   ac_check_lib_save_LIBS=$LIBS
8431 LIBS="-lsvld  $LIBS"
8432 cat >conftest.$ac_ext <<_ACEOF
8433 #line $LINENO "configure"
8434 /* confdefs.h.  */
8435 _ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h.  */
8439
8440 /* Override any gcc2 internal prototype to avoid an error.  */
8441 #ifdef __cplusplus
8442 extern "C"
8443 #endif
8444 /* We use char because int might match the return type of a gcc2
8445    builtin and then its argument prototype would still apply.  */
8446 char dlopen ();
8447 int
8448 main ()
8449 {
8450 dlopen ();
8451   ;
8452   return 0;
8453 }
8454 _ACEOF
8455 rm -f conftest.$ac_objext conftest$ac_exeext
8456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8457   (eval $ac_link) 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); } &&
8461          { ac_try='test -s conftest$ac_exeext'
8462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463   (eval $ac_try) 2>&5
8464   ac_status=$?
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); }; }; then
8467   ac_cv_lib_svld_dlopen=yes
8468 else
8469   echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472 ac_cv_lib_svld_dlopen=no
8473 fi
8474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8475 LIBS=$ac_check_lib_save_LIBS
8476 fi
8477 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8478 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8479 if test $ac_cv_lib_svld_dlopen = yes; then
8480   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8481 else
8482   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8483 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8484 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8485   echo $ECHO_N "(cached) $ECHO_C" >&6
8486 else
8487   ac_check_lib_save_LIBS=$LIBS
8488 LIBS="-ldld  $LIBS"
8489 cat >conftest.$ac_ext <<_ACEOF
8490 #line $LINENO "configure"
8491 /* confdefs.h.  */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h.  */
8496
8497 /* Override any gcc2 internal prototype to avoid an error.  */
8498 #ifdef __cplusplus
8499 extern "C"
8500 #endif
8501 /* We use char because int might match the return type of a gcc2
8502    builtin and then its argument prototype would still apply.  */
8503 char dld_link ();
8504 int
8505 main ()
8506 {
8507 dld_link ();
8508   ;
8509   return 0;
8510 }
8511 _ACEOF
8512 rm -f conftest.$ac_objext conftest$ac_exeext
8513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8514   (eval $ac_link) 2>&5
8515   ac_status=$?
8516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517   (exit $ac_status); } &&
8518          { ac_try='test -s conftest$ac_exeext'
8519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520   (eval $ac_try) 2>&5
8521   ac_status=$?
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); }; }; then
8524   ac_cv_lib_dld_dld_link=yes
8525 else
8526   echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8528
8529 ac_cv_lib_dld_dld_link=no
8530 fi
8531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8532 LIBS=$ac_check_lib_save_LIBS
8533 fi
8534 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8535 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8536 if test $ac_cv_lib_dld_dld_link = yes; then
8537   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8538 fi
8539
8540
8541 fi
8542
8543
8544 fi
8545
8546
8547 fi
8548
8549
8550 fi
8551
8552
8553 fi
8554
8555     ;;
8556   esac
8557
8558   if test "x$lt_cv_dlopen" != xno; then
8559     enable_dlopen=yes
8560   else
8561     enable_dlopen=no
8562   fi
8563
8564   case $lt_cv_dlopen in
8565   dlopen)
8566     save_CPPFLAGS="$CPPFLAGS"
8567     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8568
8569     save_LDFLAGS="$LDFLAGS"
8570     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8571
8572     save_LIBS="$LIBS"
8573     LIBS="$lt_cv_dlopen_libs $LIBS"
8574
8575     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8576 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8577 if test "${lt_cv_dlopen_self+set}" = set; then
8578   echo $ECHO_N "(cached) $ECHO_C" >&6
8579 else
8580           if test "$cross_compiling" = yes; then :
8581   lt_cv_dlopen_self=cross
8582 else
8583   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8584   lt_status=$lt_dlunknown
8585   cat > conftest.$ac_ext <<EOF
8586 #line 8586 "configure"
8587 #include "confdefs.h"
8588
8589 #if HAVE_DLFCN_H
8590 #include <dlfcn.h>
8591 #endif
8592
8593 #include <stdio.h>
8594
8595 #ifdef RTLD_GLOBAL
8596 #  define LT_DLGLOBAL           RTLD_GLOBAL
8597 #else
8598 #  ifdef DL_GLOBAL
8599 #    define LT_DLGLOBAL         DL_GLOBAL
8600 #  else
8601 #    define LT_DLGLOBAL         0
8602 #  endif
8603 #endif
8604
8605 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8606    find out it does not work in some platform. */
8607 #ifndef LT_DLLAZY_OR_NOW
8608 #  ifdef RTLD_LAZY
8609 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8610 #  else
8611 #    ifdef DL_LAZY
8612 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8613 #    else
8614 #      ifdef RTLD_NOW
8615 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8616 #      else
8617 #        ifdef DL_NOW
8618 #          define LT_DLLAZY_OR_NOW      DL_NOW
8619 #        else
8620 #          define LT_DLLAZY_OR_NOW      0
8621 #        endif
8622 #      endif
8623 #    endif
8624 #  endif
8625 #endif
8626
8627 #ifdef __cplusplus
8628 extern "C" void exit (int);
8629 #endif
8630
8631 void fnord() { int i=42;}
8632 int main ()
8633 {
8634   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8635   int status = $lt_dlunknown;
8636
8637   if (self)
8638     {
8639       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8640       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8641       /* dlclose (self); */
8642     }
8643
8644     exit (status);
8645 }
8646 EOF
8647   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648   (eval $ac_link) 2>&5
8649   ac_status=$?
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8652     (./conftest; exit; ) 2>/dev/null
8653     lt_status=$?
8654     case x$lt_status in
8655       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8656       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8657       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8658     esac
8659   else :
8660     # compilation failed
8661     lt_cv_dlopen_self=no
8662   fi
8663 fi
8664 rm -fr conftest*
8665
8666
8667 fi
8668 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8669 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8670
8671     if test "x$lt_cv_dlopen_self" = xyes; then
8672       LDFLAGS="$LDFLAGS $link_static_flag"
8673       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8674 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8675 if test "${lt_cv_dlopen_self_static+set}" = set; then
8676   echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678           if test "$cross_compiling" = yes; then :
8679   lt_cv_dlopen_self_static=cross
8680 else
8681   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8682   lt_status=$lt_dlunknown
8683   cat > conftest.$ac_ext <<EOF
8684 #line 8684 "configure"
8685 #include "confdefs.h"
8686
8687 #if HAVE_DLFCN_H
8688 #include <dlfcn.h>
8689 #endif
8690
8691 #include <stdio.h>
8692
8693 #ifdef RTLD_GLOBAL
8694 #  define LT_DLGLOBAL           RTLD_GLOBAL
8695 #else
8696 #  ifdef DL_GLOBAL
8697 #    define LT_DLGLOBAL         DL_GLOBAL
8698 #  else
8699 #    define LT_DLGLOBAL         0
8700 #  endif
8701 #endif
8702
8703 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8704    find out it does not work in some platform. */
8705 #ifndef LT_DLLAZY_OR_NOW
8706 #  ifdef RTLD_LAZY
8707 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8708 #  else
8709 #    ifdef DL_LAZY
8710 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8711 #    else
8712 #      ifdef RTLD_NOW
8713 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8714 #      else
8715 #        ifdef DL_NOW
8716 #          define LT_DLLAZY_OR_NOW      DL_NOW
8717 #        else
8718 #          define LT_DLLAZY_OR_NOW      0
8719 #        endif
8720 #      endif
8721 #    endif
8722 #  endif
8723 #endif
8724
8725 #ifdef __cplusplus
8726 extern "C" void exit (int);
8727 #endif
8728
8729 void fnord() { int i=42;}
8730 int main ()
8731 {
8732   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8733   int status = $lt_dlunknown;
8734
8735   if (self)
8736     {
8737       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8738       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8739       /* dlclose (self); */
8740     }
8741
8742     exit (status);
8743 }
8744 EOF
8745   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8746   (eval $ac_link) 2>&5
8747   ac_status=$?
8748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8750     (./conftest; exit; ) 2>/dev/null
8751     lt_status=$?
8752     case x$lt_status in
8753       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8754       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8755       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8756     esac
8757   else :
8758     # compilation failed
8759     lt_cv_dlopen_self_static=no
8760   fi
8761 fi
8762 rm -fr conftest*
8763
8764
8765 fi
8766 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8767 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8768     fi
8769
8770     CPPFLAGS="$save_CPPFLAGS"
8771     LDFLAGS="$save_LDFLAGS"
8772     LIBS="$save_LIBS"
8773     ;;
8774   esac
8775
8776   case $lt_cv_dlopen_self in
8777   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8778   *) enable_dlopen_self=unknown ;;
8779   esac
8780
8781   case $lt_cv_dlopen_self_static in
8782   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8783   *) enable_dlopen_self_static=unknown ;;
8784   esac
8785 fi
8786
8787
8788 # Report which librarie types wil actually be built
8789 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8790 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8791 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8792 echo "${ECHO_T}$can_build_shared" >&6
8793
8794 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8795 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8796 test "$can_build_shared" = "no" && enable_shared=no
8797
8798 # On AIX, shared libraries and static libraries use the same namespace, and
8799 # are all built from PIC.
8800 case "$host_os" in
8801 aix3*)
8802   test "$enable_shared" = yes && enable_static=no
8803   if test -n "$RANLIB"; then
8804     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8805     postinstall_cmds='$RANLIB $lib'
8806   fi
8807   ;;
8808
8809 aix4*)
8810   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8811     test "$enable_shared" = yes && enable_static=no
8812   fi
8813   ;;
8814   darwin* | rhapsody*)
8815   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8816     archive_cmds_need_lc=no
8817     case "$host_os" in
8818     rhapsody* | darwin1.[012])
8819       allow_undefined_flag='-undefined suppress'
8820       ;;
8821     *) # Darwin 1.3 on
8822       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8823       ;;
8824     esac
8825     # FIXME: Relying on posixy $() will cause problems for
8826     #        cross-compilation, but unfortunately the echo tests do not
8827     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8828     #          `"' quotes if we put them in here... so don't!
8829                 output_verbose_link_cmd='echo'
8830     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8831     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8832     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8833                   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}'
8834                   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}'
8835     hardcode_direct=no
8836     hardcode_automatic=yes
8837     hardcode_shlibpath_var=unsupported
8838     whole_archive_flag_spec='-all_load $convenience'
8839     link_all_deplibs=yes
8840     fi
8841     ;;
8842 esac
8843 echo "$as_me:$LINENO: result: $enable_shared" >&5
8844 echo "${ECHO_T}$enable_shared" >&6
8845
8846 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8847 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8848 # Make sure either enable_shared or enable_static is yes.
8849 test "$enable_shared" = yes || enable_static=yes
8850 echo "$as_me:$LINENO: result: $enable_static" >&5
8851 echo "${ECHO_T}$enable_static" >&6
8852
8853 # The else clause should only fire when bootstrapping the
8854 # libtool distribution, otherwise you forgot to ship ltmain.sh
8855 # with your package, and you will get complaints that there are
8856 # no rules to generate ltmain.sh.
8857 if test -f "$ltmain"; then
8858   # See if we are running on zsh, and set the options which allow our commands through
8859   # without removal of \ escapes.
8860   if test -n "${ZSH_VERSION+set}" ; then
8861     setopt NO_GLOB_SUBST
8862   fi
8863   # Now quote all the things that may contain metacharacters while being
8864   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8865   # variables and quote the copies for generation of the libtool script.
8866   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8867     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8868     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8869     deplibs_check_method reload_flag reload_cmds need_locks \
8870     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8871     lt_cv_sys_global_symbol_to_c_name_address \
8872     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8873     old_postinstall_cmds old_postuninstall_cmds \
8874     compiler \
8875     CC \
8876     LD \
8877     lt_prog_compiler_wl \
8878     lt_prog_compiler_pic \
8879     lt_prog_compiler_static \
8880     lt_prog_compiler_no_builtin_flag \
8881     export_dynamic_flag_spec \
8882     thread_safe_flag_spec \
8883     whole_archive_flag_spec \
8884     enable_shared_with_static_runtimes \
8885     old_archive_cmds \
8886     old_archive_from_new_cmds \
8887     predep_objects \
8888     postdep_objects \
8889     predeps \
8890     postdeps \
8891     compiler_lib_search_path \
8892     archive_cmds \
8893     archive_expsym_cmds \
8894     postinstall_cmds \
8895     postuninstall_cmds \
8896     old_archive_from_expsyms_cmds \
8897     allow_undefined_flag \
8898     no_undefined_flag \
8899     export_symbols_cmds \
8900     hardcode_libdir_flag_spec \
8901     hardcode_libdir_flag_spec_ld \
8902     hardcode_libdir_separator \
8903     hardcode_automatic \
8904     module_cmds \
8905     module_expsym_cmds \
8906     lt_cv_prog_compiler_c_o \
8907     exclude_expsyms \
8908     include_expsyms; do
8909
8910     case $var in
8911     old_archive_cmds | \
8912     old_archive_from_new_cmds | \
8913     archive_cmds | \
8914     archive_expsym_cmds | \
8915     module_cmds | \
8916     module_expsym_cmds | \
8917     old_archive_from_expsyms_cmds | \
8918     export_symbols_cmds | \
8919     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8920     postinstall_cmds | postuninstall_cmds | \
8921     old_postinstall_cmds | old_postuninstall_cmds | \
8922     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8923       # Double-quote double-evaled strings.
8924       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8925       ;;
8926     *)
8927       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8928       ;;
8929     esac
8930   done
8931
8932   case $lt_echo in
8933   *'\$0 --fallback-echo"')
8934     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8935     ;;
8936   esac
8937
8938 cfgfile="${ofile}T"
8939   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8940   $rm -f "$cfgfile"
8941   { echo "$as_me:$LINENO: creating $ofile" >&5
8942 echo "$as_me: creating $ofile" >&6;}
8943
8944   cat <<__EOF__ >> "$cfgfile"
8945 #! $SHELL
8946
8947 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8948 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8949 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8950 #
8951 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8952 # Free Software Foundation, Inc.
8953 #
8954 # This file is part of GNU Libtool:
8955 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8956 #
8957 # This program is free software; you can redistribute it and/or modify
8958 # it under the terms of the GNU General Public License as published by
8959 # the Free Software Foundation; either version 2 of the License, or
8960 # (at your option) any later version.
8961 #
8962 # This program is distributed in the hope that it will be useful, but
8963 # WITHOUT ANY WARRANTY; without even the implied warranty of
8964 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8965 # General Public License for more details.
8966 #
8967 # You should have received a copy of the GNU General Public License
8968 # along with this program; if not, write to the Free Software
8969 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8970 #
8971 # As a special exception to the GNU General Public License, if you
8972 # distribute this file as part of a program that contains a
8973 # configuration script generated by Autoconf, you may include it under
8974 # the same distribution terms that you use for the rest of that program.
8975
8976 # A sed program that does not truncate output.
8977 SED=$lt_SED
8978
8979 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8980 Xsed="$SED -e s/^X//"
8981
8982 # The HP-UX ksh and POSIX shell print the target directory to stdout
8983 # if CDPATH is set.
8984 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8985
8986 # The names of the tagged configurations supported by this script.
8987 available_tags=
8988
8989 # ### BEGIN LIBTOOL CONFIG
8990
8991 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8992
8993 # Shell to use when invoking shell scripts.
8994 SHELL=$lt_SHELL
8995
8996 # Whether or not to build shared libraries.
8997 build_libtool_libs=$enable_shared
8998
8999 # Whether or not to build static libraries.
9000 build_old_libs=$enable_static
9001
9002 # Whether or not to add -lc for building shared libraries.
9003 build_libtool_need_lc=$archive_cmds_need_lc
9004
9005 # Whether or not to disallow shared libs when runtime libs are static
9006 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9007
9008 # Whether or not to optimize for fast installation.
9009 fast_install=$enable_fast_install
9010
9011 # The host system.
9012 host_alias=$host_alias
9013 host=$host
9014
9015 # An echo program that does not interpret backslashes.
9016 echo=$lt_echo
9017
9018 # The archiver.
9019 AR=$lt_AR
9020 AR_FLAGS=$lt_AR_FLAGS
9021
9022 # A C compiler.
9023 LTCC=$lt_LTCC
9024
9025 # A language-specific compiler.
9026 CC=$lt_compiler
9027
9028 # Is the compiler the GNU C compiler?
9029 with_gcc=$GCC
9030
9031 # An ERE matcher.
9032 EGREP=$lt_EGREP
9033
9034 # The linker used to build libraries.
9035 LD=$lt_LD
9036
9037 # Whether we need hard or soft links.
9038 LN_S=$lt_LN_S
9039
9040 # A BSD-compatible nm program.
9041 NM=$lt_NM
9042
9043 # A symbol stripping program
9044 STRIP=$STRIP
9045
9046 # Used to examine libraries when file_magic_cmd begins "file"
9047 MAGIC_CMD=$MAGIC_CMD
9048
9049 # Used on cygwin: DLL creation program.
9050 DLLTOOL="$DLLTOOL"
9051
9052 # Used on cygwin: object dumper.
9053 OBJDUMP="$OBJDUMP"
9054
9055 # Used on cygwin: assembler.
9056 AS="$AS"
9057
9058 # The name of the directory that contains temporary libtool files.
9059 objdir=$objdir
9060
9061 # How to create reloadable object files.
9062 reload_flag=$lt_reload_flag
9063 reload_cmds=$lt_reload_cmds
9064
9065 # How to pass a linker flag through the compiler.
9066 wl=$lt_lt_prog_compiler_wl
9067
9068 # Object file suffix (normally "o").
9069 objext="$ac_objext"
9070
9071 # Old archive suffix (normally "a").
9072 libext="$libext"
9073
9074 # Shared library suffix (normally ".so").
9075 shrext='$shrext'
9076
9077 # Executable file suffix (normally "").
9078 exeext="$exeext"
9079
9080 # Additional compiler flags for building library objects.
9081 pic_flag=$lt_lt_prog_compiler_pic
9082 pic_mode=$pic_mode
9083
9084 # What is the maximum length of a command?
9085 max_cmd_len=$lt_cv_sys_max_cmd_len
9086
9087 # Does compiler simultaneously support -c and -o options?
9088 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9089
9090 # Must we lock files when doing compilation ?
9091 need_locks=$lt_need_locks
9092
9093 # Do we need the lib prefix for modules?
9094 need_lib_prefix=$need_lib_prefix
9095
9096 # Do we need a version for libraries?
9097 need_version=$need_version
9098
9099 # Whether dlopen is supported.
9100 dlopen_support=$enable_dlopen
9101
9102 # Whether dlopen of programs is supported.
9103 dlopen_self=$enable_dlopen_self
9104
9105 # Whether dlopen of statically linked programs is supported.
9106 dlopen_self_static=$enable_dlopen_self_static
9107
9108 # Compiler flag to prevent dynamic linking.
9109 link_static_flag=$lt_lt_prog_compiler_static
9110
9111 # Compiler flag to turn off builtin functions.
9112 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9113
9114 # Compiler flag to allow reflexive dlopens.
9115 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9116
9117 # Compiler flag to generate shared objects directly from archives.
9118 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9119
9120 # Compiler flag to generate thread-safe objects.
9121 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9122
9123 # Library versioning type.
9124 version_type=$version_type
9125
9126 # Format of library name prefix.
9127 libname_spec=$lt_libname_spec
9128
9129 # List of archive names.  First name is the real one, the rest are links.
9130 # The last name is the one that the linker finds with -lNAME.
9131 library_names_spec=$lt_library_names_spec
9132
9133 # The coded name of the library, if different from the real name.
9134 soname_spec=$lt_soname_spec
9135
9136 # Commands used to build and install an old-style archive.
9137 RANLIB=$lt_RANLIB
9138 old_archive_cmds=$lt_old_archive_cmds
9139 old_postinstall_cmds=$lt_old_postinstall_cmds
9140 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9141
9142 # Create an old-style archive from a shared archive.
9143 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9144
9145 # Create a temporary old-style archive to link instead of a shared archive.
9146 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9147
9148 # Commands used to build and install a shared archive.
9149 archive_cmds=$lt_archive_cmds
9150 archive_expsym_cmds=$lt_archive_expsym_cmds
9151 postinstall_cmds=$lt_postinstall_cmds
9152 postuninstall_cmds=$lt_postuninstall_cmds
9153
9154 # Commands used to build a loadable module (assumed same as above if empty)
9155 module_cmds=$lt_module_cmds
9156 module_expsym_cmds=$lt_module_expsym_cmds
9157
9158 # Commands to strip libraries.
9159 old_striplib=$lt_old_striplib
9160 striplib=$lt_striplib
9161
9162 # Dependencies to place before the objects being linked to create a
9163 # shared library.
9164 predep_objects=$lt_predep_objects
9165
9166 # Dependencies to place after the objects being linked to create a
9167 # shared library.
9168 postdep_objects=$lt_postdep_objects
9169
9170 # Dependencies to place before the objects being linked to create a
9171 # shared library.
9172 predeps=$lt_predeps
9173
9174 # Dependencies to place after the objects being linked to create a
9175 # shared library.
9176 postdeps=$lt_postdeps
9177
9178 # The library search path used internally by the compiler when linking
9179 # a shared library.
9180 compiler_lib_search_path=$lt_compiler_lib_search_path
9181
9182 # Method to check whether dependent libraries are shared objects.
9183 deplibs_check_method=$lt_deplibs_check_method
9184
9185 # Command to use when deplibs_check_method == file_magic.
9186 file_magic_cmd=$lt_file_magic_cmd
9187
9188 # Flag that allows shared libraries with undefined symbols to be built.
9189 allow_undefined_flag=$lt_allow_undefined_flag
9190
9191 # Flag that forces no undefined symbols.
9192 no_undefined_flag=$lt_no_undefined_flag
9193
9194 # Commands used to finish a libtool library installation in a directory.
9195 finish_cmds=$lt_finish_cmds
9196
9197 # Same as above, but a single script fragment to be evaled but not shown.
9198 finish_eval=$lt_finish_eval
9199
9200 # Take the output of nm and produce a listing of raw symbols and C names.
9201 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9202
9203 # Transform the output of nm in a proper C declaration
9204 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9205
9206 # Transform the output of nm in a C name address pair
9207 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9208
9209 # This is the shared library runtime path variable.
9210 runpath_var=$runpath_var
9211
9212 # This is the shared library path variable.
9213 shlibpath_var=$shlibpath_var
9214
9215 # Is shlibpath searched before the hard-coded library search path?
9216 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9217
9218 # How to hardcode a shared library path into an executable.
9219 hardcode_action=$hardcode_action
9220
9221 # Whether we should hardcode library paths into libraries.
9222 hardcode_into_libs=$hardcode_into_libs
9223
9224 # Flag to hardcode \$libdir into a binary during linking.
9225 # This must work even if \$libdir does not exist.
9226 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9227
9228 # If ld is used when linking, flag to hardcode \$libdir into
9229 # a binary during linking. This must work even if \$libdir does
9230 # not exist.
9231 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9232
9233 # Whether we need a single -rpath flag with a separated argument.
9234 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9235
9236 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9237 # resulting binary.
9238 hardcode_direct=$hardcode_direct
9239
9240 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9241 # resulting binary.
9242 hardcode_minus_L=$hardcode_minus_L
9243
9244 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9245 # the resulting binary.
9246 hardcode_shlibpath_var=$hardcode_shlibpath_var
9247
9248 # Set to yes if building a shared library automatically hardcodes DIR into the library
9249 # and all subsequent libraries and executables linked against it.
9250 hardcode_automatic=$hardcode_automatic
9251
9252 # Variables whose values should be saved in libtool wrapper scripts and
9253 # restored at relink time.
9254 variables_saved_for_relink="$variables_saved_for_relink"
9255
9256 # Whether libtool must link a program against all its dependency libraries.
9257 link_all_deplibs=$link_all_deplibs
9258
9259 # Compile-time system search path for libraries
9260 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9261
9262 # Run-time system search path for libraries
9263 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9264
9265 # Fix the shell variable \$srcfile for the compiler.
9266 fix_srcfile_path="$fix_srcfile_path"
9267
9268 # Set to yes if exported symbols are required.
9269 always_export_symbols=$always_export_symbols
9270
9271 # The commands to list exported symbols.
9272 export_symbols_cmds=$lt_export_symbols_cmds
9273
9274 # The commands to extract the exported symbol list from a shared archive.
9275 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9276
9277 # Symbols that should not be listed in the preloaded symbols.
9278 exclude_expsyms=$lt_exclude_expsyms
9279
9280 # Symbols that must always be exported.
9281 include_expsyms=$lt_include_expsyms
9282
9283 # ### END LIBTOOL CONFIG
9284
9285 __EOF__
9286
9287
9288   case $host_os in
9289   aix3*)
9290     cat <<\EOF >> "$cfgfile"
9291
9292 # AIX sometimes has problems with the GCC collect2 program.  For some
9293 # reason, if we set the COLLECT_NAMES environment variable, the problems
9294 # vanish in a puff of smoke.
9295 if test "X${COLLECT_NAMES+set}" != Xset; then
9296   COLLECT_NAMES=
9297   export COLLECT_NAMES
9298 fi
9299 EOF
9300     ;;
9301   esac
9302
9303   # We use sed instead of cat because bash on DJGPP gets confused if
9304   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9305   # text mode, it properly converts lines to CR/LF.  This bash problem
9306   # is reportedly fixed, but why not run on old versions too?
9307   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9308
9309   mv -f "$cfgfile" "$ofile" || \
9310     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9311   chmod +x "$ofile"
9312
9313 else
9314   # If there is no Makefile yet, we rely on a make rule to execute
9315   # `config.status --recheck' to rerun these tests and create the
9316   # libtool script then.
9317   test -f Makefile && make "$ltmain"
9318 fi
9319
9320
9321 ac_ext=c
9322 ac_cpp='$CPP $CPPFLAGS'
9323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9326
9327 CC="$lt_save_CC"
9328
9329
9330 # Check whether --with-tags or --without-tags was given.
9331 if test "${with_tags+set}" = set; then
9332   withval="$with_tags"
9333   tagnames="$withval"
9334 fi;
9335
9336 if test -f "$ltmain" && test -n "$tagnames"; then
9337   if test ! -f "${ofile}"; then
9338     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9339 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9340   fi
9341
9342   if test -z "$LTCC"; then
9343     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9344     if test -z "$LTCC"; then
9345       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9346 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9347     else
9348       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9349 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9350     fi
9351   fi
9352
9353   # Extract list of available tagged configurations in $ofile.
9354   # Note that this assumes the entire list is on one line.
9355   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9356
9357   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9358   for tagname in $tagnames; do
9359     IFS="$lt_save_ifs"
9360     # Check whether tagname contains only valid characters
9361     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9362     "") ;;
9363     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9364 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9365    { (exit 1); exit 1; }; }
9366         ;;
9367     esac
9368
9369     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9370     then
9371       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9372 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9373    { (exit 1); exit 1; }; }
9374     fi
9375
9376     # Update the list of available tags.
9377     if test -n "$tagname"; then
9378       echo appending configuration tag \"$tagname\" to $ofile
9379
9380       case $tagname in
9381       CXX)
9382         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9383           ac_ext=cc
9384 ac_cpp='$CXXCPP $CPPFLAGS'
9385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9388
9389
9390
9391
9392 archive_cmds_need_lc_CXX=no
9393 allow_undefined_flag_CXX=
9394 always_export_symbols_CXX=no
9395 archive_expsym_cmds_CXX=
9396 export_dynamic_flag_spec_CXX=
9397 hardcode_direct_CXX=no
9398 hardcode_libdir_flag_spec_CXX=
9399 hardcode_libdir_flag_spec_ld_CXX=
9400 hardcode_libdir_separator_CXX=
9401 hardcode_minus_L_CXX=no
9402 hardcode_automatic_CXX=no
9403 module_cmds_CXX=
9404 module_expsym_cmds_CXX=
9405 link_all_deplibs_CXX=unknown
9406 old_archive_cmds_CXX=$old_archive_cmds
9407 no_undefined_flag_CXX=
9408 whole_archive_flag_spec_CXX=
9409 enable_shared_with_static_runtimes_CXX=no
9410
9411 # Dependencies to place before and after the object being linked:
9412 predep_objects_CXX=
9413 postdep_objects_CXX=
9414 predeps_CXX=
9415 postdeps_CXX=
9416 compiler_lib_search_path_CXX=
9417
9418 # Source file extension for C++ test sources.
9419 ac_ext=cc
9420
9421 # Object file extension for compiled C++ test sources.
9422 objext=o
9423 objext_CXX=$objext
9424
9425 # Code to be used in simple compile tests
9426 lt_simple_compile_test_code="int some_variable = 0;\n"
9427
9428 # Code to be used in simple link tests
9429 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9430
9431 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9432
9433 # If no C compiler was specified, use CC.
9434 LTCC=${LTCC-"$CC"}
9435
9436 # Allow CC to be a program name with arguments.
9437 compiler=$CC
9438
9439
9440 # Allow CC to be a program name with arguments.
9441 lt_save_CC=$CC
9442 lt_save_LD=$LD
9443 lt_save_GCC=$GCC
9444 GCC=$GXX
9445 lt_save_with_gnu_ld=$with_gnu_ld
9446 lt_save_path_LD=$lt_cv_path_LD
9447 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9448   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9449 else
9450   unset lt_cv_prog_gnu_ld
9451 fi
9452 if test -n "${lt_cv_path_LDCXX+set}"; then
9453   lt_cv_path_LD=$lt_cv_path_LDCXX
9454 else
9455   unset lt_cv_path_LD
9456 fi
9457 test -z "${LDCXX+set}" || LD=$LDCXX
9458 CC=${CXX-"c++"}
9459 compiler=$CC
9460 compiler_CXX=$CC
9461 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9462
9463 # We don't want -fno-exception wen compiling C++ code, so set the
9464 # no_builtin_flag separately
9465 if test "$GXX" = yes; then
9466   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9467 else
9468   lt_prog_compiler_no_builtin_flag_CXX=
9469 fi
9470
9471 if test "$GXX" = yes; then
9472   # Set up default GNU C++ configuration
9473
9474
9475 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9476 if test "${with_gnu_ld+set}" = set; then
9477   withval="$with_gnu_ld"
9478   test "$withval" = no || with_gnu_ld=yes
9479 else
9480   with_gnu_ld=no
9481 fi;
9482 ac_prog=ld
9483 if test "$GCC" = yes; then
9484   # Check if gcc -print-prog-name=ld gives a path.
9485   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9486 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9487   case $host in
9488   *-*-mingw*)
9489     # gcc leaves a trailing carriage return which upsets mingw
9490     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9491   *)
9492     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9493   esac
9494   case $ac_prog in
9495     # Accept absolute paths.
9496     [\\/]* | ?:[\\/]*)
9497       re_direlt='/[^/][^/]*/\.\./'
9498       # Canonicalize the path of ld
9499       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9500       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9501         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9502       done
9503       test -z "$LD" && LD="$ac_prog"
9504       ;;
9505   "")
9506     # If it fails, then pretend we aren't using GCC.
9507     ac_prog=ld
9508     ;;
9509   *)
9510     # If it is relative, then search for the first ld in PATH.
9511     with_gnu_ld=unknown
9512     ;;
9513   esac
9514 elif test "$with_gnu_ld" = yes; then
9515   echo "$as_me:$LINENO: checking for GNU ld" >&5
9516 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9517 else
9518   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9519 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9520 fi
9521 if test "${lt_cv_path_LD+set}" = set; then
9522   echo $ECHO_N "(cached) $ECHO_C" >&6
9523 else
9524   if test -z "$LD"; then
9525   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9526   for ac_dir in $PATH; do
9527     IFS="$lt_save_ifs"
9528     test -z "$ac_dir" && ac_dir=.
9529     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9530       lt_cv_path_LD="$ac_dir/$ac_prog"
9531       # Check to see if the program is GNU ld.  I'd rather use --version,
9532       # but apparently some GNU ld's only accept -v.
9533       # Break only if it was the GNU/non-GNU ld that we prefer.
9534       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9535       *GNU* | *'with BFD'*)
9536         test "$with_gnu_ld" != no && break
9537         ;;
9538       *)
9539         test "$with_gnu_ld" != yes && break
9540         ;;
9541       esac
9542     fi
9543   done
9544   IFS="$lt_save_ifs"
9545 else
9546   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9547 fi
9548 fi
9549
9550 LD="$lt_cv_path_LD"
9551 if test -n "$LD"; then
9552   echo "$as_me:$LINENO: result: $LD" >&5
9553 echo "${ECHO_T}$LD" >&6
9554 else
9555   echo "$as_me:$LINENO: result: no" >&5
9556 echo "${ECHO_T}no" >&6
9557 fi
9558 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9559 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9560    { (exit 1); exit 1; }; }
9561 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9562 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9563 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9564   echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9567 case `"$LD" -v 2>&1 </dev/null` in
9568 *GNU* | *'with BFD'*)
9569   lt_cv_prog_gnu_ld=yes
9570   ;;
9571 *)
9572   lt_cv_prog_gnu_ld=no
9573   ;;
9574 esac
9575 fi
9576 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9577 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9578 with_gnu_ld=$lt_cv_prog_gnu_ld
9579
9580
9581
9582   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9583   # archiving commands below assume that GNU ld is being used.
9584   if test "$with_gnu_ld" = yes; then
9585     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9586     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'
9587
9588     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9589     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9590
9591     # If archive_cmds runs LD, not CC, wlarc should be empty
9592     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9593     #     investigate it a little bit more. (MM)
9594     wlarc='${wl}'
9595
9596     # ancient GNU ld didn't support --whole-archive et. al.
9597     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9598         grep 'no-whole-archive' > /dev/null; then
9599       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9600     else
9601       whole_archive_flag_spec_CXX=
9602     fi
9603   else
9604     with_gnu_ld=no
9605     wlarc=
9606
9607     # A generic and very simple default shared library creation
9608     # command for GNU C++ for the case where it uses the native
9609     # linker, instead of GNU ld.  If possible, this setting should
9610     # overridden to take advantage of the native linker features on
9611     # the platform it is being used on.
9612     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9613   fi
9614
9615   # Commands to make compiler produce verbose output that lists
9616   # what "hidden" libraries, object files and flags are used when
9617   # linking a shared library.
9618   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9619
9620 else
9621   GXX=no
9622   with_gnu_ld=no
9623   wlarc=
9624 fi
9625
9626 # PORTME: fill in a description of your system's C++ link characteristics
9627 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9628 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9629 ld_shlibs_CXX=yes
9630 case $host_os in
9631   aix3*)
9632     # FIXME: insert proper C++ library support
9633     ld_shlibs_CXX=no
9634     ;;
9635   aix4* | aix5*)
9636     if test "$host_cpu" = ia64; then
9637       # On IA64, the linker does run time linking by default, so we don't
9638       # have to do anything special.
9639       aix_use_runtimelinking=no
9640       exp_sym_flag='-Bexport'
9641       no_entry_flag=""
9642     else
9643       aix_use_runtimelinking=no
9644
9645       # Test if we are trying to use run time linking or normal
9646       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9647       # need to do runtime linking.
9648       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9649         for ld_flag in $LDFLAGS; do
9650           case $ld_flag in
9651           *-brtl*)
9652             aix_use_runtimelinking=yes
9653             break
9654             ;;
9655           esac
9656         done
9657       esac
9658
9659       exp_sym_flag='-bexport'
9660       no_entry_flag='-bnoentry'
9661     fi
9662
9663     # When large executables or shared objects are built, AIX ld can
9664     # have problems creating the table of contents.  If linking a library
9665     # or program results in "error TOC overflow" add -mminimal-toc to
9666     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9667     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9668
9669     archive_cmds_CXX=''
9670     hardcode_direct_CXX=yes
9671     hardcode_libdir_separator_CXX=':'
9672     link_all_deplibs_CXX=yes
9673
9674     if test "$GXX" = yes; then
9675       case $host_os in aix4.012|aix4.012.*)
9676       # We only want to do this on AIX 4.2 and lower, the check
9677       # below for broken collect2 doesn't work under 4.3+
9678         collect2name=`${CC} -print-prog-name=collect2`
9679         if test -f "$collect2name" && \
9680            strings "$collect2name" | grep resolve_lib_name >/dev/null
9681         then
9682           # We have reworked collect2
9683           hardcode_direct_CXX=yes
9684         else
9685           # We have old collect2
9686           hardcode_direct_CXX=unsupported
9687           # It fails to find uninstalled libraries when the uninstalled
9688           # path is not listed in the libpath.  Setting hardcode_minus_L
9689           # to unsupported forces relinking
9690           hardcode_minus_L_CXX=yes
9691           hardcode_libdir_flag_spec_CXX='-L$libdir'
9692           hardcode_libdir_separator_CXX=
9693         fi
9694       esac
9695       shared_flag='-shared'
9696     else
9697       # not using gcc
9698       if test "$host_cpu" = ia64; then
9699         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9700         # chokes on -Wl,-G. The following line is correct:
9701         shared_flag='-G'
9702       else
9703         if test "$aix_use_runtimelinking" = yes; then
9704           shared_flag='${wl}-G'
9705         else
9706           shared_flag='${wl}-bM:SRE'
9707         fi
9708       fi
9709     fi
9710
9711     # It seems that -bexpall does not export symbols beginning with
9712     # underscore (_), so it is better to generate a list of symbols to export.
9713     always_export_symbols_CXX=yes
9714     if test "$aix_use_runtimelinking" = yes; then
9715       # Warning - without using the other runtime loading flags (-brtl),
9716       # -berok will link without error, but may produce a broken library.
9717       allow_undefined_flag_CXX='-berok'
9718       # Determine the default libpath from the value encoded in an empty executable.
9719       cat >conftest.$ac_ext <<_ACEOF
9720 #line $LINENO "configure"
9721 /* confdefs.h.  */
9722 _ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h.  */
9726
9727 int
9728 main ()
9729 {
9730
9731   ;
9732   return 0;
9733 }
9734 _ACEOF
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737   (eval $ac_link) 2>&5
9738   ac_status=$?
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); } &&
9741          { ac_try='test -s conftest$ac_exeext'
9742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743   (eval $ac_try) 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); }; }; then
9747
9748 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9749 }'`
9750 # Check for a 64-bit object if we didn't find anything.
9751 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; }
9752 }'`; fi
9753 else
9754   echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757 fi
9758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9759 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9760
9761       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9762
9763       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"
9764      else
9765       if test "$host_cpu" = ia64; then
9766         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9767         allow_undefined_flag_CXX="-z nodefs"
9768         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"
9769       else
9770         # Determine the default libpath from the value encoded in an empty executable.
9771         cat >conftest.$ac_ext <<_ACEOF
9772 #line $LINENO "configure"
9773 /* confdefs.h.  */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h.  */
9778
9779 int
9780 main ()
9781 {
9782
9783   ;
9784   return 0;
9785 }
9786 _ACEOF
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789   (eval $ac_link) 2>&5
9790   ac_status=$?
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); } &&
9793          { ac_try='test -s conftest$ac_exeext'
9794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795   (eval $ac_try) 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); }; }; then
9799
9800 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9801 }'`
9802 # Check for a 64-bit object if we didn't find anything.
9803 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; }
9804 }'`; fi
9805 else
9806   echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9808
9809 fi
9810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9811 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9812
9813         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9814         # Warning - without using the other run time loading flags,
9815         # -berok will link without error, but may produce a broken library.
9816         no_undefined_flag_CXX=' ${wl}-bernotok'
9817         allow_undefined_flag_CXX=' ${wl}-berok'
9818         # -bexpall does not export symbols beginning with underscore (_)
9819         always_export_symbols_CXX=yes
9820         # Exported symbols can be pulled into shared objects from archives
9821         whole_archive_flag_spec_CXX=' '
9822         archive_cmds_need_lc_CXX=yes
9823         # This is similar to how AIX traditionally builds it's shared libraries.
9824         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'
9825       fi
9826     fi
9827     ;;
9828   chorus*)
9829     case $cc_basename in
9830       *)
9831         # FIXME: insert proper C++ library support
9832         ld_shlibs_CXX=no
9833         ;;
9834     esac
9835     ;;
9836
9837   cygwin* | mingw* | pw32*)
9838     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9839     # as there is no search path for DLLs.
9840     hardcode_libdir_flag_spec_CXX='-L$libdir'
9841     allow_undefined_flag_CXX=unsupported
9842     always_export_symbols_CXX=no
9843     enable_shared_with_static_runtimes_CXX=yes
9844
9845     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9846       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'
9847       # If the export-symbols file already is a .def file (1st line
9848       # is EXPORTS), use it as is; otherwise, prepend...
9849       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9850         cp $export_symbols $output_objdir/$soname.def;
9851       else
9852         echo EXPORTS > $output_objdir/$soname.def;
9853         cat $export_symbols >> $output_objdir/$soname.def;
9854       fi~
9855       $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'
9856     else
9857       ld_shlibs_CXX=no
9858     fi
9859   ;;
9860
9861   darwin* | rhapsody*)
9862    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9863     archive_cmds_need_lc_CXX=no
9864     case "$host_os" in
9865     rhapsody* | darwin1.[012])
9866       allow_undefined_flag_CXX='-undefined suppress'
9867       ;;
9868     *) # Darwin 1.3 on
9869       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9870       ;;
9871     esac
9872         lt_int_apple_cc_single_mod=no
9873         output_verbose_link_cmd='echo'
9874         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9875           lt_int_apple_cc_single_mod=yes
9876         fi
9877         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9878           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9879         else
9880         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'
9881       fi
9882       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9883
9884     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9885       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9886         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}'
9887       else
9888         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}'
9889       fi
9890         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}'
9891     hardcode_direct_CXX=no
9892     hardcode_automatic_CXX=yes
9893     hardcode_shlibpath_var_CXX=unsupported
9894     whole_archive_flag_spec_CXX='-all_load $convenience'
9895     link_all_deplibs_CXX=yes
9896    fi
9897     ;;
9898
9899   dgux*)
9900     case $cc_basename in
9901       ec++)
9902         # FIXME: insert proper C++ library support
9903         ld_shlibs_CXX=no
9904         ;;
9905       ghcx)
9906         # Green Hills C++ Compiler
9907         # FIXME: insert proper C++ library support
9908         ld_shlibs_CXX=no
9909         ;;
9910       *)
9911         # FIXME: insert proper C++ library support
9912         ld_shlibs_CXX=no
9913         ;;
9914     esac
9915     ;;
9916   freebsd12*)
9917     # C++ shared libraries reported to be fairly broken before switch to ELF
9918     ld_shlibs_CXX=no
9919     ;;
9920   freebsd-elf*)
9921     archive_cmds_need_lc_CXX=no
9922     ;;
9923   freebsd*)
9924     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9925     # conventions
9926     ld_shlibs_CXX=yes
9927     ;;
9928   gnu*)
9929     ;;
9930   hpux9*)
9931     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9932     hardcode_libdir_separator_CXX=:
9933     export_dynamic_flag_spec_CXX='${wl}-E'
9934     hardcode_direct_CXX=yes
9935     hardcode_minus_L_CXX=yes # Not in the search PATH,
9936                                 # but as the default
9937                                 # location of the library.
9938
9939     case $cc_basename in
9940     CC)
9941       # FIXME: insert proper C++ library support
9942       ld_shlibs_CXX=no
9943       ;;
9944     aCC)
9945       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'
9946       # Commands to make compiler produce verbose output that lists
9947       # what "hidden" libraries, object files and flags are used when
9948       # linking a shared library.
9949       #
9950       # There doesn't appear to be a way to prevent this compiler from
9951       # explicitly linking system object files so we need to strip them
9952       # from the output so that they don't get included in the library
9953       # dependencies.
9954       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'
9955       ;;
9956     *)
9957       if test "$GXX" = yes; then
9958         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'
9959       else
9960         # FIXME: insert proper C++ library support
9961         ld_shlibs_CXX=no
9962       fi
9963       ;;
9964     esac
9965     ;;
9966   hpux10*|hpux11*)
9967     if test $with_gnu_ld = no; then
9968       case "$host_cpu" in
9969       hppa*64*)
9970         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9971         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9972         hardcode_libdir_separator_CXX=:
9973         ;;
9974       ia64*)
9975         hardcode_libdir_flag_spec_CXX='-L$libdir'
9976         ;;
9977       *)
9978         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9979         hardcode_libdir_separator_CXX=:
9980         export_dynamic_flag_spec_CXX='${wl}-E'
9981         ;;
9982       esac
9983     fi
9984     case "$host_cpu" in
9985     hppa*64*)
9986       hardcode_direct_CXX=no
9987       hardcode_shlibpath_var_CXX=no
9988       ;;
9989     ia64*)
9990       hardcode_direct_CXX=no
9991       hardcode_shlibpath_var_CXX=no
9992       hardcode_minus_L_CXX=yes # Not in the search PATH,
9993                                               # but as the default
9994                                               # location of the library.
9995       ;;
9996     *)
9997       hardcode_direct_CXX=yes
9998       hardcode_minus_L_CXX=yes # Not in the search PATH,
9999                                               # but as the default
10000                                               # location of the library.
10001       ;;
10002     esac
10003
10004     case $cc_basename in
10005       CC)
10006         # FIXME: insert proper C++ library support
10007         ld_shlibs_CXX=no
10008         ;;
10009       aCC)
10010         case "$host_cpu" in
10011         hppa*64*|ia64*)
10012           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10013           ;;
10014         *)
10015           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10016           ;;
10017         esac
10018         # Commands to make compiler produce verbose output that lists
10019         # what "hidden" libraries, object files and flags are used when
10020         # linking a shared library.
10021         #
10022         # There doesn't appear to be a way to prevent this compiler from
10023         # explicitly linking system object files so we need to strip them
10024         # from the output so that they don't get included in the library
10025         # dependencies.
10026         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'
10027         ;;
10028       *)
10029         if test "$GXX" = yes; then
10030           if test $with_gnu_ld = no; then
10031             case "$host_cpu" in
10032             ia64*|hppa*64*)
10033               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10034               ;;
10035             *)
10036               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'
10037               ;;
10038             esac
10039           fi
10040         else
10041           # FIXME: insert proper C++ library support
10042           ld_shlibs_CXX=no
10043         fi
10044         ;;
10045     esac
10046     ;;
10047   irix5* | irix6*)
10048     case $cc_basename in
10049       CC)
10050         # SGI C++
10051         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'
10052
10053         # Archives containing C++ object files must be created using
10054         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10055         # necessary to make sure instantiated templates are included
10056         # in the archive.
10057         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10058         ;;
10059       *)
10060         if test "$GXX" = yes; then
10061           if test "$with_gnu_ld" = no; then
10062             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'
10063           else
10064             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'
10065           fi
10066         fi
10067         link_all_deplibs_CXX=yes
10068         ;;
10069     esac
10070     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10071     hardcode_libdir_separator_CXX=:
10072     ;;
10073   linux*)
10074     case $cc_basename in
10075       KCC)
10076         # Kuck and Associates, Inc. (KAI) C++ Compiler
10077
10078         # KCC will only create a shared library if the output file
10079         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10080         # to its proper name (with version) after linking.
10081         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'
10082         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'
10083         # Commands to make compiler produce verbose output that lists
10084         # what "hidden" libraries, object files and flags are used when
10085         # linking a shared library.
10086         #
10087         # There doesn't appear to be a way to prevent this compiler from
10088         # explicitly linking system object files so we need to strip them
10089         # from the output so that they don't get included in the library
10090         # dependencies.
10091         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'
10092
10093         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10094         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10095
10096         # Archives containing C++ object files must be created using
10097         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10098         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10099         ;;
10100       icpc)
10101         # Intel C++
10102         with_gnu_ld=yes
10103         archive_cmds_need_lc_CXX=no
10104         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10105         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'
10106         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10107         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10108         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10109         ;;
10110       cxx)
10111         # Compaq C++
10112         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10113         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'
10114
10115         runpath_var=LD_RUN_PATH
10116         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10117         hardcode_libdir_separator_CXX=:
10118
10119         # Commands to make compiler produce verbose output that lists
10120         # what "hidden" libraries, object files and flags are used when
10121         # linking a shared library.
10122         #
10123         # There doesn't appear to be a way to prevent this compiler from
10124         # explicitly linking system object files so we need to strip them
10125         # from the output so that they don't get included in the library
10126         # dependencies.
10127         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'
10128         ;;
10129     esac
10130     ;;
10131   lynxos*)
10132     # FIXME: insert proper C++ library support
10133     ld_shlibs_CXX=no
10134     ;;
10135   m88k*)
10136     # FIXME: insert proper C++ library support
10137     ld_shlibs_CXX=no
10138     ;;
10139   mvs*)
10140     case $cc_basename in
10141       cxx)
10142         # FIXME: insert proper C++ library support
10143         ld_shlibs_CXX=no
10144         ;;
10145       *)
10146         # FIXME: insert proper C++ library support
10147         ld_shlibs_CXX=no
10148         ;;
10149     esac
10150     ;;
10151   netbsd*)
10152     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10153       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10154       wlarc=
10155       hardcode_libdir_flag_spec_CXX='-R$libdir'
10156       hardcode_direct_CXX=yes
10157       hardcode_shlibpath_var_CXX=no
10158     fi
10159     # Workaround some broken pre-1.5 toolchains
10160     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10161     ;;
10162   osf3*)
10163     case $cc_basename in
10164       KCC)
10165         # Kuck and Associates, Inc. (KAI) C++ Compiler
10166
10167         # KCC will only create a shared library if the output file
10168         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10169         # to its proper name (with version) after linking.
10170         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'
10171
10172         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10173         hardcode_libdir_separator_CXX=:
10174
10175         # Archives containing C++ object files must be created using
10176         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10177         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10178
10179         ;;
10180       RCC)
10181         # Rational C++ 2.4.1
10182         # FIXME: insert proper C++ library support
10183         ld_shlibs_CXX=no
10184         ;;
10185       cxx)
10186         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10187         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'
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         #
10196         # There doesn't appear to be a way to prevent this compiler from
10197         # explicitly linking system object files so we need to strip them
10198         # from the output so that they don't get included in the library
10199         # dependencies.
10200         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | 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'
10201         ;;
10202       *)
10203         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10204           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10205           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'
10206
10207           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10208           hardcode_libdir_separator_CXX=:
10209
10210           # Commands to make compiler produce verbose output that lists
10211           # what "hidden" libraries, object files and flags are used when
10212           # linking a shared library.
10213           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10214
10215         else
10216           # FIXME: insert proper C++ library support
10217           ld_shlibs_CXX=no
10218         fi
10219         ;;
10220     esac
10221     ;;
10222   osf4* | osf5*)
10223     case $cc_basename in
10224       KCC)
10225         # Kuck and Associates, Inc. (KAI) C++ Compiler
10226
10227         # KCC will only create a shared library if the output file
10228         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10229         # to its proper name (with version) after linking.
10230         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'
10231
10232         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10233         hardcode_libdir_separator_CXX=:
10234
10235         # Archives containing C++ object files must be created using
10236         # the KAI C++ compiler.
10237         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10238         ;;
10239       RCC)
10240         # Rational C++ 2.4.1
10241         # FIXME: insert proper C++ library support
10242         ld_shlibs_CXX=no
10243         ;;
10244       cxx)
10245         allow_undefined_flag_CXX=' -expect_unresolved \*'
10246         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'
10247         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10248           echo "-hidden">> $lib.exp~
10249           $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~
10250           $rm $lib.exp'
10251
10252         hardcode_libdir_flag_spec_CXX='-rpath $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         #
10259         # There doesn't appear to be a way to prevent this compiler from
10260         # explicitly linking system object files so we need to strip them
10261         # from the output so that they don't get included in the library
10262         # dependencies.
10263         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'
10264         ;;
10265       *)
10266         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10267           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10268          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'
10269
10270           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10271           hardcode_libdir_separator_CXX=:
10272
10273           # Commands to make compiler produce verbose output that lists
10274           # what "hidden" libraries, object files and flags are used when
10275           # linking a shared library.
10276           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10277
10278         else
10279           # FIXME: insert proper C++ library support
10280           ld_shlibs_CXX=no
10281         fi
10282         ;;
10283     esac
10284     ;;
10285   psos*)
10286     # FIXME: insert proper C++ library support
10287     ld_shlibs_CXX=no
10288     ;;
10289   sco*)
10290     archive_cmds_need_lc_CXX=no
10291     case $cc_basename in
10292       CC)
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   sunos4*)
10303     case $cc_basename in
10304       CC)
10305         # Sun C++ 4.x
10306         # FIXME: insert proper C++ library support
10307         ld_shlibs_CXX=no
10308         ;;
10309       lcc)
10310         # Lucid
10311         # FIXME: insert proper C++ library support
10312         ld_shlibs_CXX=no
10313         ;;
10314       *)
10315         # FIXME: insert proper C++ library support
10316         ld_shlibs_CXX=no
10317         ;;
10318     esac
10319     ;;
10320   solaris*)
10321     case $cc_basename in
10322       CC)
10323         # Sun C++ 4.2, 5.x and Centerline C++
10324         no_undefined_flag_CXX=' -zdefs'
10325         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10326         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10327         $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'
10328
10329         hardcode_libdir_flag_spec_CXX='-R$libdir'
10330         hardcode_shlibpath_var_CXX=no
10331         case $host_os in
10332           solaris2.0-5 | solaris2.0-5.*) ;;
10333           *)
10334             # The C++ compiler is used as linker so we must use $wl
10335             # flag to pass the commands to the underlying system
10336             # linker.
10337             # Supported since Solaris 2.6 (maybe 2.5.1?)
10338             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10339             ;;
10340         esac
10341         link_all_deplibs_CXX=yes
10342
10343         # Commands to make compiler produce verbose output that lists
10344         # what "hidden" libraries, object files and flags are used when
10345         # linking a shared library.
10346         #
10347         # There doesn't appear to be a way to prevent this compiler from
10348         # explicitly linking system object files so we need to strip them
10349         # from the output so that they don't get included in the library
10350         # dependencies.
10351         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'
10352
10353         # Archives containing C++ object files must be created using
10354         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10355         # necessary to make sure instantiated templates are included
10356         # in the archive.
10357         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10358         ;;
10359       gcx)
10360         # Green Hills C++ Compiler
10361         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10362
10363         # The C++ compiler must be used to create the archive.
10364         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10365         ;;
10366       *)
10367         # GNU C++ compiler with Solaris linker
10368         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10369           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10370           if $CC --version | grep -v '^2\.7' > /dev/null; then
10371             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10372             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10373                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10374
10375             # Commands to make compiler produce verbose output that lists
10376             # what "hidden" libraries, object files and flags are used when
10377             # linking a shared library.
10378             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10379           else
10380             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10381             # platform.
10382             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10383             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10384                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10385
10386             # Commands to make compiler produce verbose output that lists
10387             # what "hidden" libraries, object files and flags are used when
10388             # linking a shared library.
10389             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10390           fi
10391
10392           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10393         fi
10394         ;;
10395     esac
10396     ;;
10397   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10398     archive_cmds_need_lc_CXX=no
10399     ;;
10400   tandem*)
10401     case $cc_basename in
10402       NCC)
10403         # NonStop-UX NCC 3.20
10404         # FIXME: insert proper C++ library support
10405         ld_shlibs_CXX=no
10406         ;;
10407       *)
10408         # FIXME: insert proper C++ library support
10409         ld_shlibs_CXX=no
10410         ;;
10411     esac
10412     ;;
10413   vxworks*)
10414     # FIXME: insert proper C++ library support
10415     ld_shlibs_CXX=no
10416     ;;
10417   *)
10418     # FIXME: insert proper C++ library support
10419     ld_shlibs_CXX=no
10420     ;;
10421 esac
10422 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10423 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10424 test "$ld_shlibs_CXX" = no && can_build_shared=no
10425
10426 GCC_CXX="$GXX"
10427 LD_CXX="$LD"
10428
10429 ## CAVEAT EMPTOR:
10430 ## There is no encapsulation within the following macros, do not change
10431 ## the running order or otherwise move them around unless you know exactly
10432 ## what you are doing...
10433
10434 cat > conftest.$ac_ext <<EOF
10435 class Foo
10436 {
10437 public:
10438   Foo (void) { a = 0; }
10439 private:
10440   int a;
10441 };
10442 EOF
10443
10444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10445   (eval $ac_compile) 2>&5
10446   ac_status=$?
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); }; then
10449   # Parse the compiler output and extract the necessary
10450   # objects, libraries and library flags.
10451
10452   # Sentinel used to keep track of whether or not we are before
10453   # the conftest object file.
10454   pre_test_object_deps_done=no
10455
10456   # The `*' in the case matches for architectures that use `case' in
10457   # $output_verbose_cmd can trigger glob expansion during the loop
10458   # eval without this substitution.
10459   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10460
10461   for p in `eval $output_verbose_link_cmd`; do
10462     case $p in
10463
10464     -L* | -R* | -l*)
10465        # Some compilers place space between "-{L,R}" and the path.
10466        # Remove the space.
10467        if test $p = "-L" \
10468           || test $p = "-R"; then
10469          prev=$p
10470          continue
10471        else
10472          prev=
10473        fi
10474
10475        if test "$pre_test_object_deps_done" = no; then
10476          case $p in
10477          -L* | -R*)
10478            # Internal compiler library paths should come after those
10479            # provided the user.  The postdeps already come after the
10480            # user supplied libs so there is no need to process them.
10481            if test -z "$compiler_lib_search_path_CXX"; then
10482              compiler_lib_search_path_CXX="${prev}${p}"
10483            else
10484              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10485            fi
10486            ;;
10487          # The "-l" case would never come before the object being
10488          # linked, so don't bother handling this case.
10489          esac
10490        else
10491          if test -z "$postdeps_CXX"; then
10492            postdeps_CXX="${prev}${p}"
10493          else
10494            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10495          fi
10496        fi
10497        ;;
10498
10499     *.$objext)
10500        # This assumes that the test object file only shows up
10501        # once in the compiler output.
10502        if test "$p" = "conftest.$objext"; then
10503          pre_test_object_deps_done=yes
10504          continue
10505        fi
10506
10507        if test "$pre_test_object_deps_done" = no; then
10508          if test -z "$predep_objects_CXX"; then
10509            predep_objects_CXX="$p"
10510          else
10511            predep_objects_CXX="$predep_objects_CXX $p"
10512          fi
10513        else
10514          if test -z "$postdep_objects_CXX"; then
10515            postdep_objects_CXX="$p"
10516          else
10517            postdep_objects_CXX="$postdep_objects_CXX $p"
10518          fi
10519        fi
10520        ;;
10521
10522     *) ;; # Ignore the rest.
10523
10524     esac
10525   done
10526
10527   # Clean up.
10528   rm -f a.out a.exe
10529 else
10530   echo "libtool.m4: error: problem compiling CXX test program"
10531 fi
10532
10533 $rm -f confest.$objext
10534
10535 case " $postdeps_CXX " in
10536 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10537 esac
10538
10539 lt_prog_compiler_wl_CXX=
10540 lt_prog_compiler_pic_CXX=
10541 lt_prog_compiler_static_CXX=
10542
10543 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10544 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10545
10546   # C++ specific cases for pic, static, wl, etc.
10547   if test "$GXX" = yes; then
10548     lt_prog_compiler_wl_CXX='-Wl,'
10549     lt_prog_compiler_static_CXX='-static'
10550
10551     case $host_os in
10552     aix*)
10553       # All AIX code is PIC.
10554       if test "$host_cpu" = ia64; then
10555         # AIX 5 now supports IA64 processor
10556         lt_prog_compiler_static_CXX='-Bstatic'
10557       fi
10558       ;;
10559     amigaos*)
10560       # FIXME: we need at least 68020 code to build shared libraries, but
10561       # adding the `-m68020' flag to GCC prevents building anything better,
10562       # like `-m68040'.
10563       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10564       ;;
10565     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10566       # PIC is the default for these OSes.
10567       ;;
10568     mingw* | os2* | pw32*)
10569       # This hack is so that the source file can tell whether it is being
10570       # built for inclusion in a dll (and should export symbols for example).
10571       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10572       ;;
10573     darwin* | rhapsody*)
10574       # PIC is the default on this platform
10575       # Common symbols not allowed in MH_DYLIB files
10576       lt_prog_compiler_pic_CXX='-fno-common'
10577       ;;
10578     *djgpp*)
10579       # DJGPP does not support shared libraries at all
10580       lt_prog_compiler_pic_CXX=
10581       ;;
10582     sysv4*MP*)
10583       if test -d /usr/nec; then
10584         lt_prog_compiler_pic_CXX=-Kconform_pic
10585       fi
10586       ;;
10587     hpux*)
10588       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10589       # not for PA HP-UX.
10590       case "$host_cpu" in
10591       hppa*64*|ia64*)
10592         ;;
10593       *)
10594         lt_prog_compiler_pic_CXX='-fPIC'
10595         ;;
10596       esac
10597       ;;
10598     *)
10599       lt_prog_compiler_pic_CXX='-fPIC'
10600       ;;
10601     esac
10602   else
10603     case $host_os in
10604       aix4* | aix5*)
10605         # All AIX code is PIC.
10606         if test "$host_cpu" = ia64; then
10607           # AIX 5 now supports IA64 processor
10608           lt_prog_compiler_static_CXX='-Bstatic'
10609         else
10610           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10611         fi
10612         ;;
10613       chorus*)
10614         case $cc_basename in
10615         cxch68)
10616           # Green Hills C++ Compiler
10617           # _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"
10618           ;;
10619         esac
10620         ;;
10621       dgux*)
10622         case $cc_basename in
10623           ec++)
10624             lt_prog_compiler_pic_CXX='-KPIC'
10625             ;;
10626           ghcx)
10627             # Green Hills C++ Compiler
10628             lt_prog_compiler_pic_CXX='-pic'
10629             ;;
10630           *)
10631             ;;
10632         esac
10633         ;;
10634       freebsd*)
10635         # FreeBSD uses GNU C++
10636         ;;
10637       hpux9* | hpux10* | hpux11*)
10638         case $cc_basename in
10639           CC)
10640             lt_prog_compiler_wl_CXX='-Wl,'
10641             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10642             if test "$host_cpu" != ia64; then
10643               lt_prog_compiler_pic_CXX='+Z'
10644             fi
10645             ;;
10646           aCC)
10647             lt_prog_compiler_wl_CXX='-Wl,'
10648             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10649             case "$host_cpu" in
10650             hppa*64*|ia64*)
10651               # +Z the default
10652               ;;
10653             *)
10654               lt_prog_compiler_pic_CXX='+Z'
10655               ;;
10656             esac
10657             ;;
10658           *)
10659             ;;
10660         esac
10661         ;;
10662       irix5* | irix6* | nonstopux*)
10663         case $cc_basename in
10664           CC)
10665             lt_prog_compiler_wl_CXX='-Wl,'
10666             lt_prog_compiler_static_CXX='-non_shared'
10667             # CC pic flag -KPIC is the default.
10668             ;;
10669           *)
10670             ;;
10671         esac
10672         ;;
10673       linux*)
10674         case $cc_basename in
10675           KCC)
10676             # KAI C++ Compiler
10677             lt_prog_compiler_wl_CXX='--backend -Wl,'
10678             lt_prog_compiler_pic_CXX='-fPIC'
10679             ;;
10680           icpc)
10681             # Intel C++
10682             lt_prog_compiler_wl_CXX='-Wl,'
10683             lt_prog_compiler_pic_CXX='-KPIC'
10684             lt_prog_compiler_static_CXX='-static'
10685             ;;
10686           cxx)
10687             # Compaq C++
10688             # Make sure the PIC flag is empty.  It appears that all Alpha
10689             # Linux and Compaq Tru64 Unix objects are PIC.
10690             lt_prog_compiler_pic_CXX=
10691             lt_prog_compiler_static_CXX='-non_shared'
10692             ;;
10693           *)
10694             ;;
10695         esac
10696         ;;
10697       lynxos*)
10698         ;;
10699       m88k*)
10700         ;;
10701       mvs*)
10702         case $cc_basename in
10703           cxx)
10704             lt_prog_compiler_pic_CXX='-W c,exportall'
10705             ;;
10706           *)
10707             ;;
10708         esac
10709         ;;
10710       netbsd*)
10711         ;;
10712       osf3* | osf4* | osf5*)
10713         case $cc_basename in
10714           KCC)
10715             lt_prog_compiler_wl_CXX='--backend -Wl,'
10716             ;;
10717           RCC)
10718             # Rational C++ 2.4.1
10719             lt_prog_compiler_pic_CXX='-pic'
10720             ;;
10721           cxx)
10722             # Digital/Compaq C++
10723             lt_prog_compiler_wl_CXX='-Wl,'
10724             # Make sure the PIC flag is empty.  It appears that all Alpha
10725             # Linux and Compaq Tru64 Unix objects are PIC.
10726             lt_prog_compiler_pic_CXX=
10727             lt_prog_compiler_static_CXX='-non_shared'
10728             ;;
10729           *)
10730             ;;
10731         esac
10732         ;;
10733       psos*)
10734         ;;
10735       sco*)
10736         case $cc_basename in
10737           CC)
10738             lt_prog_compiler_pic_CXX='-fPIC'
10739             ;;
10740           *)
10741             ;;
10742         esac
10743         ;;
10744       solaris*)
10745         case $cc_basename in
10746           CC)
10747             # Sun C++ 4.2, 5.x and Centerline C++
10748             lt_prog_compiler_pic_CXX='-KPIC'
10749             lt_prog_compiler_static_CXX='-Bstatic'
10750             lt_prog_compiler_wl_CXX='-Qoption ld '
10751             ;;
10752           gcx)
10753             # Green Hills C++ Compiler
10754             lt_prog_compiler_pic_CXX='-PIC'
10755             ;;
10756           *)
10757             ;;
10758         esac
10759         ;;
10760       sunos4*)
10761         case $cc_basename in
10762           CC)
10763             # Sun C++ 4.x
10764             lt_prog_compiler_pic_CXX='-pic'
10765             lt_prog_compiler_static_CXX='-Bstatic'
10766             ;;
10767           lcc)
10768             # Lucid
10769             lt_prog_compiler_pic_CXX='-pic'
10770             ;;
10771           *)
10772             ;;
10773         esac
10774         ;;
10775       tandem*)
10776         case $cc_basename in
10777           NCC)
10778             # NonStop-UX NCC 3.20
10779             lt_prog_compiler_pic_CXX='-KPIC'
10780             ;;
10781           *)
10782             ;;
10783         esac
10784         ;;
10785       unixware*)
10786         ;;
10787       vxworks*)
10788         ;;
10789       *)
10790         lt_prog_compiler_can_build_shared_CXX=no
10791         ;;
10792     esac
10793   fi
10794
10795 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10796 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10797
10798 #
10799 # Check to make sure the PIC flag actually works.
10800 #
10801 if test -n "$lt_prog_compiler_pic_CXX"; then
10802   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10803 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10804 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10805   echo $ECHO_N "(cached) $ECHO_C" >&6
10806 else
10807   lt_prog_compiler_pic_works_CXX=no
10808   ac_outfile=conftest.$ac_objext
10809    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10810    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10811    # Insert the option either (1) after the last *FLAGS variable, or
10812    # (2) before a word containing "conftest.", or (3) at the end.
10813    # Note that $ac_compile itself does not contain backslashes and begins
10814    # with a dollar sign (not a hyphen), so the echo should work correctly.
10815    # The option is referenced via a variable to avoid confusing sed.
10816    lt_compile=`echo "$ac_compile" | $SED \
10817    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10818    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10819    -e 's:$: $lt_compiler_flag:'`
10820    (eval echo "\"\$as_me:10820: $lt_compile\"" >&5)
10821    (eval "$lt_compile" 2>conftest.err)
10822    ac_status=$?
10823    cat conftest.err >&5
10824    echo "$as_me:10824: \$? = $ac_status" >&5
10825    if (exit $ac_status) && test -s "$ac_outfile"; then
10826      # The compiler can only warn and ignore the option if not recognized
10827      # So say no if there are warnings
10828      if test ! -s conftest.err; then
10829        lt_prog_compiler_pic_works_CXX=yes
10830      fi
10831    fi
10832    $rm conftest*
10833
10834 fi
10835 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10836 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10837
10838 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10839     case $lt_prog_compiler_pic_CXX in
10840      "" | " "*) ;;
10841      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10842      esac
10843 else
10844     lt_prog_compiler_pic_CXX=
10845      lt_prog_compiler_can_build_shared_CXX=no
10846 fi
10847
10848 fi
10849 case "$host_os" in
10850   # For platforms which do not support PIC, -DPIC is meaningless:
10851   *djgpp*)
10852     lt_prog_compiler_pic_CXX=
10853     ;;
10854   *)
10855     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10856     ;;
10857 esac
10858
10859 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10860 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10861 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10862   echo $ECHO_N "(cached) $ECHO_C" >&6
10863 else
10864   lt_cv_prog_compiler_c_o_CXX=no
10865    $rm -r conftest 2>/dev/null
10866    mkdir conftest
10867    cd conftest
10868    mkdir out
10869    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10870
10871    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10872    # that will create temporary files in the current directory regardless of
10873    # the output directory.  Thus, making CWD read-only will cause this test
10874    # to fail, enabling locking or at least warning the user not to do parallel
10875    # builds.
10876    chmod -w .
10877
10878    lt_compiler_flag="-o out/conftest2.$ac_objext"
10879    # Insert the option either (1) after the last *FLAGS variable, or
10880    # (2) before a word containing "conftest.", or (3) at the end.
10881    # Note that $ac_compile itself does not contain backslashes and begins
10882    # with a dollar sign (not a hyphen), so the echo should work correctly.
10883    lt_compile=`echo "$ac_compile" | $SED \
10884    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10885    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10886    -e 's:$: $lt_compiler_flag:'`
10887    (eval echo "\"\$as_me:10887: $lt_compile\"" >&5)
10888    (eval "$lt_compile" 2>out/conftest.err)
10889    ac_status=$?
10890    cat out/conftest.err >&5
10891    echo "$as_me:10891: \$? = $ac_status" >&5
10892    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10893    then
10894      # The compiler can only warn and ignore the option if not recognized
10895      # So say no if there are warnings
10896      if test ! -s out/conftest.err; then
10897        lt_cv_prog_compiler_c_o_CXX=yes
10898      fi
10899    fi
10900    chmod u+w .
10901    $rm conftest* out/*
10902    rmdir out
10903    cd ..
10904    rmdir conftest
10905    $rm conftest*
10906
10907 fi
10908 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10909 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10910
10911
10912 hard_links="nottested"
10913 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10914   # do not overwrite the value of need_locks provided by the user
10915   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10916 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10917   hard_links=yes
10918   $rm conftest*
10919   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10920   touch conftest.a
10921   ln conftest.a conftest.b 2>&5 || hard_links=no
10922   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10923   echo "$as_me:$LINENO: result: $hard_links" >&5
10924 echo "${ECHO_T}$hard_links" >&6
10925   if test "$hard_links" = no; then
10926     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10927 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10928     need_locks=warn
10929   fi
10930 else
10931   need_locks=no
10932 fi
10933
10934 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10935 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10936
10937   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10938   case $host_os in
10939   aix4* | aix5*)
10940     # If we're using GNU nm, then we don't want the "-C" option.
10941     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10942     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10943       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'
10944     else
10945       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'
10946     fi
10947     ;;
10948   pw32*)
10949     export_symbols_cmds_CXX="$ltdll_cmds"
10950   ;;
10951   cygwin* | mingw*)
10952     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10953   ;;
10954   *)
10955     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10956   ;;
10957   esac
10958
10959 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10960 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10961 test "$ld_shlibs_CXX" = no && can_build_shared=no
10962
10963 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10964 if test "$GCC" = yes; then
10965   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10966 fi
10967
10968 #
10969 # Do we need to explicitly link libc?
10970 #
10971 case "x$archive_cmds_need_lc_CXX" in
10972 x|xyes)
10973   # Assume -lc should be added
10974   archive_cmds_need_lc_CXX=yes
10975
10976   if test "$enable_shared" = yes && test "$GCC" = yes; then
10977     case $archive_cmds_CXX in
10978     *'~'*)
10979       # FIXME: we may have to deal with multi-command sequences.
10980       ;;
10981     '$CC '*)
10982       # Test whether the compiler implicitly links with -lc since on some
10983       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10984       # to ld, don't add -lc before -lgcc.
10985       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10986 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10987       $rm conftest*
10988       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10989
10990       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10991   (eval $ac_compile) 2>&5
10992   ac_status=$?
10993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994   (exit $ac_status); } 2>conftest.err; then
10995         soname=conftest
10996         lib=conftest
10997         libobjs=conftest.$ac_objext
10998         deplibs=
10999         wl=$lt_prog_compiler_wl_CXX
11000         compiler_flags=-v
11001         linker_flags=-v
11002         verstring=
11003         output_objdir=.
11004         libname=conftest
11005         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11006         allow_undefined_flag_CXX=
11007         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11008   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11009   ac_status=$?
11010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); }
11012         then
11013           archive_cmds_need_lc_CXX=no
11014         else
11015           archive_cmds_need_lc_CXX=yes
11016         fi
11017         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11018       else
11019         cat conftest.err 1>&5
11020       fi
11021       $rm conftest*
11022       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11023 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11024       ;;
11025     esac
11026   fi
11027   ;;
11028 esac
11029
11030 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11031 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11032 hardcode_action_CXX=
11033 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11034    test -n "$runpath_var CXX" || \
11035    test "X$hardcode_automatic_CXX"="Xyes" ; then
11036
11037   # We can hardcode non-existant directories.
11038   if test "$hardcode_direct_CXX" != no &&
11039      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11040      # have to relink, otherwise we might link with an installed library
11041      # when we should be linking with a yet-to-be-installed one
11042      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11043      test "$hardcode_minus_L_CXX" != no; then
11044     # Linking always hardcodes the temporary library directory.
11045     hardcode_action_CXX=relink
11046   else
11047     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11048     hardcode_action_CXX=immediate
11049   fi
11050 else
11051   # We cannot hardcode anything, or else we can only hardcode existing
11052   # directories.
11053   hardcode_action_CXX=unsupported
11054 fi
11055 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11056 echo "${ECHO_T}$hardcode_action_CXX" >&6
11057
11058 if test "$hardcode_action_CXX" = relink; then
11059   # Fast installation is not supported
11060   enable_fast_install=no
11061 elif test "$shlibpath_overrides_runpath" = yes ||
11062      test "$enable_shared" = no; then
11063   # Fast installation is not necessary
11064   enable_fast_install=needless
11065 fi
11066
11067 striplib=
11068 old_striplib=
11069 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11070 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11071 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11072   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11073   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11074   echo "$as_me:$LINENO: result: yes" >&5
11075 echo "${ECHO_T}yes" >&6
11076 else
11077 # FIXME - insert some real tests, host_os isn't really good enough
11078   case $host_os in
11079    darwin*)
11080        if test -n "$STRIP" ; then
11081          striplib="$STRIP -x"
11082          echo "$as_me:$LINENO: result: yes" >&5
11083 echo "${ECHO_T}yes" >&6
11084        else
11085   echo "$as_me:$LINENO: result: no" >&5
11086 echo "${ECHO_T}no" >&6
11087 fi
11088        ;;
11089    *)
11090   echo "$as_me:$LINENO: result: no" >&5
11091 echo "${ECHO_T}no" >&6
11092     ;;
11093   esac
11094 fi
11095
11096 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11097 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11098 library_names_spec=
11099 libname_spec='lib$name'
11100 soname_spec=
11101 shrext=".so"
11102 postinstall_cmds=
11103 postuninstall_cmds=
11104 finish_cmds=
11105 finish_eval=
11106 shlibpath_var=
11107 shlibpath_overrides_runpath=unknown
11108 version_type=none
11109 dynamic_linker="$host_os ld.so"
11110 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11111 if test "$GCC" = yes; then
11112   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11113   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11114     # if the path contains ";" then we assume it to be the separator
11115     # otherwise default to the standard path separator (i.e. ":") - it is
11116     # assumed that no part of a normal pathname contains ";" but that should
11117     # okay in the real world where ";" in dirpaths is itself problematic.
11118     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11119   else
11120     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11121   fi
11122 else
11123   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11124 fi
11125 need_lib_prefix=unknown
11126 hardcode_into_libs=no
11127
11128 # when you set need_version to no, make sure it does not cause -set_version
11129 # flags to be left without arguments
11130 need_version=unknown
11131
11132 case $host_os in
11133 aix3*)
11134   version_type=linux
11135   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11136   shlibpath_var=LIBPATH
11137
11138   # AIX 3 has no versioning support, so we append a major version to the name.
11139   soname_spec='${libname}${release}${shared_ext}$major'
11140   ;;
11141
11142 aix4* | aix5*)
11143   version_type=linux
11144   need_lib_prefix=no
11145   need_version=no
11146   hardcode_into_libs=yes
11147   if test "$host_cpu" = ia64; then
11148     # AIX 5 supports IA64
11149     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11150     shlibpath_var=LD_LIBRARY_PATH
11151   else
11152     # With GCC up to 2.95.x, collect2 would create an import file
11153     # for dependence libraries.  The import file would start with
11154     # the line `#! .'.  This would cause the generated library to
11155     # depend on `.', always an invalid library.  This was fixed in
11156     # development snapshots of GCC prior to 3.0.
11157     case $host_os in
11158       aix4 | aix4.[01] | aix4.[01].*)
11159       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11160            echo ' yes '
11161            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11162         :
11163       else
11164         can_build_shared=no
11165       fi
11166       ;;
11167     esac
11168     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11169     # soname into executable. Probably we can add versioning support to
11170     # collect2, so additional links can be useful in future.
11171     if test "$aix_use_runtimelinking" = yes; then
11172       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11173       # instead of lib<name>.a to let people know that these are not
11174       # typical AIX shared libraries.
11175       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176     else
11177       # We preserve .a as extension for shared libraries through AIX4.2
11178       # and later when we are not doing run time linking.
11179       library_names_spec='${libname}${release}.a $libname.a'
11180       soname_spec='${libname}${release}${shared_ext}$major'
11181     fi
11182     shlibpath_var=LIBPATH
11183   fi
11184   ;;
11185
11186 amigaos*)
11187   library_names_spec='$libname.ixlibrary $libname.a'
11188   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11189   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'
11190   ;;
11191
11192 beos*)
11193   library_names_spec='${libname}${shared_ext}'
11194   dynamic_linker="$host_os ld.so"
11195   shlibpath_var=LIBRARY_PATH
11196   ;;
11197
11198 bsdi4*)
11199   version_type=linux
11200   need_version=no
11201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202   soname_spec='${libname}${release}${shared_ext}$major'
11203   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11204   shlibpath_var=LD_LIBRARY_PATH
11205   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11206   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11207   # the default ld.so.conf also contains /usr/contrib/lib and
11208   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11209   # libtool to hard-code these into programs
11210   ;;
11211
11212 cygwin* | mingw* | pw32*)
11213   version_type=windows
11214   shrext=".dll"
11215   need_version=no
11216   need_lib_prefix=no
11217
11218   case $GCC,$host_os in
11219   yes,cygwin* | yes,mingw* | yes,pw32*)
11220     library_names_spec='$libname.dll.a'
11221     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11222     postinstall_cmds='base_file=`basename \${file}`~
11223       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11224       dldir=$destdir/`dirname \$dlpath`~
11225       test -d \$dldir || mkdir -p \$dldir~
11226       $install_prog $dir/$dlname \$dldir/$dlname'
11227     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11228       dlpath=$dir/\$dldll~
11229        $rm \$dlpath'
11230     shlibpath_overrides_runpath=yes
11231
11232     case $host_os in
11233     cygwin*)
11234       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11235       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11236       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11237       ;;
11238     mingw*)
11239       # MinGW DLLs use traditional 'lib' prefix
11240       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11241       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11242       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11243         # It is most probably a Windows format PATH printed by
11244         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11245         # path with ; separators, and with drive letters. We can handle the
11246         # drive letters (cygwin fileutils understands them), so leave them,
11247         # especially as we might pass files found there to a mingw objdump,
11248         # which wouldn't understand a cygwinified path. Ahh.
11249         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11250       else
11251         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11252       fi
11253       ;;
11254     pw32*)
11255       # pw32 DLLs use 'pw' prefix rather than 'lib'
11256       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11257       ;;
11258     esac
11259     ;;
11260
11261   *)
11262     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11263     ;;
11264   esac
11265   dynamic_linker='Win32 ld.exe'
11266   # FIXME: first we should search . and the directory the executable is in
11267   shlibpath_var=PATH
11268   ;;
11269
11270 darwin* | rhapsody*)
11271   dynamic_linker="$host_os dyld"
11272   version_type=darwin
11273   need_lib_prefix=no
11274   need_version=no
11275   # FIXME: Relying on posixy $() will cause problems for
11276   #        cross-compilation, but unfortunately the echo tests do not
11277   #        yet detect zsh echo's removal of \ escapes.
11278   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11279   soname_spec='${libname}${release}${major}$shared_ext'
11280   shlibpath_overrides_runpath=yes
11281   shlibpath_var=DYLD_LIBRARY_PATH
11282   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11283   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11284   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11285   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"`
11286   fi
11287   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11288   ;;
11289
11290 dgux*)
11291   version_type=linux
11292   need_lib_prefix=no
11293   need_version=no
11294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11295   soname_spec='${libname}${release}${shared_ext}$major'
11296   shlibpath_var=LD_LIBRARY_PATH
11297   ;;
11298
11299 freebsd1*)
11300   dynamic_linker=no
11301   ;;
11302
11303 freebsd*)
11304   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11305   version_type=freebsd-$objformat
11306   case $version_type in
11307     freebsd-elf*)
11308       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11309       need_version=no
11310       need_lib_prefix=no
11311       ;;
11312     freebsd-*)
11313       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11314       need_version=yes
11315       ;;
11316   esac
11317   shlibpath_var=LD_LIBRARY_PATH
11318   case $host_os in
11319   freebsd2*)
11320     shlibpath_overrides_runpath=yes
11321     ;;
11322   freebsd3.01* | freebsdelf3.01*)
11323     shlibpath_overrides_runpath=yes
11324     hardcode_into_libs=yes
11325     ;;
11326   *) # from 3.2 on
11327     shlibpath_overrides_runpath=no
11328     hardcode_into_libs=yes
11329     ;;
11330   esac
11331   ;;
11332
11333 gnu*)
11334   version_type=linux
11335   need_lib_prefix=no
11336   need_version=no
11337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11338   soname_spec='${libname}${release}${shared_ext}$major'
11339   shlibpath_var=LD_LIBRARY_PATH
11340   hardcode_into_libs=yes
11341   ;;
11342
11343 hpux9* | hpux10* | hpux11*)
11344   # Give a soname corresponding to the major version so that dld.sl refuses to
11345   # link against other versions.
11346   version_type=sunos
11347   need_lib_prefix=no
11348   need_version=no
11349   case "$host_cpu" in
11350   ia64*)
11351     shrext='.so'
11352     hardcode_into_libs=yes
11353     dynamic_linker="$host_os dld.so"
11354     shlibpath_var=LD_LIBRARY_PATH
11355     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11356     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357     soname_spec='${libname}${release}${shared_ext}$major'
11358     if test "X$HPUX_IA64_MODE" = X32; then
11359       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11360     else
11361       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11362     fi
11363     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11364     ;;
11365    hppa*64*)
11366      shrext='.sl'
11367      hardcode_into_libs=yes
11368      dynamic_linker="$host_os dld.sl"
11369      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11370      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11371      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372      soname_spec='${libname}${release}${shared_ext}$major'
11373      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11374      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11375      ;;
11376    *)
11377     shrext='.sl'
11378     dynamic_linker="$host_os dld.sl"
11379     shlibpath_var=SHLIB_PATH
11380     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11381     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382     soname_spec='${libname}${release}${shared_ext}$major'
11383     ;;
11384   esac
11385   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11386   postinstall_cmds='chmod 555 $lib'
11387   ;;
11388
11389 irix5* | irix6* | nonstopux*)
11390   case $host_os in
11391     nonstopux*) version_type=nonstopux ;;
11392     *)
11393         if test "$lt_cv_prog_gnu_ld" = yes; then
11394                 version_type=linux
11395         else
11396                 version_type=irix
11397         fi ;;
11398   esac
11399   need_lib_prefix=no
11400   need_version=no
11401   soname_spec='${libname}${release}${shared_ext}$major'
11402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11403   case $host_os in
11404   irix5* | nonstopux*)
11405     libsuff= shlibsuff=
11406     ;;
11407   *)
11408     case $LD in # libtool.m4 will add one of these switches to LD
11409     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11410       libsuff= shlibsuff= libmagic=32-bit;;
11411     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11412       libsuff=32 shlibsuff=N32 libmagic=N32;;
11413     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11414       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11415     *) libsuff= shlibsuff= libmagic=never-match;;
11416     esac
11417     ;;
11418   esac
11419   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11420   shlibpath_overrides_runpath=no
11421   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11422   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11423   hardcode_into_libs=yes
11424   ;;
11425
11426 # No shared lib support for Linux oldld, aout, or coff.
11427 linux*oldld* | linux*aout* | linux*coff*)
11428   dynamic_linker=no
11429   ;;
11430
11431 # This must be Linux ELF.
11432 linux*)
11433   version_type=linux
11434   need_lib_prefix=no
11435   need_version=no
11436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11437   soname_spec='${libname}${release}${shared_ext}$major'
11438   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11439   shlibpath_var=LD_LIBRARY_PATH
11440   shlibpath_overrides_runpath=no
11441   # This implies no fast_install, which is unacceptable.
11442   # Some rework will be needed to allow for fast_install
11443   # before this can be enabled.
11444   hardcode_into_libs=yes
11445
11446   # We used to test for /lib/ld.so.1 and disable shared libraries on
11447   # powerpc, because MkLinux only supported shared libraries with the
11448   # GNU dynamic linker.  Since this was broken with cross compilers,
11449   # most powerpc-linux boxes support dynamic linking these days and
11450   # people can always --disable-shared, the test was removed, and we
11451   # assume the GNU/Linux dynamic linker is in use.
11452   dynamic_linker='GNU/Linux ld.so'
11453   ;;
11454
11455 netbsd*)
11456   version_type=sunos
11457   need_lib_prefix=no
11458   need_version=no
11459   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11460     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11461     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11462     dynamic_linker='NetBSD (a.out) ld.so'
11463   else
11464     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11465     soname_spec='${libname}${release}${shared_ext}$major'
11466     dynamic_linker='NetBSD ld.elf_so'
11467   fi
11468   shlibpath_var=LD_LIBRARY_PATH
11469   shlibpath_overrides_runpath=yes
11470   hardcode_into_libs=yes
11471   ;;
11472
11473 newsos6)
11474   version_type=linux
11475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11476   shlibpath_var=LD_LIBRARY_PATH
11477   shlibpath_overrides_runpath=yes
11478   ;;
11479
11480 nto-qnx)
11481   version_type=linux
11482   need_lib_prefix=no
11483   need_version=no
11484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11485   soname_spec='${libname}${release}${shared_ext}$major'
11486   shlibpath_var=LD_LIBRARY_PATH
11487   shlibpath_overrides_runpath=yes
11488   ;;
11489
11490 openbsd*)
11491   version_type=sunos
11492   need_lib_prefix=no
11493   need_version=no
11494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11495   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11496   shlibpath_var=LD_LIBRARY_PATH
11497   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11498     case $host_os in
11499       openbsd2.[89] | openbsd2.[89].*)
11500         shlibpath_overrides_runpath=no
11501         ;;
11502       *)
11503         shlibpath_overrides_runpath=yes
11504         ;;
11505       esac
11506   else
11507     shlibpath_overrides_runpath=yes
11508   fi
11509   ;;
11510
11511 os2*)
11512   libname_spec='$name'
11513   shrext=".dll"
11514   need_lib_prefix=no
11515   library_names_spec='$libname${shared_ext} $libname.a'
11516   dynamic_linker='OS/2 ld.exe'
11517   shlibpath_var=LIBPATH
11518   ;;
11519
11520 osf3* | osf4* | osf5*)
11521   version_type=osf
11522   need_lib_prefix=no
11523   need_version=no
11524   soname_spec='${libname}${release}${shared_ext}$major'
11525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11526   shlibpath_var=LD_LIBRARY_PATH
11527   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11528   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11529   ;;
11530
11531 sco3.2v5*)
11532   version_type=osf
11533   soname_spec='${libname}${release}${shared_ext}$major'
11534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11535   shlibpath_var=LD_LIBRARY_PATH
11536   ;;
11537
11538 solaris*)
11539   version_type=linux
11540   need_lib_prefix=no
11541   need_version=no
11542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11543   soname_spec='${libname}${release}${shared_ext}$major'
11544   shlibpath_var=LD_LIBRARY_PATH
11545   shlibpath_overrides_runpath=yes
11546   hardcode_into_libs=yes
11547   # ldd complains unless libraries are executable
11548   postinstall_cmds='chmod +x $lib'
11549   ;;
11550
11551 sunos4*)
11552   version_type=sunos
11553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11554   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11555   shlibpath_var=LD_LIBRARY_PATH
11556   shlibpath_overrides_runpath=yes
11557   if test "$with_gnu_ld" = yes; then
11558     need_lib_prefix=no
11559   fi
11560   need_version=yes
11561   ;;
11562
11563 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11564   version_type=linux
11565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11566   soname_spec='${libname}${release}${shared_ext}$major'
11567   shlibpath_var=LD_LIBRARY_PATH
11568   case $host_vendor in
11569     sni)
11570       shlibpath_overrides_runpath=no
11571       need_lib_prefix=no
11572       export_dynamic_flag_spec='${wl}-Blargedynsym'
11573       runpath_var=LD_RUN_PATH
11574       ;;
11575     siemens)
11576       need_lib_prefix=no
11577       ;;
11578     motorola)
11579       need_lib_prefix=no
11580       need_version=no
11581       shlibpath_overrides_runpath=no
11582       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11583       ;;
11584   esac
11585   ;;
11586
11587 sysv4*MP*)
11588   if test -d /usr/nec ;then
11589     version_type=linux
11590     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11591     soname_spec='$libname${shared_ext}.$major'
11592     shlibpath_var=LD_LIBRARY_PATH
11593   fi
11594   ;;
11595
11596 uts4*)
11597   version_type=linux
11598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11599   soname_spec='${libname}${release}${shared_ext}$major'
11600   shlibpath_var=LD_LIBRARY_PATH
11601   ;;
11602
11603 *)
11604   dynamic_linker=no
11605   ;;
11606 esac
11607 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11608 echo "${ECHO_T}$dynamic_linker" >&6
11609 test "$dynamic_linker" = no && can_build_shared=no
11610
11611 if test "x$enable_dlopen" != xyes; then
11612   enable_dlopen=unknown
11613   enable_dlopen_self=unknown
11614   enable_dlopen_self_static=unknown
11615 else
11616   lt_cv_dlopen=no
11617   lt_cv_dlopen_libs=
11618
11619   case $host_os in
11620   beos*)
11621     lt_cv_dlopen="load_add_on"
11622     lt_cv_dlopen_libs=
11623     lt_cv_dlopen_self=yes
11624     ;;
11625
11626   mingw* | pw32*)
11627     lt_cv_dlopen="LoadLibrary"
11628     lt_cv_dlopen_libs=
11629    ;;
11630
11631   cygwin*)
11632     lt_cv_dlopen="dlopen"
11633     lt_cv_dlopen_libs=
11634    ;;
11635
11636   darwin*)
11637   # if libdl is installed we need to link against it
11638     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11639 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11640 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11641   echo $ECHO_N "(cached) $ECHO_C" >&6
11642 else
11643   ac_check_lib_save_LIBS=$LIBS
11644 LIBS="-ldl  $LIBS"
11645 cat >conftest.$ac_ext <<_ACEOF
11646 #line $LINENO "configure"
11647 /* confdefs.h.  */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h.  */
11652
11653 /* Override any gcc2 internal prototype to avoid an error.  */
11654 #ifdef __cplusplus
11655 extern "C"
11656 #endif
11657 /* We use char because int might match the return type of a gcc2
11658    builtin and then its argument prototype would still apply.  */
11659 char dlopen ();
11660 int
11661 main ()
11662 {
11663 dlopen ();
11664   ;
11665   return 0;
11666 }
11667 _ACEOF
11668 rm -f conftest.$ac_objext conftest$ac_exeext
11669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11670   (eval $ac_link) 2>&5
11671   ac_status=$?
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); } &&
11674          { ac_try='test -s conftest$ac_exeext'
11675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676   (eval $ac_try) 2>&5
11677   ac_status=$?
11678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679   (exit $ac_status); }; }; then
11680   ac_cv_lib_dl_dlopen=yes
11681 else
11682   echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11684
11685 ac_cv_lib_dl_dlopen=no
11686 fi
11687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11688 LIBS=$ac_check_lib_save_LIBS
11689 fi
11690 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11691 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11692 if test $ac_cv_lib_dl_dlopen = yes; then
11693   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11694 else
11695
11696     lt_cv_dlopen="dyld"
11697     lt_cv_dlopen_libs=
11698     lt_cv_dlopen_self=yes
11699
11700 fi
11701
11702    ;;
11703
11704   *)
11705     echo "$as_me:$LINENO: checking for shl_load" >&5
11706 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11707 if test "${ac_cv_func_shl_load+set}" = set; then
11708   echo $ECHO_N "(cached) $ECHO_C" >&6
11709 else
11710   cat >conftest.$ac_ext <<_ACEOF
11711 #line $LINENO "configure"
11712 /* confdefs.h.  */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h.  */
11717 /* System header to define __stub macros and hopefully few prototypes,
11718     which can conflict with char shl_load (); below.
11719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11720     <limits.h> exists even on freestanding compilers.  */
11721 #ifdef __STDC__
11722 # include <limits.h>
11723 #else
11724 # include <assert.h>
11725 #endif
11726 /* Override any gcc2 internal prototype to avoid an error.  */
11727 #ifdef __cplusplus
11728 extern "C"
11729 {
11730 #endif
11731 /* We use char because int might match the return type of a gcc2
11732    builtin and then its argument prototype would still apply.  */
11733 char shl_load ();
11734 /* The GNU C library defines this for functions which it implements
11735     to always fail with ENOSYS.  Some functions are actually named
11736     something starting with __ and the normal name is an alias.  */
11737 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11738 choke me
11739 #else
11740 char (*f) () = shl_load;
11741 #endif
11742 #ifdef __cplusplus
11743 }
11744 #endif
11745
11746 int
11747 main ()
11748 {
11749 return f != shl_load;
11750   ;
11751   return 0;
11752 }
11753 _ACEOF
11754 rm -f conftest.$ac_objext conftest$ac_exeext
11755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11756   (eval $ac_link) 2>&5
11757   ac_status=$?
11758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759   (exit $ac_status); } &&
11760          { ac_try='test -s conftest$ac_exeext'
11761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762   (eval $ac_try) 2>&5
11763   ac_status=$?
11764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765   (exit $ac_status); }; }; then
11766   ac_cv_func_shl_load=yes
11767 else
11768   echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11770
11771 ac_cv_func_shl_load=no
11772 fi
11773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11774 fi
11775 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11776 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11777 if test $ac_cv_func_shl_load = yes; then
11778   lt_cv_dlopen="shl_load"
11779 else
11780   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11781 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11782 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11783   echo $ECHO_N "(cached) $ECHO_C" >&6
11784 else
11785   ac_check_lib_save_LIBS=$LIBS
11786 LIBS="-ldld  $LIBS"
11787 cat >conftest.$ac_ext <<_ACEOF
11788 #line $LINENO "configure"
11789 /* confdefs.h.  */
11790 _ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h.  */
11794
11795 /* Override any gcc2 internal prototype to avoid an error.  */
11796 #ifdef __cplusplus
11797 extern "C"
11798 #endif
11799 /* We use char because int might match the return type of a gcc2
11800    builtin and then its argument prototype would still apply.  */
11801 char shl_load ();
11802 int
11803 main ()
11804 {
11805 shl_load ();
11806   ;
11807   return 0;
11808 }
11809 _ACEOF
11810 rm -f conftest.$ac_objext conftest$ac_exeext
11811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11812   (eval $ac_link) 2>&5
11813   ac_status=$?
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); } &&
11816          { ac_try='test -s conftest$ac_exeext'
11817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818   (eval $ac_try) 2>&5
11819   ac_status=$?
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); }; }; then
11822   ac_cv_lib_dld_shl_load=yes
11823 else
11824   echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11826
11827 ac_cv_lib_dld_shl_load=no
11828 fi
11829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11830 LIBS=$ac_check_lib_save_LIBS
11831 fi
11832 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11833 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11834 if test $ac_cv_lib_dld_shl_load = yes; then
11835   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11836 else
11837   echo "$as_me:$LINENO: checking for dlopen" >&5
11838 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11839 if test "${ac_cv_func_dlopen+set}" = set; then
11840   echo $ECHO_N "(cached) $ECHO_C" >&6
11841 else
11842   cat >conftest.$ac_ext <<_ACEOF
11843 #line $LINENO "configure"
11844 /* confdefs.h.  */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h.  */
11849 /* System header to define __stub macros and hopefully few prototypes,
11850     which can conflict with char dlopen (); below.
11851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11852     <limits.h> exists even on freestanding compilers.  */
11853 #ifdef __STDC__
11854 # include <limits.h>
11855 #else
11856 # include <assert.h>
11857 #endif
11858 /* Override any gcc2 internal prototype to avoid an error.  */
11859 #ifdef __cplusplus
11860 extern "C"
11861 {
11862 #endif
11863 /* We use char because int might match the return type of a gcc2
11864    builtin and then its argument prototype would still apply.  */
11865 char dlopen ();
11866 /* The GNU C library defines this for functions which it implements
11867     to always fail with ENOSYS.  Some functions are actually named
11868     something starting with __ and the normal name is an alias.  */
11869 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11870 choke me
11871 #else
11872 char (*f) () = dlopen;
11873 #endif
11874 #ifdef __cplusplus
11875 }
11876 #endif
11877
11878 int
11879 main ()
11880 {
11881 return f != dlopen;
11882   ;
11883   return 0;
11884 }
11885 _ACEOF
11886 rm -f conftest.$ac_objext conftest$ac_exeext
11887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11888   (eval $ac_link) 2>&5
11889   ac_status=$?
11890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); } &&
11892          { ac_try='test -s conftest$ac_exeext'
11893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894   (eval $ac_try) 2>&5
11895   ac_status=$?
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); }; }; then
11898   ac_cv_func_dlopen=yes
11899 else
11900   echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11902
11903 ac_cv_func_dlopen=no
11904 fi
11905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11906 fi
11907 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11908 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11909 if test $ac_cv_func_dlopen = yes; then
11910   lt_cv_dlopen="dlopen"
11911 else
11912   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11913 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11914 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11915   echo $ECHO_N "(cached) $ECHO_C" >&6
11916 else
11917   ac_check_lib_save_LIBS=$LIBS
11918 LIBS="-ldl  $LIBS"
11919 cat >conftest.$ac_ext <<_ACEOF
11920 #line $LINENO "configure"
11921 /* confdefs.h.  */
11922 _ACEOF
11923 cat confdefs.h >>conftest.$ac_ext
11924 cat >>conftest.$ac_ext <<_ACEOF
11925 /* end confdefs.h.  */
11926
11927 /* Override any gcc2 internal prototype to avoid an error.  */
11928 #ifdef __cplusplus
11929 extern "C"
11930 #endif
11931 /* We use char because int might match the return type of a gcc2
11932    builtin and then its argument prototype would still apply.  */
11933 char dlopen ();
11934 int
11935 main ()
11936 {
11937 dlopen ();
11938   ;
11939   return 0;
11940 }
11941 _ACEOF
11942 rm -f conftest.$ac_objext conftest$ac_exeext
11943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11944   (eval $ac_link) 2>&5
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); } &&
11948          { ac_try='test -s conftest$ac_exeext'
11949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950   (eval $ac_try) 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); }; }; then
11954   ac_cv_lib_dl_dlopen=yes
11955 else
11956   echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11958
11959 ac_cv_lib_dl_dlopen=no
11960 fi
11961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11962 LIBS=$ac_check_lib_save_LIBS
11963 fi
11964 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11965 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11966 if test $ac_cv_lib_dl_dlopen = yes; then
11967   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11968 else
11969   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11970 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11971 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11972   echo $ECHO_N "(cached) $ECHO_C" >&6
11973 else
11974   ac_check_lib_save_LIBS=$LIBS
11975 LIBS="-lsvld  $LIBS"
11976 cat >conftest.$ac_ext <<_ACEOF
11977 #line $LINENO "configure"
11978 /* confdefs.h.  */
11979 _ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h.  */
11983
11984 /* Override any gcc2 internal prototype to avoid an error.  */
11985 #ifdef __cplusplus
11986 extern "C"
11987 #endif
11988 /* We use char because int might match the return type of a gcc2
11989    builtin and then its argument prototype would still apply.  */
11990 char dlopen ();
11991 int
11992 main ()
11993 {
11994 dlopen ();
11995   ;
11996   return 0;
11997 }
11998 _ACEOF
11999 rm -f conftest.$ac_objext conftest$ac_exeext
12000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12001   (eval $ac_link) 2>&5
12002   ac_status=$?
12003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); } &&
12005          { ac_try='test -s conftest$ac_exeext'
12006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007   (eval $ac_try) 2>&5
12008   ac_status=$?
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); }; }; then
12011   ac_cv_lib_svld_dlopen=yes
12012 else
12013   echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12015
12016 ac_cv_lib_svld_dlopen=no
12017 fi
12018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12019 LIBS=$ac_check_lib_save_LIBS
12020 fi
12021 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12022 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12023 if test $ac_cv_lib_svld_dlopen = yes; then
12024   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12025 else
12026   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12027 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12028 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12029   echo $ECHO_N "(cached) $ECHO_C" >&6
12030 else
12031   ac_check_lib_save_LIBS=$LIBS
12032 LIBS="-ldld  $LIBS"
12033 cat >conftest.$ac_ext <<_ACEOF
12034 #line $LINENO "configure"
12035 /* confdefs.h.  */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h.  */
12040
12041 /* Override any gcc2 internal prototype to avoid an error.  */
12042 #ifdef __cplusplus
12043 extern "C"
12044 #endif
12045 /* We use char because int might match the return type of a gcc2
12046    builtin and then its argument prototype would still apply.  */
12047 char dld_link ();
12048 int
12049 main ()
12050 {
12051 dld_link ();
12052   ;
12053   return 0;
12054 }
12055 _ACEOF
12056 rm -f conftest.$ac_objext conftest$ac_exeext
12057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12058   (eval $ac_link) 2>&5
12059   ac_status=$?
12060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061   (exit $ac_status); } &&
12062          { ac_try='test -s conftest$ac_exeext'
12063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064   (eval $ac_try) 2>&5
12065   ac_status=$?
12066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067   (exit $ac_status); }; }; then
12068   ac_cv_lib_dld_dld_link=yes
12069 else
12070   echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.$ac_ext >&5
12072
12073 ac_cv_lib_dld_dld_link=no
12074 fi
12075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12076 LIBS=$ac_check_lib_save_LIBS
12077 fi
12078 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12079 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12080 if test $ac_cv_lib_dld_dld_link = yes; then
12081   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12082 fi
12083
12084
12085 fi
12086
12087
12088 fi
12089
12090
12091 fi
12092
12093
12094 fi
12095
12096
12097 fi
12098
12099     ;;
12100   esac
12101
12102   if test "x$lt_cv_dlopen" != xno; then
12103     enable_dlopen=yes
12104   else
12105     enable_dlopen=no
12106   fi
12107
12108   case $lt_cv_dlopen in
12109   dlopen)
12110     save_CPPFLAGS="$CPPFLAGS"
12111     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12112
12113     save_LDFLAGS="$LDFLAGS"
12114     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12115
12116     save_LIBS="$LIBS"
12117     LIBS="$lt_cv_dlopen_libs $LIBS"
12118
12119     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12120 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12121 if test "${lt_cv_dlopen_self+set}" = set; then
12122   echo $ECHO_N "(cached) $ECHO_C" >&6
12123 else
12124           if test "$cross_compiling" = yes; then :
12125   lt_cv_dlopen_self=cross
12126 else
12127   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12128   lt_status=$lt_dlunknown
12129   cat > conftest.$ac_ext <<EOF
12130 #line 12130 "configure"
12131 #include "confdefs.h"
12132
12133 #if HAVE_DLFCN_H
12134 #include <dlfcn.h>
12135 #endif
12136
12137 #include <stdio.h>
12138
12139 #ifdef RTLD_GLOBAL
12140 #  define LT_DLGLOBAL           RTLD_GLOBAL
12141 #else
12142 #  ifdef DL_GLOBAL
12143 #    define LT_DLGLOBAL         DL_GLOBAL
12144 #  else
12145 #    define LT_DLGLOBAL         0
12146 #  endif
12147 #endif
12148
12149 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12150    find out it does not work in some platform. */
12151 #ifndef LT_DLLAZY_OR_NOW
12152 #  ifdef RTLD_LAZY
12153 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12154 #  else
12155 #    ifdef DL_LAZY
12156 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12157 #    else
12158 #      ifdef RTLD_NOW
12159 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12160 #      else
12161 #        ifdef DL_NOW
12162 #          define LT_DLLAZY_OR_NOW      DL_NOW
12163 #        else
12164 #          define LT_DLLAZY_OR_NOW      0
12165 #        endif
12166 #      endif
12167 #    endif
12168 #  endif
12169 #endif
12170
12171 #ifdef __cplusplus
12172 extern "C" void exit (int);
12173 #endif
12174
12175 void fnord() { int i=42;}
12176 int main ()
12177 {
12178   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12179   int status = $lt_dlunknown;
12180
12181   if (self)
12182     {
12183       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12184       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12185       /* dlclose (self); */
12186     }
12187
12188     exit (status);
12189 }
12190 EOF
12191   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12192   (eval $ac_link) 2>&5
12193   ac_status=$?
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12196     (./conftest; exit; ) 2>/dev/null
12197     lt_status=$?
12198     case x$lt_status in
12199       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12200       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12201       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12202     esac
12203   else :
12204     # compilation failed
12205     lt_cv_dlopen_self=no
12206   fi
12207 fi
12208 rm -fr conftest*
12209
12210
12211 fi
12212 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12213 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12214
12215     if test "x$lt_cv_dlopen_self" = xyes; then
12216       LDFLAGS="$LDFLAGS $link_static_flag"
12217       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12218 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12219 if test "${lt_cv_dlopen_self_static+set}" = set; then
12220   echo $ECHO_N "(cached) $ECHO_C" >&6
12221 else
12222           if test "$cross_compiling" = yes; then :
12223   lt_cv_dlopen_self_static=cross
12224 else
12225   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12226   lt_status=$lt_dlunknown
12227   cat > conftest.$ac_ext <<EOF
12228 #line 12228 "configure"
12229 #include "confdefs.h"
12230
12231 #if HAVE_DLFCN_H
12232 #include <dlfcn.h>
12233 #endif
12234
12235 #include <stdio.h>
12236
12237 #ifdef RTLD_GLOBAL
12238 #  define LT_DLGLOBAL           RTLD_GLOBAL
12239 #else
12240 #  ifdef DL_GLOBAL
12241 #    define LT_DLGLOBAL         DL_GLOBAL
12242 #  else
12243 #    define LT_DLGLOBAL         0
12244 #  endif
12245 #endif
12246
12247 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12248    find out it does not work in some platform. */
12249 #ifndef LT_DLLAZY_OR_NOW
12250 #  ifdef RTLD_LAZY
12251 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12252 #  else
12253 #    ifdef DL_LAZY
12254 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12255 #    else
12256 #      ifdef RTLD_NOW
12257 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12258 #      else
12259 #        ifdef DL_NOW
12260 #          define LT_DLLAZY_OR_NOW      DL_NOW
12261 #        else
12262 #          define LT_DLLAZY_OR_NOW      0
12263 #        endif
12264 #      endif
12265 #    endif
12266 #  endif
12267 #endif
12268
12269 #ifdef __cplusplus
12270 extern "C" void exit (int);
12271 #endif
12272
12273 void fnord() { int i=42;}
12274 int main ()
12275 {
12276   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12277   int status = $lt_dlunknown;
12278
12279   if (self)
12280     {
12281       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12282       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12283       /* dlclose (self); */
12284     }
12285
12286     exit (status);
12287 }
12288 EOF
12289   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12290   (eval $ac_link) 2>&5
12291   ac_status=$?
12292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12294     (./conftest; exit; ) 2>/dev/null
12295     lt_status=$?
12296     case x$lt_status in
12297       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12298       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12299       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12300     esac
12301   else :
12302     # compilation failed
12303     lt_cv_dlopen_self_static=no
12304   fi
12305 fi
12306 rm -fr conftest*
12307
12308
12309 fi
12310 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12311 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12312     fi
12313
12314     CPPFLAGS="$save_CPPFLAGS"
12315     LDFLAGS="$save_LDFLAGS"
12316     LIBS="$save_LIBS"
12317     ;;
12318   esac
12319
12320   case $lt_cv_dlopen_self in
12321   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12322   *) enable_dlopen_self=unknown ;;
12323   esac
12324
12325   case $lt_cv_dlopen_self_static in
12326   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12327   *) enable_dlopen_self_static=unknown ;;
12328   esac
12329 fi
12330
12331
12332 # The else clause should only fire when bootstrapping the
12333 # libtool distribution, otherwise you forgot to ship ltmain.sh
12334 # with your package, and you will get complaints that there are
12335 # no rules to generate ltmain.sh.
12336 if test -f "$ltmain"; then
12337   # See if we are running on zsh, and set the options which allow our commands through
12338   # without removal of \ escapes.
12339   if test -n "${ZSH_VERSION+set}" ; then
12340     setopt NO_GLOB_SUBST
12341   fi
12342   # Now quote all the things that may contain metacharacters while being
12343   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12344   # variables and quote the copies for generation of the libtool script.
12345   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12346     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12347     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12348     deplibs_check_method reload_flag reload_cmds need_locks \
12349     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12350     lt_cv_sys_global_symbol_to_c_name_address \
12351     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12352     old_postinstall_cmds old_postuninstall_cmds \
12353     compiler_CXX \
12354     CC_CXX \
12355     LD_CXX \
12356     lt_prog_compiler_wl_CXX \
12357     lt_prog_compiler_pic_CXX \
12358     lt_prog_compiler_static_CXX \
12359     lt_prog_compiler_no_builtin_flag_CXX \
12360     export_dynamic_flag_spec_CXX \
12361     thread_safe_flag_spec_CXX \
12362     whole_archive_flag_spec_CXX \
12363     enable_shared_with_static_runtimes_CXX \
12364     old_archive_cmds_CXX \
12365     old_archive_from_new_cmds_CXX \
12366     predep_objects_CXX \
12367     postdep_objects_CXX \
12368     predeps_CXX \
12369     postdeps_CXX \
12370     compiler_lib_search_path_CXX \
12371     archive_cmds_CXX \
12372     archive_expsym_cmds_CXX \
12373     postinstall_cmds_CXX \
12374     postuninstall_cmds_CXX \
12375     old_archive_from_expsyms_cmds_CXX \
12376     allow_undefined_flag_CXX \
12377     no_undefined_flag_CXX \
12378     export_symbols_cmds_CXX \
12379     hardcode_libdir_flag_spec_CXX \
12380     hardcode_libdir_flag_spec_ld_CXX \
12381     hardcode_libdir_separator_CXX \
12382     hardcode_automatic_CXX \
12383     module_cmds_CXX \
12384     module_expsym_cmds_CXX \
12385     lt_cv_prog_compiler_c_o_CXX \
12386     exclude_expsyms_CXX \
12387     include_expsyms_CXX; do
12388
12389     case $var in
12390     old_archive_cmds_CXX | \
12391     old_archive_from_new_cmds_CXX | \
12392     archive_cmds_CXX | \
12393     archive_expsym_cmds_CXX | \
12394     module_cmds_CXX | \
12395     module_expsym_cmds_CXX | \
12396     old_archive_from_expsyms_cmds_CXX | \
12397     export_symbols_cmds_CXX | \
12398     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12399     postinstall_cmds | postuninstall_cmds | \
12400     old_postinstall_cmds | old_postuninstall_cmds | \
12401     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12402       # Double-quote double-evaled strings.
12403       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12404       ;;
12405     *)
12406       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12407       ;;
12408     esac
12409   done
12410
12411   case $lt_echo in
12412   *'\$0 --fallback-echo"')
12413     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12414     ;;
12415   esac
12416
12417 cfgfile="$ofile"
12418
12419   cat <<__EOF__ >> "$cfgfile"
12420 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12421
12422 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12423
12424 # Shell to use when invoking shell scripts.
12425 SHELL=$lt_SHELL
12426
12427 # Whether or not to build shared libraries.
12428 build_libtool_libs=$enable_shared
12429
12430 # Whether or not to build static libraries.
12431 build_old_libs=$enable_static
12432
12433 # Whether or not to add -lc for building shared libraries.
12434 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12435
12436 # Whether or not to disallow shared libs when runtime libs are static
12437 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12438
12439 # Whether or not to optimize for fast installation.
12440 fast_install=$enable_fast_install
12441
12442 # The host system.
12443 host_alias=$host_alias
12444 host=$host
12445
12446 # An echo program that does not interpret backslashes.
12447 echo=$lt_echo
12448
12449 # The archiver.
12450 AR=$lt_AR
12451 AR_FLAGS=$lt_AR_FLAGS
12452
12453 # A C compiler.
12454 LTCC=$lt_LTCC
12455
12456 # A language-specific compiler.
12457 CC=$lt_compiler_CXX
12458
12459 # Is the compiler the GNU C compiler?
12460 with_gcc=$GCC_CXX
12461
12462 # An ERE matcher.
12463 EGREP=$lt_EGREP
12464
12465 # The linker used to build libraries.
12466 LD=$lt_LD_CXX
12467
12468 # Whether we need hard or soft links.
12469 LN_S=$lt_LN_S
12470
12471 # A BSD-compatible nm program.
12472 NM=$lt_NM
12473
12474 # A symbol stripping program
12475 STRIP=$STRIP
12476
12477 # Used to examine libraries when file_magic_cmd begins "file"
12478 MAGIC_CMD=$MAGIC_CMD
12479
12480 # Used on cygwin: DLL creation program.
12481 DLLTOOL="$DLLTOOL"
12482
12483 # Used on cygwin: object dumper.
12484 OBJDUMP="$OBJDUMP"
12485
12486 # Used on cygwin: assembler.
12487 AS="$AS"
12488
12489 # The name of the directory that contains temporary libtool files.
12490 objdir=$objdir
12491
12492 # How to create reloadable object files.
12493 reload_flag=$lt_reload_flag
12494 reload_cmds=$lt_reload_cmds
12495
12496 # How to pass a linker flag through the compiler.
12497 wl=$lt_lt_prog_compiler_wl_CXX
12498
12499 # Object file suffix (normally "o").
12500 objext="$ac_objext"
12501
12502 # Old archive suffix (normally "a").
12503 libext="$libext"
12504
12505 # Shared library suffix (normally ".so").
12506 shrext='$shrext'
12507
12508 # Executable file suffix (normally "").
12509 exeext="$exeext"
12510
12511 # Additional compiler flags for building library objects.
12512 pic_flag=$lt_lt_prog_compiler_pic_CXX
12513 pic_mode=$pic_mode
12514
12515 # What is the maximum length of a command?
12516 max_cmd_len=$lt_cv_sys_max_cmd_len
12517
12518 # Does compiler simultaneously support -c and -o options?
12519 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12520
12521 # Must we lock files when doing compilation ?
12522 need_locks=$lt_need_locks
12523
12524 # Do we need the lib prefix for modules?
12525 need_lib_prefix=$need_lib_prefix
12526
12527 # Do we need a version for libraries?
12528 need_version=$need_version
12529
12530 # Whether dlopen is supported.
12531 dlopen_support=$enable_dlopen
12532
12533 # Whether dlopen of programs is supported.
12534 dlopen_self=$enable_dlopen_self
12535
12536 # Whether dlopen of statically linked programs is supported.
12537 dlopen_self_static=$enable_dlopen_self_static
12538
12539 # Compiler flag to prevent dynamic linking.
12540 link_static_flag=$lt_lt_prog_compiler_static_CXX
12541
12542 # Compiler flag to turn off builtin functions.
12543 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12544
12545 # Compiler flag to allow reflexive dlopens.
12546 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12547
12548 # Compiler flag to generate shared objects directly from archives.
12549 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12550
12551 # Compiler flag to generate thread-safe objects.
12552 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12553
12554 # Library versioning type.
12555 version_type=$version_type
12556
12557 # Format of library name prefix.
12558 libname_spec=$lt_libname_spec
12559
12560 # List of archive names.  First name is the real one, the rest are links.
12561 # The last name is the one that the linker finds with -lNAME.
12562 library_names_spec=$lt_library_names_spec
12563
12564 # The coded name of the library, if different from the real name.
12565 soname_spec=$lt_soname_spec
12566
12567 # Commands used to build and install an old-style archive.
12568 RANLIB=$lt_RANLIB
12569 old_archive_cmds=$lt_old_archive_cmds_CXX
12570 old_postinstall_cmds=$lt_old_postinstall_cmds
12571 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12572
12573 # Create an old-style archive from a shared archive.
12574 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12575
12576 # Create a temporary old-style archive to link instead of a shared archive.
12577 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12578
12579 # Commands used to build and install a shared archive.
12580 archive_cmds=$lt_archive_cmds_CXX
12581 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12582 postinstall_cmds=$lt_postinstall_cmds
12583 postuninstall_cmds=$lt_postuninstall_cmds
12584
12585 # Commands used to build a loadable module (assumed same as above if empty)
12586 module_cmds=$lt_module_cmds_CXX
12587 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12588
12589 # Commands to strip libraries.
12590 old_striplib=$lt_old_striplib
12591 striplib=$lt_striplib
12592
12593 # Dependencies to place before the objects being linked to create a
12594 # shared library.
12595 predep_objects=$lt_predep_objects_CXX
12596
12597 # Dependencies to place after the objects being linked to create a
12598 # shared library.
12599 postdep_objects=$lt_postdep_objects_CXX
12600
12601 # Dependencies to place before the objects being linked to create a
12602 # shared library.
12603 predeps=$lt_predeps_CXX
12604
12605 # Dependencies to place after the objects being linked to create a
12606 # shared library.
12607 postdeps=$lt_postdeps_CXX
12608
12609 # The library search path used internally by the compiler when linking
12610 # a shared library.
12611 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12612
12613 # Method to check whether dependent libraries are shared objects.
12614 deplibs_check_method=$lt_deplibs_check_method
12615
12616 # Command to use when deplibs_check_method == file_magic.
12617 file_magic_cmd=$lt_file_magic_cmd
12618
12619 # Flag that allows shared libraries with undefined symbols to be built.
12620 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12621
12622 # Flag that forces no undefined symbols.
12623 no_undefined_flag=$lt_no_undefined_flag_CXX
12624
12625 # Commands used to finish a libtool library installation in a directory.
12626 finish_cmds=$lt_finish_cmds
12627
12628 # Same as above, but a single script fragment to be evaled but not shown.
12629 finish_eval=$lt_finish_eval
12630
12631 # Take the output of nm and produce a listing of raw symbols and C names.
12632 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12633
12634 # Transform the output of nm in a proper C declaration
12635 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12636
12637 # Transform the output of nm in a C name address pair
12638 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12639
12640 # This is the shared library runtime path variable.
12641 runpath_var=$runpath_var
12642
12643 # This is the shared library path variable.
12644 shlibpath_var=$shlibpath_var
12645
12646 # Is shlibpath searched before the hard-coded library search path?
12647 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12648
12649 # How to hardcode a shared library path into an executable.
12650 hardcode_action=$hardcode_action_CXX
12651
12652 # Whether we should hardcode library paths into libraries.
12653 hardcode_into_libs=$hardcode_into_libs
12654
12655 # Flag to hardcode \$libdir into a binary during linking.
12656 # This must work even if \$libdir does not exist.
12657 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12658
12659 # If ld is used when linking, flag to hardcode \$libdir into
12660 # a binary during linking. This must work even if \$libdir does
12661 # not exist.
12662 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12663
12664 # Whether we need a single -rpath flag with a separated argument.
12665 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12666
12667 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12668 # resulting binary.
12669 hardcode_direct=$hardcode_direct_CXX
12670
12671 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12672 # resulting binary.
12673 hardcode_minus_L=$hardcode_minus_L_CXX
12674
12675 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12676 # the resulting binary.
12677 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12678
12679 # Set to yes if building a shared library automatically hardcodes DIR into the library
12680 # and all subsequent libraries and executables linked against it.
12681 hardcode_automatic=$hardcode_automatic_CXX
12682
12683 # Variables whose values should be saved in libtool wrapper scripts and
12684 # restored at relink time.
12685 variables_saved_for_relink="$variables_saved_for_relink"
12686
12687 # Whether libtool must link a program against all its dependency libraries.
12688 link_all_deplibs=$link_all_deplibs_CXX
12689
12690 # Compile-time system search path for libraries
12691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12692
12693 # Run-time system search path for libraries
12694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12695
12696 # Fix the shell variable \$srcfile for the compiler.
12697 fix_srcfile_path="$fix_srcfile_path_CXX"
12698
12699 # Set to yes if exported symbols are required.
12700 always_export_symbols=$always_export_symbols_CXX
12701
12702 # The commands to list exported symbols.
12703 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12704
12705 # The commands to extract the exported symbol list from a shared archive.
12706 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12707
12708 # Symbols that should not be listed in the preloaded symbols.
12709 exclude_expsyms=$lt_exclude_expsyms_CXX
12710
12711 # Symbols that must always be exported.
12712 include_expsyms=$lt_include_expsyms_CXX
12713
12714 # ### END LIBTOOL TAG CONFIG: $tagname
12715
12716 __EOF__
12717
12718
12719 else
12720   # If there is no Makefile yet, we rely on a make rule to execute
12721   # `config.status --recheck' to rerun these tests and create the
12722   # libtool script then.
12723   test -f Makefile && make "$ltmain"
12724 fi
12725
12726
12727 ac_ext=c
12728 ac_cpp='$CPP $CPPFLAGS'
12729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12732
12733 CC=$lt_save_CC
12734 LDCXX=$LD
12735 LD=$lt_save_LD
12736 GCC=$lt_save_GCC
12737 with_gnu_ldcxx=$with_gnu_ld
12738 with_gnu_ld=$lt_save_with_gnu_ld
12739 lt_cv_path_LDCXX=$lt_cv_path_LD
12740 lt_cv_path_LD=$lt_save_path_LD
12741 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12742 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12743
12744         else
12745           tagname=""
12746         fi
12747         ;;
12748
12749       F77)
12750         if test -n "$F77" && test "X$F77" != "Xno"; then
12751
12752 ac_ext=f
12753 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12754 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12755 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12756
12757
12758 archive_cmds_need_lc_F77=no
12759 allow_undefined_flag_F77=
12760 always_export_symbols_F77=no
12761 archive_expsym_cmds_F77=
12762 export_dynamic_flag_spec_F77=
12763 hardcode_direct_F77=no
12764 hardcode_libdir_flag_spec_F77=
12765 hardcode_libdir_flag_spec_ld_F77=
12766 hardcode_libdir_separator_F77=
12767 hardcode_minus_L_F77=no
12768 hardcode_automatic_F77=no
12769 module_cmds_F77=
12770 module_expsym_cmds_F77=
12771 link_all_deplibs_F77=unknown
12772 old_archive_cmds_F77=$old_archive_cmds
12773 no_undefined_flag_F77=
12774 whole_archive_flag_spec_F77=
12775 enable_shared_with_static_runtimes_F77=no
12776
12777 # Source file extension for f77 test sources.
12778 ac_ext=f
12779
12780 # Object file extension for compiled f77 test sources.
12781 objext=o
12782 objext_F77=$objext
12783
12784 # Code to be used in simple compile tests
12785 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12786
12787 # Code to be used in simple link tests
12788 lt_simple_link_test_code="      program t\n      end\n"
12789
12790 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12791
12792 # If no C compiler was specified, use CC.
12793 LTCC=${LTCC-"$CC"}
12794
12795 # Allow CC to be a program name with arguments.
12796 compiler=$CC
12797
12798
12799 # Allow CC to be a program name with arguments.
12800 lt_save_CC="$CC"
12801 CC=${F77-"f77"}
12802 compiler=$CC
12803 compiler_F77=$CC
12804 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12805
12806 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12807 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12808 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12809 echo "${ECHO_T}$can_build_shared" >&6
12810
12811 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12812 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12813 test "$can_build_shared" = "no" && enable_shared=no
12814
12815 # On AIX, shared libraries and static libraries use the same namespace, and
12816 # are all built from PIC.
12817 case "$host_os" in
12818 aix3*)
12819   test "$enable_shared" = yes && enable_static=no
12820   if test -n "$RANLIB"; then
12821     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12822     postinstall_cmds='$RANLIB $lib'
12823   fi
12824   ;;
12825 aix4*)
12826   test "$enable_shared" = yes && enable_static=no
12827   ;;
12828 esac
12829 echo "$as_me:$LINENO: result: $enable_shared" >&5
12830 echo "${ECHO_T}$enable_shared" >&6
12831
12832 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12833 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12834 # Make sure either enable_shared or enable_static is yes.
12835 test "$enable_shared" = yes || enable_static=yes
12836 echo "$as_me:$LINENO: result: $enable_static" >&5
12837 echo "${ECHO_T}$enable_static" >&6
12838
12839 test "$ld_shlibs_F77" = no && can_build_shared=no
12840
12841 GCC_F77="$G77"
12842 LD_F77="$LD"
12843
12844 lt_prog_compiler_wl_F77=
12845 lt_prog_compiler_pic_F77=
12846 lt_prog_compiler_static_F77=
12847
12848 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12849 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12850
12851   if test "$GCC" = yes; then
12852     lt_prog_compiler_wl_F77='-Wl,'
12853     lt_prog_compiler_static_F77='-static'
12854
12855     case $host_os in
12856       aix*)
12857       # All AIX code is PIC.
12858       if test "$host_cpu" = ia64; then
12859         # AIX 5 now supports IA64 processor
12860         lt_prog_compiler_static_F77='-Bstatic'
12861       fi
12862       ;;
12863
12864     amigaos*)
12865       # FIXME: we need at least 68020 code to build shared libraries, but
12866       # adding the `-m68020' flag to GCC prevents building anything better,
12867       # like `-m68040'.
12868       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12869       ;;
12870
12871     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12872       # PIC is the default for these OSes.
12873       ;;
12874
12875     mingw* | pw32* | os2*)
12876       # This hack is so that the source file can tell whether it is being
12877       # built for inclusion in a dll (and should export symbols for example).
12878       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12879       ;;
12880
12881     darwin* | rhapsody*)
12882       # PIC is the default on this platform
12883       # Common symbols not allowed in MH_DYLIB files
12884       lt_prog_compiler_pic_F77='-fno-common'
12885       ;;
12886
12887     msdosdjgpp*)
12888       # Just because we use GCC doesn't mean we suddenly get shared libraries
12889       # on systems that don't support them.
12890       lt_prog_compiler_can_build_shared_F77=no
12891       enable_shared=no
12892       ;;
12893
12894     sysv4*MP*)
12895       if test -d /usr/nec; then
12896         lt_prog_compiler_pic_F77=-Kconform_pic
12897       fi
12898       ;;
12899
12900     hpux*)
12901       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12902       # not for PA HP-UX.
12903       case "$host_cpu" in
12904       hppa*64*|ia64*)
12905         # +Z the default
12906         ;;
12907       *)
12908         lt_prog_compiler_pic_F77='-fPIC'
12909         ;;
12910       esac
12911       ;;
12912
12913     *)
12914       lt_prog_compiler_pic_F77='-fPIC'
12915       ;;
12916     esac
12917   else
12918     # PORTME Check for flag to pass linker flags through the system compiler.
12919     case $host_os in
12920     aix*)
12921       lt_prog_compiler_wl_F77='-Wl,'
12922       if test "$host_cpu" = ia64; then
12923         # AIX 5 now supports IA64 processor
12924         lt_prog_compiler_static_F77='-Bstatic'
12925       else
12926         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12927       fi
12928       ;;
12929
12930     mingw* | pw32* | os2*)
12931       # This hack is so that the source file can tell whether it is being
12932       # built for inclusion in a dll (and should export symbols for example).
12933       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12934       ;;
12935
12936     hpux9* | hpux10* | hpux11*)
12937       lt_prog_compiler_wl_F77='-Wl,'
12938       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12939       # not for PA HP-UX.
12940       case "$host_cpu" in
12941       hppa*64*|ia64*)
12942         # +Z the default
12943         ;;
12944       *)
12945         lt_prog_compiler_pic_F77='+Z'
12946         ;;
12947       esac
12948       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12949       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12950       ;;
12951
12952     irix5* | irix6* | nonstopux*)
12953       lt_prog_compiler_wl_F77='-Wl,'
12954       # PIC (with -KPIC) is the default.
12955       lt_prog_compiler_static_F77='-non_shared'
12956       ;;
12957
12958     newsos6)
12959       lt_prog_compiler_pic_F77='-KPIC'
12960       lt_prog_compiler_static_F77='-Bstatic'
12961       ;;
12962
12963     linux*)
12964       case $CC in
12965       icc|ecc)
12966         lt_prog_compiler_wl_F77='-Wl,'
12967         lt_prog_compiler_pic_F77='-KPIC'
12968         lt_prog_compiler_static_F77='-static'
12969         ;;
12970       ccc)
12971         lt_prog_compiler_wl_F77='-Wl,'
12972         # All Alpha code is PIC.
12973         lt_prog_compiler_static_F77='-non_shared'
12974         ;;
12975       esac
12976       ;;
12977
12978     osf3* | osf4* | osf5*)
12979       lt_prog_compiler_wl_F77='-Wl,'
12980       # All OSF/1 code is PIC.
12981       lt_prog_compiler_static_F77='-non_shared'
12982       ;;
12983
12984     sco3.2v5*)
12985       lt_prog_compiler_pic_F77='-Kpic'
12986       lt_prog_compiler_static_F77='-dn'
12987       ;;
12988
12989     solaris*)
12990       lt_prog_compiler_wl_F77='-Wl,'
12991       lt_prog_compiler_pic_F77='-KPIC'
12992       lt_prog_compiler_static_F77='-Bstatic'
12993       ;;
12994
12995     sunos4*)
12996       lt_prog_compiler_wl_F77='-Qoption ld '
12997       lt_prog_compiler_pic_F77='-PIC'
12998       lt_prog_compiler_static_F77='-Bstatic'
12999       ;;
13000
13001     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13002       lt_prog_compiler_wl_F77='-Wl,'
13003       lt_prog_compiler_pic_F77='-KPIC'
13004       lt_prog_compiler_static_F77='-Bstatic'
13005       ;;
13006
13007     sysv4*MP*)
13008       if test -d /usr/nec ;then
13009         lt_prog_compiler_pic_F77='-Kconform_pic'
13010         lt_prog_compiler_static_F77='-Bstatic'
13011       fi
13012       ;;
13013
13014     uts4*)
13015       lt_prog_compiler_pic_F77='-pic'
13016       lt_prog_compiler_static_F77='-Bstatic'
13017       ;;
13018
13019     *)
13020       lt_prog_compiler_can_build_shared_F77=no
13021       ;;
13022     esac
13023   fi
13024
13025 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13026 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13027
13028 #
13029 # Check to make sure the PIC flag actually works.
13030 #
13031 if test -n "$lt_prog_compiler_pic_F77"; then
13032   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13033 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13034 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13035   echo $ECHO_N "(cached) $ECHO_C" >&6
13036 else
13037   lt_prog_compiler_pic_works_F77=no
13038   ac_outfile=conftest.$ac_objext
13039    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13040    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13041    # Insert the option either (1) after the last *FLAGS variable, or
13042    # (2) before a word containing "conftest.", or (3) at the end.
13043    # Note that $ac_compile itself does not contain backslashes and begins
13044    # with a dollar sign (not a hyphen), so the echo should work correctly.
13045    # The option is referenced via a variable to avoid confusing sed.
13046    lt_compile=`echo "$ac_compile" | $SED \
13047    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13048    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13049    -e 's:$: $lt_compiler_flag:'`
13050    (eval echo "\"\$as_me:13050: $lt_compile\"" >&5)
13051    (eval "$lt_compile" 2>conftest.err)
13052    ac_status=$?
13053    cat conftest.err >&5
13054    echo "$as_me:13054: \$? = $ac_status" >&5
13055    if (exit $ac_status) && test -s "$ac_outfile"; then
13056      # The compiler can only warn and ignore the option if not recognized
13057      # So say no if there are warnings
13058      if test ! -s conftest.err; then
13059        lt_prog_compiler_pic_works_F77=yes
13060      fi
13061    fi
13062    $rm conftest*
13063
13064 fi
13065 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13066 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13067
13068 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13069     case $lt_prog_compiler_pic_F77 in
13070      "" | " "*) ;;
13071      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13072      esac
13073 else
13074     lt_prog_compiler_pic_F77=
13075      lt_prog_compiler_can_build_shared_F77=no
13076 fi
13077
13078 fi
13079 case "$host_os" in
13080   # For platforms which do not support PIC, -DPIC is meaningless:
13081   *djgpp*)
13082     lt_prog_compiler_pic_F77=
13083     ;;
13084   *)
13085     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13086     ;;
13087 esac
13088
13089 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13090 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13091 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13092   echo $ECHO_N "(cached) $ECHO_C" >&6
13093 else
13094   lt_cv_prog_compiler_c_o_F77=no
13095    $rm -r conftest 2>/dev/null
13096    mkdir conftest
13097    cd conftest
13098    mkdir out
13099    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13100
13101    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13102    # that will create temporary files in the current directory regardless of
13103    # the output directory.  Thus, making CWD read-only will cause this test
13104    # to fail, enabling locking or at least warning the user not to do parallel
13105    # builds.
13106    chmod -w .
13107
13108    lt_compiler_flag="-o out/conftest2.$ac_objext"
13109    # Insert the option either (1) after the last *FLAGS variable, or
13110    # (2) before a word containing "conftest.", or (3) at the end.
13111    # Note that $ac_compile itself does not contain backslashes and begins
13112    # with a dollar sign (not a hyphen), so the echo should work correctly.
13113    lt_compile=`echo "$ac_compile" | $SED \
13114    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13115    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13116    -e 's:$: $lt_compiler_flag:'`
13117    (eval echo "\"\$as_me:13117: $lt_compile\"" >&5)
13118    (eval "$lt_compile" 2>out/conftest.err)
13119    ac_status=$?
13120    cat out/conftest.err >&5
13121    echo "$as_me:13121: \$? = $ac_status" >&5
13122    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13123    then
13124      # The compiler can only warn and ignore the option if not recognized
13125      # So say no if there are warnings
13126      if test ! -s out/conftest.err; then
13127        lt_cv_prog_compiler_c_o_F77=yes
13128      fi
13129    fi
13130    chmod u+w .
13131    $rm conftest* out/*
13132    rmdir out
13133    cd ..
13134    rmdir conftest
13135    $rm conftest*
13136
13137 fi
13138 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13139 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13140
13141
13142 hard_links="nottested"
13143 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13144   # do not overwrite the value of need_locks provided by the user
13145   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13146 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13147   hard_links=yes
13148   $rm conftest*
13149   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13150   touch conftest.a
13151   ln conftest.a conftest.b 2>&5 || hard_links=no
13152   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13153   echo "$as_me:$LINENO: result: $hard_links" >&5
13154 echo "${ECHO_T}$hard_links" >&6
13155   if test "$hard_links" = no; then
13156     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13157 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13158     need_locks=warn
13159   fi
13160 else
13161   need_locks=no
13162 fi
13163
13164 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13165 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13166
13167   runpath_var=
13168   allow_undefined_flag_F77=
13169   enable_shared_with_static_runtimes_F77=no
13170   archive_cmds_F77=
13171   archive_expsym_cmds_F77=
13172   old_archive_From_new_cmds_F77=
13173   old_archive_from_expsyms_cmds_F77=
13174   export_dynamic_flag_spec_F77=
13175   whole_archive_flag_spec_F77=
13176   thread_safe_flag_spec_F77=
13177   hardcode_libdir_flag_spec_F77=
13178   hardcode_libdir_flag_spec_ld_F77=
13179   hardcode_libdir_separator_F77=
13180   hardcode_direct_F77=no
13181   hardcode_minus_L_F77=no
13182   hardcode_shlibpath_var_F77=unsupported
13183   link_all_deplibs_F77=unknown
13184   hardcode_automatic_F77=no
13185   module_cmds_F77=
13186   module_expsym_cmds_F77=
13187   always_export_symbols_F77=no
13188   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13189   # include_expsyms should be a list of space-separated symbols to be *always*
13190   # included in the symbol list
13191   include_expsyms_F77=
13192   # exclude_expsyms can be an extended regexp of symbols to exclude
13193   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13194   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13195   # as well as any symbol that contains `d'.
13196   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13197   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13198   # platforms (ab)use it in PIC code, but their linkers get confused if
13199   # the symbol is explicitly referenced.  Since portable code cannot
13200   # rely on this symbol name, it's probably fine to never include it in
13201   # preloaded symbol tables.
13202   extract_expsyms_cmds=
13203
13204   case $host_os in
13205   cygwin* | mingw* | pw32*)
13206     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13207     # When not using gcc, we currently assume that we are using
13208     # Microsoft Visual C++.
13209     if test "$GCC" != yes; then
13210       with_gnu_ld=no
13211     fi
13212     ;;
13213   openbsd*)
13214     with_gnu_ld=no
13215     ;;
13216   esac
13217
13218   ld_shlibs_F77=yes
13219   if test "$with_gnu_ld" = yes; then
13220     # If archive_cmds runs LD, not CC, wlarc should be empty
13221     wlarc='${wl}'
13222
13223     # See if GNU ld supports shared libraries.
13224     case $host_os in
13225     aix3* | aix4* | aix5*)
13226       # On AIX/PPC, the GNU linker is very broken
13227       if test "$host_cpu" != ia64; then
13228         ld_shlibs_F77=no
13229         cat <<EOF 1>&2
13230
13231 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13232 *** to be unable to reliably create shared libraries on AIX.
13233 *** Therefore, libtool is disabling shared libraries support.  If you
13234 *** really care for shared libraries, you may want to modify your PATH
13235 *** so that a non-GNU linker is found, and then restart.
13236
13237 EOF
13238       fi
13239       ;;
13240
13241     amigaos*)
13242       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)'
13243       hardcode_libdir_flag_spec_F77='-L$libdir'
13244       hardcode_minus_L_F77=yes
13245
13246       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13247       # that the semantics of dynamic libraries on AmigaOS, at least up
13248       # to version 4, is to share data among multiple programs linked
13249       # with the same dynamic library.  Since this doesn't match the
13250       # behavior of shared libraries on other platforms, we can't use
13251       # them.
13252       ld_shlibs_F77=no
13253       ;;
13254
13255     beos*)
13256       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13257         allow_undefined_flag_F77=unsupported
13258         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13259         # support --undefined.  This deserves some investigation.  FIXME
13260         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13261       else
13262         ld_shlibs_F77=no
13263       fi
13264       ;;
13265
13266     cygwin* | mingw* | pw32*)
13267       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13268       # as there is no search path for DLLs.
13269       hardcode_libdir_flag_spec_F77='-L$libdir'
13270       allow_undefined_flag_F77=unsupported
13271       always_export_symbols_F77=no
13272       enable_shared_with_static_runtimes_F77=yes
13273       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13274
13275       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13276         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13277         # If the export-symbols file already is a .def file (1st line
13278         # is EXPORTS), use it as is; otherwise, prepend...
13279         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13280           cp $export_symbols $output_objdir/$soname.def;
13281         else
13282           echo EXPORTS > $output_objdir/$soname.def;
13283           cat $export_symbols >> $output_objdir/$soname.def;
13284         fi~
13285         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13286       else
13287         ld_shlibs=no
13288       fi
13289       ;;
13290
13291     netbsd*)
13292       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13293         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13294         wlarc=
13295       else
13296         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13297         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13298       fi
13299       ;;
13300
13301     solaris* | sysv5*)
13302       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13303         ld_shlibs_F77=no
13304         cat <<EOF 1>&2
13305
13306 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13307 *** create shared libraries on Solaris systems.  Therefore, libtool
13308 *** is disabling shared libraries support.  We urge you to upgrade GNU
13309 *** binutils to release 2.9.1 or newer.  Another option is to modify
13310 *** your PATH or compiler configuration so that the native linker is
13311 *** used, and then restart.
13312
13313 EOF
13314       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13315         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13316         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13317       else
13318         ld_shlibs_F77=no
13319       fi
13320       ;;
13321
13322     sunos4*)
13323       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13324       wlarc=
13325       hardcode_direct_F77=yes
13326       hardcode_shlibpath_var_F77=no
13327       ;;
13328
13329     *)
13330       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13331         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13332         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13333       else
13334         ld_shlibs_F77=no
13335       fi
13336       ;;
13337     esac
13338
13339     if test "$ld_shlibs_F77" = yes; then
13340       runpath_var=LD_RUN_PATH
13341       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13342       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13343       # ancient GNU ld didn't support --whole-archive et. al.
13344       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13345         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13346       else
13347         whole_archive_flag_spec_F77=
13348       fi
13349     fi
13350   else
13351     # PORTME fill in a description of your system's linker (not GNU ld)
13352     case $host_os in
13353     aix3*)
13354       allow_undefined_flag_F77=unsupported
13355       always_export_symbols_F77=yes
13356       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'
13357       # Note: this linker hardcodes the directories in LIBPATH if there
13358       # are no directories specified by -L.
13359       hardcode_minus_L_F77=yes
13360       if test "$GCC" = yes && test -z "$link_static_flag"; then
13361         # Neither direct hardcoding nor static linking is supported with a
13362         # broken collect2.
13363         hardcode_direct_F77=unsupported
13364       fi
13365       ;;
13366
13367     aix4* | aix5*)
13368       if test "$host_cpu" = ia64; then
13369         # On IA64, the linker does run time linking by default, so we don't
13370         # have to do anything special.
13371         aix_use_runtimelinking=no
13372         exp_sym_flag='-Bexport'
13373         no_entry_flag=""
13374       else
13375         # If we're using GNU nm, then we don't want the "-C" option.
13376         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13377         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13378           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'
13379         else
13380           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'
13381         fi
13382         aix_use_runtimelinking=no
13383
13384         # Test if we are trying to use run time linking or normal
13385         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13386         # need to do runtime linking.
13387         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13388           for ld_flag in $LDFLAGS; do
13389           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13390             aix_use_runtimelinking=yes
13391             break
13392           fi
13393           done
13394         esac
13395
13396         exp_sym_flag='-bexport'
13397         no_entry_flag='-bnoentry'
13398       fi
13399
13400       # When large executables or shared objects are built, AIX ld can
13401       # have problems creating the table of contents.  If linking a library
13402       # or program results in "error TOC overflow" add -mminimal-toc to
13403       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13404       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13405
13406       archive_cmds_F77=''
13407       hardcode_direct_F77=yes
13408       hardcode_libdir_separator_F77=':'
13409       link_all_deplibs_F77=yes
13410
13411       if test "$GCC" = yes; then
13412         case $host_os in aix4.012|aix4.012.*)
13413         # We only want to do this on AIX 4.2 and lower, the check
13414         # below for broken collect2 doesn't work under 4.3+
13415           collect2name=`${CC} -print-prog-name=collect2`
13416           if test -f "$collect2name" && \
13417            strings "$collect2name" | grep resolve_lib_name >/dev/null
13418           then
13419           # We have reworked collect2
13420           hardcode_direct_F77=yes
13421           else
13422           # We have old collect2
13423           hardcode_direct_F77=unsupported
13424           # It fails to find uninstalled libraries when the uninstalled
13425           # path is not listed in the libpath.  Setting hardcode_minus_L
13426           # to unsupported forces relinking
13427           hardcode_minus_L_F77=yes
13428           hardcode_libdir_flag_spec_F77='-L$libdir'
13429           hardcode_libdir_separator_F77=
13430           fi
13431         esac
13432         shared_flag='-shared'
13433       else
13434         # not using gcc
13435         if test "$host_cpu" = ia64; then
13436         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13437         # chokes on -Wl,-G. The following line is correct:
13438           shared_flag='-G'
13439         else
13440         if test "$aix_use_runtimelinking" = yes; then
13441             shared_flag='${wl}-G'
13442           else
13443             shared_flag='${wl}-bM:SRE'
13444         fi
13445         fi
13446       fi
13447
13448       # It seems that -bexpall does not export symbols beginning with
13449       # underscore (_), so it is better to generate a list of symbols to export.
13450       always_export_symbols_F77=yes
13451       if test "$aix_use_runtimelinking" = yes; then
13452         # Warning - without using the other runtime loading flags (-brtl),
13453         # -berok will link without error, but may produce a broken library.
13454         allow_undefined_flag_F77='-berok'
13455        # Determine the default libpath from the value encoded in an empty executable.
13456        cat >conftest.$ac_ext <<_ACEOF
13457       program main
13458
13459       end
13460 _ACEOF
13461 rm -f conftest.$ac_objext conftest$ac_exeext
13462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13463   (eval $ac_link) 2>&5
13464   ac_status=$?
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); } &&
13467          { ac_try='test -s conftest$ac_exeext'
13468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469   (eval $ac_try) 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); }; }; then
13473
13474 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13475 }'`
13476 # Check for a 64-bit object if we didn't find anything.
13477 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; }
13478 }'`; fi
13479 else
13480   echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13482
13483 fi
13484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13485 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13486
13487        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13488         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"
13489        else
13490         if test "$host_cpu" = ia64; then
13491           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13492           allow_undefined_flag_F77="-z nodefs"
13493           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"
13494         else
13495          # Determine the default libpath from the value encoded in an empty executable.
13496          cat >conftest.$ac_ext <<_ACEOF
13497       program main
13498
13499       end
13500 _ACEOF
13501 rm -f conftest.$ac_objext conftest$ac_exeext
13502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13503   (eval $ac_link) 2>&5
13504   ac_status=$?
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); } &&
13507          { ac_try='test -s conftest$ac_exeext'
13508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509   (eval $ac_try) 2>&5
13510   ac_status=$?
13511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512   (exit $ac_status); }; }; then
13513
13514 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13515 }'`
13516 # Check for a 64-bit object if we didn't find anything.
13517 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; }
13518 }'`; fi
13519 else
13520   echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13522
13523 fi
13524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13525 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13526
13527          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13528           # Warning - without using the other run time loading flags,
13529           # -berok will link without error, but may produce a broken library.
13530           no_undefined_flag_F77=' ${wl}-bernotok'
13531           allow_undefined_flag_F77=' ${wl}-berok'
13532           # -bexpall does not export symbols beginning with underscore (_)
13533           always_export_symbols_F77=yes
13534           # Exported symbols can be pulled into shared objects from archives
13535           whole_archive_flag_spec_F77=' '
13536           archive_cmds_need_lc_F77=yes
13537           # This is similar to how AIX traditionally builds it's shared libraries.
13538           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'
13539         fi
13540       fi
13541       ;;
13542
13543     amigaos*)
13544       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)'
13545       hardcode_libdir_flag_spec_F77='-L$libdir'
13546       hardcode_minus_L_F77=yes
13547       # see comment about different semantics on the GNU ld section
13548       ld_shlibs_F77=no
13549       ;;
13550
13551     bsdi4*)
13552       export_dynamic_flag_spec_F77=-rdynamic
13553       ;;
13554
13555     cygwin* | mingw* | pw32*)
13556       # When not using gcc, we currently assume that we are using
13557       # Microsoft Visual C++.
13558       # hardcode_libdir_flag_spec is actually meaningless, as there is
13559       # no search path for DLLs.
13560       hardcode_libdir_flag_spec_F77=' '
13561       allow_undefined_flag_F77=unsupported
13562       # Tell ltmain to make .lib files, not .a files.
13563       libext=lib
13564       # Tell ltmain to make .dll files, not .so files.
13565       shrext=".dll"
13566       # FIXME: Setting linknames here is a bad hack.
13567       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13568       # The linker will automatically build a .lib file if we build a DLL.
13569       old_archive_From_new_cmds_F77='true'
13570       # FIXME: Should let the user specify the lib program.
13571       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13572       fix_srcfile_path='`cygpath -w "$srcfile"`'
13573       enable_shared_with_static_runtimes_F77=yes
13574       ;;
13575
13576     darwin* | rhapsody*)
13577     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13578       archive_cmds_need_lc_F77=no
13579       case "$host_os" in
13580       rhapsody* | darwin1.[012])
13581         allow_undefined_flag_F77='-undefined suppress'
13582         ;;
13583       *) # Darwin 1.3 on
13584         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13585         ;;
13586       esac
13587       # FIXME: Relying on posixy $() will cause problems for
13588       #        cross-compilation, but unfortunately the echo tests do not
13589       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13590       #        `"' quotes if we put them in here... so don't!
13591         lt_int_apple_cc_single_mod=no
13592         output_verbose_link_cmd='echo'
13593         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13594           lt_int_apple_cc_single_mod=yes
13595         fi
13596         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13597           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13598         else
13599         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'
13600       fi
13601       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13602       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13603         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13604           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}'
13605         else
13606           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}'
13607         fi
13608           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}'
13609       hardcode_direct_F77=no
13610       hardcode_automatic_F77=yes
13611       hardcode_shlibpath_var_F77=unsupported
13612       whole_archive_flag_spec_F77='-all_load $convenience'
13613       link_all_deplibs_F77=yes
13614     fi
13615       ;;
13616
13617     dgux*)
13618       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13619       hardcode_libdir_flag_spec_F77='-L$libdir'
13620       hardcode_shlibpath_var_F77=no
13621       ;;
13622
13623     freebsd1*)
13624       ld_shlibs_F77=no
13625       ;;
13626
13627     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13628     # support.  Future versions do this automatically, but an explicit c++rt0.o
13629     # does not break anything, and helps significantly (at the cost of a little
13630     # extra space).
13631     freebsd2.2*)
13632       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13633       hardcode_libdir_flag_spec_F77='-R$libdir'
13634       hardcode_direct_F77=yes
13635       hardcode_shlibpath_var_F77=no
13636       ;;
13637
13638     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13639     freebsd2*)
13640       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13641       hardcode_direct_F77=yes
13642       hardcode_minus_L_F77=yes
13643       hardcode_shlibpath_var_F77=no
13644       ;;
13645
13646     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13647     freebsd*)
13648       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13649       hardcode_libdir_flag_spec_F77='-R$libdir'
13650       hardcode_direct_F77=yes
13651       hardcode_shlibpath_var_F77=no
13652       ;;
13653
13654     hpux9*)
13655       if test "$GCC" = yes; then
13656         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'
13657       else
13658         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'
13659       fi
13660       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13661       hardcode_libdir_separator_F77=:
13662       hardcode_direct_F77=yes
13663
13664       # hardcode_minus_L: Not really in the search PATH,
13665       # but as the default location of the library.
13666       hardcode_minus_L_F77=yes
13667       export_dynamic_flag_spec_F77='${wl}-E'
13668       ;;
13669
13670     hpux10* | hpux11*)
13671       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13672         case "$host_cpu" in
13673         hppa*64*|ia64*)
13674           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13675           ;;
13676         *)
13677           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13678           ;;
13679         esac
13680       else
13681         case "$host_cpu" in
13682         hppa*64*|ia64*)
13683           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13684           ;;
13685         *)
13686           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13687           ;;
13688         esac
13689       fi
13690       if test "$with_gnu_ld" = no; then
13691         case "$host_cpu" in
13692         hppa*64*)
13693           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13694           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13695           hardcode_libdir_separator_F77=:
13696           hardcode_direct_F77=no
13697           hardcode_shlibpath_var_F77=no
13698           ;;
13699         ia64*)
13700           hardcode_libdir_flag_spec_F77='-L$libdir'
13701           hardcode_direct_F77=no
13702           hardcode_shlibpath_var_F77=no
13703
13704           # hardcode_minus_L: Not really in the search PATH,
13705           # but as the default location of the library.
13706           hardcode_minus_L_F77=yes
13707           ;;
13708         *)
13709           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13710           hardcode_libdir_separator_F77=:
13711           hardcode_direct_F77=yes
13712           export_dynamic_flag_spec_F77='${wl}-E'
13713
13714           # hardcode_minus_L: Not really in the search PATH,
13715           # but as the default location of the library.
13716           hardcode_minus_L_F77=yes
13717           ;;
13718         esac
13719       fi
13720       ;;
13721
13722     irix5* | irix6* | nonstopux*)
13723       if test "$GCC" = yes; then
13724         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'
13725       else
13726         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'
13727         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13728       fi
13729       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13730       hardcode_libdir_separator_F77=:
13731       link_all_deplibs_F77=yes
13732       ;;
13733
13734     netbsd*)
13735       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13736         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13737       else
13738         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13739       fi
13740       hardcode_libdir_flag_spec_F77='-R$libdir'
13741       hardcode_direct_F77=yes
13742       hardcode_shlibpath_var_F77=no
13743       ;;
13744
13745     newsos6)
13746       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13747       hardcode_direct_F77=yes
13748       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13749       hardcode_libdir_separator_F77=:
13750       hardcode_shlibpath_var_F77=no
13751       ;;
13752
13753     openbsd*)
13754       hardcode_direct_F77=yes
13755       hardcode_shlibpath_var_F77=no
13756       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13757         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13758         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13759         export_dynamic_flag_spec_F77='${wl}-E'
13760       else
13761        case $host_os in
13762          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13763            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13764            hardcode_libdir_flag_spec_F77='-R$libdir'
13765            ;;
13766          *)
13767            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13768            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13769            ;;
13770        esac
13771       fi
13772       ;;
13773
13774     os2*)
13775       hardcode_libdir_flag_spec_F77='-L$libdir'
13776       hardcode_minus_L_F77=yes
13777       allow_undefined_flag_F77=unsupported
13778       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'
13779       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13780       ;;
13781
13782     osf3*)
13783       if test "$GCC" = yes; then
13784         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13785         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'
13786       else
13787         allow_undefined_flag_F77=' -expect_unresolved \*'
13788         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'
13789       fi
13790       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13791       hardcode_libdir_separator_F77=:
13792       ;;
13793
13794     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13795       if test "$GCC" = yes; then
13796         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13797         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'
13798         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13799       else
13800         allow_undefined_flag_F77=' -expect_unresolved \*'
13801         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'
13802         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~
13803         $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'
13804
13805         # Both c and cxx compiler support -rpath directly
13806         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13807       fi
13808       hardcode_libdir_separator_F77=:
13809       ;;
13810
13811     sco3.2v5*)
13812       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13813       hardcode_shlibpath_var_F77=no
13814       export_dynamic_flag_spec_F77='${wl}-Bexport'
13815       runpath_var=LD_RUN_PATH
13816       hardcode_runpath_var=yes
13817       ;;
13818
13819     solaris*)
13820       no_undefined_flag_F77=' -z text'
13821       if test "$GCC" = yes; then
13822         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13823         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13824           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13825       else
13826         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13827         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13828         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13829       fi
13830       hardcode_libdir_flag_spec_F77='-R$libdir'
13831       hardcode_shlibpath_var_F77=no
13832       case $host_os in
13833       solaris2.[0-5] | solaris2.[0-5].*) ;;
13834       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13835         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13836       esac
13837       link_all_deplibs_F77=yes
13838       ;;
13839
13840     sunos4*)
13841       if test "x$host_vendor" = xsequent; then
13842         # Use $CC to link under sequent, because it throws in some extra .o
13843         # files that make .init and .fini sections work.
13844         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13845       else
13846         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13847       fi
13848       hardcode_libdir_flag_spec_F77='-L$libdir'
13849       hardcode_direct_F77=yes
13850       hardcode_minus_L_F77=yes
13851       hardcode_shlibpath_var_F77=no
13852       ;;
13853
13854     sysv4)
13855       case $host_vendor in
13856         sni)
13857           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13858           hardcode_direct_F77=yes # is this really true???
13859         ;;
13860         siemens)
13861           ## LD is ld it makes a PLAMLIB
13862           ## CC just makes a GrossModule.
13863           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13864           reload_cmds_F77='$CC -r -o $output$reload_objs'
13865           hardcode_direct_F77=no
13866         ;;
13867         motorola)
13868           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13869           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13870         ;;
13871       esac
13872       runpath_var='LD_RUN_PATH'
13873       hardcode_shlibpath_var_F77=no
13874       ;;
13875
13876     sysv4.3*)
13877       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13878       hardcode_shlibpath_var_F77=no
13879       export_dynamic_flag_spec_F77='-Bexport'
13880       ;;
13881
13882     sysv4*MP*)
13883       if test -d /usr/nec; then
13884         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13885         hardcode_shlibpath_var_F77=no
13886         runpath_var=LD_RUN_PATH
13887         hardcode_runpath_var=yes
13888         ld_shlibs_F77=yes
13889       fi
13890       ;;
13891
13892     sysv4.2uw2*)
13893       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13894       hardcode_direct_F77=yes
13895       hardcode_minus_L_F77=no
13896       hardcode_shlibpath_var_F77=no
13897       hardcode_runpath_var=yes
13898       runpath_var=LD_RUN_PATH
13899       ;;
13900
13901    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13902       no_undefined_flag_F77='${wl}-z ${wl}text'
13903       if test "$GCC" = yes; then
13904         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13905       else
13906         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13907       fi
13908       runpath_var='LD_RUN_PATH'
13909       hardcode_shlibpath_var_F77=no
13910       ;;
13911
13912     sysv5*)
13913       no_undefined_flag_F77=' -z text'
13914       # $CC -shared without GNU ld will not create a library from C++
13915       # object files and a static libstdc++, better avoid it by now
13916       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13917       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13918                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13919       hardcode_libdir_flag_spec_F77=
13920       hardcode_shlibpath_var_F77=no
13921       runpath_var='LD_RUN_PATH'
13922       ;;
13923
13924     uts4*)
13925       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13926       hardcode_libdir_flag_spec_F77='-L$libdir'
13927       hardcode_shlibpath_var_F77=no
13928       ;;
13929
13930     *)
13931       ld_shlibs_F77=no
13932       ;;
13933     esac
13934   fi
13935
13936 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13937 echo "${ECHO_T}$ld_shlibs_F77" >&6
13938 test "$ld_shlibs_F77" = no && can_build_shared=no
13939
13940 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13941 if test "$GCC" = yes; then
13942   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13943 fi
13944
13945 #
13946 # Do we need to explicitly link libc?
13947 #
13948 case "x$archive_cmds_need_lc_F77" in
13949 x|xyes)
13950   # Assume -lc should be added
13951   archive_cmds_need_lc_F77=yes
13952
13953   if test "$enable_shared" = yes && test "$GCC" = yes; then
13954     case $archive_cmds_F77 in
13955     *'~'*)
13956       # FIXME: we may have to deal with multi-command sequences.
13957       ;;
13958     '$CC '*)
13959       # Test whether the compiler implicitly links with -lc since on some
13960       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13961       # to ld, don't add -lc before -lgcc.
13962       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13963 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13964       $rm conftest*
13965       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13966
13967       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13968   (eval $ac_compile) 2>&5
13969   ac_status=$?
13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); } 2>conftest.err; then
13972         soname=conftest
13973         lib=conftest
13974         libobjs=conftest.$ac_objext
13975         deplibs=
13976         wl=$lt_prog_compiler_wl_F77
13977         compiler_flags=-v
13978         linker_flags=-v
13979         verstring=
13980         output_objdir=.
13981         libname=conftest
13982         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13983         allow_undefined_flag_F77=
13984         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13985   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13986   ac_status=$?
13987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988   (exit $ac_status); }
13989         then
13990           archive_cmds_need_lc_F77=no
13991         else
13992           archive_cmds_need_lc_F77=yes
13993         fi
13994         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13995       else
13996         cat conftest.err 1>&5
13997       fi
13998       $rm conftest*
13999       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14000 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14001       ;;
14002     esac
14003   fi
14004   ;;
14005 esac
14006
14007 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14008 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14009 hardcode_action_F77=
14010 if test -n "$hardcode_libdir_flag_spec_F77" || \
14011    test -n "$runpath_var F77" || \
14012    test "X$hardcode_automatic_F77"="Xyes" ; then
14013
14014   # We can hardcode non-existant directories.
14015   if test "$hardcode_direct_F77" != no &&
14016      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14017      # have to relink, otherwise we might link with an installed library
14018      # when we should be linking with a yet-to-be-installed one
14019      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14020      test "$hardcode_minus_L_F77" != no; then
14021     # Linking always hardcodes the temporary library directory.
14022     hardcode_action_F77=relink
14023   else
14024     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14025     hardcode_action_F77=immediate
14026   fi
14027 else
14028   # We cannot hardcode anything, or else we can only hardcode existing
14029   # directories.
14030   hardcode_action_F77=unsupported
14031 fi
14032 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14033 echo "${ECHO_T}$hardcode_action_F77" >&6
14034
14035 if test "$hardcode_action_F77" = relink; then
14036   # Fast installation is not supported
14037   enable_fast_install=no
14038 elif test "$shlibpath_overrides_runpath" = yes ||
14039      test "$enable_shared" = no; then
14040   # Fast installation is not necessary
14041   enable_fast_install=needless
14042 fi
14043
14044 striplib=
14045 old_striplib=
14046 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14047 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14048 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14049   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14050   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14051   echo "$as_me:$LINENO: result: yes" >&5
14052 echo "${ECHO_T}yes" >&6
14053 else
14054 # FIXME - insert some real tests, host_os isn't really good enough
14055   case $host_os in
14056    darwin*)
14057        if test -n "$STRIP" ; then
14058          striplib="$STRIP -x"
14059          echo "$as_me:$LINENO: result: yes" >&5
14060 echo "${ECHO_T}yes" >&6
14061        else
14062   echo "$as_me:$LINENO: result: no" >&5
14063 echo "${ECHO_T}no" >&6
14064 fi
14065        ;;
14066    *)
14067   echo "$as_me:$LINENO: result: no" >&5
14068 echo "${ECHO_T}no" >&6
14069     ;;
14070   esac
14071 fi
14072
14073 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14074 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14075 library_names_spec=
14076 libname_spec='lib$name'
14077 soname_spec=
14078 shrext=".so"
14079 postinstall_cmds=
14080 postuninstall_cmds=
14081 finish_cmds=
14082 finish_eval=
14083 shlibpath_var=
14084 shlibpath_overrides_runpath=unknown
14085 version_type=none
14086 dynamic_linker="$host_os ld.so"
14087 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14088 if test "$GCC" = yes; then
14089   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14090   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14091     # if the path contains ";" then we assume it to be the separator
14092     # otherwise default to the standard path separator (i.e. ":") - it is
14093     # assumed that no part of a normal pathname contains ";" but that should
14094     # okay in the real world where ";" in dirpaths is itself problematic.
14095     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14096   else
14097     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14098   fi
14099 else
14100   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14101 fi
14102 need_lib_prefix=unknown
14103 hardcode_into_libs=no
14104
14105 # when you set need_version to no, make sure it does not cause -set_version
14106 # flags to be left without arguments
14107 need_version=unknown
14108
14109 case $host_os in
14110 aix3*)
14111   version_type=linux
14112   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14113   shlibpath_var=LIBPATH
14114
14115   # AIX 3 has no versioning support, so we append a major version to the name.
14116   soname_spec='${libname}${release}${shared_ext}$major'
14117   ;;
14118
14119 aix4* | aix5*)
14120   version_type=linux
14121   need_lib_prefix=no
14122   need_version=no
14123   hardcode_into_libs=yes
14124   if test "$host_cpu" = ia64; then
14125     # AIX 5 supports IA64
14126     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14127     shlibpath_var=LD_LIBRARY_PATH
14128   else
14129     # With GCC up to 2.95.x, collect2 would create an import file
14130     # for dependence libraries.  The import file would start with
14131     # the line `#! .'.  This would cause the generated library to
14132     # depend on `.', always an invalid library.  This was fixed in
14133     # development snapshots of GCC prior to 3.0.
14134     case $host_os in
14135       aix4 | aix4.[01] | aix4.[01].*)
14136       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14137            echo ' yes '
14138            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14139         :
14140       else
14141         can_build_shared=no
14142       fi
14143       ;;
14144     esac
14145     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14146     # soname into executable. Probably we can add versioning support to
14147     # collect2, so additional links can be useful in future.
14148     if test "$aix_use_runtimelinking" = yes; then
14149       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14150       # instead of lib<name>.a to let people know that these are not
14151       # typical AIX shared libraries.
14152       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14153     else
14154       # We preserve .a as extension for shared libraries through AIX4.2
14155       # and later when we are not doing run time linking.
14156       library_names_spec='${libname}${release}.a $libname.a'
14157       soname_spec='${libname}${release}${shared_ext}$major'
14158     fi
14159     shlibpath_var=LIBPATH
14160   fi
14161   ;;
14162
14163 amigaos*)
14164   library_names_spec='$libname.ixlibrary $libname.a'
14165   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14166   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'
14167   ;;
14168
14169 beos*)
14170   library_names_spec='${libname}${shared_ext}'
14171   dynamic_linker="$host_os ld.so"
14172   shlibpath_var=LIBRARY_PATH
14173   ;;
14174
14175 bsdi4*)
14176   version_type=linux
14177   need_version=no
14178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14179   soname_spec='${libname}${release}${shared_ext}$major'
14180   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14181   shlibpath_var=LD_LIBRARY_PATH
14182   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14183   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14184   # the default ld.so.conf also contains /usr/contrib/lib and
14185   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14186   # libtool to hard-code these into programs
14187   ;;
14188
14189 cygwin* | mingw* | pw32*)
14190   version_type=windows
14191   shrext=".dll"
14192   need_version=no
14193   need_lib_prefix=no
14194
14195   case $GCC,$host_os in
14196   yes,cygwin* | yes,mingw* | yes,pw32*)
14197     library_names_spec='$libname.dll.a'
14198     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14199     postinstall_cmds='base_file=`basename \${file}`~
14200       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14201       dldir=$destdir/`dirname \$dlpath`~
14202       test -d \$dldir || mkdir -p \$dldir~
14203       $install_prog $dir/$dlname \$dldir/$dlname'
14204     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14205       dlpath=$dir/\$dldll~
14206        $rm \$dlpath'
14207     shlibpath_overrides_runpath=yes
14208
14209     case $host_os in
14210     cygwin*)
14211       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14212       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14213       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14214       ;;
14215     mingw*)
14216       # MinGW DLLs use traditional 'lib' prefix
14217       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14218       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14219       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14220         # It is most probably a Windows format PATH printed by
14221         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14222         # path with ; separators, and with drive letters. We can handle the
14223         # drive letters (cygwin fileutils understands them), so leave them,
14224         # especially as we might pass files found there to a mingw objdump,
14225         # which wouldn't understand a cygwinified path. Ahh.
14226         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14227       else
14228         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14229       fi
14230       ;;
14231     pw32*)
14232       # pw32 DLLs use 'pw' prefix rather than 'lib'
14233       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14234       ;;
14235     esac
14236     ;;
14237
14238   *)
14239     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14240     ;;
14241   esac
14242   dynamic_linker='Win32 ld.exe'
14243   # FIXME: first we should search . and the directory the executable is in
14244   shlibpath_var=PATH
14245   ;;
14246
14247 darwin* | rhapsody*)
14248   dynamic_linker="$host_os dyld"
14249   version_type=darwin
14250   need_lib_prefix=no
14251   need_version=no
14252   # FIXME: Relying on posixy $() will cause problems for
14253   #        cross-compilation, but unfortunately the echo tests do not
14254   #        yet detect zsh echo's removal of \ escapes.
14255   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14256   soname_spec='${libname}${release}${major}$shared_ext'
14257   shlibpath_overrides_runpath=yes
14258   shlibpath_var=DYLD_LIBRARY_PATH
14259   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14260   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14261   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14262   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"`
14263   fi
14264   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14265   ;;
14266
14267 dgux*)
14268   version_type=linux
14269   need_lib_prefix=no
14270   need_version=no
14271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14272   soname_spec='${libname}${release}${shared_ext}$major'
14273   shlibpath_var=LD_LIBRARY_PATH
14274   ;;
14275
14276 freebsd1*)
14277   dynamic_linker=no
14278   ;;
14279
14280 freebsd*)
14281   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14282   version_type=freebsd-$objformat
14283   case $version_type in
14284     freebsd-elf*)
14285       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14286       need_version=no
14287       need_lib_prefix=no
14288       ;;
14289     freebsd-*)
14290       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14291       need_version=yes
14292       ;;
14293   esac
14294   shlibpath_var=LD_LIBRARY_PATH
14295   case $host_os in
14296   freebsd2*)
14297     shlibpath_overrides_runpath=yes
14298     ;;
14299   freebsd3.01* | freebsdelf3.01*)
14300     shlibpath_overrides_runpath=yes
14301     hardcode_into_libs=yes
14302     ;;
14303   *) # from 3.2 on
14304     shlibpath_overrides_runpath=no
14305     hardcode_into_libs=yes
14306     ;;
14307   esac
14308   ;;
14309
14310 gnu*)
14311   version_type=linux
14312   need_lib_prefix=no
14313   need_version=no
14314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14315   soname_spec='${libname}${release}${shared_ext}$major'
14316   shlibpath_var=LD_LIBRARY_PATH
14317   hardcode_into_libs=yes
14318   ;;
14319
14320 hpux9* | hpux10* | hpux11*)
14321   # Give a soname corresponding to the major version so that dld.sl refuses to
14322   # link against other versions.
14323   version_type=sunos
14324   need_lib_prefix=no
14325   need_version=no
14326   case "$host_cpu" in
14327   ia64*)
14328     shrext='.so'
14329     hardcode_into_libs=yes
14330     dynamic_linker="$host_os dld.so"
14331     shlibpath_var=LD_LIBRARY_PATH
14332     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14333     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14334     soname_spec='${libname}${release}${shared_ext}$major'
14335     if test "X$HPUX_IA64_MODE" = X32; then
14336       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14337     else
14338       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14339     fi
14340     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14341     ;;
14342    hppa*64*)
14343      shrext='.sl'
14344      hardcode_into_libs=yes
14345      dynamic_linker="$host_os dld.sl"
14346      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14347      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14348      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14349      soname_spec='${libname}${release}${shared_ext}$major'
14350      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14351      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14352      ;;
14353    *)
14354     shrext='.sl'
14355     dynamic_linker="$host_os dld.sl"
14356     shlibpath_var=SHLIB_PATH
14357     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14358     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14359     soname_spec='${libname}${release}${shared_ext}$major'
14360     ;;
14361   esac
14362   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14363   postinstall_cmds='chmod 555 $lib'
14364   ;;
14365
14366 irix5* | irix6* | nonstopux*)
14367   case $host_os in
14368     nonstopux*) version_type=nonstopux ;;
14369     *)
14370         if test "$lt_cv_prog_gnu_ld" = yes; then
14371                 version_type=linux
14372         else
14373                 version_type=irix
14374         fi ;;
14375   esac
14376   need_lib_prefix=no
14377   need_version=no
14378   soname_spec='${libname}${release}${shared_ext}$major'
14379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14380   case $host_os in
14381   irix5* | nonstopux*)
14382     libsuff= shlibsuff=
14383     ;;
14384   *)
14385     case $LD in # libtool.m4 will add one of these switches to LD
14386     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14387       libsuff= shlibsuff= libmagic=32-bit;;
14388     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14389       libsuff=32 shlibsuff=N32 libmagic=N32;;
14390     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14391       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14392     *) libsuff= shlibsuff= libmagic=never-match;;
14393     esac
14394     ;;
14395   esac
14396   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14397   shlibpath_overrides_runpath=no
14398   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14399   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14400   hardcode_into_libs=yes
14401   ;;
14402
14403 # No shared lib support for Linux oldld, aout, or coff.
14404 linux*oldld* | linux*aout* | linux*coff*)
14405   dynamic_linker=no
14406   ;;
14407
14408 # This must be Linux ELF.
14409 linux*)
14410   version_type=linux
14411   need_lib_prefix=no
14412   need_version=no
14413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14414   soname_spec='${libname}${release}${shared_ext}$major'
14415   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14416   shlibpath_var=LD_LIBRARY_PATH
14417   shlibpath_overrides_runpath=no
14418   # This implies no fast_install, which is unacceptable.
14419   # Some rework will be needed to allow for fast_install
14420   # before this can be enabled.
14421   hardcode_into_libs=yes
14422
14423   # We used to test for /lib/ld.so.1 and disable shared libraries on
14424   # powerpc, because MkLinux only supported shared libraries with the
14425   # GNU dynamic linker.  Since this was broken with cross compilers,
14426   # most powerpc-linux boxes support dynamic linking these days and
14427   # people can always --disable-shared, the test was removed, and we
14428   # assume the GNU/Linux dynamic linker is in use.
14429   dynamic_linker='GNU/Linux ld.so'
14430   ;;
14431
14432 netbsd*)
14433   version_type=sunos
14434   need_lib_prefix=no
14435   need_version=no
14436   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14437     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14438     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14439     dynamic_linker='NetBSD (a.out) ld.so'
14440   else
14441     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14442     soname_spec='${libname}${release}${shared_ext}$major'
14443     dynamic_linker='NetBSD ld.elf_so'
14444   fi
14445   shlibpath_var=LD_LIBRARY_PATH
14446   shlibpath_overrides_runpath=yes
14447   hardcode_into_libs=yes
14448   ;;
14449
14450 newsos6)
14451   version_type=linux
14452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14453   shlibpath_var=LD_LIBRARY_PATH
14454   shlibpath_overrides_runpath=yes
14455   ;;
14456
14457 nto-qnx)
14458   version_type=linux
14459   need_lib_prefix=no
14460   need_version=no
14461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14462   soname_spec='${libname}${release}${shared_ext}$major'
14463   shlibpath_var=LD_LIBRARY_PATH
14464   shlibpath_overrides_runpath=yes
14465   ;;
14466
14467 openbsd*)
14468   version_type=sunos
14469   need_lib_prefix=no
14470   need_version=no
14471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14472   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14473   shlibpath_var=LD_LIBRARY_PATH
14474   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14475     case $host_os in
14476       openbsd2.[89] | openbsd2.[89].*)
14477         shlibpath_overrides_runpath=no
14478         ;;
14479       *)
14480         shlibpath_overrides_runpath=yes
14481         ;;
14482       esac
14483   else
14484     shlibpath_overrides_runpath=yes
14485   fi
14486   ;;
14487
14488 os2*)
14489   libname_spec='$name'
14490   shrext=".dll"
14491   need_lib_prefix=no
14492   library_names_spec='$libname${shared_ext} $libname.a'
14493   dynamic_linker='OS/2 ld.exe'
14494   shlibpath_var=LIBPATH
14495   ;;
14496
14497 osf3* | osf4* | osf5*)
14498   version_type=osf
14499   need_lib_prefix=no
14500   need_version=no
14501   soname_spec='${libname}${release}${shared_ext}$major'
14502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14503   shlibpath_var=LD_LIBRARY_PATH
14504   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14505   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14506   ;;
14507
14508 sco3.2v5*)
14509   version_type=osf
14510   soname_spec='${libname}${release}${shared_ext}$major'
14511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14512   shlibpath_var=LD_LIBRARY_PATH
14513   ;;
14514
14515 solaris*)
14516   version_type=linux
14517   need_lib_prefix=no
14518   need_version=no
14519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14520   soname_spec='${libname}${release}${shared_ext}$major'
14521   shlibpath_var=LD_LIBRARY_PATH
14522   shlibpath_overrides_runpath=yes
14523   hardcode_into_libs=yes
14524   # ldd complains unless libraries are executable
14525   postinstall_cmds='chmod +x $lib'
14526   ;;
14527
14528 sunos4*)
14529   version_type=sunos
14530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14531   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14532   shlibpath_var=LD_LIBRARY_PATH
14533   shlibpath_overrides_runpath=yes
14534   if test "$with_gnu_ld" = yes; then
14535     need_lib_prefix=no
14536   fi
14537   need_version=yes
14538   ;;
14539
14540 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14541   version_type=linux
14542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14543   soname_spec='${libname}${release}${shared_ext}$major'
14544   shlibpath_var=LD_LIBRARY_PATH
14545   case $host_vendor in
14546     sni)
14547       shlibpath_overrides_runpath=no
14548       need_lib_prefix=no
14549       export_dynamic_flag_spec='${wl}-Blargedynsym'
14550       runpath_var=LD_RUN_PATH
14551       ;;
14552     siemens)
14553       need_lib_prefix=no
14554       ;;
14555     motorola)
14556       need_lib_prefix=no
14557       need_version=no
14558       shlibpath_overrides_runpath=no
14559       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14560       ;;
14561   esac
14562   ;;
14563
14564 sysv4*MP*)
14565   if test -d /usr/nec ;then
14566     version_type=linux
14567     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14568     soname_spec='$libname${shared_ext}.$major'
14569     shlibpath_var=LD_LIBRARY_PATH
14570   fi
14571   ;;
14572
14573 uts4*)
14574   version_type=linux
14575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14576   soname_spec='${libname}${release}${shared_ext}$major'
14577   shlibpath_var=LD_LIBRARY_PATH
14578   ;;
14579
14580 *)
14581   dynamic_linker=no
14582   ;;
14583 esac
14584 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14585 echo "${ECHO_T}$dynamic_linker" >&6
14586 test "$dynamic_linker" = no && can_build_shared=no
14587
14588
14589 # The else clause should only fire when bootstrapping the
14590 # libtool distribution, otherwise you forgot to ship ltmain.sh
14591 # with your package, and you will get complaints that there are
14592 # no rules to generate ltmain.sh.
14593 if test -f "$ltmain"; then
14594   # See if we are running on zsh, and set the options which allow our commands through
14595   # without removal of \ escapes.
14596   if test -n "${ZSH_VERSION+set}" ; then
14597     setopt NO_GLOB_SUBST
14598   fi
14599   # Now quote all the things that may contain metacharacters while being
14600   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14601   # variables and quote the copies for generation of the libtool script.
14602   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14603     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14604     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14605     deplibs_check_method reload_flag reload_cmds need_locks \
14606     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14607     lt_cv_sys_global_symbol_to_c_name_address \
14608     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14609     old_postinstall_cmds old_postuninstall_cmds \
14610     compiler_F77 \
14611     CC_F77 \
14612     LD_F77 \
14613     lt_prog_compiler_wl_F77 \
14614     lt_prog_compiler_pic_F77 \
14615     lt_prog_compiler_static_F77 \
14616     lt_prog_compiler_no_builtin_flag_F77 \
14617     export_dynamic_flag_spec_F77 \
14618     thread_safe_flag_spec_F77 \
14619     whole_archive_flag_spec_F77 \
14620     enable_shared_with_static_runtimes_F77 \
14621     old_archive_cmds_F77 \
14622     old_archive_from_new_cmds_F77 \
14623     predep_objects_F77 \
14624     postdep_objects_F77 \
14625     predeps_F77 \
14626     postdeps_F77 \
14627     compiler_lib_search_path_F77 \
14628     archive_cmds_F77 \
14629     archive_expsym_cmds_F77 \
14630     postinstall_cmds_F77 \
14631     postuninstall_cmds_F77 \
14632     old_archive_from_expsyms_cmds_F77 \
14633     allow_undefined_flag_F77 \
14634     no_undefined_flag_F77 \
14635     export_symbols_cmds_F77 \
14636     hardcode_libdir_flag_spec_F77 \
14637     hardcode_libdir_flag_spec_ld_F77 \
14638     hardcode_libdir_separator_F77 \
14639     hardcode_automatic_F77 \
14640     module_cmds_F77 \
14641     module_expsym_cmds_F77 \
14642     lt_cv_prog_compiler_c_o_F77 \
14643     exclude_expsyms_F77 \
14644     include_expsyms_F77; do
14645
14646     case $var in
14647     old_archive_cmds_F77 | \
14648     old_archive_from_new_cmds_F77 | \
14649     archive_cmds_F77 | \
14650     archive_expsym_cmds_F77 | \
14651     module_cmds_F77 | \
14652     module_expsym_cmds_F77 | \
14653     old_archive_from_expsyms_cmds_F77 | \
14654     export_symbols_cmds_F77 | \
14655     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14656     postinstall_cmds | postuninstall_cmds | \
14657     old_postinstall_cmds | old_postuninstall_cmds | \
14658     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14659       # Double-quote double-evaled strings.
14660       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14661       ;;
14662     *)
14663       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14664       ;;
14665     esac
14666   done
14667
14668   case $lt_echo in
14669   *'\$0 --fallback-echo"')
14670     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14671     ;;
14672   esac
14673
14674 cfgfile="$ofile"
14675
14676   cat <<__EOF__ >> "$cfgfile"
14677 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14678
14679 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14680
14681 # Shell to use when invoking shell scripts.
14682 SHELL=$lt_SHELL
14683
14684 # Whether or not to build shared libraries.
14685 build_libtool_libs=$enable_shared
14686
14687 # Whether or not to build static libraries.
14688 build_old_libs=$enable_static
14689
14690 # Whether or not to add -lc for building shared libraries.
14691 build_libtool_need_lc=$archive_cmds_need_lc_F77
14692
14693 # Whether or not to disallow shared libs when runtime libs are static
14694 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14695
14696 # Whether or not to optimize for fast installation.
14697 fast_install=$enable_fast_install
14698
14699 # The host system.
14700 host_alias=$host_alias
14701 host=$host
14702
14703 # An echo program that does not interpret backslashes.
14704 echo=$lt_echo
14705
14706 # The archiver.
14707 AR=$lt_AR
14708 AR_FLAGS=$lt_AR_FLAGS
14709
14710 # A C compiler.
14711 LTCC=$lt_LTCC
14712
14713 # A language-specific compiler.
14714 CC=$lt_compiler_F77
14715
14716 # Is the compiler the GNU C compiler?
14717 with_gcc=$GCC_F77
14718
14719 # An ERE matcher.
14720 EGREP=$lt_EGREP
14721
14722 # The linker used to build libraries.
14723 LD=$lt_LD_F77
14724
14725 # Whether we need hard or soft links.
14726 LN_S=$lt_LN_S
14727
14728 # A BSD-compatible nm program.
14729 NM=$lt_NM
14730
14731 # A symbol stripping program
14732 STRIP=$STRIP
14733
14734 # Used to examine libraries when file_magic_cmd begins "file"
14735 MAGIC_CMD=$MAGIC_CMD
14736
14737 # Used on cygwin: DLL creation program.
14738 DLLTOOL="$DLLTOOL"
14739
14740 # Used on cygwin: object dumper.
14741 OBJDUMP="$OBJDUMP"
14742
14743 # Used on cygwin: assembler.
14744 AS="$AS"
14745
14746 # The name of the directory that contains temporary libtool files.
14747 objdir=$objdir
14748
14749 # How to create reloadable object files.
14750 reload_flag=$lt_reload_flag
14751 reload_cmds=$lt_reload_cmds
14752
14753 # How to pass a linker flag through the compiler.
14754 wl=$lt_lt_prog_compiler_wl_F77
14755
14756 # Object file suffix (normally "o").
14757 objext="$ac_objext"
14758
14759 # Old archive suffix (normally "a").
14760 libext="$libext"
14761
14762 # Shared library suffix (normally ".so").
14763 shrext='$shrext'
14764
14765 # Executable file suffix (normally "").
14766 exeext="$exeext"
14767
14768 # Additional compiler flags for building library objects.
14769 pic_flag=$lt_lt_prog_compiler_pic_F77
14770 pic_mode=$pic_mode
14771
14772 # What is the maximum length of a command?
14773 max_cmd_len=$lt_cv_sys_max_cmd_len
14774
14775 # Does compiler simultaneously support -c and -o options?
14776 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14777
14778 # Must we lock files when doing compilation ?
14779 need_locks=$lt_need_locks
14780
14781 # Do we need the lib prefix for modules?
14782 need_lib_prefix=$need_lib_prefix
14783
14784 # Do we need a version for libraries?
14785 need_version=$need_version
14786
14787 # Whether dlopen is supported.
14788 dlopen_support=$enable_dlopen
14789
14790 # Whether dlopen of programs is supported.
14791 dlopen_self=$enable_dlopen_self
14792
14793 # Whether dlopen of statically linked programs is supported.
14794 dlopen_self_static=$enable_dlopen_self_static
14795
14796 # Compiler flag to prevent dynamic linking.
14797 link_static_flag=$lt_lt_prog_compiler_static_F77
14798
14799 # Compiler flag to turn off builtin functions.
14800 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14801
14802 # Compiler flag to allow reflexive dlopens.
14803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14804
14805 # Compiler flag to generate shared objects directly from archives.
14806 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14807
14808 # Compiler flag to generate thread-safe objects.
14809 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14810
14811 # Library versioning type.
14812 version_type=$version_type
14813
14814 # Format of library name prefix.
14815 libname_spec=$lt_libname_spec
14816
14817 # List of archive names.  First name is the real one, the rest are links.
14818 # The last name is the one that the linker finds with -lNAME.
14819 library_names_spec=$lt_library_names_spec
14820
14821 # The coded name of the library, if different from the real name.
14822 soname_spec=$lt_soname_spec
14823
14824 # Commands used to build and install an old-style archive.
14825 RANLIB=$lt_RANLIB
14826 old_archive_cmds=$lt_old_archive_cmds_F77
14827 old_postinstall_cmds=$lt_old_postinstall_cmds
14828 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14829
14830 # Create an old-style archive from a shared archive.
14831 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14832
14833 # Create a temporary old-style archive to link instead of a shared archive.
14834 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14835
14836 # Commands used to build and install a shared archive.
14837 archive_cmds=$lt_archive_cmds_F77
14838 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14839 postinstall_cmds=$lt_postinstall_cmds
14840 postuninstall_cmds=$lt_postuninstall_cmds
14841
14842 # Commands used to build a loadable module (assumed same as above if empty)
14843 module_cmds=$lt_module_cmds_F77
14844 module_expsym_cmds=$lt_module_expsym_cmds_F77
14845
14846 # Commands to strip libraries.
14847 old_striplib=$lt_old_striplib
14848 striplib=$lt_striplib
14849
14850 # Dependencies to place before the objects being linked to create a
14851 # shared library.
14852 predep_objects=$lt_predep_objects_F77
14853
14854 # Dependencies to place after the objects being linked to create a
14855 # shared library.
14856 postdep_objects=$lt_postdep_objects_F77
14857
14858 # Dependencies to place before the objects being linked to create a
14859 # shared library.
14860 predeps=$lt_predeps_F77
14861
14862 # Dependencies to place after the objects being linked to create a
14863 # shared library.
14864 postdeps=$lt_postdeps_F77
14865
14866 # The library search path used internally by the compiler when linking
14867 # a shared library.
14868 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14869
14870 # Method to check whether dependent libraries are shared objects.
14871 deplibs_check_method=$lt_deplibs_check_method
14872
14873 # Command to use when deplibs_check_method == file_magic.
14874 file_magic_cmd=$lt_file_magic_cmd
14875
14876 # Flag that allows shared libraries with undefined symbols to be built.
14877 allow_undefined_flag=$lt_allow_undefined_flag_F77
14878
14879 # Flag that forces no undefined symbols.
14880 no_undefined_flag=$lt_no_undefined_flag_F77
14881
14882 # Commands used to finish a libtool library installation in a directory.
14883 finish_cmds=$lt_finish_cmds
14884
14885 # Same as above, but a single script fragment to be evaled but not shown.
14886 finish_eval=$lt_finish_eval
14887
14888 # Take the output of nm and produce a listing of raw symbols and C names.
14889 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14890
14891 # Transform the output of nm in a proper C declaration
14892 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14893
14894 # Transform the output of nm in a C name address pair
14895 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14896
14897 # This is the shared library runtime path variable.
14898 runpath_var=$runpath_var
14899
14900 # This is the shared library path variable.
14901 shlibpath_var=$shlibpath_var
14902
14903 # Is shlibpath searched before the hard-coded library search path?
14904 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14905
14906 # How to hardcode a shared library path into an executable.
14907 hardcode_action=$hardcode_action_F77
14908
14909 # Whether we should hardcode library paths into libraries.
14910 hardcode_into_libs=$hardcode_into_libs
14911
14912 # Flag to hardcode \$libdir into a binary during linking.
14913 # This must work even if \$libdir does not exist.
14914 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14915
14916 # If ld is used when linking, flag to hardcode \$libdir into
14917 # a binary during linking. This must work even if \$libdir does
14918 # not exist.
14919 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14920
14921 # Whether we need a single -rpath flag with a separated argument.
14922 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14923
14924 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14925 # resulting binary.
14926 hardcode_direct=$hardcode_direct_F77
14927
14928 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14929 # resulting binary.
14930 hardcode_minus_L=$hardcode_minus_L_F77
14931
14932 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14933 # the resulting binary.
14934 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14935
14936 # Set to yes if building a shared library automatically hardcodes DIR into the library
14937 # and all subsequent libraries and executables linked against it.
14938 hardcode_automatic=$hardcode_automatic_F77
14939
14940 # Variables whose values should be saved in libtool wrapper scripts and
14941 # restored at relink time.
14942 variables_saved_for_relink="$variables_saved_for_relink"
14943
14944 # Whether libtool must link a program against all its dependency libraries.
14945 link_all_deplibs=$link_all_deplibs_F77
14946
14947 # Compile-time system search path for libraries
14948 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14949
14950 # Run-time system search path for libraries
14951 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14952
14953 # Fix the shell variable \$srcfile for the compiler.
14954 fix_srcfile_path="$fix_srcfile_path_F77"
14955
14956 # Set to yes if exported symbols are required.
14957 always_export_symbols=$always_export_symbols_F77
14958
14959 # The commands to list exported symbols.
14960 export_symbols_cmds=$lt_export_symbols_cmds_F77
14961
14962 # The commands to extract the exported symbol list from a shared archive.
14963 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14964
14965 # Symbols that should not be listed in the preloaded symbols.
14966 exclude_expsyms=$lt_exclude_expsyms_F77
14967
14968 # Symbols that must always be exported.
14969 include_expsyms=$lt_include_expsyms_F77
14970
14971 # ### END LIBTOOL TAG CONFIG: $tagname
14972
14973 __EOF__
14974
14975
14976 else
14977   # If there is no Makefile yet, we rely on a make rule to execute
14978   # `config.status --recheck' to rerun these tests and create the
14979   # libtool script then.
14980   test -f Makefile && make "$ltmain"
14981 fi
14982
14983
14984 ac_ext=c
14985 ac_cpp='$CPP $CPPFLAGS'
14986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14989
14990 CC="$lt_save_CC"
14991
14992         else
14993           tagname=""
14994         fi
14995         ;;
14996
14997       GCJ)
14998         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14999
15000
15001
15002 # Source file extension for Java test sources.
15003 ac_ext=java
15004
15005 # Object file extension for compiled Java test sources.
15006 objext=o
15007 objext_GCJ=$objext
15008
15009 # Code to be used in simple compile tests
15010 lt_simple_compile_test_code="class foo {}\n"
15011
15012 # Code to be used in simple link tests
15013 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15014
15015 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15016
15017 # If no C compiler was specified, use CC.
15018 LTCC=${LTCC-"$CC"}
15019
15020 # Allow CC to be a program name with arguments.
15021 compiler=$CC
15022
15023
15024 # Allow CC to be a program name with arguments.
15025 lt_save_CC="$CC"
15026 CC=${GCJ-"gcj"}
15027 compiler=$CC
15028 compiler_GCJ=$CC
15029
15030 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15031 archive_cmds_need_lc_GCJ=no
15032
15033 ## CAVEAT EMPTOR:
15034 ## There is no encapsulation within the following macros, do not change
15035 ## the running order or otherwise move them around unless you know exactly
15036 ## what you are doing...
15037
15038 lt_prog_compiler_no_builtin_flag_GCJ=
15039
15040 if test "$GCC" = yes; then
15041   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15042
15043   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15044 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15045 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15046   echo $ECHO_N "(cached) $ECHO_C" >&6
15047 else
15048   lt_cv_prog_compiler_rtti_exceptions=no
15049   ac_outfile=conftest.$ac_objext
15050    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15051    lt_compiler_flag="-fno-rtti -fno-exceptions"
15052    # Insert the option either (1) after the last *FLAGS variable, or
15053    # (2) before a word containing "conftest.", or (3) at the end.
15054    # Note that $ac_compile itself does not contain backslashes and begins
15055    # with a dollar sign (not a hyphen), so the echo should work correctly.
15056    # The option is referenced via a variable to avoid confusing sed.
15057    lt_compile=`echo "$ac_compile" | $SED \
15058    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15059    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15060    -e 's:$: $lt_compiler_flag:'`
15061    (eval echo "\"\$as_me:15061: $lt_compile\"" >&5)
15062    (eval "$lt_compile" 2>conftest.err)
15063    ac_status=$?
15064    cat conftest.err >&5
15065    echo "$as_me:15065: \$? = $ac_status" >&5
15066    if (exit $ac_status) && test -s "$ac_outfile"; then
15067      # The compiler can only warn and ignore the option if not recognized
15068      # So say no if there are warnings
15069      if test ! -s conftest.err; then
15070        lt_cv_prog_compiler_rtti_exceptions=yes
15071      fi
15072    fi
15073    $rm conftest*
15074
15075 fi
15076 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15077 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15078
15079 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15080     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15081 else
15082     :
15083 fi
15084
15085 fi
15086
15087 lt_prog_compiler_wl_GCJ=
15088 lt_prog_compiler_pic_GCJ=
15089 lt_prog_compiler_static_GCJ=
15090
15091 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15092 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15093
15094   if test "$GCC" = yes; then
15095     lt_prog_compiler_wl_GCJ='-Wl,'
15096     lt_prog_compiler_static_GCJ='-static'
15097
15098     case $host_os in
15099       aix*)
15100       # All AIX code is PIC.
15101       if test "$host_cpu" = ia64; then
15102         # AIX 5 now supports IA64 processor
15103         lt_prog_compiler_static_GCJ='-Bstatic'
15104       fi
15105       ;;
15106
15107     amigaos*)
15108       # FIXME: we need at least 68020 code to build shared libraries, but
15109       # adding the `-m68020' flag to GCC prevents building anything better,
15110       # like `-m68040'.
15111       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15112       ;;
15113
15114     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15115       # PIC is the default for these OSes.
15116       ;;
15117
15118     mingw* | pw32* | os2*)
15119       # This hack is so that the source file can tell whether it is being
15120       # built for inclusion in a dll (and should export symbols for example).
15121       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15122       ;;
15123
15124     darwin* | rhapsody*)
15125       # PIC is the default on this platform
15126       # Common symbols not allowed in MH_DYLIB files
15127       lt_prog_compiler_pic_GCJ='-fno-common'
15128       ;;
15129
15130     msdosdjgpp*)
15131       # Just because we use GCC doesn't mean we suddenly get shared libraries
15132       # on systems that don't support them.
15133       lt_prog_compiler_can_build_shared_GCJ=no
15134       enable_shared=no
15135       ;;
15136
15137     sysv4*MP*)
15138       if test -d /usr/nec; then
15139         lt_prog_compiler_pic_GCJ=-Kconform_pic
15140       fi
15141       ;;
15142
15143     hpux*)
15144       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15145       # not for PA HP-UX.
15146       case "$host_cpu" in
15147       hppa*64*|ia64*)
15148         # +Z the default
15149         ;;
15150       *)
15151         lt_prog_compiler_pic_GCJ='-fPIC'
15152         ;;
15153       esac
15154       ;;
15155
15156     *)
15157       lt_prog_compiler_pic_GCJ='-fPIC'
15158       ;;
15159     esac
15160   else
15161     # PORTME Check for flag to pass linker flags through the system compiler.
15162     case $host_os in
15163     aix*)
15164       lt_prog_compiler_wl_GCJ='-Wl,'
15165       if test "$host_cpu" = ia64; then
15166         # AIX 5 now supports IA64 processor
15167         lt_prog_compiler_static_GCJ='-Bstatic'
15168       else
15169         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15170       fi
15171       ;;
15172
15173     mingw* | pw32* | os2*)
15174       # This hack is so that the source file can tell whether it is being
15175       # built for inclusion in a dll (and should export symbols for example).
15176       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15177       ;;
15178
15179     hpux9* | hpux10* | hpux11*)
15180       lt_prog_compiler_wl_GCJ='-Wl,'
15181       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15182       # not for PA HP-UX.
15183       case "$host_cpu" in
15184       hppa*64*|ia64*)
15185         # +Z the default
15186         ;;
15187       *)
15188         lt_prog_compiler_pic_GCJ='+Z'
15189         ;;
15190       esac
15191       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15192       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15193       ;;
15194
15195     irix5* | irix6* | nonstopux*)
15196       lt_prog_compiler_wl_GCJ='-Wl,'
15197       # PIC (with -KPIC) is the default.
15198       lt_prog_compiler_static_GCJ='-non_shared'
15199       ;;
15200
15201     newsos6)
15202       lt_prog_compiler_pic_GCJ='-KPIC'
15203       lt_prog_compiler_static_GCJ='-Bstatic'
15204       ;;
15205
15206     linux*)
15207       case $CC in
15208       icc|ecc)
15209         lt_prog_compiler_wl_GCJ='-Wl,'
15210         lt_prog_compiler_pic_GCJ='-KPIC'
15211         lt_prog_compiler_static_GCJ='-static'
15212         ;;
15213       ccc)
15214         lt_prog_compiler_wl_GCJ='-Wl,'
15215         # All Alpha code is PIC.
15216         lt_prog_compiler_static_GCJ='-non_shared'
15217         ;;
15218       esac
15219       ;;
15220
15221     osf3* | osf4* | osf5*)
15222       lt_prog_compiler_wl_GCJ='-Wl,'
15223       # All OSF/1 code is PIC.
15224       lt_prog_compiler_static_GCJ='-non_shared'
15225       ;;
15226
15227     sco3.2v5*)
15228       lt_prog_compiler_pic_GCJ='-Kpic'
15229       lt_prog_compiler_static_GCJ='-dn'
15230       ;;
15231
15232     solaris*)
15233       lt_prog_compiler_wl_GCJ='-Wl,'
15234       lt_prog_compiler_pic_GCJ='-KPIC'
15235       lt_prog_compiler_static_GCJ='-Bstatic'
15236       ;;
15237
15238     sunos4*)
15239       lt_prog_compiler_wl_GCJ='-Qoption ld '
15240       lt_prog_compiler_pic_GCJ='-PIC'
15241       lt_prog_compiler_static_GCJ='-Bstatic'
15242       ;;
15243
15244     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15245       lt_prog_compiler_wl_GCJ='-Wl,'
15246       lt_prog_compiler_pic_GCJ='-KPIC'
15247       lt_prog_compiler_static_GCJ='-Bstatic'
15248       ;;
15249
15250     sysv4*MP*)
15251       if test -d /usr/nec ;then
15252         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15253         lt_prog_compiler_static_GCJ='-Bstatic'
15254       fi
15255       ;;
15256
15257     uts4*)
15258       lt_prog_compiler_pic_GCJ='-pic'
15259       lt_prog_compiler_static_GCJ='-Bstatic'
15260       ;;
15261
15262     *)
15263       lt_prog_compiler_can_build_shared_GCJ=no
15264       ;;
15265     esac
15266   fi
15267
15268 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15269 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15270
15271 #
15272 # Check to make sure the PIC flag actually works.
15273 #
15274 if test -n "$lt_prog_compiler_pic_GCJ"; then
15275   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15276 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15277 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15278   echo $ECHO_N "(cached) $ECHO_C" >&6
15279 else
15280   lt_prog_compiler_pic_works_GCJ=no
15281   ac_outfile=conftest.$ac_objext
15282    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15283    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15284    # Insert the option either (1) after the last *FLAGS variable, or
15285    # (2) before a word containing "conftest.", or (3) at the end.
15286    # Note that $ac_compile itself does not contain backslashes and begins
15287    # with a dollar sign (not a hyphen), so the echo should work correctly.
15288    # The option is referenced via a variable to avoid confusing sed.
15289    lt_compile=`echo "$ac_compile" | $SED \
15290    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15291    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15292    -e 's:$: $lt_compiler_flag:'`
15293    (eval echo "\"\$as_me:15293: $lt_compile\"" >&5)
15294    (eval "$lt_compile" 2>conftest.err)
15295    ac_status=$?
15296    cat conftest.err >&5
15297    echo "$as_me:15297: \$? = $ac_status" >&5
15298    if (exit $ac_status) && test -s "$ac_outfile"; then
15299      # The compiler can only warn and ignore the option if not recognized
15300      # So say no if there are warnings
15301      if test ! -s conftest.err; then
15302        lt_prog_compiler_pic_works_GCJ=yes
15303      fi
15304    fi
15305    $rm conftest*
15306
15307 fi
15308 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15309 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15310
15311 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15312     case $lt_prog_compiler_pic_GCJ in
15313      "" | " "*) ;;
15314      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15315      esac
15316 else
15317     lt_prog_compiler_pic_GCJ=
15318      lt_prog_compiler_can_build_shared_GCJ=no
15319 fi
15320
15321 fi
15322 case "$host_os" in
15323   # For platforms which do not support PIC, -DPIC is meaningless:
15324   *djgpp*)
15325     lt_prog_compiler_pic_GCJ=
15326     ;;
15327   *)
15328     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15329     ;;
15330 esac
15331
15332 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15333 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15334 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15335   echo $ECHO_N "(cached) $ECHO_C" >&6
15336 else
15337   lt_cv_prog_compiler_c_o_GCJ=no
15338    $rm -r conftest 2>/dev/null
15339    mkdir conftest
15340    cd conftest
15341    mkdir out
15342    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15343
15344    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15345    # that will create temporary files in the current directory regardless of
15346    # the output directory.  Thus, making CWD read-only will cause this test
15347    # to fail, enabling locking or at least warning the user not to do parallel
15348    # builds.
15349    chmod -w .
15350
15351    lt_compiler_flag="-o out/conftest2.$ac_objext"
15352    # Insert the option either (1) after the last *FLAGS variable, or
15353    # (2) before a word containing "conftest.", or (3) at the end.
15354    # Note that $ac_compile itself does not contain backslashes and begins
15355    # with a dollar sign (not a hyphen), so the echo should work correctly.
15356    lt_compile=`echo "$ac_compile" | $SED \
15357    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15358    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15359    -e 's:$: $lt_compiler_flag:'`
15360    (eval echo "\"\$as_me:15360: $lt_compile\"" >&5)
15361    (eval "$lt_compile" 2>out/conftest.err)
15362    ac_status=$?
15363    cat out/conftest.err >&5
15364    echo "$as_me:15364: \$? = $ac_status" >&5
15365    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15366    then
15367      # The compiler can only warn and ignore the option if not recognized
15368      # So say no if there are warnings
15369      if test ! -s out/conftest.err; then
15370        lt_cv_prog_compiler_c_o_GCJ=yes
15371      fi
15372    fi
15373    chmod u+w .
15374    $rm conftest* out/*
15375    rmdir out
15376    cd ..
15377    rmdir conftest
15378    $rm conftest*
15379
15380 fi
15381 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15382 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15383
15384
15385 hard_links="nottested"
15386 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15387   # do not overwrite the value of need_locks provided by the user
15388   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15389 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15390   hard_links=yes
15391   $rm conftest*
15392   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15393   touch conftest.a
15394   ln conftest.a conftest.b 2>&5 || hard_links=no
15395   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15396   echo "$as_me:$LINENO: result: $hard_links" >&5
15397 echo "${ECHO_T}$hard_links" >&6
15398   if test "$hard_links" = no; then
15399     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15400 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15401     need_locks=warn
15402   fi
15403 else
15404   need_locks=no
15405 fi
15406
15407 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15408 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15409
15410   runpath_var=
15411   allow_undefined_flag_GCJ=
15412   enable_shared_with_static_runtimes_GCJ=no
15413   archive_cmds_GCJ=
15414   archive_expsym_cmds_GCJ=
15415   old_archive_From_new_cmds_GCJ=
15416   old_archive_from_expsyms_cmds_GCJ=
15417   export_dynamic_flag_spec_GCJ=
15418   whole_archive_flag_spec_GCJ=
15419   thread_safe_flag_spec_GCJ=
15420   hardcode_libdir_flag_spec_GCJ=
15421   hardcode_libdir_flag_spec_ld_GCJ=
15422   hardcode_libdir_separator_GCJ=
15423   hardcode_direct_GCJ=no
15424   hardcode_minus_L_GCJ=no
15425   hardcode_shlibpath_var_GCJ=unsupported
15426   link_all_deplibs_GCJ=unknown
15427   hardcode_automatic_GCJ=no
15428   module_cmds_GCJ=
15429   module_expsym_cmds_GCJ=
15430   always_export_symbols_GCJ=no
15431   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15432   # include_expsyms should be a list of space-separated symbols to be *always*
15433   # included in the symbol list
15434   include_expsyms_GCJ=
15435   # exclude_expsyms can be an extended regexp of symbols to exclude
15436   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15437   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15438   # as well as any symbol that contains `d'.
15439   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15440   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15441   # platforms (ab)use it in PIC code, but their linkers get confused if
15442   # the symbol is explicitly referenced.  Since portable code cannot
15443   # rely on this symbol name, it's probably fine to never include it in
15444   # preloaded symbol tables.
15445   extract_expsyms_cmds=
15446
15447   case $host_os in
15448   cygwin* | mingw* | pw32*)
15449     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15450     # When not using gcc, we currently assume that we are using
15451     # Microsoft Visual C++.
15452     if test "$GCC" != yes; then
15453       with_gnu_ld=no
15454     fi
15455     ;;
15456   openbsd*)
15457     with_gnu_ld=no
15458     ;;
15459   esac
15460
15461   ld_shlibs_GCJ=yes
15462   if test "$with_gnu_ld" = yes; then
15463     # If archive_cmds runs LD, not CC, wlarc should be empty
15464     wlarc='${wl}'
15465
15466     # See if GNU ld supports shared libraries.
15467     case $host_os in
15468     aix3* | aix4* | aix5*)
15469       # On AIX/PPC, the GNU linker is very broken
15470       if test "$host_cpu" != ia64; then
15471         ld_shlibs_GCJ=no
15472         cat <<EOF 1>&2
15473
15474 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15475 *** to be unable to reliably create shared libraries on AIX.
15476 *** Therefore, libtool is disabling shared libraries support.  If you
15477 *** really care for shared libraries, you may want to modify your PATH
15478 *** so that a non-GNU linker is found, and then restart.
15479
15480 EOF
15481       fi
15482       ;;
15483
15484     amigaos*)
15485       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)'
15486       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15487       hardcode_minus_L_GCJ=yes
15488
15489       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15490       # that the semantics of dynamic libraries on AmigaOS, at least up
15491       # to version 4, is to share data among multiple programs linked
15492       # with the same dynamic library.  Since this doesn't match the
15493       # behavior of shared libraries on other platforms, we can't use
15494       # them.
15495       ld_shlibs_GCJ=no
15496       ;;
15497
15498     beos*)
15499       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15500         allow_undefined_flag_GCJ=unsupported
15501         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15502         # support --undefined.  This deserves some investigation.  FIXME
15503         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15504       else
15505         ld_shlibs_GCJ=no
15506       fi
15507       ;;
15508
15509     cygwin* | mingw* | pw32*)
15510       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15511       # as there is no search path for DLLs.
15512       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15513       allow_undefined_flag_GCJ=unsupported
15514       always_export_symbols_GCJ=no
15515       enable_shared_with_static_runtimes_GCJ=yes
15516       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15517
15518       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15519         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15520         # If the export-symbols file already is a .def file (1st line
15521         # is EXPORTS), use it as is; otherwise, prepend...
15522         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15523           cp $export_symbols $output_objdir/$soname.def;
15524         else
15525           echo EXPORTS > $output_objdir/$soname.def;
15526           cat $export_symbols >> $output_objdir/$soname.def;
15527         fi~
15528         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15529       else
15530         ld_shlibs=no
15531       fi
15532       ;;
15533
15534     netbsd*)
15535       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15536         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15537         wlarc=
15538       else
15539         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15540         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15541       fi
15542       ;;
15543
15544     solaris* | sysv5*)
15545       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15546         ld_shlibs_GCJ=no
15547         cat <<EOF 1>&2
15548
15549 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15550 *** create shared libraries on Solaris systems.  Therefore, libtool
15551 *** is disabling shared libraries support.  We urge you to upgrade GNU
15552 *** binutils to release 2.9.1 or newer.  Another option is to modify
15553 *** your PATH or compiler configuration so that the native linker is
15554 *** used, and then restart.
15555
15556 EOF
15557       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15558         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15559         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15560       else
15561         ld_shlibs_GCJ=no
15562       fi
15563       ;;
15564
15565     sunos4*)
15566       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15567       wlarc=
15568       hardcode_direct_GCJ=yes
15569       hardcode_shlibpath_var_GCJ=no
15570       ;;
15571
15572     *)
15573       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15574         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15575         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15576       else
15577         ld_shlibs_GCJ=no
15578       fi
15579       ;;
15580     esac
15581
15582     if test "$ld_shlibs_GCJ" = yes; then
15583       runpath_var=LD_RUN_PATH
15584       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15585       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15586       # ancient GNU ld didn't support --whole-archive et. al.
15587       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15588         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15589       else
15590         whole_archive_flag_spec_GCJ=
15591       fi
15592     fi
15593   else
15594     # PORTME fill in a description of your system's linker (not GNU ld)
15595     case $host_os in
15596     aix3*)
15597       allow_undefined_flag_GCJ=unsupported
15598       always_export_symbols_GCJ=yes
15599       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'
15600       # Note: this linker hardcodes the directories in LIBPATH if there
15601       # are no directories specified by -L.
15602       hardcode_minus_L_GCJ=yes
15603       if test "$GCC" = yes && test -z "$link_static_flag"; then
15604         # Neither direct hardcoding nor static linking is supported with a
15605         # broken collect2.
15606         hardcode_direct_GCJ=unsupported
15607       fi
15608       ;;
15609
15610     aix4* | aix5*)
15611       if test "$host_cpu" = ia64; then
15612         # On IA64, the linker does run time linking by default, so we don't
15613         # have to do anything special.
15614         aix_use_runtimelinking=no
15615         exp_sym_flag='-Bexport'
15616         no_entry_flag=""
15617       else
15618         # If we're using GNU nm, then we don't want the "-C" option.
15619         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15620         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15621           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'
15622         else
15623           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'
15624         fi
15625         aix_use_runtimelinking=no
15626
15627         # Test if we are trying to use run time linking or normal
15628         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15629         # need to do runtime linking.
15630         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15631           for ld_flag in $LDFLAGS; do
15632           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15633             aix_use_runtimelinking=yes
15634             break
15635           fi
15636           done
15637         esac
15638
15639         exp_sym_flag='-bexport'
15640         no_entry_flag='-bnoentry'
15641       fi
15642
15643       # When large executables or shared objects are built, AIX ld can
15644       # have problems creating the table of contents.  If linking a library
15645       # or program results in "error TOC overflow" add -mminimal-toc to
15646       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15647       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15648
15649       archive_cmds_GCJ=''
15650       hardcode_direct_GCJ=yes
15651       hardcode_libdir_separator_GCJ=':'
15652       link_all_deplibs_GCJ=yes
15653
15654       if test "$GCC" = yes; then
15655         case $host_os in aix4.012|aix4.012.*)
15656         # We only want to do this on AIX 4.2 and lower, the check
15657         # below for broken collect2 doesn't work under 4.3+
15658           collect2name=`${CC} -print-prog-name=collect2`
15659           if test -f "$collect2name" && \
15660            strings "$collect2name" | grep resolve_lib_name >/dev/null
15661           then
15662           # We have reworked collect2
15663           hardcode_direct_GCJ=yes
15664           else
15665           # We have old collect2
15666           hardcode_direct_GCJ=unsupported
15667           # It fails to find uninstalled libraries when the uninstalled
15668           # path is not listed in the libpath.  Setting hardcode_minus_L
15669           # to unsupported forces relinking
15670           hardcode_minus_L_GCJ=yes
15671           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15672           hardcode_libdir_separator_GCJ=
15673           fi
15674         esac
15675         shared_flag='-shared'
15676       else
15677         # not using gcc
15678         if test "$host_cpu" = ia64; then
15679         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15680         # chokes on -Wl,-G. The following line is correct:
15681           shared_flag='-G'
15682         else
15683         if test "$aix_use_runtimelinking" = yes; then
15684             shared_flag='${wl}-G'
15685           else
15686             shared_flag='${wl}-bM:SRE'
15687         fi
15688         fi
15689       fi
15690
15691       # It seems that -bexpall does not export symbols beginning with
15692       # underscore (_), so it is better to generate a list of symbols to export.
15693       always_export_symbols_GCJ=yes
15694       if test "$aix_use_runtimelinking" = yes; then
15695         # Warning - without using the other runtime loading flags (-brtl),
15696         # -berok will link without error, but may produce a broken library.
15697         allow_undefined_flag_GCJ='-berok'
15698        # Determine the default libpath from the value encoded in an empty executable.
15699        cat >conftest.$ac_ext <<_ACEOF
15700 #line $LINENO "configure"
15701 /* confdefs.h.  */
15702 _ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h.  */
15706
15707 int
15708 main ()
15709 {
15710
15711   ;
15712   return 0;
15713 }
15714 _ACEOF
15715 rm -f conftest.$ac_objext conftest$ac_exeext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15717   (eval $ac_link) 2>&5
15718   ac_status=$?
15719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720   (exit $ac_status); } &&
15721          { ac_try='test -s conftest$ac_exeext'
15722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723   (eval $ac_try) 2>&5
15724   ac_status=$?
15725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726   (exit $ac_status); }; }; then
15727
15728 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15729 }'`
15730 # Check for a 64-bit object if we didn't find anything.
15731 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; }
15732 }'`; fi
15733 else
15734   echo "$as_me: failed program was:" >&5
15735 sed 's/^/| /' conftest.$ac_ext >&5
15736
15737 fi
15738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15739 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15740
15741        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15742         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"
15743        else
15744         if test "$host_cpu" = ia64; then
15745           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15746           allow_undefined_flag_GCJ="-z nodefs"
15747           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"
15748         else
15749          # Determine the default libpath from the value encoded in an empty executable.
15750          cat >conftest.$ac_ext <<_ACEOF
15751 #line $LINENO "configure"
15752 /* confdefs.h.  */
15753 _ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h.  */
15757
15758 int
15759 main ()
15760 {
15761
15762   ;
15763   return 0;
15764 }
15765 _ACEOF
15766 rm -f conftest.$ac_objext conftest$ac_exeext
15767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15768   (eval $ac_link) 2>&5
15769   ac_status=$?
15770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771   (exit $ac_status); } &&
15772          { ac_try='test -s conftest$ac_exeext'
15773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774   (eval $ac_try) 2>&5
15775   ac_status=$?
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); }; }; then
15778
15779 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15780 }'`
15781 # Check for a 64-bit object if we didn't find anything.
15782 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; }
15783 }'`; fi
15784 else
15785   echo "$as_me: failed program was:" >&5
15786 sed 's/^/| /' conftest.$ac_ext >&5
15787
15788 fi
15789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15790 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15791
15792          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15793           # Warning - without using the other run time loading flags,
15794           # -berok will link without error, but may produce a broken library.
15795           no_undefined_flag_GCJ=' ${wl}-bernotok'
15796           allow_undefined_flag_GCJ=' ${wl}-berok'
15797           # -bexpall does not export symbols beginning with underscore (_)
15798           always_export_symbols_GCJ=yes
15799           # Exported symbols can be pulled into shared objects from archives
15800           whole_archive_flag_spec_GCJ=' '
15801           archive_cmds_need_lc_GCJ=yes
15802           # This is similar to how AIX traditionally builds it's shared libraries.
15803           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'
15804         fi
15805       fi
15806       ;;
15807
15808     amigaos*)
15809       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)'
15810       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15811       hardcode_minus_L_GCJ=yes
15812       # see comment about different semantics on the GNU ld section
15813       ld_shlibs_GCJ=no
15814       ;;
15815
15816     bsdi4*)
15817       export_dynamic_flag_spec_GCJ=-rdynamic
15818       ;;
15819
15820     cygwin* | mingw* | pw32*)
15821       # When not using gcc, we currently assume that we are using
15822       # Microsoft Visual C++.
15823       # hardcode_libdir_flag_spec is actually meaningless, as there is
15824       # no search path for DLLs.
15825       hardcode_libdir_flag_spec_GCJ=' '
15826       allow_undefined_flag_GCJ=unsupported
15827       # Tell ltmain to make .lib files, not .a files.
15828       libext=lib
15829       # Tell ltmain to make .dll files, not .so files.
15830       shrext=".dll"
15831       # FIXME: Setting linknames here is a bad hack.
15832       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15833       # The linker will automatically build a .lib file if we build a DLL.
15834       old_archive_From_new_cmds_GCJ='true'
15835       # FIXME: Should let the user specify the lib program.
15836       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15837       fix_srcfile_path='`cygpath -w "$srcfile"`'
15838       enable_shared_with_static_runtimes_GCJ=yes
15839       ;;
15840
15841     darwin* | rhapsody*)
15842     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15843       archive_cmds_need_lc_GCJ=no
15844       case "$host_os" in
15845       rhapsody* | darwin1.[012])
15846         allow_undefined_flag_GCJ='-undefined suppress'
15847         ;;
15848       *) # Darwin 1.3 on
15849         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15850         ;;
15851       esac
15852       # FIXME: Relying on posixy $() will cause problems for
15853       #        cross-compilation, but unfortunately the echo tests do not
15854       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15855       #        `"' quotes if we put them in here... so don't!
15856         lt_int_apple_cc_single_mod=no
15857         output_verbose_link_cmd='echo'
15858         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15859           lt_int_apple_cc_single_mod=yes
15860         fi
15861         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15862           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15863         else
15864         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'
15865       fi
15866       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15867       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15868         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15869           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}'
15870         else
15871           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}'
15872         fi
15873           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}'
15874       hardcode_direct_GCJ=no
15875       hardcode_automatic_GCJ=yes
15876       hardcode_shlibpath_var_GCJ=unsupported
15877       whole_archive_flag_spec_GCJ='-all_load $convenience'
15878       link_all_deplibs_GCJ=yes
15879     fi
15880       ;;
15881
15882     dgux*)
15883       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15884       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15885       hardcode_shlibpath_var_GCJ=no
15886       ;;
15887
15888     freebsd1*)
15889       ld_shlibs_GCJ=no
15890       ;;
15891
15892     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15893     # support.  Future versions do this automatically, but an explicit c++rt0.o
15894     # does not break anything, and helps significantly (at the cost of a little
15895     # extra space).
15896     freebsd2.2*)
15897       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15898       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15899       hardcode_direct_GCJ=yes
15900       hardcode_shlibpath_var_GCJ=no
15901       ;;
15902
15903     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15904     freebsd2*)
15905       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15906       hardcode_direct_GCJ=yes
15907       hardcode_minus_L_GCJ=yes
15908       hardcode_shlibpath_var_GCJ=no
15909       ;;
15910
15911     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15912     freebsd*)
15913       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15914       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15915       hardcode_direct_GCJ=yes
15916       hardcode_shlibpath_var_GCJ=no
15917       ;;
15918
15919     hpux9*)
15920       if test "$GCC" = yes; then
15921         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'
15922       else
15923         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'
15924       fi
15925       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15926       hardcode_libdir_separator_GCJ=:
15927       hardcode_direct_GCJ=yes
15928
15929       # hardcode_minus_L: Not really in the search PATH,
15930       # but as the default location of the library.
15931       hardcode_minus_L_GCJ=yes
15932       export_dynamic_flag_spec_GCJ='${wl}-E'
15933       ;;
15934
15935     hpux10* | hpux11*)
15936       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15937         case "$host_cpu" in
15938         hppa*64*|ia64*)
15939           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15940           ;;
15941         *)
15942           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15943           ;;
15944         esac
15945       else
15946         case "$host_cpu" in
15947         hppa*64*|ia64*)
15948           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15949           ;;
15950         *)
15951           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15952           ;;
15953         esac
15954       fi
15955       if test "$with_gnu_ld" = no; then
15956         case "$host_cpu" in
15957         hppa*64*)
15958           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15959           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15960           hardcode_libdir_separator_GCJ=:
15961           hardcode_direct_GCJ=no
15962           hardcode_shlibpath_var_GCJ=no
15963           ;;
15964         ia64*)
15965           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15966           hardcode_direct_GCJ=no
15967           hardcode_shlibpath_var_GCJ=no
15968
15969           # hardcode_minus_L: Not really in the search PATH,
15970           # but as the default location of the library.
15971           hardcode_minus_L_GCJ=yes
15972           ;;
15973         *)
15974           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15975           hardcode_libdir_separator_GCJ=:
15976           hardcode_direct_GCJ=yes
15977           export_dynamic_flag_spec_GCJ='${wl}-E'
15978
15979           # hardcode_minus_L: Not really in the search PATH,
15980           # but as the default location of the library.
15981           hardcode_minus_L_GCJ=yes
15982           ;;
15983         esac
15984       fi
15985       ;;
15986
15987     irix5* | irix6* | nonstopux*)
15988       if test "$GCC" = yes; then
15989         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'
15990       else
15991         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'
15992         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15993       fi
15994       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15995       hardcode_libdir_separator_GCJ=:
15996       link_all_deplibs_GCJ=yes
15997       ;;
15998
15999     netbsd*)
16000       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16001         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16002       else
16003         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16004       fi
16005       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16006       hardcode_direct_GCJ=yes
16007       hardcode_shlibpath_var_GCJ=no
16008       ;;
16009
16010     newsos6)
16011       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16012       hardcode_direct_GCJ=yes
16013       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16014       hardcode_libdir_separator_GCJ=:
16015       hardcode_shlibpath_var_GCJ=no
16016       ;;
16017
16018     openbsd*)
16019       hardcode_direct_GCJ=yes
16020       hardcode_shlibpath_var_GCJ=no
16021       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16022         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16023         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16024         export_dynamic_flag_spec_GCJ='${wl}-E'
16025       else
16026        case $host_os in
16027          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16028            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16029            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16030            ;;
16031          *)
16032            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16033            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16034            ;;
16035        esac
16036       fi
16037       ;;
16038
16039     os2*)
16040       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16041       hardcode_minus_L_GCJ=yes
16042       allow_undefined_flag_GCJ=unsupported
16043       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'
16044       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16045       ;;
16046
16047     osf3*)
16048       if test "$GCC" = yes; then
16049         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16050         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'
16051       else
16052         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16053         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'
16054       fi
16055       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16056       hardcode_libdir_separator_GCJ=:
16057       ;;
16058
16059     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16060       if test "$GCC" = yes; then
16061         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16062         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'
16063         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16064       else
16065         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16066         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'
16067         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~
16068         $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'
16069
16070         # Both c and cxx compiler support -rpath directly
16071         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16072       fi
16073       hardcode_libdir_separator_GCJ=:
16074       ;;
16075
16076     sco3.2v5*)
16077       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16078       hardcode_shlibpath_var_GCJ=no
16079       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16080       runpath_var=LD_RUN_PATH
16081       hardcode_runpath_var=yes
16082       ;;
16083
16084     solaris*)
16085       no_undefined_flag_GCJ=' -z text'
16086       if test "$GCC" = yes; then
16087         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16088         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16089           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16090       else
16091         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16092         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16093         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16094       fi
16095       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16096       hardcode_shlibpath_var_GCJ=no
16097       case $host_os in
16098       solaris2.[0-5] | solaris2.[0-5].*) ;;
16099       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16100         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16101       esac
16102       link_all_deplibs_GCJ=yes
16103       ;;
16104
16105     sunos4*)
16106       if test "x$host_vendor" = xsequent; then
16107         # Use $CC to link under sequent, because it throws in some extra .o
16108         # files that make .init and .fini sections work.
16109         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16110       else
16111         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16112       fi
16113       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16114       hardcode_direct_GCJ=yes
16115       hardcode_minus_L_GCJ=yes
16116       hardcode_shlibpath_var_GCJ=no
16117       ;;
16118
16119     sysv4)
16120       case $host_vendor in
16121         sni)
16122           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16123           hardcode_direct_GCJ=yes # is this really true???
16124         ;;
16125         siemens)
16126           ## LD is ld it makes a PLAMLIB
16127           ## CC just makes a GrossModule.
16128           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16129           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16130           hardcode_direct_GCJ=no
16131         ;;
16132         motorola)
16133           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16134           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16135         ;;
16136       esac
16137       runpath_var='LD_RUN_PATH'
16138       hardcode_shlibpath_var_GCJ=no
16139       ;;
16140
16141     sysv4.3*)
16142       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16143       hardcode_shlibpath_var_GCJ=no
16144       export_dynamic_flag_spec_GCJ='-Bexport'
16145       ;;
16146
16147     sysv4*MP*)
16148       if test -d /usr/nec; then
16149         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16150         hardcode_shlibpath_var_GCJ=no
16151         runpath_var=LD_RUN_PATH
16152         hardcode_runpath_var=yes
16153         ld_shlibs_GCJ=yes
16154       fi
16155       ;;
16156
16157     sysv4.2uw2*)
16158       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16159       hardcode_direct_GCJ=yes
16160       hardcode_minus_L_GCJ=no
16161       hardcode_shlibpath_var_GCJ=no
16162       hardcode_runpath_var=yes
16163       runpath_var=LD_RUN_PATH
16164       ;;
16165
16166    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16167       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16168       if test "$GCC" = yes; then
16169         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16170       else
16171         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16172       fi
16173       runpath_var='LD_RUN_PATH'
16174       hardcode_shlibpath_var_GCJ=no
16175       ;;
16176
16177     sysv5*)
16178       no_undefined_flag_GCJ=' -z text'
16179       # $CC -shared without GNU ld will not create a library from C++
16180       # object files and a static libstdc++, better avoid it by now
16181       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16182       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16183                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16184       hardcode_libdir_flag_spec_GCJ=
16185       hardcode_shlibpath_var_GCJ=no
16186       runpath_var='LD_RUN_PATH'
16187       ;;
16188
16189     uts4*)
16190       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16191       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16192       hardcode_shlibpath_var_GCJ=no
16193       ;;
16194
16195     *)
16196       ld_shlibs_GCJ=no
16197       ;;
16198     esac
16199   fi
16200
16201 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16202 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16203 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16204
16205 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16206 if test "$GCC" = yes; then
16207   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16208 fi
16209
16210 #
16211 # Do we need to explicitly link libc?
16212 #
16213 case "x$archive_cmds_need_lc_GCJ" in
16214 x|xyes)
16215   # Assume -lc should be added
16216   archive_cmds_need_lc_GCJ=yes
16217
16218   if test "$enable_shared" = yes && test "$GCC" = yes; then
16219     case $archive_cmds_GCJ in
16220     *'~'*)
16221       # FIXME: we may have to deal with multi-command sequences.
16222       ;;
16223     '$CC '*)
16224       # Test whether the compiler implicitly links with -lc since on some
16225       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16226       # to ld, don't add -lc before -lgcc.
16227       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16228 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16229       $rm conftest*
16230       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16231
16232       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16233   (eval $ac_compile) 2>&5
16234   ac_status=$?
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); } 2>conftest.err; then
16237         soname=conftest
16238         lib=conftest
16239         libobjs=conftest.$ac_objext
16240         deplibs=
16241         wl=$lt_prog_compiler_wl_GCJ
16242         compiler_flags=-v
16243         linker_flags=-v
16244         verstring=
16245         output_objdir=.
16246         libname=conftest
16247         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16248         allow_undefined_flag_GCJ=
16249         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16250   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16251   ac_status=$?
16252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253   (exit $ac_status); }
16254         then
16255           archive_cmds_need_lc_GCJ=no
16256         else
16257           archive_cmds_need_lc_GCJ=yes
16258         fi
16259         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16260       else
16261         cat conftest.err 1>&5
16262       fi
16263       $rm conftest*
16264       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16265 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16266       ;;
16267     esac
16268   fi
16269   ;;
16270 esac
16271
16272 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16273 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16274 hardcode_action_GCJ=
16275 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16276    test -n "$runpath_var GCJ" || \
16277    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16278
16279   # We can hardcode non-existant directories.
16280   if test "$hardcode_direct_GCJ" != no &&
16281      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16282      # have to relink, otherwise we might link with an installed library
16283      # when we should be linking with a yet-to-be-installed one
16284      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16285      test "$hardcode_minus_L_GCJ" != no; then
16286     # Linking always hardcodes the temporary library directory.
16287     hardcode_action_GCJ=relink
16288   else
16289     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16290     hardcode_action_GCJ=immediate
16291   fi
16292 else
16293   # We cannot hardcode anything, or else we can only hardcode existing
16294   # directories.
16295   hardcode_action_GCJ=unsupported
16296 fi
16297 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16298 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16299
16300 if test "$hardcode_action_GCJ" = relink; then
16301   # Fast installation is not supported
16302   enable_fast_install=no
16303 elif test "$shlibpath_overrides_runpath" = yes ||
16304      test "$enable_shared" = no; then
16305   # Fast installation is not necessary
16306   enable_fast_install=needless
16307 fi
16308
16309 striplib=
16310 old_striplib=
16311 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16312 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16313 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16314   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16315   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16316   echo "$as_me:$LINENO: result: yes" >&5
16317 echo "${ECHO_T}yes" >&6
16318 else
16319 # FIXME - insert some real tests, host_os isn't really good enough
16320   case $host_os in
16321    darwin*)
16322        if test -n "$STRIP" ; then
16323          striplib="$STRIP -x"
16324          echo "$as_me:$LINENO: result: yes" >&5
16325 echo "${ECHO_T}yes" >&6
16326        else
16327   echo "$as_me:$LINENO: result: no" >&5
16328 echo "${ECHO_T}no" >&6
16329 fi
16330        ;;
16331    *)
16332   echo "$as_me:$LINENO: result: no" >&5
16333 echo "${ECHO_T}no" >&6
16334     ;;
16335   esac
16336 fi
16337
16338 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16339 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16340 library_names_spec=
16341 libname_spec='lib$name'
16342 soname_spec=
16343 shrext=".so"
16344 postinstall_cmds=
16345 postuninstall_cmds=
16346 finish_cmds=
16347 finish_eval=
16348 shlibpath_var=
16349 shlibpath_overrides_runpath=unknown
16350 version_type=none
16351 dynamic_linker="$host_os ld.so"
16352 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16353 if test "$GCC" = yes; then
16354   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16355   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16356     # if the path contains ";" then we assume it to be the separator
16357     # otherwise default to the standard path separator (i.e. ":") - it is
16358     # assumed that no part of a normal pathname contains ";" but that should
16359     # okay in the real world where ";" in dirpaths is itself problematic.
16360     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16361   else
16362     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16363   fi
16364 else
16365   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16366 fi
16367 need_lib_prefix=unknown
16368 hardcode_into_libs=no
16369
16370 # when you set need_version to no, make sure it does not cause -set_version
16371 # flags to be left without arguments
16372 need_version=unknown
16373
16374 case $host_os in
16375 aix3*)
16376   version_type=linux
16377   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16378   shlibpath_var=LIBPATH
16379
16380   # AIX 3 has no versioning support, so we append a major version to the name.
16381   soname_spec='${libname}${release}${shared_ext}$major'
16382   ;;
16383
16384 aix4* | aix5*)
16385   version_type=linux
16386   need_lib_prefix=no
16387   need_version=no
16388   hardcode_into_libs=yes
16389   if test "$host_cpu" = ia64; then
16390     # AIX 5 supports IA64
16391     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16392     shlibpath_var=LD_LIBRARY_PATH
16393   else
16394     # With GCC up to 2.95.x, collect2 would create an import file
16395     # for dependence libraries.  The import file would start with
16396     # the line `#! .'.  This would cause the generated library to
16397     # depend on `.', always an invalid library.  This was fixed in
16398     # development snapshots of GCC prior to 3.0.
16399     case $host_os in
16400       aix4 | aix4.[01] | aix4.[01].*)
16401       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16402            echo ' yes '
16403            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16404         :
16405       else
16406         can_build_shared=no
16407       fi
16408       ;;
16409     esac
16410     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16411     # soname into executable. Probably we can add versioning support to
16412     # collect2, so additional links can be useful in future.
16413     if test "$aix_use_runtimelinking" = yes; then
16414       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16415       # instead of lib<name>.a to let people know that these are not
16416       # typical AIX shared libraries.
16417       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418     else
16419       # We preserve .a as extension for shared libraries through AIX4.2
16420       # and later when we are not doing run time linking.
16421       library_names_spec='${libname}${release}.a $libname.a'
16422       soname_spec='${libname}${release}${shared_ext}$major'
16423     fi
16424     shlibpath_var=LIBPATH
16425   fi
16426   ;;
16427
16428 amigaos*)
16429   library_names_spec='$libname.ixlibrary $libname.a'
16430   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16431   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'
16432   ;;
16433
16434 beos*)
16435   library_names_spec='${libname}${shared_ext}'
16436   dynamic_linker="$host_os ld.so"
16437   shlibpath_var=LIBRARY_PATH
16438   ;;
16439
16440 bsdi4*)
16441   version_type=linux
16442   need_version=no
16443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16444   soname_spec='${libname}${release}${shared_ext}$major'
16445   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16446   shlibpath_var=LD_LIBRARY_PATH
16447   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16448   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16449   # the default ld.so.conf also contains /usr/contrib/lib and
16450   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16451   # libtool to hard-code these into programs
16452   ;;
16453
16454 cygwin* | mingw* | pw32*)
16455   version_type=windows
16456   shrext=".dll"
16457   need_version=no
16458   need_lib_prefix=no
16459
16460   case $GCC,$host_os in
16461   yes,cygwin* | yes,mingw* | yes,pw32*)
16462     library_names_spec='$libname.dll.a'
16463     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16464     postinstall_cmds='base_file=`basename \${file}`~
16465       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16466       dldir=$destdir/`dirname \$dlpath`~
16467       test -d \$dldir || mkdir -p \$dldir~
16468       $install_prog $dir/$dlname \$dldir/$dlname'
16469     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16470       dlpath=$dir/\$dldll~
16471        $rm \$dlpath'
16472     shlibpath_overrides_runpath=yes
16473
16474     case $host_os in
16475     cygwin*)
16476       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16477       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16478       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16479       ;;
16480     mingw*)
16481       # MinGW DLLs use traditional 'lib' prefix
16482       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16483       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16484       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16485         # It is most probably a Windows format PATH printed by
16486         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16487         # path with ; separators, and with drive letters. We can handle the
16488         # drive letters (cygwin fileutils understands them), so leave them,
16489         # especially as we might pass files found there to a mingw objdump,
16490         # which wouldn't understand a cygwinified path. Ahh.
16491         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16492       else
16493         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16494       fi
16495       ;;
16496     pw32*)
16497       # pw32 DLLs use 'pw' prefix rather than 'lib'
16498       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16499       ;;
16500     esac
16501     ;;
16502
16503   *)
16504     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16505     ;;
16506   esac
16507   dynamic_linker='Win32 ld.exe'
16508   # FIXME: first we should search . and the directory the executable is in
16509   shlibpath_var=PATH
16510   ;;
16511
16512 darwin* | rhapsody*)
16513   dynamic_linker="$host_os dyld"
16514   version_type=darwin
16515   need_lib_prefix=no
16516   need_version=no
16517   # FIXME: Relying on posixy $() will cause problems for
16518   #        cross-compilation, but unfortunately the echo tests do not
16519   #        yet detect zsh echo's removal of \ escapes.
16520   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16521   soname_spec='${libname}${release}${major}$shared_ext'
16522   shlibpath_overrides_runpath=yes
16523   shlibpath_var=DYLD_LIBRARY_PATH
16524   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16525   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16526   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16527   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"`
16528   fi
16529   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16530   ;;
16531
16532 dgux*)
16533   version_type=linux
16534   need_lib_prefix=no
16535   need_version=no
16536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16537   soname_spec='${libname}${release}${shared_ext}$major'
16538   shlibpath_var=LD_LIBRARY_PATH
16539   ;;
16540
16541 freebsd1*)
16542   dynamic_linker=no
16543   ;;
16544
16545 freebsd*)
16546   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16547   version_type=freebsd-$objformat
16548   case $version_type in
16549     freebsd-elf*)
16550       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16551       need_version=no
16552       need_lib_prefix=no
16553       ;;
16554     freebsd-*)
16555       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16556       need_version=yes
16557       ;;
16558   esac
16559   shlibpath_var=LD_LIBRARY_PATH
16560   case $host_os in
16561   freebsd2*)
16562     shlibpath_overrides_runpath=yes
16563     ;;
16564   freebsd3.01* | freebsdelf3.01*)
16565     shlibpath_overrides_runpath=yes
16566     hardcode_into_libs=yes
16567     ;;
16568   *) # from 3.2 on
16569     shlibpath_overrides_runpath=no
16570     hardcode_into_libs=yes
16571     ;;
16572   esac
16573   ;;
16574
16575 gnu*)
16576   version_type=linux
16577   need_lib_prefix=no
16578   need_version=no
16579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16580   soname_spec='${libname}${release}${shared_ext}$major'
16581   shlibpath_var=LD_LIBRARY_PATH
16582   hardcode_into_libs=yes
16583   ;;
16584
16585 hpux9* | hpux10* | hpux11*)
16586   # Give a soname corresponding to the major version so that dld.sl refuses to
16587   # link against other versions.
16588   version_type=sunos
16589   need_lib_prefix=no
16590   need_version=no
16591   case "$host_cpu" in
16592   ia64*)
16593     shrext='.so'
16594     hardcode_into_libs=yes
16595     dynamic_linker="$host_os dld.so"
16596     shlibpath_var=LD_LIBRARY_PATH
16597     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16599     soname_spec='${libname}${release}${shared_ext}$major'
16600     if test "X$HPUX_IA64_MODE" = X32; then
16601       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16602     else
16603       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16604     fi
16605     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16606     ;;
16607    hppa*64*)
16608      shrext='.sl'
16609      hardcode_into_libs=yes
16610      dynamic_linker="$host_os dld.sl"
16611      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16612      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16613      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16614      soname_spec='${libname}${release}${shared_ext}$major'
16615      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16616      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16617      ;;
16618    *)
16619     shrext='.sl'
16620     dynamic_linker="$host_os dld.sl"
16621     shlibpath_var=SHLIB_PATH
16622     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16623     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16624     soname_spec='${libname}${release}${shared_ext}$major'
16625     ;;
16626   esac
16627   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16628   postinstall_cmds='chmod 555 $lib'
16629   ;;
16630
16631 irix5* | irix6* | nonstopux*)
16632   case $host_os in
16633     nonstopux*) version_type=nonstopux ;;
16634     *)
16635         if test "$lt_cv_prog_gnu_ld" = yes; then
16636                 version_type=linux
16637         else
16638                 version_type=irix
16639         fi ;;
16640   esac
16641   need_lib_prefix=no
16642   need_version=no
16643   soname_spec='${libname}${release}${shared_ext}$major'
16644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16645   case $host_os in
16646   irix5* | nonstopux*)
16647     libsuff= shlibsuff=
16648     ;;
16649   *)
16650     case $LD in # libtool.m4 will add one of these switches to LD
16651     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16652       libsuff= shlibsuff= libmagic=32-bit;;
16653     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16654       libsuff=32 shlibsuff=N32 libmagic=N32;;
16655     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16656       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16657     *) libsuff= shlibsuff= libmagic=never-match;;
16658     esac
16659     ;;
16660   esac
16661   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16662   shlibpath_overrides_runpath=no
16663   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16664   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16665   hardcode_into_libs=yes
16666   ;;
16667
16668 # No shared lib support for Linux oldld, aout, or coff.
16669 linux*oldld* | linux*aout* | linux*coff*)
16670   dynamic_linker=no
16671   ;;
16672
16673 # This must be Linux ELF.
16674 linux*)
16675   version_type=linux
16676   need_lib_prefix=no
16677   need_version=no
16678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16679   soname_spec='${libname}${release}${shared_ext}$major'
16680   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16681   shlibpath_var=LD_LIBRARY_PATH
16682   shlibpath_overrides_runpath=no
16683   # This implies no fast_install, which is unacceptable.
16684   # Some rework will be needed to allow for fast_install
16685   # before this can be enabled.
16686   hardcode_into_libs=yes
16687
16688   # We used to test for /lib/ld.so.1 and disable shared libraries on
16689   # powerpc, because MkLinux only supported shared libraries with the
16690   # GNU dynamic linker.  Since this was broken with cross compilers,
16691   # most powerpc-linux boxes support dynamic linking these days and
16692   # people can always --disable-shared, the test was removed, and we
16693   # assume the GNU/Linux dynamic linker is in use.
16694   dynamic_linker='GNU/Linux ld.so'
16695   ;;
16696
16697 netbsd*)
16698   version_type=sunos
16699   need_lib_prefix=no
16700   need_version=no
16701   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16702     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16703     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16704     dynamic_linker='NetBSD (a.out) ld.so'
16705   else
16706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16707     soname_spec='${libname}${release}${shared_ext}$major'
16708     dynamic_linker='NetBSD ld.elf_so'
16709   fi
16710   shlibpath_var=LD_LIBRARY_PATH
16711   shlibpath_overrides_runpath=yes
16712   hardcode_into_libs=yes
16713   ;;
16714
16715 newsos6)
16716   version_type=linux
16717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16718   shlibpath_var=LD_LIBRARY_PATH
16719   shlibpath_overrides_runpath=yes
16720   ;;
16721
16722 nto-qnx)
16723   version_type=linux
16724   need_lib_prefix=no
16725   need_version=no
16726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727   soname_spec='${libname}${release}${shared_ext}$major'
16728   shlibpath_var=LD_LIBRARY_PATH
16729   shlibpath_overrides_runpath=yes
16730   ;;
16731
16732 openbsd*)
16733   version_type=sunos
16734   need_lib_prefix=no
16735   need_version=no
16736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16737   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16738   shlibpath_var=LD_LIBRARY_PATH
16739   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16740     case $host_os in
16741       openbsd2.[89] | openbsd2.[89].*)
16742         shlibpath_overrides_runpath=no
16743         ;;
16744       *)
16745         shlibpath_overrides_runpath=yes
16746         ;;
16747       esac
16748   else
16749     shlibpath_overrides_runpath=yes
16750   fi
16751   ;;
16752
16753 os2*)
16754   libname_spec='$name'
16755   shrext=".dll"
16756   need_lib_prefix=no
16757   library_names_spec='$libname${shared_ext} $libname.a'
16758   dynamic_linker='OS/2 ld.exe'
16759   shlibpath_var=LIBPATH
16760   ;;
16761
16762 osf3* | osf4* | osf5*)
16763   version_type=osf
16764   need_lib_prefix=no
16765   need_version=no
16766   soname_spec='${libname}${release}${shared_ext}$major'
16767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16768   shlibpath_var=LD_LIBRARY_PATH
16769   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16770   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16771   ;;
16772
16773 sco3.2v5*)
16774   version_type=osf
16775   soname_spec='${libname}${release}${shared_ext}$major'
16776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16777   shlibpath_var=LD_LIBRARY_PATH
16778   ;;
16779
16780 solaris*)
16781   version_type=linux
16782   need_lib_prefix=no
16783   need_version=no
16784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16785   soname_spec='${libname}${release}${shared_ext}$major'
16786   shlibpath_var=LD_LIBRARY_PATH
16787   shlibpath_overrides_runpath=yes
16788   hardcode_into_libs=yes
16789   # ldd complains unless libraries are executable
16790   postinstall_cmds='chmod +x $lib'
16791   ;;
16792
16793 sunos4*)
16794   version_type=sunos
16795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16796   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16797   shlibpath_var=LD_LIBRARY_PATH
16798   shlibpath_overrides_runpath=yes
16799   if test "$with_gnu_ld" = yes; then
16800     need_lib_prefix=no
16801   fi
16802   need_version=yes
16803   ;;
16804
16805 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16806   version_type=linux
16807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16808   soname_spec='${libname}${release}${shared_ext}$major'
16809   shlibpath_var=LD_LIBRARY_PATH
16810   case $host_vendor in
16811     sni)
16812       shlibpath_overrides_runpath=no
16813       need_lib_prefix=no
16814       export_dynamic_flag_spec='${wl}-Blargedynsym'
16815       runpath_var=LD_RUN_PATH
16816       ;;
16817     siemens)
16818       need_lib_prefix=no
16819       ;;
16820     motorola)
16821       need_lib_prefix=no
16822       need_version=no
16823       shlibpath_overrides_runpath=no
16824       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16825       ;;
16826   esac
16827   ;;
16828
16829 sysv4*MP*)
16830   if test -d /usr/nec ;then
16831     version_type=linux
16832     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16833     soname_spec='$libname${shared_ext}.$major'
16834     shlibpath_var=LD_LIBRARY_PATH
16835   fi
16836   ;;
16837
16838 uts4*)
16839   version_type=linux
16840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16841   soname_spec='${libname}${release}${shared_ext}$major'
16842   shlibpath_var=LD_LIBRARY_PATH
16843   ;;
16844
16845 *)
16846   dynamic_linker=no
16847   ;;
16848 esac
16849 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16850 echo "${ECHO_T}$dynamic_linker" >&6
16851 test "$dynamic_linker" = no && can_build_shared=no
16852
16853 if test "x$enable_dlopen" != xyes; then
16854   enable_dlopen=unknown
16855   enable_dlopen_self=unknown
16856   enable_dlopen_self_static=unknown
16857 else
16858   lt_cv_dlopen=no
16859   lt_cv_dlopen_libs=
16860
16861   case $host_os in
16862   beos*)
16863     lt_cv_dlopen="load_add_on"
16864     lt_cv_dlopen_libs=
16865     lt_cv_dlopen_self=yes
16866     ;;
16867
16868   mingw* | pw32*)
16869     lt_cv_dlopen="LoadLibrary"
16870     lt_cv_dlopen_libs=
16871    ;;
16872
16873   cygwin*)
16874     lt_cv_dlopen="dlopen"
16875     lt_cv_dlopen_libs=
16876    ;;
16877
16878   darwin*)
16879   # if libdl is installed we need to link against it
16880     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16881 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16882 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16883   echo $ECHO_N "(cached) $ECHO_C" >&6
16884 else
16885   ac_check_lib_save_LIBS=$LIBS
16886 LIBS="-ldl  $LIBS"
16887 cat >conftest.$ac_ext <<_ACEOF
16888 #line $LINENO "configure"
16889 /* confdefs.h.  */
16890 _ACEOF
16891 cat confdefs.h >>conftest.$ac_ext
16892 cat >>conftest.$ac_ext <<_ACEOF
16893 /* end confdefs.h.  */
16894
16895 /* Override any gcc2 internal prototype to avoid an error.  */
16896 #ifdef __cplusplus
16897 extern "C"
16898 #endif
16899 /* We use char because int might match the return type of a gcc2
16900    builtin and then its argument prototype would still apply.  */
16901 char dlopen ();
16902 int
16903 main ()
16904 {
16905 dlopen ();
16906   ;
16907   return 0;
16908 }
16909 _ACEOF
16910 rm -f conftest.$ac_objext conftest$ac_exeext
16911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16912   (eval $ac_link) 2>&5
16913   ac_status=$?
16914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915   (exit $ac_status); } &&
16916          { ac_try='test -s conftest$ac_exeext'
16917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918   (eval $ac_try) 2>&5
16919   ac_status=$?
16920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921   (exit $ac_status); }; }; then
16922   ac_cv_lib_dl_dlopen=yes
16923 else
16924   echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16926
16927 ac_cv_lib_dl_dlopen=no
16928 fi
16929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16930 LIBS=$ac_check_lib_save_LIBS
16931 fi
16932 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16933 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16934 if test $ac_cv_lib_dl_dlopen = yes; then
16935   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16936 else
16937
16938     lt_cv_dlopen="dyld"
16939     lt_cv_dlopen_libs=
16940     lt_cv_dlopen_self=yes
16941
16942 fi
16943
16944    ;;
16945
16946   *)
16947     echo "$as_me:$LINENO: checking for shl_load" >&5
16948 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16949 if test "${ac_cv_func_shl_load+set}" = set; then
16950   echo $ECHO_N "(cached) $ECHO_C" >&6
16951 else
16952   cat >conftest.$ac_ext <<_ACEOF
16953 #line $LINENO "configure"
16954 /* confdefs.h.  */
16955 _ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h.  */
16959 /* System header to define __stub macros and hopefully few prototypes,
16960     which can conflict with char shl_load (); below.
16961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16962     <limits.h> exists even on freestanding compilers.  */
16963 #ifdef __STDC__
16964 # include <limits.h>
16965 #else
16966 # include <assert.h>
16967 #endif
16968 /* Override any gcc2 internal prototype to avoid an error.  */
16969 #ifdef __cplusplus
16970 extern "C"
16971 {
16972 #endif
16973 /* We use char because int might match the return type of a gcc2
16974    builtin and then its argument prototype would still apply.  */
16975 char shl_load ();
16976 /* The GNU C library defines this for functions which it implements
16977     to always fail with ENOSYS.  Some functions are actually named
16978     something starting with __ and the normal name is an alias.  */
16979 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16980 choke me
16981 #else
16982 char (*f) () = shl_load;
16983 #endif
16984 #ifdef __cplusplus
16985 }
16986 #endif
16987
16988 int
16989 main ()
16990 {
16991 return f != shl_load;
16992   ;
16993   return 0;
16994 }
16995 _ACEOF
16996 rm -f conftest.$ac_objext conftest$ac_exeext
16997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16998   (eval $ac_link) 2>&5
16999   ac_status=$?
17000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001   (exit $ac_status); } &&
17002          { ac_try='test -s conftest$ac_exeext'
17003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17004   (eval $ac_try) 2>&5
17005   ac_status=$?
17006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007   (exit $ac_status); }; }; then
17008   ac_cv_func_shl_load=yes
17009 else
17010   echo "$as_me: failed program was:" >&5
17011 sed 's/^/| /' conftest.$ac_ext >&5
17012
17013 ac_cv_func_shl_load=no
17014 fi
17015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17016 fi
17017 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17018 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17019 if test $ac_cv_func_shl_load = yes; then
17020   lt_cv_dlopen="shl_load"
17021 else
17022   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17023 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17024 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17025   echo $ECHO_N "(cached) $ECHO_C" >&6
17026 else
17027   ac_check_lib_save_LIBS=$LIBS
17028 LIBS="-ldld  $LIBS"
17029 cat >conftest.$ac_ext <<_ACEOF
17030 #line $LINENO "configure"
17031 /* confdefs.h.  */
17032 _ACEOF
17033 cat confdefs.h >>conftest.$ac_ext
17034 cat >>conftest.$ac_ext <<_ACEOF
17035 /* end confdefs.h.  */
17036
17037 /* Override any gcc2 internal prototype to avoid an error.  */
17038 #ifdef __cplusplus
17039 extern "C"
17040 #endif
17041 /* We use char because int might match the return type of a gcc2
17042    builtin and then its argument prototype would still apply.  */
17043 char shl_load ();
17044 int
17045 main ()
17046 {
17047 shl_load ();
17048   ;
17049   return 0;
17050 }
17051 _ACEOF
17052 rm -f conftest.$ac_objext conftest$ac_exeext
17053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17054   (eval $ac_link) 2>&5
17055   ac_status=$?
17056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057   (exit $ac_status); } &&
17058          { ac_try='test -s conftest$ac_exeext'
17059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060   (eval $ac_try) 2>&5
17061   ac_status=$?
17062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063   (exit $ac_status); }; }; then
17064   ac_cv_lib_dld_shl_load=yes
17065 else
17066   echo "$as_me: failed program was:" >&5
17067 sed 's/^/| /' conftest.$ac_ext >&5
17068
17069 ac_cv_lib_dld_shl_load=no
17070 fi
17071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17072 LIBS=$ac_check_lib_save_LIBS
17073 fi
17074 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17075 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17076 if test $ac_cv_lib_dld_shl_load = yes; then
17077   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17078 else
17079   echo "$as_me:$LINENO: checking for dlopen" >&5
17080 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17081 if test "${ac_cv_func_dlopen+set}" = set; then
17082   echo $ECHO_N "(cached) $ECHO_C" >&6
17083 else
17084   cat >conftest.$ac_ext <<_ACEOF
17085 #line $LINENO "configure"
17086 /* confdefs.h.  */
17087 _ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h.  */
17091 /* System header to define __stub macros and hopefully few prototypes,
17092     which can conflict with char dlopen (); below.
17093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17094     <limits.h> exists even on freestanding compilers.  */
17095 #ifdef __STDC__
17096 # include <limits.h>
17097 #else
17098 # include <assert.h>
17099 #endif
17100 /* Override any gcc2 internal prototype to avoid an error.  */
17101 #ifdef __cplusplus
17102 extern "C"
17103 {
17104 #endif
17105 /* We use char because int might match the return type of a gcc2
17106    builtin and then its argument prototype would still apply.  */
17107 char dlopen ();
17108 /* The GNU C library defines this for functions which it implements
17109     to always fail with ENOSYS.  Some functions are actually named
17110     something starting with __ and the normal name is an alias.  */
17111 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17112 choke me
17113 #else
17114 char (*f) () = dlopen;
17115 #endif
17116 #ifdef __cplusplus
17117 }
17118 #endif
17119
17120 int
17121 main ()
17122 {
17123 return f != dlopen;
17124   ;
17125   return 0;
17126 }
17127 _ACEOF
17128 rm -f conftest.$ac_objext conftest$ac_exeext
17129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17130   (eval $ac_link) 2>&5
17131   ac_status=$?
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); } &&
17134          { ac_try='test -s conftest$ac_exeext'
17135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136   (eval $ac_try) 2>&5
17137   ac_status=$?
17138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139   (exit $ac_status); }; }; then
17140   ac_cv_func_dlopen=yes
17141 else
17142   echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17144
17145 ac_cv_func_dlopen=no
17146 fi
17147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17148 fi
17149 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17150 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17151 if test $ac_cv_func_dlopen = yes; then
17152   lt_cv_dlopen="dlopen"
17153 else
17154   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17155 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17156 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17157   echo $ECHO_N "(cached) $ECHO_C" >&6
17158 else
17159   ac_check_lib_save_LIBS=$LIBS
17160 LIBS="-ldl  $LIBS"
17161 cat >conftest.$ac_ext <<_ACEOF
17162 #line $LINENO "configure"
17163 /* confdefs.h.  */
17164 _ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h.  */
17168
17169 /* Override any gcc2 internal prototype to avoid an error.  */
17170 #ifdef __cplusplus
17171 extern "C"
17172 #endif
17173 /* We use char because int might match the return type of a gcc2
17174    builtin and then its argument prototype would still apply.  */
17175 char dlopen ();
17176 int
17177 main ()
17178 {
17179 dlopen ();
17180   ;
17181   return 0;
17182 }
17183 _ACEOF
17184 rm -f conftest.$ac_objext conftest$ac_exeext
17185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17186   (eval $ac_link) 2>&5
17187   ac_status=$?
17188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189   (exit $ac_status); } &&
17190          { ac_try='test -s conftest$ac_exeext'
17191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192   (eval $ac_try) 2>&5
17193   ac_status=$?
17194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195   (exit $ac_status); }; }; then
17196   ac_cv_lib_dl_dlopen=yes
17197 else
17198   echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17200
17201 ac_cv_lib_dl_dlopen=no
17202 fi
17203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17204 LIBS=$ac_check_lib_save_LIBS
17205 fi
17206 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17207 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17208 if test $ac_cv_lib_dl_dlopen = yes; then
17209   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17210 else
17211   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17212 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17213 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17214   echo $ECHO_N "(cached) $ECHO_C" >&6
17215 else
17216   ac_check_lib_save_LIBS=$LIBS
17217 LIBS="-lsvld  $LIBS"
17218 cat >conftest.$ac_ext <<_ACEOF
17219 #line $LINENO "configure"
17220 /* confdefs.h.  */
17221 _ACEOF
17222 cat confdefs.h >>conftest.$ac_ext
17223 cat >>conftest.$ac_ext <<_ACEOF
17224 /* end confdefs.h.  */
17225
17226 /* Override any gcc2 internal prototype to avoid an error.  */
17227 #ifdef __cplusplus
17228 extern "C"
17229 #endif
17230 /* We use char because int might match the return type of a gcc2
17231    builtin and then its argument prototype would still apply.  */
17232 char dlopen ();
17233 int
17234 main ()
17235 {
17236 dlopen ();
17237   ;
17238   return 0;
17239 }
17240 _ACEOF
17241 rm -f conftest.$ac_objext conftest$ac_exeext
17242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17243   (eval $ac_link) 2>&5
17244   ac_status=$?
17245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246   (exit $ac_status); } &&
17247          { ac_try='test -s conftest$ac_exeext'
17248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17249   (eval $ac_try) 2>&5
17250   ac_status=$?
17251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252   (exit $ac_status); }; }; then
17253   ac_cv_lib_svld_dlopen=yes
17254 else
17255   echo "$as_me: failed program was:" >&5
17256 sed 's/^/| /' conftest.$ac_ext >&5
17257
17258 ac_cv_lib_svld_dlopen=no
17259 fi
17260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17261 LIBS=$ac_check_lib_save_LIBS
17262 fi
17263 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17264 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17265 if test $ac_cv_lib_svld_dlopen = yes; then
17266   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17267 else
17268   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17269 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17270 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17271   echo $ECHO_N "(cached) $ECHO_C" >&6
17272 else
17273   ac_check_lib_save_LIBS=$LIBS
17274 LIBS="-ldld  $LIBS"
17275 cat >conftest.$ac_ext <<_ACEOF
17276 #line $LINENO "configure"
17277 /* confdefs.h.  */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h.  */
17282
17283 /* Override any gcc2 internal prototype to avoid an error.  */
17284 #ifdef __cplusplus
17285 extern "C"
17286 #endif
17287 /* We use char because int might match the return type of a gcc2
17288    builtin and then its argument prototype would still apply.  */
17289 char dld_link ();
17290 int
17291 main ()
17292 {
17293 dld_link ();
17294   ;
17295   return 0;
17296 }
17297 _ACEOF
17298 rm -f conftest.$ac_objext conftest$ac_exeext
17299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17300   (eval $ac_link) 2>&5
17301   ac_status=$?
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); } &&
17304          { ac_try='test -s conftest$ac_exeext'
17305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306   (eval $ac_try) 2>&5
17307   ac_status=$?
17308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309   (exit $ac_status); }; }; then
17310   ac_cv_lib_dld_dld_link=yes
17311 else
17312   echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17314
17315 ac_cv_lib_dld_dld_link=no
17316 fi
17317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17318 LIBS=$ac_check_lib_save_LIBS
17319 fi
17320 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17321 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17322 if test $ac_cv_lib_dld_dld_link = yes; then
17323   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17324 fi
17325
17326
17327 fi
17328
17329
17330 fi
17331
17332
17333 fi
17334
17335
17336 fi
17337
17338
17339 fi
17340
17341     ;;
17342   esac
17343
17344   if test "x$lt_cv_dlopen" != xno; then
17345     enable_dlopen=yes
17346   else
17347     enable_dlopen=no
17348   fi
17349
17350   case $lt_cv_dlopen in
17351   dlopen)
17352     save_CPPFLAGS="$CPPFLAGS"
17353     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17354
17355     save_LDFLAGS="$LDFLAGS"
17356     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17357
17358     save_LIBS="$LIBS"
17359     LIBS="$lt_cv_dlopen_libs $LIBS"
17360
17361     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17362 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17363 if test "${lt_cv_dlopen_self+set}" = set; then
17364   echo $ECHO_N "(cached) $ECHO_C" >&6
17365 else
17366           if test "$cross_compiling" = yes; then :
17367   lt_cv_dlopen_self=cross
17368 else
17369   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17370   lt_status=$lt_dlunknown
17371   cat > conftest.$ac_ext <<EOF
17372 #line 17372 "configure"
17373 #include "confdefs.h"
17374
17375 #if HAVE_DLFCN_H
17376 #include <dlfcn.h>
17377 #endif
17378
17379 #include <stdio.h>
17380
17381 #ifdef RTLD_GLOBAL
17382 #  define LT_DLGLOBAL           RTLD_GLOBAL
17383 #else
17384 #  ifdef DL_GLOBAL
17385 #    define LT_DLGLOBAL         DL_GLOBAL
17386 #  else
17387 #    define LT_DLGLOBAL         0
17388 #  endif
17389 #endif
17390
17391 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17392    find out it does not work in some platform. */
17393 #ifndef LT_DLLAZY_OR_NOW
17394 #  ifdef RTLD_LAZY
17395 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17396 #  else
17397 #    ifdef DL_LAZY
17398 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17399 #    else
17400 #      ifdef RTLD_NOW
17401 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17402 #      else
17403 #        ifdef DL_NOW
17404 #          define LT_DLLAZY_OR_NOW      DL_NOW
17405 #        else
17406 #          define LT_DLLAZY_OR_NOW      0
17407 #        endif
17408 #      endif
17409 #    endif
17410 #  endif
17411 #endif
17412
17413 #ifdef __cplusplus
17414 extern "C" void exit (int);
17415 #endif
17416
17417 void fnord() { int i=42;}
17418 int main ()
17419 {
17420   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17421   int status = $lt_dlunknown;
17422
17423   if (self)
17424     {
17425       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17426       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17427       /* dlclose (self); */
17428     }
17429
17430     exit (status);
17431 }
17432 EOF
17433   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17434   (eval $ac_link) 2>&5
17435   ac_status=$?
17436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17438     (./conftest; exit; ) 2>/dev/null
17439     lt_status=$?
17440     case x$lt_status in
17441       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17442       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17443       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17444     esac
17445   else :
17446     # compilation failed
17447     lt_cv_dlopen_self=no
17448   fi
17449 fi
17450 rm -fr conftest*
17451
17452
17453 fi
17454 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17455 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17456
17457     if test "x$lt_cv_dlopen_self" = xyes; then
17458       LDFLAGS="$LDFLAGS $link_static_flag"
17459       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17460 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17461 if test "${lt_cv_dlopen_self_static+set}" = set; then
17462   echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464           if test "$cross_compiling" = yes; then :
17465   lt_cv_dlopen_self_static=cross
17466 else
17467   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17468   lt_status=$lt_dlunknown
17469   cat > conftest.$ac_ext <<EOF
17470 #line 17470 "configure"
17471 #include "confdefs.h"
17472
17473 #if HAVE_DLFCN_H
17474 #include <dlfcn.h>
17475 #endif
17476
17477 #include <stdio.h>
17478
17479 #ifdef RTLD_GLOBAL
17480 #  define LT_DLGLOBAL           RTLD_GLOBAL
17481 #else
17482 #  ifdef DL_GLOBAL
17483 #    define LT_DLGLOBAL         DL_GLOBAL
17484 #  else
17485 #    define LT_DLGLOBAL         0
17486 #  endif
17487 #endif
17488
17489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17490    find out it does not work in some platform. */
17491 #ifndef LT_DLLAZY_OR_NOW
17492 #  ifdef RTLD_LAZY
17493 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17494 #  else
17495 #    ifdef DL_LAZY
17496 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17497 #    else
17498 #      ifdef RTLD_NOW
17499 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17500 #      else
17501 #        ifdef DL_NOW
17502 #          define LT_DLLAZY_OR_NOW      DL_NOW
17503 #        else
17504 #          define LT_DLLAZY_OR_NOW      0
17505 #        endif
17506 #      endif
17507 #    endif
17508 #  endif
17509 #endif
17510
17511 #ifdef __cplusplus
17512 extern "C" void exit (int);
17513 #endif
17514
17515 void fnord() { int i=42;}
17516 int main ()
17517 {
17518   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17519   int status = $lt_dlunknown;
17520
17521   if (self)
17522     {
17523       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17524       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17525       /* dlclose (self); */
17526     }
17527
17528     exit (status);
17529 }
17530 EOF
17531   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17532   (eval $ac_link) 2>&5
17533   ac_status=$?
17534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17536     (./conftest; exit; ) 2>/dev/null
17537     lt_status=$?
17538     case x$lt_status in
17539       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17540       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17541       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17542     esac
17543   else :
17544     # compilation failed
17545     lt_cv_dlopen_self_static=no
17546   fi
17547 fi
17548 rm -fr conftest*
17549
17550
17551 fi
17552 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17553 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17554     fi
17555
17556     CPPFLAGS="$save_CPPFLAGS"
17557     LDFLAGS="$save_LDFLAGS"
17558     LIBS="$save_LIBS"
17559     ;;
17560   esac
17561
17562   case $lt_cv_dlopen_self in
17563   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17564   *) enable_dlopen_self=unknown ;;
17565   esac
17566
17567   case $lt_cv_dlopen_self_static in
17568   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17569   *) enable_dlopen_self_static=unknown ;;
17570   esac
17571 fi
17572
17573
17574 # The else clause should only fire when bootstrapping the
17575 # libtool distribution, otherwise you forgot to ship ltmain.sh
17576 # with your package, and you will get complaints that there are
17577 # no rules to generate ltmain.sh.
17578 if test -f "$ltmain"; then
17579   # See if we are running on zsh, and set the options which allow our commands through
17580   # without removal of \ escapes.
17581   if test -n "${ZSH_VERSION+set}" ; then
17582     setopt NO_GLOB_SUBST
17583   fi
17584   # Now quote all the things that may contain metacharacters while being
17585   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17586   # variables and quote the copies for generation of the libtool script.
17587   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17588     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17589     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17590     deplibs_check_method reload_flag reload_cmds need_locks \
17591     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17592     lt_cv_sys_global_symbol_to_c_name_address \
17593     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17594     old_postinstall_cmds old_postuninstall_cmds \
17595     compiler_GCJ \
17596     CC_GCJ \
17597     LD_GCJ \
17598     lt_prog_compiler_wl_GCJ \
17599     lt_prog_compiler_pic_GCJ \
17600     lt_prog_compiler_static_GCJ \
17601     lt_prog_compiler_no_builtin_flag_GCJ \
17602     export_dynamic_flag_spec_GCJ \
17603     thread_safe_flag_spec_GCJ \
17604     whole_archive_flag_spec_GCJ \
17605     enable_shared_with_static_runtimes_GCJ \
17606     old_archive_cmds_GCJ \
17607     old_archive_from_new_cmds_GCJ \
17608     predep_objects_GCJ \
17609     postdep_objects_GCJ \
17610     predeps_GCJ \
17611     postdeps_GCJ \
17612     compiler_lib_search_path_GCJ \
17613     archive_cmds_GCJ \
17614     archive_expsym_cmds_GCJ \
17615     postinstall_cmds_GCJ \
17616     postuninstall_cmds_GCJ \
17617     old_archive_from_expsyms_cmds_GCJ \
17618     allow_undefined_flag_GCJ \
17619     no_undefined_flag_GCJ \
17620     export_symbols_cmds_GCJ \
17621     hardcode_libdir_flag_spec_GCJ \
17622     hardcode_libdir_flag_spec_ld_GCJ \
17623     hardcode_libdir_separator_GCJ \
17624     hardcode_automatic_GCJ \
17625     module_cmds_GCJ \
17626     module_expsym_cmds_GCJ \
17627     lt_cv_prog_compiler_c_o_GCJ \
17628     exclude_expsyms_GCJ \
17629     include_expsyms_GCJ; do
17630
17631     case $var in
17632     old_archive_cmds_GCJ | \
17633     old_archive_from_new_cmds_GCJ | \
17634     archive_cmds_GCJ | \
17635     archive_expsym_cmds_GCJ | \
17636     module_cmds_GCJ | \
17637     module_expsym_cmds_GCJ | \
17638     old_archive_from_expsyms_cmds_GCJ | \
17639     export_symbols_cmds_GCJ | \
17640     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17641     postinstall_cmds | postuninstall_cmds | \
17642     old_postinstall_cmds | old_postuninstall_cmds | \
17643     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17644       # Double-quote double-evaled strings.
17645       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17646       ;;
17647     *)
17648       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17649       ;;
17650     esac
17651   done
17652
17653   case $lt_echo in
17654   *'\$0 --fallback-echo"')
17655     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17656     ;;
17657   esac
17658
17659 cfgfile="$ofile"
17660
17661   cat <<__EOF__ >> "$cfgfile"
17662 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17663
17664 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17665
17666 # Shell to use when invoking shell scripts.
17667 SHELL=$lt_SHELL
17668
17669 # Whether or not to build shared libraries.
17670 build_libtool_libs=$enable_shared
17671
17672 # Whether or not to build static libraries.
17673 build_old_libs=$enable_static
17674
17675 # Whether or not to add -lc for building shared libraries.
17676 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17677
17678 # Whether or not to disallow shared libs when runtime libs are static
17679 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17680
17681 # Whether or not to optimize for fast installation.
17682 fast_install=$enable_fast_install
17683
17684 # The host system.
17685 host_alias=$host_alias
17686 host=$host
17687
17688 # An echo program that does not interpret backslashes.
17689 echo=$lt_echo
17690
17691 # The archiver.
17692 AR=$lt_AR
17693 AR_FLAGS=$lt_AR_FLAGS
17694
17695 # A C compiler.
17696 LTCC=$lt_LTCC
17697
17698 # A language-specific compiler.
17699 CC=$lt_compiler_GCJ
17700
17701 # Is the compiler the GNU C compiler?
17702 with_gcc=$GCC_GCJ
17703
17704 # An ERE matcher.
17705 EGREP=$lt_EGREP
17706
17707 # The linker used to build libraries.
17708 LD=$lt_LD_GCJ
17709
17710 # Whether we need hard or soft links.
17711 LN_S=$lt_LN_S
17712
17713 # A BSD-compatible nm program.
17714 NM=$lt_NM
17715
17716 # A symbol stripping program
17717 STRIP=$STRIP
17718
17719 # Used to examine libraries when file_magic_cmd begins "file"
17720 MAGIC_CMD=$MAGIC_CMD
17721
17722 # Used on cygwin: DLL creation program.
17723 DLLTOOL="$DLLTOOL"
17724
17725 # Used on cygwin: object dumper.
17726 OBJDUMP="$OBJDUMP"
17727
17728 # Used on cygwin: assembler.
17729 AS="$AS"
17730
17731 # The name of the directory that contains temporary libtool files.
17732 objdir=$objdir
17733
17734 # How to create reloadable object files.
17735 reload_flag=$lt_reload_flag
17736 reload_cmds=$lt_reload_cmds
17737
17738 # How to pass a linker flag through the compiler.
17739 wl=$lt_lt_prog_compiler_wl_GCJ
17740
17741 # Object file suffix (normally "o").
17742 objext="$ac_objext"
17743
17744 # Old archive suffix (normally "a").
17745 libext="$libext"
17746
17747 # Shared library suffix (normally ".so").
17748 shrext='$shrext'
17749
17750 # Executable file suffix (normally "").
17751 exeext="$exeext"
17752
17753 # Additional compiler flags for building library objects.
17754 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17755 pic_mode=$pic_mode
17756
17757 # What is the maximum length of a command?
17758 max_cmd_len=$lt_cv_sys_max_cmd_len
17759
17760 # Does compiler simultaneously support -c and -o options?
17761 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17762
17763 # Must we lock files when doing compilation ?
17764 need_locks=$lt_need_locks
17765
17766 # Do we need the lib prefix for modules?
17767 need_lib_prefix=$need_lib_prefix
17768
17769 # Do we need a version for libraries?
17770 need_version=$need_version
17771
17772 # Whether dlopen is supported.
17773 dlopen_support=$enable_dlopen
17774
17775 # Whether dlopen of programs is supported.
17776 dlopen_self=$enable_dlopen_self
17777
17778 # Whether dlopen of statically linked programs is supported.
17779 dlopen_self_static=$enable_dlopen_self_static
17780
17781 # Compiler flag to prevent dynamic linking.
17782 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17783
17784 # Compiler flag to turn off builtin functions.
17785 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17786
17787 # Compiler flag to allow reflexive dlopens.
17788 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17789
17790 # Compiler flag to generate shared objects directly from archives.
17791 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17792
17793 # Compiler flag to generate thread-safe objects.
17794 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17795
17796 # Library versioning type.
17797 version_type=$version_type
17798
17799 # Format of library name prefix.
17800 libname_spec=$lt_libname_spec
17801
17802 # List of archive names.  First name is the real one, the rest are links.
17803 # The last name is the one that the linker finds with -lNAME.
17804 library_names_spec=$lt_library_names_spec
17805
17806 # The coded name of the library, if different from the real name.
17807 soname_spec=$lt_soname_spec
17808
17809 # Commands used to build and install an old-style archive.
17810 RANLIB=$lt_RANLIB
17811 old_archive_cmds=$lt_old_archive_cmds_GCJ
17812 old_postinstall_cmds=$lt_old_postinstall_cmds
17813 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17814
17815 # Create an old-style archive from a shared archive.
17816 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17817
17818 # Create a temporary old-style archive to link instead of a shared archive.
17819 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17820
17821 # Commands used to build and install a shared archive.
17822 archive_cmds=$lt_archive_cmds_GCJ
17823 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17824 postinstall_cmds=$lt_postinstall_cmds
17825 postuninstall_cmds=$lt_postuninstall_cmds
17826
17827 # Commands used to build a loadable module (assumed same as above if empty)
17828 module_cmds=$lt_module_cmds_GCJ
17829 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17830
17831 # Commands to strip libraries.
17832 old_striplib=$lt_old_striplib
17833 striplib=$lt_striplib
17834
17835 # Dependencies to place before the objects being linked to create a
17836 # shared library.
17837 predep_objects=$lt_predep_objects_GCJ
17838
17839 # Dependencies to place after the objects being linked to create a
17840 # shared library.
17841 postdep_objects=$lt_postdep_objects_GCJ
17842
17843 # Dependencies to place before the objects being linked to create a
17844 # shared library.
17845 predeps=$lt_predeps_GCJ
17846
17847 # Dependencies to place after the objects being linked to create a
17848 # shared library.
17849 postdeps=$lt_postdeps_GCJ
17850
17851 # The library search path used internally by the compiler when linking
17852 # a shared library.
17853 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17854
17855 # Method to check whether dependent libraries are shared objects.
17856 deplibs_check_method=$lt_deplibs_check_method
17857
17858 # Command to use when deplibs_check_method == file_magic.
17859 file_magic_cmd=$lt_file_magic_cmd
17860
17861 # Flag that allows shared libraries with undefined symbols to be built.
17862 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17863
17864 # Flag that forces no undefined symbols.
17865 no_undefined_flag=$lt_no_undefined_flag_GCJ
17866
17867 # Commands used to finish a libtool library installation in a directory.
17868 finish_cmds=$lt_finish_cmds
17869
17870 # Same as above, but a single script fragment to be evaled but not shown.
17871 finish_eval=$lt_finish_eval
17872
17873 # Take the output of nm and produce a listing of raw symbols and C names.
17874 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17875
17876 # Transform the output of nm in a proper C declaration
17877 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17878
17879 # Transform the output of nm in a C name address pair
17880 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17881
17882 # This is the shared library runtime path variable.
17883 runpath_var=$runpath_var
17884
17885 # This is the shared library path variable.
17886 shlibpath_var=$shlibpath_var
17887
17888 # Is shlibpath searched before the hard-coded library search path?
17889 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17890
17891 # How to hardcode a shared library path into an executable.
17892 hardcode_action=$hardcode_action_GCJ
17893
17894 # Whether we should hardcode library paths into libraries.
17895 hardcode_into_libs=$hardcode_into_libs
17896
17897 # Flag to hardcode \$libdir into a binary during linking.
17898 # This must work even if \$libdir does not exist.
17899 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17900
17901 # If ld is used when linking, flag to hardcode \$libdir into
17902 # a binary during linking. This must work even if \$libdir does
17903 # not exist.
17904 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17905
17906 # Whether we need a single -rpath flag with a separated argument.
17907 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17908
17909 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17910 # resulting binary.
17911 hardcode_direct=$hardcode_direct_GCJ
17912
17913 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17914 # resulting binary.
17915 hardcode_minus_L=$hardcode_minus_L_GCJ
17916
17917 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17918 # the resulting binary.
17919 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17920
17921 # Set to yes if building a shared library automatically hardcodes DIR into the library
17922 # and all subsequent libraries and executables linked against it.
17923 hardcode_automatic=$hardcode_automatic_GCJ
17924
17925 # Variables whose values should be saved in libtool wrapper scripts and
17926 # restored at relink time.
17927 variables_saved_for_relink="$variables_saved_for_relink"
17928
17929 # Whether libtool must link a program against all its dependency libraries.
17930 link_all_deplibs=$link_all_deplibs_GCJ
17931
17932 # Compile-time system search path for libraries
17933 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17934
17935 # Run-time system search path for libraries
17936 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17937
17938 # Fix the shell variable \$srcfile for the compiler.
17939 fix_srcfile_path="$fix_srcfile_path_GCJ"
17940
17941 # Set to yes if exported symbols are required.
17942 always_export_symbols=$always_export_symbols_GCJ
17943
17944 # The commands to list exported symbols.
17945 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17946
17947 # The commands to extract the exported symbol list from a shared archive.
17948 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17949
17950 # Symbols that should not be listed in the preloaded symbols.
17951 exclude_expsyms=$lt_exclude_expsyms_GCJ
17952
17953 # Symbols that must always be exported.
17954 include_expsyms=$lt_include_expsyms_GCJ
17955
17956 # ### END LIBTOOL TAG CONFIG: $tagname
17957
17958 __EOF__
17959
17960
17961 else
17962   # If there is no Makefile yet, we rely on a make rule to execute
17963   # `config.status --recheck' to rerun these tests and create the
17964   # libtool script then.
17965   test -f Makefile && make "$ltmain"
17966 fi
17967
17968
17969 ac_ext=c
17970 ac_cpp='$CPP $CPPFLAGS'
17971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17974
17975 CC="$lt_save_CC"
17976
17977         else
17978           tagname=""
17979         fi
17980         ;;
17981
17982       RC)
17983
17984
17985
17986 # Source file extension for RC test sources.
17987 ac_ext=rc
17988
17989 # Object file extension for compiled RC test sources.
17990 objext=o
17991 objext_RC=$objext
17992
17993 # Code to be used in simple compile tests
17994 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17995
17996 # Code to be used in simple link tests
17997 lt_simple_link_test_code="$lt_simple_compile_test_code"
17998
17999 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18000
18001 # If no C compiler was specified, use CC.
18002 LTCC=${LTCC-"$CC"}
18003
18004 # Allow CC to be a program name with arguments.
18005 compiler=$CC
18006
18007
18008 # Allow CC to be a program name with arguments.
18009 lt_save_CC="$CC"
18010 CC=${RC-"windres"}
18011 compiler=$CC
18012 compiler_RC=$CC
18013 lt_cv_prog_compiler_c_o_RC=yes
18014
18015 # The else clause should only fire when bootstrapping the
18016 # libtool distribution, otherwise you forgot to ship ltmain.sh
18017 # with your package, and you will get complaints that there are
18018 # no rules to generate ltmain.sh.
18019 if test -f "$ltmain"; then
18020   # See if we are running on zsh, and set the options which allow our commands through
18021   # without removal of \ escapes.
18022   if test -n "${ZSH_VERSION+set}" ; then
18023     setopt NO_GLOB_SUBST
18024   fi
18025   # Now quote all the things that may contain metacharacters while being
18026   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18027   # variables and quote the copies for generation of the libtool script.
18028   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18029     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18030     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18031     deplibs_check_method reload_flag reload_cmds need_locks \
18032     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18033     lt_cv_sys_global_symbol_to_c_name_address \
18034     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18035     old_postinstall_cmds old_postuninstall_cmds \
18036     compiler_RC \
18037     CC_RC \
18038     LD_RC \
18039     lt_prog_compiler_wl_RC \
18040     lt_prog_compiler_pic_RC \
18041     lt_prog_compiler_static_RC \
18042     lt_prog_compiler_no_builtin_flag_RC \
18043     export_dynamic_flag_spec_RC \
18044     thread_safe_flag_spec_RC \
18045     whole_archive_flag_spec_RC \
18046     enable_shared_with_static_runtimes_RC \
18047     old_archive_cmds_RC \
18048     old_archive_from_new_cmds_RC \
18049     predep_objects_RC \
18050     postdep_objects_RC \
18051     predeps_RC \
18052     postdeps_RC \
18053     compiler_lib_search_path_RC \
18054     archive_cmds_RC \
18055     archive_expsym_cmds_RC \
18056     postinstall_cmds_RC \
18057     postuninstall_cmds_RC \
18058     old_archive_from_expsyms_cmds_RC \
18059     allow_undefined_flag_RC \
18060     no_undefined_flag_RC \
18061     export_symbols_cmds_RC \
18062     hardcode_libdir_flag_spec_RC \
18063     hardcode_libdir_flag_spec_ld_RC \
18064     hardcode_libdir_separator_RC \
18065     hardcode_automatic_RC \
18066     module_cmds_RC \
18067     module_expsym_cmds_RC \
18068     lt_cv_prog_compiler_c_o_RC \
18069     exclude_expsyms_RC \
18070     include_expsyms_RC; do
18071
18072     case $var in
18073     old_archive_cmds_RC | \
18074     old_archive_from_new_cmds_RC | \
18075     archive_cmds_RC | \
18076     archive_expsym_cmds_RC | \
18077     module_cmds_RC | \
18078     module_expsym_cmds_RC | \
18079     old_archive_from_expsyms_cmds_RC | \
18080     export_symbols_cmds_RC | \
18081     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18082     postinstall_cmds | postuninstall_cmds | \
18083     old_postinstall_cmds | old_postuninstall_cmds | \
18084     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18085       # Double-quote double-evaled strings.
18086       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18087       ;;
18088     *)
18089       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18090       ;;
18091     esac
18092   done
18093
18094   case $lt_echo in
18095   *'\$0 --fallback-echo"')
18096     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18097     ;;
18098   esac
18099
18100 cfgfile="$ofile"
18101
18102   cat <<__EOF__ >> "$cfgfile"
18103 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18104
18105 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18106
18107 # Shell to use when invoking shell scripts.
18108 SHELL=$lt_SHELL
18109
18110 # Whether or not to build shared libraries.
18111 build_libtool_libs=$enable_shared
18112
18113 # Whether or not to build static libraries.
18114 build_old_libs=$enable_static
18115
18116 # Whether or not to add -lc for building shared libraries.
18117 build_libtool_need_lc=$archive_cmds_need_lc_RC
18118
18119 # Whether or not to disallow shared libs when runtime libs are static
18120 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18121
18122 # Whether or not to optimize for fast installation.
18123 fast_install=$enable_fast_install
18124
18125 # The host system.
18126 host_alias=$host_alias
18127 host=$host
18128
18129 # An echo program that does not interpret backslashes.
18130 echo=$lt_echo
18131
18132 # The archiver.
18133 AR=$lt_AR
18134 AR_FLAGS=$lt_AR_FLAGS
18135
18136 # A C compiler.
18137 LTCC=$lt_LTCC
18138
18139 # A language-specific compiler.
18140 CC=$lt_compiler_RC
18141
18142 # Is the compiler the GNU C compiler?
18143 with_gcc=$GCC_RC
18144
18145 # An ERE matcher.
18146 EGREP=$lt_EGREP
18147
18148 # The linker used to build libraries.
18149 LD=$lt_LD_RC
18150
18151 # Whether we need hard or soft links.
18152 LN_S=$lt_LN_S
18153
18154 # A BSD-compatible nm program.
18155 NM=$lt_NM
18156
18157 # A symbol stripping program
18158 STRIP=$STRIP
18159
18160 # Used to examine libraries when file_magic_cmd begins "file"
18161 MAGIC_CMD=$MAGIC_CMD
18162
18163 # Used on cygwin: DLL creation program.
18164 DLLTOOL="$DLLTOOL"
18165
18166 # Used on cygwin: object dumper.
18167 OBJDUMP="$OBJDUMP"
18168
18169 # Used on cygwin: assembler.
18170 AS="$AS"
18171
18172 # The name of the directory that contains temporary libtool files.
18173 objdir=$objdir
18174
18175 # How to create reloadable object files.
18176 reload_flag=$lt_reload_flag
18177 reload_cmds=$lt_reload_cmds
18178
18179 # How to pass a linker flag through the compiler.
18180 wl=$lt_lt_prog_compiler_wl_RC
18181
18182 # Object file suffix (normally "o").
18183 objext="$ac_objext"
18184
18185 # Old archive suffix (normally "a").
18186 libext="$libext"
18187
18188 # Shared library suffix (normally ".so").
18189 shrext='$shrext'
18190
18191 # Executable file suffix (normally "").
18192 exeext="$exeext"
18193
18194 # Additional compiler flags for building library objects.
18195 pic_flag=$lt_lt_prog_compiler_pic_RC
18196 pic_mode=$pic_mode
18197
18198 # What is the maximum length of a command?
18199 max_cmd_len=$lt_cv_sys_max_cmd_len
18200
18201 # Does compiler simultaneously support -c and -o options?
18202 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18203
18204 # Must we lock files when doing compilation ?
18205 need_locks=$lt_need_locks
18206
18207 # Do we need the lib prefix for modules?
18208 need_lib_prefix=$need_lib_prefix
18209
18210 # Do we need a version for libraries?
18211 need_version=$need_version
18212
18213 # Whether dlopen is supported.
18214 dlopen_support=$enable_dlopen
18215
18216 # Whether dlopen of programs is supported.
18217 dlopen_self=$enable_dlopen_self
18218
18219 # Whether dlopen of statically linked programs is supported.
18220 dlopen_self_static=$enable_dlopen_self_static
18221
18222 # Compiler flag to prevent dynamic linking.
18223 link_static_flag=$lt_lt_prog_compiler_static_RC
18224
18225 # Compiler flag to turn off builtin functions.
18226 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18227
18228 # Compiler flag to allow reflexive dlopens.
18229 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18230
18231 # Compiler flag to generate shared objects directly from archives.
18232 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18233
18234 # Compiler flag to generate thread-safe objects.
18235 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18236
18237 # Library versioning type.
18238 version_type=$version_type
18239
18240 # Format of library name prefix.
18241 libname_spec=$lt_libname_spec
18242
18243 # List of archive names.  First name is the real one, the rest are links.
18244 # The last name is the one that the linker finds with -lNAME.
18245 library_names_spec=$lt_library_names_spec
18246
18247 # The coded name of the library, if different from the real name.
18248 soname_spec=$lt_soname_spec
18249
18250 # Commands used to build and install an old-style archive.
18251 RANLIB=$lt_RANLIB
18252 old_archive_cmds=$lt_old_archive_cmds_RC
18253 old_postinstall_cmds=$lt_old_postinstall_cmds
18254 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18255
18256 # Create an old-style archive from a shared archive.
18257 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18258
18259 # Create a temporary old-style archive to link instead of a shared archive.
18260 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18261
18262 # Commands used to build and install a shared archive.
18263 archive_cmds=$lt_archive_cmds_RC
18264 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18265 postinstall_cmds=$lt_postinstall_cmds
18266 postuninstall_cmds=$lt_postuninstall_cmds
18267
18268 # Commands used to build a loadable module (assumed same as above if empty)
18269 module_cmds=$lt_module_cmds_RC
18270 module_expsym_cmds=$lt_module_expsym_cmds_RC
18271
18272 # Commands to strip libraries.
18273 old_striplib=$lt_old_striplib
18274 striplib=$lt_striplib
18275
18276 # Dependencies to place before the objects being linked to create a
18277 # shared library.
18278 predep_objects=$lt_predep_objects_RC
18279
18280 # Dependencies to place after the objects being linked to create a
18281 # shared library.
18282 postdep_objects=$lt_postdep_objects_RC
18283
18284 # Dependencies to place before the objects being linked to create a
18285 # shared library.
18286 predeps=$lt_predeps_RC
18287
18288 # Dependencies to place after the objects being linked to create a
18289 # shared library.
18290 postdeps=$lt_postdeps_RC
18291
18292 # The library search path used internally by the compiler when linking
18293 # a shared library.
18294 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18295
18296 # Method to check whether dependent libraries are shared objects.
18297 deplibs_check_method=$lt_deplibs_check_method
18298
18299 # Command to use when deplibs_check_method == file_magic.
18300 file_magic_cmd=$lt_file_magic_cmd
18301
18302 # Flag that allows shared libraries with undefined symbols to be built.
18303 allow_undefined_flag=$lt_allow_undefined_flag_RC
18304
18305 # Flag that forces no undefined symbols.
18306 no_undefined_flag=$lt_no_undefined_flag_RC
18307
18308 # Commands used to finish a libtool library installation in a directory.
18309 finish_cmds=$lt_finish_cmds
18310
18311 # Same as above, but a single script fragment to be evaled but not shown.
18312 finish_eval=$lt_finish_eval
18313
18314 # Take the output of nm and produce a listing of raw symbols and C names.
18315 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18316
18317 # Transform the output of nm in a proper C declaration
18318 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18319
18320 # Transform the output of nm in a C name address pair
18321 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18322
18323 # This is the shared library runtime path variable.
18324 runpath_var=$runpath_var
18325
18326 # This is the shared library path variable.
18327 shlibpath_var=$shlibpath_var
18328
18329 # Is shlibpath searched before the hard-coded library search path?
18330 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18331
18332 # How to hardcode a shared library path into an executable.
18333 hardcode_action=$hardcode_action_RC
18334
18335 # Whether we should hardcode library paths into libraries.
18336 hardcode_into_libs=$hardcode_into_libs
18337
18338 # Flag to hardcode \$libdir into a binary during linking.
18339 # This must work even if \$libdir does not exist.
18340 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18341
18342 # If ld is used when linking, flag to hardcode \$libdir into
18343 # a binary during linking. This must work even if \$libdir does
18344 # not exist.
18345 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18346
18347 # Whether we need a single -rpath flag with a separated argument.
18348 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18349
18350 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18351 # resulting binary.
18352 hardcode_direct=$hardcode_direct_RC
18353
18354 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18355 # resulting binary.
18356 hardcode_minus_L=$hardcode_minus_L_RC
18357
18358 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18359 # the resulting binary.
18360 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18361
18362 # Set to yes if building a shared library automatically hardcodes DIR into the library
18363 # and all subsequent libraries and executables linked against it.
18364 hardcode_automatic=$hardcode_automatic_RC
18365
18366 # Variables whose values should be saved in libtool wrapper scripts and
18367 # restored at relink time.
18368 variables_saved_for_relink="$variables_saved_for_relink"
18369
18370 # Whether libtool must link a program against all its dependency libraries.
18371 link_all_deplibs=$link_all_deplibs_RC
18372
18373 # Compile-time system search path for libraries
18374 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18375
18376 # Run-time system search path for libraries
18377 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18378
18379 # Fix the shell variable \$srcfile for the compiler.
18380 fix_srcfile_path="$fix_srcfile_path_RC"
18381
18382 # Set to yes if exported symbols are required.
18383 always_export_symbols=$always_export_symbols_RC
18384
18385 # The commands to list exported symbols.
18386 export_symbols_cmds=$lt_export_symbols_cmds_RC
18387
18388 # The commands to extract the exported symbol list from a shared archive.
18389 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18390
18391 # Symbols that should not be listed in the preloaded symbols.
18392 exclude_expsyms=$lt_exclude_expsyms_RC
18393
18394 # Symbols that must always be exported.
18395 include_expsyms=$lt_include_expsyms_RC
18396
18397 # ### END LIBTOOL TAG CONFIG: $tagname
18398
18399 __EOF__
18400
18401
18402 else
18403   # If there is no Makefile yet, we rely on a make rule to execute
18404   # `config.status --recheck' to rerun these tests and create the
18405   # libtool script then.
18406   test -f Makefile && make "$ltmain"
18407 fi
18408
18409
18410 ac_ext=c
18411 ac_cpp='$CPP $CPPFLAGS'
18412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18415
18416 CC="$lt_save_CC"
18417
18418         ;;
18419
18420       *)
18421         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18422 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18423    { (exit 1); exit 1; }; }
18424         ;;
18425       esac
18426
18427       # Append the new tag name to the list of available tags.
18428       if test -n "$tagname" ; then
18429       available_tags="$available_tags $tagname"
18430     fi
18431     fi
18432   done
18433   IFS="$lt_save_ifs"
18434
18435   # Now substitute the updated list of available tags.
18436   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18437     mv "${ofile}T" "$ofile"
18438     chmod +x "$ofile"
18439   else
18440     rm -f "${ofile}T"
18441     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18442 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18443    { (exit 1); exit 1; }; }
18444   fi
18445 fi
18446
18447
18448
18449 # This can be used to rebuild libtool when needed
18450 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18451
18452 # Always use our own libtool.
18453 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18454
18455 # Prevent multiple expansion
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477 # Extract the first word of "pwd", so it can be a program name with args.
18478 set dummy pwd; ac_word=$2
18479 echo "$as_me:$LINENO: checking for $ac_word" >&5
18480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18481 if test "${ac_cv_path_RPWD+set}" = set; then
18482   echo $ECHO_N "(cached) $ECHO_C" >&6
18483 else
18484   case $RPWD in
18485   [\\/]* | ?:[\\/]*)
18486   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18487   ;;
18488   *)
18489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18490 for as_dir in $PATH
18491 do
18492   IFS=$as_save_IFS
18493   test -z "$as_dir" && as_dir=.
18494   for ac_exec_ext in '' $ac_executable_extensions; do
18495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18496     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18498     break 2
18499   fi
18500 done
18501 done
18502
18503   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18504   ;;
18505 esac
18506 fi
18507 RPWD=$ac_cv_path_RPWD
18508
18509 if test -n "$RPWD"; then
18510   echo "$as_me:$LINENO: result: $RPWD" >&5
18511 echo "${ECHO_T}$RPWD" >&6
18512 else
18513   echo "$as_me:$LINENO: result: no" >&5
18514 echo "${ECHO_T}no" >&6
18515 fi
18516
18517 if test ${RPWD} = "false"
18518 then
18519         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18520 echo "$as_me: error: pwd required but not found" >&2;}
18521    { (exit 1); exit 1; }; }
18522 fi
18523
18524 # Extract the first word of "ar", so it can be a program name with args.
18525 set dummy ar; ac_word=$2
18526 echo "$as_me:$LINENO: checking for $ac_word" >&5
18527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18528 if test "${ac_cv_path_AR+set}" = set; then
18529   echo $ECHO_N "(cached) $ECHO_C" >&6
18530 else
18531   case $AR in
18532   [\\/]* | ?:[\\/]*)
18533   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18534   ;;
18535   *)
18536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18537 for as_dir in $PATH
18538 do
18539   IFS=$as_save_IFS
18540   test -z "$as_dir" && as_dir=.
18541   for ac_exec_ext in '' $ac_executable_extensions; do
18542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18543     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18545     break 2
18546   fi
18547 done
18548 done
18549
18550   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18551   ;;
18552 esac
18553 fi
18554 AR=$ac_cv_path_AR
18555
18556 if test -n "$AR"; then
18557   echo "$as_me:$LINENO: result: $AR" >&5
18558 echo "${ECHO_T}$AR" >&6
18559 else
18560   echo "$as_me:$LINENO: result: no" >&5
18561 echo "${ECHO_T}no" >&6
18562 fi
18563
18564 if test ${AR} = "false"
18565 then
18566         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18567 echo "$as_me: error: ar required but not found" >&2;}
18568    { (exit 1); exit 1; }; }
18569 fi
18570
18571 # Extract the first word of "sed", so it can be a program name with args.
18572 set dummy sed; ac_word=$2
18573 echo "$as_me:$LINENO: checking for $ac_word" >&5
18574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18575 if test "${ac_cv_path_SED+set}" = set; then
18576   echo $ECHO_N "(cached) $ECHO_C" >&6
18577 else
18578   case $SED in
18579   [\\/]* | ?:[\\/]*)
18580   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18581   ;;
18582   *)
18583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18584 for as_dir in $PATH
18585 do
18586   IFS=$as_save_IFS
18587   test -z "$as_dir" && as_dir=.
18588   for ac_exec_ext in '' $ac_executable_extensions; do
18589   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18590     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18592     break 2
18593   fi
18594 done
18595 done
18596
18597   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18598   ;;
18599 esac
18600 fi
18601 SED=$ac_cv_path_SED
18602
18603 if test -n "$SED"; then
18604   echo "$as_me:$LINENO: result: $SED" >&5
18605 echo "${ECHO_T}$SED" >&6
18606 else
18607   echo "$as_me:$LINENO: result: no" >&5
18608 echo "${ECHO_T}no" >&6
18609 fi
18610
18611 if test ${SED} = "false"
18612 then
18613         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18614 echo "$as_me: error: sed required but not found" >&2;}
18615    { (exit 1); exit 1; }; }
18616 fi
18617
18618 # Extract the first word of "rm", so it can be a program name with args.
18619 set dummy rm; ac_word=$2
18620 echo "$as_me:$LINENO: checking for $ac_word" >&5
18621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18622 if test "${ac_cv_path_RM+set}" = set; then
18623   echo $ECHO_N "(cached) $ECHO_C" >&6
18624 else
18625   case $RM in
18626   [\\/]* | ?:[\\/]*)
18627   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18628   ;;
18629   *)
18630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18631 for as_dir in $PATH
18632 do
18633   IFS=$as_save_IFS
18634   test -z "$as_dir" && as_dir=.
18635   for ac_exec_ext in '' $ac_executable_extensions; do
18636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18637     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18639     break 2
18640   fi
18641 done
18642 done
18643
18644   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18645   ;;
18646 esac
18647 fi
18648 RM=$ac_cv_path_RM
18649
18650 if test -n "$RM"; then
18651   echo "$as_me:$LINENO: result: $RM" >&5
18652 echo "${ECHO_T}$RM" >&6
18653 else
18654   echo "$as_me:$LINENO: result: no" >&5
18655 echo "${ECHO_T}no" >&6
18656 fi
18657
18658 if test ${RM} = "false"
18659 then
18660         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18661 echo "$as_me: error: rm required but not found" >&2;}
18662    { (exit 1); exit 1; }; }
18663 fi
18664
18665 # Extract the first word of "echo", so it can be a program name with args.
18666 set dummy echo; ac_word=$2
18667 echo "$as_me:$LINENO: checking for $ac_word" >&5
18668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18669 if test "${ac_cv_path_ECHO+set}" = set; then
18670   echo $ECHO_N "(cached) $ECHO_C" >&6
18671 else
18672   case $ECHO in
18673   [\\/]* | ?:[\\/]*)
18674   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18675   ;;
18676   *)
18677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18678 for as_dir in $PATH
18679 do
18680   IFS=$as_save_IFS
18681   test -z "$as_dir" && as_dir=.
18682   for ac_exec_ext in '' $ac_executable_extensions; do
18683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18684     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18686     break 2
18687   fi
18688 done
18689 done
18690
18691   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18692   ;;
18693 esac
18694 fi
18695 ECHO=$ac_cv_path_ECHO
18696
18697 if test -n "$ECHO"; then
18698   echo "$as_me:$LINENO: result: $ECHO" >&5
18699 echo "${ECHO_T}$ECHO" >&6
18700 else
18701   echo "$as_me:$LINENO: result: no" >&5
18702 echo "${ECHO_T}no" >&6
18703 fi
18704
18705 if test ${ECHO} = "false"
18706 then
18707         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18708 echo "$as_me: error: echo required but not found" >&2;}
18709    { (exit 1); exit 1; }; }
18710 fi
18711
18712 # Extract the first word of "mkdir", so it can be a program name with args.
18713 set dummy mkdir; ac_word=$2
18714 echo "$as_me:$LINENO: checking for $ac_word" >&5
18715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18716 if test "${ac_cv_path_MKDIR+set}" = set; then
18717   echo $ECHO_N "(cached) $ECHO_C" >&6
18718 else
18719   case $MKDIR in
18720   [\\/]* | ?:[\\/]*)
18721   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18722   ;;
18723   *)
18724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18725 for as_dir in $PATH
18726 do
18727   IFS=$as_save_IFS
18728   test -z "$as_dir" && as_dir=.
18729   for ac_exec_ext in '' $ac_executable_extensions; do
18730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18731     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18733     break 2
18734   fi
18735 done
18736 done
18737
18738   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18739   ;;
18740 esac
18741 fi
18742 MKDIR=$ac_cv_path_MKDIR
18743
18744 if test -n "$MKDIR"; then
18745   echo "$as_me:$LINENO: result: $MKDIR" >&5
18746 echo "${ECHO_T}$MKDIR" >&6
18747 else
18748   echo "$as_me:$LINENO: result: no" >&5
18749 echo "${ECHO_T}no" >&6
18750 fi
18751
18752 if test ${MKDIR} = "false"
18753 then
18754         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18755 echo "$as_me: error: mkdir required but not found" >&2;}
18756    { (exit 1); exit 1; }; }
18757 fi
18758
18759 # Extract the first word of "date", so it can be a program name with args.
18760 set dummy date; ac_word=$2
18761 echo "$as_me:$LINENO: checking for $ac_word" >&5
18762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18763 if test "${ac_cv_path_DATE+set}" = set; then
18764   echo $ECHO_N "(cached) $ECHO_C" >&6
18765 else
18766   case $DATE in
18767   [\\/]* | ?:[\\/]*)
18768   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18769   ;;
18770   *)
18771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18772 for as_dir in $PATH
18773 do
18774   IFS=$as_save_IFS
18775   test -z "$as_dir" && as_dir=.
18776   for ac_exec_ext in '' $ac_executable_extensions; do
18777   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18778     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18780     break 2
18781   fi
18782 done
18783 done
18784
18785   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18786   ;;
18787 esac
18788 fi
18789 DATE=$ac_cv_path_DATE
18790
18791 if test -n "$DATE"; then
18792   echo "$as_me:$LINENO: result: $DATE" >&5
18793 echo "${ECHO_T}$DATE" >&6
18794 else
18795   echo "$as_me:$LINENO: result: no" >&5
18796 echo "${ECHO_T}no" >&6
18797 fi
18798
18799 if test ${DATE} = "false"
18800 then
18801         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18802 echo "$as_me: error: date required but not found" >&2;}
18803    { (exit 1); exit 1; }; }
18804 fi
18805
18806 # Extract the first word of "mv", so it can be a program name with args.
18807 set dummy mv; ac_word=$2
18808 echo "$as_me:$LINENO: checking for $ac_word" >&5
18809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18810 if test "${ac_cv_path_MV+set}" = set; then
18811   echo $ECHO_N "(cached) $ECHO_C" >&6
18812 else
18813   case $MV in
18814   [\\/]* | ?:[\\/]*)
18815   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18816   ;;
18817   *)
18818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18819 for as_dir in $PATH
18820 do
18821   IFS=$as_save_IFS
18822   test -z "$as_dir" && as_dir=.
18823   for ac_exec_ext in '' $ac_executable_extensions; do
18824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18825     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18827     break 2
18828   fi
18829 done
18830 done
18831
18832   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18833   ;;
18834 esac
18835 fi
18836 MV=$ac_cv_path_MV
18837
18838 if test -n "$MV"; then
18839   echo "$as_me:$LINENO: result: $MV" >&5
18840 echo "${ECHO_T}$MV" >&6
18841 else
18842   echo "$as_me:$LINENO: result: no" >&5
18843 echo "${ECHO_T}no" >&6
18844 fi
18845
18846 if test ${MV} = "false"
18847 then
18848         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18849 echo "$as_me: error: mv required but not found" >&2;}
18850    { (exit 1); exit 1; }; }
18851 fi
18852
18853 # Extract the first word of "dot", so it can be a program name with args.
18854 set dummy dot; ac_word=$2
18855 echo "$as_me:$LINENO: checking for $ac_word" >&5
18856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18857 if test "${ac_cv_path_DOT+set}" = set; then
18858   echo $ECHO_N "(cached) $ECHO_C" >&6
18859 else
18860   case $DOT in
18861   [\\/]* | ?:[\\/]*)
18862   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18863   ;;
18864   *)
18865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18866 for as_dir in $PATH
18867 do
18868   IFS=$as_save_IFS
18869   test -z "$as_dir" && as_dir=.
18870   for ac_exec_ext in '' $ac_executable_extensions; do
18871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18872     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18874     break 2
18875   fi
18876 done
18877 done
18878
18879   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18880   ;;
18881 esac
18882 fi
18883 DOT=$ac_cv_path_DOT
18884
18885 if test -n "$DOT"; then
18886   echo "$as_me:$LINENO: result: $DOT" >&5
18887 echo "${ECHO_T}$DOT" >&6
18888 else
18889   echo "$as_me:$LINENO: result: no" >&5
18890 echo "${ECHO_T}no" >&6
18891 fi
18892
18893
18894 # Extract the first word of "etags", so it can be a program name with args.
18895 set dummy etags; ac_word=$2
18896 echo "$as_me:$LINENO: checking for $ac_word" >&5
18897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18898 if test "${ac_cv_path_ETAGS+set}" = set; then
18899   echo $ECHO_N "(cached) $ECHO_C" >&6
18900 else
18901   case $ETAGS in
18902   [\\/]* | ?:[\\/]*)
18903   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18904   ;;
18905   *)
18906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18907 for as_dir in $PATH
18908 do
18909   IFS=$as_save_IFS
18910   test -z "$as_dir" && as_dir=.
18911   for ac_exec_ext in '' $ac_executable_extensions; do
18912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18913     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18915     break 2
18916   fi
18917 done
18918 done
18919
18920   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18921   ;;
18922 esac
18923 fi
18924 ETAGS=$ac_cv_path_ETAGS
18925
18926 if test -n "$ETAGS"; then
18927   echo "$as_me:$LINENO: result: $ETAGS" >&5
18928 echo "${ECHO_T}$ETAGS" >&6
18929 else
18930   echo "$as_me:$LINENO: result: no" >&5
18931 echo "${ECHO_T}no" >&6
18932 fi
18933
18934
18935 # Extract the first word of "python", so it can be a program name with args.
18936 set dummy python; ac_word=$2
18937 echo "$as_me:$LINENO: checking for $ac_word" >&5
18938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18939 if test "${ac_cv_path_PYTHON+set}" = set; then
18940   echo $ECHO_N "(cached) $ECHO_C" >&6
18941 else
18942   case $PYTHON in
18943   [\\/]* | ?:[\\/]*)
18944   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18945   ;;
18946   *)
18947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18948 for as_dir in $PATH
18949 do
18950   IFS=$as_save_IFS
18951   test -z "$as_dir" && as_dir=.
18952   for ac_exec_ext in '' $ac_executable_extensions; do
18953   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18954     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18956     break 2
18957   fi
18958 done
18959 done
18960
18961   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18962   ;;
18963 esac
18964 fi
18965 PYTHON=$ac_cv_path_PYTHON
18966
18967 if test -n "$PYTHON"; then
18968   echo "$as_me:$LINENO: result: $PYTHON" >&5
18969 echo "${ECHO_T}$PYTHON" >&6
18970 else
18971   echo "$as_me:$LINENO: result: no" >&5
18972 echo "${ECHO_T}no" >&6
18973 fi
18974
18975 if test ${PYTHON} = "false"
18976 then
18977         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18978 echo "$as_me: WARNING: python required but not found" >&2;}
18979 fi
18980
18981 # Extract the first word of "qmtest", so it can be a program name with args.
18982 set dummy qmtest; ac_word=$2
18983 echo "$as_me:$LINENO: checking for $ac_word" >&5
18984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18985 if test "${ac_cv_path_QMTEST+set}" = set; then
18986   echo $ECHO_N "(cached) $ECHO_C" >&6
18987 else
18988   case $QMTEST in
18989   [\\/]* | ?:[\\/]*)
18990   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18991   ;;
18992   *)
18993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18994 for as_dir in $PATH
18995 do
18996   IFS=$as_save_IFS
18997   test -z "$as_dir" && as_dir=.
18998   for ac_exec_ext in '' $ac_executable_extensions; do
18999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19000     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19002     break 2
19003   fi
19004 done
19005 done
19006
19007   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
19008   ;;
19009 esac
19010 fi
19011 QMTEST=$ac_cv_path_QMTEST
19012
19013 if test -n "$QMTEST"; then
19014   echo "$as_me:$LINENO: result: $QMTEST" >&5
19015 echo "${ECHO_T}$QMTEST" >&6
19016 else
19017   echo "$as_me:$LINENO: result: no" >&5
19018 echo "${ECHO_T}no" >&6
19019 fi
19020
19021 if test ${QMTEST} = "false"
19022 then
19023         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19024 echo "$as_me: WARNING: qmtest required but not found" >&2;}
19025 fi
19026
19027 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19028 pymajor=`echo $pyversion | cut -d. -f1`
19029 pyminor=`echo $pyversion | cut -d. -f2`
19030
19031 if test "$pymajor" -ge "2"
19032 then
19033         if test "$pymajor" -eq "2"
19034         then
19035                 if test "$pyminor" -lt "2"
19036                 then
19037                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19038 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19039    { (exit 1); exit 1; }; }
19040                 fi
19041         fi
19042 else
19043         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19044 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19045    { (exit 1); exit 1; }; }
19046 fi
19047
19048
19049
19050
19051
19052 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19053 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19054 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19055   echo $ECHO_N "(cached) $ECHO_C" >&6
19056 else
19057   ac_check_lib_save_LIBS=$LIBS
19058 LIBS="-lelf  $LIBS"
19059 cat >conftest.$ac_ext <<_ACEOF
19060 #line $LINENO "configure"
19061 /* confdefs.h.  */
19062 _ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h.  */
19066
19067 /* Override any gcc2 internal prototype to avoid an error.  */
19068 #ifdef __cplusplus
19069 extern "C"
19070 #endif
19071 /* We use char because int might match the return type of a gcc2
19072    builtin and then its argument prototype would still apply.  */
19073 char elf_begin ();
19074 int
19075 main ()
19076 {
19077 elf_begin ();
19078   ;
19079   return 0;
19080 }
19081 _ACEOF
19082 rm -f conftest.$ac_objext conftest$ac_exeext
19083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19084   (eval $ac_link) 2>&5
19085   ac_status=$?
19086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087   (exit $ac_status); } &&
19088          { ac_try='test -s conftest$ac_exeext'
19089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19090   (eval $ac_try) 2>&5
19091   ac_status=$?
19092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093   (exit $ac_status); }; }; then
19094   ac_cv_lib_elf_elf_begin=yes
19095 else
19096   echo "$as_me: failed program was:" >&5
19097 sed 's/^/| /' conftest.$ac_ext >&5
19098
19099 ac_cv_lib_elf_elf_begin=no
19100 fi
19101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19102 LIBS=$ac_check_lib_save_LIBS
19103 fi
19104 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19105 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19106 if test $ac_cv_lib_elf_elf_begin = yes; then
19107   cat >>confdefs.h <<_ACEOF
19108 #define HAVE_LIBELF 1
19109 _ACEOF
19110
19111   LIBS="-lelf $LIBS"
19112
19113 fi
19114
19115
19116 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19117 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19118 if test "${ac_cv_search_dlopen+set}" = set; then
19119   echo $ECHO_N "(cached) $ECHO_C" >&6
19120 else
19121   ac_func_search_save_LIBS=$LIBS
19122 ac_cv_search_dlopen=no
19123 cat >conftest.$ac_ext <<_ACEOF
19124 #line $LINENO "configure"
19125 /* confdefs.h.  */
19126 _ACEOF
19127 cat confdefs.h >>conftest.$ac_ext
19128 cat >>conftest.$ac_ext <<_ACEOF
19129 /* end confdefs.h.  */
19130
19131 /* Override any gcc2 internal prototype to avoid an error.  */
19132 #ifdef __cplusplus
19133 extern "C"
19134 #endif
19135 /* We use char because int might match the return type of a gcc2
19136    builtin and then its argument prototype would still apply.  */
19137 char dlopen ();
19138 int
19139 main ()
19140 {
19141 dlopen ();
19142   ;
19143   return 0;
19144 }
19145 _ACEOF
19146 rm -f conftest.$ac_objext conftest$ac_exeext
19147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19148   (eval $ac_link) 2>&5
19149   ac_status=$?
19150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151   (exit $ac_status); } &&
19152          { ac_try='test -s conftest$ac_exeext'
19153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154   (eval $ac_try) 2>&5
19155   ac_status=$?
19156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157   (exit $ac_status); }; }; then
19158   ac_cv_search_dlopen="none required"
19159 else
19160   echo "$as_me: failed program was:" >&5
19161 sed 's/^/| /' conftest.$ac_ext >&5
19162
19163 fi
19164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19165 if test "$ac_cv_search_dlopen" = no; then
19166   for ac_lib in dl; do
19167     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19168     cat >conftest.$ac_ext <<_ACEOF
19169 #line $LINENO "configure"
19170 /* confdefs.h.  */
19171 _ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h.  */
19175
19176 /* Override any gcc2 internal prototype to avoid an error.  */
19177 #ifdef __cplusplus
19178 extern "C"
19179 #endif
19180 /* We use char because int might match the return type of a gcc2
19181    builtin and then its argument prototype would still apply.  */
19182 char dlopen ();
19183 int
19184 main ()
19185 {
19186 dlopen ();
19187   ;
19188   return 0;
19189 }
19190 _ACEOF
19191 rm -f conftest.$ac_objext conftest$ac_exeext
19192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19193   (eval $ac_link) 2>&5
19194   ac_status=$?
19195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196   (exit $ac_status); } &&
19197          { ac_try='test -s conftest$ac_exeext'
19198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199   (eval $ac_try) 2>&5
19200   ac_status=$?
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); }; }; then
19203   ac_cv_search_dlopen="-l$ac_lib"
19204 break
19205 else
19206   echo "$as_me: failed program was:" >&5
19207 sed 's/^/| /' conftest.$ac_ext >&5
19208
19209 fi
19210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19211   done
19212 fi
19213 LIBS=$ac_func_search_save_LIBS
19214 fi
19215 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19216 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19217 if test "$ac_cv_search_dlopen" != no; then
19218   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19219   cat >>confdefs.h <<\_ACEOF
19220 #define HAVE_DLOPEN 1
19221 _ACEOF
19222
19223 else
19224   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19225 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19226 fi
19227
19228
19229 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19230 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19231 if test "${ac_cv_search_mallinfo+set}" = set; then
19232   echo $ECHO_N "(cached) $ECHO_C" >&6
19233 else
19234   ac_func_search_save_LIBS=$LIBS
19235 ac_cv_search_mallinfo=no
19236 cat >conftest.$ac_ext <<_ACEOF
19237 #line $LINENO "configure"
19238 /* confdefs.h.  */
19239 _ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h.  */
19243
19244 /* Override any gcc2 internal prototype to avoid an error.  */
19245 #ifdef __cplusplus
19246 extern "C"
19247 #endif
19248 /* We use char because int might match the return type of a gcc2
19249    builtin and then its argument prototype would still apply.  */
19250 char mallinfo ();
19251 int
19252 main ()
19253 {
19254 mallinfo ();
19255   ;
19256   return 0;
19257 }
19258 _ACEOF
19259 rm -f conftest.$ac_objext conftest$ac_exeext
19260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19261   (eval $ac_link) 2>&5
19262   ac_status=$?
19263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264   (exit $ac_status); } &&
19265          { ac_try='test -s conftest$ac_exeext'
19266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267   (eval $ac_try) 2>&5
19268   ac_status=$?
19269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270   (exit $ac_status); }; }; then
19271   ac_cv_search_mallinfo="none required"
19272 else
19273   echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19275
19276 fi
19277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19278 if test "$ac_cv_search_mallinfo" = no; then
19279   for ac_lib in malloc; do
19280     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19281     cat >conftest.$ac_ext <<_ACEOF
19282 #line $LINENO "configure"
19283 /* confdefs.h.  */
19284 _ACEOF
19285 cat confdefs.h >>conftest.$ac_ext
19286 cat >>conftest.$ac_ext <<_ACEOF
19287 /* end confdefs.h.  */
19288
19289 /* Override any gcc2 internal prototype to avoid an error.  */
19290 #ifdef __cplusplus
19291 extern "C"
19292 #endif
19293 /* We use char because int might match the return type of a gcc2
19294    builtin and then its argument prototype would still apply.  */
19295 char mallinfo ();
19296 int
19297 main ()
19298 {
19299 mallinfo ();
19300   ;
19301   return 0;
19302 }
19303 _ACEOF
19304 rm -f conftest.$ac_objext conftest$ac_exeext
19305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19306   (eval $ac_link) 2>&5
19307   ac_status=$?
19308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309   (exit $ac_status); } &&
19310          { ac_try='test -s conftest$ac_exeext'
19311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19312   (eval $ac_try) 2>&5
19313   ac_status=$?
19314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315   (exit $ac_status); }; }; then
19316   ac_cv_search_mallinfo="-l$ac_lib"
19317 break
19318 else
19319   echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19321
19322 fi
19323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19324   done
19325 fi
19326 LIBS=$ac_func_search_save_LIBS
19327 fi
19328 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19329 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19330 if test "$ac_cv_search_mallinfo" != no; then
19331   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19332   cat >>confdefs.h <<\_ACEOF
19333 #define HAVE_MALLINFO 1
19334 _ACEOF
19335
19336 fi
19337
19338
19339
19340 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19341 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19342 if test "${ac_cv_header_stdc+set}" = set; then
19343   echo $ECHO_N "(cached) $ECHO_C" >&6
19344 else
19345   cat >conftest.$ac_ext <<_ACEOF
19346 #line $LINENO "configure"
19347 /* confdefs.h.  */
19348 _ACEOF
19349 cat confdefs.h >>conftest.$ac_ext
19350 cat >>conftest.$ac_ext <<_ACEOF
19351 /* end confdefs.h.  */
19352 #include <stdlib.h>
19353 #include <stdarg.h>
19354 #include <string.h>
19355 #include <float.h>
19356
19357 int
19358 main ()
19359 {
19360
19361   ;
19362   return 0;
19363 }
19364 _ACEOF
19365 rm -f conftest.$ac_objext
19366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19367   (eval $ac_compile) 2>&5
19368   ac_status=$?
19369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370   (exit $ac_status); } &&
19371          { ac_try='test -s conftest.$ac_objext'
19372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373   (eval $ac_try) 2>&5
19374   ac_status=$?
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); }; }; then
19377   ac_cv_header_stdc=yes
19378 else
19379   echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19381
19382 ac_cv_header_stdc=no
19383 fi
19384 rm -f conftest.$ac_objext conftest.$ac_ext
19385
19386 if test $ac_cv_header_stdc = yes; then
19387   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19388   cat >conftest.$ac_ext <<_ACEOF
19389 #line $LINENO "configure"
19390 /* confdefs.h.  */
19391 _ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h.  */
19395 #include <string.h>
19396
19397 _ACEOF
19398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19399   $EGREP "memchr" >/dev/null 2>&1; then
19400   :
19401 else
19402   ac_cv_header_stdc=no
19403 fi
19404 rm -f conftest*
19405
19406 fi
19407
19408 if test $ac_cv_header_stdc = yes; then
19409   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19410   cat >conftest.$ac_ext <<_ACEOF
19411 #line $LINENO "configure"
19412 /* confdefs.h.  */
19413 _ACEOF
19414 cat confdefs.h >>conftest.$ac_ext
19415 cat >>conftest.$ac_ext <<_ACEOF
19416 /* end confdefs.h.  */
19417 #include <stdlib.h>
19418
19419 _ACEOF
19420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19421   $EGREP "free" >/dev/null 2>&1; then
19422   :
19423 else
19424   ac_cv_header_stdc=no
19425 fi
19426 rm -f conftest*
19427
19428 fi
19429
19430 if test $ac_cv_header_stdc = yes; then
19431   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19432   if test "$cross_compiling" = yes; then
19433   :
19434 else
19435   cat >conftest.$ac_ext <<_ACEOF
19436 #line $LINENO "configure"
19437 /* confdefs.h.  */
19438 _ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h.  */
19442 #include <ctype.h>
19443 #if ((' ' & 0x0FF) == 0x020)
19444 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19445 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19446 #else
19447 # define ISLOWER(c) \
19448                    (('a' <= (c) && (c) <= 'i') \
19449                      || ('j' <= (c) && (c) <= 'r') \
19450                      || ('s' <= (c) && (c) <= 'z'))
19451 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19452 #endif
19453
19454 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19455 int
19456 main ()
19457 {
19458   int i;
19459   for (i = 0; i < 256; i++)
19460     if (XOR (islower (i), ISLOWER (i))
19461         || toupper (i) != TOUPPER (i))
19462       exit(2);
19463   exit (0);
19464 }
19465 _ACEOF
19466 rm -f conftest$ac_exeext
19467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19468   (eval $ac_link) 2>&5
19469   ac_status=$?
19470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473   (eval $ac_try) 2>&5
19474   ac_status=$?
19475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); }; }; then
19477   :
19478 else
19479   echo "$as_me: program exited with status $ac_status" >&5
19480 echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19482
19483 ( exit $ac_status )
19484 ac_cv_header_stdc=no
19485 fi
19486 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19487 fi
19488 fi
19489 fi
19490 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19491 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19492 if test $ac_cv_header_stdc = yes; then
19493
19494 cat >>confdefs.h <<\_ACEOF
19495 #define STDC_HEADERS 1
19496 _ACEOF
19497
19498 fi
19499
19500 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19501 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19502 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19503   echo $ECHO_N "(cached) $ECHO_C" >&6
19504 else
19505   cat >conftest.$ac_ext <<_ACEOF
19506 #line $LINENO "configure"
19507 /* confdefs.h.  */
19508 _ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h.  */
19512 #include <sys/types.h>
19513 #include <sys/wait.h>
19514 #ifndef WEXITSTATUS
19515 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19516 #endif
19517 #ifndef WIFEXITED
19518 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19519 #endif
19520
19521 int
19522 main ()
19523 {
19524   int s;
19525   wait (&s);
19526   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19527   ;
19528   return 0;
19529 }
19530 _ACEOF
19531 rm -f conftest.$ac_objext
19532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19533   (eval $ac_compile) 2>&5
19534   ac_status=$?
19535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536   (exit $ac_status); } &&
19537          { ac_try='test -s conftest.$ac_objext'
19538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19539   (eval $ac_try) 2>&5
19540   ac_status=$?
19541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542   (exit $ac_status); }; }; then
19543   ac_cv_header_sys_wait_h=yes
19544 else
19545   echo "$as_me: failed program was:" >&5
19546 sed 's/^/| /' conftest.$ac_ext >&5
19547
19548 ac_cv_header_sys_wait_h=no
19549 fi
19550 rm -f conftest.$ac_objext conftest.$ac_ext
19551 fi
19552 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19553 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19554 if test $ac_cv_header_sys_wait_h = yes; then
19555
19556 cat >>confdefs.h <<\_ACEOF
19557 #define HAVE_SYS_WAIT_H 1
19558 _ACEOF
19559
19560 fi
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19572 do
19573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19575   echo "$as_me:$LINENO: checking for $ac_header" >&5
19576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19578   echo $ECHO_N "(cached) $ECHO_C" >&6
19579 fi
19580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19582 else
19583   # Is the header compilable?
19584 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19586 cat >conftest.$ac_ext <<_ACEOF
19587 #line $LINENO "configure"
19588 /* confdefs.h.  */
19589 _ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h.  */
19593 $ac_includes_default
19594 #include <$ac_header>
19595 _ACEOF
19596 rm -f conftest.$ac_objext
19597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598   (eval $ac_compile) 2>&5
19599   ac_status=$?
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); } &&
19602          { ac_try='test -s conftest.$ac_objext'
19603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604   (eval $ac_try) 2>&5
19605   ac_status=$?
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); }; }; then
19608   ac_header_compiler=yes
19609 else
19610   echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19612
19613 ac_header_compiler=no
19614 fi
19615 rm -f conftest.$ac_objext conftest.$ac_ext
19616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19617 echo "${ECHO_T}$ac_header_compiler" >&6
19618
19619 # Is the header present?
19620 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19622 cat >conftest.$ac_ext <<_ACEOF
19623 #line $LINENO "configure"
19624 /* confdefs.h.  */
19625 _ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h.  */
19629 #include <$ac_header>
19630 _ACEOF
19631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19632   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19633   ac_status=$?
19634   grep -v '^ *+' conftest.er1 >conftest.err
19635   rm -f conftest.er1
19636   cat conftest.err >&5
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); } >/dev/null; then
19639   if test -s conftest.err; then
19640     ac_cpp_err=$ac_c_preproc_warn_flag
19641   else
19642     ac_cpp_err=
19643   fi
19644 else
19645   ac_cpp_err=yes
19646 fi
19647 if test -z "$ac_cpp_err"; then
19648   ac_header_preproc=yes
19649 else
19650   echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19652
19653   ac_header_preproc=no
19654 fi
19655 rm -f conftest.err conftest.$ac_ext
19656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19657 echo "${ECHO_T}$ac_header_preproc" >&6
19658
19659 # So?  What about this header?
19660 case $ac_header_compiler:$ac_header_preproc in
19661   yes:no )
19662     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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   no:yes )
19676     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19678     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19682     (
19683       cat <<\_ASBOX
19684 ## ------------------------------------ ##
19685 ## Report this to bug-autoconf@gnu.org. ##
19686 ## ------------------------------------ ##
19687 _ASBOX
19688     ) |
19689       sed "s/^/$as_me: WARNING:     /" >&2
19690     ;;
19691 esac
19692 echo "$as_me:$LINENO: checking for $ac_header" >&5
19693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19695   echo $ECHO_N "(cached) $ECHO_C" >&6
19696 else
19697   eval "$as_ac_Header=$ac_header_preproc"
19698 fi
19699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19701
19702 fi
19703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19704   cat >>confdefs.h <<_ACEOF
19705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19706 _ACEOF
19707
19708 fi
19709
19710 done
19711
19712
19713
19714
19715
19716
19717 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19718 do
19719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19721   echo "$as_me:$LINENO: checking for $ac_header" >&5
19722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19724   echo $ECHO_N "(cached) $ECHO_C" >&6
19725 fi
19726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19728 else
19729   # Is the header compilable?
19730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19732 cat >conftest.$ac_ext <<_ACEOF
19733 #line $LINENO "configure"
19734 /* confdefs.h.  */
19735 _ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h.  */
19739 $ac_includes_default
19740 #include <$ac_header>
19741 _ACEOF
19742 rm -f conftest.$ac_objext
19743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19744   (eval $ac_compile) 2>&5
19745   ac_status=$?
19746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747   (exit $ac_status); } &&
19748          { ac_try='test -s conftest.$ac_objext'
19749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750   (eval $ac_try) 2>&5
19751   ac_status=$?
19752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753   (exit $ac_status); }; }; then
19754   ac_header_compiler=yes
19755 else
19756   echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19758
19759 ac_header_compiler=no
19760 fi
19761 rm -f conftest.$ac_objext conftest.$ac_ext
19762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19763 echo "${ECHO_T}$ac_header_compiler" >&6
19764
19765 # Is the header present?
19766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19768 cat >conftest.$ac_ext <<_ACEOF
19769 #line $LINENO "configure"
19770 /* confdefs.h.  */
19771 _ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h.  */
19775 #include <$ac_header>
19776 _ACEOF
19777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19778   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19779   ac_status=$?
19780   grep -v '^ *+' conftest.er1 >conftest.err
19781   rm -f conftest.er1
19782   cat conftest.err >&5
19783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784   (exit $ac_status); } >/dev/null; then
19785   if test -s conftest.err; then
19786     ac_cpp_err=$ac_c_preproc_warn_flag
19787   else
19788     ac_cpp_err=
19789   fi
19790 else
19791   ac_cpp_err=yes
19792 fi
19793 if test -z "$ac_cpp_err"; then
19794   ac_header_preproc=yes
19795 else
19796   echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19798
19799   ac_header_preproc=no
19800 fi
19801 rm -f conftest.err conftest.$ac_ext
19802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19803 echo "${ECHO_T}$ac_header_preproc" >&6
19804
19805 # So?  What about this header?
19806 case $ac_header_compiler:$ac_header_preproc in
19807   yes:no )
19808     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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   no:yes )
19822     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19824     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19828     (
19829       cat <<\_ASBOX
19830 ## ------------------------------------ ##
19831 ## Report this to bug-autoconf@gnu.org. ##
19832 ## ------------------------------------ ##
19833 _ASBOX
19834     ) |
19835       sed "s/^/$as_me: WARNING:     /" >&2
19836     ;;
19837 esac
19838 echo "$as_me:$LINENO: checking for $ac_header" >&5
19839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19841   echo $ECHO_N "(cached) $ECHO_C" >&6
19842 else
19843   eval "$as_ac_Header=$ac_header_preproc"
19844 fi
19845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19847
19848 fi
19849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19850   cat >>confdefs.h <<_ACEOF
19851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19852 _ACEOF
19853
19854 fi
19855
19856 done
19857
19858
19859
19860
19861 for ac_header in dlfcn.h link.h
19862 do
19863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19865   echo "$as_me:$LINENO: checking for $ac_header" >&5
19866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19868   echo $ECHO_N "(cached) $ECHO_C" >&6
19869 fi
19870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19872 else
19873   # Is the header compilable?
19874 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19876 cat >conftest.$ac_ext <<_ACEOF
19877 #line $LINENO "configure"
19878 /* confdefs.h.  */
19879 _ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h.  */
19883 $ac_includes_default
19884 #include <$ac_header>
19885 _ACEOF
19886 rm -f conftest.$ac_objext
19887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19888   (eval $ac_compile) 2>&5
19889   ac_status=$?
19890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891   (exit $ac_status); } &&
19892          { ac_try='test -s conftest.$ac_objext'
19893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19894   (eval $ac_try) 2>&5
19895   ac_status=$?
19896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897   (exit $ac_status); }; }; then
19898   ac_header_compiler=yes
19899 else
19900   echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19902
19903 ac_header_compiler=no
19904 fi
19905 rm -f conftest.$ac_objext conftest.$ac_ext
19906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19907 echo "${ECHO_T}$ac_header_compiler" >&6
19908
19909 # Is the header present?
19910 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19912 cat >conftest.$ac_ext <<_ACEOF
19913 #line $LINENO "configure"
19914 /* confdefs.h.  */
19915 _ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h.  */
19919 #include <$ac_header>
19920 _ACEOF
19921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19922   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19923   ac_status=$?
19924   grep -v '^ *+' conftest.er1 >conftest.err
19925   rm -f conftest.er1
19926   cat conftest.err >&5
19927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928   (exit $ac_status); } >/dev/null; then
19929   if test -s conftest.err; then
19930     ac_cpp_err=$ac_c_preproc_warn_flag
19931   else
19932     ac_cpp_err=
19933   fi
19934 else
19935   ac_cpp_err=yes
19936 fi
19937 if test -z "$ac_cpp_err"; then
19938   ac_header_preproc=yes
19939 else
19940   echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19942
19943   ac_header_preproc=no
19944 fi
19945 rm -f conftest.err conftest.$ac_ext
19946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19947 echo "${ECHO_T}$ac_header_preproc" >&6
19948
19949 # So?  What about this header?
19950 case $ac_header_compiler:$ac_header_preproc in
19951   yes:no )
19952     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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   no:yes )
19966     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19968     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19969 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19972     (
19973       cat <<\_ASBOX
19974 ## ------------------------------------ ##
19975 ## Report this to bug-autoconf@gnu.org. ##
19976 ## ------------------------------------ ##
19977 _ASBOX
19978     ) |
19979       sed "s/^/$as_me: WARNING:     /" >&2
19980     ;;
19981 esac
19982 echo "$as_me:$LINENO: checking for $ac_header" >&5
19983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19985   echo $ECHO_N "(cached) $ECHO_C" >&6
19986 else
19987   eval "$as_ac_Header=$ac_header_preproc"
19988 fi
19989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19991
19992 fi
19993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19994   cat >>confdefs.h <<_ACEOF
19995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19996 _ACEOF
19997
19998 fi
19999
20000 done
20001
20002
20003
20004 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20005 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20006 if test "${ac_cv_c_const+set}" = set; then
20007   echo $ECHO_N "(cached) $ECHO_C" >&6
20008 else
20009   cat >conftest.$ac_ext <<_ACEOF
20010 #line $LINENO "configure"
20011 /* confdefs.h.  */
20012 _ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h.  */
20016
20017 int
20018 main ()
20019 {
20020 /* FIXME: Include the comments suggested by Paul. */
20021 #ifndef __cplusplus
20022   /* Ultrix mips cc rejects this.  */
20023   typedef int charset[2];
20024   const charset x;
20025   /* SunOS 4.1.1 cc rejects this.  */
20026   char const *const *ccp;
20027   char **p;
20028   /* NEC SVR4.0.2 mips cc rejects this.  */
20029   struct point {int x, y;};
20030   static struct point const zero = {0,0};
20031   /* AIX XL C 1.02.0.0 rejects this.
20032      It does not let you subtract one const X* pointer from another in
20033      an arm of an if-expression whose if-part is not a constant
20034      expression */
20035   const char *g = "string";
20036   ccp = &g + (g ? g-g : 0);
20037   /* HPUX 7.0 cc rejects these. */
20038   ++ccp;
20039   p = (char**) ccp;
20040   ccp = (char const *const *) p;
20041   { /* SCO 3.2v4 cc rejects this.  */
20042     char *t;
20043     char const *s = 0 ? (char *) 0 : (char const *) 0;
20044
20045     *t++ = 0;
20046   }
20047   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20048     int x[] = {25, 17};
20049     const int *foo = &x[0];
20050     ++foo;
20051   }
20052   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20053     typedef const int *iptr;
20054     iptr p = 0;
20055     ++p;
20056   }
20057   { /* AIX XL C 1.02.0.0 rejects this saying
20058        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20059     struct s { int j; const int *ap[3]; };
20060     struct s *b; b->j = 5;
20061   }
20062   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20063     const int foo = 10;
20064   }
20065 #endif
20066
20067   ;
20068   return 0;
20069 }
20070 _ACEOF
20071 rm -f conftest.$ac_objext
20072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20073   (eval $ac_compile) 2>&5
20074   ac_status=$?
20075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076   (exit $ac_status); } &&
20077          { ac_try='test -s conftest.$ac_objext'
20078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079   (eval $ac_try) 2>&5
20080   ac_status=$?
20081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082   (exit $ac_status); }; }; then
20083   ac_cv_c_const=yes
20084 else
20085   echo "$as_me: failed program was:" >&5
20086 sed 's/^/| /' conftest.$ac_ext >&5
20087
20088 ac_cv_c_const=no
20089 fi
20090 rm -f conftest.$ac_objext conftest.$ac_ext
20091 fi
20092 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20093 echo "${ECHO_T}$ac_cv_c_const" >&6
20094 if test $ac_cv_c_const = no; then
20095
20096 cat >>confdefs.h <<\_ACEOF
20097 #define const
20098 _ACEOF
20099
20100 fi
20101
20102 echo "$as_me:$LINENO: checking for inline" >&5
20103 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20104 if test "${ac_cv_c_inline+set}" = set; then
20105   echo $ECHO_N "(cached) $ECHO_C" >&6
20106 else
20107   ac_cv_c_inline=no
20108 for ac_kw in inline __inline__ __inline; do
20109   cat >conftest.$ac_ext <<_ACEOF
20110 #line $LINENO "configure"
20111 /* confdefs.h.  */
20112 _ACEOF
20113 cat confdefs.h >>conftest.$ac_ext
20114 cat >>conftest.$ac_ext <<_ACEOF
20115 /* end confdefs.h.  */
20116 #ifndef __cplusplus
20117 typedef int foo_t;
20118 static $ac_kw foo_t static_foo () {return 0; }
20119 $ac_kw foo_t foo () {return 0; }
20120 #endif
20121
20122 _ACEOF
20123 rm -f conftest.$ac_objext
20124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20125   (eval $ac_compile) 2>&5
20126   ac_status=$?
20127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128   (exit $ac_status); } &&
20129          { ac_try='test -s conftest.$ac_objext'
20130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131   (eval $ac_try) 2>&5
20132   ac_status=$?
20133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134   (exit $ac_status); }; }; then
20135   ac_cv_c_inline=$ac_kw; break
20136 else
20137   echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20139
20140 fi
20141 rm -f conftest.$ac_objext conftest.$ac_ext
20142 done
20143
20144 fi
20145 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20146 echo "${ECHO_T}$ac_cv_c_inline" >&6
20147 case $ac_cv_c_inline in
20148   inline | yes) ;;
20149   no)
20150 cat >>confdefs.h <<\_ACEOF
20151 #define inline
20152 _ACEOF
20153  ;;
20154   *)  cat >>confdefs.h <<_ACEOF
20155 #define inline $ac_cv_c_inline
20156 _ACEOF
20157  ;;
20158 esac
20159
20160
20161 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20162 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20163 if test "${ac_cv_c_bigendian+set}" = set; then
20164   echo $ECHO_N "(cached) $ECHO_C" >&6
20165 else
20166   # See if sys/param.h defines the BYTE_ORDER macro.
20167 cat >conftest.$ac_ext <<_ACEOF
20168 #line $LINENO "configure"
20169 /* confdefs.h.  */
20170 _ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h.  */
20174 #include <sys/types.h>
20175 #include <sys/param.h>
20176
20177 int
20178 main ()
20179 {
20180 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20181  bogus endian macros
20182 #endif
20183
20184   ;
20185   return 0;
20186 }
20187 _ACEOF
20188 rm -f conftest.$ac_objext
20189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20190   (eval $ac_compile) 2>&5
20191   ac_status=$?
20192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193   (exit $ac_status); } &&
20194          { ac_try='test -s conftest.$ac_objext'
20195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196   (eval $ac_try) 2>&5
20197   ac_status=$?
20198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199   (exit $ac_status); }; }; then
20200   # It does; now see whether it defined to BIG_ENDIAN or not.
20201 cat >conftest.$ac_ext <<_ACEOF
20202 #line $LINENO "configure"
20203 /* confdefs.h.  */
20204 _ACEOF
20205 cat confdefs.h >>conftest.$ac_ext
20206 cat >>conftest.$ac_ext <<_ACEOF
20207 /* end confdefs.h.  */
20208 #include <sys/types.h>
20209 #include <sys/param.h>
20210
20211 int
20212 main ()
20213 {
20214 #if BYTE_ORDER != BIG_ENDIAN
20215  not big endian
20216 #endif
20217
20218   ;
20219   return 0;
20220 }
20221 _ACEOF
20222 rm -f conftest.$ac_objext
20223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20224   (eval $ac_compile) 2>&5
20225   ac_status=$?
20226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227   (exit $ac_status); } &&
20228          { ac_try='test -s conftest.$ac_objext'
20229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230   (eval $ac_try) 2>&5
20231   ac_status=$?
20232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233   (exit $ac_status); }; }; then
20234   ac_cv_c_bigendian=yes
20235 else
20236   echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20238
20239 ac_cv_c_bigendian=no
20240 fi
20241 rm -f conftest.$ac_objext conftest.$ac_ext
20242 else
20243   echo "$as_me: failed program was:" >&5
20244 sed 's/^/| /' conftest.$ac_ext >&5
20245
20246 # It does not; compile a test program.
20247 if test "$cross_compiling" = yes; then
20248   # try to guess the endianness by grepping values into an object file
20249   ac_cv_c_bigendian=unknown
20250   cat >conftest.$ac_ext <<_ACEOF
20251 #line $LINENO "configure"
20252 /* confdefs.h.  */
20253 _ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h.  */
20257 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20258 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20259 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20260 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20261 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20262 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20263 int
20264 main ()
20265 {
20266  _ascii (); _ebcdic ();
20267   ;
20268   return 0;
20269 }
20270 _ACEOF
20271 rm -f conftest.$ac_objext
20272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20273   (eval $ac_compile) 2>&5
20274   ac_status=$?
20275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); } &&
20277          { ac_try='test -s conftest.$ac_objext'
20278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279   (eval $ac_try) 2>&5
20280   ac_status=$?
20281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282   (exit $ac_status); }; }; then
20283   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20284   ac_cv_c_bigendian=yes
20285 fi
20286 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20287   if test "$ac_cv_c_bigendian" = unknown; then
20288     ac_cv_c_bigendian=no
20289   else
20290     # finding both strings is unlikely to happen, but who knows?
20291     ac_cv_c_bigendian=unknown
20292   fi
20293 fi
20294 else
20295   echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20297
20298 fi
20299 rm -f conftest.$ac_objext conftest.$ac_ext
20300 else
20301   cat >conftest.$ac_ext <<_ACEOF
20302 #line $LINENO "configure"
20303 /* confdefs.h.  */
20304 _ACEOF
20305 cat confdefs.h >>conftest.$ac_ext
20306 cat >>conftest.$ac_ext <<_ACEOF
20307 /* end confdefs.h.  */
20308 int
20309 main ()
20310 {
20311   /* Are we little or big endian?  From Harbison&Steele.  */
20312   union
20313   {
20314     long l;
20315     char c[sizeof (long)];
20316   } u;
20317   u.l = 1;
20318   exit (u.c[sizeof (long) - 1] == 1);
20319 }
20320 _ACEOF
20321 rm -f conftest$ac_exeext
20322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20323   (eval $ac_link) 2>&5
20324   ac_status=$?
20325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20328   (eval $ac_try) 2>&5
20329   ac_status=$?
20330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331   (exit $ac_status); }; }; then
20332   ac_cv_c_bigendian=no
20333 else
20334   echo "$as_me: program exited with status $ac_status" >&5
20335 echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20337
20338 ( exit $ac_status )
20339 ac_cv_c_bigendian=yes
20340 fi
20341 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20342 fi
20343 fi
20344 rm -f conftest.$ac_objext conftest.$ac_ext
20345 fi
20346 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20347 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20348 case $ac_cv_c_bigendian in
20349   yes)
20350     cat >>confdefs.h <<\_ACEOF
20351 #define ENDIAN_BIG 1
20352 _ACEOF
20353  ;;
20354   no)
20355     cat >>confdefs.h <<\_ACEOF
20356 #define ENDIAN_LITTLE 1
20357 _ACEOF
20358  ;;
20359   *)
20360     { { echo "$as_me:$LINENO: error: unknown endianness
20361 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20362 echo "$as_me: error: unknown endianness
20363 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20364    { (exit 1); exit 1; }; } ;;
20365 esac
20366
20367
20368 echo "$as_me:$LINENO: checking for pid_t" >&5
20369 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20370 if test "${ac_cv_type_pid_t+set}" = set; then
20371   echo $ECHO_N "(cached) $ECHO_C" >&6
20372 else
20373   cat >conftest.$ac_ext <<_ACEOF
20374 #line $LINENO "configure"
20375 /* confdefs.h.  */
20376 _ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h.  */
20380 $ac_includes_default
20381 int
20382 main ()
20383 {
20384 if ((pid_t *) 0)
20385   return 0;
20386 if (sizeof (pid_t))
20387   return 0;
20388   ;
20389   return 0;
20390 }
20391 _ACEOF
20392 rm -f conftest.$ac_objext
20393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20394   (eval $ac_compile) 2>&5
20395   ac_status=$?
20396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); } &&
20398          { ac_try='test -s conftest.$ac_objext'
20399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400   (eval $ac_try) 2>&5
20401   ac_status=$?
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); }; }; then
20404   ac_cv_type_pid_t=yes
20405 else
20406   echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20408
20409 ac_cv_type_pid_t=no
20410 fi
20411 rm -f conftest.$ac_objext conftest.$ac_ext
20412 fi
20413 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20414 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20415 if test $ac_cv_type_pid_t = yes; then
20416   :
20417 else
20418
20419 cat >>confdefs.h <<_ACEOF
20420 #define pid_t int
20421 _ACEOF
20422
20423 fi
20424
20425 echo "$as_me:$LINENO: checking for size_t" >&5
20426 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20427 if test "${ac_cv_type_size_t+set}" = set; then
20428   echo $ECHO_N "(cached) $ECHO_C" >&6
20429 else
20430   cat >conftest.$ac_ext <<_ACEOF
20431 #line $LINENO "configure"
20432 /* confdefs.h.  */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h.  */
20437 $ac_includes_default
20438 int
20439 main ()
20440 {
20441 if ((size_t *) 0)
20442   return 0;
20443 if (sizeof (size_t))
20444   return 0;
20445   ;
20446   return 0;
20447 }
20448 _ACEOF
20449 rm -f conftest.$ac_objext
20450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20451   (eval $ac_compile) 2>&5
20452   ac_status=$?
20453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454   (exit $ac_status); } &&
20455          { ac_try='test -s conftest.$ac_objext'
20456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457   (eval $ac_try) 2>&5
20458   ac_status=$?
20459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460   (exit $ac_status); }; }; then
20461   ac_cv_type_size_t=yes
20462 else
20463   echo "$as_me: failed program was:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20465
20466 ac_cv_type_size_t=no
20467 fi
20468 rm -f conftest.$ac_objext conftest.$ac_ext
20469 fi
20470 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20471 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20472 if test $ac_cv_type_size_t = yes; then
20473   :
20474 else
20475
20476 cat >>confdefs.h <<_ACEOF
20477 #define size_t unsigned
20478 _ACEOF
20479
20480 fi
20481
20482 echo "$as_me:$LINENO: checking for int64_t" >&5
20483 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20484 if test "${ac_cv_type_int64_t+set}" = set; then
20485   echo $ECHO_N "(cached) $ECHO_C" >&6
20486 else
20487   cat >conftest.$ac_ext <<_ACEOF
20488 #line $LINENO "configure"
20489 /* confdefs.h.  */
20490 _ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h.  */
20494 $ac_includes_default
20495 int
20496 main ()
20497 {
20498 if ((int64_t *) 0)
20499   return 0;
20500 if (sizeof (int64_t))
20501   return 0;
20502   ;
20503   return 0;
20504 }
20505 _ACEOF
20506 rm -f conftest.$ac_objext
20507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20508   (eval $ac_compile) 2>&5
20509   ac_status=$?
20510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511   (exit $ac_status); } &&
20512          { ac_try='test -s conftest.$ac_objext'
20513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514   (eval $ac_try) 2>&5
20515   ac_status=$?
20516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517   (exit $ac_status); }; }; then
20518   ac_cv_type_int64_t=yes
20519 else
20520   echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20522
20523 ac_cv_type_int64_t=no
20524 fi
20525 rm -f conftest.$ac_objext conftest.$ac_ext
20526 fi
20527 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20528 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20529 if test $ac_cv_type_int64_t = yes; then
20530
20531 cat >>confdefs.h <<_ACEOF
20532 #define HAVE_INT64_T 1
20533 _ACEOF
20534
20535
20536 else
20537   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20538 echo "$as_me: error: Type int64_t required but not found" >&2;}
20539    { (exit 1); exit 1; }; }
20540 fi
20541
20542 echo "$as_me:$LINENO: checking for uint64_t" >&5
20543 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20544 if test "${ac_cv_type_uint64_t+set}" = set; then
20545   echo $ECHO_N "(cached) $ECHO_C" >&6
20546 else
20547   cat >conftest.$ac_ext <<_ACEOF
20548 #line $LINENO "configure"
20549 /* confdefs.h.  */
20550 _ACEOF
20551 cat confdefs.h >>conftest.$ac_ext
20552 cat >>conftest.$ac_ext <<_ACEOF
20553 /* end confdefs.h.  */
20554 $ac_includes_default
20555 int
20556 main ()
20557 {
20558 if ((uint64_t *) 0)
20559   return 0;
20560 if (sizeof (uint64_t))
20561   return 0;
20562   ;
20563   return 0;
20564 }
20565 _ACEOF
20566 rm -f conftest.$ac_objext
20567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20568   (eval $ac_compile) 2>&5
20569   ac_status=$?
20570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571   (exit $ac_status); } &&
20572          { ac_try='test -s conftest.$ac_objext'
20573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574   (eval $ac_try) 2>&5
20575   ac_status=$?
20576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577   (exit $ac_status); }; }; then
20578   ac_cv_type_uint64_t=yes
20579 else
20580   echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20582
20583 ac_cv_type_uint64_t=no
20584 fi
20585 rm -f conftest.$ac_objext conftest.$ac_ext
20586 fi
20587 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20588 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20589 if test $ac_cv_type_uint64_t = yes; then
20590
20591 cat >>confdefs.h <<_ACEOF
20592 #define HAVE_UINT64_T 1
20593 _ACEOF
20594
20595
20596 else
20597   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20598 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20599    { (exit 1); exit 1; }; }
20600 fi
20601
20602 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20603 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20604 if test "${ac_cv_header_time+set}" = set; then
20605   echo $ECHO_N "(cached) $ECHO_C" >&6
20606 else
20607   cat >conftest.$ac_ext <<_ACEOF
20608 #line $LINENO "configure"
20609 /* confdefs.h.  */
20610 _ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h.  */
20614 #include <sys/types.h>
20615 #include <sys/time.h>
20616 #include <time.h>
20617
20618 int
20619 main ()
20620 {
20621 if ((struct tm *) 0)
20622 return 0;
20623   ;
20624   return 0;
20625 }
20626 _ACEOF
20627 rm -f conftest.$ac_objext
20628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20629   (eval $ac_compile) 2>&5
20630   ac_status=$?
20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632   (exit $ac_status); } &&
20633          { ac_try='test -s conftest.$ac_objext'
20634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635   (eval $ac_try) 2>&5
20636   ac_status=$?
20637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638   (exit $ac_status); }; }; then
20639   ac_cv_header_time=yes
20640 else
20641   echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20643
20644 ac_cv_header_time=no
20645 fi
20646 rm -f conftest.$ac_objext conftest.$ac_ext
20647 fi
20648 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20649 echo "${ECHO_T}$ac_cv_header_time" >&6
20650 if test $ac_cv_header_time = yes; then
20651
20652 cat >>confdefs.h <<\_ACEOF
20653 #define TIME_WITH_SYS_TIME 1
20654 _ACEOF
20655
20656 fi
20657
20658 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20659 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20660 if test "${ac_cv_struct_tm+set}" = set; then
20661   echo $ECHO_N "(cached) $ECHO_C" >&6
20662 else
20663   cat >conftest.$ac_ext <<_ACEOF
20664 #line $LINENO "configure"
20665 /* confdefs.h.  */
20666 _ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h.  */
20670 #include <sys/types.h>
20671 #include <time.h>
20672
20673 int
20674 main ()
20675 {
20676 struct tm *tp; tp->tm_sec;
20677   ;
20678   return 0;
20679 }
20680 _ACEOF
20681 rm -f conftest.$ac_objext
20682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20683   (eval $ac_compile) 2>&5
20684   ac_status=$?
20685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686   (exit $ac_status); } &&
20687          { ac_try='test -s conftest.$ac_objext'
20688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20689   (eval $ac_try) 2>&5
20690   ac_status=$?
20691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692   (exit $ac_status); }; }; then
20693   ac_cv_struct_tm=time.h
20694 else
20695   echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20697
20698 ac_cv_struct_tm=sys/time.h
20699 fi
20700 rm -f conftest.$ac_objext conftest.$ac_ext
20701 fi
20702 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20703 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20704 if test $ac_cv_struct_tm = sys/time.h; then
20705
20706 cat >>confdefs.h <<\_ACEOF
20707 #define TM_IN_SYS_TIME 1
20708 _ACEOF
20709
20710 fi
20711
20712
20713 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20714 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20715 if test "${ac_cv_cxx_namespaces+set}" = set; then
20716   echo $ECHO_N "(cached) $ECHO_C" >&6
20717 else
20718
20719
20720  ac_ext=cc
20721 ac_cpp='$CXXCPP $CPPFLAGS'
20722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20725
20726  cat >conftest.$ac_ext <<_ACEOF
20727 #line $LINENO "configure"
20728 /* confdefs.h.  */
20729 _ACEOF
20730 cat confdefs.h >>conftest.$ac_ext
20731 cat >>conftest.$ac_ext <<_ACEOF
20732 /* end confdefs.h.  */
20733 namespace Outer { namespace Inner { int i = 0; }}
20734 int
20735 main ()
20736 {
20737 using namespace Outer::Inner; return i;
20738   ;
20739   return 0;
20740 }
20741 _ACEOF
20742 rm -f conftest.$ac_objext
20743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20744   (eval $ac_compile) 2>&5
20745   ac_status=$?
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); } &&
20748          { ac_try='test -s conftest.$ac_objext'
20749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750   (eval $ac_try) 2>&5
20751   ac_status=$?
20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); }; }; then
20754   ac_cv_cxx_namespaces=yes
20755 else
20756   echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20758
20759 ac_cv_cxx_namespaces=no
20760 fi
20761 rm -f conftest.$ac_objext conftest.$ac_ext
20762  ac_ext=c
20763 ac_cpp='$CPP $CPPFLAGS'
20764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20767
20768
20769 fi
20770 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20771 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20772 if test "$ac_cv_cxx_namespaces" = yes; then
20773
20774 cat >>confdefs.h <<\_ACEOF
20775 #define HAVE_NAMESPACES
20776 _ACEOF
20777
20778 fi
20779
20780 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20781 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20782 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20783   echo $ECHO_N "(cached) $ECHO_C" >&6
20784 else
20785
20786
20787
20788   ac_ext=cc
20789 ac_cpp='$CXXCPP $CPPFLAGS'
20790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20793
20794   cat >conftest.$ac_ext <<_ACEOF
20795 #line $LINENO "configure"
20796 /* confdefs.h.  */
20797 _ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h.  */
20801 #include <ext/hash_map>
20802 #ifdef HAVE_NAMESPACES
20803 using namespace std;
20804 #endif
20805 int
20806 main ()
20807 {
20808 hash_map<int, int> t; return 0;
20809   ;
20810   return 0;
20811 }
20812 _ACEOF
20813 rm -f conftest.$ac_objext
20814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20815   (eval $ac_compile) 2>&5
20816   ac_status=$?
20817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818   (exit $ac_status); } &&
20819          { ac_try='test -s conftest.$ac_objext'
20820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821   (eval $ac_try) 2>&5
20822   ac_status=$?
20823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824   (exit $ac_status); }; }; then
20825   ac_cv_cxx_have_ext_hash_map=std
20826 else
20827   echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20829
20830 ac_cv_cxx_have_ext_hash_map=no
20831 fi
20832 rm -f conftest.$ac_objext conftest.$ac_ext
20833   cat >conftest.$ac_ext <<_ACEOF
20834 #line $LINENO "configure"
20835 /* confdefs.h.  */
20836 _ACEOF
20837 cat confdefs.h >>conftest.$ac_ext
20838 cat >>conftest.$ac_ext <<_ACEOF
20839 /* end confdefs.h.  */
20840 #include <ext/hash_map>
20841 #ifdef HAVE_NAMESPACES
20842 using namespace __gnu_cxx;
20843 #endif
20844 int
20845 main ()
20846 {
20847 hash_map<int, int> t; return 0;
20848   ;
20849   return 0;
20850 }
20851 _ACEOF
20852 rm -f conftest.$ac_objext
20853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20854   (eval $ac_compile) 2>&5
20855   ac_status=$?
20856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857   (exit $ac_status); } &&
20858          { ac_try='test -s conftest.$ac_objext'
20859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860   (eval $ac_try) 2>&5
20861   ac_status=$?
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); }; }; then
20864   ac_cv_cxx_have_ext_hash_map=gnu
20865 else
20866   echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20868
20869 ac_cv_cxx_have_ext_hash_map=no
20870 fi
20871 rm -f conftest.$ac_objext conftest.$ac_ext
20872   ac_ext=c
20873 ac_cpp='$CPP $CPPFLAGS'
20874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20877
20878
20879 fi
20880 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20881 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20882 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20883
20884 cat >>confdefs.h <<\_ACEOF
20885 #define HAVE_STD_EXT_HASH_MAP
20886 _ACEOF
20887
20888 fi
20889 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20890
20891 cat >>confdefs.h <<\_ACEOF
20892 #define HAVE_GNU_EXT_HASH_MAP
20893 _ACEOF
20894
20895 fi
20896
20897 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20898 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20899 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20900   echo $ECHO_N "(cached) $ECHO_C" >&6
20901 else
20902
20903
20904
20905   ac_ext=cc
20906 ac_cpp='$CXXCPP $CPPFLAGS'
20907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20910
20911   cat >conftest.$ac_ext <<_ACEOF
20912 #line $LINENO "configure"
20913 /* confdefs.h.  */
20914 _ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h.  */
20918 #include <ext/hash_set>
20919 #ifdef HAVE_NAMESPACES
20920 using namespace std;
20921 #endif
20922 int
20923 main ()
20924 {
20925 hash_set<int> t; return 0;
20926   ;
20927   return 0;
20928 }
20929 _ACEOF
20930 rm -f conftest.$ac_objext
20931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20932   (eval $ac_compile) 2>&5
20933   ac_status=$?
20934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935   (exit $ac_status); } &&
20936          { ac_try='test -s conftest.$ac_objext'
20937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20938   (eval $ac_try) 2>&5
20939   ac_status=$?
20940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); }; }; then
20942   ac_cv_cxx_have_ext_hash_set=std
20943 else
20944   echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20946
20947 ac_cv_cxx_have_ext_hash_set=no
20948 fi
20949 rm -f conftest.$ac_objext conftest.$ac_ext
20950   cat >conftest.$ac_ext <<_ACEOF
20951 #line $LINENO "configure"
20952 /* confdefs.h.  */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h.  */
20957 #include <ext/hash_set>
20958 #ifdef HAVE_NAMESPACES
20959 using namespace __gnu_cxx;
20960 #endif
20961 int
20962 main ()
20963 {
20964 hash_set<int> t; return 0;
20965   ;
20966   return 0;
20967 }
20968 _ACEOF
20969 rm -f conftest.$ac_objext
20970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20971   (eval $ac_compile) 2>&5
20972   ac_status=$?
20973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974   (exit $ac_status); } &&
20975          { ac_try='test -s conftest.$ac_objext'
20976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20977   (eval $ac_try) 2>&5
20978   ac_status=$?
20979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980   (exit $ac_status); }; }; then
20981   ac_cv_cxx_have_ext_hash_set=gnu
20982 else
20983   echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20985
20986 ac_cv_cxx_have_ext_hash_set=no
20987 fi
20988 rm -f conftest.$ac_objext conftest.$ac_ext
20989   ac_ext=c
20990 ac_cpp='$CPP $CPPFLAGS'
20991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20994
20995
20996 fi
20997 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20998 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20999 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21000
21001 cat >>confdefs.h <<\_ACEOF
21002 #define HAVE_STD_EXT_HASH_SET
21003 _ACEOF
21004
21005 fi
21006 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21007
21008 cat >>confdefs.h <<\_ACEOF
21009 #define HAVE_GNU_EXT_HASH_SET
21010 _ACEOF
21011
21012 fi
21013
21014 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21015 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21016 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21017   echo $ECHO_N "(cached) $ECHO_C" >&6
21018 else
21019
21020
21021
21022   ac_ext=cc
21023 ac_cpp='$CXXCPP $CPPFLAGS'
21024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21027
21028   cat >conftest.$ac_ext <<_ACEOF
21029 #line $LINENO "configure"
21030 /* confdefs.h.  */
21031 _ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h.  */
21035 #include <ext/slist>
21036 #ifdef HAVE_NAMESPACES
21037 using namespace std;
21038 #endif
21039 int
21040 main ()
21041 {
21042 slist<int> s; return 0;
21043   ;
21044   return 0;
21045 }
21046 _ACEOF
21047 rm -f conftest.$ac_objext
21048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21049   (eval $ac_compile) 2>&5
21050   ac_status=$?
21051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052   (exit $ac_status); } &&
21053          { ac_try='test -s conftest.$ac_objext'
21054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21055   (eval $ac_try) 2>&5
21056   ac_status=$?
21057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058   (exit $ac_status); }; }; then
21059   ac_cv_cxx_have_ext_slist=std
21060 else
21061   echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21063
21064 ac_cv_cxx_have_ext_slist=no
21065 fi
21066 rm -f conftest.$ac_objext conftest.$ac_ext
21067   cat >conftest.$ac_ext <<_ACEOF
21068 #line $LINENO "configure"
21069 /* confdefs.h.  */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h.  */
21074 #include <ext/slist>
21075 #ifdef HAVE_NAMESPACES
21076 using namespace __gnu_cxx;
21077 #endif
21078 int
21079 main ()
21080 {
21081 slist<int> s; return 0;
21082   ;
21083   return 0;
21084 }
21085 _ACEOF
21086 rm -f conftest.$ac_objext
21087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21088   (eval $ac_compile) 2>&5
21089   ac_status=$?
21090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091   (exit $ac_status); } &&
21092          { ac_try='test -s conftest.$ac_objext'
21093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094   (eval $ac_try) 2>&5
21095   ac_status=$?
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); }; }; then
21098   ac_cv_cxx_have_ext_slist=gnu
21099 else
21100   echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21102
21103 ac_cv_cxx_have_ext_slist=no
21104 fi
21105 rm -f conftest.$ac_objext conftest.$ac_ext
21106
21107   ac_ext=c
21108 ac_cpp='$CPP $CPPFLAGS'
21109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21112
21113
21114 fi
21115 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21116 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21117 if test "$ac_cv_cxx_have_ext_slist" = std; then
21118
21119 cat >>confdefs.h <<\_ACEOF
21120 #define HAVE_EXT_SLIST std
21121 _ACEOF
21122
21123 fi
21124 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21125
21126 cat >>confdefs.h <<\_ACEOF
21127 #define HAVE_EXT_SLIST gnu
21128 _ACEOF
21129
21130 fi
21131
21132 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21133 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21134 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21135   echo $ECHO_N "(cached) $ECHO_C" >&6
21136 else
21137
21138
21139
21140   ac_ext=cc
21141 ac_cpp='$CXXCPP $CPPFLAGS'
21142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21145
21146   cat >conftest.$ac_ext <<_ACEOF
21147 #line $LINENO "configure"
21148 /* confdefs.h.  */
21149 _ACEOF
21150 cat confdefs.h >>conftest.$ac_ext
21151 cat >>conftest.$ac_ext <<_ACEOF
21152 /* end confdefs.h.  */
21153 #include <iterator>
21154 #ifdef HAVE_NAMESPACES
21155 using namespace std;
21156 #endif
21157 int
21158 main ()
21159 {
21160 iterator<int,int,int> t; return 0;
21161   ;
21162   return 0;
21163 }
21164 _ACEOF
21165 rm -f conftest.$ac_objext
21166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21167   (eval $ac_compile) 2>&5
21168   ac_status=$?
21169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); } &&
21171          { ac_try='test -s conftest.$ac_objext'
21172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173   (eval $ac_try) 2>&5
21174   ac_status=$?
21175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176   (exit $ac_status); }; }; then
21177   ac_cv_cxx_have_std_iterator=yes
21178 else
21179   echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21181
21182 ac_cv_cxx_have_std_iterator=no
21183 fi
21184 rm -f conftest.$ac_objext conftest.$ac_ext
21185   ac_ext=c
21186 ac_cpp='$CPP $CPPFLAGS'
21187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21190
21191
21192 fi
21193 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21194 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21195 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21196
21197 cat >>confdefs.h <<\_ACEOF
21198 #define HAVE_STD_ITERATOR
21199 _ACEOF
21200
21201 fi
21202
21203 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21204 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21205 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21206   echo $ECHO_N "(cached) $ECHO_C" >&6
21207 else
21208
21209
21210
21211   ac_ext=cc
21212 ac_cpp='$CXXCPP $CPPFLAGS'
21213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21216
21217   cat >conftest.$ac_ext <<_ACEOF
21218 #line $LINENO "configure"
21219 /* confdefs.h.  */
21220 _ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h.  */
21224 #include <iterator>
21225 #ifdef HAVE_NAMESPACES
21226 using namespace std;
21227 #endif
21228 int
21229 main ()
21230 {
21231 bidirectional_iterator<int,int> t; return 0;
21232   ;
21233   return 0;
21234 }
21235 _ACEOF
21236 rm -f conftest.$ac_objext
21237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21238   (eval $ac_compile) 2>&5
21239   ac_status=$?
21240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241   (exit $ac_status); } &&
21242          { ac_try='test -s conftest.$ac_objext'
21243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21244   (eval $ac_try) 2>&5
21245   ac_status=$?
21246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247   (exit $ac_status); }; }; then
21248   ac_cv_cxx_have_bi_iterator=yes
21249 else
21250   echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21252
21253 ac_cv_cxx_have_bi_iterator=no
21254 fi
21255 rm -f conftest.$ac_objext conftest.$ac_ext
21256   ac_ext=c
21257 ac_cpp='$CPP $CPPFLAGS'
21258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21261
21262
21263 fi
21264 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21265 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21266 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21267
21268 cat >>confdefs.h <<\_ACEOF
21269 #define HAVE_BI_ITERATOR
21270 _ACEOF
21271
21272 fi
21273
21274 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21275 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21276 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21277   echo $ECHO_N "(cached) $ECHO_C" >&6
21278 else
21279
21280
21281
21282   ac_ext=cc
21283 ac_cpp='$CXXCPP $CPPFLAGS'
21284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21287
21288   cat >conftest.$ac_ext <<_ACEOF
21289 #line $LINENO "configure"
21290 /* confdefs.h.  */
21291 _ACEOF
21292 cat confdefs.h >>conftest.$ac_ext
21293 cat >>conftest.$ac_ext <<_ACEOF
21294 /* end confdefs.h.  */
21295 #include <iterator>
21296 #ifdef HAVE_NAMESPACES
21297 using namespace std;
21298 #endif
21299 int
21300 main ()
21301 {
21302 forward_iterator<int,int> t; return 0;
21303   ;
21304   return 0;
21305 }
21306 _ACEOF
21307 rm -f conftest.$ac_objext
21308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21309   (eval $ac_compile) 2>&5
21310   ac_status=$?
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); } &&
21313          { ac_try='test -s conftest.$ac_objext'
21314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315   (eval $ac_try) 2>&5
21316   ac_status=$?
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); }; }; then
21319   ac_cv_cxx_have_fwd_iterator=yes
21320 else
21321   echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21323
21324 ac_cv_cxx_have_fwd_iterator=no
21325 fi
21326 rm -f conftest.$ac_objext conftest.$ac_ext
21327   ac_ext=c
21328 ac_cpp='$CPP $CPPFLAGS'
21329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21332
21333
21334 fi
21335 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21336 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21337 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21338
21339 cat >>confdefs.h <<\_ACEOF
21340 #define HAVE_FWD_ITERATOR
21341 _ACEOF
21342
21343 fi
21344
21345
21346 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21347 # for constant arguments.  Useless!
21348 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21349 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21350 if test "${ac_cv_working_alloca_h+set}" = set; then
21351   echo $ECHO_N "(cached) $ECHO_C" >&6
21352 else
21353   cat >conftest.$ac_ext <<_ACEOF
21354 #line $LINENO "configure"
21355 /* confdefs.h.  */
21356 _ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h.  */
21360 #include <alloca.h>
21361 int
21362 main ()
21363 {
21364 char *p = (char *) alloca (2 * sizeof (int));
21365   ;
21366   return 0;
21367 }
21368 _ACEOF
21369 rm -f conftest.$ac_objext conftest$ac_exeext
21370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21371   (eval $ac_link) 2>&5
21372   ac_status=$?
21373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374   (exit $ac_status); } &&
21375          { ac_try='test -s conftest$ac_exeext'
21376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21377   (eval $ac_try) 2>&5
21378   ac_status=$?
21379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380   (exit $ac_status); }; }; then
21381   ac_cv_working_alloca_h=yes
21382 else
21383   echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21385
21386 ac_cv_working_alloca_h=no
21387 fi
21388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21389 fi
21390 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21391 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21392 if test $ac_cv_working_alloca_h = yes; then
21393
21394 cat >>confdefs.h <<\_ACEOF
21395 #define HAVE_ALLOCA_H 1
21396 _ACEOF
21397
21398 fi
21399
21400 echo "$as_me:$LINENO: checking for alloca" >&5
21401 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21402 if test "${ac_cv_func_alloca_works+set}" = set; then
21403   echo $ECHO_N "(cached) $ECHO_C" >&6
21404 else
21405   cat >conftest.$ac_ext <<_ACEOF
21406 #line $LINENO "configure"
21407 /* confdefs.h.  */
21408 _ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h.  */
21412 #ifdef __GNUC__
21413 # define alloca __builtin_alloca
21414 #else
21415 # ifdef _MSC_VER
21416 #  include <malloc.h>
21417 #  define alloca _alloca
21418 # else
21419 #  if HAVE_ALLOCA_H
21420 #   include <alloca.h>
21421 #  else
21422 #   ifdef _AIX
21423  #pragma alloca
21424 #   else
21425 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21426 char *alloca ();
21427 #    endif
21428 #   endif
21429 #  endif
21430 # endif
21431 #endif
21432
21433 int
21434 main ()
21435 {
21436 char *p = (char *) alloca (1);
21437   ;
21438   return 0;
21439 }
21440 _ACEOF
21441 rm -f conftest.$ac_objext conftest$ac_exeext
21442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21443   (eval $ac_link) 2>&5
21444   ac_status=$?
21445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446   (exit $ac_status); } &&
21447          { ac_try='test -s conftest$ac_exeext'
21448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21449   (eval $ac_try) 2>&5
21450   ac_status=$?
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); }; }; then
21453   ac_cv_func_alloca_works=yes
21454 else
21455   echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21457
21458 ac_cv_func_alloca_works=no
21459 fi
21460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21461 fi
21462 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21463 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21464
21465 if test $ac_cv_func_alloca_works = yes; then
21466
21467 cat >>confdefs.h <<\_ACEOF
21468 #define HAVE_ALLOCA 1
21469 _ACEOF
21470
21471 else
21472   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21473 # that cause trouble.  Some versions do not even contain alloca or
21474 # contain a buggy version.  If you still want to use their alloca,
21475 # use ar to extract alloca.o from them instead of compiling alloca.c.
21476
21477 ALLOCA=alloca.$ac_objext
21478
21479 cat >>confdefs.h <<\_ACEOF
21480 #define C_ALLOCA 1
21481 _ACEOF
21482
21483
21484 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21485 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21486 if test "${ac_cv_os_cray+set}" = set; then
21487   echo $ECHO_N "(cached) $ECHO_C" >&6
21488 else
21489   cat >conftest.$ac_ext <<_ACEOF
21490 #line $LINENO "configure"
21491 /* confdefs.h.  */
21492 _ACEOF
21493 cat confdefs.h >>conftest.$ac_ext
21494 cat >>conftest.$ac_ext <<_ACEOF
21495 /* end confdefs.h.  */
21496 #if defined(CRAY) && ! defined(CRAY2)
21497 webecray
21498 #else
21499 wenotbecray
21500 #endif
21501
21502 _ACEOF
21503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21504   $EGREP "webecray" >/dev/null 2>&1; then
21505   ac_cv_os_cray=yes
21506 else
21507   ac_cv_os_cray=no
21508 fi
21509 rm -f conftest*
21510
21511 fi
21512 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21513 echo "${ECHO_T}$ac_cv_os_cray" >&6
21514 if test $ac_cv_os_cray = yes; then
21515   for ac_func in _getb67 GETB67 getb67; do
21516     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21517 echo "$as_me:$LINENO: checking for $ac_func" >&5
21518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21519 if eval "test \"\${$as_ac_var+set}\" = set"; then
21520   echo $ECHO_N "(cached) $ECHO_C" >&6
21521 else
21522   cat >conftest.$ac_ext <<_ACEOF
21523 #line $LINENO "configure"
21524 /* confdefs.h.  */
21525 _ACEOF
21526 cat confdefs.h >>conftest.$ac_ext
21527 cat >>conftest.$ac_ext <<_ACEOF
21528 /* end confdefs.h.  */
21529 /* System header to define __stub macros and hopefully few prototypes,
21530     which can conflict with char $ac_func (); below.
21531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21532     <limits.h> exists even on freestanding compilers.  */
21533 #ifdef __STDC__
21534 # include <limits.h>
21535 #else
21536 # include <assert.h>
21537 #endif
21538 /* Override any gcc2 internal prototype to avoid an error.  */
21539 #ifdef __cplusplus
21540 extern "C"
21541 {
21542 #endif
21543 /* We use char because int might match the return type of a gcc2
21544    builtin and then its argument prototype would still apply.  */
21545 char $ac_func ();
21546 /* The GNU C library defines this for functions which it implements
21547     to always fail with ENOSYS.  Some functions are actually named
21548     something starting with __ and the normal name is an alias.  */
21549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21550 choke me
21551 #else
21552 char (*f) () = $ac_func;
21553 #endif
21554 #ifdef __cplusplus
21555 }
21556 #endif
21557
21558 int
21559 main ()
21560 {
21561 return f != $ac_func;
21562   ;
21563   return 0;
21564 }
21565 _ACEOF
21566 rm -f conftest.$ac_objext conftest$ac_exeext
21567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21568   (eval $ac_link) 2>&5
21569   ac_status=$?
21570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571   (exit $ac_status); } &&
21572          { ac_try='test -s conftest$ac_exeext'
21573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574   (eval $ac_try) 2>&5
21575   ac_status=$?
21576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577   (exit $ac_status); }; }; then
21578   eval "$as_ac_var=yes"
21579 else
21580   echo "$as_me: failed program was:" >&5
21581 sed 's/^/| /' conftest.$ac_ext >&5
21582
21583 eval "$as_ac_var=no"
21584 fi
21585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21586 fi
21587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21589 if test `eval echo '${'$as_ac_var'}'` = yes; then
21590
21591 cat >>confdefs.h <<_ACEOF
21592 #define CRAY_STACKSEG_END $ac_func
21593 _ACEOF
21594
21595     break
21596 fi
21597
21598   done
21599 fi
21600
21601 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21602 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21603 if test "${ac_cv_c_stack_direction+set}" = set; then
21604   echo $ECHO_N "(cached) $ECHO_C" >&6
21605 else
21606   if test "$cross_compiling" = yes; then
21607   ac_cv_c_stack_direction=0
21608 else
21609   cat >conftest.$ac_ext <<_ACEOF
21610 #line $LINENO "configure"
21611 /* confdefs.h.  */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h.  */
21616 int
21617 find_stack_direction ()
21618 {
21619   static char *addr = 0;
21620   auto char dummy;
21621   if (addr == 0)
21622     {
21623       addr = &dummy;
21624       return find_stack_direction ();
21625     }
21626   else
21627     return (&dummy > addr) ? 1 : -1;
21628 }
21629
21630 int
21631 main ()
21632 {
21633   exit (find_stack_direction () < 0);
21634 }
21635 _ACEOF
21636 rm -f conftest$ac_exeext
21637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21638   (eval $ac_link) 2>&5
21639   ac_status=$?
21640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643   (eval $ac_try) 2>&5
21644   ac_status=$?
21645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646   (exit $ac_status); }; }; then
21647   ac_cv_c_stack_direction=1
21648 else
21649   echo "$as_me: program exited with status $ac_status" >&5
21650 echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21652
21653 ( exit $ac_status )
21654 ac_cv_c_stack_direction=-1
21655 fi
21656 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21657 fi
21658 fi
21659 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21660 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21661
21662 cat >>confdefs.h <<_ACEOF
21663 #define STACK_DIRECTION $ac_cv_c_stack_direction
21664 _ACEOF
21665
21666
21667 fi
21668
21669 if test $ac_cv_c_compiler_gnu = yes; then
21670     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21671 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21672 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21673   echo $ECHO_N "(cached) $ECHO_C" >&6
21674 else
21675     ac_pattern="Autoconf.*'x'"
21676   cat >conftest.$ac_ext <<_ACEOF
21677 #line $LINENO "configure"
21678 /* confdefs.h.  */
21679 _ACEOF
21680 cat confdefs.h >>conftest.$ac_ext
21681 cat >>conftest.$ac_ext <<_ACEOF
21682 /* end confdefs.h.  */
21683 #include <sgtty.h>
21684 Autoconf TIOCGETP
21685 _ACEOF
21686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21687   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21688   ac_cv_prog_gcc_traditional=yes
21689 else
21690   ac_cv_prog_gcc_traditional=no
21691 fi
21692 rm -f conftest*
21693
21694
21695   if test $ac_cv_prog_gcc_traditional = no; then
21696     cat >conftest.$ac_ext <<_ACEOF
21697 #line $LINENO "configure"
21698 /* confdefs.h.  */
21699 _ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h.  */
21703 #include <termio.h>
21704 Autoconf TCGETA
21705 _ACEOF
21706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21707   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21708   ac_cv_prog_gcc_traditional=yes
21709 fi
21710 rm -f conftest*
21711
21712   fi
21713 fi
21714 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21715 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21716   if test $ac_cv_prog_gcc_traditional = yes; then
21717     CC="$CC -traditional"
21718   fi
21719 fi
21720
21721 echo "$as_me:$LINENO: checking for working memcmp" >&5
21722 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21723 if test "${ac_cv_func_memcmp_working+set}" = set; then
21724   echo $ECHO_N "(cached) $ECHO_C" >&6
21725 else
21726   if test "$cross_compiling" = yes; then
21727   ac_cv_func_memcmp_working=no
21728 else
21729   cat >conftest.$ac_ext <<_ACEOF
21730 #line $LINENO "configure"
21731 /* confdefs.h.  */
21732 _ACEOF
21733 cat confdefs.h >>conftest.$ac_ext
21734 cat >>conftest.$ac_ext <<_ACEOF
21735 /* end confdefs.h.  */
21736
21737 int
21738 main ()
21739 {
21740
21741   /* Some versions of memcmp are not 8-bit clean.  */
21742   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21743   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21744     exit (1);
21745
21746   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21747      or more and with at least one buffer not starting on a 4-byte boundary.
21748      William Lewis provided this test program.   */
21749   {
21750     char foo[21];
21751     char bar[21];
21752     int i;
21753     for (i = 0; i < 4; i++)
21754       {
21755         char *a = foo + i;
21756         char *b = bar + i;
21757         strcpy (a, "--------01111111");
21758         strcpy (b, "--------10000000");
21759         if (memcmp (a, b, 16) >= 0)
21760           exit (1);
21761       }
21762     exit (0);
21763   }
21764
21765   ;
21766   return 0;
21767 }
21768 _ACEOF
21769 rm -f conftest$ac_exeext
21770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21771   (eval $ac_link) 2>&5
21772   ac_status=$?
21773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21776   (eval $ac_try) 2>&5
21777   ac_status=$?
21778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779   (exit $ac_status); }; }; then
21780   ac_cv_func_memcmp_working=yes
21781 else
21782   echo "$as_me: program exited with status $ac_status" >&5
21783 echo "$as_me: failed program was:" >&5
21784 sed 's/^/| /' conftest.$ac_ext >&5
21785
21786 ( exit $ac_status )
21787 ac_cv_func_memcmp_working=no
21788 fi
21789 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21790 fi
21791 fi
21792 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21793 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21794 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21795
21796
21797
21798 for ac_header in stdlib.h unistd.h
21799 do
21800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21802   echo "$as_me:$LINENO: checking for $ac_header" >&5
21803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21805   echo $ECHO_N "(cached) $ECHO_C" >&6
21806 fi
21807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21809 else
21810   # Is the header compilable?
21811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21813 cat >conftest.$ac_ext <<_ACEOF
21814 #line $LINENO "configure"
21815 /* confdefs.h.  */
21816 _ACEOF
21817 cat confdefs.h >>conftest.$ac_ext
21818 cat >>conftest.$ac_ext <<_ACEOF
21819 /* end confdefs.h.  */
21820 $ac_includes_default
21821 #include <$ac_header>
21822 _ACEOF
21823 rm -f conftest.$ac_objext
21824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21825   (eval $ac_compile) 2>&5
21826   ac_status=$?
21827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828   (exit $ac_status); } &&
21829          { ac_try='test -s conftest.$ac_objext'
21830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21831   (eval $ac_try) 2>&5
21832   ac_status=$?
21833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834   (exit $ac_status); }; }; then
21835   ac_header_compiler=yes
21836 else
21837   echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.$ac_ext >&5
21839
21840 ac_header_compiler=no
21841 fi
21842 rm -f conftest.$ac_objext conftest.$ac_ext
21843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21844 echo "${ECHO_T}$ac_header_compiler" >&6
21845
21846 # Is the header present?
21847 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21849 cat >conftest.$ac_ext <<_ACEOF
21850 #line $LINENO "configure"
21851 /* confdefs.h.  */
21852 _ACEOF
21853 cat confdefs.h >>conftest.$ac_ext
21854 cat >>conftest.$ac_ext <<_ACEOF
21855 /* end confdefs.h.  */
21856 #include <$ac_header>
21857 _ACEOF
21858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21859   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21860   ac_status=$?
21861   grep -v '^ *+' conftest.er1 >conftest.err
21862   rm -f conftest.er1
21863   cat conftest.err >&5
21864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865   (exit $ac_status); } >/dev/null; then
21866   if test -s conftest.err; then
21867     ac_cpp_err=$ac_c_preproc_warn_flag
21868   else
21869     ac_cpp_err=
21870   fi
21871 else
21872   ac_cpp_err=yes
21873 fi
21874 if test -z "$ac_cpp_err"; then
21875   ac_header_preproc=yes
21876 else
21877   echo "$as_me: failed program was:" >&5
21878 sed 's/^/| /' conftest.$ac_ext >&5
21879
21880   ac_header_preproc=no
21881 fi
21882 rm -f conftest.err conftest.$ac_ext
21883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21884 echo "${ECHO_T}$ac_header_preproc" >&6
21885
21886 # So?  What about this header?
21887 case $ac_header_compiler:$ac_header_preproc in
21888   yes:no )
21889     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21893     (
21894       cat <<\_ASBOX
21895 ## ------------------------------------ ##
21896 ## Report this to bug-autoconf@gnu.org. ##
21897 ## ------------------------------------ ##
21898 _ASBOX
21899     ) |
21900       sed "s/^/$as_me: WARNING:     /" >&2
21901     ;;
21902   no:yes )
21903     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21905     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21909     (
21910       cat <<\_ASBOX
21911 ## ------------------------------------ ##
21912 ## Report this to bug-autoconf@gnu.org. ##
21913 ## ------------------------------------ ##
21914 _ASBOX
21915     ) |
21916       sed "s/^/$as_me: WARNING:     /" >&2
21917     ;;
21918 esac
21919 echo "$as_me:$LINENO: checking for $ac_header" >&5
21920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21922   echo $ECHO_N "(cached) $ECHO_C" >&6
21923 else
21924   eval "$as_ac_Header=$ac_header_preproc"
21925 fi
21926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21928
21929 fi
21930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21931   cat >>confdefs.h <<_ACEOF
21932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21933 _ACEOF
21934
21935 fi
21936
21937 done
21938
21939
21940 for ac_func in getpagesize
21941 do
21942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21943 echo "$as_me:$LINENO: checking for $ac_func" >&5
21944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21945 if eval "test \"\${$as_ac_var+set}\" = set"; then
21946   echo $ECHO_N "(cached) $ECHO_C" >&6
21947 else
21948   cat >conftest.$ac_ext <<_ACEOF
21949 #line $LINENO "configure"
21950 /* confdefs.h.  */
21951 _ACEOF
21952 cat confdefs.h >>conftest.$ac_ext
21953 cat >>conftest.$ac_ext <<_ACEOF
21954 /* end confdefs.h.  */
21955 /* System header to define __stub macros and hopefully few prototypes,
21956     which can conflict with char $ac_func (); below.
21957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21958     <limits.h> exists even on freestanding compilers.  */
21959 #ifdef __STDC__
21960 # include <limits.h>
21961 #else
21962 # include <assert.h>
21963 #endif
21964 /* Override any gcc2 internal prototype to avoid an error.  */
21965 #ifdef __cplusplus
21966 extern "C"
21967 {
21968 #endif
21969 /* We use char because int might match the return type of a gcc2
21970    builtin and then its argument prototype would still apply.  */
21971 char $ac_func ();
21972 /* The GNU C library defines this for functions which it implements
21973     to always fail with ENOSYS.  Some functions are actually named
21974     something starting with __ and the normal name is an alias.  */
21975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21976 choke me
21977 #else
21978 char (*f) () = $ac_func;
21979 #endif
21980 #ifdef __cplusplus
21981 }
21982 #endif
21983
21984 int
21985 main ()
21986 {
21987 return f != $ac_func;
21988   ;
21989   return 0;
21990 }
21991 _ACEOF
21992 rm -f conftest.$ac_objext conftest$ac_exeext
21993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21994   (eval $ac_link) 2>&5
21995   ac_status=$?
21996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997   (exit $ac_status); } &&
21998          { ac_try='test -s conftest$ac_exeext'
21999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22000   (eval $ac_try) 2>&5
22001   ac_status=$?
22002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003   (exit $ac_status); }; }; then
22004   eval "$as_ac_var=yes"
22005 else
22006   echo "$as_me: failed program was:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22008
22009 eval "$as_ac_var=no"
22010 fi
22011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22012 fi
22013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22015 if test `eval echo '${'$as_ac_var'}'` = yes; then
22016   cat >>confdefs.h <<_ACEOF
22017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22018 _ACEOF
22019
22020 fi
22021 done
22022
22023 echo "$as_me:$LINENO: checking for working mmap" >&5
22024 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22025 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22026   echo $ECHO_N "(cached) $ECHO_C" >&6
22027 else
22028   if test "$cross_compiling" = yes; then
22029   ac_cv_func_mmap_fixed_mapped=no
22030 else
22031   cat >conftest.$ac_ext <<_ACEOF
22032 #line $LINENO "configure"
22033 /* confdefs.h.  */
22034 _ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h.  */
22038 $ac_includes_default
22039 /* malloc might have been renamed as rpl_malloc. */
22040 #undef malloc
22041
22042 /* Thanks to Mike Haertel and Jim Avera for this test.
22043    Here is a matrix of mmap possibilities:
22044         mmap private not fixed
22045         mmap private fixed at somewhere currently unmapped
22046         mmap private fixed at somewhere already mapped
22047         mmap shared not fixed
22048         mmap shared fixed at somewhere currently unmapped
22049         mmap shared fixed at somewhere already mapped
22050    For private mappings, we should verify that changes cannot be read()
22051    back from the file, nor mmap's back from the file at a different
22052    address.  (There have been systems where private was not correctly
22053    implemented like the infamous i386 svr4.0, and systems where the
22054    VM page cache was not coherent with the file system buffer cache
22055    like early versions of FreeBSD and possibly contemporary NetBSD.)
22056    For shared mappings, we should conversely verify that changes get
22057    propagated back to all the places they're supposed to be.
22058
22059    Grep wants private fixed already mapped.
22060    The main things grep needs to know about mmap are:
22061    * does it exist and is it safe to write into the mmap'd area
22062    * how to use it (BSD variants)  */
22063
22064 #include <fcntl.h>
22065 #include <sys/mman.h>
22066
22067 #if !STDC_HEADERS && !HAVE_STDLIB_H
22068 char *malloc ();
22069 #endif
22070
22071 /* This mess was copied from the GNU getpagesize.h.  */
22072 #if !HAVE_GETPAGESIZE
22073 /* Assume that all systems that can run configure have sys/param.h.  */
22074 # if !HAVE_SYS_PARAM_H
22075 #  define HAVE_SYS_PARAM_H 1
22076 # endif
22077
22078 # ifdef _SC_PAGESIZE
22079 #  define getpagesize() sysconf(_SC_PAGESIZE)
22080 # else /* no _SC_PAGESIZE */
22081 #  if HAVE_SYS_PARAM_H
22082 #   include <sys/param.h>
22083 #   ifdef EXEC_PAGESIZE
22084 #    define getpagesize() EXEC_PAGESIZE
22085 #   else /* no EXEC_PAGESIZE */
22086 #    ifdef NBPG
22087 #     define getpagesize() NBPG * CLSIZE
22088 #     ifndef CLSIZE
22089 #      define CLSIZE 1
22090 #     endif /* no CLSIZE */
22091 #    else /* no NBPG */
22092 #     ifdef NBPC
22093 #      define getpagesize() NBPC
22094 #     else /* no NBPC */
22095 #      ifdef PAGESIZE
22096 #       define getpagesize() PAGESIZE
22097 #      endif /* PAGESIZE */
22098 #     endif /* no NBPC */
22099 #    endif /* no NBPG */
22100 #   endif /* no EXEC_PAGESIZE */
22101 #  else /* no HAVE_SYS_PARAM_H */
22102 #   define getpagesize() 8192   /* punt totally */
22103 #  endif /* no HAVE_SYS_PARAM_H */
22104 # endif /* no _SC_PAGESIZE */
22105
22106 #endif /* no HAVE_GETPAGESIZE */
22107
22108 int
22109 main ()
22110 {
22111   char *data, *data2, *data3;
22112   int i, pagesize;
22113   int fd;
22114
22115   pagesize = getpagesize ();
22116
22117   /* First, make a file with some known garbage in it. */
22118   data = (char *) malloc (pagesize);
22119   if (!data)
22120     exit (1);
22121   for (i = 0; i < pagesize; ++i)
22122     *(data + i) = rand ();
22123   umask (0);
22124   fd = creat ("conftest.mmap", 0600);
22125   if (fd < 0)
22126     exit (1);
22127   if (write (fd, data, pagesize) != pagesize)
22128     exit (1);
22129   close (fd);
22130
22131   /* Next, try to mmap the file at a fixed address which already has
22132      something else allocated at it.  If we can, also make sure that
22133      we see the same garbage.  */
22134   fd = open ("conftest.mmap", O_RDWR);
22135   if (fd < 0)
22136     exit (1);
22137   data2 = (char *) malloc (2 * pagesize);
22138   if (!data2)
22139     exit (1);
22140   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22141   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22142                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22143     exit (1);
22144   for (i = 0; i < pagesize; ++i)
22145     if (*(data + i) != *(data2 + i))
22146       exit (1);
22147
22148   /* Finally, make sure that changes to the mapped area do not
22149      percolate back to the file as seen by read().  (This is a bug on
22150      some variants of i386 svr4.0.)  */
22151   for (i = 0; i < pagesize; ++i)
22152     *(data2 + i) = *(data2 + i) + 1;
22153   data3 = (char *) malloc (pagesize);
22154   if (!data3)
22155     exit (1);
22156   if (read (fd, data3, pagesize) != pagesize)
22157     exit (1);
22158   for (i = 0; i < pagesize; ++i)
22159     if (*(data + i) != *(data3 + i))
22160       exit (1);
22161   close (fd);
22162   exit (0);
22163 }
22164 _ACEOF
22165 rm -f conftest$ac_exeext
22166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22167   (eval $ac_link) 2>&5
22168   ac_status=$?
22169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22172   (eval $ac_try) 2>&5
22173   ac_status=$?
22174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175   (exit $ac_status); }; }; then
22176   ac_cv_func_mmap_fixed_mapped=yes
22177 else
22178   echo "$as_me: program exited with status $ac_status" >&5
22179 echo "$as_me: failed program was:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22181
22182 ( exit $ac_status )
22183 ac_cv_func_mmap_fixed_mapped=no
22184 fi
22185 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22186 fi
22187 fi
22188 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22189 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22190 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22191
22192 cat >>confdefs.h <<\_ACEOF
22193 #define HAVE_MMAP 1
22194 _ACEOF
22195
22196 fi
22197 rm -f conftest.mmap
22198
22199 echo "$as_me:$LINENO: checking for mmap of files" >&5
22200 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22201 if test "${ac_cv_func_mmap_file+set}" = set; then
22202   echo $ECHO_N "(cached) $ECHO_C" >&6
22203 else
22204
22205
22206   ac_ext=c
22207 ac_cpp='$CPP $CPPFLAGS'
22208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22211
22212   if test "$cross_compiling" = yes; then
22213   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22214 See \`config.log' for more details." >&5
22215 echo "$as_me: error: cannot run test program while cross compiling
22216 See \`config.log' for more details." >&2;}
22217    { (exit 1); exit 1; }; }
22218 else
22219   cat >conftest.$ac_ext <<_ACEOF
22220 #line $LINENO "configure"
22221 /* confdefs.h.  */
22222 _ACEOF
22223 cat confdefs.h >>conftest.$ac_ext
22224 cat >>conftest.$ac_ext <<_ACEOF
22225 /* end confdefs.h.  */
22226
22227 #ifdef HAVE_SYS_MMAN_H
22228 #include <sys/mman.h>
22229 #endif
22230
22231 #ifdef HAVE_SYS_TYPES_H
22232 #include <sys/types.h>
22233 #endif
22234
22235 #ifdef HAVE_FCNTL_H
22236 #include <fcntl.h>
22237 #endif
22238
22239   int fd;
22240   int main () {
22241   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22242 _ACEOF
22243 rm -f conftest$ac_exeext
22244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22245   (eval $ac_link) 2>&5
22246   ac_status=$?
22247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22250   (eval $ac_try) 2>&5
22251   ac_status=$?
22252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253   (exit $ac_status); }; }; then
22254   ac_cv_func_mmap_file=yes
22255 else
22256   echo "$as_me: program exited with status $ac_status" >&5
22257 echo "$as_me: failed program was:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22259
22260 ( exit $ac_status )
22261 ac_cv_func_mmap_file=no
22262 fi
22263 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22264 fi
22265   ac_ext=c
22266 ac_cpp='$CPP $CPPFLAGS'
22267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22270
22271
22272 fi
22273 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22274 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22275 if test "$ac_cv_func_mmap_file" = yes; then
22276    cat >>confdefs.h <<\_ACEOF
22277 #define HAVE_MMAP_FILE 1
22278 _ACEOF
22279
22280    MMAP_FILE=yes
22281
22282 fi
22283
22284 if test ${ac_cv_func_mmap_file} = "no"
22285 then
22286         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22287 echo "$as_me: error: mmap() of files required but not found" >&2;}
22288    { (exit 1); exit 1; }; }
22289 fi
22290 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22291 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22292 if test "${ac_cv_header_mmap_anon+set}" = set; then
22293   echo $ECHO_N "(cached) $ECHO_C" >&6
22294 else
22295
22296
22297   ac_ext=c
22298 ac_cpp='$CPP $CPPFLAGS'
22299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22302
22303   cat >conftest.$ac_ext <<_ACEOF
22304 #line $LINENO "configure"
22305 /* confdefs.h.  */
22306 _ACEOF
22307 cat confdefs.h >>conftest.$ac_ext
22308 cat >>conftest.$ac_ext <<_ACEOF
22309 /* end confdefs.h.  */
22310 #include <sys/mman.h>
22311   #include <unistd.h>
22312   #include <fcntl.h>
22313 int
22314 main ()
22315 {
22316 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22317   ;
22318   return 0;
22319 }
22320 _ACEOF
22321 rm -f conftest.$ac_objext
22322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22323   (eval $ac_compile) 2>&5
22324   ac_status=$?
22325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326   (exit $ac_status); } &&
22327          { ac_try='test -s conftest.$ac_objext'
22328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329   (eval $ac_try) 2>&5
22330   ac_status=$?
22331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332   (exit $ac_status); }; }; then
22333   ac_cv_header_mmap_anon=yes
22334 else
22335   echo "$as_me: failed program was:" >&5
22336 sed 's/^/| /' conftest.$ac_ext >&5
22337
22338 ac_cv_header_mmap_anon=no
22339 fi
22340 rm -f conftest.$ac_objext conftest.$ac_ext
22341   ac_ext=c
22342 ac_cpp='$CPP $CPPFLAGS'
22343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22346
22347
22348 fi
22349 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22350 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22351 if test "$ac_cv_header_mmap_anon" = yes; then
22352    cat >>confdefs.h <<\_ACEOF
22353 #define HAVE_MMAP_ANONYMOUS 1
22354 _ACEOF
22355
22356 fi
22357
22358 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22359 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22360 if test "${ac_cv_type_signal+set}" = set; then
22361   echo $ECHO_N "(cached) $ECHO_C" >&6
22362 else
22363   cat >conftest.$ac_ext <<_ACEOF
22364 #line $LINENO "configure"
22365 /* confdefs.h.  */
22366 _ACEOF
22367 cat confdefs.h >>conftest.$ac_ext
22368 cat >>conftest.$ac_ext <<_ACEOF
22369 /* end confdefs.h.  */
22370 #include <sys/types.h>
22371 #include <signal.h>
22372 #ifdef signal
22373 # undef signal
22374 #endif
22375 #ifdef __cplusplus
22376 extern "C" void (*signal (int, void (*)(int)))(int);
22377 #else
22378 void (*signal ()) ();
22379 #endif
22380
22381 int
22382 main ()
22383 {
22384 int i;
22385   ;
22386   return 0;
22387 }
22388 _ACEOF
22389 rm -f conftest.$ac_objext
22390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22391   (eval $ac_compile) 2>&5
22392   ac_status=$?
22393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394   (exit $ac_status); } &&
22395          { ac_try='test -s conftest.$ac_objext'
22396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22397   (eval $ac_try) 2>&5
22398   ac_status=$?
22399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400   (exit $ac_status); }; }; then
22401   ac_cv_type_signal=void
22402 else
22403   echo "$as_me: failed program was:" >&5
22404 sed 's/^/| /' conftest.$ac_ext >&5
22405
22406 ac_cv_type_signal=int
22407 fi
22408 rm -f conftest.$ac_objext conftest.$ac_ext
22409 fi
22410 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22411 echo "${ECHO_T}$ac_cv_type_signal" >&6
22412
22413 cat >>confdefs.h <<_ACEOF
22414 #define RETSIGTYPE $ac_cv_type_signal
22415 _ACEOF
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
22430 do
22431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22432 echo "$as_me:$LINENO: checking for $ac_func" >&5
22433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22434 if eval "test \"\${$as_ac_var+set}\" = set"; then
22435   echo $ECHO_N "(cached) $ECHO_C" >&6
22436 else
22437   cat >conftest.$ac_ext <<_ACEOF
22438 #line $LINENO "configure"
22439 /* confdefs.h.  */
22440 _ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h.  */
22444 /* System header to define __stub macros and hopefully few prototypes,
22445     which can conflict with char $ac_func (); below.
22446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22447     <limits.h> exists even on freestanding compilers.  */
22448 #ifdef __STDC__
22449 # include <limits.h>
22450 #else
22451 # include <assert.h>
22452 #endif
22453 /* Override any gcc2 internal prototype to avoid an error.  */
22454 #ifdef __cplusplus
22455 extern "C"
22456 {
22457 #endif
22458 /* We use char because int might match the return type of a gcc2
22459    builtin and then its argument prototype would still apply.  */
22460 char $ac_func ();
22461 /* The GNU C library defines this for functions which it implements
22462     to always fail with ENOSYS.  Some functions are actually named
22463     something starting with __ and the normal name is an alias.  */
22464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22465 choke me
22466 #else
22467 char (*f) () = $ac_func;
22468 #endif
22469 #ifdef __cplusplus
22470 }
22471 #endif
22472
22473 int
22474 main ()
22475 {
22476 return f != $ac_func;
22477   ;
22478   return 0;
22479 }
22480 _ACEOF
22481 rm -f conftest.$ac_objext conftest$ac_exeext
22482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22483   (eval $ac_link) 2>&5
22484   ac_status=$?
22485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486   (exit $ac_status); } &&
22487          { ac_try='test -s conftest$ac_exeext'
22488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489   (eval $ac_try) 2>&5
22490   ac_status=$?
22491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492   (exit $ac_status); }; }; then
22493   eval "$as_ac_var=yes"
22494 else
22495   echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22497
22498 eval "$as_ac_var=no"
22499 fi
22500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22501 fi
22502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22504 if test `eval echo '${'$as_ac_var'}'` = yes; then
22505   cat >>confdefs.h <<_ACEOF
22506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22507 _ACEOF
22508
22509 fi
22510 done
22511
22512
22513
22514 echo "$as_me:$LINENO: checking for mmap" >&5
22515 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22516 if test "${ac_cv_func_mmap+set}" = set; then
22517   echo $ECHO_N "(cached) $ECHO_C" >&6
22518 else
22519   cat >conftest.$ac_ext <<_ACEOF
22520 #line $LINENO "configure"
22521 /* confdefs.h.  */
22522 _ACEOF
22523 cat confdefs.h >>conftest.$ac_ext
22524 cat >>conftest.$ac_ext <<_ACEOF
22525 /* end confdefs.h.  */
22526 /* System header to define __stub macros and hopefully few prototypes,
22527     which can conflict with char mmap (); below.
22528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22529     <limits.h> exists even on freestanding compilers.  */
22530 #ifdef __STDC__
22531 # include <limits.h>
22532 #else
22533 # include <assert.h>
22534 #endif
22535 /* Override any gcc2 internal prototype to avoid an error.  */
22536 #ifdef __cplusplus
22537 extern "C"
22538 {
22539 #endif
22540 /* We use char because int might match the return type of a gcc2
22541    builtin and then its argument prototype would still apply.  */
22542 char mmap ();
22543 /* The GNU C library defines this for functions which it implements
22544     to always fail with ENOSYS.  Some functions are actually named
22545     something starting with __ and the normal name is an alias.  */
22546 #if defined (__stub_mmap) || defined (__stub___mmap)
22547 choke me
22548 #else
22549 char (*f) () = mmap;
22550 #endif
22551 #ifdef __cplusplus
22552 }
22553 #endif
22554
22555 int
22556 main ()
22557 {
22558 return f != mmap;
22559   ;
22560   return 0;
22561 }
22562 _ACEOF
22563 rm -f conftest.$ac_objext conftest$ac_exeext
22564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22565   (eval $ac_link) 2>&5
22566   ac_status=$?
22567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568   (exit $ac_status); } &&
22569          { ac_try='test -s conftest$ac_exeext'
22570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571   (eval $ac_try) 2>&5
22572   ac_status=$?
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); }; }; then
22575   ac_cv_func_mmap=yes
22576 else
22577   echo "$as_me: failed program was:" >&5
22578 sed 's/^/| /' conftest.$ac_ext >&5
22579
22580 ac_cv_func_mmap=no
22581 fi
22582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22583 fi
22584 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22585 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22586 if test $ac_cv_func_mmap = yes; then
22587   :
22588 else
22589   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22590 echo "$as_me: error: Function mmap() required but not found" >&2;}
22591    { (exit 1); exit 1; }; }
22592 fi
22593
22594 echo "$as_me:$LINENO: checking for mprotect" >&5
22595 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22596 if test "${ac_cv_func_mprotect+set}" = set; then
22597   echo $ECHO_N "(cached) $ECHO_C" >&6
22598 else
22599   cat >conftest.$ac_ext <<_ACEOF
22600 #line $LINENO "configure"
22601 /* confdefs.h.  */
22602 _ACEOF
22603 cat confdefs.h >>conftest.$ac_ext
22604 cat >>conftest.$ac_ext <<_ACEOF
22605 /* end confdefs.h.  */
22606 /* System header to define __stub macros and hopefully few prototypes,
22607     which can conflict with char mprotect (); below.
22608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22609     <limits.h> exists even on freestanding compilers.  */
22610 #ifdef __STDC__
22611 # include <limits.h>
22612 #else
22613 # include <assert.h>
22614 #endif
22615 /* Override any gcc2 internal prototype to avoid an error.  */
22616 #ifdef __cplusplus
22617 extern "C"
22618 {
22619 #endif
22620 /* We use char because int might match the return type of a gcc2
22621    builtin and then its argument prototype would still apply.  */
22622 char mprotect ();
22623 /* The GNU C library defines this for functions which it implements
22624     to always fail with ENOSYS.  Some functions are actually named
22625     something starting with __ and the normal name is an alias.  */
22626 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22627 choke me
22628 #else
22629 char (*f) () = mprotect;
22630 #endif
22631 #ifdef __cplusplus
22632 }
22633 #endif
22634
22635 int
22636 main ()
22637 {
22638 return f != mprotect;
22639   ;
22640   return 0;
22641 }
22642 _ACEOF
22643 rm -f conftest.$ac_objext conftest$ac_exeext
22644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22645   (eval $ac_link) 2>&5
22646   ac_status=$?
22647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648   (exit $ac_status); } &&
22649          { ac_try='test -s conftest$ac_exeext'
22650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22651   (eval $ac_try) 2>&5
22652   ac_status=$?
22653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654   (exit $ac_status); }; }; then
22655   ac_cv_func_mprotect=yes
22656 else
22657   echo "$as_me: failed program was:" >&5
22658 sed 's/^/| /' conftest.$ac_ext >&5
22659
22660 ac_cv_func_mprotect=no
22661 fi
22662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22663 fi
22664 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22665 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22666 if test $ac_cv_func_mprotect = yes; then
22667   :
22668 else
22669   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22670 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22671    { (exit 1); exit 1; }; }
22672 fi
22673
22674
22675
22676 # Check whether --enable-purify or --disable-purify was given.
22677 if test "${enable_purify+set}" = set; then
22678   enableval="$enable_purify"
22679
22680 else
22681   enableval="no"
22682 fi;
22683 if test ${enableval} = "no"
22684 then
22685         ENABLE_PURIFY=
22686
22687 else
22688         ENABLE_PURIFY=ENABLE_PURIFY=1
22689
22690 fi
22691
22692 # Check whether --enable-optimized or --disable-optimized was given.
22693 if test "${enable_optimized+set}" = set; then
22694   enableval="$enable_optimized"
22695
22696 else
22697   enableval=no
22698 fi;
22699 if test ${enableval} = "no"
22700 then
22701         ENABLE_OPTIMIZED=
22702
22703 else
22704         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22705
22706 fi
22707
22708 # Check whether --enable-spec2000 or --disable-spec2000 was given.
22709 if test "${enable_spec2000+set}" = set; then
22710   enableval="$enable_spec2000"
22711
22712 else
22713   enableval=no
22714 fi;
22715 if test ${enableval} = "no"
22716 then
22717         if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22718         then
22719                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22720
22721                 USE_SPEC=USE_SPEC=1
22722
22723         else
22724                 USE_SPEC=
22725
22726
22727         fi
22728 else
22729         if test ${enableval} = ""
22730         then
22731                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22732
22733         else
22734                 SPEC_ROOT=${enableval}
22735
22736         fi
22737         USE_SPEC=USE_SPEC=1
22738
22739 fi
22740
22741 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22742 if test "${enable_precompiled_bytecode+set}" = set; then
22743   enableval="$enable_precompiled_bytecode"
22744
22745 else
22746   enableval=no
22747 fi;
22748 if test ${enableval} = "no"
22749 then
22750         UPB=
22751
22752 else
22753         UPB=USE_PRECOMPILED_BYTECODE=1
22754
22755 fi
22756
22757
22758 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22759 if test "${enable_llc_diffs+set}" = set; then
22760   enableval="$enable_llc_diffs"
22761
22762 else
22763   enableval=yes
22764 fi;
22765 if test ${enableval} = "no"
22766 then
22767         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22768
22769 else
22770         DISABLE_LLC_DIFFS=
22771
22772 fi
22773
22774 # Check whether --enable-jit or --disable-jit was given.
22775 if test "${enable_jit+set}" = set; then
22776   enableval="$enable_jit"
22777
22778 else
22779   enableval=default
22780 fi;
22781
22782 if test ${enableval} = "no"
22783 then
22784         JIT=
22785
22786 else
22787         case $target in
22788                 *i*86*)
22789                         JIT=TARGET_HAS_JIT=1
22790
22791                         ;;
22792                 *sparc*)
22793                         JIT=TARGET_HAS_JIT=1
22794
22795                         ;;
22796                 *)
22797                         JIT=
22798
22799                         ;;
22800         esac
22801 fi
22802
22803
22804
22805 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22806 if test "${with_llvmgccdir+set}" = set; then
22807   withval="$with_llvmgccdir"
22808   LLVMGCCDIR=$withval
22809
22810 fi;
22811
22812
22813 # Check whether --with-bcrepos or --without-bcrepos was given.
22814 if test "${with_bcrepos+set}" = set; then
22815   withval="$with_bcrepos"
22816   BCR=$withval
22817
22818 else
22819   BCR=/home/vadve/lattner/LLVMPrograms
22820
22821 fi;
22822
22823
22824 # Check whether --with-papi or --without-papi was given.
22825 if test "${with_papi+set}" = set; then
22826   withval="$with_papi"
22827   PAPIDIR=$withval
22828
22829 else
22830   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22831
22832 fi;
22833
22834
22835 # Check whether --with-purify or --without-purify was given.
22836 if test "${with_purify+set}" = set; then
22837   withval="$with_purify"
22838   PURIFY=$withval
22839
22840 fi;
22841
22842
22843           ac_config_files="$ac_config_files Makefile.config"
22844 cat >confcache <<\_ACEOF
22845 # This file is a shell script that caches the results of configure
22846 # tests run on this system so they can be shared between configure
22847 # scripts and configure runs, see configure's option --config-cache.
22848 # It is not useful on other systems.  If it contains results you don't
22849 # want to keep, you may remove or edit it.
22850 #
22851 # config.status only pays attention to the cache file if you give it
22852 # the --recheck option to rerun configure.
22853 #
22854 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22855 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22856 # following values.
22857
22858 _ACEOF
22859
22860 # The following way of writing the cache mishandles newlines in values,
22861 # but we know of no workaround that is simple, portable, and efficient.
22862 # So, don't put newlines in cache variables' values.
22863 # Ultrix sh set writes to stderr and can't be redirected directly,
22864 # and sets the high bit in the cache file unless we assign to the vars.
22865 {
22866   (set) 2>&1 |
22867     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22868     *ac_space=\ *)
22869       # `set' does not quote correctly, so add quotes (double-quote
22870       # substitution turns \\\\ into \\, and sed turns \\ into \).
22871       sed -n \
22872         "s/'/'\\\\''/g;
22873           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22874       ;;
22875     *)
22876       # `set' quotes correctly as required by POSIX, so do not add quotes.
22877       sed -n \
22878         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22879       ;;
22880     esac;
22881 } |
22882   sed '
22883      t clear
22884      : clear
22885      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22886      t end
22887      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22888      : end' >>confcache
22889 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22890   if test -w $cache_file; then
22891     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22892     cat confcache >$cache_file
22893   else
22894     echo "not updating unwritable cache $cache_file"
22895   fi
22896 fi
22897 rm -f confcache
22898
22899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22900 # Let make expand exec_prefix.
22901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22902
22903 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22904 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22905 # trailing colons and then remove the whole line if VPATH becomes empty
22906 # (actually we leave an empty line to preserve line numbers).
22907 if test "x$srcdir" = x.; then
22908   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22909 s/:*\$(srcdir):*/:/;
22910 s/:*\${srcdir}:*/:/;
22911 s/:*@srcdir@:*/:/;
22912 s/^\([^=]*=[    ]*\):*/\1/;
22913 s/:*$//;
22914 s/^[^=]*=[      ]*$//;
22915 }'
22916 fi
22917
22918 DEFS=-DHAVE_CONFIG_H
22919
22920 ac_libobjs=
22921 ac_ltlibobjs=
22922 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22923   # 1. Remove the extension, and $U if already installed.
22924   ac_i=`echo "$ac_i" |
22925          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22926   # 2. Add them.
22927   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22928   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22929 done
22930 LIBOBJS=$ac_libobjs
22931
22932 LTLIBOBJS=$ac_ltlibobjs
22933
22934
22935
22936 : ${CONFIG_STATUS=./config.status}
22937 ac_clean_files_save=$ac_clean_files
22938 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22939 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22940 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22941 cat >$CONFIG_STATUS <<_ACEOF
22942 #! $SHELL
22943 # Generated by $as_me.
22944 # Run this file to recreate the current configuration.
22945 # Compiler output produced by configure, useful for debugging
22946 # configure, is in config.log if it exists.
22947
22948 debug=false
22949 ac_cs_recheck=false
22950 ac_cs_silent=false
22951 SHELL=\${CONFIG_SHELL-$SHELL}
22952 _ACEOF
22953
22954 cat >>$CONFIG_STATUS <<\_ACEOF
22955 ## --------------------- ##
22956 ## M4sh Initialization.  ##
22957 ## --------------------- ##
22958
22959 # Be Bourne compatible
22960 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22961   emulate sh
22962   NULLCMD=:
22963   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22964   # is contrary to our usage.  Disable this feature.
22965   alias -g '${1+"$@"}'='"$@"'
22966 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22967   set -o posix
22968 fi
22969
22970 # Support unset when possible.
22971 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22972   as_unset=unset
22973 else
22974   as_unset=false
22975 fi
22976
22977
22978 # Work around bugs in pre-3.0 UWIN ksh.
22979 $as_unset ENV MAIL MAILPATH
22980 PS1='$ '
22981 PS2='> '
22982 PS4='+ '
22983
22984 # NLS nuisances.
22985 for as_var in \
22986   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22987   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22988   LC_TELEPHONE LC_TIME
22989 do
22990   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22991     eval $as_var=C; export $as_var
22992   else
22993     $as_unset $as_var
22994   fi
22995 done
22996
22997 # Required to use basename.
22998 if expr a : '\(a\)' >/dev/null 2>&1; then
22999   as_expr=expr
23000 else
23001   as_expr=false
23002 fi
23003
23004 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23005   as_basename=basename
23006 else
23007   as_basename=false
23008 fi
23009
23010
23011 # Name of the executable.
23012 as_me=`$as_basename "$0" ||
23013 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23014          X"$0" : 'X\(//\)$' \| \
23015          X"$0" : 'X\(/\)$' \| \
23016          .     : '\(.\)' 2>/dev/null ||
23017 echo X/"$0" |
23018     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23019           /^X\/\(\/\/\)$/{ s//\1/; q; }
23020           /^X\/\(\/\).*/{ s//\1/; q; }
23021           s/.*/./; q'`
23022
23023
23024 # PATH needs CR, and LINENO needs CR and PATH.
23025 # Avoid depending upon Character Ranges.
23026 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23027 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23028 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23029 as_cr_digits='0123456789'
23030 as_cr_alnum=$as_cr_Letters$as_cr_digits
23031
23032 # The user is always right.
23033 if test "${PATH_SEPARATOR+set}" != set; then
23034   echo "#! /bin/sh" >conf$$.sh
23035   echo  "exit 0"   >>conf$$.sh
23036   chmod +x conf$$.sh
23037   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23038     PATH_SEPARATOR=';'
23039   else
23040     PATH_SEPARATOR=:
23041   fi
23042   rm -f conf$$.sh
23043 fi
23044
23045
23046   as_lineno_1=$LINENO
23047   as_lineno_2=$LINENO
23048   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23049   test "x$as_lineno_1" != "x$as_lineno_2" &&
23050   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23051   # Find who we are.  Look in the path if we contain no path at all
23052   # relative or not.
23053   case $0 in
23054     *[\\/]* ) as_myself=$0 ;;
23055     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23056 for as_dir in $PATH
23057 do
23058   IFS=$as_save_IFS
23059   test -z "$as_dir" && as_dir=.
23060   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23061 done
23062
23063        ;;
23064   esac
23065   # We did not find ourselves, most probably we were run as `sh COMMAND'
23066   # in which case we are not to be found in the path.
23067   if test "x$as_myself" = x; then
23068     as_myself=$0
23069   fi
23070   if test ! -f "$as_myself"; then
23071     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23072 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23073    { (exit 1); exit 1; }; }
23074   fi
23075   case $CONFIG_SHELL in
23076   '')
23077     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23078 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23079 do
23080   IFS=$as_save_IFS
23081   test -z "$as_dir" && as_dir=.
23082   for as_base in sh bash ksh sh5; do
23083          case $as_dir in
23084          /*)
23085            if ("$as_dir/$as_base" -c '
23086   as_lineno_1=$LINENO
23087   as_lineno_2=$LINENO
23088   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23089   test "x$as_lineno_1" != "x$as_lineno_2" &&
23090   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23091              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23092              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23093              CONFIG_SHELL=$as_dir/$as_base
23094              export CONFIG_SHELL
23095              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23096            fi;;
23097          esac
23098        done
23099 done
23100 ;;
23101   esac
23102
23103   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23104   # uniformly replaced by the line number.  The first 'sed' inserts a
23105   # line-number line before each line; the second 'sed' does the real
23106   # work.  The second script uses 'N' to pair each line-number line
23107   # with the numbered line, and appends trailing '-' during
23108   # substitution so that $LINENO is not a special case at line end.
23109   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23110   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23111   sed '=' <$as_myself |
23112     sed '
23113       N
23114       s,$,-,
23115       : loop
23116       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23117       t loop
23118       s,-$,,
23119       s,^['$as_cr_digits']*\n,,
23120     ' >$as_me.lineno &&
23121   chmod +x $as_me.lineno ||
23122     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23123 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23124    { (exit 1); exit 1; }; }
23125
23126   # Don't try to exec as it changes $[0], causing all sort of problems
23127   # (the dirname of $[0] is not the place where we might find the
23128   # original and so on.  Autoconf is especially sensible to this).
23129   . ./$as_me.lineno
23130   # Exit status is that of the last command.
23131   exit
23132 }
23133
23134
23135 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23136   *c*,-n*) ECHO_N= ECHO_C='
23137 ' ECHO_T='      ' ;;
23138   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23139   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23140 esac
23141
23142 if expr a : '\(a\)' >/dev/null 2>&1; then
23143   as_expr=expr
23144 else
23145   as_expr=false
23146 fi
23147
23148 rm -f conf$$ conf$$.exe conf$$.file
23149 echo >conf$$.file
23150 if ln -s conf$$.file conf$$ 2>/dev/null; then
23151   # We could just check for DJGPP; but this test a) works b) is more generic
23152   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23153   if test -f conf$$.exe; then
23154     # Don't use ln at all; we don't have any links
23155     as_ln_s='cp -p'
23156   else
23157     as_ln_s='ln -s'
23158   fi
23159 elif ln conf$$.file conf$$ 2>/dev/null; then
23160   as_ln_s=ln
23161 else
23162   as_ln_s='cp -p'
23163 fi
23164 rm -f conf$$ conf$$.exe conf$$.file
23165
23166 if mkdir -p . 2>/dev/null; then
23167   as_mkdir_p=:
23168 else
23169   as_mkdir_p=false
23170 fi
23171
23172 as_executable_p="test -f"
23173
23174 # Sed expression to map a string onto a valid CPP name.
23175 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23176
23177 # Sed expression to map a string onto a valid variable name.
23178 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23179
23180
23181 # IFS
23182 # We need space, tab and new line, in precisely that order.
23183 as_nl='
23184 '
23185 IFS="   $as_nl"
23186
23187 # CDPATH.
23188 $as_unset CDPATH
23189
23190 exec 6>&1
23191
23192 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23193 # report actual input values of CONFIG_FILES etc. instead of their
23194 # values after options handling.  Logging --version etc. is OK.
23195 exec 5>>config.log
23196 {
23197   echo
23198   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23199 ## Running $as_me. ##
23200 _ASBOX
23201 } >&5
23202 cat >&5 <<_CSEOF
23203
23204 This file was extended by [LLVM] $as_me [1.0], which was
23205 generated by GNU Autoconf 2.57.  Invocation command line was
23206
23207   CONFIG_FILES    = $CONFIG_FILES
23208   CONFIG_HEADERS  = $CONFIG_HEADERS
23209   CONFIG_LINKS    = $CONFIG_LINKS
23210   CONFIG_COMMANDS = $CONFIG_COMMANDS
23211   $ $0 $@
23212
23213 _CSEOF
23214 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23215 echo >&5
23216 _ACEOF
23217
23218 # Files that config.status was made for.
23219 if test -n "$ac_config_files"; then
23220   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23221 fi
23222
23223 if test -n "$ac_config_headers"; then
23224   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23225 fi
23226
23227 if test -n "$ac_config_links"; then
23228   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23229 fi
23230
23231 if test -n "$ac_config_commands"; then
23232   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23233 fi
23234
23235 cat >>$CONFIG_STATUS <<\_ACEOF
23236
23237 ac_cs_usage="\
23238 \`$as_me' instantiates files from templates according to the
23239 current configuration.
23240
23241 Usage: $0 [OPTIONS] [FILE]...
23242
23243   -h, --help       print this help, then exit
23244   -V, --version    print version number, then exit
23245   -q, --quiet      do not print progress messages
23246   -d, --debug      don't remove temporary files
23247       --recheck    update $as_me by reconfiguring in the same conditions
23248   --file=FILE[:TEMPLATE]
23249                    instantiate the configuration file FILE
23250   --header=FILE[:TEMPLATE]
23251                    instantiate the configuration header FILE
23252
23253 Configuration files:
23254 $config_files
23255
23256 Configuration headers:
23257 $config_headers
23258
23259 Configuration commands:
23260 $config_commands
23261
23262 Report bugs to <bug-autoconf@gnu.org>."
23263 _ACEOF
23264
23265 cat >>$CONFIG_STATUS <<_ACEOF
23266 ac_cs_version="\\
23267 [LLVM] config.status [1.0]
23268 configured by $0, generated by GNU Autoconf 2.57,
23269   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23270
23271 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23272 Free Software Foundation, Inc.
23273 This config.status script is free software; the Free Software Foundation
23274 gives unlimited permission to copy, distribute and modify it."
23275 srcdir=$srcdir
23276 INSTALL="$INSTALL"
23277 _ACEOF
23278
23279 cat >>$CONFIG_STATUS <<\_ACEOF
23280 # If no file are specified by the user, then we need to provide default
23281 # value.  By we need to know if files were specified by the user.
23282 ac_need_defaults=:
23283 while test $# != 0
23284 do
23285   case $1 in
23286   --*=*)
23287     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23288     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23289     ac_shift=:
23290     ;;
23291   -*)
23292     ac_option=$1
23293     ac_optarg=$2
23294     ac_shift=shift
23295     ;;
23296   *) # This is not an option, so the user has probably given explicit
23297      # arguments.
23298      ac_option=$1
23299      ac_need_defaults=false;;
23300   esac
23301
23302   case $ac_option in
23303   # Handling of the options.
23304 _ACEOF
23305 cat >>$CONFIG_STATUS <<\_ACEOF
23306   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23307     ac_cs_recheck=: ;;
23308   --version | --vers* | -V )
23309     echo "$ac_cs_version"; exit 0 ;;
23310   --he | --h)
23311     # Conflict between --help and --header
23312     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23313 Try \`$0 --help' for more information." >&5
23314 echo "$as_me: error: ambiguous option: $1
23315 Try \`$0 --help' for more information." >&2;}
23316    { (exit 1); exit 1; }; };;
23317   --help | --hel | -h )
23318     echo "$ac_cs_usage"; exit 0 ;;
23319   --debug | --d* | -d )
23320     debug=: ;;
23321   --file | --fil | --fi | --f )
23322     $ac_shift
23323     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23324     ac_need_defaults=false;;
23325   --header | --heade | --head | --hea )
23326     $ac_shift
23327     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23328     ac_need_defaults=false;;
23329   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23330   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23331     ac_cs_silent=: ;;
23332
23333   # This is an error.
23334   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23335 Try \`$0 --help' for more information." >&5
23336 echo "$as_me: error: unrecognized option: $1
23337 Try \`$0 --help' for more information." >&2;}
23338    { (exit 1); exit 1; }; } ;;
23339
23340   *) ac_config_targets="$ac_config_targets $1" ;;
23341
23342   esac
23343   shift
23344 done
23345
23346 ac_configure_extra_args=
23347
23348 if $ac_cs_silent; then
23349   exec 6>/dev/null
23350   ac_configure_extra_args="$ac_configure_extra_args --silent"
23351 fi
23352
23353 _ACEOF
23354 cat >>$CONFIG_STATUS <<_ACEOF
23355 if \$ac_cs_recheck; then
23356   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23357   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23358 fi
23359
23360 _ACEOF
23361
23362 cat >>$CONFIG_STATUS <<_ACEOF
23363 #
23364 # INIT-COMMANDS section.
23365 #
23366
23367 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23368 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23369 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23370 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23371 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23372 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23373 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23374 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23375 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23376 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23377 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23378 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23379 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23380 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23381 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23382 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23383 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23384 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23385 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23386 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23387 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23388 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23389 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23390 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23391 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23392 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23393 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23394 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23395 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23396 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23397 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23398 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23399 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23400 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23401 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23402 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23403 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23404 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23405 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23406 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23407 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23408 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23409 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23410 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23411 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23412 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23413 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23414 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23415 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23416 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23417 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23418 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23419 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23420 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23421 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23422 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23423 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23424 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23454 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23455 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23456 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23457 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23458 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23459 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23460 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23461 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23462 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23463 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23464 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23465 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23466 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23467 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23468 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23469 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23470 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23471 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23472 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23473 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23474 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23475 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23476 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23477 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23478 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23479 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23480 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23481 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23482 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23483 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23484 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23485 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23486 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23487 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23488 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23489 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23490 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23491 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23492 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23493 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23494 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23495 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23496 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23497 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23498 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23499 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23500 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23501 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23502 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23503 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23504 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23505 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23506 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23507 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23508 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23509 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23510 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23511 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
23512 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23513 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
23514 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
23515 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23516 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23517 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23518 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23519 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23520 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23521 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23522 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23523 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23524 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23525 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23526 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23527 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23528 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23529 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23530 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23531 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23532 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23533 ${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23534 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23535 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23536 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23537 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23538 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23539 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23540 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23541 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23542 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23543 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23544 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23545 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23546
23547 _ACEOF
23548
23549
23550
23551 cat >>$CONFIG_STATUS <<\_ACEOF
23552 for ac_config_target in $ac_config_targets
23553 do
23554   case "$ac_config_target" in
23555   # Handling of arguments.
23556   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23557   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23558   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23559   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23560   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23561   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23562   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23563   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23564   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23565   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23566   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23567   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23568   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23569   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23570   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23571   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23572   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23573   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23574   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23575   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23576   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23577   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23578   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23579   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23580   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23581   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23582   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23583   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23584   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23585   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23586   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23587   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23588   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23589   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23590   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23591   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23592   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23593   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23594   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23595   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23596   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23597   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23598   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23599   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23600   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23601   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23602   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23603   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23604   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23605   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23606   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23607   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23608   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23609   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23610   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23611   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23612   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23613   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23614   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23615   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23616   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23617   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23618   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23619   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23620   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23621   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23622   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23623   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23624   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23625   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23626   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23627   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23628   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23629   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23630   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23631   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23632   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23633   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23634   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23635   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23636   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23637   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23638   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23639   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23640   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23641   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23642   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23643   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23644   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23645   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23646   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23647   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23648   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23649   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23650   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23651   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23652   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23653   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23654   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23655   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23656   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23657   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23658   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23659   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23660   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23661   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23662   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23663   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23664   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23665   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23666   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23667   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23668   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23669   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23670   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23671   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23672   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23673   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23674   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23675   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23676   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23677   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23678   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23679   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23680   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23681   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23682   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23683   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23684   "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23685   "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23686   "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23687   "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23688   "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23689   "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23690   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23691   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23692   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23693   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23694   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23695   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23696   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23697   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23698   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23699   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23700   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23701   "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
23702   "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23703   "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
23704   "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
23705   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23706   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23707   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23708   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23709   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23710   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23711   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23712   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23713   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23714   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23715   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23716   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23717   "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23718   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23719   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23720   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23721   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23722   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23723   "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23724   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23725   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23726   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23727   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23728   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23729   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23730   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23731   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23732   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23733   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23734   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23735   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23736   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23737   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23738 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23739    { (exit 1); exit 1; }; };;
23740   esac
23741 done
23742
23743 # If the user did not use the arguments to specify the items to instantiate,
23744 # then the envvar interface is used.  Set only those that are not.
23745 # We use the long form for the default assignment because of an extremely
23746 # bizarre bug on SunOS 4.1.3.
23747 if $ac_need_defaults; then
23748   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23749   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23750   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23751 fi
23752
23753 # Have a temporary directory for convenience.  Make it in the build tree
23754 # simply because there is no reason to put it here, and in addition,
23755 # creating and moving files from /tmp can sometimes cause problems.
23756 # Create a temporary directory, and hook for its removal unless debugging.
23757 $debug ||
23758 {
23759   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23760   trap '{ (exit 1); exit 1; }' 1 2 13 15
23761 }
23762
23763 # Create a (secure) tmp directory for tmp files.
23764
23765 {
23766   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23767   test -n "$tmp" && test -d "$tmp"
23768 }  ||
23769 {
23770   tmp=./confstat$$-$RANDOM
23771   (umask 077 && mkdir $tmp)
23772 } ||
23773 {
23774    echo "$me: cannot create a temporary directory in ." >&2
23775    { (exit 1); exit 1; }
23776 }
23777
23778 _ACEOF
23779
23780 cat >>$CONFIG_STATUS <<_ACEOF
23781
23782 #
23783 # CONFIG_FILES section.
23784 #
23785
23786 # No need to generate the scripts if there are no CONFIG_FILES.
23787 # This happens for instance when ./config.status config.h
23788 if test -n "\$CONFIG_FILES"; then
23789   # Protect against being on the right side of a sed subst in config.status.
23790   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23791    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23792 s,@SHELL@,$SHELL,;t t
23793 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23794 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23795 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23796 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23797 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23798 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23799 s,@exec_prefix@,$exec_prefix,;t t
23800 s,@prefix@,$prefix,;t t
23801 s,@program_transform_name@,$program_transform_name,;t t
23802 s,@bindir@,$bindir,;t t
23803 s,@sbindir@,$sbindir,;t t
23804 s,@libexecdir@,$libexecdir,;t t
23805 s,@datadir@,$datadir,;t t
23806 s,@sysconfdir@,$sysconfdir,;t t
23807 s,@sharedstatedir@,$sharedstatedir,;t t
23808 s,@localstatedir@,$localstatedir,;t t
23809 s,@libdir@,$libdir,;t t
23810 s,@includedir@,$includedir,;t t
23811 s,@oldincludedir@,$oldincludedir,;t t
23812 s,@infodir@,$infodir,;t t
23813 s,@mandir@,$mandir,;t t
23814 s,@build_alias@,$build_alias,;t t
23815 s,@host_alias@,$host_alias,;t t
23816 s,@target_alias@,$target_alias,;t t
23817 s,@DEFS@,$DEFS,;t t
23818 s,@ECHO_C@,$ECHO_C,;t t
23819 s,@ECHO_N@,$ECHO_N,;t t
23820 s,@ECHO_T@,$ECHO_T,;t t
23821 s,@LIBS@,$LIBS,;t t
23822 s,@subdirs@,$subdirs,;t t
23823 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23824 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23825 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23826 s,@build@,$build,;t t
23827 s,@build_cpu@,$build_cpu,;t t
23828 s,@build_vendor@,$build_vendor,;t t
23829 s,@build_os@,$build_os,;t t
23830 s,@host@,$host,;t t
23831 s,@host_cpu@,$host_cpu,;t t
23832 s,@host_vendor@,$host_vendor,;t t
23833 s,@host_os@,$host_os,;t t
23834 s,@target@,$target,;t t
23835 s,@target_cpu@,$target_cpu,;t t
23836 s,@target_vendor@,$target_vendor,;t t
23837 s,@target_os@,$target_os,;t t
23838 s,@OS@,$OS,;t t
23839 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23840 s,@ARCH@,$ARCH,;t t
23841 s,@CXX@,$CXX,;t t
23842 s,@CXXFLAGS@,$CXXFLAGS,;t t
23843 s,@LDFLAGS@,$LDFLAGS,;t t
23844 s,@CPPFLAGS@,$CPPFLAGS,;t t
23845 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23846 s,@EXEEXT@,$EXEEXT,;t t
23847 s,@OBJEXT@,$OBJEXT,;t t
23848 s,@CC@,$CC,;t t
23849 s,@CFLAGS@,$CFLAGS,;t t
23850 s,@ac_ct_CC@,$ac_ct_CC,;t t
23851 s,@CPP@,$CPP,;t t
23852 s,@ifGNUmake@,$ifGNUmake,;t t
23853 s,@LEX@,$LEX,;t t
23854 s,@LEXLIB@,$LEXLIB,;t t
23855 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23856 s,@YACC@,$YACC,;t t
23857 s,@EGREP@,$EGREP,;t t
23858 s,@LN_S@,$LN_S,;t t
23859 s,@ECHO@,$ECHO,;t t
23860 s,@AR@,$AR,;t t
23861 s,@ac_ct_AR@,$ac_ct_AR,;t t
23862 s,@RANLIB@,$RANLIB,;t t
23863 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23864 s,@STRIP@,$STRIP,;t t
23865 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23866 s,@CXXCPP@,$CXXCPP,;t t
23867 s,@F77@,$F77,;t t
23868 s,@FFLAGS@,$FFLAGS,;t t
23869 s,@ac_ct_F77@,$ac_ct_F77,;t t
23870 s,@LIBTOOL@,$LIBTOOL,;t t
23871 s,@RPWD@,$RPWD,;t t
23872 s,@SED@,$SED,;t t
23873 s,@RM@,$RM,;t t
23874 s,@MKDIR@,$MKDIR,;t t
23875 s,@DATE@,$DATE,;t t
23876 s,@MV@,$MV,;t t
23877 s,@DOT@,$DOT,;t t
23878 s,@ETAGS@,$ETAGS,;t t
23879 s,@PYTHON@,$PYTHON,;t t
23880 s,@QMTEST@,$QMTEST,;t t
23881 s,@ALLOCA@,$ALLOCA,;t t
23882 s,@LIBOBJS@,$LIBOBJS,;t t
23883 s,@MMAP_FILE@,$MMAP_FILE,;t t
23884 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23885 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23886 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23887 s,@USE_SPEC@,$USE_SPEC,;t t
23888 s,@UPB@,$UPB,;t t
23889 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23890 s,@JIT@,$JIT,;t t
23891 s,@BCR@,$BCR,;t t
23892 s,@PAPIDIR@,$PAPIDIR,;t t
23893 s,@PURIFY@,$PURIFY,;t t
23894 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23895 CEOF
23896
23897 _ACEOF
23898
23899   cat >>$CONFIG_STATUS <<\_ACEOF
23900   # Split the substitutions into bite-sized pieces for seds with
23901   # small command number limits, like on Digital OSF/1 and HP-UX.
23902   ac_max_sed_lines=48
23903   ac_sed_frag=1 # Number of current file.
23904   ac_beg=1 # First line for current file.
23905   ac_end=$ac_max_sed_lines # Line after last line for current file.
23906   ac_more_lines=:
23907   ac_sed_cmds=
23908   while $ac_more_lines; do
23909     if test $ac_beg -gt 1; then
23910       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23911     else
23912       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23913     fi
23914     if test ! -s $tmp/subs.frag; then
23915       ac_more_lines=false
23916     else
23917       # The purpose of the label and of the branching condition is to
23918       # speed up the sed processing (if there are no `@' at all, there
23919       # is no need to browse any of the substitutions).
23920       # These are the two extra sed commands mentioned above.
23921       (echo ':t
23922   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23923       if test -z "$ac_sed_cmds"; then
23924         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23925       else
23926         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23927       fi
23928       ac_sed_frag=`expr $ac_sed_frag + 1`
23929       ac_beg=$ac_end
23930       ac_end=`expr $ac_end + $ac_max_sed_lines`
23931     fi
23932   done
23933   if test -z "$ac_sed_cmds"; then
23934     ac_sed_cmds=cat
23935   fi
23936 fi # test -n "$CONFIG_FILES"
23937
23938 _ACEOF
23939 cat >>$CONFIG_STATUS <<\_ACEOF
23940 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23941   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23942   case $ac_file in
23943   - | *:- | *:-:* ) # input from stdin
23944         cat >$tmp/stdin
23945         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23946         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23947   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23948         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23949   * )   ac_file_in=$ac_file.in ;;
23950   esac
23951
23952   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23953   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23954 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23955          X"$ac_file" : 'X\(//\)[^/]' \| \
23956          X"$ac_file" : 'X\(//\)$' \| \
23957          X"$ac_file" : 'X\(/\)' \| \
23958          .     : '\(.\)' 2>/dev/null ||
23959 echo X"$ac_file" |
23960     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23961           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23962           /^X\(\/\/\)$/{ s//\1/; q; }
23963           /^X\(\/\).*/{ s//\1/; q; }
23964           s/.*/./; q'`
23965   { if $as_mkdir_p; then
23966     mkdir -p "$ac_dir"
23967   else
23968     as_dir="$ac_dir"
23969     as_dirs=
23970     while test ! -d "$as_dir"; do
23971       as_dirs="$as_dir $as_dirs"
23972       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23973 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23974          X"$as_dir" : 'X\(//\)[^/]' \| \
23975          X"$as_dir" : 'X\(//\)$' \| \
23976          X"$as_dir" : 'X\(/\)' \| \
23977          .     : '\(.\)' 2>/dev/null ||
23978 echo X"$as_dir" |
23979     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23980           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23981           /^X\(\/\/\)$/{ s//\1/; q; }
23982           /^X\(\/\).*/{ s//\1/; q; }
23983           s/.*/./; q'`
23984     done
23985     test ! -n "$as_dirs" || mkdir $as_dirs
23986   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23987 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23988    { (exit 1); exit 1; }; }; }
23989
23990   ac_builddir=.
23991
23992 if test "$ac_dir" != .; then
23993   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23994   # A "../" for each directory in $ac_dir_suffix.
23995   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23996 else
23997   ac_dir_suffix= ac_top_builddir=
23998 fi
23999
24000 case $srcdir in
24001   .)  # No --srcdir option.  We are building in place.
24002     ac_srcdir=.
24003     if test -z "$ac_top_builddir"; then
24004        ac_top_srcdir=.
24005     else
24006        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24007     fi ;;
24008   [\\/]* | ?:[\\/]* )  # Absolute path.
24009     ac_srcdir=$srcdir$ac_dir_suffix;
24010     ac_top_srcdir=$srcdir ;;
24011   *) # Relative path.
24012     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24013     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24014 esac
24015 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24016 # absolute.
24017 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24018 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24019 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24020 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24021
24022
24023   case $INSTALL in
24024   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24025   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24026   esac
24027
24028   if test x"$ac_file" != x-; then
24029     { echo "$as_me:$LINENO: creating $ac_file" >&5
24030 echo "$as_me: creating $ac_file" >&6;}
24031     rm -f "$ac_file"
24032   fi
24033   # Let's still pretend it is `configure' which instantiates (i.e., don't
24034   # use $as_me), people would be surprised to read:
24035   #    /* config.h.  Generated by config.status.  */
24036   if test x"$ac_file" = x-; then
24037     configure_input=
24038   else
24039     configure_input="$ac_file.  "
24040   fi
24041   configure_input=$configure_input"Generated from `echo $ac_file_in |
24042                                      sed 's,.*/,,'` by configure."
24043
24044   # First look for the input files in the build tree, otherwise in the
24045   # src tree.
24046   ac_file_inputs=`IFS=:
24047     for f in $ac_file_in; do
24048       case $f in
24049       -) echo $tmp/stdin ;;
24050       [\\/$]*)
24051          # Absolute (can't be DOS-style, as IFS=:)
24052          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24053 echo "$as_me: error: cannot find input file: $f" >&2;}
24054    { (exit 1); exit 1; }; }
24055          echo $f;;
24056       *) # Relative
24057          if test -f "$f"; then
24058            # Build tree
24059            echo $f
24060          elif test -f "$srcdir/$f"; then
24061            # Source tree
24062            echo $srcdir/$f
24063          else
24064            # /dev/null tree
24065            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24066 echo "$as_me: error: cannot find input file: $f" >&2;}
24067    { (exit 1); exit 1; }; }
24068          fi;;
24069       esac
24070     done` || { (exit 1); exit 1; }
24071 _ACEOF
24072 cat >>$CONFIG_STATUS <<_ACEOF
24073   sed "$ac_vpsub
24074 $extrasub
24075 _ACEOF
24076 cat >>$CONFIG_STATUS <<\_ACEOF
24077 :t
24078 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24079 s,@configure_input@,$configure_input,;t t
24080 s,@srcdir@,$ac_srcdir,;t t
24081 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24082 s,@top_srcdir@,$ac_top_srcdir,;t t
24083 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24084 s,@builddir@,$ac_builddir,;t t
24085 s,@abs_builddir@,$ac_abs_builddir,;t t
24086 s,@top_builddir@,$ac_top_builddir,;t t
24087 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24088 s,@INSTALL@,$ac_INSTALL,;t t
24089 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24090   rm -f $tmp/stdin
24091   if test x"$ac_file" != x-; then
24092     mv $tmp/out $ac_file
24093   else
24094     cat $tmp/out
24095     rm -f $tmp/out
24096   fi
24097
24098 done
24099 _ACEOF
24100 cat >>$CONFIG_STATUS <<\_ACEOF
24101
24102 #
24103 # CONFIG_HEADER section.
24104 #
24105
24106 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24107 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24108 #
24109 # ac_d sets the value in "#define NAME VALUE" lines.
24110 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24111 ac_dB='[        ].*$,\1#\2'
24112 ac_dC=' '
24113 ac_dD=',;t'
24114 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24115 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24116 ac_uB='$,\1#\2define\3'
24117 ac_uC=' '
24118 ac_uD=',;t'
24119
24120 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24121   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24122   case $ac_file in
24123   - | *:- | *:-:* ) # input from stdin
24124         cat >$tmp/stdin
24125         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24126         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24127   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24128         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24129   * )   ac_file_in=$ac_file.in ;;
24130   esac
24131
24132   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24133 echo "$as_me: creating $ac_file" >&6;}
24134
24135   # First look for the input files in the build tree, otherwise in the
24136   # src tree.
24137   ac_file_inputs=`IFS=:
24138     for f in $ac_file_in; do
24139       case $f in
24140       -) echo $tmp/stdin ;;
24141       [\\/$]*)
24142          # Absolute (can't be DOS-style, as IFS=:)
24143          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24144 echo "$as_me: error: cannot find input file: $f" >&2;}
24145    { (exit 1); exit 1; }; }
24146          echo $f;;
24147       *) # Relative
24148          if test -f "$f"; then
24149            # Build tree
24150            echo $f
24151          elif test -f "$srcdir/$f"; then
24152            # Source tree
24153            echo $srcdir/$f
24154          else
24155            # /dev/null tree
24156            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24157 echo "$as_me: error: cannot find input file: $f" >&2;}
24158    { (exit 1); exit 1; }; }
24159          fi;;
24160       esac
24161     done` || { (exit 1); exit 1; }
24162   # Remove the trailing spaces.
24163   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24164
24165 _ACEOF
24166
24167 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24168 # `conftest.undefs', that substitutes the proper values into
24169 # config.h.in to produce config.h.  The first handles `#define'
24170 # templates, and the second `#undef' templates.
24171 # And first: Protect against being on the right side of a sed subst in
24172 # config.status.  Protect against being in an unquoted here document
24173 # in config.status.
24174 rm -f conftest.defines conftest.undefs
24175 # Using a here document instead of a string reduces the quoting nightmare.
24176 # Putting comments in sed scripts is not portable.
24177 #
24178 # `end' is used to avoid that the second main sed command (meant for
24179 # 0-ary CPP macros) applies to n-ary macro definitions.
24180 # See the Autoconf documentation for `clear'.
24181 cat >confdef2sed.sed <<\_ACEOF
24182 s/[\\&,]/\\&/g
24183 s,[\\$`],\\&,g
24184 t clear
24185 : clear
24186 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24187 t end
24188 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24189 : end
24190 _ACEOF
24191 # If some macros were called several times there might be several times
24192 # the same #defines, which is useless.  Nevertheless, we may not want to
24193 # sort them, since we want the *last* AC-DEFINE to be honored.
24194 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24195 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24196 rm -f confdef2sed.sed
24197
24198 # This sed command replaces #undef with comments.  This is necessary, for
24199 # example, in the case of _POSIX_SOURCE, which is predefined and required
24200 # on some systems where configure will not decide to define it.
24201 cat >>conftest.undefs <<\_ACEOF
24202 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24203 _ACEOF
24204
24205 # Break up conftest.defines because some shells have a limit on the size
24206 # of here documents, and old seds have small limits too (100 cmds).
24207 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24208 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24209 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24210 echo '  :' >>$CONFIG_STATUS
24211 rm -f conftest.tail
24212 while grep . conftest.defines >/dev/null
24213 do
24214   # Write a limited-size here document to $tmp/defines.sed.
24215   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24216   # Speed up: don't consider the non `#define' lines.
24217   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24218   # Work around the forget-to-reset-the-flag bug.
24219   echo 't clr' >>$CONFIG_STATUS
24220   echo ': clr' >>$CONFIG_STATUS
24221   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24222   echo 'CEOF
24223   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24224   rm -f $tmp/in
24225   mv $tmp/out $tmp/in
24226 ' >>$CONFIG_STATUS
24227   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24228   rm -f conftest.defines
24229   mv conftest.tail conftest.defines
24230 done
24231 rm -f conftest.defines
24232 echo '  fi # grep' >>$CONFIG_STATUS
24233 echo >>$CONFIG_STATUS
24234
24235 # Break up conftest.undefs because some shells have a limit on the size
24236 # of here documents, and old seds have small limits too (100 cmds).
24237 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24238 rm -f conftest.tail
24239 while grep . conftest.undefs >/dev/null
24240 do
24241   # Write a limited-size here document to $tmp/undefs.sed.
24242   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24243   # Speed up: don't consider the non `#undef'
24244   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24245   # Work around the forget-to-reset-the-flag bug.
24246   echo 't clr' >>$CONFIG_STATUS
24247   echo ': clr' >>$CONFIG_STATUS
24248   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24249   echo 'CEOF
24250   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24251   rm -f $tmp/in
24252   mv $tmp/out $tmp/in
24253 ' >>$CONFIG_STATUS
24254   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24255   rm -f conftest.undefs
24256   mv conftest.tail conftest.undefs
24257 done
24258 rm -f conftest.undefs
24259
24260 cat >>$CONFIG_STATUS <<\_ACEOF
24261   # Let's still pretend it is `configure' which instantiates (i.e., don't
24262   # use $as_me), people would be surprised to read:
24263   #    /* config.h.  Generated by config.status.  */
24264   if test x"$ac_file" = x-; then
24265     echo "/* Generated by configure.  */" >$tmp/config.h
24266   else
24267     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24268   fi
24269   cat $tmp/in >>$tmp/config.h
24270   rm -f $tmp/in
24271   if test x"$ac_file" != x-; then
24272     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24273       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24274 echo "$as_me: $ac_file is unchanged" >&6;}
24275     else
24276       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24277 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24278          X"$ac_file" : 'X\(//\)[^/]' \| \
24279          X"$ac_file" : 'X\(//\)$' \| \
24280          X"$ac_file" : 'X\(/\)' \| \
24281          .     : '\(.\)' 2>/dev/null ||
24282 echo X"$ac_file" |
24283     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24284           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24285           /^X\(\/\/\)$/{ s//\1/; q; }
24286           /^X\(\/\).*/{ s//\1/; q; }
24287           s/.*/./; q'`
24288       { if $as_mkdir_p; then
24289     mkdir -p "$ac_dir"
24290   else
24291     as_dir="$ac_dir"
24292     as_dirs=
24293     while test ! -d "$as_dir"; do
24294       as_dirs="$as_dir $as_dirs"
24295       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24297          X"$as_dir" : 'X\(//\)[^/]' \| \
24298          X"$as_dir" : 'X\(//\)$' \| \
24299          X"$as_dir" : 'X\(/\)' \| \
24300          .     : '\(.\)' 2>/dev/null ||
24301 echo X"$as_dir" |
24302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24303           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24304           /^X\(\/\/\)$/{ s//\1/; q; }
24305           /^X\(\/\).*/{ s//\1/; q; }
24306           s/.*/./; q'`
24307     done
24308     test ! -n "$as_dirs" || mkdir $as_dirs
24309   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24310 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24311    { (exit 1); exit 1; }; }; }
24312
24313       rm -f $ac_file
24314       mv $tmp/config.h $ac_file
24315     fi
24316   else
24317     cat $tmp/config.h
24318     rm -f $tmp/config.h
24319   fi
24320 done
24321 _ACEOF
24322 cat >>$CONFIG_STATUS <<\_ACEOF
24323
24324 #
24325 # CONFIG_COMMANDS section.
24326 #
24327 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24328   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24329   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24330   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24331 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24332          X"$ac_dest" : 'X\(//\)[^/]' \| \
24333          X"$ac_dest" : 'X\(//\)$' \| \
24334          X"$ac_dest" : 'X\(/\)' \| \
24335          .     : '\(.\)' 2>/dev/null ||
24336 echo X"$ac_dest" |
24337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24338           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24339           /^X\(\/\/\)$/{ s//\1/; q; }
24340           /^X\(\/\).*/{ s//\1/; q; }
24341           s/.*/./; q'`
24342   ac_builddir=.
24343
24344 if test "$ac_dir" != .; then
24345   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24346   # A "../" for each directory in $ac_dir_suffix.
24347   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24348 else
24349   ac_dir_suffix= ac_top_builddir=
24350 fi
24351
24352 case $srcdir in
24353   .)  # No --srcdir option.  We are building in place.
24354     ac_srcdir=.
24355     if test -z "$ac_top_builddir"; then
24356        ac_top_srcdir=.
24357     else
24358        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24359     fi ;;
24360   [\\/]* | ?:[\\/]* )  # Absolute path.
24361     ac_srcdir=$srcdir$ac_dir_suffix;
24362     ac_top_srcdir=$srcdir ;;
24363   *) # Relative path.
24364     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24365     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24366 esac
24367 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24368 # absolute.
24369 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24370 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24371 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24372 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24373
24374
24375   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24376 echo "$as_me: executing $ac_dest commands" >&6;}
24377   case $ac_dest in
24378     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24379     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24380     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24381     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24382     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24383     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24384     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24385     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24386     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24387     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24388     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24389     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24390     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24391     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24392     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24393     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24394     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24395     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24396     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24397     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24398     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24399     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24400     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24401     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24402     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24403     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24404     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24405     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24406     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24407     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24408     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24409     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24410     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24411     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24412     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24413     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24414     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24415     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24416     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24417     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24418     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24419     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24420     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24421     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24422     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24423     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24424     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24425     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24426     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24427     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24428     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24429     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24430     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24431     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24432     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24433     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24434     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24435     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24436     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24437     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24438     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24439     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24440     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24441     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24442     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24443     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24444     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24445     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24446     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24447     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24448     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24449     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 ;;
24450     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 ;;
24451     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 ;;
24452     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 ;;
24453     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 ;;
24454     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 ;;
24455     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 ;;
24456     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 ;;
24457     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 ;;
24458     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 ;;
24459     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 ;;
24460     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 ;;
24461     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 ;;
24462     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 ;;
24463     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 ;;
24464     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 ;;
24465     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24466     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24467     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24468     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24469     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 ;;
24470     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 ;;
24471     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 ;;
24472     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24473     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 ;;
24474     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 ;;
24475     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 ;;
24476     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 ;;
24477     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 ;;
24478     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 ;;
24479     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 ;;
24480     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 ;;
24481     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 ;;
24482     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 ;;
24483     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 ;;
24484     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 ;;
24485     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 ;;
24486     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 ;;
24487     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 ;;
24488     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 ;;
24489     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 ;;
24490     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 ;;
24491     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 ;;
24492     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 ;;
24493     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 ;;
24494     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 ;;
24495     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 ;;
24496     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 ;;
24497     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 ;;
24498     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 ;;
24499     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 ;;
24500     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 ;;
24501     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 ;;
24502     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 ;;
24503     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 ;;
24504     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 ;;
24505     test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24506     test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24507     test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24508     test/Programs/NoSource/Moria-5.5.2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Moria-5.5.2/Makefile test/Programs/NoSource/Moria-5.5.2/Makefile ;;
24509     test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24510     test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24511     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24512     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24513     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24514     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24515     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 ;;
24516     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 ;;
24517     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 ;;
24518     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 ;;
24519     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24520     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24521     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 ;;
24522     test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
24523     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 ;;
24524     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 ;;
24525     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 ;;
24526     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24527     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24528     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24529     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24530     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24531     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24532     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24533     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24534     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24535     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24536     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24537     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24538     tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24539     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24540     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24541     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24542     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24543     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24544     www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24545     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24546     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24547     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24548     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24549     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24550     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24551     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24552     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24553     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24554     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24555     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24556     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24557   esac
24558 done
24559 _ACEOF
24560
24561 cat >>$CONFIG_STATUS <<\_ACEOF
24562
24563 { (exit 0); exit 0; }
24564 _ACEOF
24565 chmod +x $CONFIG_STATUS
24566 ac_clean_files=$ac_clean_files_save
24567
24568
24569 # configure is writing to config.log, and then calls config.status.
24570 # config.status does its own redirection, appending to config.log.
24571 # Unfortunately, on DOS this fails, as config.log is still kept open
24572 # by configure, so config.status won't be able to write to it; its
24573 # output is simply discarded.  So we exec the FD to /dev/null,
24574 # effectively closing config.log, so it can be properly (re)opened and
24575 # appended to by config.status.  When coming back to configure, we
24576 # need to make the FD available again.
24577 if test "$no_create" != yes; then
24578   ac_cs_success=:
24579   ac_config_status_args=
24580   test "$silent" = yes &&
24581     ac_config_status_args="$ac_config_status_args --quiet"
24582   exec 5>/dev/null
24583   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24584   exec 5>>config.log
24585   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24586   # would make configure fail if this is the last instruction.
24587   $ac_cs_success || { (exit 1); exit 1; }
24588 fi
24589
24590 #
24591 # CONFIG_SUBDIRS section.
24592 #
24593 if test "$no_recursion" != yes; then
24594
24595   # Remove --cache-file and --srcdir arguments so they do not pile up.
24596   ac_sub_configure_args=
24597   ac_prev=
24598   for ac_arg in $ac_configure_args; do
24599     if test -n "$ac_prev"; then
24600       ac_prev=
24601       continue
24602     fi
24603     case $ac_arg in
24604     -cache-file | --cache-file | --cache-fil | --cache-fi \
24605     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24606       ac_prev=cache_file ;;
24607     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24608     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24609     | --c=*)
24610       ;;
24611     --config-cache | -C)
24612       ;;
24613     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24614       ac_prev=srcdir ;;
24615     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24616       ;;
24617     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24618       ac_prev=prefix ;;
24619     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24620       ;;
24621     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24622     esac
24623   done
24624
24625   # Always prepend --prefix to ensure using the same prefix
24626   # in subdir configurations.
24627   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24628
24629   ac_popdir=`pwd`
24630   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24631
24632     # Do not complain, so a configure script can configure whichever
24633     # parts of a large source tree are present.
24634     test -d $srcdir/$ac_dir || continue
24635
24636     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24637 echo "$as_me: configuring in $ac_dir" >&6;}
24638     { if $as_mkdir_p; then
24639     mkdir -p "$ac_dir"
24640   else
24641     as_dir="$ac_dir"
24642     as_dirs=
24643     while test ! -d "$as_dir"; do
24644       as_dirs="$as_dir $as_dirs"
24645       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24647          X"$as_dir" : 'X\(//\)[^/]' \| \
24648          X"$as_dir" : 'X\(//\)$' \| \
24649          X"$as_dir" : 'X\(/\)' \| \
24650          .     : '\(.\)' 2>/dev/null ||
24651 echo X"$as_dir" |
24652     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24653           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24654           /^X\(\/\/\)$/{ s//\1/; q; }
24655           /^X\(\/\).*/{ s//\1/; q; }
24656           s/.*/./; q'`
24657     done
24658     test ! -n "$as_dirs" || mkdir $as_dirs
24659   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24660 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24661    { (exit 1); exit 1; }; }; }
24662
24663     ac_builddir=.
24664
24665 if test "$ac_dir" != .; then
24666   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24667   # A "../" for each directory in $ac_dir_suffix.
24668   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24669 else
24670   ac_dir_suffix= ac_top_builddir=
24671 fi
24672
24673 case $srcdir in
24674   .)  # No --srcdir option.  We are building in place.
24675     ac_srcdir=.
24676     if test -z "$ac_top_builddir"; then
24677        ac_top_srcdir=.
24678     else
24679        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24680     fi ;;
24681   [\\/]* | ?:[\\/]* )  # Absolute path.
24682     ac_srcdir=$srcdir$ac_dir_suffix;
24683     ac_top_srcdir=$srcdir ;;
24684   *) # Relative path.
24685     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24686     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24687 esac
24688 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24689 # absolute.
24690 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24691 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24692 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24693 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24694
24695
24696     cd $ac_dir
24697
24698     # Check for guested configure; otherwise get Cygnus style configure.
24699     if test -f $ac_srcdir/configure.gnu; then
24700       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24701     elif test -f $ac_srcdir/configure; then
24702       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24703     elif test -f $ac_srcdir/configure.in; then
24704       ac_sub_configure=$ac_configure
24705     else
24706       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24707 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24708       ac_sub_configure=
24709     fi
24710
24711     # The recursion is here.
24712     if test -n "$ac_sub_configure"; then
24713       # Make the cache file name correct relative to the subdirectory.
24714       case $cache_file in
24715       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24716       *) # Relative path.
24717         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24718       esac
24719
24720       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24721 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24722       # The eval makes quoting arguments work.
24723       eval $ac_sub_configure $ac_sub_configure_args \
24724            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24725         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24726 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24727    { (exit 1); exit 1; }; }
24728     fi
24729
24730     cd $ac_popdir
24731   done
24732 fi
24733