4902b5ec27d38fe18d67870775cf6b600871b35e
[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 USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT 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 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-spec             Location of SPEC benchmarks
1051   --with-llvmgccdir       Location of LLVM GCC front-end
1052   --with-bcrepos          Location of Bytecode Repository
1053   --with-papi             Location of PAPI
1054   --with-purify           Location of purify program
1055
1056 Some influential environment variables:
1057   CXX         C++ compiler command
1058   CXXFLAGS    C++ compiler flags
1059   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1060               nonstandard directory <lib dir>
1061   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062               headers in a nonstandard directory <include dir>
1063   CC          C compiler command
1064   CFLAGS      C compiler flags
1065   CPP         C preprocessor
1066   CXXCPP      C++ preprocessor
1067   F77         Fortran 77 compiler command
1068   FFLAGS      Fortran 77 compiler flags
1069
1070 Use these variables to override the choices made by `configure' or to help
1071 it to find libraries and programs with nonstandard names/locations.
1072
1073 Report bugs to <llvmbugs@cs.uiuc.edu>.
1074 _ACEOF
1075 fi
1076
1077 if test "$ac_init_help" = "recursive"; then
1078   # If there are subdirs, report their specific --help.
1079   ac_popdir=`pwd`
1080   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081     test -d $ac_dir || continue
1082     ac_builddir=.
1083
1084 if test "$ac_dir" != .; then
1085   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086   # A "../" for each directory in $ac_dir_suffix.
1087   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 else
1089   ac_dir_suffix= ac_top_builddir=
1090 fi
1091
1092 case $srcdir in
1093   .)  # No --srcdir option.  We are building in place.
1094     ac_srcdir=.
1095     if test -z "$ac_top_builddir"; then
1096        ac_top_srcdir=.
1097     else
1098        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099     fi ;;
1100   [\\/]* | ?:[\\/]* )  # Absolute path.
1101     ac_srcdir=$srcdir$ac_dir_suffix;
1102     ac_top_srcdir=$srcdir ;;
1103   *) # Relative path.
1104     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106 esac
1107 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108 # absolute.
1109 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1110 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1111 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113
1114     cd $ac_dir
1115     # Check for guested configure; otherwise get Cygnus style configure.
1116     if test -f $ac_srcdir/configure.gnu; then
1117       echo
1118       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1119     elif test -f $ac_srcdir/configure; then
1120       echo
1121       $SHELL $ac_srcdir/configure  --help=recursive
1122     elif test -f $ac_srcdir/configure.ac ||
1123            test -f $ac_srcdir/configure.in; then
1124       echo
1125       $ac_configure --help
1126     else
1127       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128     fi
1129     cd $ac_popdir
1130   done
1131 fi
1132
1133 test -n "$ac_init_help" && exit 0
1134 if $ac_init_version; then
1135   cat <<\_ACEOF
1136 [LLVM] configure [1.0]
1137 generated by GNU Autoconf 2.57
1138
1139 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140 Free Software Foundation, Inc.
1141 This configure script is free software; the Free Software Foundation
1142 gives unlimited permission to copy, distribute and modify it.
1143 _ACEOF
1144   exit 0
1145 fi
1146 exec 5>config.log
1147 cat >&5 <<_ACEOF
1148 This file contains any messages produced by compilers while
1149 running configure, to aid debugging if configure makes a mistake.
1150
1151 It was created by [LLVM] $as_me [1.0], which was
1152 generated by GNU Autoconf 2.57.  Invocation command line was
1153
1154   $ $0 $@
1155
1156 _ACEOF
1157 {
1158 cat <<_ASUNAME
1159 ## --------- ##
1160 ## Platform. ##
1161 ## --------- ##
1162
1163 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1171
1172 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1173 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1174 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1176 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1177 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1178 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1179
1180 _ASUNAME
1181
1182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183 for as_dir in $PATH
1184 do
1185   IFS=$as_save_IFS
1186   test -z "$as_dir" && as_dir=.
1187   echo "PATH: $as_dir"
1188 done
1189
1190 } >&5
1191
1192 cat >&5 <<_ACEOF
1193
1194
1195 ## ----------- ##
1196 ## Core tests. ##
1197 ## ----------- ##
1198
1199 _ACEOF
1200
1201
1202 # Keep a trace of the command line.
1203 # Strip out --no-create and --no-recursion so they do not pile up.
1204 # Strip out --silent because we don't want to record it for future runs.
1205 # Also quote any args containing shell meta-characters.
1206 # Make two passes to allow for proper duplicate-argument suppression.
1207 ac_configure_args=
1208 ac_configure_args0=
1209 ac_configure_args1=
1210 ac_sep=
1211 ac_must_keep_next=false
1212 for ac_pass in 1 2
1213 do
1214   for ac_arg
1215   do
1216     case $ac_arg in
1217     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219     | -silent | --silent | --silen | --sile | --sil)
1220       continue ;;
1221     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223     esac
1224     case $ac_pass in
1225     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226     2)
1227       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228       if test $ac_must_keep_next = true; then
1229         ac_must_keep_next=false # Got value, back to normal.
1230       else
1231         case $ac_arg in
1232           *=* | --config-cache | -C | -disable-* | --disable-* \
1233           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235           | -with-* | --with-* | -without-* | --without-* | --x)
1236             case "$ac_configure_args0 " in
1237               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238             esac
1239             ;;
1240           -* ) ac_must_keep_next=true ;;
1241         esac
1242       fi
1243       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244       # Get rid of the leading space.
1245       ac_sep=" "
1246       ;;
1247     esac
1248   done
1249 done
1250 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252
1253 # When interrupted or exit'd, cleanup temporary files, and complete
1254 # config.log.  We remove comments because anyway the quotes in there
1255 # would cause problems or look ugly.
1256 # WARNING: Be sure not to use single quotes in there, as some shells,
1257 # such as our DU 5.0 friend, will then `close' the trap.
1258 trap 'exit_status=$?
1259   # Save into config.log some information that might help in debugging.
1260   {
1261     echo
1262
1263     cat <<\_ASBOX
1264 ## ---------------- ##
1265 ## Cache variables. ##
1266 ## ---------------- ##
1267 _ASBOX
1268     echo
1269     # The following way of writing the cache mishandles newlines in values,
1270 {
1271   (set) 2>&1 |
1272     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273     *ac_space=\ *)
1274       sed -n \
1275         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277       ;;
1278     *)
1279       sed -n \
1280         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281       ;;
1282     esac;
1283 }
1284     echo
1285
1286     cat <<\_ASBOX
1287 ## ----------------- ##
1288 ## Output variables. ##
1289 ## ----------------- ##
1290 _ASBOX
1291     echo
1292     for ac_var in $ac_subst_vars
1293     do
1294       eval ac_val=$`echo $ac_var`
1295       echo "$ac_var='"'"'$ac_val'"'"'"
1296     done | sort
1297     echo
1298
1299     if test -n "$ac_subst_files"; then
1300       cat <<\_ASBOX
1301 ## ------------- ##
1302 ## Output files. ##
1303 ## ------------- ##
1304 _ASBOX
1305       echo
1306       for ac_var in $ac_subst_files
1307       do
1308         eval ac_val=$`echo $ac_var`
1309         echo "$ac_var='"'"'$ac_val'"'"'"
1310       done | sort
1311       echo
1312     fi
1313
1314     if test -s confdefs.h; then
1315       cat <<\_ASBOX
1316 ## ----------- ##
1317 ## confdefs.h. ##
1318 ## ----------- ##
1319 _ASBOX
1320       echo
1321       sed "/^$/d" confdefs.h | sort
1322       echo
1323     fi
1324     test "$ac_signal" != 0 &&
1325       echo "$as_me: caught signal $ac_signal"
1326     echo "$as_me: exit $exit_status"
1327   } >&5
1328   rm -f core core.* *.core &&
1329   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330     exit $exit_status
1331      ' 0
1332 for ac_signal in 1 2 13 15; do
1333   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334 done
1335 ac_signal=0
1336
1337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1338 rm -rf conftest* confdefs.h
1339 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 echo >confdefs.h
1341
1342 # Predefined preprocessor variables.
1343
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_NAME "$PACKAGE_NAME"
1346 _ACEOF
1347
1348
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351 _ACEOF
1352
1353
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1356 _ACEOF
1357
1358
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_STRING "$PACKAGE_STRING"
1361 _ACEOF
1362
1363
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366 _ACEOF
1367
1368
1369 # Let the site file select an alternate cache file if it wants to.
1370 # Prefer explicitly selected file to automatically selected ones.
1371 if test -z "$CONFIG_SITE"; then
1372   if test "x$prefix" != xNONE; then
1373     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374   else
1375     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376   fi
1377 fi
1378 for ac_site_file in $CONFIG_SITE; do
1379   if test -r "$ac_site_file"; then
1380     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381 echo "$as_me: loading site script $ac_site_file" >&6;}
1382     sed 's/^/| /' "$ac_site_file" >&5
1383     . "$ac_site_file"
1384   fi
1385 done
1386
1387 if test -r "$cache_file"; then
1388   # Some versions of bash will fail to source /dev/null (special
1389   # files actually), so we avoid doing that.
1390   if test -f "$cache_file"; then
1391     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392 echo "$as_me: loading cache $cache_file" >&6;}
1393     case $cache_file in
1394       [\\/]* | ?:[\\/]* ) . $cache_file;;
1395       *)                      . ./$cache_file;;
1396     esac
1397   fi
1398 else
1399   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400 echo "$as_me: creating cache $cache_file" >&6;}
1401   >$cache_file
1402 fi
1403
1404 # Check that the precious variables saved in the cache have kept the same
1405 # value.
1406 ac_cache_corrupted=false
1407 for ac_var in `(set) 2>&1 |
1408                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410   eval ac_new_set=\$ac_env_${ac_var}_set
1411   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412   eval ac_new_val="\$ac_env_${ac_var}_value"
1413   case $ac_old_set,$ac_new_set in
1414     set,)
1415       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417       ac_cache_corrupted=: ;;
1418     ,set)
1419       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421       ac_cache_corrupted=: ;;
1422     ,);;
1423     *)
1424       if test "x$ac_old_val" != "x$ac_new_val"; then
1425         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1428 echo "$as_me:   former value:  $ac_old_val" >&2;}
1429         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1430 echo "$as_me:   current value: $ac_new_val" >&2;}
1431         ac_cache_corrupted=:
1432       fi;;
1433   esac
1434   # Pass precious variables to config.status.
1435   if test "$ac_new_set" = set; then
1436     case $ac_new_val in
1437     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439     *) ac_arg=$ac_var=$ac_new_val ;;
1440     esac
1441     case " $ac_configure_args " in
1442       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1443       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1444     esac
1445   fi
1446 done
1447 if $ac_cache_corrupted; then
1448   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452    { (exit 1); exit 1; }; }
1453 fi
1454
1455 ac_ext=c
1456 ac_cpp='$CPP $CPPFLAGS'
1457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488 ac_aux_dir=
1489 for ac_dir in autoconf $srcdir/autoconf; do
1490   if test -f $ac_dir/install-sh; then
1491     ac_aux_dir=$ac_dir
1492     ac_install_sh="$ac_aux_dir/install-sh -c"
1493     break
1494   elif test -f $ac_dir/install.sh; then
1495     ac_aux_dir=$ac_dir
1496     ac_install_sh="$ac_aux_dir/install.sh -c"
1497     break
1498   elif test -f $ac_dir/shtool; then
1499     ac_aux_dir=$ac_dir
1500     ac_install_sh="$ac_aux_dir/shtool install -c"
1501     break
1502   fi
1503 done
1504 if test -z "$ac_aux_dir"; then
1505   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1506 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1507    { (exit 1); exit 1; }; }
1508 fi
1509 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
1513
1514 if test ${srcdir} != "."
1515 then
1516         if test -f ${srcdir}/include/Config/config.h
1517         then
1518                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1519 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1520    { (exit 1); exit 1; }; }
1521         fi
1522 fi
1523
1524 if test -d ${srcdir}/projects/reopt
1525 then
1526
1527
1528 subdirs="$subdirs projects/reopt"
1529
1530 fi
1531
1532 if test -d ${srcdir}/projects/poolalloc
1533 then
1534
1535
1536 subdirs="$subdirs projects/poolalloc"
1537
1538 fi
1539
1540           ac_config_headers="$ac_config_headers include/Config/config.h"
1541
1542           ac_config_commands="$ac_config_commands Makefile"
1543
1544
1545           ac_config_commands="$ac_config_commands Makefile.common"
1546
1547
1548           ac_config_commands="$ac_config_commands Makefile.rules"
1549
1550
1551           ac_config_commands="$ac_config_commands lib/Makefile"
1552
1553
1554           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1555
1556
1557           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1558
1559
1560           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1561
1562
1563           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1564
1565
1566           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1567
1568
1569           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1570
1571
1572           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1573
1574
1575           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1576
1577
1578           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1579
1580
1581           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1582
1583
1584           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1585
1586
1587           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1588
1589
1590           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1591
1592
1593           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1594
1595
1596           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1597
1598
1599           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1600
1601
1602           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1603
1604
1605           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1606
1607
1608           ac_config_commands="$ac_config_commands lib/Support/Makefile"
1609
1610
1611           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1612
1613
1614           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1615
1616
1617           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1618
1619
1620           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1621
1622
1623           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1624
1625
1626           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1627
1628
1629           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1630
1631
1632           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1633
1634
1635           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1636
1637
1638           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1639
1640
1641           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1642
1643
1644           ac_config_commands="$ac_config_commands runtime/Makefile"
1645
1646
1647           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1648
1649
1650           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1651
1652
1653           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1654
1655
1656           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1657
1658
1659           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1660
1661
1662           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1663
1664
1665           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1666
1667
1668           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1669
1670
1671           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1672
1673
1674           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1675
1676
1677           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1678
1679
1680           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1681
1682
1683           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1684
1685
1686           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1687
1688
1689           ac_config_commands="$ac_config_commands test/Makefile"
1690
1691
1692           ac_config_commands="$ac_config_commands test/Makefile.tests"
1693
1694
1695           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1696
1697
1698           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1699
1700
1701           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1702
1703
1704           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1705
1706
1707           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1708
1709
1710           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1711
1712
1713           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1714
1715
1716           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1717
1718
1719           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1720
1721
1722           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1723
1724
1725           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1726
1727
1728           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1729
1730
1731           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1732
1733
1734           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1735
1736
1737           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1738
1739
1740           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1741
1742
1743           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1744
1745
1746           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1747
1748
1749           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1750
1751
1752           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1753
1754
1755           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1756
1757
1758           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1759
1760
1761           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1762
1763
1764           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1765
1766
1767           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1768
1769
1770           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1771
1772
1773           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1774
1775
1776           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1777
1778
1779           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1780
1781
1782           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1783
1784
1785           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1786
1787
1788           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1789
1790
1791           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1792
1793
1794           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1795
1796
1797           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1798
1799
1800           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1801
1802
1803           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1804
1805
1806           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1807
1808
1809           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1810
1811
1812           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1813
1814
1815           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1816
1817
1818           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1819
1820
1821           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1822
1823
1824           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1825
1826
1827           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1828
1829
1830           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1831
1832
1833           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1834
1835
1836           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1837
1838
1839           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1840
1841
1842           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1843
1844
1845           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1846
1847
1848           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1849
1850
1851           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1852
1853
1854           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1855
1856
1857           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1858
1859
1860           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1861
1862
1863           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1864
1865
1866           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1867
1868
1869           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1870
1871
1872           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1873
1874
1875           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1876
1877
1878           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1879
1880
1881           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1882
1883
1884           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1885
1886
1887           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1888
1889
1890           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1891
1892
1893           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1894
1895
1896           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1897
1898
1899           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1900
1901
1902           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1903
1904
1905           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1906
1907
1908           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1909
1910
1911           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1912
1913
1914           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1915
1916
1917           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1918
1919
1920           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1921
1922
1923           ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1924
1925
1926           ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1927
1928
1929           ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1930
1931
1932           ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1933
1934
1935           ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1936
1937
1938           ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1939
1940
1941           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1942
1943
1944           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1945
1946
1947           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1948
1949
1950           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1951
1952
1953           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1954
1955
1956           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1957
1958
1959           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1960
1961
1962           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1963
1964
1965           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1966
1967
1968           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1969
1970
1971           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1972
1973
1974           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1975
1976
1977           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1978
1979
1980           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1981
1982
1983           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1984
1985
1986           ac_config_commands="$ac_config_commands tools/Makefile"
1987
1988
1989           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1990
1991
1992           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1993
1994
1995           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1996
1997
1998           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1999
2000
2001           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
2002
2003
2004           ac_config_commands="$ac_config_commands tools/llc/Makefile"
2005
2006
2007           ac_config_commands="$ac_config_commands tools/llee/Makefile"
2008
2009
2010           ac_config_commands="$ac_config_commands tools/lli/Makefile"
2011
2012
2013           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2014
2015
2016           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2017
2018
2019           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
2020
2021
2022           ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2023
2024
2025           ac_config_commands="$ac_config_commands tools/opt/Makefile"
2026
2027
2028           ac_config_commands="$ac_config_commands utils/Makefile"
2029
2030
2031           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2032
2033
2034           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2035
2036
2037           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2038
2039
2040           ac_config_commands="$ac_config_commands www/docs/Makefile"
2041
2042
2043           ac_config_commands="$ac_config_commands projects/Makefile"
2044
2045
2046           ac_config_commands="$ac_config_commands projects/sample/Makefile"
2047
2048
2049           ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2050
2051
2052           ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2053
2054
2055           ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2056
2057
2058           ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2059
2060
2061           ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2062
2063
2064           ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2065
2066
2067           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2068
2069
2070           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2071
2072
2073           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2074
2075
2076           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2077
2078
2079
2080
2081 # Find a good install program.  We prefer a C program (faster),
2082 # so one script is as good as another.  But avoid the broken or
2083 # incompatible versions:
2084 # SysV /etc/install, /usr/sbin/install
2085 # SunOS /usr/etc/install
2086 # IRIX /sbin/install
2087 # AIX /bin/install
2088 # AmigaOS /C/install, which installs bootblocks on floppy discs
2089 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2090 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2091 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2092 # ./install, which can be erroneously created by make from ./install.sh.
2093 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2094 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2095 if test -z "$INSTALL"; then
2096 if test "${ac_cv_path_install+set}" = set; then
2097   echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102   IFS=$as_save_IFS
2103   test -z "$as_dir" && as_dir=.
2104   # Account for people who put trailing slashes in PATH elements.
2105 case $as_dir/ in
2106   ./ | .// | /cC/* | \
2107   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2108   /usr/ucb/* ) ;;
2109   *)
2110     # OSF1 and SCO ODT 3.0 have their own names for install.
2111     # Don't use installbsd from OSF since it installs stuff as root
2112     # by default.
2113     for ac_prog in ginstall scoinst install; do
2114       for ac_exec_ext in '' $ac_executable_extensions; do
2115         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2116           if test $ac_prog = install &&
2117             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2118             # AIX install.  It has an incompatible calling convention.
2119             :
2120           elif test $ac_prog = install &&
2121             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2122             # program-specific install script used by HP pwplus--don't use.
2123             :
2124           else
2125             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2126             break 3
2127           fi
2128         fi
2129       done
2130     done
2131     ;;
2132 esac
2133 done
2134
2135
2136 fi
2137   if test "${ac_cv_path_install+set}" = set; then
2138     INSTALL=$ac_cv_path_install
2139   else
2140     # As a last resort, use the slow shell script.  We don't cache a
2141     # path for INSTALL within a source directory, because that will
2142     # break other packages using the cache if that directory is
2143     # removed, or if the path is relative.
2144     INSTALL=$ac_install_sh
2145   fi
2146 fi
2147 echo "$as_me:$LINENO: result: $INSTALL" >&5
2148 echo "${ECHO_T}$INSTALL" >&6
2149
2150 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2151 # It thinks the first close brace ends the variable substitution.
2152 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2153
2154 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2155
2156 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2157
2158
2159 # Make sure we can run config.sub.
2160 $ac_config_sub sun4 >/dev/null 2>&1 ||
2161   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2162 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2163    { (exit 1); exit 1; }; }
2164
2165 echo "$as_me:$LINENO: checking build system type" >&5
2166 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2167 if test "${ac_cv_build+set}" = set; then
2168   echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170   ac_cv_build_alias=$build_alias
2171 test -z "$ac_cv_build_alias" &&
2172   ac_cv_build_alias=`$ac_config_guess`
2173 test -z "$ac_cv_build_alias" &&
2174   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2175 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2176    { (exit 1); exit 1; }; }
2177 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2178   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2179 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2180    { (exit 1); exit 1; }; }
2181
2182 fi
2183 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2184 echo "${ECHO_T}$ac_cv_build" >&6
2185 build=$ac_cv_build
2186 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2187 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2188 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2189
2190
2191 echo "$as_me:$LINENO: checking host system type" >&5
2192 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2193 if test "${ac_cv_host+set}" = set; then
2194   echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196   ac_cv_host_alias=$host_alias
2197 test -z "$ac_cv_host_alias" &&
2198   ac_cv_host_alias=$ac_cv_build_alias
2199 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2200   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2201 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2202    { (exit 1); exit 1; }; }
2203
2204 fi
2205 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2206 echo "${ECHO_T}$ac_cv_host" >&6
2207 host=$ac_cv_host
2208 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2209 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2210 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2211
2212
2213 echo "$as_me:$LINENO: checking target system type" >&5
2214 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2215 if test "${ac_cv_target+set}" = set; then
2216   echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218   ac_cv_target_alias=$target_alias
2219 test "x$ac_cv_target_alias" = "x" &&
2220   ac_cv_target_alias=$ac_cv_host_alias
2221 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2222   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2223 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2224    { (exit 1); exit 1; }; }
2225
2226 fi
2227 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2228 echo "${ECHO_T}$ac_cv_target" >&6
2229 target=$ac_cv_target
2230 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2231 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2232 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2233
2234
2235 # The aliases save the names the user supplied, while $host etc.
2236 # will get canonicalized.
2237 test -n "$target_alias" &&
2238   test "$program_prefix$program_suffix$program_transform_name" = \
2239     NONENONEs,x,x, &&
2240   program_prefix=${target_alias}-
2241
2242 case $build in
2243         *i*86*)  OS=Linux
2244
2245                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2246
2247                  ;;
2248
2249         *sparc*) OS=SunOS
2250
2251                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2252
2253                  ;;
2254
2255         *)       OS=Unknown
2256
2257                  ;;
2258 esac
2259
2260 case $target in
2261         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2262
2263                           ;;
2264 esac
2265
2266 case $target in
2267         *i*86*)           ARCH=x86
2268
2269                           ;;
2270         *sparc*solaris*)  ARCH=Sparc
2271
2272                           ;;
2273 esac
2274
2275
2276 ac_ext=cc
2277 ac_cpp='$CXXCPP $CPPFLAGS'
2278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2281 if test -n "$ac_tool_prefix"; then
2282   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2283   do
2284     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2285 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2286 echo "$as_me:$LINENO: checking for $ac_word" >&5
2287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2288 if test "${ac_cv_prog_CXX+set}" = set; then
2289   echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291   if test -n "$CXX"; then
2292   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2293 else
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2296 do
2297   IFS=$as_save_IFS
2298   test -z "$as_dir" && as_dir=.
2299   for ac_exec_ext in '' $ac_executable_extensions; do
2300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2301     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303     break 2
2304   fi
2305 done
2306 done
2307
2308 fi
2309 fi
2310 CXX=$ac_cv_prog_CXX
2311 if test -n "$CXX"; then
2312   echo "$as_me:$LINENO: result: $CXX" >&5
2313 echo "${ECHO_T}$CXX" >&6
2314 else
2315   echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6
2317 fi
2318
2319     test -n "$CXX" && break
2320   done
2321 fi
2322 if test -z "$CXX"; then
2323   ac_ct_CXX=$CXX
2324   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2325 do
2326   # Extract the first word of "$ac_prog", so it can be a program name with args.
2327 set dummy $ac_prog; ac_word=$2
2328 echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2330 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   if test -n "$ac_ct_CXX"; then
2334   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2335 else
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2338 do
2339   IFS=$as_save_IFS
2340   test -z "$as_dir" && as_dir=.
2341   for ac_exec_ext in '' $ac_executable_extensions; do
2342   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2343     ac_cv_prog_ac_ct_CXX="$ac_prog"
2344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345     break 2
2346   fi
2347 done
2348 done
2349
2350 fi
2351 fi
2352 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2353 if test -n "$ac_ct_CXX"; then
2354   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2355 echo "${ECHO_T}$ac_ct_CXX" >&6
2356 else
2357   echo "$as_me:$LINENO: result: no" >&5
2358 echo "${ECHO_T}no" >&6
2359 fi
2360
2361   test -n "$ac_ct_CXX" && break
2362 done
2363 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2364
2365   CXX=$ac_ct_CXX
2366 fi
2367
2368
2369 # Provide some information about the compiler.
2370 echo "$as_me:$LINENO:" \
2371      "checking for C++ compiler version" >&5
2372 ac_compiler=`set X $ac_compile; echo $2`
2373 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2374   (eval $ac_compiler --version </dev/null >&5) 2>&5
2375   ac_status=$?
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); }
2378 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2379   (eval $ac_compiler -v </dev/null >&5) 2>&5
2380   ac_status=$?
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); }
2383 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2384   (eval $ac_compiler -V </dev/null >&5) 2>&5
2385   ac_status=$?
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); }
2388
2389 cat >conftest.$ac_ext <<_ACEOF
2390 #line $LINENO "configure"
2391 /* confdefs.h.  */
2392 _ACEOF
2393 cat confdefs.h >>conftest.$ac_ext
2394 cat >>conftest.$ac_ext <<_ACEOF
2395 /* end confdefs.h.  */
2396
2397 int
2398 main ()
2399 {
2400
2401   ;
2402   return 0;
2403 }
2404 _ACEOF
2405 ac_clean_files_save=$ac_clean_files
2406 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2407 # Try to create an executable without -o first, disregard a.out.
2408 # It will help us diagnose broken compilers, and finding out an intuition
2409 # of exeext.
2410 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2411 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2412 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2413 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2414   (eval $ac_link_default) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }; then
2418   # Find the output, starting from the most likely.  This scheme is
2419 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2420 # resort.
2421
2422 # Be careful to initialize this variable, since it used to be cached.
2423 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2424 ac_cv_exeext=
2425 # b.out is created by i960 compilers.
2426 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2427 do
2428   test -f "$ac_file" || continue
2429   case $ac_file in
2430     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2431         ;;
2432     conftest.$ac_ext )
2433         # This is the source file.
2434         ;;
2435     [ab].out )
2436         # We found the default executable, but exeext='' is most
2437         # certainly right.
2438         break;;
2439     *.* )
2440         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2441         # FIXME: I believe we export ac_cv_exeext for Libtool,
2442         # but it would be cool to find out if it's true.  Does anybody
2443         # maintain Libtool? --akim.
2444         export ac_cv_exeext
2445         break;;
2446     * )
2447         break;;
2448   esac
2449 done
2450 else
2451   echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2453
2454 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2455 See \`config.log' for more details." >&5
2456 echo "$as_me: error: C++ compiler cannot create executables
2457 See \`config.log' for more details." >&2;}
2458    { (exit 77); exit 77; }; }
2459 fi
2460
2461 ac_exeext=$ac_cv_exeext
2462 echo "$as_me:$LINENO: result: $ac_file" >&5
2463 echo "${ECHO_T}$ac_file" >&6
2464
2465 # Check the compiler produces executables we can run.  If not, either
2466 # the compiler is broken, or we cross compile.
2467 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2468 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2469 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2470 # If not cross compiling, check that we can run a simple program.
2471 if test "$cross_compiling" != yes; then
2472   if { ac_try='./$ac_file'
2473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474   (eval $ac_try) 2>&5
2475   ac_status=$?
2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477   (exit $ac_status); }; }; then
2478     cross_compiling=no
2479   else
2480     if test "$cross_compiling" = maybe; then
2481         cross_compiling=yes
2482     else
2483         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2484 If you meant to cross compile, use \`--host'.
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot run C++ compiled programs.
2487 If you meant to cross compile, use \`--host'.
2488 See \`config.log' for more details." >&2;}
2489    { (exit 1); exit 1; }; }
2490     fi
2491   fi
2492 fi
2493 echo "$as_me:$LINENO: result: yes" >&5
2494 echo "${ECHO_T}yes" >&6
2495
2496 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2497 ac_clean_files=$ac_clean_files_save
2498 # Check the compiler produces executables we can run.  If not, either
2499 # the compiler is broken, or we cross compile.
2500 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2501 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2502 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2503 echo "${ECHO_T}$cross_compiling" >&6
2504
2505 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2506 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2508   (eval $ac_link) 2>&5
2509   ac_status=$?
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); }; then
2512   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2513 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2514 # work properly (i.e., refer to `conftest.exe'), while it won't with
2515 # `rm'.
2516 for ac_file in conftest.exe conftest conftest.*; do
2517   test -f "$ac_file" || continue
2518   case $ac_file in
2519     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2520     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2521           export ac_cv_exeext
2522           break;;
2523     * ) break;;
2524   esac
2525 done
2526 else
2527   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2528 See \`config.log' for more details." >&5
2529 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2530 See \`config.log' for more details." >&2;}
2531    { (exit 1); exit 1; }; }
2532 fi
2533
2534 rm -f conftest$ac_cv_exeext
2535 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2536 echo "${ECHO_T}$ac_cv_exeext" >&6
2537
2538 rm -f conftest.$ac_ext
2539 EXEEXT=$ac_cv_exeext
2540 ac_exeext=$EXEEXT
2541 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2542 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2543 if test "${ac_cv_objext+set}" = set; then
2544   echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546   cat >conftest.$ac_ext <<_ACEOF
2547 #line $LINENO "configure"
2548 /* confdefs.h.  */
2549 _ACEOF
2550 cat confdefs.h >>conftest.$ac_ext
2551 cat >>conftest.$ac_ext <<_ACEOF
2552 /* end confdefs.h.  */
2553
2554 int
2555 main ()
2556 {
2557
2558   ;
2559   return 0;
2560 }
2561 _ACEOF
2562 rm -f conftest.o conftest.obj
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564   (eval $ac_compile) 2>&5
2565   ac_status=$?
2566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567   (exit $ac_status); }; then
2568   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2569   case $ac_file in
2570     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2571     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2572        break;;
2573   esac
2574 done
2575 else
2576   echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2578
2579 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2580 See \`config.log' for more details." >&5
2581 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2582 See \`config.log' for more details." >&2;}
2583    { (exit 1); exit 1; }; }
2584 fi
2585
2586 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2587 fi
2588 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2589 echo "${ECHO_T}$ac_cv_objext" >&6
2590 OBJEXT=$ac_cv_objext
2591 ac_objext=$OBJEXT
2592 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2593 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2594 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2595   echo $ECHO_N "(cached) $ECHO_C" >&6
2596 else
2597   cat >conftest.$ac_ext <<_ACEOF
2598 #line $LINENO "configure"
2599 /* confdefs.h.  */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h.  */
2604
2605 int
2606 main ()
2607 {
2608 #ifndef __GNUC__
2609        choke me
2610 #endif
2611
2612   ;
2613   return 0;
2614 }
2615 _ACEOF
2616 rm -f conftest.$ac_objext
2617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618   (eval $ac_compile) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); } &&
2622          { ac_try='test -s conftest.$ac_objext'
2623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624   (eval $ac_try) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); }; }; then
2628   ac_compiler_gnu=yes
2629 else
2630   echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2632
2633 ac_compiler_gnu=no
2634 fi
2635 rm -f conftest.$ac_objext conftest.$ac_ext
2636 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2637
2638 fi
2639 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2640 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2641 GXX=`test $ac_compiler_gnu = yes && echo yes`
2642 ac_test_CXXFLAGS=${CXXFLAGS+set}
2643 ac_save_CXXFLAGS=$CXXFLAGS
2644 CXXFLAGS="-g"
2645 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2646 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2647 if test "${ac_cv_prog_cxx_g+set}" = set; then
2648   echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650   cat >conftest.$ac_ext <<_ACEOF
2651 #line $LINENO "configure"
2652 /* confdefs.h.  */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h.  */
2657
2658 int
2659 main ()
2660 {
2661
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668   (eval $ac_compile) 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); } &&
2672          { ac_try='test -s conftest.$ac_objext'
2673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674   (eval $ac_try) 2>&5
2675   ac_status=$?
2676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677   (exit $ac_status); }; }; then
2678   ac_cv_prog_cxx_g=yes
2679 else
2680   echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683 ac_cv_prog_cxx_g=no
2684 fi
2685 rm -f conftest.$ac_objext conftest.$ac_ext
2686 fi
2687 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2688 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2689 if test "$ac_test_CXXFLAGS" = set; then
2690   CXXFLAGS=$ac_save_CXXFLAGS
2691 elif test $ac_cv_prog_cxx_g = yes; then
2692   if test "$GXX" = yes; then
2693     CXXFLAGS="-g -O2"
2694   else
2695     CXXFLAGS="-g"
2696   fi
2697 else
2698   if test "$GXX" = yes; then
2699     CXXFLAGS="-O2"
2700   else
2701     CXXFLAGS=
2702   fi
2703 fi
2704 for ac_declaration in \
2705    ''\
2706    '#include <stdlib.h>' \
2707    'extern "C" void std::exit (int) throw (); using std::exit;' \
2708    'extern "C" void std::exit (int); using std::exit;' \
2709    'extern "C" void exit (int) throw ();' \
2710    'extern "C" void exit (int);' \
2711    'void exit (int);'
2712 do
2713   cat >conftest.$ac_ext <<_ACEOF
2714 #line $LINENO "configure"
2715 /* confdefs.h.  */
2716 _ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h.  */
2720 #include <stdlib.h>
2721 $ac_declaration
2722 int
2723 main ()
2724 {
2725 exit (42);
2726   ;
2727   return 0;
2728 }
2729 _ACEOF
2730 rm -f conftest.$ac_objext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732   (eval $ac_compile) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); } &&
2736          { ac_try='test -s conftest.$ac_objext'
2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; }; then
2742   :
2743 else
2744   echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2746
2747 continue
2748 fi
2749 rm -f conftest.$ac_objext conftest.$ac_ext
2750   cat >conftest.$ac_ext <<_ACEOF
2751 #line $LINENO "configure"
2752 /* confdefs.h.  */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h.  */
2757 $ac_declaration
2758 int
2759 main ()
2760 {
2761 exit (42);
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 rm -f conftest.$ac_objext
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768   (eval $ac_compile) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); } &&
2772          { ac_try='test -s conftest.$ac_objext'
2773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774   (eval $ac_try) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }; }; then
2778   break
2779 else
2780   echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2782
2783 fi
2784 rm -f conftest.$ac_objext conftest.$ac_ext
2785 done
2786 rm -f conftest*
2787 if test -n "$ac_declaration"; then
2788   echo '#ifdef __cplusplus' >>confdefs.h
2789   echo $ac_declaration      >>confdefs.h
2790   echo '#endif'             >>confdefs.h
2791 fi
2792
2793 ac_ext=c
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798
2799 ac_ext=c
2800 ac_cpp='$CPP $CPPFLAGS'
2801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804 if test -n "$ac_tool_prefix"; then
2805   for ac_prog in gcc
2806   do
2807     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2809 echo "$as_me:$LINENO: checking for $ac_word" >&5
2810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2811 if test "${ac_cv_prog_CC+set}" = set; then
2812   echo $ECHO_N "(cached) $ECHO_C" >&6
2813 else
2814   if test -n "$CC"; then
2815   ac_cv_prog_CC="$CC" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2819 do
2820   IFS=$as_save_IFS
2821   test -z "$as_dir" && as_dir=.
2822   for ac_exec_ext in '' $ac_executable_extensions; do
2823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826     break 2
2827   fi
2828 done
2829 done
2830
2831 fi
2832 fi
2833 CC=$ac_cv_prog_CC
2834 if test -n "$CC"; then
2835   echo "$as_me:$LINENO: result: $CC" >&5
2836 echo "${ECHO_T}$CC" >&6
2837 else
2838   echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6
2840 fi
2841
2842     test -n "$CC" && break
2843   done
2844 fi
2845 if test -z "$CC"; then
2846   ac_ct_CC=$CC
2847   for ac_prog in gcc
2848 do
2849   # Extract the first word of "$ac_prog", so it can be a program name with args.
2850 set dummy $ac_prog; ac_word=$2
2851 echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2854   echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856   if test -n "$ac_ct_CC"; then
2857   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864   for ac_exec_ext in '' $ac_executable_extensions; do
2865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866     ac_cv_prog_ac_ct_CC="$ac_prog"
2867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868     break 2
2869   fi
2870 done
2871 done
2872
2873 fi
2874 fi
2875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2876 if test -n "$ac_ct_CC"; then
2877   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2878 echo "${ECHO_T}$ac_ct_CC" >&6
2879 else
2880   echo "$as_me:$LINENO: result: no" >&5
2881 echo "${ECHO_T}no" >&6
2882 fi
2883
2884   test -n "$ac_ct_CC" && break
2885 done
2886
2887   CC=$ac_ct_CC
2888 fi
2889
2890
2891 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2892 See \`config.log' for more details." >&5
2893 echo "$as_me: error: no acceptable C compiler found in \$PATH
2894 See \`config.log' for more details." >&2;}
2895    { (exit 1); exit 1; }; }
2896
2897 # Provide some information about the compiler.
2898 echo "$as_me:$LINENO:" \
2899      "checking for C compiler version" >&5
2900 ac_compiler=`set X $ac_compile; echo $2`
2901 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2902   (eval $ac_compiler --version </dev/null >&5) 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }
2906 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2907   (eval $ac_compiler -v </dev/null >&5) 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }
2911 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2912   (eval $ac_compiler -V </dev/null >&5) 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }
2916
2917 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2918 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2919 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2920   echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922   cat >conftest.$ac_ext <<_ACEOF
2923 #line $LINENO "configure"
2924 /* confdefs.h.  */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h.  */
2929
2930 int
2931 main ()
2932 {
2933 #ifndef __GNUC__
2934        choke me
2935 #endif
2936
2937   ;
2938   return 0;
2939 }
2940 _ACEOF
2941 rm -f conftest.$ac_objext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943   (eval $ac_compile) 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); } &&
2947          { ac_try='test -s conftest.$ac_objext'
2948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949   (eval $ac_try) 2>&5
2950   ac_status=$?
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); }; }; then
2953   ac_compiler_gnu=yes
2954 else
2955   echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2957
2958 ac_compiler_gnu=no
2959 fi
2960 rm -f conftest.$ac_objext conftest.$ac_ext
2961 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2962
2963 fi
2964 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2965 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2966 GCC=`test $ac_compiler_gnu = yes && echo yes`
2967 ac_test_CFLAGS=${CFLAGS+set}
2968 ac_save_CFLAGS=$CFLAGS
2969 CFLAGS="-g"
2970 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2971 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2972 if test "${ac_cv_prog_cc_g+set}" = set; then
2973   echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975   cat >conftest.$ac_ext <<_ACEOF
2976 #line $LINENO "configure"
2977 /* confdefs.h.  */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h.  */
2982
2983 int
2984 main ()
2985 {
2986
2987   ;
2988   return 0;
2989 }
2990 _ACEOF
2991 rm -f conftest.$ac_objext
2992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2993   (eval $ac_compile) 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); } &&
2997          { ac_try='test -s conftest.$ac_objext'
2998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999   (eval $ac_try) 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; }; then
3003   ac_cv_prog_cc_g=yes
3004 else
3005   echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008 ac_cv_prog_cc_g=no
3009 fi
3010 rm -f conftest.$ac_objext conftest.$ac_ext
3011 fi
3012 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3013 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3014 if test "$ac_test_CFLAGS" = set; then
3015   CFLAGS=$ac_save_CFLAGS
3016 elif test $ac_cv_prog_cc_g = yes; then
3017   if test "$GCC" = yes; then
3018     CFLAGS="-g -O2"
3019   else
3020     CFLAGS="-g"
3021   fi
3022 else
3023   if test "$GCC" = yes; then
3024     CFLAGS="-O2"
3025   else
3026     CFLAGS=
3027   fi
3028 fi
3029 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3030 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3031 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3032   echo $ECHO_N "(cached) $ECHO_C" >&6
3033 else
3034   ac_cv_prog_cc_stdc=no
3035 ac_save_CC=$CC
3036 cat >conftest.$ac_ext <<_ACEOF
3037 #line $LINENO "configure"
3038 /* confdefs.h.  */
3039 _ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h.  */
3043 #include <stdarg.h>
3044 #include <stdio.h>
3045 #include <sys/types.h>
3046 #include <sys/stat.h>
3047 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3048 struct buf { int x; };
3049 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3050 static char *e (p, i)
3051      char **p;
3052      int i;
3053 {
3054   return p[i];
3055 }
3056 static char *f (char * (*g) (char **, int), char **p, ...)
3057 {
3058   char *s;
3059   va_list v;
3060   va_start (v,p);
3061   s = g (p, va_arg (v,int));
3062   va_end (v);
3063   return s;
3064 }
3065 int test (int i, double x);
3066 struct s1 {int (*f) (int a);};
3067 struct s2 {int (*f) (double a);};
3068 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3069 int argc;
3070 char **argv;
3071 int
3072 main ()
3073 {
3074 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3075   ;
3076   return 0;
3077 }
3078 _ACEOF
3079 # Don't try gcc -ansi; that turns off useful extensions and
3080 # breaks some systems' header files.
3081 # AIX                   -qlanglvl=ansi
3082 # Ultrix and OSF/1      -std1
3083 # HP-UX 10.20 and later -Ae
3084 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3085 # SVR4                  -Xc -D__EXTENSIONS__
3086 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3087 do
3088   CC="$ac_save_CC $ac_arg"
3089   rm -f conftest.$ac_objext
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091   (eval $ac_compile) 2>&5
3092   ac_status=$?
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); } &&
3095          { ac_try='test -s conftest.$ac_objext'
3096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097   (eval $ac_try) 2>&5
3098   ac_status=$?
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); }; }; then
3101   ac_cv_prog_cc_stdc=$ac_arg
3102 break
3103 else
3104   echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 fi
3108 rm -f conftest.$ac_objext
3109 done
3110 rm -f conftest.$ac_ext conftest.$ac_objext
3111 CC=$ac_save_CC
3112
3113 fi
3114
3115 case "x$ac_cv_prog_cc_stdc" in
3116   x|xno)
3117     echo "$as_me:$LINENO: result: none needed" >&5
3118 echo "${ECHO_T}none needed" >&6 ;;
3119   *)
3120     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3121 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3122     CC="$CC $ac_cv_prog_cc_stdc" ;;
3123 esac
3124
3125 # Some people use a C++ compiler to compile C.  Since we use `exit',
3126 # in C++ we need to declare it.  In case someone uses the same compiler
3127 # for both compiling C and C++ we need to have the C++ compiler decide
3128 # the declaration of exit, since it's the most demanding environment.
3129 cat >conftest.$ac_ext <<_ACEOF
3130 #ifndef __cplusplus
3131   choke me
3132 #endif
3133 _ACEOF
3134 rm -f conftest.$ac_objext
3135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3136   (eval $ac_compile) 2>&5
3137   ac_status=$?
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); } &&
3140          { ac_try='test -s conftest.$ac_objext'
3141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142   (eval $ac_try) 2>&5
3143   ac_status=$?
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); }; }; then
3146   for ac_declaration in \
3147    ''\
3148    '#include <stdlib.h>' \
3149    'extern "C" void std::exit (int) throw (); using std::exit;' \
3150    'extern "C" void std::exit (int); using std::exit;' \
3151    'extern "C" void exit (int) throw ();' \
3152    'extern "C" void exit (int);' \
3153    'void exit (int);'
3154 do
3155   cat >conftest.$ac_ext <<_ACEOF
3156 #line $LINENO "configure"
3157 /* confdefs.h.  */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h.  */
3162 #include <stdlib.h>
3163 $ac_declaration
3164 int
3165 main ()
3166 {
3167 exit (42);
3168   ;
3169   return 0;
3170 }
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3174   (eval $ac_compile) 2>&5
3175   ac_status=$?
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); } &&
3178          { ac_try='test -s conftest.$ac_objext'
3179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180   (eval $ac_try) 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); }; }; then
3184   :
3185 else
3186   echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 continue
3190 fi
3191 rm -f conftest.$ac_objext conftest.$ac_ext
3192   cat >conftest.$ac_ext <<_ACEOF
3193 #line $LINENO "configure"
3194 /* confdefs.h.  */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h.  */
3199 $ac_declaration
3200 int
3201 main ()
3202 {
3203 exit (42);
3204   ;
3205   return 0;
3206 }
3207 _ACEOF
3208 rm -f conftest.$ac_objext
3209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3210   (eval $ac_compile) 2>&5
3211   ac_status=$?
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); } &&
3214          { ac_try='test -s conftest.$ac_objext'
3215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216   (eval $ac_try) 2>&5
3217   ac_status=$?
3218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); }; }; then
3220   break
3221 else
3222   echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3224
3225 fi
3226 rm -f conftest.$ac_objext conftest.$ac_ext
3227 done
3228 rm -f conftest*
3229 if test -n "$ac_declaration"; then
3230   echo '#ifdef __cplusplus' >>confdefs.h
3231   echo $ac_declaration      >>confdefs.h
3232   echo '#endif'             >>confdefs.h
3233 fi
3234
3235 else
3236   echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3238
3239 fi
3240 rm -f conftest.$ac_objext conftest.$ac_ext
3241 ac_ext=c
3242 ac_cpp='$CPP $CPPFLAGS'
3243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246
3247 ac_ext=c
3248 ac_cpp='$CPP $CPPFLAGS'
3249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3253 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3254 # On Suns, sometimes $CPP names a directory.
3255 if test -n "$CPP" && test -d "$CPP"; then
3256   CPP=
3257 fi
3258 if test -z "$CPP"; then
3259   if test "${ac_cv_prog_CPP+set}" = set; then
3260   echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262       # Double quotes because CPP needs to be expanded
3263     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3264     do
3265       ac_preproc_ok=false
3266 for ac_c_preproc_warn_flag in '' yes
3267 do
3268   # Use a header file that comes with gcc, so configuring glibc
3269   # with a fresh cross-compiler works.
3270   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3271   # <limits.h> exists even on freestanding compilers.
3272   # On the NeXT, cc -E runs the code through the compiler's parser,
3273   # not just through cpp. "Syntax error" is here to catch this case.
3274   cat >conftest.$ac_ext <<_ACEOF
3275 #line $LINENO "configure"
3276 /* confdefs.h.  */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h.  */
3281 #ifdef __STDC__
3282 # include <limits.h>
3283 #else
3284 # include <assert.h>
3285 #endif
3286                      Syntax error
3287 _ACEOF
3288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3290   ac_status=$?
3291   grep -v '^ *+' conftest.er1 >conftest.err
3292   rm -f conftest.er1
3293   cat conftest.err >&5
3294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295   (exit $ac_status); } >/dev/null; then
3296   if test -s conftest.err; then
3297     ac_cpp_err=$ac_c_preproc_warn_flag
3298   else
3299     ac_cpp_err=
3300   fi
3301 else
3302   ac_cpp_err=yes
3303 fi
3304 if test -z "$ac_cpp_err"; then
3305   :
3306 else
3307   echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310   # Broken: fails on valid input.
3311 continue
3312 fi
3313 rm -f conftest.err conftest.$ac_ext
3314
3315   # OK, works on sane cases.  Now check whether non-existent headers
3316   # can be detected and how.
3317   cat >conftest.$ac_ext <<_ACEOF
3318 #line $LINENO "configure"
3319 /* confdefs.h.  */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h.  */
3324 #include <ac_nonexistent.h>
3325 _ACEOF
3326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3327   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3328   ac_status=$?
3329   grep -v '^ *+' conftest.er1 >conftest.err
3330   rm -f conftest.er1
3331   cat conftest.err >&5
3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); } >/dev/null; then
3334   if test -s conftest.err; then
3335     ac_cpp_err=$ac_c_preproc_warn_flag
3336   else
3337     ac_cpp_err=
3338   fi
3339 else
3340   ac_cpp_err=yes
3341 fi
3342 if test -z "$ac_cpp_err"; then
3343   # Broken: success on invalid input.
3344 continue
3345 else
3346   echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3348
3349   # Passes both tests.
3350 ac_preproc_ok=:
3351 break
3352 fi
3353 rm -f conftest.err conftest.$ac_ext
3354
3355 done
3356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3357 rm -f conftest.err conftest.$ac_ext
3358 if $ac_preproc_ok; then
3359   break
3360 fi
3361
3362     done
3363     ac_cv_prog_CPP=$CPP
3364
3365 fi
3366   CPP=$ac_cv_prog_CPP
3367 else
3368   ac_cv_prog_CPP=$CPP
3369 fi
3370 echo "$as_me:$LINENO: result: $CPP" >&5
3371 echo "${ECHO_T}$CPP" >&6
3372 ac_preproc_ok=false
3373 for ac_c_preproc_warn_flag in '' yes
3374 do
3375   # Use a header file that comes with gcc, so configuring glibc
3376   # with a fresh cross-compiler works.
3377   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3378   # <limits.h> exists even on freestanding compilers.
3379   # On the NeXT, cc -E runs the code through the compiler's parser,
3380   # not just through cpp. "Syntax error" is here to catch this case.
3381   cat >conftest.$ac_ext <<_ACEOF
3382 #line $LINENO "configure"
3383 /* confdefs.h.  */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h.  */
3388 #ifdef __STDC__
3389 # include <limits.h>
3390 #else
3391 # include <assert.h>
3392 #endif
3393                      Syntax error
3394 _ACEOF
3395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3396   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3397   ac_status=$?
3398   grep -v '^ *+' conftest.er1 >conftest.err
3399   rm -f conftest.er1
3400   cat conftest.err >&5
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); } >/dev/null; then
3403   if test -s conftest.err; then
3404     ac_cpp_err=$ac_c_preproc_warn_flag
3405   else
3406     ac_cpp_err=
3407   fi
3408 else
3409   ac_cpp_err=yes
3410 fi
3411 if test -z "$ac_cpp_err"; then
3412   :
3413 else
3414   echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3416
3417   # Broken: fails on valid input.
3418 continue
3419 fi
3420 rm -f conftest.err conftest.$ac_ext
3421
3422   # OK, works on sane cases.  Now check whether non-existent headers
3423   # can be detected and how.
3424   cat >conftest.$ac_ext <<_ACEOF
3425 #line $LINENO "configure"
3426 /* confdefs.h.  */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h.  */
3431 #include <ac_nonexistent.h>
3432 _ACEOF
3433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3434   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3435   ac_status=$?
3436   grep -v '^ *+' conftest.er1 >conftest.err
3437   rm -f conftest.er1
3438   cat conftest.err >&5
3439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440   (exit $ac_status); } >/dev/null; then
3441   if test -s conftest.err; then
3442     ac_cpp_err=$ac_c_preproc_warn_flag
3443   else
3444     ac_cpp_err=
3445   fi
3446 else
3447   ac_cpp_err=yes
3448 fi
3449 if test -z "$ac_cpp_err"; then
3450   # Broken: success on invalid input.
3451 continue
3452 else
3453   echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3455
3456   # Passes both tests.
3457 ac_preproc_ok=:
3458 break
3459 fi
3460 rm -f conftest.err conftest.$ac_ext
3461
3462 done
3463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3464 rm -f conftest.err conftest.$ac_ext
3465 if $ac_preproc_ok; then
3466   :
3467 else
3468   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3469 See \`config.log' for more details." >&5
3470 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3471 See \`config.log' for more details." >&2;}
3472    { (exit 1); exit 1; }; }
3473 fi
3474
3475 ac_ext=c
3476 ac_cpp='$CPP $CPPFLAGS'
3477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480
3481
3482 if test "$GCC" != "yes"
3483 then
3484         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3485 echo "$as_me: error: gcc required but not found" >&2;}
3486    { (exit 1); exit 1; }; }
3487 fi
3488
3489 if test "$GXX" != "yes"
3490 then
3491         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3492 echo "$as_me: error: g++ required but not found" >&2;}
3493    { (exit 1); exit 1; }; }
3494 fi
3495
3496 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3497 if test "$gccmajor" -lt "3"
3498 then
3499         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3500 echo "$as_me: error: gcc 3.x required" >&2;}
3501    { (exit 1); exit 1; }; }
3502 fi
3503
3504  echo "$as_me:$LINENO: checking for GNU make" >&5
3505 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3506 if test "${_cv_gnu_make_command+set}" = set; then
3507   echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509   _cv_gnu_make_command='' ;
3510                 for a in "$MAKE" make gmake gnumake ; do
3511                         if test -z "$a" ; then continue ; fi ;
3512                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3513                                 _cv_gnu_make_command=$a ;
3514                                 break;
3515                         fi
3516                 done ;
3517
3518 fi
3519 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3520 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3521         if test  "x$_cv_gnu_make_command" != "x"  ; then
3522                 ifGNUmake='' ;
3523         else
3524                 ifGNUmake='#' ;
3525                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3526 echo "${ECHO_T}\"Not found\"" >&6;
3527         fi
3528
3529
3530 if test -z "$_cv_gnu_make_command"
3531 then
3532         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3533 echo "$as_me: error: GNU Make required but not found" >&2;}
3534    { (exit 1); exit 1; }; }
3535 fi
3536
3537
3538 echo "$as_me:$LINENO: checking " >&5
3539 echo $ECHO_N "checking ... $ECHO_C" >&6
3540 if test "${ac_cv_has_flex+set}" = set; then
3541   echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543   for ac_prog in flex lex
3544 do
3545   # Extract the first word of "$ac_prog", so it can be a program name with args.
3546 set dummy $ac_prog; ac_word=$2
3547 echo "$as_me:$LINENO: checking for $ac_word" >&5
3548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3549 if test "${ac_cv_prog_LEX+set}" = set; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   if test -n "$LEX"; then
3553   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3554 else
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3557 do
3558   IFS=$as_save_IFS
3559   test -z "$as_dir" && as_dir=.
3560   for ac_exec_ext in '' $ac_executable_extensions; do
3561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3562     ac_cv_prog_LEX="$ac_prog"
3563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564     break 2
3565   fi
3566 done
3567 done
3568
3569 fi
3570 fi
3571 LEX=$ac_cv_prog_LEX
3572 if test -n "$LEX"; then
3573   echo "$as_me:$LINENO: result: $LEX" >&5
3574 echo "${ECHO_T}$LEX" >&6
3575 else
3576   echo "$as_me:$LINENO: result: no" >&5
3577 echo "${ECHO_T}no" >&6
3578 fi
3579
3580   test -n "$LEX" && break
3581 done
3582 test -n "$LEX" || LEX=":"
3583
3584 if test -z "$LEXLIB"
3585 then
3586   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3587 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3588 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3589   echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591   ac_check_lib_save_LIBS=$LIBS
3592 LIBS="-lfl  $LIBS"
3593 cat >conftest.$ac_ext <<_ACEOF
3594 #line $LINENO "configure"
3595 /* confdefs.h.  */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h.  */
3600
3601 /* Override any gcc2 internal prototype to avoid an error.  */
3602 #ifdef __cplusplus
3603 extern "C"
3604 #endif
3605 /* We use char because int might match the return type of a gcc2
3606    builtin and then its argument prototype would still apply.  */
3607 char yywrap ();
3608 int
3609 main ()
3610 {
3611 yywrap ();
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 rm -f conftest.$ac_objext conftest$ac_exeext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3618   (eval $ac_link) 2>&5
3619   ac_status=$?
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } &&
3622          { ac_try='test -s conftest$ac_exeext'
3623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624   (eval $ac_try) 2>&5
3625   ac_status=$?
3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); }; }; then
3628   ac_cv_lib_fl_yywrap=yes
3629 else
3630   echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3632
3633 ac_cv_lib_fl_yywrap=no
3634 fi
3635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3636 LIBS=$ac_check_lib_save_LIBS
3637 fi
3638 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3639 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3640 if test $ac_cv_lib_fl_yywrap = yes; then
3641   LEXLIB="-lfl"
3642 else
3643   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3644 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3645 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3646   echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648   ac_check_lib_save_LIBS=$LIBS
3649 LIBS="-ll  $LIBS"
3650 cat >conftest.$ac_ext <<_ACEOF
3651 #line $LINENO "configure"
3652 /* confdefs.h.  */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h.  */
3657
3658 /* Override any gcc2 internal prototype to avoid an error.  */
3659 #ifdef __cplusplus
3660 extern "C"
3661 #endif
3662 /* We use char because int might match the return type of a gcc2
3663    builtin and then its argument prototype would still apply.  */
3664 char yywrap ();
3665 int
3666 main ()
3667 {
3668 yywrap ();
3669   ;
3670   return 0;
3671 }
3672 _ACEOF
3673 rm -f conftest.$ac_objext conftest$ac_exeext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675   (eval $ac_link) 2>&5
3676   ac_status=$?
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); } &&
3679          { ac_try='test -s conftest$ac_exeext'
3680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681   (eval $ac_try) 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); }; }; then
3685   ac_cv_lib_l_yywrap=yes
3686 else
3687   echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690 ac_cv_lib_l_yywrap=no
3691 fi
3692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3693 LIBS=$ac_check_lib_save_LIBS
3694 fi
3695 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3696 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3697 if test $ac_cv_lib_l_yywrap = yes; then
3698   LEXLIB="-ll"
3699 fi
3700
3701 fi
3702
3703 fi
3704
3705 if test "x$LEX" != "x:"; then
3706   echo "$as_me:$LINENO: checking lex output file root" >&5
3707 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3708 if test "${ac_cv_prog_lex_root+set}" = set; then
3709   echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711   # The minimal lex program is just a single line: %%.  But some broken lexes
3712 # (Solaris, I think it was) want two %% lines, so accommodate them.
3713 cat >conftest.l <<_ACEOF
3714 %%
3715 %%
3716 _ACEOF
3717 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3718   (eval $LEX conftest.l) 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); }
3722 if test -f lex.yy.c; then
3723   ac_cv_prog_lex_root=lex.yy
3724 elif test -f lexyy.c; then
3725   ac_cv_prog_lex_root=lexyy
3726 else
3727   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3728 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3729    { (exit 1); exit 1; }; }
3730 fi
3731 fi
3732 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3733 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3734 rm -f conftest.l
3735 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3736
3737 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3738 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3739 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3740   echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742   # POSIX says lex can declare yytext either as a pointer or an array; the
3743 # default is implementation-dependent. Figure out which it is, since
3744 # not all implementations provide the %pointer and %array declarations.
3745 ac_cv_prog_lex_yytext_pointer=no
3746 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3747 ac_save_LIBS=$LIBS
3748 LIBS="$LIBS $LEXLIB"
3749 cat >conftest.$ac_ext <<_ACEOF
3750 `cat $LEX_OUTPUT_ROOT.c`
3751 _ACEOF
3752 rm -f conftest.$ac_objext conftest$ac_exeext
3753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3754   (eval $ac_link) 2>&5
3755   ac_status=$?
3756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757   (exit $ac_status); } &&
3758          { ac_try='test -s conftest$ac_exeext'
3759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760   (eval $ac_try) 2>&5
3761   ac_status=$?
3762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763   (exit $ac_status); }; }; then
3764   ac_cv_prog_lex_yytext_pointer=yes
3765 else
3766   echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3768
3769 fi
3770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3771 LIBS=$ac_save_LIBS
3772 rm -f "${LEX_OUTPUT_ROOT}.c"
3773
3774 fi
3775 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3776 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3777 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3778
3779 cat >>confdefs.h <<\_ACEOF
3780 #define YYTEXT_POINTER 1
3781 _ACEOF
3782
3783 fi
3784
3785 fi
3786
3787 fi
3788 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3789 echo "${ECHO_T}$ac_cv_has_flex" >&6
3790 if test "$LEX" != "flex"; then
3791   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3792 echo "$as_me: error: flex not found but required" >&2;}
3793    { (exit 1); exit 1; }; }
3794 fi
3795
3796 echo "$as_me:$LINENO: checking " >&5
3797 echo $ECHO_N "checking ... $ECHO_C" >&6
3798 if test "${ac_cv_has_bison+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   for ac_prog in 'bison -y' byacc
3802 do
3803   # Extract the first word of "$ac_prog", so it can be a program name with args.
3804 set dummy $ac_prog; ac_word=$2
3805 echo "$as_me:$LINENO: checking for $ac_word" >&5
3806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807 if test "${ac_cv_prog_YACC+set}" = set; then
3808   echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810   if test -n "$YACC"; then
3811   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816   IFS=$as_save_IFS
3817   test -z "$as_dir" && as_dir=.
3818   for ac_exec_ext in '' $ac_executable_extensions; do
3819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820     ac_cv_prog_YACC="$ac_prog"
3821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822     break 2
3823   fi
3824 done
3825 done
3826
3827 fi
3828 fi
3829 YACC=$ac_cv_prog_YACC
3830 if test -n "$YACC"; then
3831   echo "$as_me:$LINENO: result: $YACC" >&5
3832 echo "${ECHO_T}$YACC" >&6
3833 else
3834   echo "$as_me:$LINENO: result: no" >&5
3835 echo "${ECHO_T}no" >&6
3836 fi
3837
3838   test -n "$YACC" && break
3839 done
3840 test -n "$YACC" || YACC="yacc"
3841
3842
3843 fi
3844 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3845 echo "${ECHO_T}$ac_cv_has_bison" >&6
3846 if test "$YACC" != "bison -y"; then
3847   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3848 echo "$as_me: error: bison not found but required" >&2;}
3849    { (exit 1); exit 1; }; }
3850 else
3851   YACC=bison
3852
3853 fi
3854
3855
3856 # Check whether --enable-shared or --disable-shared was given.
3857 if test "${enable_shared+set}" = set; then
3858   enableval="$enable_shared"
3859   p=${PACKAGE-default}
3860     case $enableval in
3861     yes) enable_shared=yes ;;
3862     no) enable_shared=no ;;
3863     *)
3864       enable_shared=no
3865       # Look at the argument we got.  We use all the common list separators.
3866       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3867       for pkg in $enableval; do
3868         IFS="$lt_save_ifs"
3869         if test "X$pkg" = "X$p"; then
3870           enable_shared=yes
3871         fi
3872       done
3873       IFS="$lt_save_ifs"
3874       ;;
3875     esac
3876 else
3877   enable_shared=yes
3878 fi;
3879
3880 # Check whether --enable-static or --disable-static was given.
3881 if test "${enable_static+set}" = set; then
3882   enableval="$enable_static"
3883   p=${PACKAGE-default}
3884     case $enableval in
3885     yes) enable_static=yes ;;
3886     no) enable_static=no ;;
3887     *)
3888      enable_static=no
3889       # Look at the argument we got.  We use all the common list separators.
3890       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3891       for pkg in $enableval; do
3892         IFS="$lt_save_ifs"
3893         if test "X$pkg" = "X$p"; then
3894           enable_static=yes
3895         fi
3896       done
3897       IFS="$lt_save_ifs"
3898       ;;
3899     esac
3900 else
3901   enable_static=yes
3902 fi;
3903
3904 # Check whether --enable-fast-install or --disable-fast-install was given.
3905 if test "${enable_fast_install+set}" = set; then
3906   enableval="$enable_fast_install"
3907   p=${PACKAGE-default}
3908     case $enableval in
3909     yes) enable_fast_install=yes ;;
3910     no) enable_fast_install=no ;;
3911     *)
3912       enable_fast_install=no
3913       # Look at the argument we got.  We use all the common list separators.
3914       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3915       for pkg in $enableval; do
3916         IFS="$lt_save_ifs"
3917         if test "X$pkg" = "X$p"; then
3918           enable_fast_install=yes
3919         fi
3920       done
3921       IFS="$lt_save_ifs"
3922       ;;
3923     esac
3924 else
3925   enable_fast_install=yes
3926 fi;
3927
3928 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3929 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3930 if test "${lt_cv_path_SED+set}" = set; then
3931   echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933   # Loop through the user's path and test for sed and gsed.
3934 # Then use that list of sed's as ones to test for truncation.
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3937 do
3938   IFS=$as_save_IFS
3939   test -z "$as_dir" && as_dir=.
3940   for lt_ac_prog in sed gsed; do
3941     for ac_exec_ext in '' $ac_executable_extensions; do
3942       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3943         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3944       fi
3945     done
3946   done
3947 done
3948 lt_ac_max=0
3949 lt_ac_count=0
3950 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3951 # along with /bin/sed that truncates output.
3952 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3953   test ! -f $lt_ac_sed && break
3954   cat /dev/null > conftest.in
3955   lt_ac_count=0
3956   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3957   # Check for GNU sed and select it if it is found.
3958   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3959     lt_cv_path_SED=$lt_ac_sed
3960     break
3961   fi
3962   while true; do
3963     cat conftest.in conftest.in >conftest.tmp
3964     mv conftest.tmp conftest.in
3965     cp conftest.in conftest.nl
3966     echo >>conftest.nl
3967     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3968     cmp -s conftest.out conftest.nl || break
3969     # 10000 chars as input seems more than enough
3970     test $lt_ac_count -gt 10 && break
3971     lt_ac_count=`expr $lt_ac_count + 1`
3972     if test $lt_ac_count -gt $lt_ac_max; then
3973       lt_ac_max=$lt_ac_count
3974       lt_cv_path_SED=$lt_ac_sed
3975     fi
3976   done
3977 done
3978 SED=$lt_cv_path_SED
3979
3980 fi
3981
3982 echo "$as_me:$LINENO: result: $SED" >&5
3983 echo "${ECHO_T}$SED" >&6
3984
3985 echo "$as_me:$LINENO: checking for egrep" >&5
3986 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3987 if test "${ac_cv_prog_egrep+set}" = set; then
3988   echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3991     then ac_cv_prog_egrep='grep -E'
3992     else ac_cv_prog_egrep='egrep'
3993     fi
3994 fi
3995 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3996 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3997  EGREP=$ac_cv_prog_egrep
3998
3999
4000
4001 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4002 if test "${with_gnu_ld+set}" = set; then
4003   withval="$with_gnu_ld"
4004   test "$withval" = no || with_gnu_ld=yes
4005 else
4006   with_gnu_ld=no
4007 fi;
4008 ac_prog=ld
4009 if test "$GCC" = yes; then
4010   # Check if gcc -print-prog-name=ld gives a path.
4011   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4012 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4013   case $host in
4014   *-*-mingw*)
4015     # gcc leaves a trailing carriage return which upsets mingw
4016     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4017   *)
4018     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4019   esac
4020   case $ac_prog in
4021     # Accept absolute paths.
4022     [\\/]* | ?:[\\/]*)
4023       re_direlt='/[^/][^/]*/\.\./'
4024       # Canonicalize the path of ld
4025       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4026       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4027         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4028       done
4029       test -z "$LD" && LD="$ac_prog"
4030       ;;
4031   "")
4032     # If it fails, then pretend we aren't using GCC.
4033     ac_prog=ld
4034     ;;
4035   *)
4036     # If it is relative, then search for the first ld in PATH.
4037     with_gnu_ld=unknown
4038     ;;
4039   esac
4040 elif test "$with_gnu_ld" = yes; then
4041   echo "$as_me:$LINENO: checking for GNU ld" >&5
4042 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4043 else
4044   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4045 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4046 fi
4047 if test "${lt_cv_path_LD+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   if test -z "$LD"; then
4051   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4052   for ac_dir in $PATH; do
4053     IFS="$lt_save_ifs"
4054     test -z "$ac_dir" && ac_dir=.
4055     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4056       lt_cv_path_LD="$ac_dir/$ac_prog"
4057       # Check to see if the program is GNU ld.  I'd rather use --version,
4058       # but apparently some GNU ld's only accept -v.
4059       # Break only if it was the GNU/non-GNU ld that we prefer.
4060       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4061       *GNU* | *'with BFD'*)
4062         test "$with_gnu_ld" != no && break
4063         ;;
4064       *)
4065         test "$with_gnu_ld" != yes && break
4066         ;;
4067       esac
4068     fi
4069   done
4070   IFS="$lt_save_ifs"
4071 else
4072   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4073 fi
4074 fi
4075
4076 LD="$lt_cv_path_LD"
4077 if test -n "$LD"; then
4078   echo "$as_me:$LINENO: result: $LD" >&5
4079 echo "${ECHO_T}$LD" >&6
4080 else
4081   echo "$as_me:$LINENO: result: no" >&5
4082 echo "${ECHO_T}no" >&6
4083 fi
4084 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4085 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4086    { (exit 1); exit 1; }; }
4087 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4088 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4089 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4090   echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4093 case `"$LD" -v 2>&1 </dev/null` in
4094 *GNU* | *'with BFD'*)
4095   lt_cv_prog_gnu_ld=yes
4096   ;;
4097 *)
4098   lt_cv_prog_gnu_ld=no
4099   ;;
4100 esac
4101 fi
4102 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4103 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4104 with_gnu_ld=$lt_cv_prog_gnu_ld
4105
4106
4107 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4108 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4109 if test "${lt_cv_ld_reload_flag+set}" = set; then
4110   echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112   lt_cv_ld_reload_flag='-r'
4113 fi
4114 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4115 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4116 reload_flag=$lt_cv_ld_reload_flag
4117 case $reload_flag in
4118 "" | " "*) ;;
4119 *) reload_flag=" $reload_flag" ;;
4120 esac
4121 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4122
4123 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4124 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4125 if test "${lt_cv_path_NM+set}" = set; then
4126   echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128   if test -n "$NM"; then
4129   # Let the user override the test.
4130   lt_cv_path_NM="$NM"
4131 else
4132   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4133   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4134     IFS="$lt_save_ifs"
4135     test -z "$ac_dir" && ac_dir=.
4136     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4137     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4138       # Check to see if the nm accepts a BSD-compat flag.
4139       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4140       #   nm: unknown option "B" ignored
4141       # Tru64's nm complains that /dev/null is an invalid object file
4142       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4143       */dev/null* | *'Invalid file or object type'*)
4144         lt_cv_path_NM="$tmp_nm -B"
4145         break
4146         ;;
4147       *)
4148         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4149         */dev/null*)
4150           lt_cv_path_NM="$tmp_nm -p"
4151           break
4152           ;;
4153         *)
4154           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4155           continue # so that we can try to find one that supports BSD flags
4156           ;;
4157         esac
4158       esac
4159     fi
4160   done
4161   IFS="$lt_save_ifs"
4162   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4163 fi
4164 fi
4165 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4166 echo "${ECHO_T}$lt_cv_path_NM" >&6
4167 NM="$lt_cv_path_NM"
4168
4169 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4170 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4171 LN_S=$as_ln_s
4172 if test "$LN_S" = "ln -s"; then
4173   echo "$as_me:$LINENO: result: yes" >&5
4174 echo "${ECHO_T}yes" >&6
4175 else
4176   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4177 echo "${ECHO_T}no, using $LN_S" >&6
4178 fi
4179
4180 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4181 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4182 if test "${lt_cv_deplibs_check_method+set}" = set; then
4183   echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185   lt_cv_file_magic_cmd='$MAGIC_CMD'
4186 lt_cv_file_magic_test_file=
4187 lt_cv_deplibs_check_method='unknown'
4188 # Need to set the preceding variable on all platforms that support
4189 # interlibrary dependencies.
4190 # 'none' -- dependencies not supported.
4191 # `unknown' -- same as none, but documents that we really don't know.
4192 # 'pass_all' -- all dependencies passed with no checks.
4193 # 'test_compile' -- check by making test program.
4194 # 'file_magic [[regex]]' -- check by looking for files in library path
4195 # which responds to the $file_magic_cmd with a given extended regex.
4196 # If you have `file' or equivalent on your system and you're not sure
4197 # whether `pass_all' will *always* work, you probably want this one.
4198
4199 case $host_os in
4200 aix4* | aix5*)
4201   lt_cv_deplibs_check_method=pass_all
4202   ;;
4203
4204 beos*)
4205   lt_cv_deplibs_check_method=pass_all
4206   ;;
4207
4208 bsdi4*)
4209   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4210   lt_cv_file_magic_cmd='/usr/bin/file -L'
4211   lt_cv_file_magic_test_file=/shlib/libc.so
4212   ;;
4213
4214 cygwin* | mingw* | pw32*)
4215   # win32_libid is a shell function defined in ltmain.sh
4216   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4217   lt_cv_file_magic_cmd='win32_libid'
4218   ;;
4219
4220 darwin* | rhapsody*)
4221   # this will be overwritten by pass_all, but leave it in just in case
4222   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4223   lt_cv_file_magic_cmd='/usr/bin/file -L'
4224   case "$host_os" in
4225   rhapsody* | darwin1.[012])
4226     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4227     ;;
4228   *) # Darwin 1.3 on
4229     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4230     ;;
4231   esac
4232   lt_cv_deplibs_check_method=pass_all
4233   ;;
4234
4235 freebsd*)
4236   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4237     case $host_cpu in
4238     i*86 )
4239       # Not sure whether the presence of OpenBSD here was a mistake.
4240       # Let's accept both of them until this is cleared up.
4241       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4242       lt_cv_file_magic_cmd=/usr/bin/file
4243       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4244       ;;
4245     esac
4246   else
4247     lt_cv_deplibs_check_method=pass_all
4248   fi
4249   ;;
4250
4251 gnu*)
4252   lt_cv_deplibs_check_method=pass_all
4253   ;;
4254
4255 hpux10.20* | hpux11*)
4256   lt_cv_file_magic_cmd=/usr/bin/file
4257   case "$host_cpu" in
4258   ia64*)
4259     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4260     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4261     ;;
4262   hppa*64*)
4263     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]'
4264     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4265     ;;
4266   *)
4267     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4268     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4269     ;;
4270   esac
4271   ;;
4272
4273 irix5* | irix6* | nonstopux*)
4274   case $host_os in
4275   irix5* | nonstopux*)
4276     # this will be overridden with pass_all, but let us keep it just in case
4277     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4278     ;;
4279   *)
4280     case $LD in
4281     *-32|*"-32 ") libmagic=32-bit;;
4282     *-n32|*"-n32 ") libmagic=N32;;
4283     *-64|*"-64 ") libmagic=64-bit;;
4284     *) libmagic=never-match;;
4285     esac
4286     # this will be overridden with pass_all, but let us keep it just in case
4287     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4288     ;;
4289   esac
4290   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4291   lt_cv_deplibs_check_method=pass_all
4292   ;;
4293
4294 # This must be Linux ELF.
4295 linux*)
4296   case $host_cpu in
4297   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4298     lt_cv_deplibs_check_method=pass_all ;;
4299   *)
4300     # glibc up to 2.1.1 does not perform some relocations on ARM
4301     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4302   esac
4303   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4304   ;;
4305
4306 netbsd*)
4307   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4308     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4309   else
4310     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4311   fi
4312   ;;
4313
4314 newos6*)
4315   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4316   lt_cv_file_magic_cmd=/usr/bin/file
4317   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4318   ;;
4319
4320 nto-qnx)
4321   lt_cv_deplibs_check_method=unknown
4322   ;;
4323
4324 openbsd*)
4325   lt_cv_file_magic_cmd=/usr/bin/file
4326   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4327   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4328     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4329   else
4330     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4331   fi
4332   ;;
4333
4334 osf3* | osf4* | osf5*)
4335   # this will be overridden with pass_all, but let us keep it just in case
4336   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4337   lt_cv_file_magic_test_file=/shlib/libc.so
4338   lt_cv_deplibs_check_method=pass_all
4339   ;;
4340
4341 sco3.2v5*)
4342   lt_cv_deplibs_check_method=pass_all
4343   ;;
4344
4345 solaris*)
4346   lt_cv_deplibs_check_method=pass_all
4347   lt_cv_file_magic_test_file=/lib/libc.so
4348   ;;
4349
4350 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4351   case $host_vendor in
4352   motorola)
4353     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]'
4354     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4355     ;;
4356   ncr)
4357     lt_cv_deplibs_check_method=pass_all
4358     ;;
4359   sequent)
4360     lt_cv_file_magic_cmd='/bin/file'
4361     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4362     ;;
4363   sni)
4364     lt_cv_file_magic_cmd='/bin/file'
4365     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4366     lt_cv_file_magic_test_file=/lib/libc.so
4367     ;;
4368   siemens)
4369     lt_cv_deplibs_check_method=pass_all
4370     ;;
4371   esac
4372   ;;
4373
4374 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4375   lt_cv_deplibs_check_method=pass_all
4376   ;;
4377 esac
4378
4379 fi
4380 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4381 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4382 file_magic_cmd=$lt_cv_file_magic_cmd
4383 deplibs_check_method=$lt_cv_deplibs_check_method
4384 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4385
4386
4387
4388
4389 # If no C compiler was specified, use CC.
4390 LTCC=${LTCC-"$CC"}
4391
4392 # Allow CC to be a program name with arguments.
4393 compiler=$CC
4394
4395 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4396 if test "${enable_libtool_lock+set}" = set; then
4397   enableval="$enable_libtool_lock"
4398
4399 fi;
4400 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4401
4402 # Some flags need to be propagated to the compiler or linker for good
4403 # libtool support.
4404 case $host in
4405 ia64-*-hpux*)
4406   # Find out which ABI we are using.
4407   echo 'int i;' > conftest.$ac_ext
4408   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409   (eval $ac_compile) 2>&5
4410   ac_status=$?
4411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412   (exit $ac_status); }; then
4413     case `/usr/bin/file conftest.$ac_objext` in
4414     *ELF-32*)
4415       HPUX_IA64_MODE="32"
4416       ;;
4417     *ELF-64*)
4418       HPUX_IA64_MODE="64"
4419       ;;
4420     esac
4421   fi
4422   rm -rf conftest*
4423   ;;
4424 *-*-irix6*)
4425   # Find out which ABI we are using.
4426   echo '#line 4426 "configure"' > conftest.$ac_ext
4427   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4428   (eval $ac_compile) 2>&5
4429   ac_status=$?
4430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431   (exit $ac_status); }; then
4432    if test "$lt_cv_prog_gnu_ld" = yes; then
4433     case `/usr/bin/file conftest.$ac_objext` in
4434     *32-bit*)
4435       LD="${LD-ld} -melf32bsmip"
4436       ;;
4437     *N32*)
4438       LD="${LD-ld} -melf32bmipn32"
4439       ;;
4440     *64-bit*)
4441       LD="${LD-ld} -melf64bmip"
4442       ;;
4443     esac
4444    else
4445     case `/usr/bin/file conftest.$ac_objext` in
4446     *32-bit*)
4447       LD="${LD-ld} -32"
4448       ;;
4449     *N32*)
4450       LD="${LD-ld} -n32"
4451       ;;
4452     *64-bit*)
4453       LD="${LD-ld} -64"
4454       ;;
4455     esac
4456    fi
4457   fi
4458   rm -rf conftest*
4459   ;;
4460
4461 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4462   # Find out which ABI we are using.
4463   echo 'int i;' > conftest.$ac_ext
4464   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465   (eval $ac_compile) 2>&5
4466   ac_status=$?
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); }; then
4469     case "`/usr/bin/file conftest.o`" in
4470     *32-bit*)
4471       case $host in
4472         x86_64-*linux*)
4473           LD="${LD-ld} -m elf_i386"
4474           ;;
4475         ppc64-*linux*)
4476           LD="${LD-ld} -m elf32ppclinux"
4477           ;;
4478         s390x-*linux*)
4479           LD="${LD-ld} -m elf_s390"
4480           ;;
4481         sparc64-*linux*)
4482           LD="${LD-ld} -m elf32_sparc"
4483           ;;
4484       esac
4485       ;;
4486     *64-bit*)
4487       case $host in
4488         x86_64-*linux*)
4489           LD="${LD-ld} -m elf_x86_64"
4490           ;;
4491         ppc*-*linux*|powerpc*-*linux*)
4492           LD="${LD-ld} -m elf64ppc"
4493           ;;
4494         s390*-*linux*)
4495           LD="${LD-ld} -m elf64_s390"
4496           ;;
4497         sparc*-*linux*)
4498           LD="${LD-ld} -m elf64_sparc"
4499           ;;
4500       esac
4501       ;;
4502     esac
4503   fi
4504   rm -rf conftest*
4505   ;;
4506
4507 *-*-sco3.2v5*)
4508   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4509   SAVE_CFLAGS="$CFLAGS"
4510   CFLAGS="$CFLAGS -belf"
4511   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4512 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4513 if test "${lt_cv_cc_needs_belf+set}" = set; then
4514   echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516   ac_ext=c
4517 ac_cpp='$CPP $CPPFLAGS'
4518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521
4522      cat >conftest.$ac_ext <<_ACEOF
4523 #line $LINENO "configure"
4524 /* confdefs.h.  */
4525 _ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h.  */
4529
4530 int
4531 main ()
4532 {
4533
4534   ;
4535   return 0;
4536 }
4537 _ACEOF
4538 rm -f conftest.$ac_objext conftest$ac_exeext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540   (eval $ac_link) 2>&5
4541   ac_status=$?
4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); } &&
4544          { ac_try='test -s conftest$ac_exeext'
4545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546   (eval $ac_try) 2>&5
4547   ac_status=$?
4548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549   (exit $ac_status); }; }; then
4550   lt_cv_cc_needs_belf=yes
4551 else
4552   echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4554
4555 lt_cv_cc_needs_belf=no
4556 fi
4557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4558      ac_ext=c
4559 ac_cpp='$CPP $CPPFLAGS'
4560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563
4564 fi
4565 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4566 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4567   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4568     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4569     CFLAGS="$SAVE_CFLAGS"
4570   fi
4571   ;;
4572
4573 esac
4574
4575 need_locks="$enable_libtool_lock"
4576
4577
4578
4579 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4580 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4581 if test "${ac_cv_header_stdc+set}" = set; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584   cat >conftest.$ac_ext <<_ACEOF
4585 #line $LINENO "configure"
4586 /* confdefs.h.  */
4587 _ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h.  */
4591 #include <stdlib.h>
4592 #include <stdarg.h>
4593 #include <string.h>
4594 #include <float.h>
4595
4596 int
4597 main ()
4598 {
4599
4600   ;
4601   return 0;
4602 }
4603 _ACEOF
4604 rm -f conftest.$ac_objext
4605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4606   (eval $ac_compile) 2>&5
4607   ac_status=$?
4608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609   (exit $ac_status); } &&
4610          { ac_try='test -s conftest.$ac_objext'
4611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612   (eval $ac_try) 2>&5
4613   ac_status=$?
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); }; }; then
4616   ac_cv_header_stdc=yes
4617 else
4618   echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4620
4621 ac_cv_header_stdc=no
4622 fi
4623 rm -f conftest.$ac_objext conftest.$ac_ext
4624
4625 if test $ac_cv_header_stdc = yes; then
4626   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4627   cat >conftest.$ac_ext <<_ACEOF
4628 #line $LINENO "configure"
4629 /* confdefs.h.  */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h.  */
4634 #include <string.h>
4635
4636 _ACEOF
4637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4638   $EGREP "memchr" >/dev/null 2>&1; then
4639   :
4640 else
4641   ac_cv_header_stdc=no
4642 fi
4643 rm -f conftest*
4644
4645 fi
4646
4647 if test $ac_cv_header_stdc = yes; then
4648   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4649   cat >conftest.$ac_ext <<_ACEOF
4650 #line $LINENO "configure"
4651 /* confdefs.h.  */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h.  */
4656 #include <stdlib.h>
4657
4658 _ACEOF
4659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4660   $EGREP "free" >/dev/null 2>&1; then
4661   :
4662 else
4663   ac_cv_header_stdc=no
4664 fi
4665 rm -f conftest*
4666
4667 fi
4668
4669 if test $ac_cv_header_stdc = yes; then
4670   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4671   if test "$cross_compiling" = yes; then
4672   :
4673 else
4674   cat >conftest.$ac_ext <<_ACEOF
4675 #line $LINENO "configure"
4676 /* confdefs.h.  */
4677 _ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h.  */
4681 #include <ctype.h>
4682 #if ((' ' & 0x0FF) == 0x020)
4683 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4684 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4685 #else
4686 # define ISLOWER(c) \
4687                    (('a' <= (c) && (c) <= 'i') \
4688                      || ('j' <= (c) && (c) <= 'r') \
4689                      || ('s' <= (c) && (c) <= 'z'))
4690 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4691 #endif
4692
4693 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4694 int
4695 main ()
4696 {
4697   int i;
4698   for (i = 0; i < 256; i++)
4699     if (XOR (islower (i), ISLOWER (i))
4700         || toupper (i) != TOUPPER (i))
4701       exit(2);
4702   exit (0);
4703 }
4704 _ACEOF
4705 rm -f conftest$ac_exeext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4707   (eval $ac_link) 2>&5
4708   ac_status=$?
4709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712   (eval $ac_try) 2>&5
4713   ac_status=$?
4714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715   (exit $ac_status); }; }; then
4716   :
4717 else
4718   echo "$as_me: program exited with status $ac_status" >&5
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4721
4722 ( exit $ac_status )
4723 ac_cv_header_stdc=no
4724 fi
4725 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4726 fi
4727 fi
4728 fi
4729 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4730 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4731 if test $ac_cv_header_stdc = yes; then
4732
4733 cat >>confdefs.h <<\_ACEOF
4734 #define STDC_HEADERS 1
4735 _ACEOF
4736
4737 fi
4738
4739 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4750                   inttypes.h stdint.h unistd.h
4751 do
4752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4753 echo "$as_me:$LINENO: checking for $ac_header" >&5
4754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4756   echo $ECHO_N "(cached) $ECHO_C" >&6
4757 else
4758   cat >conftest.$ac_ext <<_ACEOF
4759 #line $LINENO "configure"
4760 /* confdefs.h.  */
4761 _ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h.  */
4765 $ac_includes_default
4766
4767 #include <$ac_header>
4768 _ACEOF
4769 rm -f conftest.$ac_objext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771   (eval $ac_compile) 2>&5
4772   ac_status=$?
4773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774   (exit $ac_status); } &&
4775          { ac_try='test -s conftest.$ac_objext'
4776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777   (eval $ac_try) 2>&5
4778   ac_status=$?
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); }; }; then
4781   eval "$as_ac_Header=yes"
4782 else
4783   echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4785
4786 eval "$as_ac_Header=no"
4787 fi
4788 rm -f conftest.$ac_objext conftest.$ac_ext
4789 fi
4790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4793   cat >>confdefs.h <<_ACEOF
4794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4795 _ACEOF
4796
4797 fi
4798
4799 done
4800
4801
4802
4803 for ac_header in dlfcn.h
4804 do
4805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4807   echo "$as_me:$LINENO: checking for $ac_header" >&5
4808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4810   echo $ECHO_N "(cached) $ECHO_C" >&6
4811 fi
4812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4814 else
4815   # Is the header compilable?
4816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4818 cat >conftest.$ac_ext <<_ACEOF
4819 #line $LINENO "configure"
4820 /* confdefs.h.  */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h.  */
4825 $ac_includes_default
4826 #include <$ac_header>
4827 _ACEOF
4828 rm -f conftest.$ac_objext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830   (eval $ac_compile) 2>&5
4831   ac_status=$?
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); } &&
4834          { ac_try='test -s conftest.$ac_objext'
4835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836   (eval $ac_try) 2>&5
4837   ac_status=$?
4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); }; }; then
4840   ac_header_compiler=yes
4841 else
4842   echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4844
4845 ac_header_compiler=no
4846 fi
4847 rm -f conftest.$ac_objext conftest.$ac_ext
4848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4849 echo "${ECHO_T}$ac_header_compiler" >&6
4850
4851 # Is the header present?
4852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4854 cat >conftest.$ac_ext <<_ACEOF
4855 #line $LINENO "configure"
4856 /* confdefs.h.  */
4857 _ACEOF
4858 cat confdefs.h >>conftest.$ac_ext
4859 cat >>conftest.$ac_ext <<_ACEOF
4860 /* end confdefs.h.  */
4861 #include <$ac_header>
4862 _ACEOF
4863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4864   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4865   ac_status=$?
4866   grep -v '^ *+' conftest.er1 >conftest.err
4867   rm -f conftest.er1
4868   cat conftest.err >&5
4869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870   (exit $ac_status); } >/dev/null; then
4871   if test -s conftest.err; then
4872     ac_cpp_err=$ac_c_preproc_warn_flag
4873   else
4874     ac_cpp_err=
4875   fi
4876 else
4877   ac_cpp_err=yes
4878 fi
4879 if test -z "$ac_cpp_err"; then
4880   ac_header_preproc=yes
4881 else
4882   echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.$ac_ext >&5
4884
4885   ac_header_preproc=no
4886 fi
4887 rm -f conftest.err conftest.$ac_ext
4888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4889 echo "${ECHO_T}$ac_header_preproc" >&6
4890
4891 # So?  What about this header?
4892 case $ac_header_compiler:$ac_header_preproc in
4893   yes:no )
4894     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4898     (
4899       cat <<\_ASBOX
4900 ## ------------------------------------ ##
4901 ## Report this to bug-autoconf@gnu.org. ##
4902 ## ------------------------------------ ##
4903 _ASBOX
4904     ) |
4905       sed "s/^/$as_me: WARNING:     /" >&2
4906     ;;
4907   no:yes )
4908     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4910     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4914     (
4915       cat <<\_ASBOX
4916 ## ------------------------------------ ##
4917 ## Report this to bug-autoconf@gnu.org. ##
4918 ## ------------------------------------ ##
4919 _ASBOX
4920     ) |
4921       sed "s/^/$as_me: WARNING:     /" >&2
4922     ;;
4923 esac
4924 echo "$as_me:$LINENO: checking for $ac_header" >&5
4925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4927   echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929   eval "$as_ac_Header=$ac_header_preproc"
4930 fi
4931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4933
4934 fi
4935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4936   cat >>confdefs.h <<_ACEOF
4937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4938 _ACEOF
4939
4940 fi
4941
4942 done
4943
4944 ac_ext=cc
4945 ac_cpp='$CXXCPP $CPPFLAGS'
4946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4949 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4950 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4951 if test -z "$CXXCPP"; then
4952   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4953   echo $ECHO_N "(cached) $ECHO_C" >&6
4954 else
4955       # Double quotes because CXXCPP needs to be expanded
4956     for CXXCPP in "$CXX -E" "/lib/cpp"
4957     do
4958       ac_preproc_ok=false
4959 for ac_cxx_preproc_warn_flag in '' yes
4960 do
4961   # Use a header file that comes with gcc, so configuring glibc
4962   # with a fresh cross-compiler works.
4963   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4964   # <limits.h> exists even on freestanding compilers.
4965   # On the NeXT, cc -E runs the code through the compiler's parser,
4966   # not just through cpp. "Syntax error" is here to catch this case.
4967   cat >conftest.$ac_ext <<_ACEOF
4968 #line $LINENO "configure"
4969 /* confdefs.h.  */
4970 _ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h.  */
4974 #ifdef __STDC__
4975 # include <limits.h>
4976 #else
4977 # include <assert.h>
4978 #endif
4979                      Syntax error
4980 _ACEOF
4981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4982   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4983   ac_status=$?
4984   grep -v '^ *+' conftest.er1 >conftest.err
4985   rm -f conftest.er1
4986   cat conftest.err >&5
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); } >/dev/null; then
4989   if test -s conftest.err; then
4990     ac_cpp_err=$ac_cxx_preproc_warn_flag
4991   else
4992     ac_cpp_err=
4993   fi
4994 else
4995   ac_cpp_err=yes
4996 fi
4997 if test -z "$ac_cpp_err"; then
4998   :
4999 else
5000   echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5002
5003   # Broken: fails on valid input.
5004 continue
5005 fi
5006 rm -f conftest.err conftest.$ac_ext
5007
5008   # OK, works on sane cases.  Now check whether non-existent headers
5009   # can be detected and how.
5010   cat >conftest.$ac_ext <<_ACEOF
5011 #line $LINENO "configure"
5012 /* confdefs.h.  */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h.  */
5017 #include <ac_nonexistent.h>
5018 _ACEOF
5019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5021   ac_status=$?
5022   grep -v '^ *+' conftest.er1 >conftest.err
5023   rm -f conftest.er1
5024   cat conftest.err >&5
5025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026   (exit $ac_status); } >/dev/null; then
5027   if test -s conftest.err; then
5028     ac_cpp_err=$ac_cxx_preproc_warn_flag
5029   else
5030     ac_cpp_err=
5031   fi
5032 else
5033   ac_cpp_err=yes
5034 fi
5035 if test -z "$ac_cpp_err"; then
5036   # Broken: success on invalid input.
5037 continue
5038 else
5039   echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5041
5042   # Passes both tests.
5043 ac_preproc_ok=:
5044 break
5045 fi
5046 rm -f conftest.err conftest.$ac_ext
5047
5048 done
5049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5050 rm -f conftest.err conftest.$ac_ext
5051 if $ac_preproc_ok; then
5052   break
5053 fi
5054
5055     done
5056     ac_cv_prog_CXXCPP=$CXXCPP
5057
5058 fi
5059   CXXCPP=$ac_cv_prog_CXXCPP
5060 else
5061   ac_cv_prog_CXXCPP=$CXXCPP
5062 fi
5063 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5064 echo "${ECHO_T}$CXXCPP" >&6
5065 ac_preproc_ok=false
5066 for ac_cxx_preproc_warn_flag in '' yes
5067 do
5068   # Use a header file that comes with gcc, so configuring glibc
5069   # with a fresh cross-compiler works.
5070   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5071   # <limits.h> exists even on freestanding compilers.
5072   # On the NeXT, cc -E runs the code through the compiler's parser,
5073   # not just through cpp. "Syntax error" is here to catch this case.
5074   cat >conftest.$ac_ext <<_ACEOF
5075 #line $LINENO "configure"
5076 /* confdefs.h.  */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h.  */
5081 #ifdef __STDC__
5082 # include <limits.h>
5083 #else
5084 # include <assert.h>
5085 #endif
5086                      Syntax error
5087 _ACEOF
5088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5089   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5090   ac_status=$?
5091   grep -v '^ *+' conftest.er1 >conftest.err
5092   rm -f conftest.er1
5093   cat conftest.err >&5
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); } >/dev/null; then
5096   if test -s conftest.err; then
5097     ac_cpp_err=$ac_cxx_preproc_warn_flag
5098   else
5099     ac_cpp_err=
5100   fi
5101 else
5102   ac_cpp_err=yes
5103 fi
5104 if test -z "$ac_cpp_err"; then
5105   :
5106 else
5107   echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5109
5110   # Broken: fails on valid input.
5111 continue
5112 fi
5113 rm -f conftest.err conftest.$ac_ext
5114
5115   # OK, works on sane cases.  Now check whether non-existent headers
5116   # can be detected and how.
5117   cat >conftest.$ac_ext <<_ACEOF
5118 #line $LINENO "configure"
5119 /* confdefs.h.  */
5120 _ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h.  */
5124 #include <ac_nonexistent.h>
5125 _ACEOF
5126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5127   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5128   ac_status=$?
5129   grep -v '^ *+' conftest.er1 >conftest.err
5130   rm -f conftest.er1
5131   cat conftest.err >&5
5132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133   (exit $ac_status); } >/dev/null; then
5134   if test -s conftest.err; then
5135     ac_cpp_err=$ac_cxx_preproc_warn_flag
5136   else
5137     ac_cpp_err=
5138   fi
5139 else
5140   ac_cpp_err=yes
5141 fi
5142 if test -z "$ac_cpp_err"; then
5143   # Broken: success on invalid input.
5144 continue
5145 else
5146   echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5148
5149   # Passes both tests.
5150 ac_preproc_ok=:
5151 break
5152 fi
5153 rm -f conftest.err conftest.$ac_ext
5154
5155 done
5156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5157 rm -f conftest.err conftest.$ac_ext
5158 if $ac_preproc_ok; then
5159   :
5160 else
5161   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5162 See \`config.log' for more details." >&5
5163 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5164 See \`config.log' for more details." >&2;}
5165    { (exit 1); exit 1; }; }
5166 fi
5167
5168 ac_ext=cc
5169 ac_cpp='$CXXCPP $CPPFLAGS'
5170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5173
5174
5175 ac_ext=f
5176 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5177 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5179 if test -n "$ac_tool_prefix"; then
5180   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5181   do
5182     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5184 echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186 if test "${ac_cv_prog_F77+set}" = set; then
5187   echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189   if test -n "$F77"; then
5190   ac_cv_prog_F77="$F77" # Let the user override the test.
5191 else
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197   for ac_exec_ext in '' $ac_executable_extensions; do
5198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201     break 2
5202   fi
5203 done
5204 done
5205
5206 fi
5207 fi
5208 F77=$ac_cv_prog_F77
5209 if test -n "$F77"; then
5210   echo "$as_me:$LINENO: result: $F77" >&5
5211 echo "${ECHO_T}$F77" >&6
5212 else
5213   echo "$as_me:$LINENO: result: no" >&5
5214 echo "${ECHO_T}no" >&6
5215 fi
5216
5217     test -n "$F77" && break
5218   done
5219 fi
5220 if test -z "$F77"; then
5221   ac_ct_F77=$F77
5222   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5223 do
5224   # Extract the first word of "$ac_prog", so it can be a program name with args.
5225 set dummy $ac_prog; ac_word=$2
5226 echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5229   echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231   if test -n "$ac_ct_F77"; then
5232   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237   IFS=$as_save_IFS
5238   test -z "$as_dir" && as_dir=.
5239   for ac_exec_ext in '' $ac_executable_extensions; do
5240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241     ac_cv_prog_ac_ct_F77="$ac_prog"
5242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243     break 2
5244   fi
5245 done
5246 done
5247
5248 fi
5249 fi
5250 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5251 if test -n "$ac_ct_F77"; then
5252   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5253 echo "${ECHO_T}$ac_ct_F77" >&6
5254 else
5255   echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6
5257 fi
5258
5259   test -n "$ac_ct_F77" && break
5260 done
5261
5262   F77=$ac_ct_F77
5263 fi
5264
5265
5266 # Provide some information about the compiler.
5267 echo "$as_me:5267:" \
5268      "checking for Fortran 77 compiler version" >&5
5269 ac_compiler=`set X $ac_compile; echo $2`
5270 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5271   (eval $ac_compiler --version </dev/null >&5) 2>&5
5272   ac_status=$?
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); }
5275 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5276   (eval $ac_compiler -v </dev/null >&5) 2>&5
5277   ac_status=$?
5278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279   (exit $ac_status); }
5280 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5281   (eval $ac_compiler -V </dev/null >&5) 2>&5
5282   ac_status=$?
5283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); }
5285
5286 # If we don't use `.F' as extension, the preprocessor is not run on the
5287 # input file.
5288 ac_save_ext=$ac_ext
5289 ac_ext=F
5290 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5291 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5292 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5293   echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295   cat >conftest.$ac_ext <<_ACEOF
5296       program main
5297 #ifndef __GNUC__
5298        choke me
5299 #endif
5300
5301       end
5302 _ACEOF
5303 rm -f conftest.$ac_objext
5304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5305   (eval $ac_compile) 2>&5
5306   ac_status=$?
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); } &&
5309          { ac_try='test -s conftest.$ac_objext'
5310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311   (eval $ac_try) 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); }; }; then
5315   ac_compiler_gnu=yes
5316 else
5317   echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5319
5320 ac_compiler_gnu=no
5321 fi
5322 rm -f conftest.$ac_objext conftest.$ac_ext
5323 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5324
5325 fi
5326 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5327 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5328 ac_ext=$ac_save_ext
5329 G77=`test $ac_compiler_gnu = yes && echo yes`
5330 ac_test_FFLAGS=${FFLAGS+set}
5331 ac_save_FFLAGS=$FFLAGS
5332 FFLAGS=
5333 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5334 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5335 if test "${ac_cv_prog_f77_g+set}" = set; then
5336   echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338   FFLAGS=-g
5339 cat >conftest.$ac_ext <<_ACEOF
5340       program main
5341
5342       end
5343 _ACEOF
5344 rm -f conftest.$ac_objext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346   (eval $ac_compile) 2>&5
5347   ac_status=$?
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); } &&
5350          { ac_try='test -s conftest.$ac_objext'
5351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352   (eval $ac_try) 2>&5
5353   ac_status=$?
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); }; }; then
5356   ac_cv_prog_f77_g=yes
5357 else
5358   echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5360
5361 ac_cv_prog_f77_g=no
5362 fi
5363 rm -f conftest.$ac_objext conftest.$ac_ext
5364
5365 fi
5366 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5367 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5368 if test "$ac_test_FFLAGS" = set; then
5369   FFLAGS=$ac_save_FFLAGS
5370 elif test $ac_cv_prog_f77_g = yes; then
5371   if test "$G77" = yes; then
5372     FFLAGS="-g -O2"
5373   else
5374     FFLAGS="-g"
5375   fi
5376 else
5377   if test "$G77" = yes; then
5378     FFLAGS="-O2"
5379   else
5380     FFLAGS=
5381   fi
5382 fi
5383 ac_ext=c
5384 ac_cpp='$CPP $CPPFLAGS'
5385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388
5389
5390
5391 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5392
5393 # find the maximum length of command line arguments
5394 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5395 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5396 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5397   echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399     i=0
5400   testring="ABCD"
5401
5402   case $build_os in
5403   msdosdjgpp*)
5404     # On DJGPP, this test can blow up pretty badly due to problems in libc
5405     # (any single argument exceeding 2000 bytes causes a buffer overrun
5406     # during glob expansion).  Even if it were fixed, the result of this
5407     # check would be larger than it should be.
5408     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5409     ;;
5410
5411   gnu*)
5412     # Under GNU Hurd, this test is not required because there is
5413     # no limit to the length of command line arguments.
5414     # Libtool will interpret -1 as no limit whatsoever
5415     lt_cv_sys_max_cmd_len=-1;
5416     ;;
5417
5418   cygwin* | mingw*)
5419     # On Win9x/ME, this test blows up -- it succeeds, but takes
5420     # about 5 minutes as the teststring grows exponentially.
5421     # Worse, since 9x/ME are not pre-emptively multitasking,
5422     # you end up with a "frozen" computer, even though with patience
5423     # the test eventually succeeds (with a max line length of 256k).
5424     # Instead, let's just punt: use the minimum linelength reported by
5425     # all of the supported platforms: 8192 (on NT/2K/XP).
5426     lt_cv_sys_max_cmd_len=8192;
5427     ;;
5428
5429  *)
5430     # If test is not a shell built-in, we'll probably end up computing a
5431     # maximum length that is only half of the actual maximum length, but
5432     # we can't tell.
5433     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5434                = "XX$testring") >/dev/null 2>&1 &&
5435             new_result=`expr "X$testring" : ".*" 2>&1` &&
5436             lt_cv_sys_max_cmd_len=$new_result &&
5437             test $i != 17 # 1/2 MB should be enough
5438     do
5439       i=`expr $i + 1`
5440       testring=$testring$testring
5441     done
5442     testring=
5443     # Add a significant safety factor because C++ compilers can tack on massive
5444     # amounts of additional arguments before passing them to the linker.
5445     # It appears as though 1/2 is a usable value.
5446     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5447     ;;
5448   esac
5449
5450 fi
5451
5452 if test -n $lt_cv_sys_max_cmd_len ; then
5453   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5454 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5455 else
5456   echo "$as_me:$LINENO: result: none" >&5
5457 echo "${ECHO_T}none" >&6
5458 fi
5459
5460
5461
5462
5463 # Check for command to grab the raw symbol name followed by C symbol from nm.
5464 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5465 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5466 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5467   echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469
5470 # These are sane defaults that work on at least a few old systems.
5471 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5472
5473 # Character class describing NM global symbol codes.
5474 symcode='[BCDEGRST]'
5475
5476 # Regexp to match symbols that can be accessed directly from C.
5477 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5478
5479 # Transform the above into a raw symbol and a C symbol.
5480 symxfrm='\1 \2\3 \3'
5481
5482 # Transform an extracted symbol line into a proper C declaration
5483 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5484
5485 # Transform an extracted symbol line into symbol name and symbol address
5486 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'"
5487
5488 # Define system-specific variables.
5489 case $host_os in
5490 aix*)
5491   symcode='[BCDT]'
5492   ;;
5493 cygwin* | mingw* | pw32*)
5494   symcode='[ABCDGISTW]'
5495   ;;
5496 hpux*) # Its linker distinguishes data from code symbols
5497   if test "$host_cpu" = ia64; then
5498     symcode='[ABCDEGRST]'
5499   fi
5500   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5501   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'"
5502   ;;
5503 irix* | nonstopux*)
5504   symcode='[BCDEGRST]'
5505   ;;
5506 osf*)
5507   symcode='[BCDEGQRST]'
5508   ;;
5509 solaris* | sysv5*)
5510   symcode='[BDT]'
5511   ;;
5512 sysv4)
5513   symcode='[DFNSTU]'
5514   ;;
5515 esac
5516
5517 # Handle CRLF in mingw tool chain
5518 opt_cr=
5519 case $build_os in
5520 mingw*)
5521   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5522   ;;
5523 esac
5524
5525 # If we're using GNU nm, then use its standard symbol codes.
5526 case `$NM -V 2>&1` in
5527 *GNU* | *'with BFD'*)
5528   symcode='[ABCDGISTW]' ;;
5529 esac
5530
5531 # Try without a prefix undercore, then with it.
5532 for ac_symprfx in "" "_"; do
5533
5534   # Write the raw and C identifiers.
5535   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5536
5537   # Check to see that the pipe works correctly.
5538   pipe_works=no
5539
5540   rm -f conftest*
5541   cat > conftest.$ac_ext <<EOF
5542 #ifdef __cplusplus
5543 extern "C" {
5544 #endif
5545 char nm_test_var;
5546 void nm_test_func(){}
5547 #ifdef __cplusplus
5548 }
5549 #endif
5550 int main(){nm_test_var='a';nm_test_func();return(0);}
5551 EOF
5552
5553   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5554   (eval $ac_compile) 2>&5
5555   ac_status=$?
5556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557   (exit $ac_status); }; then
5558     # Now try to grab the symbols.
5559     nlist=conftest.nm
5560     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5561   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5562   ac_status=$?
5563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564   (exit $ac_status); } && test -s "$nlist"; then
5565       # Try sorting and uniquifying the output.
5566       if sort "$nlist" | uniq > "$nlist"T; then
5567         mv -f "$nlist"T "$nlist"
5568       else
5569         rm -f "$nlist"T
5570       fi
5571
5572       # Make sure that we snagged all the symbols we need.
5573       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5574         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5575           cat <<EOF > conftest.$ac_ext
5576 #ifdef __cplusplus
5577 extern "C" {
5578 #endif
5579
5580 EOF
5581           # Now generate the symbol file.
5582           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5583
5584           cat <<EOF >> conftest.$ac_ext
5585 #if defined (__STDC__) && __STDC__
5586 # define lt_ptr_t void *
5587 #else
5588 # define lt_ptr_t char *
5589 # define const
5590 #endif
5591
5592 /* The mapping between symbol names and symbols. */
5593 const struct {
5594   const char *name;
5595   lt_ptr_t address;
5596 }
5597 lt_preloaded_symbols[] =
5598 {
5599 EOF
5600           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5601           cat <<\EOF >> conftest.$ac_ext
5602   {0, (lt_ptr_t) 0}
5603 };
5604
5605 #ifdef __cplusplus
5606 }
5607 #endif
5608 EOF
5609           # Now try linking the two files.
5610           mv conftest.$ac_objext conftstm.$ac_objext
5611           lt_save_LIBS="$LIBS"
5612           lt_save_CFLAGS="$CFLAGS"
5613           LIBS="conftstm.$ac_objext"
5614           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5615           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5616   (eval $ac_link) 2>&5
5617   ac_status=$?
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5620             pipe_works=yes
5621           fi
5622           LIBS="$lt_save_LIBS"
5623           CFLAGS="$lt_save_CFLAGS"
5624         else
5625           echo "cannot find nm_test_func in $nlist" >&5
5626         fi
5627       else
5628         echo "cannot find nm_test_var in $nlist" >&5
5629       fi
5630     else
5631       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5632     fi
5633   else
5634     echo "$progname: failed program was:" >&5
5635     cat conftest.$ac_ext >&5
5636   fi
5637   rm -f conftest* conftst*
5638
5639   # Do not use the global_symbol_pipe unless it works.
5640   if test "$pipe_works" = yes; then
5641     break
5642   else
5643     lt_cv_sys_global_symbol_pipe=
5644   fi
5645 done
5646
5647 fi
5648
5649 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5650   lt_cv_sys_global_symbol_to_cdecl=
5651 fi
5652 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5653   echo "$as_me:$LINENO: result: failed" >&5
5654 echo "${ECHO_T}failed" >&6
5655 else
5656   echo "$as_me:$LINENO: result: ok" >&5
5657 echo "${ECHO_T}ok" >&6
5658 fi
5659
5660 echo "$as_me:$LINENO: checking for objdir" >&5
5661 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5662 if test "${lt_cv_objdir+set}" = set; then
5663   echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665   rm -f .libs 2>/dev/null
5666 mkdir .libs 2>/dev/null
5667 if test -d .libs; then
5668   lt_cv_objdir=.libs
5669 else
5670   # MS-DOS does not allow filenames that begin with a dot.
5671   lt_cv_objdir=_libs
5672 fi
5673 rmdir .libs 2>/dev/null
5674 fi
5675 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5676 echo "${ECHO_T}$lt_cv_objdir" >&6
5677 objdir=$lt_cv_objdir
5678
5679
5680
5681
5682
5683 case $host_os in
5684 aix3*)
5685   # AIX sometimes has problems with the GCC collect2 program.  For some
5686   # reason, if we set the COLLECT_NAMES environment variable, the problems
5687   # vanish in a puff of smoke.
5688   if test "X${COLLECT_NAMES+set}" != Xset; then
5689     COLLECT_NAMES=
5690     export COLLECT_NAMES
5691   fi
5692   ;;
5693 esac
5694
5695 # Sed substitution that helps us do robust quoting.  It backslashifies
5696 # metacharacters that are still active within double-quoted strings.
5697 Xsed='sed -e s/^X//'
5698 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5699
5700 # Same as above, but do not quote variable references.
5701 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5702
5703 # Sed substitution to delay expansion of an escaped shell variable in a
5704 # double_quote_subst'ed string.
5705 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5706
5707 # Sed substitution to avoid accidental globbing in evaled expressions
5708 no_glob_subst='s/\*/\\\*/g'
5709
5710 # Constants:
5711 rm="rm -f"
5712
5713 # Global variables:
5714 default_ofile=mklib
5715 can_build_shared=yes
5716
5717 # All known linkers require a `.a' archive for static linking (except M$VC,
5718 # which needs '.lib').
5719 libext=a
5720 ltmain="$ac_aux_dir/ltmain.sh"
5721 ofile="$default_ofile"
5722 with_gnu_ld="$lt_cv_prog_gnu_ld"
5723
5724 if test -n "$ac_tool_prefix"; then
5725   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5726 set dummy ${ac_tool_prefix}ar; ac_word=$2
5727 echo "$as_me:$LINENO: checking for $ac_word" >&5
5728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5729 if test "${ac_cv_prog_AR+set}" = set; then
5730   echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732   if test -n "$AR"; then
5733   ac_cv_prog_AR="$AR" # Let the user override the test.
5734 else
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738   IFS=$as_save_IFS
5739   test -z "$as_dir" && as_dir=.
5740   for ac_exec_ext in '' $ac_executable_extensions; do
5741   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742     ac_cv_prog_AR="${ac_tool_prefix}ar"
5743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5744     break 2
5745   fi
5746 done
5747 done
5748
5749 fi
5750 fi
5751 AR=$ac_cv_prog_AR
5752 if test -n "$AR"; then
5753   echo "$as_me:$LINENO: result: $AR" >&5
5754 echo "${ECHO_T}$AR" >&6
5755 else
5756   echo "$as_me:$LINENO: result: no" >&5
5757 echo "${ECHO_T}no" >&6
5758 fi
5759
5760 fi
5761 if test -z "$ac_cv_prog_AR"; then
5762   ac_ct_AR=$AR
5763   # Extract the first word of "ar", so it can be a program name with args.
5764 set dummy ar; ac_word=$2
5765 echo "$as_me:$LINENO: checking for $ac_word" >&5
5766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5767 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5768   echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770   if test -n "$ac_ct_AR"; then
5771   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5772 else
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH
5775 do
5776   IFS=$as_save_IFS
5777   test -z "$as_dir" && as_dir=.
5778   for ac_exec_ext in '' $ac_executable_extensions; do
5779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780     ac_cv_prog_ac_ct_AR="ar"
5781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5782     break 2
5783   fi
5784 done
5785 done
5786
5787   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5788 fi
5789 fi
5790 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5791 if test -n "$ac_ct_AR"; then
5792   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5793 echo "${ECHO_T}$ac_ct_AR" >&6
5794 else
5795   echo "$as_me:$LINENO: result: no" >&5
5796 echo "${ECHO_T}no" >&6
5797 fi
5798
5799   AR=$ac_ct_AR
5800 else
5801   AR="$ac_cv_prog_AR"
5802 fi
5803
5804 if test -n "$ac_tool_prefix"; then
5805   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5806 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5807 echo "$as_me:$LINENO: checking for $ac_word" >&5
5808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5809 if test "${ac_cv_prog_RANLIB+set}" = set; then
5810   echo $ECHO_N "(cached) $ECHO_C" >&6
5811 else
5812   if test -n "$RANLIB"; then
5813   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818   IFS=$as_save_IFS
5819   test -z "$as_dir" && as_dir=.
5820   for ac_exec_ext in '' $ac_executable_extensions; do
5821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5822     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5824     break 2
5825   fi
5826 done
5827 done
5828
5829 fi
5830 fi
5831 RANLIB=$ac_cv_prog_RANLIB
5832 if test -n "$RANLIB"; then
5833   echo "$as_me:$LINENO: result: $RANLIB" >&5
5834 echo "${ECHO_T}$RANLIB" >&6
5835 else
5836   echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6
5838 fi
5839
5840 fi
5841 if test -z "$ac_cv_prog_RANLIB"; then
5842   ac_ct_RANLIB=$RANLIB
5843   # Extract the first word of "ranlib", so it can be a program name with args.
5844 set dummy ranlib; ac_word=$2
5845 echo "$as_me:$LINENO: checking for $ac_word" >&5
5846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5847 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5848   echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850   if test -n "$ac_ct_RANLIB"; then
5851   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5852 else
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856   IFS=$as_save_IFS
5857   test -z "$as_dir" && as_dir=.
5858   for ac_exec_ext in '' $ac_executable_extensions; do
5859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5860     ac_cv_prog_ac_ct_RANLIB="ranlib"
5861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5862     break 2
5863   fi
5864 done
5865 done
5866
5867   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5868 fi
5869 fi
5870 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5871 if test -n "$ac_ct_RANLIB"; then
5872   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5873 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5874 else
5875   echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6
5877 fi
5878
5879   RANLIB=$ac_ct_RANLIB
5880 else
5881   RANLIB="$ac_cv_prog_RANLIB"
5882 fi
5883
5884 if test -n "$ac_tool_prefix"; then
5885   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5886 set dummy ${ac_tool_prefix}strip; ac_word=$2
5887 echo "$as_me:$LINENO: checking for $ac_word" >&5
5888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5889 if test "${ac_cv_prog_STRIP+set}" = set; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892   if test -n "$STRIP"; then
5893   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900   for ac_exec_ext in '' $ac_executable_extensions; do
5901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907 done
5908
5909 fi
5910 fi
5911 STRIP=$ac_cv_prog_STRIP
5912 if test -n "$STRIP"; then
5913   echo "$as_me:$LINENO: result: $STRIP" >&5
5914 echo "${ECHO_T}$STRIP" >&6
5915 else
5916   echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6
5918 fi
5919
5920 fi
5921 if test -z "$ac_cv_prog_STRIP"; then
5922   ac_ct_STRIP=$STRIP
5923   # Extract the first word of "strip", so it can be a program name with args.
5924 set dummy strip; ac_word=$2
5925 echo "$as_me:$LINENO: checking for $ac_word" >&5
5926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5927 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5928   echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930   if test -n "$ac_ct_STRIP"; then
5931   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5932 else
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936   IFS=$as_save_IFS
5937   test -z "$as_dir" && as_dir=.
5938   for ac_exec_ext in '' $ac_executable_extensions; do
5939   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5940     ac_cv_prog_ac_ct_STRIP="strip"
5941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942     break 2
5943   fi
5944 done
5945 done
5946
5947   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5948 fi
5949 fi
5950 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5951 if test -n "$ac_ct_STRIP"; then
5952   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5953 echo "${ECHO_T}$ac_ct_STRIP" >&6
5954 else
5955   echo "$as_me:$LINENO: result: no" >&5
5956 echo "${ECHO_T}no" >&6
5957 fi
5958
5959   STRIP=$ac_ct_STRIP
5960 else
5961   STRIP="$ac_cv_prog_STRIP"
5962 fi
5963
5964
5965 old_CC="$CC"
5966 old_CFLAGS="$CFLAGS"
5967
5968 # Set sane defaults for various variables
5969 test -z "$AR" && AR=ar
5970 test -z "$AR_FLAGS" && AR_FLAGS=cru
5971 test -z "$AS" && AS=as
5972 test -z "$CC" && CC=cc
5973 test -z "$LTCC" && LTCC=$CC
5974 test -z "$DLLTOOL" && DLLTOOL=dlltool
5975 test -z "$LD" && LD=ld
5976 test -z "$LN_S" && LN_S="ln -s"
5977 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5978 test -z "$NM" && NM=nm
5979 test -z "$SED" && SED=sed
5980 test -z "$OBJDUMP" && OBJDUMP=objdump
5981 test -z "$RANLIB" && RANLIB=:
5982 test -z "$STRIP" && STRIP=:
5983 test -z "$ac_objext" && ac_objext=o
5984
5985 # Determine commands to create old-style static archives.
5986 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5987 old_postinstall_cmds='chmod 644 $oldlib'
5988 old_postuninstall_cmds=
5989
5990 if test -n "$RANLIB"; then
5991   case $host_os in
5992   openbsd*)
5993     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5994     ;;
5995   *)
5996     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5997     ;;
5998   esac
5999   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6000 fi
6001
6002 # Only perform the check for file, if the check method requires it
6003 case $deplibs_check_method in
6004 file_magic*)
6005   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6006     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6007 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6008 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6009   echo $ECHO_N "(cached) $ECHO_C" >&6
6010 else
6011   case $MAGIC_CMD in
6012 [\\/*] |  ?:[\\/]*)
6013   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6014   ;;
6015 *)
6016   lt_save_MAGIC_CMD="$MAGIC_CMD"
6017   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6018   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6019   for ac_dir in $ac_dummy; do
6020     IFS="$lt_save_ifs"
6021     test -z "$ac_dir" && ac_dir=.
6022     if test -f $ac_dir/${ac_tool_prefix}file; then
6023       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6024       if test -n "$file_magic_test_file"; then
6025         case $deplibs_check_method in
6026         "file_magic "*)
6027           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6028           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6029           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6030             $EGREP "$file_magic_regex" > /dev/null; then
6031             :
6032           else
6033             cat <<EOF 1>&2
6034
6035 *** Warning: the command libtool uses to detect shared libraries,
6036 *** $file_magic_cmd, produces output that libtool cannot recognize.
6037 *** The result is that libtool may fail to recognize shared libraries
6038 *** as such.  This will affect the creation of libtool libraries that
6039 *** depend on shared libraries, but programs linked with such libtool
6040 *** libraries will work regardless of this problem.  Nevertheless, you
6041 *** may want to report the problem to your system manager and/or to
6042 *** bug-libtool@gnu.org
6043
6044 EOF
6045           fi ;;
6046         esac
6047       fi
6048       break
6049     fi
6050   done
6051   IFS="$lt_save_ifs"
6052   MAGIC_CMD="$lt_save_MAGIC_CMD"
6053   ;;
6054 esac
6055 fi
6056
6057 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6058 if test -n "$MAGIC_CMD"; then
6059   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6060 echo "${ECHO_T}$MAGIC_CMD" >&6
6061 else
6062   echo "$as_me:$LINENO: result: no" >&5
6063 echo "${ECHO_T}no" >&6
6064 fi
6065
6066 if test -z "$lt_cv_path_MAGIC_CMD"; then
6067   if test -n "$ac_tool_prefix"; then
6068     echo "$as_me:$LINENO: checking for file" >&5
6069 echo $ECHO_N "checking for file... $ECHO_C" >&6
6070 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   case $MAGIC_CMD in
6074 [\\/*] |  ?:[\\/]*)
6075   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6076   ;;
6077 *)
6078   lt_save_MAGIC_CMD="$MAGIC_CMD"
6079   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6080   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6081   for ac_dir in $ac_dummy; do
6082     IFS="$lt_save_ifs"
6083     test -z "$ac_dir" && ac_dir=.
6084     if test -f $ac_dir/file; then
6085       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6086       if test -n "$file_magic_test_file"; then
6087         case $deplibs_check_method in
6088         "file_magic "*)
6089           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6090           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6091           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6092             $EGREP "$file_magic_regex" > /dev/null; then
6093             :
6094           else
6095             cat <<EOF 1>&2
6096
6097 *** Warning: the command libtool uses to detect shared libraries,
6098 *** $file_magic_cmd, produces output that libtool cannot recognize.
6099 *** The result is that libtool may fail to recognize shared libraries
6100 *** as such.  This will affect the creation of libtool libraries that
6101 *** depend on shared libraries, but programs linked with such libtool
6102 *** libraries will work regardless of this problem.  Nevertheless, you
6103 *** may want to report the problem to your system manager and/or to
6104 *** bug-libtool@gnu.org
6105
6106 EOF
6107           fi ;;
6108         esac
6109       fi
6110       break
6111     fi
6112   done
6113   IFS="$lt_save_ifs"
6114   MAGIC_CMD="$lt_save_MAGIC_CMD"
6115   ;;
6116 esac
6117 fi
6118
6119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6120 if test -n "$MAGIC_CMD"; then
6121   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6122 echo "${ECHO_T}$MAGIC_CMD" >&6
6123 else
6124   echo "$as_me:$LINENO: result: no" >&5
6125 echo "${ECHO_T}no" >&6
6126 fi
6127
6128   else
6129     MAGIC_CMD=:
6130   fi
6131 fi
6132
6133   fi
6134   ;;
6135 esac
6136
6137 enable_dlopen=no
6138 enable_win32_dll=no
6139
6140 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6141 if test "${enable_libtool_lock+set}" = set; then
6142   enableval="$enable_libtool_lock"
6143
6144 fi;
6145 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6146
6147
6148 # Check whether --with-pic or --without-pic was given.
6149 if test "${with_pic+set}" = set; then
6150   withval="$with_pic"
6151   pic_mode="$withval"
6152 else
6153   pic_mode=default
6154 fi;
6155 test -z "$pic_mode" && pic_mode=default
6156
6157 # Use C for the default configuration in the libtool script
6158 tagname=
6159 lt_save_CC="$CC"
6160 ac_ext=c
6161 ac_cpp='$CPP $CPPFLAGS'
6162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6165
6166
6167 # Source file extension for C test sources.
6168 ac_ext=c
6169
6170 # Object file extension for compiled C test sources.
6171 objext=o
6172 objext=$objext
6173
6174 # Code to be used in simple compile tests
6175 lt_simple_compile_test_code="int some_variable = 0;\n"
6176
6177 # Code to be used in simple link tests
6178 lt_simple_link_test_code='int main(){return(0);}\n'
6179
6180
6181 # If no C compiler was specified, use CC.
6182 LTCC=${LTCC-"$CC"}
6183
6184 # Allow CC to be a program name with arguments.
6185 compiler=$CC
6186
6187
6188 #
6189 # Check for any special shared library compilation flags.
6190 #
6191 lt_prog_cc_shlib=
6192 if test "$GCC" = no; then
6193   case $host_os in
6194   sco3.2v5*)
6195     lt_prog_cc_shlib='-belf'
6196     ;;
6197   esac
6198 fi
6199 if test -n "$lt_prog_cc_shlib"; then
6200   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6201 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6202   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6203   else
6204     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6205 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6206     lt_cv_prog_cc_can_build_shared=no
6207   fi
6208 fi
6209
6210
6211 #
6212 # Check to make sure the static flag actually works.
6213 #
6214 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6215 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6216 if test "${lt_prog_compiler_static_works+set}" = set; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   lt_prog_compiler_static_works=no
6220    save_LDFLAGS="$LDFLAGS"
6221    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6222    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6223    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6224      # The compiler can only warn and ignore the option if not recognized
6225      # So say no if there are warnings
6226      if test -s conftest.err; then
6227        # Append any errors to the config.log.
6228        cat conftest.err 1>&5
6229      else
6230        lt_prog_compiler_static_works=yes
6231      fi
6232    fi
6233    $rm conftest*
6234    LDFLAGS="$save_LDFLAGS"
6235
6236 fi
6237 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6238 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6239
6240 if test x"$lt_prog_compiler_static_works" = xyes; then
6241     :
6242 else
6243     lt_prog_compiler_static=
6244 fi
6245
6246
6247
6248 ## CAVEAT EMPTOR:
6249 ## There is no encapsulation within the following macros, do not change
6250 ## the running order or otherwise move them around unless you know exactly
6251 ## what you are doing...
6252
6253 lt_prog_compiler_no_builtin_flag=
6254
6255 if test "$GCC" = yes; then
6256   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6257
6258   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6259 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6260 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6261   echo $ECHO_N "(cached) $ECHO_C" >&6
6262 else
6263   lt_cv_prog_compiler_rtti_exceptions=no
6264   ac_outfile=conftest.$ac_objext
6265    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6266    lt_compiler_flag="-fno-rtti -fno-exceptions"
6267    # Insert the option either (1) after the last *FLAGS variable, or
6268    # (2) before a word containing "conftest.", or (3) at the end.
6269    # Note that $ac_compile itself does not contain backslashes and begins
6270    # with a dollar sign (not a hyphen), so the echo should work correctly.
6271    # The option is referenced via a variable to avoid confusing sed.
6272    lt_compile=`echo "$ac_compile" | $SED \
6273    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6274    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6275    -e 's:$: $lt_compiler_flag:'`
6276    (eval echo "\"\$as_me:6276: $lt_compile\"" >&5)
6277    (eval "$lt_compile" 2>conftest.err)
6278    ac_status=$?
6279    cat conftest.err >&5
6280    echo "$as_me:6280: \$? = $ac_status" >&5
6281    if (exit $ac_status) && test -s "$ac_outfile"; then
6282      # The compiler can only warn and ignore the option if not recognized
6283      # So say no if there are warnings
6284      if test ! -s conftest.err; then
6285        lt_cv_prog_compiler_rtti_exceptions=yes
6286      fi
6287    fi
6288    $rm conftest*
6289
6290 fi
6291 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6292 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6293
6294 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6295     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6296 else
6297     :
6298 fi
6299
6300 fi
6301
6302 lt_prog_compiler_wl=
6303 lt_prog_compiler_pic=
6304 lt_prog_compiler_static=
6305
6306 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6307 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6308
6309   if test "$GCC" = yes; then
6310     lt_prog_compiler_wl='-Wl,'
6311     lt_prog_compiler_static='-static'
6312
6313     case $host_os in
6314       aix*)
6315       # All AIX code is PIC.
6316       if test "$host_cpu" = ia64; then
6317         # AIX 5 now supports IA64 processor
6318         lt_prog_compiler_static='-Bstatic'
6319       fi
6320       ;;
6321
6322     amigaos*)
6323       # FIXME: we need at least 68020 code to build shared libraries, but
6324       # adding the `-m68020' flag to GCC prevents building anything better,
6325       # like `-m68040'.
6326       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6327       ;;
6328
6329     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6330       # PIC is the default for these OSes.
6331       ;;
6332
6333     mingw* | pw32* | os2*)
6334       # This hack is so that the source file can tell whether it is being
6335       # built for inclusion in a dll (and should export symbols for example).
6336       lt_prog_compiler_pic='-DDLL_EXPORT'
6337       ;;
6338
6339     darwin* | rhapsody*)
6340       # PIC is the default on this platform
6341       # Common symbols not allowed in MH_DYLIB files
6342       lt_prog_compiler_pic='-fno-common'
6343       ;;
6344
6345     msdosdjgpp*)
6346       # Just because we use GCC doesn't mean we suddenly get shared libraries
6347       # on systems that don't support them.
6348       lt_prog_compiler_can_build_shared=no
6349       enable_shared=no
6350       ;;
6351
6352     sysv4*MP*)
6353       if test -d /usr/nec; then
6354         lt_prog_compiler_pic=-Kconform_pic
6355       fi
6356       ;;
6357
6358     hpux*)
6359       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6360       # not for PA HP-UX.
6361       case "$host_cpu" in
6362       hppa*64*|ia64*)
6363         # +Z the default
6364         ;;
6365       *)
6366         lt_prog_compiler_pic='-fPIC'
6367         ;;
6368       esac
6369       ;;
6370
6371     *)
6372       lt_prog_compiler_pic='-fPIC'
6373       ;;
6374     esac
6375   else
6376     # PORTME Check for flag to pass linker flags through the system compiler.
6377     case $host_os in
6378     aix*)
6379       lt_prog_compiler_wl='-Wl,'
6380       if test "$host_cpu" = ia64; then
6381         # AIX 5 now supports IA64 processor
6382         lt_prog_compiler_static='-Bstatic'
6383       else
6384         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6385       fi
6386       ;;
6387
6388     mingw* | pw32* | os2*)
6389       # This hack is so that the source file can tell whether it is being
6390       # built for inclusion in a dll (and should export symbols for example).
6391       lt_prog_compiler_pic='-DDLL_EXPORT'
6392       ;;
6393
6394     hpux9* | hpux10* | hpux11*)
6395       lt_prog_compiler_wl='-Wl,'
6396       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6397       # not for PA HP-UX.
6398       case "$host_cpu" in
6399       hppa*64*|ia64*)
6400         # +Z the default
6401         ;;
6402       *)
6403         lt_prog_compiler_pic='+Z'
6404         ;;
6405       esac
6406       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6407       lt_prog_compiler_static='${wl}-a ${wl}archive'
6408       ;;
6409
6410     irix5* | irix6* | nonstopux*)
6411       lt_prog_compiler_wl='-Wl,'
6412       # PIC (with -KPIC) is the default.
6413       lt_prog_compiler_static='-non_shared'
6414       ;;
6415
6416     newsos6)
6417       lt_prog_compiler_pic='-KPIC'
6418       lt_prog_compiler_static='-Bstatic'
6419       ;;
6420
6421     linux*)
6422       case $CC in
6423       icc|ecc)
6424         lt_prog_compiler_wl='-Wl,'
6425         lt_prog_compiler_pic='-KPIC'
6426         lt_prog_compiler_static='-static'
6427         ;;
6428       ccc)
6429         lt_prog_compiler_wl='-Wl,'
6430         # All Alpha code is PIC.
6431         lt_prog_compiler_static='-non_shared'
6432         ;;
6433       esac
6434       ;;
6435
6436     osf3* | osf4* | osf5*)
6437       lt_prog_compiler_wl='-Wl,'
6438       # All OSF/1 code is PIC.
6439       lt_prog_compiler_static='-non_shared'
6440       ;;
6441
6442     sco3.2v5*)
6443       lt_prog_compiler_pic='-Kpic'
6444       lt_prog_compiler_static='-dn'
6445       ;;
6446
6447     solaris*)
6448       lt_prog_compiler_wl='-Wl,'
6449       lt_prog_compiler_pic='-KPIC'
6450       lt_prog_compiler_static='-Bstatic'
6451       ;;
6452
6453     sunos4*)
6454       lt_prog_compiler_wl='-Qoption ld '
6455       lt_prog_compiler_pic='-PIC'
6456       lt_prog_compiler_static='-Bstatic'
6457       ;;
6458
6459     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6460       lt_prog_compiler_wl='-Wl,'
6461       lt_prog_compiler_pic='-KPIC'
6462       lt_prog_compiler_static='-Bstatic'
6463       ;;
6464
6465     sysv4*MP*)
6466       if test -d /usr/nec ;then
6467         lt_prog_compiler_pic='-Kconform_pic'
6468         lt_prog_compiler_static='-Bstatic'
6469       fi
6470       ;;
6471
6472     uts4*)
6473       lt_prog_compiler_pic='-pic'
6474       lt_prog_compiler_static='-Bstatic'
6475       ;;
6476
6477     *)
6478       lt_prog_compiler_can_build_shared=no
6479       ;;
6480     esac
6481   fi
6482
6483 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6484 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6485
6486 #
6487 # Check to make sure the PIC flag actually works.
6488 #
6489 if test -n "$lt_prog_compiler_pic"; then
6490   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6491 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6492 if test "${lt_prog_compiler_pic_works+set}" = set; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   lt_prog_compiler_pic_works=no
6496   ac_outfile=conftest.$ac_objext
6497    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6498    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6499    # Insert the option either (1) after the last *FLAGS variable, or
6500    # (2) before a word containing "conftest.", or (3) at the end.
6501    # Note that $ac_compile itself does not contain backslashes and begins
6502    # with a dollar sign (not a hyphen), so the echo should work correctly.
6503    # The option is referenced via a variable to avoid confusing sed.
6504    lt_compile=`echo "$ac_compile" | $SED \
6505    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6506    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6507    -e 's:$: $lt_compiler_flag:'`
6508    (eval echo "\"\$as_me:6508: $lt_compile\"" >&5)
6509    (eval "$lt_compile" 2>conftest.err)
6510    ac_status=$?
6511    cat conftest.err >&5
6512    echo "$as_me:6512: \$? = $ac_status" >&5
6513    if (exit $ac_status) && test -s "$ac_outfile"; then
6514      # The compiler can only warn and ignore the option if not recognized
6515      # So say no if there are warnings
6516      if test ! -s conftest.err; then
6517        lt_prog_compiler_pic_works=yes
6518      fi
6519    fi
6520    $rm conftest*
6521
6522 fi
6523 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6524 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6525
6526 if test x"$lt_prog_compiler_pic_works" = xyes; then
6527     case $lt_prog_compiler_pic in
6528      "" | " "*) ;;
6529      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6530      esac
6531 else
6532     lt_prog_compiler_pic=
6533      lt_prog_compiler_can_build_shared=no
6534 fi
6535
6536 fi
6537 case "$host_os" in
6538   # For platforms which do not support PIC, -DPIC is meaningless:
6539   *djgpp*)
6540     lt_prog_compiler_pic=
6541     ;;
6542   *)
6543     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6544     ;;
6545 esac
6546
6547 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6548 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6549 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6550   echo $ECHO_N "(cached) $ECHO_C" >&6
6551 else
6552   lt_cv_prog_compiler_c_o=no
6553    $rm -r conftest 2>/dev/null
6554    mkdir conftest
6555    cd conftest
6556    mkdir out
6557    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6558
6559    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6560    # that will create temporary files in the current directory regardless of
6561    # the output directory.  Thus, making CWD read-only will cause this test
6562    # to fail, enabling locking or at least warning the user not to do parallel
6563    # builds.
6564    chmod -w .
6565
6566    lt_compiler_flag="-o out/conftest2.$ac_objext"
6567    # Insert the option either (1) after the last *FLAGS variable, or
6568    # (2) before a word containing "conftest.", or (3) at the end.
6569    # Note that $ac_compile itself does not contain backslashes and begins
6570    # with a dollar sign (not a hyphen), so the echo should work correctly.
6571    lt_compile=`echo "$ac_compile" | $SED \
6572    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6573    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6574    -e 's:$: $lt_compiler_flag:'`
6575    (eval echo "\"\$as_me:6575: $lt_compile\"" >&5)
6576    (eval "$lt_compile" 2>out/conftest.err)
6577    ac_status=$?
6578    cat out/conftest.err >&5
6579    echo "$as_me:6579: \$? = $ac_status" >&5
6580    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6581    then
6582      # The compiler can only warn and ignore the option if not recognized
6583      # So say no if there are warnings
6584      if test ! -s out/conftest.err; then
6585        lt_cv_prog_compiler_c_o=yes
6586      fi
6587    fi
6588    chmod u+w .
6589    $rm conftest* out/*
6590    rmdir out
6591    cd ..
6592    rmdir conftest
6593    $rm conftest*
6594
6595 fi
6596 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6597 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6598
6599
6600 hard_links="nottested"
6601 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6602   # do not overwrite the value of need_locks provided by the user
6603   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6604 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6605   hard_links=yes
6606   $rm conftest*
6607   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6608   touch conftest.a
6609   ln conftest.a conftest.b 2>&5 || hard_links=no
6610   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6611   echo "$as_me:$LINENO: result: $hard_links" >&5
6612 echo "${ECHO_T}$hard_links" >&6
6613   if test "$hard_links" = no; then
6614     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6615 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6616     need_locks=warn
6617   fi
6618 else
6619   need_locks=no
6620 fi
6621
6622 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6623 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6624
6625   runpath_var=
6626   allow_undefined_flag=
6627   enable_shared_with_static_runtimes=no
6628   archive_cmds=
6629   archive_expsym_cmds=
6630   old_archive_From_new_cmds=
6631   old_archive_from_expsyms_cmds=
6632   export_dynamic_flag_spec=
6633   whole_archive_flag_spec=
6634   thread_safe_flag_spec=
6635   hardcode_libdir_flag_spec=
6636   hardcode_libdir_flag_spec_ld=
6637   hardcode_libdir_separator=
6638   hardcode_direct=no
6639   hardcode_minus_L=no
6640   hardcode_shlibpath_var=unsupported
6641   link_all_deplibs=unknown
6642   hardcode_automatic=no
6643   module_cmds=
6644   module_expsym_cmds=
6645   always_export_symbols=no
6646   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6647   # include_expsyms should be a list of space-separated symbols to be *always*
6648   # included in the symbol list
6649   include_expsyms=
6650   # exclude_expsyms can be an extended regexp of symbols to exclude
6651   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6652   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6653   # as well as any symbol that contains `d'.
6654   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6655   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6656   # platforms (ab)use it in PIC code, but their linkers get confused if
6657   # the symbol is explicitly referenced.  Since portable code cannot
6658   # rely on this symbol name, it's probably fine to never include it in
6659   # preloaded symbol tables.
6660   extract_expsyms_cmds=
6661
6662   case $host_os in
6663   cygwin* | mingw* | pw32*)
6664     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6665     # When not using gcc, we currently assume that we are using
6666     # Microsoft Visual C++.
6667     if test "$GCC" != yes; then
6668       with_gnu_ld=no
6669     fi
6670     ;;
6671   openbsd*)
6672     with_gnu_ld=no
6673     ;;
6674   esac
6675
6676   ld_shlibs=yes
6677   if test "$with_gnu_ld" = yes; then
6678     # If archive_cmds runs LD, not CC, wlarc should be empty
6679     wlarc='${wl}'
6680
6681     # See if GNU ld supports shared libraries.
6682     case $host_os in
6683     aix3* | aix4* | aix5*)
6684       # On AIX/PPC, the GNU linker is very broken
6685       if test "$host_cpu" != ia64; then
6686         ld_shlibs=no
6687         cat <<EOF 1>&2
6688
6689 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6690 *** to be unable to reliably create shared libraries on AIX.
6691 *** Therefore, libtool is disabling shared libraries support.  If you
6692 *** really care for shared libraries, you may want to modify your PATH
6693 *** so that a non-GNU linker is found, and then restart.
6694
6695 EOF
6696       fi
6697       ;;
6698
6699     amigaos*)
6700       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)'
6701       hardcode_libdir_flag_spec='-L$libdir'
6702       hardcode_minus_L=yes
6703
6704       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6705       # that the semantics of dynamic libraries on AmigaOS, at least up
6706       # to version 4, is to share data among multiple programs linked
6707       # with the same dynamic library.  Since this doesn't match the
6708       # behavior of shared libraries on other platforms, we can't use
6709       # them.
6710       ld_shlibs=no
6711       ;;
6712
6713     beos*)
6714       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6715         allow_undefined_flag=unsupported
6716         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6717         # support --undefined.  This deserves some investigation.  FIXME
6718         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6719       else
6720         ld_shlibs=no
6721       fi
6722       ;;
6723
6724     cygwin* | mingw* | pw32*)
6725       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6726       # as there is no search path for DLLs.
6727       hardcode_libdir_flag_spec='-L$libdir'
6728       allow_undefined_flag=unsupported
6729       always_export_symbols=no
6730       enable_shared_with_static_runtimes=yes
6731       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6732
6733       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6734         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6735         # If the export-symbols file already is a .def file (1st line
6736         # is EXPORTS), use it as is; otherwise, prepend...
6737         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6738           cp $export_symbols $output_objdir/$soname.def;
6739         else
6740           echo EXPORTS > $output_objdir/$soname.def;
6741           cat $export_symbols >> $output_objdir/$soname.def;
6742         fi~
6743         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6744       else
6745         ld_shlibs=no
6746       fi
6747       ;;
6748
6749     netbsd*)
6750       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6751         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6752         wlarc=
6753       else
6754         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6755         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6756       fi
6757       ;;
6758
6759     solaris* | sysv5*)
6760       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6761         ld_shlibs=no
6762         cat <<EOF 1>&2
6763
6764 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6765 *** create shared libraries on Solaris systems.  Therefore, libtool
6766 *** is disabling shared libraries support.  We urge you to upgrade GNU
6767 *** binutils to release 2.9.1 or newer.  Another option is to modify
6768 *** your PATH or compiler configuration so that the native linker is
6769 *** used, and then restart.
6770
6771 EOF
6772       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6773         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6774         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6775       else
6776         ld_shlibs=no
6777       fi
6778       ;;
6779
6780     sunos4*)
6781       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6782       wlarc=
6783       hardcode_direct=yes
6784       hardcode_shlibpath_var=no
6785       ;;
6786
6787     *)
6788       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6789         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6790         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6791       else
6792         ld_shlibs=no
6793       fi
6794       ;;
6795     esac
6796
6797     if test "$ld_shlibs" = yes; then
6798       runpath_var=LD_RUN_PATH
6799       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6800       export_dynamic_flag_spec='${wl}--export-dynamic'
6801       # ancient GNU ld didn't support --whole-archive et. al.
6802       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6803         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6804       else
6805         whole_archive_flag_spec=
6806       fi
6807     fi
6808   else
6809     # PORTME fill in a description of your system's linker (not GNU ld)
6810     case $host_os in
6811     aix3*)
6812       allow_undefined_flag=unsupported
6813       always_export_symbols=yes
6814       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'
6815       # Note: this linker hardcodes the directories in LIBPATH if there
6816       # are no directories specified by -L.
6817       hardcode_minus_L=yes
6818       if test "$GCC" = yes && test -z "$link_static_flag"; then
6819         # Neither direct hardcoding nor static linking is supported with a
6820         # broken collect2.
6821         hardcode_direct=unsupported
6822       fi
6823       ;;
6824
6825     aix4* | aix5*)
6826       if test "$host_cpu" = ia64; then
6827         # On IA64, the linker does run time linking by default, so we don't
6828         # have to do anything special.
6829         aix_use_runtimelinking=no
6830         exp_sym_flag='-Bexport'
6831         no_entry_flag=""
6832       else
6833         # If we're using GNU nm, then we don't want the "-C" option.
6834         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6835         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6836           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'
6837         else
6838           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'
6839         fi
6840         aix_use_runtimelinking=no
6841
6842         # Test if we are trying to use run time linking or normal
6843         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6844         # need to do runtime linking.
6845         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6846           for ld_flag in $LDFLAGS; do
6847           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6848             aix_use_runtimelinking=yes
6849             break
6850           fi
6851           done
6852         esac
6853
6854         exp_sym_flag='-bexport'
6855         no_entry_flag='-bnoentry'
6856       fi
6857
6858       # When large executables or shared objects are built, AIX ld can
6859       # have problems creating the table of contents.  If linking a library
6860       # or program results in "error TOC overflow" add -mminimal-toc to
6861       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6862       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6863
6864       archive_cmds=''
6865       hardcode_direct=yes
6866       hardcode_libdir_separator=':'
6867       link_all_deplibs=yes
6868
6869       if test "$GCC" = yes; then
6870         case $host_os in aix4.012|aix4.012.*)
6871         # We only want to do this on AIX 4.2 and lower, the check
6872         # below for broken collect2 doesn't work under 4.3+
6873           collect2name=`${CC} -print-prog-name=collect2`
6874           if test -f "$collect2name" && \
6875            strings "$collect2name" | grep resolve_lib_name >/dev/null
6876           then
6877           # We have reworked collect2
6878           hardcode_direct=yes
6879           else
6880           # We have old collect2
6881           hardcode_direct=unsupported
6882           # It fails to find uninstalled libraries when the uninstalled
6883           # path is not listed in the libpath.  Setting hardcode_minus_L
6884           # to unsupported forces relinking
6885           hardcode_minus_L=yes
6886           hardcode_libdir_flag_spec='-L$libdir'
6887           hardcode_libdir_separator=
6888           fi
6889         esac
6890         shared_flag='-shared'
6891       else
6892         # not using gcc
6893         if test "$host_cpu" = ia64; then
6894         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6895         # chokes on -Wl,-G. The following line is correct:
6896           shared_flag='-G'
6897         else
6898         if test "$aix_use_runtimelinking" = yes; then
6899             shared_flag='${wl}-G'
6900           else
6901             shared_flag='${wl}-bM:SRE'
6902         fi
6903         fi
6904       fi
6905
6906       # It seems that -bexpall does not export symbols beginning with
6907       # underscore (_), so it is better to generate a list of symbols to export.
6908       always_export_symbols=yes
6909       if test "$aix_use_runtimelinking" = yes; then
6910         # Warning - without using the other runtime loading flags (-brtl),
6911         # -berok will link without error, but may produce a broken library.
6912         allow_undefined_flag='-berok'
6913        # Determine the default libpath from the value encoded in an empty executable.
6914        cat >conftest.$ac_ext <<_ACEOF
6915 #line $LINENO "configure"
6916 /* confdefs.h.  */
6917 _ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h.  */
6921
6922 int
6923 main ()
6924 {
6925
6926   ;
6927   return 0;
6928 }
6929 _ACEOF
6930 rm -f conftest.$ac_objext conftest$ac_exeext
6931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6932   (eval $ac_link) 2>&5
6933   ac_status=$?
6934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935   (exit $ac_status); } &&
6936          { ac_try='test -s conftest$ac_exeext'
6937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938   (eval $ac_try) 2>&5
6939   ac_status=$?
6940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941   (exit $ac_status); }; }; then
6942
6943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6944 }'`
6945 # Check for a 64-bit object if we didn't find anything.
6946 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; }
6947 }'`; fi
6948 else
6949   echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6951
6952 fi
6953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6954 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6955
6956        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6957         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"
6958        else
6959         if test "$host_cpu" = ia64; then
6960           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6961           allow_undefined_flag="-z nodefs"
6962           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"
6963         else
6964          # Determine the default libpath from the value encoded in an empty executable.
6965          cat >conftest.$ac_ext <<_ACEOF
6966 #line $LINENO "configure"
6967 /* confdefs.h.  */
6968 _ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h.  */
6972
6973 int
6974 main ()
6975 {
6976
6977   ;
6978   return 0;
6979 }
6980 _ACEOF
6981 rm -f conftest.$ac_objext conftest$ac_exeext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6983   (eval $ac_link) 2>&5
6984   ac_status=$?
6985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986   (exit $ac_status); } &&
6987          { ac_try='test -s conftest$ac_exeext'
6988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989   (eval $ac_try) 2>&5
6990   ac_status=$?
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); }; }; then
6993
6994 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6995 }'`
6996 # Check for a 64-bit object if we didn't find anything.
6997 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; }
6998 }'`; fi
6999 else
7000   echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7002
7003 fi
7004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7005 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7006
7007          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7008           # Warning - without using the other run time loading flags,
7009           # -berok will link without error, but may produce a broken library.
7010           no_undefined_flag=' ${wl}-bernotok'
7011           allow_undefined_flag=' ${wl}-berok'
7012           # -bexpall does not export symbols beginning with underscore (_)
7013           always_export_symbols=yes
7014           # Exported symbols can be pulled into shared objects from archives
7015           whole_archive_flag_spec=' '
7016           archive_cmds_need_lc=yes
7017           # This is similar to how AIX traditionally builds it's shared libraries.
7018           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'
7019         fi
7020       fi
7021       ;;
7022
7023     amigaos*)
7024       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)'
7025       hardcode_libdir_flag_spec='-L$libdir'
7026       hardcode_minus_L=yes
7027       # see comment about different semantics on the GNU ld section
7028       ld_shlibs=no
7029       ;;
7030
7031     bsdi4*)
7032       export_dynamic_flag_spec=-rdynamic
7033       ;;
7034
7035     cygwin* | mingw* | pw32*)
7036       # When not using gcc, we currently assume that we are using
7037       # Microsoft Visual C++.
7038       # hardcode_libdir_flag_spec is actually meaningless, as there is
7039       # no search path for DLLs.
7040       hardcode_libdir_flag_spec=' '
7041       allow_undefined_flag=unsupported
7042       # Tell ltmain to make .lib files, not .a files.
7043       libext=lib
7044       # Tell ltmain to make .dll files, not .so files.
7045       shrext=".dll"
7046       # FIXME: Setting linknames here is a bad hack.
7047       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7048       # The linker will automatically build a .lib file if we build a DLL.
7049       old_archive_From_new_cmds='true'
7050       # FIXME: Should let the user specify the lib program.
7051       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7052       fix_srcfile_path='`cygpath -w "$srcfile"`'
7053       enable_shared_with_static_runtimes=yes
7054       ;;
7055
7056     darwin* | rhapsody*)
7057     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7058       archive_cmds_need_lc=no
7059       case "$host_os" in
7060       rhapsody* | darwin1.[012])
7061         allow_undefined_flag='-undefined suppress'
7062         ;;
7063       *) # Darwin 1.3 on
7064         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7065         ;;
7066       esac
7067       # FIXME: Relying on posixy $() will cause problems for
7068       #        cross-compilation, but unfortunately the echo tests do not
7069       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7070       #        `"' quotes if we put them in here... so don't!
7071         lt_int_apple_cc_single_mod=no
7072         output_verbose_link_cmd='echo'
7073         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7074           lt_int_apple_cc_single_mod=yes
7075         fi
7076         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7077           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7078         else
7079         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'
7080       fi
7081       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7082       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7083         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7084           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}'
7085         else
7086           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}'
7087         fi
7088           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}'
7089       hardcode_direct=no
7090       hardcode_automatic=yes
7091       hardcode_shlibpath_var=unsupported
7092       whole_archive_flag_spec='-all_load $convenience'
7093       link_all_deplibs=yes
7094     fi
7095       ;;
7096
7097     dgux*)
7098       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7099       hardcode_libdir_flag_spec='-L$libdir'
7100       hardcode_shlibpath_var=no
7101       ;;
7102
7103     freebsd1*)
7104       ld_shlibs=no
7105       ;;
7106
7107     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7108     # support.  Future versions do this automatically, but an explicit c++rt0.o
7109     # does not break anything, and helps significantly (at the cost of a little
7110     # extra space).
7111     freebsd2.2*)
7112       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7113       hardcode_libdir_flag_spec='-R$libdir'
7114       hardcode_direct=yes
7115       hardcode_shlibpath_var=no
7116       ;;
7117
7118     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7119     freebsd2*)
7120       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7121       hardcode_direct=yes
7122       hardcode_minus_L=yes
7123       hardcode_shlibpath_var=no
7124       ;;
7125
7126     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7127     freebsd*)
7128       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7129       hardcode_libdir_flag_spec='-R$libdir'
7130       hardcode_direct=yes
7131       hardcode_shlibpath_var=no
7132       ;;
7133
7134     hpux9*)
7135       if test "$GCC" = yes; then
7136         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'
7137       else
7138         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'
7139       fi
7140       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7141       hardcode_libdir_separator=:
7142       hardcode_direct=yes
7143
7144       # hardcode_minus_L: Not really in the search PATH,
7145       # but as the default location of the library.
7146       hardcode_minus_L=yes
7147       export_dynamic_flag_spec='${wl}-E'
7148       ;;
7149
7150     hpux10* | hpux11*)
7151       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7152         case "$host_cpu" in
7153         hppa*64*|ia64*)
7154           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7155           ;;
7156         *)
7157           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7158           ;;
7159         esac
7160       else
7161         case "$host_cpu" in
7162         hppa*64*|ia64*)
7163           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7164           ;;
7165         *)
7166           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7167           ;;
7168         esac
7169       fi
7170       if test "$with_gnu_ld" = no; then
7171         case "$host_cpu" in
7172         hppa*64*)
7173           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7174           hardcode_libdir_flag_spec_ld='+b $libdir'
7175           hardcode_libdir_separator=:
7176           hardcode_direct=no
7177           hardcode_shlibpath_var=no
7178           ;;
7179         ia64*)
7180           hardcode_libdir_flag_spec='-L$libdir'
7181           hardcode_direct=no
7182           hardcode_shlibpath_var=no
7183
7184           # hardcode_minus_L: Not really in the search PATH,
7185           # but as the default location of the library.
7186           hardcode_minus_L=yes
7187           ;;
7188         *)
7189           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7190           hardcode_libdir_separator=:
7191           hardcode_direct=yes
7192           export_dynamic_flag_spec='${wl}-E'
7193
7194           # hardcode_minus_L: Not really in the search PATH,
7195           # but as the default location of the library.
7196           hardcode_minus_L=yes
7197           ;;
7198         esac
7199       fi
7200       ;;
7201
7202     irix5* | irix6* | nonstopux*)
7203       if test "$GCC" = yes; then
7204         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'
7205       else
7206         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'
7207         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7208       fi
7209       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7210       hardcode_libdir_separator=:
7211       link_all_deplibs=yes
7212       ;;
7213
7214     netbsd*)
7215       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7216         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7217       else
7218         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7219       fi
7220       hardcode_libdir_flag_spec='-R$libdir'
7221       hardcode_direct=yes
7222       hardcode_shlibpath_var=no
7223       ;;
7224
7225     newsos6)
7226       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7227       hardcode_direct=yes
7228       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7229       hardcode_libdir_separator=:
7230       hardcode_shlibpath_var=no
7231       ;;
7232
7233     openbsd*)
7234       hardcode_direct=yes
7235       hardcode_shlibpath_var=no
7236       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7237         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7238         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7239         export_dynamic_flag_spec='${wl}-E'
7240       else
7241        case $host_os in
7242          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7243            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7244            hardcode_libdir_flag_spec='-R$libdir'
7245            ;;
7246          *)
7247            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7248            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7249            ;;
7250        esac
7251       fi
7252       ;;
7253
7254     os2*)
7255       hardcode_libdir_flag_spec='-L$libdir'
7256       hardcode_minus_L=yes
7257       allow_undefined_flag=unsupported
7258       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'
7259       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7260       ;;
7261
7262     osf3*)
7263       if test "$GCC" = yes; then
7264         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7265         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'
7266       else
7267         allow_undefined_flag=' -expect_unresolved \*'
7268         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'
7269       fi
7270       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7271       hardcode_libdir_separator=:
7272       ;;
7273
7274     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7275       if test "$GCC" = yes; then
7276         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7277         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'
7278         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7279       else
7280         allow_undefined_flag=' -expect_unresolved \*'
7281         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'
7282         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7283         $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'
7284
7285         # Both c and cxx compiler support -rpath directly
7286         hardcode_libdir_flag_spec='-rpath $libdir'
7287       fi
7288       hardcode_libdir_separator=:
7289       ;;
7290
7291     sco3.2v5*)
7292       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7293       hardcode_shlibpath_var=no
7294       export_dynamic_flag_spec='${wl}-Bexport'
7295       runpath_var=LD_RUN_PATH
7296       hardcode_runpath_var=yes
7297       ;;
7298
7299     solaris*)
7300       no_undefined_flag=' -z text'
7301       if test "$GCC" = yes; then
7302         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7303         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7304           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7305       else
7306         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7307         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7308         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7309       fi
7310       hardcode_libdir_flag_spec='-R$libdir'
7311       hardcode_shlibpath_var=no
7312       case $host_os in
7313       solaris2.[0-5] | solaris2.[0-5].*) ;;
7314       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7315         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7316       esac
7317       link_all_deplibs=yes
7318       ;;
7319
7320     sunos4*)
7321       if test "x$host_vendor" = xsequent; then
7322         # Use $CC to link under sequent, because it throws in some extra .o
7323         # files that make .init and .fini sections work.
7324         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7325       else
7326         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7327       fi
7328       hardcode_libdir_flag_spec='-L$libdir'
7329       hardcode_direct=yes
7330       hardcode_minus_L=yes
7331       hardcode_shlibpath_var=no
7332       ;;
7333
7334     sysv4)
7335       case $host_vendor in
7336         sni)
7337           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7338           hardcode_direct=yes # is this really true???
7339         ;;
7340         siemens)
7341           ## LD is ld it makes a PLAMLIB
7342           ## CC just makes a GrossModule.
7343           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7344           reload_cmds='$CC -r -o $output$reload_objs'
7345           hardcode_direct=no
7346         ;;
7347         motorola)
7348           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7349           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7350         ;;
7351       esac
7352       runpath_var='LD_RUN_PATH'
7353       hardcode_shlibpath_var=no
7354       ;;
7355
7356     sysv4.3*)
7357       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7358       hardcode_shlibpath_var=no
7359       export_dynamic_flag_spec='-Bexport'
7360       ;;
7361
7362     sysv4*MP*)
7363       if test -d /usr/nec; then
7364         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7365         hardcode_shlibpath_var=no
7366         runpath_var=LD_RUN_PATH
7367         hardcode_runpath_var=yes
7368         ld_shlibs=yes
7369       fi
7370       ;;
7371
7372     sysv4.2uw2*)
7373       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7374       hardcode_direct=yes
7375       hardcode_minus_L=no
7376       hardcode_shlibpath_var=no
7377       hardcode_runpath_var=yes
7378       runpath_var=LD_RUN_PATH
7379       ;;
7380
7381    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7382       no_undefined_flag='${wl}-z ${wl}text'
7383       if test "$GCC" = yes; then
7384         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7385       else
7386         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7387       fi
7388       runpath_var='LD_RUN_PATH'
7389       hardcode_shlibpath_var=no
7390       ;;
7391
7392     sysv5*)
7393       no_undefined_flag=' -z text'
7394       # $CC -shared without GNU ld will not create a library from C++
7395       # object files and a static libstdc++, better avoid it by now
7396       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7397       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7398                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7399       hardcode_libdir_flag_spec=
7400       hardcode_shlibpath_var=no
7401       runpath_var='LD_RUN_PATH'
7402       ;;
7403
7404     uts4*)
7405       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7406       hardcode_libdir_flag_spec='-L$libdir'
7407       hardcode_shlibpath_var=no
7408       ;;
7409
7410     *)
7411       ld_shlibs=no
7412       ;;
7413     esac
7414   fi
7415
7416 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7417 echo "${ECHO_T}$ld_shlibs" >&6
7418 test "$ld_shlibs" = no && can_build_shared=no
7419
7420 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7421 if test "$GCC" = yes; then
7422   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7423 fi
7424
7425 #
7426 # Do we need to explicitly link libc?
7427 #
7428 case "x$archive_cmds_need_lc" in
7429 x|xyes)
7430   # Assume -lc should be added
7431   archive_cmds_need_lc=yes
7432
7433   if test "$enable_shared" = yes && test "$GCC" = yes; then
7434     case $archive_cmds in
7435     *'~'*)
7436       # FIXME: we may have to deal with multi-command sequences.
7437       ;;
7438     '$CC '*)
7439       # Test whether the compiler implicitly links with -lc since on some
7440       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7441       # to ld, don't add -lc before -lgcc.
7442       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7443 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7444       $rm conftest*
7445       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7446
7447       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7448   (eval $ac_compile) 2>&5
7449   ac_status=$?
7450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451   (exit $ac_status); } 2>conftest.err; then
7452         soname=conftest
7453         lib=conftest
7454         libobjs=conftest.$ac_objext
7455         deplibs=
7456         wl=$lt_prog_compiler_wl
7457         compiler_flags=-v
7458         linker_flags=-v
7459         verstring=
7460         output_objdir=.
7461         libname=conftest
7462         lt_save_allow_undefined_flag=$allow_undefined_flag
7463         allow_undefined_flag=
7464         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7465   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7466   ac_status=$?
7467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); }
7469         then
7470           archive_cmds_need_lc=no
7471         else
7472           archive_cmds_need_lc=yes
7473         fi
7474         allow_undefined_flag=$lt_save_allow_undefined_flag
7475       else
7476         cat conftest.err 1>&5
7477       fi
7478       $rm conftest*
7479       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7480 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7481       ;;
7482     esac
7483   fi
7484   ;;
7485 esac
7486
7487 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7488 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7489 hardcode_action=
7490 if test -n "$hardcode_libdir_flag_spec" || \
7491    test -n "$runpath_var " || \
7492    test "X$hardcode_automatic"="Xyes" ; then
7493
7494   # We can hardcode non-existant directories.
7495   if test "$hardcode_direct" != no &&
7496      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7497      # have to relink, otherwise we might link with an installed library
7498      # when we should be linking with a yet-to-be-installed one
7499      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7500      test "$hardcode_minus_L" != no; then
7501     # Linking always hardcodes the temporary library directory.
7502     hardcode_action=relink
7503   else
7504     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7505     hardcode_action=immediate
7506   fi
7507 else
7508   # We cannot hardcode anything, or else we can only hardcode existing
7509   # directories.
7510   hardcode_action=unsupported
7511 fi
7512 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7513 echo "${ECHO_T}$hardcode_action" >&6
7514
7515 if test "$hardcode_action" = relink; then
7516   # Fast installation is not supported
7517   enable_fast_install=no
7518 elif test "$shlibpath_overrides_runpath" = yes ||
7519      test "$enable_shared" = no; then
7520   # Fast installation is not necessary
7521   enable_fast_install=needless
7522 fi
7523
7524 striplib=
7525 old_striplib=
7526 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7527 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7528 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7529   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7530   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7531   echo "$as_me:$LINENO: result: yes" >&5
7532 echo "${ECHO_T}yes" >&6
7533 else
7534 # FIXME - insert some real tests, host_os isn't really good enough
7535   case $host_os in
7536    darwin*)
7537        if test -n "$STRIP" ; then
7538          striplib="$STRIP -x"
7539          echo "$as_me:$LINENO: result: yes" >&5
7540 echo "${ECHO_T}yes" >&6
7541        else
7542   echo "$as_me:$LINENO: result: no" >&5
7543 echo "${ECHO_T}no" >&6
7544 fi
7545        ;;
7546    *)
7547   echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6
7549     ;;
7550   esac
7551 fi
7552
7553 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7554 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7555 library_names_spec=
7556 libname_spec='lib$name'
7557 soname_spec=
7558 shrext=".so"
7559 postinstall_cmds=
7560 postuninstall_cmds=
7561 finish_cmds=
7562 finish_eval=
7563 shlibpath_var=
7564 shlibpath_overrides_runpath=unknown
7565 version_type=none
7566 dynamic_linker="$host_os ld.so"
7567 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7568 if test "$GCC" = yes; then
7569   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7570   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7571     # if the path contains ";" then we assume it to be the separator
7572     # otherwise default to the standard path separator (i.e. ":") - it is
7573     # assumed that no part of a normal pathname contains ";" but that should
7574     # okay in the real world where ";" in dirpaths is itself problematic.
7575     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7576   else
7577     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7578   fi
7579 else
7580   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7581 fi
7582 need_lib_prefix=unknown
7583 hardcode_into_libs=no
7584
7585 # when you set need_version to no, make sure it does not cause -set_version
7586 # flags to be left without arguments
7587 need_version=unknown
7588
7589 case $host_os in
7590 aix3*)
7591   version_type=linux
7592   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7593   shlibpath_var=LIBPATH
7594
7595   # AIX 3 has no versioning support, so we append a major version to the name.
7596   soname_spec='${libname}${release}${shared_ext}$major'
7597   ;;
7598
7599 aix4* | aix5*)
7600   version_type=linux
7601   need_lib_prefix=no
7602   need_version=no
7603   hardcode_into_libs=yes
7604   if test "$host_cpu" = ia64; then
7605     # AIX 5 supports IA64
7606     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7607     shlibpath_var=LD_LIBRARY_PATH
7608   else
7609     # With GCC up to 2.95.x, collect2 would create an import file
7610     # for dependence libraries.  The import file would start with
7611     # the line `#! .'.  This would cause the generated library to
7612     # depend on `.', always an invalid library.  This was fixed in
7613     # development snapshots of GCC prior to 3.0.
7614     case $host_os in
7615       aix4 | aix4.[01] | aix4.[01].*)
7616       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7617            echo ' yes '
7618            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7619         :
7620       else
7621         can_build_shared=no
7622       fi
7623       ;;
7624     esac
7625     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7626     # soname into executable. Probably we can add versioning support to
7627     # collect2, so additional links can be useful in future.
7628     if test "$aix_use_runtimelinking" = yes; then
7629       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7630       # instead of lib<name>.a to let people know that these are not
7631       # typical AIX shared libraries.
7632       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7633     else
7634       # We preserve .a as extension for shared libraries through AIX4.2
7635       # and later when we are not doing run time linking.
7636       library_names_spec='${libname}${release}.a $libname.a'
7637       soname_spec='${libname}${release}${shared_ext}$major'
7638     fi
7639     shlibpath_var=LIBPATH
7640   fi
7641   ;;
7642
7643 amigaos*)
7644   library_names_spec='$libname.ixlibrary $libname.a'
7645   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7646   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'
7647   ;;
7648
7649 beos*)
7650   library_names_spec='${libname}${shared_ext}'
7651   dynamic_linker="$host_os ld.so"
7652   shlibpath_var=LIBRARY_PATH
7653   ;;
7654
7655 bsdi4*)
7656   version_type=linux
7657   need_version=no
7658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7659   soname_spec='${libname}${release}${shared_ext}$major'
7660   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7661   shlibpath_var=LD_LIBRARY_PATH
7662   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7663   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7664   # the default ld.so.conf also contains /usr/contrib/lib and
7665   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7666   # libtool to hard-code these into programs
7667   ;;
7668
7669 cygwin* | mingw* | pw32*)
7670   version_type=windows
7671   shrext=".dll"
7672   need_version=no
7673   need_lib_prefix=no
7674
7675   case $GCC,$host_os in
7676   yes,cygwin* | yes,mingw* | yes,pw32*)
7677     library_names_spec='$libname.dll.a'
7678     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7679     postinstall_cmds='base_file=`basename \${file}`~
7680       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7681       dldir=$destdir/`dirname \$dlpath`~
7682       test -d \$dldir || mkdir -p \$dldir~
7683       $install_prog $dir/$dlname \$dldir/$dlname'
7684     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7685       dlpath=$dir/\$dldll~
7686        $rm \$dlpath'
7687     shlibpath_overrides_runpath=yes
7688
7689     case $host_os in
7690     cygwin*)
7691       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7692       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7693       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7694       ;;
7695     mingw*)
7696       # MinGW DLLs use traditional 'lib' prefix
7697       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7698       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7699       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7700         # It is most probably a Windows format PATH printed by
7701         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7702         # path with ; separators, and with drive letters. We can handle the
7703         # drive letters (cygwin fileutils understands them), so leave them,
7704         # especially as we might pass files found there to a mingw objdump,
7705         # which wouldn't understand a cygwinified path. Ahh.
7706         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7707       else
7708         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7709       fi
7710       ;;
7711     pw32*)
7712       # pw32 DLLs use 'pw' prefix rather than 'lib'
7713       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7714       ;;
7715     esac
7716     ;;
7717
7718   *)
7719     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7720     ;;
7721   esac
7722   dynamic_linker='Win32 ld.exe'
7723   # FIXME: first we should search . and the directory the executable is in
7724   shlibpath_var=PATH
7725   ;;
7726
7727 darwin* | rhapsody*)
7728   dynamic_linker="$host_os dyld"
7729   version_type=darwin
7730   need_lib_prefix=no
7731   need_version=no
7732   # FIXME: Relying on posixy $() will cause problems for
7733   #        cross-compilation, but unfortunately the echo tests do not
7734   #        yet detect zsh echo's removal of \ escapes.
7735   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7736   soname_spec='${libname}${release}${major}$shared_ext'
7737   shlibpath_overrides_runpath=yes
7738   shlibpath_var=DYLD_LIBRARY_PATH
7739   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7740   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7741   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7742   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"`
7743   fi
7744   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7745   ;;
7746
7747 dgux*)
7748   version_type=linux
7749   need_lib_prefix=no
7750   need_version=no
7751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7752   soname_spec='${libname}${release}${shared_ext}$major'
7753   shlibpath_var=LD_LIBRARY_PATH
7754   ;;
7755
7756 freebsd1*)
7757   dynamic_linker=no
7758   ;;
7759
7760 freebsd*)
7761   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7762   version_type=freebsd-$objformat
7763   case $version_type in
7764     freebsd-elf*)
7765       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7766       need_version=no
7767       need_lib_prefix=no
7768       ;;
7769     freebsd-*)
7770       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7771       need_version=yes
7772       ;;
7773   esac
7774   shlibpath_var=LD_LIBRARY_PATH
7775   case $host_os in
7776   freebsd2*)
7777     shlibpath_overrides_runpath=yes
7778     ;;
7779   freebsd3.01* | freebsdelf3.01*)
7780     shlibpath_overrides_runpath=yes
7781     hardcode_into_libs=yes
7782     ;;
7783   *) # from 3.2 on
7784     shlibpath_overrides_runpath=no
7785     hardcode_into_libs=yes
7786     ;;
7787   esac
7788   ;;
7789
7790 gnu*)
7791   version_type=linux
7792   need_lib_prefix=no
7793   need_version=no
7794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7795   soname_spec='${libname}${release}${shared_ext}$major'
7796   shlibpath_var=LD_LIBRARY_PATH
7797   hardcode_into_libs=yes
7798   ;;
7799
7800 hpux9* | hpux10* | hpux11*)
7801   # Give a soname corresponding to the major version so that dld.sl refuses to
7802   # link against other versions.
7803   version_type=sunos
7804   need_lib_prefix=no
7805   need_version=no
7806   case "$host_cpu" in
7807   ia64*)
7808     shrext='.so'
7809     hardcode_into_libs=yes
7810     dynamic_linker="$host_os dld.so"
7811     shlibpath_var=LD_LIBRARY_PATH
7812     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7813     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7814     soname_spec='${libname}${release}${shared_ext}$major'
7815     if test "X$HPUX_IA64_MODE" = X32; then
7816       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7817     else
7818       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7819     fi
7820     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7821     ;;
7822    hppa*64*)
7823      shrext='.sl'
7824      hardcode_into_libs=yes
7825      dynamic_linker="$host_os dld.sl"
7826      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7827      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7828      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7829      soname_spec='${libname}${release}${shared_ext}$major'
7830      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7831      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7832      ;;
7833    *)
7834     shrext='.sl'
7835     dynamic_linker="$host_os dld.sl"
7836     shlibpath_var=SHLIB_PATH
7837     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7838     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7839     soname_spec='${libname}${release}${shared_ext}$major'
7840     ;;
7841   esac
7842   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7843   postinstall_cmds='chmod 555 $lib'
7844   ;;
7845
7846 irix5* | irix6* | nonstopux*)
7847   case $host_os in
7848     nonstopux*) version_type=nonstopux ;;
7849     *)
7850         if test "$lt_cv_prog_gnu_ld" = yes; then
7851                 version_type=linux
7852         else
7853                 version_type=irix
7854         fi ;;
7855   esac
7856   need_lib_prefix=no
7857   need_version=no
7858   soname_spec='${libname}${release}${shared_ext}$major'
7859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7860   case $host_os in
7861   irix5* | nonstopux*)
7862     libsuff= shlibsuff=
7863     ;;
7864   *)
7865     case $LD in # libtool.m4 will add one of these switches to LD
7866     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7867       libsuff= shlibsuff= libmagic=32-bit;;
7868     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7869       libsuff=32 shlibsuff=N32 libmagic=N32;;
7870     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7871       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7872     *) libsuff= shlibsuff= libmagic=never-match;;
7873     esac
7874     ;;
7875   esac
7876   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7877   shlibpath_overrides_runpath=no
7878   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7879   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7880   hardcode_into_libs=yes
7881   ;;
7882
7883 # No shared lib support for Linux oldld, aout, or coff.
7884 linux*oldld* | linux*aout* | linux*coff*)
7885   dynamic_linker=no
7886   ;;
7887
7888 # This must be Linux ELF.
7889 linux*)
7890   version_type=linux
7891   need_lib_prefix=no
7892   need_version=no
7893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7894   soname_spec='${libname}${release}${shared_ext}$major'
7895   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7896   shlibpath_var=LD_LIBRARY_PATH
7897   shlibpath_overrides_runpath=no
7898   # This implies no fast_install, which is unacceptable.
7899   # Some rework will be needed to allow for fast_install
7900   # before this can be enabled.
7901   hardcode_into_libs=yes
7902
7903   # We used to test for /lib/ld.so.1 and disable shared libraries on
7904   # powerpc, because MkLinux only supported shared libraries with the
7905   # GNU dynamic linker.  Since this was broken with cross compilers,
7906   # most powerpc-linux boxes support dynamic linking these days and
7907   # people can always --disable-shared, the test was removed, and we
7908   # assume the GNU/Linux dynamic linker is in use.
7909   dynamic_linker='GNU/Linux ld.so'
7910   ;;
7911
7912 netbsd*)
7913   version_type=sunos
7914   need_lib_prefix=no
7915   need_version=no
7916   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7917     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7918     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7919     dynamic_linker='NetBSD (a.out) ld.so'
7920   else
7921     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7922     soname_spec='${libname}${release}${shared_ext}$major'
7923     dynamic_linker='NetBSD ld.elf_so'
7924   fi
7925   shlibpath_var=LD_LIBRARY_PATH
7926   shlibpath_overrides_runpath=yes
7927   hardcode_into_libs=yes
7928   ;;
7929
7930 newsos6)
7931   version_type=linux
7932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7933   shlibpath_var=LD_LIBRARY_PATH
7934   shlibpath_overrides_runpath=yes
7935   ;;
7936
7937 nto-qnx)
7938   version_type=linux
7939   need_lib_prefix=no
7940   need_version=no
7941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7942   soname_spec='${libname}${release}${shared_ext}$major'
7943   shlibpath_var=LD_LIBRARY_PATH
7944   shlibpath_overrides_runpath=yes
7945   ;;
7946
7947 openbsd*)
7948   version_type=sunos
7949   need_lib_prefix=no
7950   need_version=no
7951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7952   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7953   shlibpath_var=LD_LIBRARY_PATH
7954   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7955     case $host_os in
7956       openbsd2.[89] | openbsd2.[89].*)
7957         shlibpath_overrides_runpath=no
7958         ;;
7959       *)
7960         shlibpath_overrides_runpath=yes
7961         ;;
7962       esac
7963   else
7964     shlibpath_overrides_runpath=yes
7965   fi
7966   ;;
7967
7968 os2*)
7969   libname_spec='$name'
7970   shrext=".dll"
7971   need_lib_prefix=no
7972   library_names_spec='$libname${shared_ext} $libname.a'
7973   dynamic_linker='OS/2 ld.exe'
7974   shlibpath_var=LIBPATH
7975   ;;
7976
7977 osf3* | osf4* | osf5*)
7978   version_type=osf
7979   need_lib_prefix=no
7980   need_version=no
7981   soname_spec='${libname}${release}${shared_ext}$major'
7982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7983   shlibpath_var=LD_LIBRARY_PATH
7984   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7985   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7986   ;;
7987
7988 sco3.2v5*)
7989   version_type=osf
7990   soname_spec='${libname}${release}${shared_ext}$major'
7991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7992   shlibpath_var=LD_LIBRARY_PATH
7993   ;;
7994
7995 solaris*)
7996   version_type=linux
7997   need_lib_prefix=no
7998   need_version=no
7999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8000   soname_spec='${libname}${release}${shared_ext}$major'
8001   shlibpath_var=LD_LIBRARY_PATH
8002   shlibpath_overrides_runpath=yes
8003   hardcode_into_libs=yes
8004   # ldd complains unless libraries are executable
8005   postinstall_cmds='chmod +x $lib'
8006   ;;
8007
8008 sunos4*)
8009   version_type=sunos
8010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8011   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8012   shlibpath_var=LD_LIBRARY_PATH
8013   shlibpath_overrides_runpath=yes
8014   if test "$with_gnu_ld" = yes; then
8015     need_lib_prefix=no
8016   fi
8017   need_version=yes
8018   ;;
8019
8020 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8021   version_type=linux
8022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8023   soname_spec='${libname}${release}${shared_ext}$major'
8024   shlibpath_var=LD_LIBRARY_PATH
8025   case $host_vendor in
8026     sni)
8027       shlibpath_overrides_runpath=no
8028       need_lib_prefix=no
8029       export_dynamic_flag_spec='${wl}-Blargedynsym'
8030       runpath_var=LD_RUN_PATH
8031       ;;
8032     siemens)
8033       need_lib_prefix=no
8034       ;;
8035     motorola)
8036       need_lib_prefix=no
8037       need_version=no
8038       shlibpath_overrides_runpath=no
8039       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8040       ;;
8041   esac
8042   ;;
8043
8044 sysv4*MP*)
8045   if test -d /usr/nec ;then
8046     version_type=linux
8047     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8048     soname_spec='$libname${shared_ext}.$major'
8049     shlibpath_var=LD_LIBRARY_PATH
8050   fi
8051   ;;
8052
8053 uts4*)
8054   version_type=linux
8055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8056   soname_spec='${libname}${release}${shared_ext}$major'
8057   shlibpath_var=LD_LIBRARY_PATH
8058   ;;
8059
8060 *)
8061   dynamic_linker=no
8062   ;;
8063 esac
8064 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8065 echo "${ECHO_T}$dynamic_linker" >&6
8066 test "$dynamic_linker" = no && can_build_shared=no
8067
8068 if test "x$enable_dlopen" != xyes; then
8069   enable_dlopen=unknown
8070   enable_dlopen_self=unknown
8071   enable_dlopen_self_static=unknown
8072 else
8073   lt_cv_dlopen=no
8074   lt_cv_dlopen_libs=
8075
8076   case $host_os in
8077   beos*)
8078     lt_cv_dlopen="load_add_on"
8079     lt_cv_dlopen_libs=
8080     lt_cv_dlopen_self=yes
8081     ;;
8082
8083   mingw* | pw32*)
8084     lt_cv_dlopen="LoadLibrary"
8085     lt_cv_dlopen_libs=
8086    ;;
8087
8088   cygwin*)
8089     lt_cv_dlopen="dlopen"
8090     lt_cv_dlopen_libs=
8091    ;;
8092
8093   darwin*)
8094   # if libdl is installed we need to link against it
8095     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8096 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8097 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8098   echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100   ac_check_lib_save_LIBS=$LIBS
8101 LIBS="-ldl  $LIBS"
8102 cat >conftest.$ac_ext <<_ACEOF
8103 #line $LINENO "configure"
8104 /* confdefs.h.  */
8105 _ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h.  */
8109
8110 /* Override any gcc2 internal prototype to avoid an error.  */
8111 #ifdef __cplusplus
8112 extern "C"
8113 #endif
8114 /* We use char because int might match the return type of a gcc2
8115    builtin and then its argument prototype would still apply.  */
8116 char dlopen ();
8117 int
8118 main ()
8119 {
8120 dlopen ();
8121   ;
8122   return 0;
8123 }
8124 _ACEOF
8125 rm -f conftest.$ac_objext conftest$ac_exeext
8126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8127   (eval $ac_link) 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); } &&
8131          { ac_try='test -s conftest$ac_exeext'
8132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133   (eval $ac_try) 2>&5
8134   ac_status=$?
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); }; }; then
8137   ac_cv_lib_dl_dlopen=yes
8138 else
8139   echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8141
8142 ac_cv_lib_dl_dlopen=no
8143 fi
8144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8145 LIBS=$ac_check_lib_save_LIBS
8146 fi
8147 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8148 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8149 if test $ac_cv_lib_dl_dlopen = yes; then
8150   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8151 else
8152
8153     lt_cv_dlopen="dyld"
8154     lt_cv_dlopen_libs=
8155     lt_cv_dlopen_self=yes
8156
8157 fi
8158
8159    ;;
8160
8161   *)
8162     echo "$as_me:$LINENO: checking for shl_load" >&5
8163 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8164 if test "${ac_cv_func_shl_load+set}" = set; then
8165   echo $ECHO_N "(cached) $ECHO_C" >&6
8166 else
8167   cat >conftest.$ac_ext <<_ACEOF
8168 #line $LINENO "configure"
8169 /* confdefs.h.  */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h.  */
8174 /* System header to define __stub macros and hopefully few prototypes,
8175     which can conflict with char shl_load (); below.
8176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8177     <limits.h> exists even on freestanding compilers.  */
8178 #ifdef __STDC__
8179 # include <limits.h>
8180 #else
8181 # include <assert.h>
8182 #endif
8183 /* Override any gcc2 internal prototype to avoid an error.  */
8184 #ifdef __cplusplus
8185 extern "C"
8186 {
8187 #endif
8188 /* We use char because int might match the return type of a gcc2
8189    builtin and then its argument prototype would still apply.  */
8190 char shl_load ();
8191 /* The GNU C library defines this for functions which it implements
8192     to always fail with ENOSYS.  Some functions are actually named
8193     something starting with __ and the normal name is an alias.  */
8194 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8195 choke me
8196 #else
8197 char (*f) () = shl_load;
8198 #endif
8199 #ifdef __cplusplus
8200 }
8201 #endif
8202
8203 int
8204 main ()
8205 {
8206 return f != shl_load;
8207   ;
8208   return 0;
8209 }
8210 _ACEOF
8211 rm -f conftest.$ac_objext conftest$ac_exeext
8212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8213   (eval $ac_link) 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); } &&
8217          { ac_try='test -s conftest$ac_exeext'
8218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219   (eval $ac_try) 2>&5
8220   ac_status=$?
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); }; }; then
8223   ac_cv_func_shl_load=yes
8224 else
8225   echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8227
8228 ac_cv_func_shl_load=no
8229 fi
8230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8231 fi
8232 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8233 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8234 if test $ac_cv_func_shl_load = yes; then
8235   lt_cv_dlopen="shl_load"
8236 else
8237   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8238 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8239 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8240   echo $ECHO_N "(cached) $ECHO_C" >&6
8241 else
8242   ac_check_lib_save_LIBS=$LIBS
8243 LIBS="-ldld  $LIBS"
8244 cat >conftest.$ac_ext <<_ACEOF
8245 #line $LINENO "configure"
8246 /* confdefs.h.  */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h.  */
8251
8252 /* Override any gcc2 internal prototype to avoid an error.  */
8253 #ifdef __cplusplus
8254 extern "C"
8255 #endif
8256 /* We use char because int might match the return type of a gcc2
8257    builtin and then its argument prototype would still apply.  */
8258 char shl_load ();
8259 int
8260 main ()
8261 {
8262 shl_load ();
8263   ;
8264   return 0;
8265 }
8266 _ACEOF
8267 rm -f conftest.$ac_objext conftest$ac_exeext
8268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8269   (eval $ac_link) 2>&5
8270   ac_status=$?
8271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272   (exit $ac_status); } &&
8273          { ac_try='test -s conftest$ac_exeext'
8274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275   (eval $ac_try) 2>&5
8276   ac_status=$?
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   (exit $ac_status); }; }; then
8279   ac_cv_lib_dld_shl_load=yes
8280 else
8281   echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8283
8284 ac_cv_lib_dld_shl_load=no
8285 fi
8286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8287 LIBS=$ac_check_lib_save_LIBS
8288 fi
8289 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8290 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8291 if test $ac_cv_lib_dld_shl_load = yes; then
8292   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8293 else
8294   echo "$as_me:$LINENO: checking for dlopen" >&5
8295 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8296 if test "${ac_cv_func_dlopen+set}" = set; then
8297   echo $ECHO_N "(cached) $ECHO_C" >&6
8298 else
8299   cat >conftest.$ac_ext <<_ACEOF
8300 #line $LINENO "configure"
8301 /* confdefs.h.  */
8302 _ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h.  */
8306 /* System header to define __stub macros and hopefully few prototypes,
8307     which can conflict with char dlopen (); below.
8308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8309     <limits.h> exists even on freestanding compilers.  */
8310 #ifdef __STDC__
8311 # include <limits.h>
8312 #else
8313 # include <assert.h>
8314 #endif
8315 /* Override any gcc2 internal prototype to avoid an error.  */
8316 #ifdef __cplusplus
8317 extern "C"
8318 {
8319 #endif
8320 /* We use char because int might match the return type of a gcc2
8321    builtin and then its argument prototype would still apply.  */
8322 char dlopen ();
8323 /* The GNU C library defines this for functions which it implements
8324     to always fail with ENOSYS.  Some functions are actually named
8325     something starting with __ and the normal name is an alias.  */
8326 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8327 choke me
8328 #else
8329 char (*f) () = dlopen;
8330 #endif
8331 #ifdef __cplusplus
8332 }
8333 #endif
8334
8335 int
8336 main ()
8337 {
8338 return f != dlopen;
8339   ;
8340   return 0;
8341 }
8342 _ACEOF
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8345   (eval $ac_link) 2>&5
8346   ac_status=$?
8347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348   (exit $ac_status); } &&
8349          { ac_try='test -s conftest$ac_exeext'
8350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351   (eval $ac_try) 2>&5
8352   ac_status=$?
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); }; }; then
8355   ac_cv_func_dlopen=yes
8356 else
8357   echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8359
8360 ac_cv_func_dlopen=no
8361 fi
8362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8363 fi
8364 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8365 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8366 if test $ac_cv_func_dlopen = yes; then
8367   lt_cv_dlopen="dlopen"
8368 else
8369   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8370 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8371 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8372   echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374   ac_check_lib_save_LIBS=$LIBS
8375 LIBS="-ldl  $LIBS"
8376 cat >conftest.$ac_ext <<_ACEOF
8377 #line $LINENO "configure"
8378 /* confdefs.h.  */
8379 _ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h.  */
8383
8384 /* Override any gcc2 internal prototype to avoid an error.  */
8385 #ifdef __cplusplus
8386 extern "C"
8387 #endif
8388 /* We use char because int might match the return type of a gcc2
8389    builtin and then its argument prototype would still apply.  */
8390 char dlopen ();
8391 int
8392 main ()
8393 {
8394 dlopen ();
8395   ;
8396   return 0;
8397 }
8398 _ACEOF
8399 rm -f conftest.$ac_objext conftest$ac_exeext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8401   (eval $ac_link) 2>&5
8402   ac_status=$?
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); } &&
8405          { ac_try='test -s conftest$ac_exeext'
8406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407   (eval $ac_try) 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }; }; then
8411   ac_cv_lib_dl_dlopen=yes
8412 else
8413   echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416 ac_cv_lib_dl_dlopen=no
8417 fi
8418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8419 LIBS=$ac_check_lib_save_LIBS
8420 fi
8421 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8422 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8423 if test $ac_cv_lib_dl_dlopen = yes; then
8424   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8425 else
8426   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8427 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8428 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8429   echo $ECHO_N "(cached) $ECHO_C" >&6
8430 else
8431   ac_check_lib_save_LIBS=$LIBS
8432 LIBS="-lsvld  $LIBS"
8433 cat >conftest.$ac_ext <<_ACEOF
8434 #line $LINENO "configure"
8435 /* confdefs.h.  */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h.  */
8440
8441 /* Override any gcc2 internal prototype to avoid an error.  */
8442 #ifdef __cplusplus
8443 extern "C"
8444 #endif
8445 /* We use char because int might match the return type of a gcc2
8446    builtin and then its argument prototype would still apply.  */
8447 char dlopen ();
8448 int
8449 main ()
8450 {
8451 dlopen ();
8452   ;
8453   return 0;
8454 }
8455 _ACEOF
8456 rm -f conftest.$ac_objext conftest$ac_exeext
8457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8458   (eval $ac_link) 2>&5
8459   ac_status=$?
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); } &&
8462          { ac_try='test -s conftest$ac_exeext'
8463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464   (eval $ac_try) 2>&5
8465   ac_status=$?
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); }; }; then
8468   ac_cv_lib_svld_dlopen=yes
8469 else
8470   echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8472
8473 ac_cv_lib_svld_dlopen=no
8474 fi
8475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8476 LIBS=$ac_check_lib_save_LIBS
8477 fi
8478 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8479 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8480 if test $ac_cv_lib_svld_dlopen = yes; then
8481   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8482 else
8483   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8484 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8485 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8486   echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488   ac_check_lib_save_LIBS=$LIBS
8489 LIBS="-ldld  $LIBS"
8490 cat >conftest.$ac_ext <<_ACEOF
8491 #line $LINENO "configure"
8492 /* confdefs.h.  */
8493 _ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h.  */
8497
8498 /* Override any gcc2 internal prototype to avoid an error.  */
8499 #ifdef __cplusplus
8500 extern "C"
8501 #endif
8502 /* We use char because int might match the return type of a gcc2
8503    builtin and then its argument prototype would still apply.  */
8504 char dld_link ();
8505 int
8506 main ()
8507 {
8508 dld_link ();
8509   ;
8510   return 0;
8511 }
8512 _ACEOF
8513 rm -f conftest.$ac_objext conftest$ac_exeext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8515   (eval $ac_link) 2>&5
8516   ac_status=$?
8517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   (exit $ac_status); } &&
8519          { ac_try='test -s conftest$ac_exeext'
8520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521   (eval $ac_try) 2>&5
8522   ac_status=$?
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); }; }; then
8525   ac_cv_lib_dld_dld_link=yes
8526 else
8527   echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8529
8530 ac_cv_lib_dld_dld_link=no
8531 fi
8532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8533 LIBS=$ac_check_lib_save_LIBS
8534 fi
8535 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8536 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8537 if test $ac_cv_lib_dld_dld_link = yes; then
8538   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8539 fi
8540
8541
8542 fi
8543
8544
8545 fi
8546
8547
8548 fi
8549
8550
8551 fi
8552
8553
8554 fi
8555
8556     ;;
8557   esac
8558
8559   if test "x$lt_cv_dlopen" != xno; then
8560     enable_dlopen=yes
8561   else
8562     enable_dlopen=no
8563   fi
8564
8565   case $lt_cv_dlopen in
8566   dlopen)
8567     save_CPPFLAGS="$CPPFLAGS"
8568     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8569
8570     save_LDFLAGS="$LDFLAGS"
8571     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8572
8573     save_LIBS="$LIBS"
8574     LIBS="$lt_cv_dlopen_libs $LIBS"
8575
8576     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8577 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8578 if test "${lt_cv_dlopen_self+set}" = set; then
8579   echo $ECHO_N "(cached) $ECHO_C" >&6
8580 else
8581           if test "$cross_compiling" = yes; then :
8582   lt_cv_dlopen_self=cross
8583 else
8584   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8585   lt_status=$lt_dlunknown
8586   cat > conftest.$ac_ext <<EOF
8587 #line 8587 "configure"
8588 #include "confdefs.h"
8589
8590 #if HAVE_DLFCN_H
8591 #include <dlfcn.h>
8592 #endif
8593
8594 #include <stdio.h>
8595
8596 #ifdef RTLD_GLOBAL
8597 #  define LT_DLGLOBAL           RTLD_GLOBAL
8598 #else
8599 #  ifdef DL_GLOBAL
8600 #    define LT_DLGLOBAL         DL_GLOBAL
8601 #  else
8602 #    define LT_DLGLOBAL         0
8603 #  endif
8604 #endif
8605
8606 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8607    find out it does not work in some platform. */
8608 #ifndef LT_DLLAZY_OR_NOW
8609 #  ifdef RTLD_LAZY
8610 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8611 #  else
8612 #    ifdef DL_LAZY
8613 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8614 #    else
8615 #      ifdef RTLD_NOW
8616 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8617 #      else
8618 #        ifdef DL_NOW
8619 #          define LT_DLLAZY_OR_NOW      DL_NOW
8620 #        else
8621 #          define LT_DLLAZY_OR_NOW      0
8622 #        endif
8623 #      endif
8624 #    endif
8625 #  endif
8626 #endif
8627
8628 #ifdef __cplusplus
8629 extern "C" void exit (int);
8630 #endif
8631
8632 void fnord() { int i=42;}
8633 int main ()
8634 {
8635   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8636   int status = $lt_dlunknown;
8637
8638   if (self)
8639     {
8640       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8641       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8642       /* dlclose (self); */
8643     }
8644
8645     exit (status);
8646 }
8647 EOF
8648   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8649   (eval $ac_link) 2>&5
8650   ac_status=$?
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8653     (./conftest; exit; ) 2>/dev/null
8654     lt_status=$?
8655     case x$lt_status in
8656       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8657       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8658       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8659     esac
8660   else :
8661     # compilation failed
8662     lt_cv_dlopen_self=no
8663   fi
8664 fi
8665 rm -fr conftest*
8666
8667
8668 fi
8669 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8670 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8671
8672     if test "x$lt_cv_dlopen_self" = xyes; then
8673       LDFLAGS="$LDFLAGS $link_static_flag"
8674       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8675 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8676 if test "${lt_cv_dlopen_self_static+set}" = set; then
8677   echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679           if test "$cross_compiling" = yes; then :
8680   lt_cv_dlopen_self_static=cross
8681 else
8682   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8683   lt_status=$lt_dlunknown
8684   cat > conftest.$ac_ext <<EOF
8685 #line 8685 "configure"
8686 #include "confdefs.h"
8687
8688 #if HAVE_DLFCN_H
8689 #include <dlfcn.h>
8690 #endif
8691
8692 #include <stdio.h>
8693
8694 #ifdef RTLD_GLOBAL
8695 #  define LT_DLGLOBAL           RTLD_GLOBAL
8696 #else
8697 #  ifdef DL_GLOBAL
8698 #    define LT_DLGLOBAL         DL_GLOBAL
8699 #  else
8700 #    define LT_DLGLOBAL         0
8701 #  endif
8702 #endif
8703
8704 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8705    find out it does not work in some platform. */
8706 #ifndef LT_DLLAZY_OR_NOW
8707 #  ifdef RTLD_LAZY
8708 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8709 #  else
8710 #    ifdef DL_LAZY
8711 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8712 #    else
8713 #      ifdef RTLD_NOW
8714 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8715 #      else
8716 #        ifdef DL_NOW
8717 #          define LT_DLLAZY_OR_NOW      DL_NOW
8718 #        else
8719 #          define LT_DLLAZY_OR_NOW      0
8720 #        endif
8721 #      endif
8722 #    endif
8723 #  endif
8724 #endif
8725
8726 #ifdef __cplusplus
8727 extern "C" void exit (int);
8728 #endif
8729
8730 void fnord() { int i=42;}
8731 int main ()
8732 {
8733   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8734   int status = $lt_dlunknown;
8735
8736   if (self)
8737     {
8738       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8739       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8740       /* dlclose (self); */
8741     }
8742
8743     exit (status);
8744 }
8745 EOF
8746   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747   (eval $ac_link) 2>&5
8748   ac_status=$?
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8751     (./conftest; exit; ) 2>/dev/null
8752     lt_status=$?
8753     case x$lt_status in
8754       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8755       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8756       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8757     esac
8758   else :
8759     # compilation failed
8760     lt_cv_dlopen_self_static=no
8761   fi
8762 fi
8763 rm -fr conftest*
8764
8765
8766 fi
8767 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8768 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8769     fi
8770
8771     CPPFLAGS="$save_CPPFLAGS"
8772     LDFLAGS="$save_LDFLAGS"
8773     LIBS="$save_LIBS"
8774     ;;
8775   esac
8776
8777   case $lt_cv_dlopen_self in
8778   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8779   *) enable_dlopen_self=unknown ;;
8780   esac
8781
8782   case $lt_cv_dlopen_self_static in
8783   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8784   *) enable_dlopen_self_static=unknown ;;
8785   esac
8786 fi
8787
8788
8789 # Report which librarie types wil actually be built
8790 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8791 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8792 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8793 echo "${ECHO_T}$can_build_shared" >&6
8794
8795 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8796 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8797 test "$can_build_shared" = "no" && enable_shared=no
8798
8799 # On AIX, shared libraries and static libraries use the same namespace, and
8800 # are all built from PIC.
8801 case "$host_os" in
8802 aix3*)
8803   test "$enable_shared" = yes && enable_static=no
8804   if test -n "$RANLIB"; then
8805     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8806     postinstall_cmds='$RANLIB $lib'
8807   fi
8808   ;;
8809
8810 aix4*)
8811   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8812     test "$enable_shared" = yes && enable_static=no
8813   fi
8814   ;;
8815   darwin* | rhapsody*)
8816   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8817     archive_cmds_need_lc=no
8818     case "$host_os" in
8819     rhapsody* | darwin1.[012])
8820       allow_undefined_flag='-undefined suppress'
8821       ;;
8822     *) # Darwin 1.3 on
8823       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8824       ;;
8825     esac
8826     # FIXME: Relying on posixy $() will cause problems for
8827     #        cross-compilation, but unfortunately the echo tests do not
8828     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8829     #          `"' quotes if we put them in here... so don't!
8830                 output_verbose_link_cmd='echo'
8831     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8832     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8833     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8834                   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}'
8835                   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}'
8836     hardcode_direct=no
8837     hardcode_automatic=yes
8838     hardcode_shlibpath_var=unsupported
8839     whole_archive_flag_spec='-all_load $convenience'
8840     link_all_deplibs=yes
8841     fi
8842     ;;
8843 esac
8844 echo "$as_me:$LINENO: result: $enable_shared" >&5
8845 echo "${ECHO_T}$enable_shared" >&6
8846
8847 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8848 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8849 # Make sure either enable_shared or enable_static is yes.
8850 test "$enable_shared" = yes || enable_static=yes
8851 echo "$as_me:$LINENO: result: $enable_static" >&5
8852 echo "${ECHO_T}$enable_static" >&6
8853
8854 # The else clause should only fire when bootstrapping the
8855 # libtool distribution, otherwise you forgot to ship ltmain.sh
8856 # with your package, and you will get complaints that there are
8857 # no rules to generate ltmain.sh.
8858 if test -f "$ltmain"; then
8859   # See if we are running on zsh, and set the options which allow our commands through
8860   # without removal of \ escapes.
8861   if test -n "${ZSH_VERSION+set}" ; then
8862     setopt NO_GLOB_SUBST
8863   fi
8864   # Now quote all the things that may contain metacharacters while being
8865   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8866   # variables and quote the copies for generation of the libtool script.
8867   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8868     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8869     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8870     deplibs_check_method reload_flag reload_cmds need_locks \
8871     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8872     lt_cv_sys_global_symbol_to_c_name_address \
8873     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8874     old_postinstall_cmds old_postuninstall_cmds \
8875     compiler \
8876     CC \
8877     LD \
8878     lt_prog_compiler_wl \
8879     lt_prog_compiler_pic \
8880     lt_prog_compiler_static \
8881     lt_prog_compiler_no_builtin_flag \
8882     export_dynamic_flag_spec \
8883     thread_safe_flag_spec \
8884     whole_archive_flag_spec \
8885     enable_shared_with_static_runtimes \
8886     old_archive_cmds \
8887     old_archive_from_new_cmds \
8888     predep_objects \
8889     postdep_objects \
8890     predeps \
8891     postdeps \
8892     compiler_lib_search_path \
8893     archive_cmds \
8894     archive_expsym_cmds \
8895     postinstall_cmds \
8896     postuninstall_cmds \
8897     old_archive_from_expsyms_cmds \
8898     allow_undefined_flag \
8899     no_undefined_flag \
8900     export_symbols_cmds \
8901     hardcode_libdir_flag_spec \
8902     hardcode_libdir_flag_spec_ld \
8903     hardcode_libdir_separator \
8904     hardcode_automatic \
8905     module_cmds \
8906     module_expsym_cmds \
8907     lt_cv_prog_compiler_c_o \
8908     exclude_expsyms \
8909     include_expsyms; do
8910
8911     case $var in
8912     old_archive_cmds | \
8913     old_archive_from_new_cmds | \
8914     archive_cmds | \
8915     archive_expsym_cmds | \
8916     module_cmds | \
8917     module_expsym_cmds | \
8918     old_archive_from_expsyms_cmds | \
8919     export_symbols_cmds | \
8920     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8921     postinstall_cmds | postuninstall_cmds | \
8922     old_postinstall_cmds | old_postuninstall_cmds | \
8923     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8924       # Double-quote double-evaled strings.
8925       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8926       ;;
8927     *)
8928       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8929       ;;
8930     esac
8931   done
8932
8933   case $lt_echo in
8934   *'\$0 --fallback-echo"')
8935     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8936     ;;
8937   esac
8938
8939 cfgfile="${ofile}T"
8940   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8941   $rm -f "$cfgfile"
8942   { echo "$as_me:$LINENO: creating $ofile" >&5
8943 echo "$as_me: creating $ofile" >&6;}
8944
8945   cat <<__EOF__ >> "$cfgfile"
8946 #! $SHELL
8947
8948 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8949 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8950 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8951 #
8952 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8953 # Free Software Foundation, Inc.
8954 #
8955 # This file is part of GNU Libtool:
8956 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8957 #
8958 # This program is free software; you can redistribute it and/or modify
8959 # it under the terms of the GNU General Public License as published by
8960 # the Free Software Foundation; either version 2 of the License, or
8961 # (at your option) any later version.
8962 #
8963 # This program is distributed in the hope that it will be useful, but
8964 # WITHOUT ANY WARRANTY; without even the implied warranty of
8965 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8966 # General Public License for more details.
8967 #
8968 # You should have received a copy of the GNU General Public License
8969 # along with this program; if not, write to the Free Software
8970 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8971 #
8972 # As a special exception to the GNU General Public License, if you
8973 # distribute this file as part of a program that contains a
8974 # configuration script generated by Autoconf, you may include it under
8975 # the same distribution terms that you use for the rest of that program.
8976
8977 # A sed program that does not truncate output.
8978 SED=$lt_SED
8979
8980 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8981 Xsed="$SED -e s/^X//"
8982
8983 # The HP-UX ksh and POSIX shell print the target directory to stdout
8984 # if CDPATH is set.
8985 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8986
8987 # The names of the tagged configurations supported by this script.
8988 available_tags=
8989
8990 # ### BEGIN LIBTOOL CONFIG
8991
8992 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8993
8994 # Shell to use when invoking shell scripts.
8995 SHELL=$lt_SHELL
8996
8997 # Whether or not to build shared libraries.
8998 build_libtool_libs=$enable_shared
8999
9000 # Whether or not to build static libraries.
9001 build_old_libs=$enable_static
9002
9003 # Whether or not to add -lc for building shared libraries.
9004 build_libtool_need_lc=$archive_cmds_need_lc
9005
9006 # Whether or not to disallow shared libs when runtime libs are static
9007 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9008
9009 # Whether or not to optimize for fast installation.
9010 fast_install=$enable_fast_install
9011
9012 # The host system.
9013 host_alias=$host_alias
9014 host=$host
9015
9016 # An echo program that does not interpret backslashes.
9017 echo=$lt_echo
9018
9019 # The archiver.
9020 AR=$lt_AR
9021 AR_FLAGS=$lt_AR_FLAGS
9022
9023 # A C compiler.
9024 LTCC=$lt_LTCC
9025
9026 # A language-specific compiler.
9027 CC=$lt_compiler
9028
9029 # Is the compiler the GNU C compiler?
9030 with_gcc=$GCC
9031
9032 # An ERE matcher.
9033 EGREP=$lt_EGREP
9034
9035 # The linker used to build libraries.
9036 LD=$lt_LD
9037
9038 # Whether we need hard or soft links.
9039 LN_S=$lt_LN_S
9040
9041 # A BSD-compatible nm program.
9042 NM=$lt_NM
9043
9044 # A symbol stripping program
9045 STRIP=$STRIP
9046
9047 # Used to examine libraries when file_magic_cmd begins "file"
9048 MAGIC_CMD=$MAGIC_CMD
9049
9050 # Used on cygwin: DLL creation program.
9051 DLLTOOL="$DLLTOOL"
9052
9053 # Used on cygwin: object dumper.
9054 OBJDUMP="$OBJDUMP"
9055
9056 # Used on cygwin: assembler.
9057 AS="$AS"
9058
9059 # The name of the directory that contains temporary libtool files.
9060 objdir=$objdir
9061
9062 # How to create reloadable object files.
9063 reload_flag=$lt_reload_flag
9064 reload_cmds=$lt_reload_cmds
9065
9066 # How to pass a linker flag through the compiler.
9067 wl=$lt_lt_prog_compiler_wl
9068
9069 # Object file suffix (normally "o").
9070 objext="$ac_objext"
9071
9072 # Old archive suffix (normally "a").
9073 libext="$libext"
9074
9075 # Shared library suffix (normally ".so").
9076 shrext='$shrext'
9077
9078 # Executable file suffix (normally "").
9079 exeext="$exeext"
9080
9081 # Additional compiler flags for building library objects.
9082 pic_flag=$lt_lt_prog_compiler_pic
9083 pic_mode=$pic_mode
9084
9085 # What is the maximum length of a command?
9086 max_cmd_len=$lt_cv_sys_max_cmd_len
9087
9088 # Does compiler simultaneously support -c and -o options?
9089 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9090
9091 # Must we lock files when doing compilation ?
9092 need_locks=$lt_need_locks
9093
9094 # Do we need the lib prefix for modules?
9095 need_lib_prefix=$need_lib_prefix
9096
9097 # Do we need a version for libraries?
9098 need_version=$need_version
9099
9100 # Whether dlopen is supported.
9101 dlopen_support=$enable_dlopen
9102
9103 # Whether dlopen of programs is supported.
9104 dlopen_self=$enable_dlopen_self
9105
9106 # Whether dlopen of statically linked programs is supported.
9107 dlopen_self_static=$enable_dlopen_self_static
9108
9109 # Compiler flag to prevent dynamic linking.
9110 link_static_flag=$lt_lt_prog_compiler_static
9111
9112 # Compiler flag to turn off builtin functions.
9113 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9114
9115 # Compiler flag to allow reflexive dlopens.
9116 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9117
9118 # Compiler flag to generate shared objects directly from archives.
9119 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9120
9121 # Compiler flag to generate thread-safe objects.
9122 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9123
9124 # Library versioning type.
9125 version_type=$version_type
9126
9127 # Format of library name prefix.
9128 libname_spec=$lt_libname_spec
9129
9130 # List of archive names.  First name is the real one, the rest are links.
9131 # The last name is the one that the linker finds with -lNAME.
9132 library_names_spec=$lt_library_names_spec
9133
9134 # The coded name of the library, if different from the real name.
9135 soname_spec=$lt_soname_spec
9136
9137 # Commands used to build and install an old-style archive.
9138 RANLIB=$lt_RANLIB
9139 old_archive_cmds=$lt_old_archive_cmds
9140 old_postinstall_cmds=$lt_old_postinstall_cmds
9141 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9142
9143 # Create an old-style archive from a shared archive.
9144 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9145
9146 # Create a temporary old-style archive to link instead of a shared archive.
9147 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9148
9149 # Commands used to build and install a shared archive.
9150 archive_cmds=$lt_archive_cmds
9151 archive_expsym_cmds=$lt_archive_expsym_cmds
9152 postinstall_cmds=$lt_postinstall_cmds
9153 postuninstall_cmds=$lt_postuninstall_cmds
9154
9155 # Commands used to build a loadable module (assumed same as above if empty)
9156 module_cmds=$lt_module_cmds
9157 module_expsym_cmds=$lt_module_expsym_cmds
9158
9159 # Commands to strip libraries.
9160 old_striplib=$lt_old_striplib
9161 striplib=$lt_striplib
9162
9163 # Dependencies to place before the objects being linked to create a
9164 # shared library.
9165 predep_objects=$lt_predep_objects
9166
9167 # Dependencies to place after the objects being linked to create a
9168 # shared library.
9169 postdep_objects=$lt_postdep_objects
9170
9171 # Dependencies to place before the objects being linked to create a
9172 # shared library.
9173 predeps=$lt_predeps
9174
9175 # Dependencies to place after the objects being linked to create a
9176 # shared library.
9177 postdeps=$lt_postdeps
9178
9179 # The library search path used internally by the compiler when linking
9180 # a shared library.
9181 compiler_lib_search_path=$lt_compiler_lib_search_path
9182
9183 # Method to check whether dependent libraries are shared objects.
9184 deplibs_check_method=$lt_deplibs_check_method
9185
9186 # Command to use when deplibs_check_method == file_magic.
9187 file_magic_cmd=$lt_file_magic_cmd
9188
9189 # Flag that allows shared libraries with undefined symbols to be built.
9190 allow_undefined_flag=$lt_allow_undefined_flag
9191
9192 # Flag that forces no undefined symbols.
9193 no_undefined_flag=$lt_no_undefined_flag
9194
9195 # Commands used to finish a libtool library installation in a directory.
9196 finish_cmds=$lt_finish_cmds
9197
9198 # Same as above, but a single script fragment to be evaled but not shown.
9199 finish_eval=$lt_finish_eval
9200
9201 # Take the output of nm and produce a listing of raw symbols and C names.
9202 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9203
9204 # Transform the output of nm in a proper C declaration
9205 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9206
9207 # Transform the output of nm in a C name address pair
9208 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9209
9210 # This is the shared library runtime path variable.
9211 runpath_var=$runpath_var
9212
9213 # This is the shared library path variable.
9214 shlibpath_var=$shlibpath_var
9215
9216 # Is shlibpath searched before the hard-coded library search path?
9217 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9218
9219 # How to hardcode a shared library path into an executable.
9220 hardcode_action=$hardcode_action
9221
9222 # Whether we should hardcode library paths into libraries.
9223 hardcode_into_libs=$hardcode_into_libs
9224
9225 # Flag to hardcode \$libdir into a binary during linking.
9226 # This must work even if \$libdir does not exist.
9227 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9228
9229 # If ld is used when linking, flag to hardcode \$libdir into
9230 # a binary during linking. This must work even if \$libdir does
9231 # not exist.
9232 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9233
9234 # Whether we need a single -rpath flag with a separated argument.
9235 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9236
9237 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9238 # resulting binary.
9239 hardcode_direct=$hardcode_direct
9240
9241 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9242 # resulting binary.
9243 hardcode_minus_L=$hardcode_minus_L
9244
9245 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9246 # the resulting binary.
9247 hardcode_shlibpath_var=$hardcode_shlibpath_var
9248
9249 # Set to yes if building a shared library automatically hardcodes DIR into the library
9250 # and all subsequent libraries and executables linked against it.
9251 hardcode_automatic=$hardcode_automatic
9252
9253 # Variables whose values should be saved in libtool wrapper scripts and
9254 # restored at relink time.
9255 variables_saved_for_relink="$variables_saved_for_relink"
9256
9257 # Whether libtool must link a program against all its dependency libraries.
9258 link_all_deplibs=$link_all_deplibs
9259
9260 # Compile-time system search path for libraries
9261 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9262
9263 # Run-time system search path for libraries
9264 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9265
9266 # Fix the shell variable \$srcfile for the compiler.
9267 fix_srcfile_path="$fix_srcfile_path"
9268
9269 # Set to yes if exported symbols are required.
9270 always_export_symbols=$always_export_symbols
9271
9272 # The commands to list exported symbols.
9273 export_symbols_cmds=$lt_export_symbols_cmds
9274
9275 # The commands to extract the exported symbol list from a shared archive.
9276 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9277
9278 # Symbols that should not be listed in the preloaded symbols.
9279 exclude_expsyms=$lt_exclude_expsyms
9280
9281 # Symbols that must always be exported.
9282 include_expsyms=$lt_include_expsyms
9283
9284 # ### END LIBTOOL CONFIG
9285
9286 __EOF__
9287
9288
9289   case $host_os in
9290   aix3*)
9291     cat <<\EOF >> "$cfgfile"
9292
9293 # AIX sometimes has problems with the GCC collect2 program.  For some
9294 # reason, if we set the COLLECT_NAMES environment variable, the problems
9295 # vanish in a puff of smoke.
9296 if test "X${COLLECT_NAMES+set}" != Xset; then
9297   COLLECT_NAMES=
9298   export COLLECT_NAMES
9299 fi
9300 EOF
9301     ;;
9302   esac
9303
9304   # We use sed instead of cat because bash on DJGPP gets confused if
9305   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9306   # text mode, it properly converts lines to CR/LF.  This bash problem
9307   # is reportedly fixed, but why not run on old versions too?
9308   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9309
9310   mv -f "$cfgfile" "$ofile" || \
9311     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9312   chmod +x "$ofile"
9313
9314 else
9315   # If there is no Makefile yet, we rely on a make rule to execute
9316   # `config.status --recheck' to rerun these tests and create the
9317   # libtool script then.
9318   test -f Makefile && make "$ltmain"
9319 fi
9320
9321
9322 ac_ext=c
9323 ac_cpp='$CPP $CPPFLAGS'
9324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9327
9328 CC="$lt_save_CC"
9329
9330
9331 # Check whether --with-tags or --without-tags was given.
9332 if test "${with_tags+set}" = set; then
9333   withval="$with_tags"
9334   tagnames="$withval"
9335 fi;
9336
9337 if test -f "$ltmain" && test -n "$tagnames"; then
9338   if test ! -f "${ofile}"; then
9339     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9340 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9341   fi
9342
9343   if test -z "$LTCC"; then
9344     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9345     if test -z "$LTCC"; then
9346       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9347 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9348     else
9349       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9350 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9351     fi
9352   fi
9353
9354   # Extract list of available tagged configurations in $ofile.
9355   # Note that this assumes the entire list is on one line.
9356   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9357
9358   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9359   for tagname in $tagnames; do
9360     IFS="$lt_save_ifs"
9361     # Check whether tagname contains only valid characters
9362     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9363     "") ;;
9364     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9365 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9366    { (exit 1); exit 1; }; }
9367         ;;
9368     esac
9369
9370     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9371     then
9372       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9373 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9374    { (exit 1); exit 1; }; }
9375     fi
9376
9377     # Update the list of available tags.
9378     if test -n "$tagname"; then
9379       echo appending configuration tag \"$tagname\" to $ofile
9380
9381       case $tagname in
9382       CXX)
9383         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9384           ac_ext=cc
9385 ac_cpp='$CXXCPP $CPPFLAGS'
9386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9389
9390
9391
9392
9393 archive_cmds_need_lc_CXX=no
9394 allow_undefined_flag_CXX=
9395 always_export_symbols_CXX=no
9396 archive_expsym_cmds_CXX=
9397 export_dynamic_flag_spec_CXX=
9398 hardcode_direct_CXX=no
9399 hardcode_libdir_flag_spec_CXX=
9400 hardcode_libdir_flag_spec_ld_CXX=
9401 hardcode_libdir_separator_CXX=
9402 hardcode_minus_L_CXX=no
9403 hardcode_automatic_CXX=no
9404 module_cmds_CXX=
9405 module_expsym_cmds_CXX=
9406 link_all_deplibs_CXX=unknown
9407 old_archive_cmds_CXX=$old_archive_cmds
9408 no_undefined_flag_CXX=
9409 whole_archive_flag_spec_CXX=
9410 enable_shared_with_static_runtimes_CXX=no
9411
9412 # Dependencies to place before and after the object being linked:
9413 predep_objects_CXX=
9414 postdep_objects_CXX=
9415 predeps_CXX=
9416 postdeps_CXX=
9417 compiler_lib_search_path_CXX=
9418
9419 # Source file extension for C++ test sources.
9420 ac_ext=cc
9421
9422 # Object file extension for compiled C++ test sources.
9423 objext=o
9424 objext_CXX=$objext
9425
9426 # Code to be used in simple compile tests
9427 lt_simple_compile_test_code="int some_variable = 0;\n"
9428
9429 # Code to be used in simple link tests
9430 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9431
9432 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9433
9434 # If no C compiler was specified, use CC.
9435 LTCC=${LTCC-"$CC"}
9436
9437 # Allow CC to be a program name with arguments.
9438 compiler=$CC
9439
9440
9441 # Allow CC to be a program name with arguments.
9442 lt_save_CC=$CC
9443 lt_save_LD=$LD
9444 lt_save_GCC=$GCC
9445 GCC=$GXX
9446 lt_save_with_gnu_ld=$with_gnu_ld
9447 lt_save_path_LD=$lt_cv_path_LD
9448 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9449   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9450 else
9451   unset lt_cv_prog_gnu_ld
9452 fi
9453 if test -n "${lt_cv_path_LDCXX+set}"; then
9454   lt_cv_path_LD=$lt_cv_path_LDCXX
9455 else
9456   unset lt_cv_path_LD
9457 fi
9458 test -z "${LDCXX+set}" || LD=$LDCXX
9459 CC=${CXX-"c++"}
9460 compiler=$CC
9461 compiler_CXX=$CC
9462 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9463
9464 # We don't want -fno-exception wen compiling C++ code, so set the
9465 # no_builtin_flag separately
9466 if test "$GXX" = yes; then
9467   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9468 else
9469   lt_prog_compiler_no_builtin_flag_CXX=
9470 fi
9471
9472 if test "$GXX" = yes; then
9473   # Set up default GNU C++ configuration
9474
9475
9476 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9477 if test "${with_gnu_ld+set}" = set; then
9478   withval="$with_gnu_ld"
9479   test "$withval" = no || with_gnu_ld=yes
9480 else
9481   with_gnu_ld=no
9482 fi;
9483 ac_prog=ld
9484 if test "$GCC" = yes; then
9485   # Check if gcc -print-prog-name=ld gives a path.
9486   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9487 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9488   case $host in
9489   *-*-mingw*)
9490     # gcc leaves a trailing carriage return which upsets mingw
9491     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9492   *)
9493     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9494   esac
9495   case $ac_prog in
9496     # Accept absolute paths.
9497     [\\/]* | ?:[\\/]*)
9498       re_direlt='/[^/][^/]*/\.\./'
9499       # Canonicalize the path of ld
9500       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9501       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9502         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9503       done
9504       test -z "$LD" && LD="$ac_prog"
9505       ;;
9506   "")
9507     # If it fails, then pretend we aren't using GCC.
9508     ac_prog=ld
9509     ;;
9510   *)
9511     # If it is relative, then search for the first ld in PATH.
9512     with_gnu_ld=unknown
9513     ;;
9514   esac
9515 elif test "$with_gnu_ld" = yes; then
9516   echo "$as_me:$LINENO: checking for GNU ld" >&5
9517 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9518 else
9519   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9520 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9521 fi
9522 if test "${lt_cv_path_LD+set}" = set; then
9523   echo $ECHO_N "(cached) $ECHO_C" >&6
9524 else
9525   if test -z "$LD"; then
9526   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9527   for ac_dir in $PATH; do
9528     IFS="$lt_save_ifs"
9529     test -z "$ac_dir" && ac_dir=.
9530     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9531       lt_cv_path_LD="$ac_dir/$ac_prog"
9532       # Check to see if the program is GNU ld.  I'd rather use --version,
9533       # but apparently some GNU ld's only accept -v.
9534       # Break only if it was the GNU/non-GNU ld that we prefer.
9535       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9536       *GNU* | *'with BFD'*)
9537         test "$with_gnu_ld" != no && break
9538         ;;
9539       *)
9540         test "$with_gnu_ld" != yes && break
9541         ;;
9542       esac
9543     fi
9544   done
9545   IFS="$lt_save_ifs"
9546 else
9547   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9548 fi
9549 fi
9550
9551 LD="$lt_cv_path_LD"
9552 if test -n "$LD"; then
9553   echo "$as_me:$LINENO: result: $LD" >&5
9554 echo "${ECHO_T}$LD" >&6
9555 else
9556   echo "$as_me:$LINENO: result: no" >&5
9557 echo "${ECHO_T}no" >&6
9558 fi
9559 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9560 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9561    { (exit 1); exit 1; }; }
9562 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9563 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9564 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9565   echo $ECHO_N "(cached) $ECHO_C" >&6
9566 else
9567   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9568 case `"$LD" -v 2>&1 </dev/null` in
9569 *GNU* | *'with BFD'*)
9570   lt_cv_prog_gnu_ld=yes
9571   ;;
9572 *)
9573   lt_cv_prog_gnu_ld=no
9574   ;;
9575 esac
9576 fi
9577 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9578 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9579 with_gnu_ld=$lt_cv_prog_gnu_ld
9580
9581
9582
9583   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9584   # archiving commands below assume that GNU ld is being used.
9585   if test "$with_gnu_ld" = yes; then
9586     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9587     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'
9588
9589     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9590     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9591
9592     # If archive_cmds runs LD, not CC, wlarc should be empty
9593     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9594     #     investigate it a little bit more. (MM)
9595     wlarc='${wl}'
9596
9597     # ancient GNU ld didn't support --whole-archive et. al.
9598     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9599         grep 'no-whole-archive' > /dev/null; then
9600       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9601     else
9602       whole_archive_flag_spec_CXX=
9603     fi
9604   else
9605     with_gnu_ld=no
9606     wlarc=
9607
9608     # A generic and very simple default shared library creation
9609     # command for GNU C++ for the case where it uses the native
9610     # linker, instead of GNU ld.  If possible, this setting should
9611     # overridden to take advantage of the native linker features on
9612     # the platform it is being used on.
9613     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9614   fi
9615
9616   # Commands to make compiler produce verbose output that lists
9617   # what "hidden" libraries, object files and flags are used when
9618   # linking a shared library.
9619   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9620
9621 else
9622   GXX=no
9623   with_gnu_ld=no
9624   wlarc=
9625 fi
9626
9627 # PORTME: fill in a description of your system's C++ link characteristics
9628 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9629 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9630 ld_shlibs_CXX=yes
9631 case $host_os in
9632   aix3*)
9633     # FIXME: insert proper C++ library support
9634     ld_shlibs_CXX=no
9635     ;;
9636   aix4* | aix5*)
9637     if test "$host_cpu" = ia64; then
9638       # On IA64, the linker does run time linking by default, so we don't
9639       # have to do anything special.
9640       aix_use_runtimelinking=no
9641       exp_sym_flag='-Bexport'
9642       no_entry_flag=""
9643     else
9644       aix_use_runtimelinking=no
9645
9646       # Test if we are trying to use run time linking or normal
9647       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9648       # need to do runtime linking.
9649       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9650         for ld_flag in $LDFLAGS; do
9651           case $ld_flag in
9652           *-brtl*)
9653             aix_use_runtimelinking=yes
9654             break
9655             ;;
9656           esac
9657         done
9658       esac
9659
9660       exp_sym_flag='-bexport'
9661       no_entry_flag='-bnoentry'
9662     fi
9663
9664     # When large executables or shared objects are built, AIX ld can
9665     # have problems creating the table of contents.  If linking a library
9666     # or program results in "error TOC overflow" add -mminimal-toc to
9667     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9668     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9669
9670     archive_cmds_CXX=''
9671     hardcode_direct_CXX=yes
9672     hardcode_libdir_separator_CXX=':'
9673     link_all_deplibs_CXX=yes
9674
9675     if test "$GXX" = yes; then
9676       case $host_os in aix4.012|aix4.012.*)
9677       # We only want to do this on AIX 4.2 and lower, the check
9678       # below for broken collect2 doesn't work under 4.3+
9679         collect2name=`${CC} -print-prog-name=collect2`
9680         if test -f "$collect2name" && \
9681            strings "$collect2name" | grep resolve_lib_name >/dev/null
9682         then
9683           # We have reworked collect2
9684           hardcode_direct_CXX=yes
9685         else
9686           # We have old collect2
9687           hardcode_direct_CXX=unsupported
9688           # It fails to find uninstalled libraries when the uninstalled
9689           # path is not listed in the libpath.  Setting hardcode_minus_L
9690           # to unsupported forces relinking
9691           hardcode_minus_L_CXX=yes
9692           hardcode_libdir_flag_spec_CXX='-L$libdir'
9693           hardcode_libdir_separator_CXX=
9694         fi
9695       esac
9696       shared_flag='-shared'
9697     else
9698       # not using gcc
9699       if test "$host_cpu" = ia64; then
9700         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9701         # chokes on -Wl,-G. The following line is correct:
9702         shared_flag='-G'
9703       else
9704         if test "$aix_use_runtimelinking" = yes; then
9705           shared_flag='${wl}-G'
9706         else
9707           shared_flag='${wl}-bM:SRE'
9708         fi
9709       fi
9710     fi
9711
9712     # It seems that -bexpall does not export symbols beginning with
9713     # underscore (_), so it is better to generate a list of symbols to export.
9714     always_export_symbols_CXX=yes
9715     if test "$aix_use_runtimelinking" = yes; then
9716       # Warning - without using the other runtime loading flags (-brtl),
9717       # -berok will link without error, but may produce a broken library.
9718       allow_undefined_flag_CXX='-berok'
9719       # Determine the default libpath from the value encoded in an empty executable.
9720       cat >conftest.$ac_ext <<_ACEOF
9721 #line $LINENO "configure"
9722 /* confdefs.h.  */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h.  */
9727
9728 int
9729 main ()
9730 {
9731
9732   ;
9733   return 0;
9734 }
9735 _ACEOF
9736 rm -f conftest.$ac_objext conftest$ac_exeext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9738   (eval $ac_link) 2>&5
9739   ac_status=$?
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); } &&
9742          { ac_try='test -s conftest$ac_exeext'
9743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744   (eval $ac_try) 2>&5
9745   ac_status=$?
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); }; }; then
9748
9749 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9750 }'`
9751 # Check for a 64-bit object if we didn't find anything.
9752 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; }
9753 }'`; fi
9754 else
9755   echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9757
9758 fi
9759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9760 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9761
9762       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9763
9764       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"
9765      else
9766       if test "$host_cpu" = ia64; then
9767         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9768         allow_undefined_flag_CXX="-z nodefs"
9769         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"
9770       else
9771         # Determine the default libpath from the value encoded in an empty executable.
9772         cat >conftest.$ac_ext <<_ACEOF
9773 #line $LINENO "configure"
9774 /* confdefs.h.  */
9775 _ACEOF
9776 cat confdefs.h >>conftest.$ac_ext
9777 cat >>conftest.$ac_ext <<_ACEOF
9778 /* end confdefs.h.  */
9779
9780 int
9781 main ()
9782 {
9783
9784   ;
9785   return 0;
9786 }
9787 _ACEOF
9788 rm -f conftest.$ac_objext conftest$ac_exeext
9789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9790   (eval $ac_link) 2>&5
9791   ac_status=$?
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); } &&
9794          { ac_try='test -s conftest$ac_exeext'
9795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796   (eval $ac_try) 2>&5
9797   ac_status=$?
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); }; }; then
9800
9801 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9802 }'`
9803 # Check for a 64-bit object if we didn't find anything.
9804 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; }
9805 }'`; fi
9806 else
9807   echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9809
9810 fi
9811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9812 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9813
9814         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9815         # Warning - without using the other run time loading flags,
9816         # -berok will link without error, but may produce a broken library.
9817         no_undefined_flag_CXX=' ${wl}-bernotok'
9818         allow_undefined_flag_CXX=' ${wl}-berok'
9819         # -bexpall does not export symbols beginning with underscore (_)
9820         always_export_symbols_CXX=yes
9821         # Exported symbols can be pulled into shared objects from archives
9822         whole_archive_flag_spec_CXX=' '
9823         archive_cmds_need_lc_CXX=yes
9824         # This is similar to how AIX traditionally builds it's shared libraries.
9825         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'
9826       fi
9827     fi
9828     ;;
9829   chorus*)
9830     case $cc_basename in
9831       *)
9832         # FIXME: insert proper C++ library support
9833         ld_shlibs_CXX=no
9834         ;;
9835     esac
9836     ;;
9837
9838   cygwin* | mingw* | pw32*)
9839     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9840     # as there is no search path for DLLs.
9841     hardcode_libdir_flag_spec_CXX='-L$libdir'
9842     allow_undefined_flag_CXX=unsupported
9843     always_export_symbols_CXX=no
9844     enable_shared_with_static_runtimes_CXX=yes
9845
9846     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9847       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'
9848       # If the export-symbols file already is a .def file (1st line
9849       # is EXPORTS), use it as is; otherwise, prepend...
9850       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9851         cp $export_symbols $output_objdir/$soname.def;
9852       else
9853         echo EXPORTS > $output_objdir/$soname.def;
9854         cat $export_symbols >> $output_objdir/$soname.def;
9855       fi~
9856       $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'
9857     else
9858       ld_shlibs_CXX=no
9859     fi
9860   ;;
9861
9862   darwin* | rhapsody*)
9863    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9864     archive_cmds_need_lc_CXX=no
9865     case "$host_os" in
9866     rhapsody* | darwin1.[012])
9867       allow_undefined_flag_CXX='-undefined suppress'
9868       ;;
9869     *) # Darwin 1.3 on
9870       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9871       ;;
9872     esac
9873         lt_int_apple_cc_single_mod=no
9874         output_verbose_link_cmd='echo'
9875         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9876           lt_int_apple_cc_single_mod=yes
9877         fi
9878         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9879           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9880         else
9881         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'
9882       fi
9883       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9884
9885     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9886       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9887         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}'
9888       else
9889         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}'
9890       fi
9891         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}'
9892     hardcode_direct_CXX=no
9893     hardcode_automatic_CXX=yes
9894     hardcode_shlibpath_var_CXX=unsupported
9895     whole_archive_flag_spec_CXX='-all_load $convenience'
9896     link_all_deplibs_CXX=yes
9897    fi
9898     ;;
9899
9900   dgux*)
9901     case $cc_basename in
9902       ec++)
9903         # FIXME: insert proper C++ library support
9904         ld_shlibs_CXX=no
9905         ;;
9906       ghcx)
9907         # Green Hills C++ Compiler
9908         # FIXME: insert proper C++ library support
9909         ld_shlibs_CXX=no
9910         ;;
9911       *)
9912         # FIXME: insert proper C++ library support
9913         ld_shlibs_CXX=no
9914         ;;
9915     esac
9916     ;;
9917   freebsd12*)
9918     # C++ shared libraries reported to be fairly broken before switch to ELF
9919     ld_shlibs_CXX=no
9920     ;;
9921   freebsd-elf*)
9922     archive_cmds_need_lc_CXX=no
9923     ;;
9924   freebsd*)
9925     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9926     # conventions
9927     ld_shlibs_CXX=yes
9928     ;;
9929   gnu*)
9930     ;;
9931   hpux9*)
9932     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9933     hardcode_libdir_separator_CXX=:
9934     export_dynamic_flag_spec_CXX='${wl}-E'
9935     hardcode_direct_CXX=yes
9936     hardcode_minus_L_CXX=yes # Not in the search PATH,
9937                                 # but as the default
9938                                 # location of the library.
9939
9940     case $cc_basename in
9941     CC)
9942       # FIXME: insert proper C++ library support
9943       ld_shlibs_CXX=no
9944       ;;
9945     aCC)
9946       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'
9947       # Commands to make compiler produce verbose output that lists
9948       # what "hidden" libraries, object files and flags are used when
9949       # linking a shared library.
9950       #
9951       # There doesn't appear to be a way to prevent this compiler from
9952       # explicitly linking system object files so we need to strip them
9953       # from the output so that they don't get included in the library
9954       # dependencies.
9955       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'
9956       ;;
9957     *)
9958       if test "$GXX" = yes; then
9959         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'
9960       else
9961         # FIXME: insert proper C++ library support
9962         ld_shlibs_CXX=no
9963       fi
9964       ;;
9965     esac
9966     ;;
9967   hpux10*|hpux11*)
9968     if test $with_gnu_ld = no; then
9969       case "$host_cpu" in
9970       hppa*64*)
9971         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9972         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9973         hardcode_libdir_separator_CXX=:
9974         ;;
9975       ia64*)
9976         hardcode_libdir_flag_spec_CXX='-L$libdir'
9977         ;;
9978       *)
9979         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9980         hardcode_libdir_separator_CXX=:
9981         export_dynamic_flag_spec_CXX='${wl}-E'
9982         ;;
9983       esac
9984     fi
9985     case "$host_cpu" in
9986     hppa*64*)
9987       hardcode_direct_CXX=no
9988       hardcode_shlibpath_var_CXX=no
9989       ;;
9990     ia64*)
9991       hardcode_direct_CXX=no
9992       hardcode_shlibpath_var_CXX=no
9993       hardcode_minus_L_CXX=yes # Not in the search PATH,
9994                                               # but as the default
9995                                               # location of the library.
9996       ;;
9997     *)
9998       hardcode_direct_CXX=yes
9999       hardcode_minus_L_CXX=yes # Not in the search PATH,
10000                                               # but as the default
10001                                               # location of the library.
10002       ;;
10003     esac
10004
10005     case $cc_basename in
10006       CC)
10007         # FIXME: insert proper C++ library support
10008         ld_shlibs_CXX=no
10009         ;;
10010       aCC)
10011         case "$host_cpu" in
10012         hppa*64*|ia64*)
10013           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10014           ;;
10015         *)
10016           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10017           ;;
10018         esac
10019         # Commands to make compiler produce verbose output that lists
10020         # what "hidden" libraries, object files and flags are used when
10021         # linking a shared library.
10022         #
10023         # There doesn't appear to be a way to prevent this compiler from
10024         # explicitly linking system object files so we need to strip them
10025         # from the output so that they don't get included in the library
10026         # dependencies.
10027         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10028         ;;
10029       *)
10030         if test "$GXX" = yes; then
10031           if test $with_gnu_ld = no; then
10032             case "$host_cpu" in
10033             ia64*|hppa*64*)
10034               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10035               ;;
10036             *)
10037               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'
10038               ;;
10039             esac
10040           fi
10041         else
10042           # FIXME: insert proper C++ library support
10043           ld_shlibs_CXX=no
10044         fi
10045         ;;
10046     esac
10047     ;;
10048   irix5* | irix6*)
10049     case $cc_basename in
10050       CC)
10051         # SGI C++
10052         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'
10053
10054         # Archives containing C++ object files must be created using
10055         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10056         # necessary to make sure instantiated templates are included
10057         # in the archive.
10058         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10059         ;;
10060       *)
10061         if test "$GXX" = yes; then
10062           if test "$with_gnu_ld" = no; then
10063             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'
10064           else
10065             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'
10066           fi
10067         fi
10068         link_all_deplibs_CXX=yes
10069         ;;
10070     esac
10071     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10072     hardcode_libdir_separator_CXX=:
10073     ;;
10074   linux*)
10075     case $cc_basename in
10076       KCC)
10077         # Kuck and Associates, Inc. (KAI) C++ Compiler
10078
10079         # KCC will only create a shared library if the output file
10080         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10081         # to its proper name (with version) after linking.
10082         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'
10083         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'
10084         # Commands to make compiler produce verbose output that lists
10085         # what "hidden" libraries, object files and flags are used when
10086         # linking a shared library.
10087         #
10088         # There doesn't appear to be a way to prevent this compiler from
10089         # explicitly linking system object files so we need to strip them
10090         # from the output so that they don't get included in the library
10091         # dependencies.
10092         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'
10093
10094         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10095         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10096
10097         # Archives containing C++ object files must be created using
10098         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10099         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10100         ;;
10101       icpc)
10102         # Intel C++
10103         with_gnu_ld=yes
10104         archive_cmds_need_lc_CXX=no
10105         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106         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'
10107         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10108         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10109         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10110         ;;
10111       cxx)
10112         # Compaq C++
10113         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10114         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'
10115
10116         runpath_var=LD_RUN_PATH
10117         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10118         hardcode_libdir_separator_CXX=:
10119
10120         # Commands to make compiler produce verbose output that lists
10121         # what "hidden" libraries, object files and flags are used when
10122         # linking a shared library.
10123         #
10124         # There doesn't appear to be a way to prevent this compiler from
10125         # explicitly linking system object files so we need to strip them
10126         # from the output so that they don't get included in the library
10127         # dependencies.
10128         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'
10129         ;;
10130     esac
10131     ;;
10132   lynxos*)
10133     # FIXME: insert proper C++ library support
10134     ld_shlibs_CXX=no
10135     ;;
10136   m88k*)
10137     # FIXME: insert proper C++ library support
10138     ld_shlibs_CXX=no
10139     ;;
10140   mvs*)
10141     case $cc_basename in
10142       cxx)
10143         # FIXME: insert proper C++ library support
10144         ld_shlibs_CXX=no
10145         ;;
10146       *)
10147         # FIXME: insert proper C++ library support
10148         ld_shlibs_CXX=no
10149         ;;
10150     esac
10151     ;;
10152   netbsd*)
10153     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10154       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10155       wlarc=
10156       hardcode_libdir_flag_spec_CXX='-R$libdir'
10157       hardcode_direct_CXX=yes
10158       hardcode_shlibpath_var_CXX=no
10159     fi
10160     # Workaround some broken pre-1.5 toolchains
10161     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10162     ;;
10163   osf3*)
10164     case $cc_basename in
10165       KCC)
10166         # Kuck and Associates, Inc. (KAI) C++ Compiler
10167
10168         # KCC will only create a shared library if the output file
10169         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10170         # to its proper name (with version) after linking.
10171         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'
10172
10173         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10174         hardcode_libdir_separator_CXX=:
10175
10176         # Archives containing C++ object files must be created using
10177         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10178         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10179
10180         ;;
10181       RCC)
10182         # Rational C++ 2.4.1
10183         # FIXME: insert proper C++ library support
10184         ld_shlibs_CXX=no
10185         ;;
10186       cxx)
10187         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10188         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'
10189
10190         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10191         hardcode_libdir_separator_CXX=:
10192
10193         # Commands to make compiler produce verbose output that lists
10194         # what "hidden" libraries, object files and flags are used when
10195         # linking a shared library.
10196         #
10197         # There doesn't appear to be a way to prevent this compiler from
10198         # explicitly linking system object files so we need to strip them
10199         # from the output so that they don't get included in the library
10200         # dependencies.
10201         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'
10202         ;;
10203       *)
10204         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10205           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10206           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'
10207
10208           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10209           hardcode_libdir_separator_CXX=:
10210
10211           # Commands to make compiler produce verbose output that lists
10212           # what "hidden" libraries, object files and flags are used when
10213           # linking a shared library.
10214           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10215
10216         else
10217           # FIXME: insert proper C++ library support
10218           ld_shlibs_CXX=no
10219         fi
10220         ;;
10221     esac
10222     ;;
10223   osf4* | osf5*)
10224     case $cc_basename in
10225       KCC)
10226         # Kuck and Associates, Inc. (KAI) C++ Compiler
10227
10228         # KCC will only create a shared library if the output file
10229         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10230         # to its proper name (with version) after linking.
10231         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'
10232
10233         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10234         hardcode_libdir_separator_CXX=:
10235
10236         # Archives containing C++ object files must be created using
10237         # the KAI C++ compiler.
10238         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10239         ;;
10240       RCC)
10241         # Rational C++ 2.4.1
10242         # FIXME: insert proper C++ library support
10243         ld_shlibs_CXX=no
10244         ;;
10245       cxx)
10246         allow_undefined_flag_CXX=' -expect_unresolved \*'
10247         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'
10248         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10249           echo "-hidden">> $lib.exp~
10250           $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~
10251           $rm $lib.exp'
10252
10253         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10254         hardcode_libdir_separator_CXX=:
10255
10256         # Commands to make compiler produce verbose output that lists
10257         # what "hidden" libraries, object files and flags are used when
10258         # linking a shared library.
10259         #
10260         # There doesn't appear to be a way to prevent this compiler from
10261         # explicitly linking system object files so we need to strip them
10262         # from the output so that they don't get included in the library
10263         # dependencies.
10264         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'
10265         ;;
10266       *)
10267         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10268           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10269          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'
10270
10271           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10272           hardcode_libdir_separator_CXX=:
10273
10274           # Commands to make compiler produce verbose output that lists
10275           # what "hidden" libraries, object files and flags are used when
10276           # linking a shared library.
10277           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10278
10279         else
10280           # FIXME: insert proper C++ library support
10281           ld_shlibs_CXX=no
10282         fi
10283         ;;
10284     esac
10285     ;;
10286   psos*)
10287     # FIXME: insert proper C++ library support
10288     ld_shlibs_CXX=no
10289     ;;
10290   sco*)
10291     archive_cmds_need_lc_CXX=no
10292     case $cc_basename in
10293       CC)
10294         # FIXME: insert proper C++ library support
10295         ld_shlibs_CXX=no
10296         ;;
10297       *)
10298         # FIXME: insert proper C++ library support
10299         ld_shlibs_CXX=no
10300         ;;
10301     esac
10302     ;;
10303   sunos4*)
10304     case $cc_basename in
10305       CC)
10306         # Sun C++ 4.x
10307         # FIXME: insert proper C++ library support
10308         ld_shlibs_CXX=no
10309         ;;
10310       lcc)
10311         # Lucid
10312         # FIXME: insert proper C++ library support
10313         ld_shlibs_CXX=no
10314         ;;
10315       *)
10316         # FIXME: insert proper C++ library support
10317         ld_shlibs_CXX=no
10318         ;;
10319     esac
10320     ;;
10321   solaris*)
10322     case $cc_basename in
10323       CC)
10324         # Sun C++ 4.2, 5.x and Centerline C++
10325         no_undefined_flag_CXX=' -zdefs'
10326         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10327         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10328         $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'
10329
10330         hardcode_libdir_flag_spec_CXX='-R$libdir'
10331         hardcode_shlibpath_var_CXX=no
10332         case $host_os in
10333           solaris2.0-5 | solaris2.0-5.*) ;;
10334           *)
10335             # The C++ compiler is used as linker so we must use $wl
10336             # flag to pass the commands to the underlying system
10337             # linker.
10338             # Supported since Solaris 2.6 (maybe 2.5.1?)
10339             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10340             ;;
10341         esac
10342         link_all_deplibs_CXX=yes
10343
10344         # Commands to make compiler produce verbose output that lists
10345         # what "hidden" libraries, object files and flags are used when
10346         # linking a shared library.
10347         #
10348         # There doesn't appear to be a way to prevent this compiler from
10349         # explicitly linking system object files so we need to strip them
10350         # from the output so that they don't get included in the library
10351         # dependencies.
10352         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'
10353
10354         # Archives containing C++ object files must be created using
10355         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10356         # necessary to make sure instantiated templates are included
10357         # in the archive.
10358         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10359         ;;
10360       gcx)
10361         # Green Hills C++ Compiler
10362         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10363
10364         # The C++ compiler must be used to create the archive.
10365         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10366         ;;
10367       *)
10368         # GNU C++ compiler with Solaris linker
10369         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10370           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10371           if $CC --version | grep -v '^2\.7' > /dev/null; then
10372             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10373             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10374                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10375
10376             # Commands to make compiler produce verbose output that lists
10377             # what "hidden" libraries, object files and flags are used when
10378             # linking a shared library.
10379             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10380           else
10381             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10382             # platform.
10383             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10384             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10385                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10386
10387             # Commands to make compiler produce verbose output that lists
10388             # what "hidden" libraries, object files and flags are used when
10389             # linking a shared library.
10390             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10391           fi
10392
10393           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10394         fi
10395         ;;
10396     esac
10397     ;;
10398   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10399     archive_cmds_need_lc_CXX=no
10400     ;;
10401   tandem*)
10402     case $cc_basename in
10403       NCC)
10404         # NonStop-UX NCC 3.20
10405         # FIXME: insert proper C++ library support
10406         ld_shlibs_CXX=no
10407         ;;
10408       *)
10409         # FIXME: insert proper C++ library support
10410         ld_shlibs_CXX=no
10411         ;;
10412     esac
10413     ;;
10414   vxworks*)
10415     # FIXME: insert proper C++ library support
10416     ld_shlibs_CXX=no
10417     ;;
10418   *)
10419     # FIXME: insert proper C++ library support
10420     ld_shlibs_CXX=no
10421     ;;
10422 esac
10423 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10424 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10425 test "$ld_shlibs_CXX" = no && can_build_shared=no
10426
10427 GCC_CXX="$GXX"
10428 LD_CXX="$LD"
10429
10430 ## CAVEAT EMPTOR:
10431 ## There is no encapsulation within the following macros, do not change
10432 ## the running order or otherwise move them around unless you know exactly
10433 ## what you are doing...
10434
10435 cat > conftest.$ac_ext <<EOF
10436 class Foo
10437 {
10438 public:
10439   Foo (void) { a = 0; }
10440 private:
10441   int a;
10442 };
10443 EOF
10444
10445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10446   (eval $ac_compile) 2>&5
10447   ac_status=$?
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); }; then
10450   # Parse the compiler output and extract the necessary
10451   # objects, libraries and library flags.
10452
10453   # Sentinel used to keep track of whether or not we are before
10454   # the conftest object file.
10455   pre_test_object_deps_done=no
10456
10457   # The `*' in the case matches for architectures that use `case' in
10458   # $output_verbose_cmd can trigger glob expansion during the loop
10459   # eval without this substitution.
10460   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10461
10462   for p in `eval $output_verbose_link_cmd`; do
10463     case $p in
10464
10465     -L* | -R* | -l*)
10466        # Some compilers place space between "-{L,R}" and the path.
10467        # Remove the space.
10468        if test $p = "-L" \
10469           || test $p = "-R"; then
10470          prev=$p
10471          continue
10472        else
10473          prev=
10474        fi
10475
10476        if test "$pre_test_object_deps_done" = no; then
10477          case $p in
10478          -L* | -R*)
10479            # Internal compiler library paths should come after those
10480            # provided the user.  The postdeps already come after the
10481            # user supplied libs so there is no need to process them.
10482            if test -z "$compiler_lib_search_path_CXX"; then
10483              compiler_lib_search_path_CXX="${prev}${p}"
10484            else
10485              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10486            fi
10487            ;;
10488          # The "-l" case would never come before the object being
10489          # linked, so don't bother handling this case.
10490          esac
10491        else
10492          if test -z "$postdeps_CXX"; then
10493            postdeps_CXX="${prev}${p}"
10494          else
10495            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10496          fi
10497        fi
10498        ;;
10499
10500     *.$objext)
10501        # This assumes that the test object file only shows up
10502        # once in the compiler output.
10503        if test "$p" = "conftest.$objext"; then
10504          pre_test_object_deps_done=yes
10505          continue
10506        fi
10507
10508        if test "$pre_test_object_deps_done" = no; then
10509          if test -z "$predep_objects_CXX"; then
10510            predep_objects_CXX="$p"
10511          else
10512            predep_objects_CXX="$predep_objects_CXX $p"
10513          fi
10514        else
10515          if test -z "$postdep_objects_CXX"; then
10516            postdep_objects_CXX="$p"
10517          else
10518            postdep_objects_CXX="$postdep_objects_CXX $p"
10519          fi
10520        fi
10521        ;;
10522
10523     *) ;; # Ignore the rest.
10524
10525     esac
10526   done
10527
10528   # Clean up.
10529   rm -f a.out a.exe
10530 else
10531   echo "libtool.m4: error: problem compiling CXX test program"
10532 fi
10533
10534 $rm -f confest.$objext
10535
10536 case " $postdeps_CXX " in
10537 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10538 esac
10539
10540 lt_prog_compiler_wl_CXX=
10541 lt_prog_compiler_pic_CXX=
10542 lt_prog_compiler_static_CXX=
10543
10544 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10545 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10546
10547   # C++ specific cases for pic, static, wl, etc.
10548   if test "$GXX" = yes; then
10549     lt_prog_compiler_wl_CXX='-Wl,'
10550     lt_prog_compiler_static_CXX='-static'
10551
10552     case $host_os in
10553     aix*)
10554       # All AIX code is PIC.
10555       if test "$host_cpu" = ia64; then
10556         # AIX 5 now supports IA64 processor
10557         lt_prog_compiler_static_CXX='-Bstatic'
10558       fi
10559       ;;
10560     amigaos*)
10561       # FIXME: we need at least 68020 code to build shared libraries, but
10562       # adding the `-m68020' flag to GCC prevents building anything better,
10563       # like `-m68040'.
10564       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10565       ;;
10566     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10567       # PIC is the default for these OSes.
10568       ;;
10569     mingw* | os2* | pw32*)
10570       # This hack is so that the source file can tell whether it is being
10571       # built for inclusion in a dll (and should export symbols for example).
10572       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10573       ;;
10574     darwin* | rhapsody*)
10575       # PIC is the default on this platform
10576       # Common symbols not allowed in MH_DYLIB files
10577       lt_prog_compiler_pic_CXX='-fno-common'
10578       ;;
10579     *djgpp*)
10580       # DJGPP does not support shared libraries at all
10581       lt_prog_compiler_pic_CXX=
10582       ;;
10583     sysv4*MP*)
10584       if test -d /usr/nec; then
10585         lt_prog_compiler_pic_CXX=-Kconform_pic
10586       fi
10587       ;;
10588     hpux*)
10589       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10590       # not for PA HP-UX.
10591       case "$host_cpu" in
10592       hppa*64*|ia64*)
10593         ;;
10594       *)
10595         lt_prog_compiler_pic_CXX='-fPIC'
10596         ;;
10597       esac
10598       ;;
10599     *)
10600       lt_prog_compiler_pic_CXX='-fPIC'
10601       ;;
10602     esac
10603   else
10604     case $host_os in
10605       aix4* | aix5*)
10606         # All AIX code is PIC.
10607         if test "$host_cpu" = ia64; then
10608           # AIX 5 now supports IA64 processor
10609           lt_prog_compiler_static_CXX='-Bstatic'
10610         else
10611           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10612         fi
10613         ;;
10614       chorus*)
10615         case $cc_basename in
10616         cxch68)
10617           # Green Hills C++ Compiler
10618           # _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"
10619           ;;
10620         esac
10621         ;;
10622       dgux*)
10623         case $cc_basename in
10624           ec++)
10625             lt_prog_compiler_pic_CXX='-KPIC'
10626             ;;
10627           ghcx)
10628             # Green Hills C++ Compiler
10629             lt_prog_compiler_pic_CXX='-pic'
10630             ;;
10631           *)
10632             ;;
10633         esac
10634         ;;
10635       freebsd*)
10636         # FreeBSD uses GNU C++
10637         ;;
10638       hpux9* | hpux10* | hpux11*)
10639         case $cc_basename in
10640           CC)
10641             lt_prog_compiler_wl_CXX='-Wl,'
10642             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10643             if test "$host_cpu" != ia64; then
10644               lt_prog_compiler_pic_CXX='+Z'
10645             fi
10646             ;;
10647           aCC)
10648             lt_prog_compiler_wl_CXX='-Wl,'
10649             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10650             case "$host_cpu" in
10651             hppa*64*|ia64*)
10652               # +Z the default
10653               ;;
10654             *)
10655               lt_prog_compiler_pic_CXX='+Z'
10656               ;;
10657             esac
10658             ;;
10659           *)
10660             ;;
10661         esac
10662         ;;
10663       irix5* | irix6* | nonstopux*)
10664         case $cc_basename in
10665           CC)
10666             lt_prog_compiler_wl_CXX='-Wl,'
10667             lt_prog_compiler_static_CXX='-non_shared'
10668             # CC pic flag -KPIC is the default.
10669             ;;
10670           *)
10671             ;;
10672         esac
10673         ;;
10674       linux*)
10675         case $cc_basename in
10676           KCC)
10677             # KAI C++ Compiler
10678             lt_prog_compiler_wl_CXX='--backend -Wl,'
10679             lt_prog_compiler_pic_CXX='-fPIC'
10680             ;;
10681           icpc)
10682             # Intel C++
10683             lt_prog_compiler_wl_CXX='-Wl,'
10684             lt_prog_compiler_pic_CXX='-KPIC'
10685             lt_prog_compiler_static_CXX='-static'
10686             ;;
10687           cxx)
10688             # Compaq C++
10689             # Make sure the PIC flag is empty.  It appears that all Alpha
10690             # Linux and Compaq Tru64 Unix objects are PIC.
10691             lt_prog_compiler_pic_CXX=
10692             lt_prog_compiler_static_CXX='-non_shared'
10693             ;;
10694           *)
10695             ;;
10696         esac
10697         ;;
10698       lynxos*)
10699         ;;
10700       m88k*)
10701         ;;
10702       mvs*)
10703         case $cc_basename in
10704           cxx)
10705             lt_prog_compiler_pic_CXX='-W c,exportall'
10706             ;;
10707           *)
10708             ;;
10709         esac
10710         ;;
10711       netbsd*)
10712         ;;
10713       osf3* | osf4* | osf5*)
10714         case $cc_basename in
10715           KCC)
10716             lt_prog_compiler_wl_CXX='--backend -Wl,'
10717             ;;
10718           RCC)
10719             # Rational C++ 2.4.1
10720             lt_prog_compiler_pic_CXX='-pic'
10721             ;;
10722           cxx)
10723             # Digital/Compaq C++
10724             lt_prog_compiler_wl_CXX='-Wl,'
10725             # Make sure the PIC flag is empty.  It appears that all Alpha
10726             # Linux and Compaq Tru64 Unix objects are PIC.
10727             lt_prog_compiler_pic_CXX=
10728             lt_prog_compiler_static_CXX='-non_shared'
10729             ;;
10730           *)
10731             ;;
10732         esac
10733         ;;
10734       psos*)
10735         ;;
10736       sco*)
10737         case $cc_basename in
10738           CC)
10739             lt_prog_compiler_pic_CXX='-fPIC'
10740             ;;
10741           *)
10742             ;;
10743         esac
10744         ;;
10745       solaris*)
10746         case $cc_basename in
10747           CC)
10748             # Sun C++ 4.2, 5.x and Centerline C++
10749             lt_prog_compiler_pic_CXX='-KPIC'
10750             lt_prog_compiler_static_CXX='-Bstatic'
10751             lt_prog_compiler_wl_CXX='-Qoption ld '
10752             ;;
10753           gcx)
10754             # Green Hills C++ Compiler
10755             lt_prog_compiler_pic_CXX='-PIC'
10756             ;;
10757           *)
10758             ;;
10759         esac
10760         ;;
10761       sunos4*)
10762         case $cc_basename in
10763           CC)
10764             # Sun C++ 4.x
10765             lt_prog_compiler_pic_CXX='-pic'
10766             lt_prog_compiler_static_CXX='-Bstatic'
10767             ;;
10768           lcc)
10769             # Lucid
10770             lt_prog_compiler_pic_CXX='-pic'
10771             ;;
10772           *)
10773             ;;
10774         esac
10775         ;;
10776       tandem*)
10777         case $cc_basename in
10778           NCC)
10779             # NonStop-UX NCC 3.20
10780             lt_prog_compiler_pic_CXX='-KPIC'
10781             ;;
10782           *)
10783             ;;
10784         esac
10785         ;;
10786       unixware*)
10787         ;;
10788       vxworks*)
10789         ;;
10790       *)
10791         lt_prog_compiler_can_build_shared_CXX=no
10792         ;;
10793     esac
10794   fi
10795
10796 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10797 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10798
10799 #
10800 # Check to make sure the PIC flag actually works.
10801 #
10802 if test -n "$lt_prog_compiler_pic_CXX"; then
10803   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10804 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10805 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10806   echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808   lt_prog_compiler_pic_works_CXX=no
10809   ac_outfile=conftest.$ac_objext
10810    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10811    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10812    # Insert the option either (1) after the last *FLAGS variable, or
10813    # (2) before a word containing "conftest.", or (3) at the end.
10814    # Note that $ac_compile itself does not contain backslashes and begins
10815    # with a dollar sign (not a hyphen), so the echo should work correctly.
10816    # The option is referenced via a variable to avoid confusing sed.
10817    lt_compile=`echo "$ac_compile" | $SED \
10818    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10819    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10820    -e 's:$: $lt_compiler_flag:'`
10821    (eval echo "\"\$as_me:10821: $lt_compile\"" >&5)
10822    (eval "$lt_compile" 2>conftest.err)
10823    ac_status=$?
10824    cat conftest.err >&5
10825    echo "$as_me:10825: \$? = $ac_status" >&5
10826    if (exit $ac_status) && test -s "$ac_outfile"; then
10827      # The compiler can only warn and ignore the option if not recognized
10828      # So say no if there are warnings
10829      if test ! -s conftest.err; then
10830        lt_prog_compiler_pic_works_CXX=yes
10831      fi
10832    fi
10833    $rm conftest*
10834
10835 fi
10836 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10837 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10838
10839 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10840     case $lt_prog_compiler_pic_CXX in
10841      "" | " "*) ;;
10842      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10843      esac
10844 else
10845     lt_prog_compiler_pic_CXX=
10846      lt_prog_compiler_can_build_shared_CXX=no
10847 fi
10848
10849 fi
10850 case "$host_os" in
10851   # For platforms which do not support PIC, -DPIC is meaningless:
10852   *djgpp*)
10853     lt_prog_compiler_pic_CXX=
10854     ;;
10855   *)
10856     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10857     ;;
10858 esac
10859
10860 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10861 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10862 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10863   echo $ECHO_N "(cached) $ECHO_C" >&6
10864 else
10865   lt_cv_prog_compiler_c_o_CXX=no
10866    $rm -r conftest 2>/dev/null
10867    mkdir conftest
10868    cd conftest
10869    mkdir out
10870    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10871
10872    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10873    # that will create temporary files in the current directory regardless of
10874    # the output directory.  Thus, making CWD read-only will cause this test
10875    # to fail, enabling locking or at least warning the user not to do parallel
10876    # builds.
10877    chmod -w .
10878
10879    lt_compiler_flag="-o out/conftest2.$ac_objext"
10880    # Insert the option either (1) after the last *FLAGS variable, or
10881    # (2) before a word containing "conftest.", or (3) at the end.
10882    # Note that $ac_compile itself does not contain backslashes and begins
10883    # with a dollar sign (not a hyphen), so the echo should work correctly.
10884    lt_compile=`echo "$ac_compile" | $SED \
10885    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10886    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10887    -e 's:$: $lt_compiler_flag:'`
10888    (eval echo "\"\$as_me:10888: $lt_compile\"" >&5)
10889    (eval "$lt_compile" 2>out/conftest.err)
10890    ac_status=$?
10891    cat out/conftest.err >&5
10892    echo "$as_me:10892: \$? = $ac_status" >&5
10893    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10894    then
10895      # The compiler can only warn and ignore the option if not recognized
10896      # So say no if there are warnings
10897      if test ! -s out/conftest.err; then
10898        lt_cv_prog_compiler_c_o_CXX=yes
10899      fi
10900    fi
10901    chmod u+w .
10902    $rm conftest* out/*
10903    rmdir out
10904    cd ..
10905    rmdir conftest
10906    $rm conftest*
10907
10908 fi
10909 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10910 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10911
10912
10913 hard_links="nottested"
10914 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10915   # do not overwrite the value of need_locks provided by the user
10916   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10917 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10918   hard_links=yes
10919   $rm conftest*
10920   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10921   touch conftest.a
10922   ln conftest.a conftest.b 2>&5 || hard_links=no
10923   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10924   echo "$as_me:$LINENO: result: $hard_links" >&5
10925 echo "${ECHO_T}$hard_links" >&6
10926   if test "$hard_links" = no; then
10927     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10928 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10929     need_locks=warn
10930   fi
10931 else
10932   need_locks=no
10933 fi
10934
10935 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10936 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10937
10938   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10939   case $host_os in
10940   aix4* | aix5*)
10941     # If we're using GNU nm, then we don't want the "-C" option.
10942     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10943     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10944       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'
10945     else
10946       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'
10947     fi
10948     ;;
10949   pw32*)
10950     export_symbols_cmds_CXX="$ltdll_cmds"
10951   ;;
10952   cygwin* | mingw*)
10953     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10954   ;;
10955   *)
10956     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10957   ;;
10958   esac
10959
10960 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10961 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10962 test "$ld_shlibs_CXX" = no && can_build_shared=no
10963
10964 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10965 if test "$GCC" = yes; then
10966   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10967 fi
10968
10969 #
10970 # Do we need to explicitly link libc?
10971 #
10972 case "x$archive_cmds_need_lc_CXX" in
10973 x|xyes)
10974   # Assume -lc should be added
10975   archive_cmds_need_lc_CXX=yes
10976
10977   if test "$enable_shared" = yes && test "$GCC" = yes; then
10978     case $archive_cmds_CXX in
10979     *'~'*)
10980       # FIXME: we may have to deal with multi-command sequences.
10981       ;;
10982     '$CC '*)
10983       # Test whether the compiler implicitly links with -lc since on some
10984       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10985       # to ld, don't add -lc before -lgcc.
10986       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10987 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10988       $rm conftest*
10989       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10990
10991       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10992   (eval $ac_compile) 2>&5
10993   ac_status=$?
10994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995   (exit $ac_status); } 2>conftest.err; then
10996         soname=conftest
10997         lib=conftest
10998         libobjs=conftest.$ac_objext
10999         deplibs=
11000         wl=$lt_prog_compiler_wl_CXX
11001         compiler_flags=-v
11002         linker_flags=-v
11003         verstring=
11004         output_objdir=.
11005         libname=conftest
11006         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11007         allow_undefined_flag_CXX=
11008         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11009   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11010   ac_status=$?
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); }
11013         then
11014           archive_cmds_need_lc_CXX=no
11015         else
11016           archive_cmds_need_lc_CXX=yes
11017         fi
11018         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11019       else
11020         cat conftest.err 1>&5
11021       fi
11022       $rm conftest*
11023       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11024 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11025       ;;
11026     esac
11027   fi
11028   ;;
11029 esac
11030
11031 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11032 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11033 hardcode_action_CXX=
11034 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11035    test -n "$runpath_var CXX" || \
11036    test "X$hardcode_automatic_CXX"="Xyes" ; then
11037
11038   # We can hardcode non-existant directories.
11039   if test "$hardcode_direct_CXX" != no &&
11040      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11041      # have to relink, otherwise we might link with an installed library
11042      # when we should be linking with a yet-to-be-installed one
11043      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11044      test "$hardcode_minus_L_CXX" != no; then
11045     # Linking always hardcodes the temporary library directory.
11046     hardcode_action_CXX=relink
11047   else
11048     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11049     hardcode_action_CXX=immediate
11050   fi
11051 else
11052   # We cannot hardcode anything, or else we can only hardcode existing
11053   # directories.
11054   hardcode_action_CXX=unsupported
11055 fi
11056 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11057 echo "${ECHO_T}$hardcode_action_CXX" >&6
11058
11059 if test "$hardcode_action_CXX" = relink; then
11060   # Fast installation is not supported
11061   enable_fast_install=no
11062 elif test "$shlibpath_overrides_runpath" = yes ||
11063      test "$enable_shared" = no; then
11064   # Fast installation is not necessary
11065   enable_fast_install=needless
11066 fi
11067
11068 striplib=
11069 old_striplib=
11070 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11071 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11072 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11073   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11074   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11075   echo "$as_me:$LINENO: result: yes" >&5
11076 echo "${ECHO_T}yes" >&6
11077 else
11078 # FIXME - insert some real tests, host_os isn't really good enough
11079   case $host_os in
11080    darwin*)
11081        if test -n "$STRIP" ; then
11082          striplib="$STRIP -x"
11083          echo "$as_me:$LINENO: result: yes" >&5
11084 echo "${ECHO_T}yes" >&6
11085        else
11086   echo "$as_me:$LINENO: result: no" >&5
11087 echo "${ECHO_T}no" >&6
11088 fi
11089        ;;
11090    *)
11091   echo "$as_me:$LINENO: result: no" >&5
11092 echo "${ECHO_T}no" >&6
11093     ;;
11094   esac
11095 fi
11096
11097 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11098 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11099 library_names_spec=
11100 libname_spec='lib$name'
11101 soname_spec=
11102 shrext=".so"
11103 postinstall_cmds=
11104 postuninstall_cmds=
11105 finish_cmds=
11106 finish_eval=
11107 shlibpath_var=
11108 shlibpath_overrides_runpath=unknown
11109 version_type=none
11110 dynamic_linker="$host_os ld.so"
11111 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11112 if test "$GCC" = yes; then
11113   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11114   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11115     # if the path contains ";" then we assume it to be the separator
11116     # otherwise default to the standard path separator (i.e. ":") - it is
11117     # assumed that no part of a normal pathname contains ";" but that should
11118     # okay in the real world where ";" in dirpaths is itself problematic.
11119     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11120   else
11121     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11122   fi
11123 else
11124   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11125 fi
11126 need_lib_prefix=unknown
11127 hardcode_into_libs=no
11128
11129 # when you set need_version to no, make sure it does not cause -set_version
11130 # flags to be left without arguments
11131 need_version=unknown
11132
11133 case $host_os in
11134 aix3*)
11135   version_type=linux
11136   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11137   shlibpath_var=LIBPATH
11138
11139   # AIX 3 has no versioning support, so we append a major version to the name.
11140   soname_spec='${libname}${release}${shared_ext}$major'
11141   ;;
11142
11143 aix4* | aix5*)
11144   version_type=linux
11145   need_lib_prefix=no
11146   need_version=no
11147   hardcode_into_libs=yes
11148   if test "$host_cpu" = ia64; then
11149     # AIX 5 supports IA64
11150     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11151     shlibpath_var=LD_LIBRARY_PATH
11152   else
11153     # With GCC up to 2.95.x, collect2 would create an import file
11154     # for dependence libraries.  The import file would start with
11155     # the line `#! .'.  This would cause the generated library to
11156     # depend on `.', always an invalid library.  This was fixed in
11157     # development snapshots of GCC prior to 3.0.
11158     case $host_os in
11159       aix4 | aix4.[01] | aix4.[01].*)
11160       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11161            echo ' yes '
11162            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11163         :
11164       else
11165         can_build_shared=no
11166       fi
11167       ;;
11168     esac
11169     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11170     # soname into executable. Probably we can add versioning support to
11171     # collect2, so additional links can be useful in future.
11172     if test "$aix_use_runtimelinking" = yes; then
11173       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11174       # instead of lib<name>.a to let people know that these are not
11175       # typical AIX shared libraries.
11176       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177     else
11178       # We preserve .a as extension for shared libraries through AIX4.2
11179       # and later when we are not doing run time linking.
11180       library_names_spec='${libname}${release}.a $libname.a'
11181       soname_spec='${libname}${release}${shared_ext}$major'
11182     fi
11183     shlibpath_var=LIBPATH
11184   fi
11185   ;;
11186
11187 amigaos*)
11188   library_names_spec='$libname.ixlibrary $libname.a'
11189   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11190   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'
11191   ;;
11192
11193 beos*)
11194   library_names_spec='${libname}${shared_ext}'
11195   dynamic_linker="$host_os ld.so"
11196   shlibpath_var=LIBRARY_PATH
11197   ;;
11198
11199 bsdi4*)
11200   version_type=linux
11201   need_version=no
11202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11203   soname_spec='${libname}${release}${shared_ext}$major'
11204   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11205   shlibpath_var=LD_LIBRARY_PATH
11206   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11207   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11208   # the default ld.so.conf also contains /usr/contrib/lib and
11209   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11210   # libtool to hard-code these into programs
11211   ;;
11212
11213 cygwin* | mingw* | pw32*)
11214   version_type=windows
11215   shrext=".dll"
11216   need_version=no
11217   need_lib_prefix=no
11218
11219   case $GCC,$host_os in
11220   yes,cygwin* | yes,mingw* | yes,pw32*)
11221     library_names_spec='$libname.dll.a'
11222     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11223     postinstall_cmds='base_file=`basename \${file}`~
11224       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11225       dldir=$destdir/`dirname \$dlpath`~
11226       test -d \$dldir || mkdir -p \$dldir~
11227       $install_prog $dir/$dlname \$dldir/$dlname'
11228     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11229       dlpath=$dir/\$dldll~
11230        $rm \$dlpath'
11231     shlibpath_overrides_runpath=yes
11232
11233     case $host_os in
11234     cygwin*)
11235       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11236       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11237       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11238       ;;
11239     mingw*)
11240       # MinGW DLLs use traditional 'lib' prefix
11241       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11242       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11243       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11244         # It is most probably a Windows format PATH printed by
11245         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11246         # path with ; separators, and with drive letters. We can handle the
11247         # drive letters (cygwin fileutils understands them), so leave them,
11248         # especially as we might pass files found there to a mingw objdump,
11249         # which wouldn't understand a cygwinified path. Ahh.
11250         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11251       else
11252         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11253       fi
11254       ;;
11255     pw32*)
11256       # pw32 DLLs use 'pw' prefix rather than 'lib'
11257       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11258       ;;
11259     esac
11260     ;;
11261
11262   *)
11263     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11264     ;;
11265   esac
11266   dynamic_linker='Win32 ld.exe'
11267   # FIXME: first we should search . and the directory the executable is in
11268   shlibpath_var=PATH
11269   ;;
11270
11271 darwin* | rhapsody*)
11272   dynamic_linker="$host_os dyld"
11273   version_type=darwin
11274   need_lib_prefix=no
11275   need_version=no
11276   # FIXME: Relying on posixy $() will cause problems for
11277   #        cross-compilation, but unfortunately the echo tests do not
11278   #        yet detect zsh echo's removal of \ escapes.
11279   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11280   soname_spec='${libname}${release}${major}$shared_ext'
11281   shlibpath_overrides_runpath=yes
11282   shlibpath_var=DYLD_LIBRARY_PATH
11283   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11284   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11285   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11286   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"`
11287   fi
11288   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11289   ;;
11290
11291 dgux*)
11292   version_type=linux
11293   need_lib_prefix=no
11294   need_version=no
11295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11296   soname_spec='${libname}${release}${shared_ext}$major'
11297   shlibpath_var=LD_LIBRARY_PATH
11298   ;;
11299
11300 freebsd1*)
11301   dynamic_linker=no
11302   ;;
11303
11304 freebsd*)
11305   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11306   version_type=freebsd-$objformat
11307   case $version_type in
11308     freebsd-elf*)
11309       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11310       need_version=no
11311       need_lib_prefix=no
11312       ;;
11313     freebsd-*)
11314       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11315       need_version=yes
11316       ;;
11317   esac
11318   shlibpath_var=LD_LIBRARY_PATH
11319   case $host_os in
11320   freebsd2*)
11321     shlibpath_overrides_runpath=yes
11322     ;;
11323   freebsd3.01* | freebsdelf3.01*)
11324     shlibpath_overrides_runpath=yes
11325     hardcode_into_libs=yes
11326     ;;
11327   *) # from 3.2 on
11328     shlibpath_overrides_runpath=no
11329     hardcode_into_libs=yes
11330     ;;
11331   esac
11332   ;;
11333
11334 gnu*)
11335   version_type=linux
11336   need_lib_prefix=no
11337   need_version=no
11338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11339   soname_spec='${libname}${release}${shared_ext}$major'
11340   shlibpath_var=LD_LIBRARY_PATH
11341   hardcode_into_libs=yes
11342   ;;
11343
11344 hpux9* | hpux10* | hpux11*)
11345   # Give a soname corresponding to the major version so that dld.sl refuses to
11346   # link against other versions.
11347   version_type=sunos
11348   need_lib_prefix=no
11349   need_version=no
11350   case "$host_cpu" in
11351   ia64*)
11352     shrext='.so'
11353     hardcode_into_libs=yes
11354     dynamic_linker="$host_os dld.so"
11355     shlibpath_var=LD_LIBRARY_PATH
11356     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11357     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358     soname_spec='${libname}${release}${shared_ext}$major'
11359     if test "X$HPUX_IA64_MODE" = X32; then
11360       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11361     else
11362       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11363     fi
11364     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11365     ;;
11366    hppa*64*)
11367      shrext='.sl'
11368      hardcode_into_libs=yes
11369      dynamic_linker="$host_os dld.sl"
11370      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11371      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11372      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11373      soname_spec='${libname}${release}${shared_ext}$major'
11374      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11375      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11376      ;;
11377    *)
11378     shrext='.sl'
11379     dynamic_linker="$host_os dld.sl"
11380     shlibpath_var=SHLIB_PATH
11381     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383     soname_spec='${libname}${release}${shared_ext}$major'
11384     ;;
11385   esac
11386   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11387   postinstall_cmds='chmod 555 $lib'
11388   ;;
11389
11390 irix5* | irix6* | nonstopux*)
11391   case $host_os in
11392     nonstopux*) version_type=nonstopux ;;
11393     *)
11394         if test "$lt_cv_prog_gnu_ld" = yes; then
11395                 version_type=linux
11396         else
11397                 version_type=irix
11398         fi ;;
11399   esac
11400   need_lib_prefix=no
11401   need_version=no
11402   soname_spec='${libname}${release}${shared_ext}$major'
11403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11404   case $host_os in
11405   irix5* | nonstopux*)
11406     libsuff= shlibsuff=
11407     ;;
11408   *)
11409     case $LD in # libtool.m4 will add one of these switches to LD
11410     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11411       libsuff= shlibsuff= libmagic=32-bit;;
11412     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11413       libsuff=32 shlibsuff=N32 libmagic=N32;;
11414     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11415       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11416     *) libsuff= shlibsuff= libmagic=never-match;;
11417     esac
11418     ;;
11419   esac
11420   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11421   shlibpath_overrides_runpath=no
11422   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11423   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11424   hardcode_into_libs=yes
11425   ;;
11426
11427 # No shared lib support for Linux oldld, aout, or coff.
11428 linux*oldld* | linux*aout* | linux*coff*)
11429   dynamic_linker=no
11430   ;;
11431
11432 # This must be Linux ELF.
11433 linux*)
11434   version_type=linux
11435   need_lib_prefix=no
11436   need_version=no
11437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11438   soname_spec='${libname}${release}${shared_ext}$major'
11439   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11440   shlibpath_var=LD_LIBRARY_PATH
11441   shlibpath_overrides_runpath=no
11442   # This implies no fast_install, which is unacceptable.
11443   # Some rework will be needed to allow for fast_install
11444   # before this can be enabled.
11445   hardcode_into_libs=yes
11446
11447   # We used to test for /lib/ld.so.1 and disable shared libraries on
11448   # powerpc, because MkLinux only supported shared libraries with the
11449   # GNU dynamic linker.  Since this was broken with cross compilers,
11450   # most powerpc-linux boxes support dynamic linking these days and
11451   # people can always --disable-shared, the test was removed, and we
11452   # assume the GNU/Linux dynamic linker is in use.
11453   dynamic_linker='GNU/Linux ld.so'
11454   ;;
11455
11456 netbsd*)
11457   version_type=sunos
11458   need_lib_prefix=no
11459   need_version=no
11460   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11461     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11462     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11463     dynamic_linker='NetBSD (a.out) ld.so'
11464   else
11465     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11466     soname_spec='${libname}${release}${shared_ext}$major'
11467     dynamic_linker='NetBSD ld.elf_so'
11468   fi
11469   shlibpath_var=LD_LIBRARY_PATH
11470   shlibpath_overrides_runpath=yes
11471   hardcode_into_libs=yes
11472   ;;
11473
11474 newsos6)
11475   version_type=linux
11476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477   shlibpath_var=LD_LIBRARY_PATH
11478   shlibpath_overrides_runpath=yes
11479   ;;
11480
11481 nto-qnx)
11482   version_type=linux
11483   need_lib_prefix=no
11484   need_version=no
11485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11486   soname_spec='${libname}${release}${shared_ext}$major'
11487   shlibpath_var=LD_LIBRARY_PATH
11488   shlibpath_overrides_runpath=yes
11489   ;;
11490
11491 openbsd*)
11492   version_type=sunos
11493   need_lib_prefix=no
11494   need_version=no
11495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11496   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11497   shlibpath_var=LD_LIBRARY_PATH
11498   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11499     case $host_os in
11500       openbsd2.[89] | openbsd2.[89].*)
11501         shlibpath_overrides_runpath=no
11502         ;;
11503       *)
11504         shlibpath_overrides_runpath=yes
11505         ;;
11506       esac
11507   else
11508     shlibpath_overrides_runpath=yes
11509   fi
11510   ;;
11511
11512 os2*)
11513   libname_spec='$name'
11514   shrext=".dll"
11515   need_lib_prefix=no
11516   library_names_spec='$libname${shared_ext} $libname.a'
11517   dynamic_linker='OS/2 ld.exe'
11518   shlibpath_var=LIBPATH
11519   ;;
11520
11521 osf3* | osf4* | osf5*)
11522   version_type=osf
11523   need_lib_prefix=no
11524   need_version=no
11525   soname_spec='${libname}${release}${shared_ext}$major'
11526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527   shlibpath_var=LD_LIBRARY_PATH
11528   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11529   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11530   ;;
11531
11532 sco3.2v5*)
11533   version_type=osf
11534   soname_spec='${libname}${release}${shared_ext}$major'
11535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11536   shlibpath_var=LD_LIBRARY_PATH
11537   ;;
11538
11539 solaris*)
11540   version_type=linux
11541   need_lib_prefix=no
11542   need_version=no
11543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11544   soname_spec='${libname}${release}${shared_ext}$major'
11545   shlibpath_var=LD_LIBRARY_PATH
11546   shlibpath_overrides_runpath=yes
11547   hardcode_into_libs=yes
11548   # ldd complains unless libraries are executable
11549   postinstall_cmds='chmod +x $lib'
11550   ;;
11551
11552 sunos4*)
11553   version_type=sunos
11554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11555   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11556   shlibpath_var=LD_LIBRARY_PATH
11557   shlibpath_overrides_runpath=yes
11558   if test "$with_gnu_ld" = yes; then
11559     need_lib_prefix=no
11560   fi
11561   need_version=yes
11562   ;;
11563
11564 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11565   version_type=linux
11566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11567   soname_spec='${libname}${release}${shared_ext}$major'
11568   shlibpath_var=LD_LIBRARY_PATH
11569   case $host_vendor in
11570     sni)
11571       shlibpath_overrides_runpath=no
11572       need_lib_prefix=no
11573       export_dynamic_flag_spec='${wl}-Blargedynsym'
11574       runpath_var=LD_RUN_PATH
11575       ;;
11576     siemens)
11577       need_lib_prefix=no
11578       ;;
11579     motorola)
11580       need_lib_prefix=no
11581       need_version=no
11582       shlibpath_overrides_runpath=no
11583       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11584       ;;
11585   esac
11586   ;;
11587
11588 sysv4*MP*)
11589   if test -d /usr/nec ;then
11590     version_type=linux
11591     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11592     soname_spec='$libname${shared_ext}.$major'
11593     shlibpath_var=LD_LIBRARY_PATH
11594   fi
11595   ;;
11596
11597 uts4*)
11598   version_type=linux
11599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11600   soname_spec='${libname}${release}${shared_ext}$major'
11601   shlibpath_var=LD_LIBRARY_PATH
11602   ;;
11603
11604 *)
11605   dynamic_linker=no
11606   ;;
11607 esac
11608 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11609 echo "${ECHO_T}$dynamic_linker" >&6
11610 test "$dynamic_linker" = no && can_build_shared=no
11611
11612 if test "x$enable_dlopen" != xyes; then
11613   enable_dlopen=unknown
11614   enable_dlopen_self=unknown
11615   enable_dlopen_self_static=unknown
11616 else
11617   lt_cv_dlopen=no
11618   lt_cv_dlopen_libs=
11619
11620   case $host_os in
11621   beos*)
11622     lt_cv_dlopen="load_add_on"
11623     lt_cv_dlopen_libs=
11624     lt_cv_dlopen_self=yes
11625     ;;
11626
11627   mingw* | pw32*)
11628     lt_cv_dlopen="LoadLibrary"
11629     lt_cv_dlopen_libs=
11630    ;;
11631
11632   cygwin*)
11633     lt_cv_dlopen="dlopen"
11634     lt_cv_dlopen_libs=
11635    ;;
11636
11637   darwin*)
11638   # if libdl is installed we need to link against it
11639     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11640 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11641 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11642   echo $ECHO_N "(cached) $ECHO_C" >&6
11643 else
11644   ac_check_lib_save_LIBS=$LIBS
11645 LIBS="-ldl  $LIBS"
11646 cat >conftest.$ac_ext <<_ACEOF
11647 #line $LINENO "configure"
11648 /* confdefs.h.  */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h.  */
11653
11654 /* Override any gcc2 internal prototype to avoid an error.  */
11655 #ifdef __cplusplus
11656 extern "C"
11657 #endif
11658 /* We use char because int might match the return type of a gcc2
11659    builtin and then its argument prototype would still apply.  */
11660 char dlopen ();
11661 int
11662 main ()
11663 {
11664 dlopen ();
11665   ;
11666   return 0;
11667 }
11668 _ACEOF
11669 rm -f conftest.$ac_objext conftest$ac_exeext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11671   (eval $ac_link) 2>&5
11672   ac_status=$?
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); } &&
11675          { ac_try='test -s conftest$ac_exeext'
11676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677   (eval $ac_try) 2>&5
11678   ac_status=$?
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); }; }; then
11681   ac_cv_lib_dl_dlopen=yes
11682 else
11683   echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11685
11686 ac_cv_lib_dl_dlopen=no
11687 fi
11688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11689 LIBS=$ac_check_lib_save_LIBS
11690 fi
11691 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11692 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11693 if test $ac_cv_lib_dl_dlopen = yes; then
11694   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11695 else
11696
11697     lt_cv_dlopen="dyld"
11698     lt_cv_dlopen_libs=
11699     lt_cv_dlopen_self=yes
11700
11701 fi
11702
11703    ;;
11704
11705   *)
11706     echo "$as_me:$LINENO: checking for shl_load" >&5
11707 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11708 if test "${ac_cv_func_shl_load+set}" = set; then
11709   echo $ECHO_N "(cached) $ECHO_C" >&6
11710 else
11711   cat >conftest.$ac_ext <<_ACEOF
11712 #line $LINENO "configure"
11713 /* confdefs.h.  */
11714 _ACEOF
11715 cat confdefs.h >>conftest.$ac_ext
11716 cat >>conftest.$ac_ext <<_ACEOF
11717 /* end confdefs.h.  */
11718 /* System header to define __stub macros and hopefully few prototypes,
11719     which can conflict with char shl_load (); below.
11720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11721     <limits.h> exists even on freestanding compilers.  */
11722 #ifdef __STDC__
11723 # include <limits.h>
11724 #else
11725 # include <assert.h>
11726 #endif
11727 /* Override any gcc2 internal prototype to avoid an error.  */
11728 #ifdef __cplusplus
11729 extern "C"
11730 {
11731 #endif
11732 /* We use char because int might match the return type of a gcc2
11733    builtin and then its argument prototype would still apply.  */
11734 char shl_load ();
11735 /* The GNU C library defines this for functions which it implements
11736     to always fail with ENOSYS.  Some functions are actually named
11737     something starting with __ and the normal name is an alias.  */
11738 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11739 choke me
11740 #else
11741 char (*f) () = shl_load;
11742 #endif
11743 #ifdef __cplusplus
11744 }
11745 #endif
11746
11747 int
11748 main ()
11749 {
11750 return f != shl_load;
11751   ;
11752   return 0;
11753 }
11754 _ACEOF
11755 rm -f conftest.$ac_objext conftest$ac_exeext
11756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11757   (eval $ac_link) 2>&5
11758   ac_status=$?
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); } &&
11761          { ac_try='test -s conftest$ac_exeext'
11762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763   (eval $ac_try) 2>&5
11764   ac_status=$?
11765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766   (exit $ac_status); }; }; then
11767   ac_cv_func_shl_load=yes
11768 else
11769   echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.$ac_ext >&5
11771
11772 ac_cv_func_shl_load=no
11773 fi
11774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11775 fi
11776 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11777 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11778 if test $ac_cv_func_shl_load = yes; then
11779   lt_cv_dlopen="shl_load"
11780 else
11781   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11782 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11783 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11784   echo $ECHO_N "(cached) $ECHO_C" >&6
11785 else
11786   ac_check_lib_save_LIBS=$LIBS
11787 LIBS="-ldld  $LIBS"
11788 cat >conftest.$ac_ext <<_ACEOF
11789 #line $LINENO "configure"
11790 /* confdefs.h.  */
11791 _ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h.  */
11795
11796 /* Override any gcc2 internal prototype to avoid an error.  */
11797 #ifdef __cplusplus
11798 extern "C"
11799 #endif
11800 /* We use char because int might match the return type of a gcc2
11801    builtin and then its argument prototype would still apply.  */
11802 char shl_load ();
11803 int
11804 main ()
11805 {
11806 shl_load ();
11807   ;
11808   return 0;
11809 }
11810 _ACEOF
11811 rm -f conftest.$ac_objext conftest$ac_exeext
11812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11813   (eval $ac_link) 2>&5
11814   ac_status=$?
11815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816   (exit $ac_status); } &&
11817          { ac_try='test -s conftest$ac_exeext'
11818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819   (eval $ac_try) 2>&5
11820   ac_status=$?
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); }; }; then
11823   ac_cv_lib_dld_shl_load=yes
11824 else
11825   echo "$as_me: failed program was:" >&5
11826 sed 's/^/| /' conftest.$ac_ext >&5
11827
11828 ac_cv_lib_dld_shl_load=no
11829 fi
11830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11831 LIBS=$ac_check_lib_save_LIBS
11832 fi
11833 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11834 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11835 if test $ac_cv_lib_dld_shl_load = yes; then
11836   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11837 else
11838   echo "$as_me:$LINENO: checking for dlopen" >&5
11839 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11840 if test "${ac_cv_func_dlopen+set}" = set; then
11841   echo $ECHO_N "(cached) $ECHO_C" >&6
11842 else
11843   cat >conftest.$ac_ext <<_ACEOF
11844 #line $LINENO "configure"
11845 /* confdefs.h.  */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h.  */
11850 /* System header to define __stub macros and hopefully few prototypes,
11851     which can conflict with char dlopen (); below.
11852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11853     <limits.h> exists even on freestanding compilers.  */
11854 #ifdef __STDC__
11855 # include <limits.h>
11856 #else
11857 # include <assert.h>
11858 #endif
11859 /* Override any gcc2 internal prototype to avoid an error.  */
11860 #ifdef __cplusplus
11861 extern "C"
11862 {
11863 #endif
11864 /* We use char because int might match the return type of a gcc2
11865    builtin and then its argument prototype would still apply.  */
11866 char dlopen ();
11867 /* The GNU C library defines this for functions which it implements
11868     to always fail with ENOSYS.  Some functions are actually named
11869     something starting with __ and the normal name is an alias.  */
11870 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11871 choke me
11872 #else
11873 char (*f) () = dlopen;
11874 #endif
11875 #ifdef __cplusplus
11876 }
11877 #endif
11878
11879 int
11880 main ()
11881 {
11882 return f != dlopen;
11883   ;
11884   return 0;
11885 }
11886 _ACEOF
11887 rm -f conftest.$ac_objext conftest$ac_exeext
11888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11889   (eval $ac_link) 2>&5
11890   ac_status=$?
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); } &&
11893          { ac_try='test -s conftest$ac_exeext'
11894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895   (eval $ac_try) 2>&5
11896   ac_status=$?
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); }; }; then
11899   ac_cv_func_dlopen=yes
11900 else
11901   echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11903
11904 ac_cv_func_dlopen=no
11905 fi
11906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11907 fi
11908 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11909 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11910 if test $ac_cv_func_dlopen = yes; then
11911   lt_cv_dlopen="dlopen"
11912 else
11913   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11914 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11915 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11916   echo $ECHO_N "(cached) $ECHO_C" >&6
11917 else
11918   ac_check_lib_save_LIBS=$LIBS
11919 LIBS="-ldl  $LIBS"
11920 cat >conftest.$ac_ext <<_ACEOF
11921 #line $LINENO "configure"
11922 /* confdefs.h.  */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h.  */
11927
11928 /* Override any gcc2 internal prototype to avoid an error.  */
11929 #ifdef __cplusplus
11930 extern "C"
11931 #endif
11932 /* We use char because int might match the return type of a gcc2
11933    builtin and then its argument prototype would still apply.  */
11934 char dlopen ();
11935 int
11936 main ()
11937 {
11938 dlopen ();
11939   ;
11940   return 0;
11941 }
11942 _ACEOF
11943 rm -f conftest.$ac_objext conftest$ac_exeext
11944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11945   (eval $ac_link) 2>&5
11946   ac_status=$?
11947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948   (exit $ac_status); } &&
11949          { ac_try='test -s conftest$ac_exeext'
11950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951   (eval $ac_try) 2>&5
11952   ac_status=$?
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   (exit $ac_status); }; }; then
11955   ac_cv_lib_dl_dlopen=yes
11956 else
11957   echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11959
11960 ac_cv_lib_dl_dlopen=no
11961 fi
11962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11963 LIBS=$ac_check_lib_save_LIBS
11964 fi
11965 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11966 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11967 if test $ac_cv_lib_dl_dlopen = yes; then
11968   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11969 else
11970   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11971 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11972 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11973   echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975   ac_check_lib_save_LIBS=$LIBS
11976 LIBS="-lsvld  $LIBS"
11977 cat >conftest.$ac_ext <<_ACEOF
11978 #line $LINENO "configure"
11979 /* confdefs.h.  */
11980 _ACEOF
11981 cat confdefs.h >>conftest.$ac_ext
11982 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h.  */
11984
11985 /* Override any gcc2 internal prototype to avoid an error.  */
11986 #ifdef __cplusplus
11987 extern "C"
11988 #endif
11989 /* We use char because int might match the return type of a gcc2
11990    builtin and then its argument prototype would still apply.  */
11991 char dlopen ();
11992 int
11993 main ()
11994 {
11995 dlopen ();
11996   ;
11997   return 0;
11998 }
11999 _ACEOF
12000 rm -f conftest.$ac_objext conftest$ac_exeext
12001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12002   (eval $ac_link) 2>&5
12003   ac_status=$?
12004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005   (exit $ac_status); } &&
12006          { ac_try='test -s conftest$ac_exeext'
12007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008   (eval $ac_try) 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); }; }; then
12012   ac_cv_lib_svld_dlopen=yes
12013 else
12014   echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12016
12017 ac_cv_lib_svld_dlopen=no
12018 fi
12019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12020 LIBS=$ac_check_lib_save_LIBS
12021 fi
12022 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12023 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12024 if test $ac_cv_lib_svld_dlopen = yes; then
12025   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12026 else
12027   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12028 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12029 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12030   echo $ECHO_N "(cached) $ECHO_C" >&6
12031 else
12032   ac_check_lib_save_LIBS=$LIBS
12033 LIBS="-ldld  $LIBS"
12034 cat >conftest.$ac_ext <<_ACEOF
12035 #line $LINENO "configure"
12036 /* confdefs.h.  */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h.  */
12041
12042 /* Override any gcc2 internal prototype to avoid an error.  */
12043 #ifdef __cplusplus
12044 extern "C"
12045 #endif
12046 /* We use char because int might match the return type of a gcc2
12047    builtin and then its argument prototype would still apply.  */
12048 char dld_link ();
12049 int
12050 main ()
12051 {
12052 dld_link ();
12053   ;
12054   return 0;
12055 }
12056 _ACEOF
12057 rm -f conftest.$ac_objext conftest$ac_exeext
12058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12059   (eval $ac_link) 2>&5
12060   ac_status=$?
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); } &&
12063          { ac_try='test -s conftest$ac_exeext'
12064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065   (eval $ac_try) 2>&5
12066   ac_status=$?
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); }; }; then
12069   ac_cv_lib_dld_dld_link=yes
12070 else
12071   echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12073
12074 ac_cv_lib_dld_dld_link=no
12075 fi
12076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12077 LIBS=$ac_check_lib_save_LIBS
12078 fi
12079 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12080 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12081 if test $ac_cv_lib_dld_dld_link = yes; then
12082   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12083 fi
12084
12085
12086 fi
12087
12088
12089 fi
12090
12091
12092 fi
12093
12094
12095 fi
12096
12097
12098 fi
12099
12100     ;;
12101   esac
12102
12103   if test "x$lt_cv_dlopen" != xno; then
12104     enable_dlopen=yes
12105   else
12106     enable_dlopen=no
12107   fi
12108
12109   case $lt_cv_dlopen in
12110   dlopen)
12111     save_CPPFLAGS="$CPPFLAGS"
12112     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12113
12114     save_LDFLAGS="$LDFLAGS"
12115     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12116
12117     save_LIBS="$LIBS"
12118     LIBS="$lt_cv_dlopen_libs $LIBS"
12119
12120     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12121 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12122 if test "${lt_cv_dlopen_self+set}" = set; then
12123   echo $ECHO_N "(cached) $ECHO_C" >&6
12124 else
12125           if test "$cross_compiling" = yes; then :
12126   lt_cv_dlopen_self=cross
12127 else
12128   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12129   lt_status=$lt_dlunknown
12130   cat > conftest.$ac_ext <<EOF
12131 #line 12131 "configure"
12132 #include "confdefs.h"
12133
12134 #if HAVE_DLFCN_H
12135 #include <dlfcn.h>
12136 #endif
12137
12138 #include <stdio.h>
12139
12140 #ifdef RTLD_GLOBAL
12141 #  define LT_DLGLOBAL           RTLD_GLOBAL
12142 #else
12143 #  ifdef DL_GLOBAL
12144 #    define LT_DLGLOBAL         DL_GLOBAL
12145 #  else
12146 #    define LT_DLGLOBAL         0
12147 #  endif
12148 #endif
12149
12150 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12151    find out it does not work in some platform. */
12152 #ifndef LT_DLLAZY_OR_NOW
12153 #  ifdef RTLD_LAZY
12154 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12155 #  else
12156 #    ifdef DL_LAZY
12157 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12158 #    else
12159 #      ifdef RTLD_NOW
12160 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12161 #      else
12162 #        ifdef DL_NOW
12163 #          define LT_DLLAZY_OR_NOW      DL_NOW
12164 #        else
12165 #          define LT_DLLAZY_OR_NOW      0
12166 #        endif
12167 #      endif
12168 #    endif
12169 #  endif
12170 #endif
12171
12172 #ifdef __cplusplus
12173 extern "C" void exit (int);
12174 #endif
12175
12176 void fnord() { int i=42;}
12177 int main ()
12178 {
12179   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12180   int status = $lt_dlunknown;
12181
12182   if (self)
12183     {
12184       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12185       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12186       /* dlclose (self); */
12187     }
12188
12189     exit (status);
12190 }
12191 EOF
12192   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12193   (eval $ac_link) 2>&5
12194   ac_status=$?
12195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12197     (./conftest; exit; ) 2>/dev/null
12198     lt_status=$?
12199     case x$lt_status in
12200       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12201       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12202       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12203     esac
12204   else :
12205     # compilation failed
12206     lt_cv_dlopen_self=no
12207   fi
12208 fi
12209 rm -fr conftest*
12210
12211
12212 fi
12213 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12214 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12215
12216     if test "x$lt_cv_dlopen_self" = xyes; then
12217       LDFLAGS="$LDFLAGS $link_static_flag"
12218       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12219 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12220 if test "${lt_cv_dlopen_self_static+set}" = set; then
12221   echo $ECHO_N "(cached) $ECHO_C" >&6
12222 else
12223           if test "$cross_compiling" = yes; then :
12224   lt_cv_dlopen_self_static=cross
12225 else
12226   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12227   lt_status=$lt_dlunknown
12228   cat > conftest.$ac_ext <<EOF
12229 #line 12229 "configure"
12230 #include "confdefs.h"
12231
12232 #if HAVE_DLFCN_H
12233 #include <dlfcn.h>
12234 #endif
12235
12236 #include <stdio.h>
12237
12238 #ifdef RTLD_GLOBAL
12239 #  define LT_DLGLOBAL           RTLD_GLOBAL
12240 #else
12241 #  ifdef DL_GLOBAL
12242 #    define LT_DLGLOBAL         DL_GLOBAL
12243 #  else
12244 #    define LT_DLGLOBAL         0
12245 #  endif
12246 #endif
12247
12248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12249    find out it does not work in some platform. */
12250 #ifndef LT_DLLAZY_OR_NOW
12251 #  ifdef RTLD_LAZY
12252 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12253 #  else
12254 #    ifdef DL_LAZY
12255 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12256 #    else
12257 #      ifdef RTLD_NOW
12258 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12259 #      else
12260 #        ifdef DL_NOW
12261 #          define LT_DLLAZY_OR_NOW      DL_NOW
12262 #        else
12263 #          define LT_DLLAZY_OR_NOW      0
12264 #        endif
12265 #      endif
12266 #    endif
12267 #  endif
12268 #endif
12269
12270 #ifdef __cplusplus
12271 extern "C" void exit (int);
12272 #endif
12273
12274 void fnord() { int i=42;}
12275 int main ()
12276 {
12277   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12278   int status = $lt_dlunknown;
12279
12280   if (self)
12281     {
12282       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12283       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12284       /* dlclose (self); */
12285     }
12286
12287     exit (status);
12288 }
12289 EOF
12290   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12291   (eval $ac_link) 2>&5
12292   ac_status=$?
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12295     (./conftest; exit; ) 2>/dev/null
12296     lt_status=$?
12297     case x$lt_status in
12298       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12299       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12300       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12301     esac
12302   else :
12303     # compilation failed
12304     lt_cv_dlopen_self_static=no
12305   fi
12306 fi
12307 rm -fr conftest*
12308
12309
12310 fi
12311 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12312 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12313     fi
12314
12315     CPPFLAGS="$save_CPPFLAGS"
12316     LDFLAGS="$save_LDFLAGS"
12317     LIBS="$save_LIBS"
12318     ;;
12319   esac
12320
12321   case $lt_cv_dlopen_self in
12322   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12323   *) enable_dlopen_self=unknown ;;
12324   esac
12325
12326   case $lt_cv_dlopen_self_static in
12327   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12328   *) enable_dlopen_self_static=unknown ;;
12329   esac
12330 fi
12331
12332
12333 # The else clause should only fire when bootstrapping the
12334 # libtool distribution, otherwise you forgot to ship ltmain.sh
12335 # with your package, and you will get complaints that there are
12336 # no rules to generate ltmain.sh.
12337 if test -f "$ltmain"; then
12338   # See if we are running on zsh, and set the options which allow our commands through
12339   # without removal of \ escapes.
12340   if test -n "${ZSH_VERSION+set}" ; then
12341     setopt NO_GLOB_SUBST
12342   fi
12343   # Now quote all the things that may contain metacharacters while being
12344   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12345   # variables and quote the copies for generation of the libtool script.
12346   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12347     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12348     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12349     deplibs_check_method reload_flag reload_cmds need_locks \
12350     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12351     lt_cv_sys_global_symbol_to_c_name_address \
12352     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12353     old_postinstall_cmds old_postuninstall_cmds \
12354     compiler_CXX \
12355     CC_CXX \
12356     LD_CXX \
12357     lt_prog_compiler_wl_CXX \
12358     lt_prog_compiler_pic_CXX \
12359     lt_prog_compiler_static_CXX \
12360     lt_prog_compiler_no_builtin_flag_CXX \
12361     export_dynamic_flag_spec_CXX \
12362     thread_safe_flag_spec_CXX \
12363     whole_archive_flag_spec_CXX \
12364     enable_shared_with_static_runtimes_CXX \
12365     old_archive_cmds_CXX \
12366     old_archive_from_new_cmds_CXX \
12367     predep_objects_CXX \
12368     postdep_objects_CXX \
12369     predeps_CXX \
12370     postdeps_CXX \
12371     compiler_lib_search_path_CXX \
12372     archive_cmds_CXX \
12373     archive_expsym_cmds_CXX \
12374     postinstall_cmds_CXX \
12375     postuninstall_cmds_CXX \
12376     old_archive_from_expsyms_cmds_CXX \
12377     allow_undefined_flag_CXX \
12378     no_undefined_flag_CXX \
12379     export_symbols_cmds_CXX \
12380     hardcode_libdir_flag_spec_CXX \
12381     hardcode_libdir_flag_spec_ld_CXX \
12382     hardcode_libdir_separator_CXX \
12383     hardcode_automatic_CXX \
12384     module_cmds_CXX \
12385     module_expsym_cmds_CXX \
12386     lt_cv_prog_compiler_c_o_CXX \
12387     exclude_expsyms_CXX \
12388     include_expsyms_CXX; do
12389
12390     case $var in
12391     old_archive_cmds_CXX | \
12392     old_archive_from_new_cmds_CXX | \
12393     archive_cmds_CXX | \
12394     archive_expsym_cmds_CXX | \
12395     module_cmds_CXX | \
12396     module_expsym_cmds_CXX | \
12397     old_archive_from_expsyms_cmds_CXX | \
12398     export_symbols_cmds_CXX | \
12399     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12400     postinstall_cmds | postuninstall_cmds | \
12401     old_postinstall_cmds | old_postuninstall_cmds | \
12402     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12403       # Double-quote double-evaled strings.
12404       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12405       ;;
12406     *)
12407       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12408       ;;
12409     esac
12410   done
12411
12412   case $lt_echo in
12413   *'\$0 --fallback-echo"')
12414     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12415     ;;
12416   esac
12417
12418 cfgfile="$ofile"
12419
12420   cat <<__EOF__ >> "$cfgfile"
12421 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12422
12423 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12424
12425 # Shell to use when invoking shell scripts.
12426 SHELL=$lt_SHELL
12427
12428 # Whether or not to build shared libraries.
12429 build_libtool_libs=$enable_shared
12430
12431 # Whether or not to build static libraries.
12432 build_old_libs=$enable_static
12433
12434 # Whether or not to add -lc for building shared libraries.
12435 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12436
12437 # Whether or not to disallow shared libs when runtime libs are static
12438 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12439
12440 # Whether or not to optimize for fast installation.
12441 fast_install=$enable_fast_install
12442
12443 # The host system.
12444 host_alias=$host_alias
12445 host=$host
12446
12447 # An echo program that does not interpret backslashes.
12448 echo=$lt_echo
12449
12450 # The archiver.
12451 AR=$lt_AR
12452 AR_FLAGS=$lt_AR_FLAGS
12453
12454 # A C compiler.
12455 LTCC=$lt_LTCC
12456
12457 # A language-specific compiler.
12458 CC=$lt_compiler_CXX
12459
12460 # Is the compiler the GNU C compiler?
12461 with_gcc=$GCC_CXX
12462
12463 # An ERE matcher.
12464 EGREP=$lt_EGREP
12465
12466 # The linker used to build libraries.
12467 LD=$lt_LD_CXX
12468
12469 # Whether we need hard or soft links.
12470 LN_S=$lt_LN_S
12471
12472 # A BSD-compatible nm program.
12473 NM=$lt_NM
12474
12475 # A symbol stripping program
12476 STRIP=$STRIP
12477
12478 # Used to examine libraries when file_magic_cmd begins "file"
12479 MAGIC_CMD=$MAGIC_CMD
12480
12481 # Used on cygwin: DLL creation program.
12482 DLLTOOL="$DLLTOOL"
12483
12484 # Used on cygwin: object dumper.
12485 OBJDUMP="$OBJDUMP"
12486
12487 # Used on cygwin: assembler.
12488 AS="$AS"
12489
12490 # The name of the directory that contains temporary libtool files.
12491 objdir=$objdir
12492
12493 # How to create reloadable object files.
12494 reload_flag=$lt_reload_flag
12495 reload_cmds=$lt_reload_cmds
12496
12497 # How to pass a linker flag through the compiler.
12498 wl=$lt_lt_prog_compiler_wl_CXX
12499
12500 # Object file suffix (normally "o").
12501 objext="$ac_objext"
12502
12503 # Old archive suffix (normally "a").
12504 libext="$libext"
12505
12506 # Shared library suffix (normally ".so").
12507 shrext='$shrext'
12508
12509 # Executable file suffix (normally "").
12510 exeext="$exeext"
12511
12512 # Additional compiler flags for building library objects.
12513 pic_flag=$lt_lt_prog_compiler_pic_CXX
12514 pic_mode=$pic_mode
12515
12516 # What is the maximum length of a command?
12517 max_cmd_len=$lt_cv_sys_max_cmd_len
12518
12519 # Does compiler simultaneously support -c and -o options?
12520 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12521
12522 # Must we lock files when doing compilation ?
12523 need_locks=$lt_need_locks
12524
12525 # Do we need the lib prefix for modules?
12526 need_lib_prefix=$need_lib_prefix
12527
12528 # Do we need a version for libraries?
12529 need_version=$need_version
12530
12531 # Whether dlopen is supported.
12532 dlopen_support=$enable_dlopen
12533
12534 # Whether dlopen of programs is supported.
12535 dlopen_self=$enable_dlopen_self
12536
12537 # Whether dlopen of statically linked programs is supported.
12538 dlopen_self_static=$enable_dlopen_self_static
12539
12540 # Compiler flag to prevent dynamic linking.
12541 link_static_flag=$lt_lt_prog_compiler_static_CXX
12542
12543 # Compiler flag to turn off builtin functions.
12544 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12545
12546 # Compiler flag to allow reflexive dlopens.
12547 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12548
12549 # Compiler flag to generate shared objects directly from archives.
12550 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12551
12552 # Compiler flag to generate thread-safe objects.
12553 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12554
12555 # Library versioning type.
12556 version_type=$version_type
12557
12558 # Format of library name prefix.
12559 libname_spec=$lt_libname_spec
12560
12561 # List of archive names.  First name is the real one, the rest are links.
12562 # The last name is the one that the linker finds with -lNAME.
12563 library_names_spec=$lt_library_names_spec
12564
12565 # The coded name of the library, if different from the real name.
12566 soname_spec=$lt_soname_spec
12567
12568 # Commands used to build and install an old-style archive.
12569 RANLIB=$lt_RANLIB
12570 old_archive_cmds=$lt_old_archive_cmds_CXX
12571 old_postinstall_cmds=$lt_old_postinstall_cmds
12572 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12573
12574 # Create an old-style archive from a shared archive.
12575 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12576
12577 # Create a temporary old-style archive to link instead of a shared archive.
12578 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12579
12580 # Commands used to build and install a shared archive.
12581 archive_cmds=$lt_archive_cmds_CXX
12582 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12583 postinstall_cmds=$lt_postinstall_cmds
12584 postuninstall_cmds=$lt_postuninstall_cmds
12585
12586 # Commands used to build a loadable module (assumed same as above if empty)
12587 module_cmds=$lt_module_cmds_CXX
12588 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12589
12590 # Commands to strip libraries.
12591 old_striplib=$lt_old_striplib
12592 striplib=$lt_striplib
12593
12594 # Dependencies to place before the objects being linked to create a
12595 # shared library.
12596 predep_objects=$lt_predep_objects_CXX
12597
12598 # Dependencies to place after the objects being linked to create a
12599 # shared library.
12600 postdep_objects=$lt_postdep_objects_CXX
12601
12602 # Dependencies to place before the objects being linked to create a
12603 # shared library.
12604 predeps=$lt_predeps_CXX
12605
12606 # Dependencies to place after the objects being linked to create a
12607 # shared library.
12608 postdeps=$lt_postdeps_CXX
12609
12610 # The library search path used internally by the compiler when linking
12611 # a shared library.
12612 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12613
12614 # Method to check whether dependent libraries are shared objects.
12615 deplibs_check_method=$lt_deplibs_check_method
12616
12617 # Command to use when deplibs_check_method == file_magic.
12618 file_magic_cmd=$lt_file_magic_cmd
12619
12620 # Flag that allows shared libraries with undefined symbols to be built.
12621 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12622
12623 # Flag that forces no undefined symbols.
12624 no_undefined_flag=$lt_no_undefined_flag_CXX
12625
12626 # Commands used to finish a libtool library installation in a directory.
12627 finish_cmds=$lt_finish_cmds
12628
12629 # Same as above, but a single script fragment to be evaled but not shown.
12630 finish_eval=$lt_finish_eval
12631
12632 # Take the output of nm and produce a listing of raw symbols and C names.
12633 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12634
12635 # Transform the output of nm in a proper C declaration
12636 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12637
12638 # Transform the output of nm in a C name address pair
12639 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12640
12641 # This is the shared library runtime path variable.
12642 runpath_var=$runpath_var
12643
12644 # This is the shared library path variable.
12645 shlibpath_var=$shlibpath_var
12646
12647 # Is shlibpath searched before the hard-coded library search path?
12648 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12649
12650 # How to hardcode a shared library path into an executable.
12651 hardcode_action=$hardcode_action_CXX
12652
12653 # Whether we should hardcode library paths into libraries.
12654 hardcode_into_libs=$hardcode_into_libs
12655
12656 # Flag to hardcode \$libdir into a binary during linking.
12657 # This must work even if \$libdir does not exist.
12658 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12659
12660 # If ld is used when linking, flag to hardcode \$libdir into
12661 # a binary during linking. This must work even if \$libdir does
12662 # not exist.
12663 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12664
12665 # Whether we need a single -rpath flag with a separated argument.
12666 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12667
12668 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12669 # resulting binary.
12670 hardcode_direct=$hardcode_direct_CXX
12671
12672 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12673 # resulting binary.
12674 hardcode_minus_L=$hardcode_minus_L_CXX
12675
12676 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12677 # the resulting binary.
12678 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12679
12680 # Set to yes if building a shared library automatically hardcodes DIR into the library
12681 # and all subsequent libraries and executables linked against it.
12682 hardcode_automatic=$hardcode_automatic_CXX
12683
12684 # Variables whose values should be saved in libtool wrapper scripts and
12685 # restored at relink time.
12686 variables_saved_for_relink="$variables_saved_for_relink"
12687
12688 # Whether libtool must link a program against all its dependency libraries.
12689 link_all_deplibs=$link_all_deplibs_CXX
12690
12691 # Compile-time system search path for libraries
12692 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12693
12694 # Run-time system search path for libraries
12695 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12696
12697 # Fix the shell variable \$srcfile for the compiler.
12698 fix_srcfile_path="$fix_srcfile_path_CXX"
12699
12700 # Set to yes if exported symbols are required.
12701 always_export_symbols=$always_export_symbols_CXX
12702
12703 # The commands to list exported symbols.
12704 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12705
12706 # The commands to extract the exported symbol list from a shared archive.
12707 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12708
12709 # Symbols that should not be listed in the preloaded symbols.
12710 exclude_expsyms=$lt_exclude_expsyms_CXX
12711
12712 # Symbols that must always be exported.
12713 include_expsyms=$lt_include_expsyms_CXX
12714
12715 # ### END LIBTOOL TAG CONFIG: $tagname
12716
12717 __EOF__
12718
12719
12720 else
12721   # If there is no Makefile yet, we rely on a make rule to execute
12722   # `config.status --recheck' to rerun these tests and create the
12723   # libtool script then.
12724   test -f Makefile && make "$ltmain"
12725 fi
12726
12727
12728 ac_ext=c
12729 ac_cpp='$CPP $CPPFLAGS'
12730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12733
12734 CC=$lt_save_CC
12735 LDCXX=$LD
12736 LD=$lt_save_LD
12737 GCC=$lt_save_GCC
12738 with_gnu_ldcxx=$with_gnu_ld
12739 with_gnu_ld=$lt_save_with_gnu_ld
12740 lt_cv_path_LDCXX=$lt_cv_path_LD
12741 lt_cv_path_LD=$lt_save_path_LD
12742 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12743 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12744
12745         else
12746           tagname=""
12747         fi
12748         ;;
12749
12750       F77)
12751         if test -n "$F77" && test "X$F77" != "Xno"; then
12752
12753 ac_ext=f
12754 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12755 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12756 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12757
12758
12759 archive_cmds_need_lc_F77=no
12760 allow_undefined_flag_F77=
12761 always_export_symbols_F77=no
12762 archive_expsym_cmds_F77=
12763 export_dynamic_flag_spec_F77=
12764 hardcode_direct_F77=no
12765 hardcode_libdir_flag_spec_F77=
12766 hardcode_libdir_flag_spec_ld_F77=
12767 hardcode_libdir_separator_F77=
12768 hardcode_minus_L_F77=no
12769 hardcode_automatic_F77=no
12770 module_cmds_F77=
12771 module_expsym_cmds_F77=
12772 link_all_deplibs_F77=unknown
12773 old_archive_cmds_F77=$old_archive_cmds
12774 no_undefined_flag_F77=
12775 whole_archive_flag_spec_F77=
12776 enable_shared_with_static_runtimes_F77=no
12777
12778 # Source file extension for f77 test sources.
12779 ac_ext=f
12780
12781 # Object file extension for compiled f77 test sources.
12782 objext=o
12783 objext_F77=$objext
12784
12785 # Code to be used in simple compile tests
12786 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12787
12788 # Code to be used in simple link tests
12789 lt_simple_link_test_code="      program t\n      end\n"
12790
12791 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12792
12793 # If no C compiler was specified, use CC.
12794 LTCC=${LTCC-"$CC"}
12795
12796 # Allow CC to be a program name with arguments.
12797 compiler=$CC
12798
12799
12800 # Allow CC to be a program name with arguments.
12801 lt_save_CC="$CC"
12802 CC=${F77-"f77"}
12803 compiler=$CC
12804 compiler_F77=$CC
12805 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12806
12807 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12808 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12809 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12810 echo "${ECHO_T}$can_build_shared" >&6
12811
12812 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12813 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12814 test "$can_build_shared" = "no" && enable_shared=no
12815
12816 # On AIX, shared libraries and static libraries use the same namespace, and
12817 # are all built from PIC.
12818 case "$host_os" in
12819 aix3*)
12820   test "$enable_shared" = yes && enable_static=no
12821   if test -n "$RANLIB"; then
12822     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12823     postinstall_cmds='$RANLIB $lib'
12824   fi
12825   ;;
12826 aix4*)
12827   test "$enable_shared" = yes && enable_static=no
12828   ;;
12829 esac
12830 echo "$as_me:$LINENO: result: $enable_shared" >&5
12831 echo "${ECHO_T}$enable_shared" >&6
12832
12833 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12834 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12835 # Make sure either enable_shared or enable_static is yes.
12836 test "$enable_shared" = yes || enable_static=yes
12837 echo "$as_me:$LINENO: result: $enable_static" >&5
12838 echo "${ECHO_T}$enable_static" >&6
12839
12840 test "$ld_shlibs_F77" = no && can_build_shared=no
12841
12842 GCC_F77="$G77"
12843 LD_F77="$LD"
12844
12845 lt_prog_compiler_wl_F77=
12846 lt_prog_compiler_pic_F77=
12847 lt_prog_compiler_static_F77=
12848
12849 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12850 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12851
12852   if test "$GCC" = yes; then
12853     lt_prog_compiler_wl_F77='-Wl,'
12854     lt_prog_compiler_static_F77='-static'
12855
12856     case $host_os in
12857       aix*)
12858       # All AIX code is PIC.
12859       if test "$host_cpu" = ia64; then
12860         # AIX 5 now supports IA64 processor
12861         lt_prog_compiler_static_F77='-Bstatic'
12862       fi
12863       ;;
12864
12865     amigaos*)
12866       # FIXME: we need at least 68020 code to build shared libraries, but
12867       # adding the `-m68020' flag to GCC prevents building anything better,
12868       # like `-m68040'.
12869       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12870       ;;
12871
12872     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12873       # PIC is the default for these OSes.
12874       ;;
12875
12876     mingw* | pw32* | os2*)
12877       # This hack is so that the source file can tell whether it is being
12878       # built for inclusion in a dll (and should export symbols for example).
12879       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12880       ;;
12881
12882     darwin* | rhapsody*)
12883       # PIC is the default on this platform
12884       # Common symbols not allowed in MH_DYLIB files
12885       lt_prog_compiler_pic_F77='-fno-common'
12886       ;;
12887
12888     msdosdjgpp*)
12889       # Just because we use GCC doesn't mean we suddenly get shared libraries
12890       # on systems that don't support them.
12891       lt_prog_compiler_can_build_shared_F77=no
12892       enable_shared=no
12893       ;;
12894
12895     sysv4*MP*)
12896       if test -d /usr/nec; then
12897         lt_prog_compiler_pic_F77=-Kconform_pic
12898       fi
12899       ;;
12900
12901     hpux*)
12902       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12903       # not for PA HP-UX.
12904       case "$host_cpu" in
12905       hppa*64*|ia64*)
12906         # +Z the default
12907         ;;
12908       *)
12909         lt_prog_compiler_pic_F77='-fPIC'
12910         ;;
12911       esac
12912       ;;
12913
12914     *)
12915       lt_prog_compiler_pic_F77='-fPIC'
12916       ;;
12917     esac
12918   else
12919     # PORTME Check for flag to pass linker flags through the system compiler.
12920     case $host_os in
12921     aix*)
12922       lt_prog_compiler_wl_F77='-Wl,'
12923       if test "$host_cpu" = ia64; then
12924         # AIX 5 now supports IA64 processor
12925         lt_prog_compiler_static_F77='-Bstatic'
12926       else
12927         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12928       fi
12929       ;;
12930
12931     mingw* | pw32* | os2*)
12932       # This hack is so that the source file can tell whether it is being
12933       # built for inclusion in a dll (and should export symbols for example).
12934       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12935       ;;
12936
12937     hpux9* | hpux10* | hpux11*)
12938       lt_prog_compiler_wl_F77='-Wl,'
12939       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12940       # not for PA HP-UX.
12941       case "$host_cpu" in
12942       hppa*64*|ia64*)
12943         # +Z the default
12944         ;;
12945       *)
12946         lt_prog_compiler_pic_F77='+Z'
12947         ;;
12948       esac
12949       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12950       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12951       ;;
12952
12953     irix5* | irix6* | nonstopux*)
12954       lt_prog_compiler_wl_F77='-Wl,'
12955       # PIC (with -KPIC) is the default.
12956       lt_prog_compiler_static_F77='-non_shared'
12957       ;;
12958
12959     newsos6)
12960       lt_prog_compiler_pic_F77='-KPIC'
12961       lt_prog_compiler_static_F77='-Bstatic'
12962       ;;
12963
12964     linux*)
12965       case $CC in
12966       icc|ecc)
12967         lt_prog_compiler_wl_F77='-Wl,'
12968         lt_prog_compiler_pic_F77='-KPIC'
12969         lt_prog_compiler_static_F77='-static'
12970         ;;
12971       ccc)
12972         lt_prog_compiler_wl_F77='-Wl,'
12973         # All Alpha code is PIC.
12974         lt_prog_compiler_static_F77='-non_shared'
12975         ;;
12976       esac
12977       ;;
12978
12979     osf3* | osf4* | osf5*)
12980       lt_prog_compiler_wl_F77='-Wl,'
12981       # All OSF/1 code is PIC.
12982       lt_prog_compiler_static_F77='-non_shared'
12983       ;;
12984
12985     sco3.2v5*)
12986       lt_prog_compiler_pic_F77='-Kpic'
12987       lt_prog_compiler_static_F77='-dn'
12988       ;;
12989
12990     solaris*)
12991       lt_prog_compiler_wl_F77='-Wl,'
12992       lt_prog_compiler_pic_F77='-KPIC'
12993       lt_prog_compiler_static_F77='-Bstatic'
12994       ;;
12995
12996     sunos4*)
12997       lt_prog_compiler_wl_F77='-Qoption ld '
12998       lt_prog_compiler_pic_F77='-PIC'
12999       lt_prog_compiler_static_F77='-Bstatic'
13000       ;;
13001
13002     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13003       lt_prog_compiler_wl_F77='-Wl,'
13004       lt_prog_compiler_pic_F77='-KPIC'
13005       lt_prog_compiler_static_F77='-Bstatic'
13006       ;;
13007
13008     sysv4*MP*)
13009       if test -d /usr/nec ;then
13010         lt_prog_compiler_pic_F77='-Kconform_pic'
13011         lt_prog_compiler_static_F77='-Bstatic'
13012       fi
13013       ;;
13014
13015     uts4*)
13016       lt_prog_compiler_pic_F77='-pic'
13017       lt_prog_compiler_static_F77='-Bstatic'
13018       ;;
13019
13020     *)
13021       lt_prog_compiler_can_build_shared_F77=no
13022       ;;
13023     esac
13024   fi
13025
13026 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13027 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13028
13029 #
13030 # Check to make sure the PIC flag actually works.
13031 #
13032 if test -n "$lt_prog_compiler_pic_F77"; then
13033   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13034 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13035 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13036   echo $ECHO_N "(cached) $ECHO_C" >&6
13037 else
13038   lt_prog_compiler_pic_works_F77=no
13039   ac_outfile=conftest.$ac_objext
13040    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13041    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13042    # Insert the option either (1) after the last *FLAGS variable, or
13043    # (2) before a word containing "conftest.", or (3) at the end.
13044    # Note that $ac_compile itself does not contain backslashes and begins
13045    # with a dollar sign (not a hyphen), so the echo should work correctly.
13046    # The option is referenced via a variable to avoid confusing sed.
13047    lt_compile=`echo "$ac_compile" | $SED \
13048    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13049    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13050    -e 's:$: $lt_compiler_flag:'`
13051    (eval echo "\"\$as_me:13051: $lt_compile\"" >&5)
13052    (eval "$lt_compile" 2>conftest.err)
13053    ac_status=$?
13054    cat conftest.err >&5
13055    echo "$as_me:13055: \$? = $ac_status" >&5
13056    if (exit $ac_status) && test -s "$ac_outfile"; then
13057      # The compiler can only warn and ignore the option if not recognized
13058      # So say no if there are warnings
13059      if test ! -s conftest.err; then
13060        lt_prog_compiler_pic_works_F77=yes
13061      fi
13062    fi
13063    $rm conftest*
13064
13065 fi
13066 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13067 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13068
13069 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13070     case $lt_prog_compiler_pic_F77 in
13071      "" | " "*) ;;
13072      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13073      esac
13074 else
13075     lt_prog_compiler_pic_F77=
13076      lt_prog_compiler_can_build_shared_F77=no
13077 fi
13078
13079 fi
13080 case "$host_os" in
13081   # For platforms which do not support PIC, -DPIC is meaningless:
13082   *djgpp*)
13083     lt_prog_compiler_pic_F77=
13084     ;;
13085   *)
13086     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13087     ;;
13088 esac
13089
13090 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13091 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13092 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13093   echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095   lt_cv_prog_compiler_c_o_F77=no
13096    $rm -r conftest 2>/dev/null
13097    mkdir conftest
13098    cd conftest
13099    mkdir out
13100    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13101
13102    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13103    # that will create temporary files in the current directory regardless of
13104    # the output directory.  Thus, making CWD read-only will cause this test
13105    # to fail, enabling locking or at least warning the user not to do parallel
13106    # builds.
13107    chmod -w .
13108
13109    lt_compiler_flag="-o out/conftest2.$ac_objext"
13110    # Insert the option either (1) after the last *FLAGS variable, or
13111    # (2) before a word containing "conftest.", or (3) at the end.
13112    # Note that $ac_compile itself does not contain backslashes and begins
13113    # with a dollar sign (not a hyphen), so the echo should work correctly.
13114    lt_compile=`echo "$ac_compile" | $SED \
13115    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13116    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13117    -e 's:$: $lt_compiler_flag:'`
13118    (eval echo "\"\$as_me:13118: $lt_compile\"" >&5)
13119    (eval "$lt_compile" 2>out/conftest.err)
13120    ac_status=$?
13121    cat out/conftest.err >&5
13122    echo "$as_me:13122: \$? = $ac_status" >&5
13123    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13124    then
13125      # The compiler can only warn and ignore the option if not recognized
13126      # So say no if there are warnings
13127      if test ! -s out/conftest.err; then
13128        lt_cv_prog_compiler_c_o_F77=yes
13129      fi
13130    fi
13131    chmod u+w .
13132    $rm conftest* out/*
13133    rmdir out
13134    cd ..
13135    rmdir conftest
13136    $rm conftest*
13137
13138 fi
13139 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13140 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13141
13142
13143 hard_links="nottested"
13144 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13145   # do not overwrite the value of need_locks provided by the user
13146   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13147 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13148   hard_links=yes
13149   $rm conftest*
13150   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13151   touch conftest.a
13152   ln conftest.a conftest.b 2>&5 || hard_links=no
13153   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13154   echo "$as_me:$LINENO: result: $hard_links" >&5
13155 echo "${ECHO_T}$hard_links" >&6
13156   if test "$hard_links" = no; then
13157     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13158 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13159     need_locks=warn
13160   fi
13161 else
13162   need_locks=no
13163 fi
13164
13165 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13166 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13167
13168   runpath_var=
13169   allow_undefined_flag_F77=
13170   enable_shared_with_static_runtimes_F77=no
13171   archive_cmds_F77=
13172   archive_expsym_cmds_F77=
13173   old_archive_From_new_cmds_F77=
13174   old_archive_from_expsyms_cmds_F77=
13175   export_dynamic_flag_spec_F77=
13176   whole_archive_flag_spec_F77=
13177   thread_safe_flag_spec_F77=
13178   hardcode_libdir_flag_spec_F77=
13179   hardcode_libdir_flag_spec_ld_F77=
13180   hardcode_libdir_separator_F77=
13181   hardcode_direct_F77=no
13182   hardcode_minus_L_F77=no
13183   hardcode_shlibpath_var_F77=unsupported
13184   link_all_deplibs_F77=unknown
13185   hardcode_automatic_F77=no
13186   module_cmds_F77=
13187   module_expsym_cmds_F77=
13188   always_export_symbols_F77=no
13189   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13190   # include_expsyms should be a list of space-separated symbols to be *always*
13191   # included in the symbol list
13192   include_expsyms_F77=
13193   # exclude_expsyms can be an extended regexp of symbols to exclude
13194   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13195   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13196   # as well as any symbol that contains `d'.
13197   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13198   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13199   # platforms (ab)use it in PIC code, but their linkers get confused if
13200   # the symbol is explicitly referenced.  Since portable code cannot
13201   # rely on this symbol name, it's probably fine to never include it in
13202   # preloaded symbol tables.
13203   extract_expsyms_cmds=
13204
13205   case $host_os in
13206   cygwin* | mingw* | pw32*)
13207     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13208     # When not using gcc, we currently assume that we are using
13209     # Microsoft Visual C++.
13210     if test "$GCC" != yes; then
13211       with_gnu_ld=no
13212     fi
13213     ;;
13214   openbsd*)
13215     with_gnu_ld=no
13216     ;;
13217   esac
13218
13219   ld_shlibs_F77=yes
13220   if test "$with_gnu_ld" = yes; then
13221     # If archive_cmds runs LD, not CC, wlarc should be empty
13222     wlarc='${wl}'
13223
13224     # See if GNU ld supports shared libraries.
13225     case $host_os in
13226     aix3* | aix4* | aix5*)
13227       # On AIX/PPC, the GNU linker is very broken
13228       if test "$host_cpu" != ia64; then
13229         ld_shlibs_F77=no
13230         cat <<EOF 1>&2
13231
13232 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13233 *** to be unable to reliably create shared libraries on AIX.
13234 *** Therefore, libtool is disabling shared libraries support.  If you
13235 *** really care for shared libraries, you may want to modify your PATH
13236 *** so that a non-GNU linker is found, and then restart.
13237
13238 EOF
13239       fi
13240       ;;
13241
13242     amigaos*)
13243       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)'
13244       hardcode_libdir_flag_spec_F77='-L$libdir'
13245       hardcode_minus_L_F77=yes
13246
13247       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13248       # that the semantics of dynamic libraries on AmigaOS, at least up
13249       # to version 4, is to share data among multiple programs linked
13250       # with the same dynamic library.  Since this doesn't match the
13251       # behavior of shared libraries on other platforms, we can't use
13252       # them.
13253       ld_shlibs_F77=no
13254       ;;
13255
13256     beos*)
13257       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13258         allow_undefined_flag_F77=unsupported
13259         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13260         # support --undefined.  This deserves some investigation.  FIXME
13261         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13262       else
13263         ld_shlibs_F77=no
13264       fi
13265       ;;
13266
13267     cygwin* | mingw* | pw32*)
13268       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13269       # as there is no search path for DLLs.
13270       hardcode_libdir_flag_spec_F77='-L$libdir'
13271       allow_undefined_flag_F77=unsupported
13272       always_export_symbols_F77=no
13273       enable_shared_with_static_runtimes_F77=yes
13274       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13275
13276       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13277         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13278         # If the export-symbols file already is a .def file (1st line
13279         # is EXPORTS), use it as is; otherwise, prepend...
13280         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13281           cp $export_symbols $output_objdir/$soname.def;
13282         else
13283           echo EXPORTS > $output_objdir/$soname.def;
13284           cat $export_symbols >> $output_objdir/$soname.def;
13285         fi~
13286         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13287       else
13288         ld_shlibs=no
13289       fi
13290       ;;
13291
13292     netbsd*)
13293       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13294         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13295         wlarc=
13296       else
13297         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13298         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13299       fi
13300       ;;
13301
13302     solaris* | sysv5*)
13303       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13304         ld_shlibs_F77=no
13305         cat <<EOF 1>&2
13306
13307 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13308 *** create shared libraries on Solaris systems.  Therefore, libtool
13309 *** is disabling shared libraries support.  We urge you to upgrade GNU
13310 *** binutils to release 2.9.1 or newer.  Another option is to modify
13311 *** your PATH or compiler configuration so that the native linker is
13312 *** used, and then restart.
13313
13314 EOF
13315       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13316         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13317         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13318       else
13319         ld_shlibs_F77=no
13320       fi
13321       ;;
13322
13323     sunos4*)
13324       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13325       wlarc=
13326       hardcode_direct_F77=yes
13327       hardcode_shlibpath_var_F77=no
13328       ;;
13329
13330     *)
13331       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13332         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13333         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13334       else
13335         ld_shlibs_F77=no
13336       fi
13337       ;;
13338     esac
13339
13340     if test "$ld_shlibs_F77" = yes; then
13341       runpath_var=LD_RUN_PATH
13342       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13343       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13344       # ancient GNU ld didn't support --whole-archive et. al.
13345       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13346         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13347       else
13348         whole_archive_flag_spec_F77=
13349       fi
13350     fi
13351   else
13352     # PORTME fill in a description of your system's linker (not GNU ld)
13353     case $host_os in
13354     aix3*)
13355       allow_undefined_flag_F77=unsupported
13356       always_export_symbols_F77=yes
13357       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'
13358       # Note: this linker hardcodes the directories in LIBPATH if there
13359       # are no directories specified by -L.
13360       hardcode_minus_L_F77=yes
13361       if test "$GCC" = yes && test -z "$link_static_flag"; then
13362         # Neither direct hardcoding nor static linking is supported with a
13363         # broken collect2.
13364         hardcode_direct_F77=unsupported
13365       fi
13366       ;;
13367
13368     aix4* | aix5*)
13369       if test "$host_cpu" = ia64; then
13370         # On IA64, the linker does run time linking by default, so we don't
13371         # have to do anything special.
13372         aix_use_runtimelinking=no
13373         exp_sym_flag='-Bexport'
13374         no_entry_flag=""
13375       else
13376         # If we're using GNU nm, then we don't want the "-C" option.
13377         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13378         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13379           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'
13380         else
13381           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'
13382         fi
13383         aix_use_runtimelinking=no
13384
13385         # Test if we are trying to use run time linking or normal
13386         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13387         # need to do runtime linking.
13388         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13389           for ld_flag in $LDFLAGS; do
13390           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13391             aix_use_runtimelinking=yes
13392             break
13393           fi
13394           done
13395         esac
13396
13397         exp_sym_flag='-bexport'
13398         no_entry_flag='-bnoentry'
13399       fi
13400
13401       # When large executables or shared objects are built, AIX ld can
13402       # have problems creating the table of contents.  If linking a library
13403       # or program results in "error TOC overflow" add -mminimal-toc to
13404       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13405       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13406
13407       archive_cmds_F77=''
13408       hardcode_direct_F77=yes
13409       hardcode_libdir_separator_F77=':'
13410       link_all_deplibs_F77=yes
13411
13412       if test "$GCC" = yes; then
13413         case $host_os in aix4.012|aix4.012.*)
13414         # We only want to do this on AIX 4.2 and lower, the check
13415         # below for broken collect2 doesn't work under 4.3+
13416           collect2name=`${CC} -print-prog-name=collect2`
13417           if test -f "$collect2name" && \
13418            strings "$collect2name" | grep resolve_lib_name >/dev/null
13419           then
13420           # We have reworked collect2
13421           hardcode_direct_F77=yes
13422           else
13423           # We have old collect2
13424           hardcode_direct_F77=unsupported
13425           # It fails to find uninstalled libraries when the uninstalled
13426           # path is not listed in the libpath.  Setting hardcode_minus_L
13427           # to unsupported forces relinking
13428           hardcode_minus_L_F77=yes
13429           hardcode_libdir_flag_spec_F77='-L$libdir'
13430           hardcode_libdir_separator_F77=
13431           fi
13432         esac
13433         shared_flag='-shared'
13434       else
13435         # not using gcc
13436         if test "$host_cpu" = ia64; then
13437         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13438         # chokes on -Wl,-G. The following line is correct:
13439           shared_flag='-G'
13440         else
13441         if test "$aix_use_runtimelinking" = yes; then
13442             shared_flag='${wl}-G'
13443           else
13444             shared_flag='${wl}-bM:SRE'
13445         fi
13446         fi
13447       fi
13448
13449       # It seems that -bexpall does not export symbols beginning with
13450       # underscore (_), so it is better to generate a list of symbols to export.
13451       always_export_symbols_F77=yes
13452       if test "$aix_use_runtimelinking" = yes; then
13453         # Warning - without using the other runtime loading flags (-brtl),
13454         # -berok will link without error, but may produce a broken library.
13455         allow_undefined_flag_F77='-berok'
13456        # Determine the default libpath from the value encoded in an empty executable.
13457        cat >conftest.$ac_ext <<_ACEOF
13458       program main
13459
13460       end
13461 _ACEOF
13462 rm -f conftest.$ac_objext conftest$ac_exeext
13463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13464   (eval $ac_link) 2>&5
13465   ac_status=$?
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); } &&
13468          { ac_try='test -s conftest$ac_exeext'
13469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470   (eval $ac_try) 2>&5
13471   ac_status=$?
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); }; }; then
13474
13475 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13476 }'`
13477 # Check for a 64-bit object if we didn't find anything.
13478 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; }
13479 }'`; fi
13480 else
13481   echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13483
13484 fi
13485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13486 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13487
13488        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13489         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"
13490        else
13491         if test "$host_cpu" = ia64; then
13492           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13493           allow_undefined_flag_F77="-z nodefs"
13494           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"
13495         else
13496          # Determine the default libpath from the value encoded in an empty executable.
13497          cat >conftest.$ac_ext <<_ACEOF
13498       program main
13499
13500       end
13501 _ACEOF
13502 rm -f conftest.$ac_objext conftest$ac_exeext
13503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13504   (eval $ac_link) 2>&5
13505   ac_status=$?
13506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507   (exit $ac_status); } &&
13508          { ac_try='test -s conftest$ac_exeext'
13509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510   (eval $ac_try) 2>&5
13511   ac_status=$?
13512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513   (exit $ac_status); }; }; then
13514
13515 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13516 }'`
13517 # Check for a 64-bit object if we didn't find anything.
13518 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; }
13519 }'`; fi
13520 else
13521   echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.$ac_ext >&5
13523
13524 fi
13525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13526 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13527
13528          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13529           # Warning - without using the other run time loading flags,
13530           # -berok will link without error, but may produce a broken library.
13531           no_undefined_flag_F77=' ${wl}-bernotok'
13532           allow_undefined_flag_F77=' ${wl}-berok'
13533           # -bexpall does not export symbols beginning with underscore (_)
13534           always_export_symbols_F77=yes
13535           # Exported symbols can be pulled into shared objects from archives
13536           whole_archive_flag_spec_F77=' '
13537           archive_cmds_need_lc_F77=yes
13538           # This is similar to how AIX traditionally builds it's shared libraries.
13539           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'
13540         fi
13541       fi
13542       ;;
13543
13544     amigaos*)
13545       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)'
13546       hardcode_libdir_flag_spec_F77='-L$libdir'
13547       hardcode_minus_L_F77=yes
13548       # see comment about different semantics on the GNU ld section
13549       ld_shlibs_F77=no
13550       ;;
13551
13552     bsdi4*)
13553       export_dynamic_flag_spec_F77=-rdynamic
13554       ;;
13555
13556     cygwin* | mingw* | pw32*)
13557       # When not using gcc, we currently assume that we are using
13558       # Microsoft Visual C++.
13559       # hardcode_libdir_flag_spec is actually meaningless, as there is
13560       # no search path for DLLs.
13561       hardcode_libdir_flag_spec_F77=' '
13562       allow_undefined_flag_F77=unsupported
13563       # Tell ltmain to make .lib files, not .a files.
13564       libext=lib
13565       # Tell ltmain to make .dll files, not .so files.
13566       shrext=".dll"
13567       # FIXME: Setting linknames here is a bad hack.
13568       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13569       # The linker will automatically build a .lib file if we build a DLL.
13570       old_archive_From_new_cmds_F77='true'
13571       # FIXME: Should let the user specify the lib program.
13572       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13573       fix_srcfile_path='`cygpath -w "$srcfile"`'
13574       enable_shared_with_static_runtimes_F77=yes
13575       ;;
13576
13577     darwin* | rhapsody*)
13578     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13579       archive_cmds_need_lc_F77=no
13580       case "$host_os" in
13581       rhapsody* | darwin1.[012])
13582         allow_undefined_flag_F77='-undefined suppress'
13583         ;;
13584       *) # Darwin 1.3 on
13585         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13586         ;;
13587       esac
13588       # FIXME: Relying on posixy $() will cause problems for
13589       #        cross-compilation, but unfortunately the echo tests do not
13590       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13591       #        `"' quotes if we put them in here... so don't!
13592         lt_int_apple_cc_single_mod=no
13593         output_verbose_link_cmd='echo'
13594         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13595           lt_int_apple_cc_single_mod=yes
13596         fi
13597         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13598           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13599         else
13600         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'
13601       fi
13602       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13603       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13604         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13605           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}'
13606         else
13607           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}'
13608         fi
13609           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}'
13610       hardcode_direct_F77=no
13611       hardcode_automatic_F77=yes
13612       hardcode_shlibpath_var_F77=unsupported
13613       whole_archive_flag_spec_F77='-all_load $convenience'
13614       link_all_deplibs_F77=yes
13615     fi
13616       ;;
13617
13618     dgux*)
13619       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13620       hardcode_libdir_flag_spec_F77='-L$libdir'
13621       hardcode_shlibpath_var_F77=no
13622       ;;
13623
13624     freebsd1*)
13625       ld_shlibs_F77=no
13626       ;;
13627
13628     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13629     # support.  Future versions do this automatically, but an explicit c++rt0.o
13630     # does not break anything, and helps significantly (at the cost of a little
13631     # extra space).
13632     freebsd2.2*)
13633       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13634       hardcode_libdir_flag_spec_F77='-R$libdir'
13635       hardcode_direct_F77=yes
13636       hardcode_shlibpath_var_F77=no
13637       ;;
13638
13639     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13640     freebsd2*)
13641       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13642       hardcode_direct_F77=yes
13643       hardcode_minus_L_F77=yes
13644       hardcode_shlibpath_var_F77=no
13645       ;;
13646
13647     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13648     freebsd*)
13649       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13650       hardcode_libdir_flag_spec_F77='-R$libdir'
13651       hardcode_direct_F77=yes
13652       hardcode_shlibpath_var_F77=no
13653       ;;
13654
13655     hpux9*)
13656       if test "$GCC" = yes; then
13657         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'
13658       else
13659         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'
13660       fi
13661       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13662       hardcode_libdir_separator_F77=:
13663       hardcode_direct_F77=yes
13664
13665       # hardcode_minus_L: Not really in the search PATH,
13666       # but as the default location of the library.
13667       hardcode_minus_L_F77=yes
13668       export_dynamic_flag_spec_F77='${wl}-E'
13669       ;;
13670
13671     hpux10* | hpux11*)
13672       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13673         case "$host_cpu" in
13674         hppa*64*|ia64*)
13675           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13676           ;;
13677         *)
13678           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13679           ;;
13680         esac
13681       else
13682         case "$host_cpu" in
13683         hppa*64*|ia64*)
13684           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13685           ;;
13686         *)
13687           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13688           ;;
13689         esac
13690       fi
13691       if test "$with_gnu_ld" = no; then
13692         case "$host_cpu" in
13693         hppa*64*)
13694           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13695           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13696           hardcode_libdir_separator_F77=:
13697           hardcode_direct_F77=no
13698           hardcode_shlibpath_var_F77=no
13699           ;;
13700         ia64*)
13701           hardcode_libdir_flag_spec_F77='-L$libdir'
13702           hardcode_direct_F77=no
13703           hardcode_shlibpath_var_F77=no
13704
13705           # hardcode_minus_L: Not really in the search PATH,
13706           # but as the default location of the library.
13707           hardcode_minus_L_F77=yes
13708           ;;
13709         *)
13710           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13711           hardcode_libdir_separator_F77=:
13712           hardcode_direct_F77=yes
13713           export_dynamic_flag_spec_F77='${wl}-E'
13714
13715           # hardcode_minus_L: Not really in the search PATH,
13716           # but as the default location of the library.
13717           hardcode_minus_L_F77=yes
13718           ;;
13719         esac
13720       fi
13721       ;;
13722
13723     irix5* | irix6* | nonstopux*)
13724       if test "$GCC" = yes; then
13725         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'
13726       else
13727         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'
13728         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13729       fi
13730       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13731       hardcode_libdir_separator_F77=:
13732       link_all_deplibs_F77=yes
13733       ;;
13734
13735     netbsd*)
13736       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13737         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13738       else
13739         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13740       fi
13741       hardcode_libdir_flag_spec_F77='-R$libdir'
13742       hardcode_direct_F77=yes
13743       hardcode_shlibpath_var_F77=no
13744       ;;
13745
13746     newsos6)
13747       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13748       hardcode_direct_F77=yes
13749       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13750       hardcode_libdir_separator_F77=:
13751       hardcode_shlibpath_var_F77=no
13752       ;;
13753
13754     openbsd*)
13755       hardcode_direct_F77=yes
13756       hardcode_shlibpath_var_F77=no
13757       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13758         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13759         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13760         export_dynamic_flag_spec_F77='${wl}-E'
13761       else
13762        case $host_os in
13763          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13764            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13765            hardcode_libdir_flag_spec_F77='-R$libdir'
13766            ;;
13767          *)
13768            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13769            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13770            ;;
13771        esac
13772       fi
13773       ;;
13774
13775     os2*)
13776       hardcode_libdir_flag_spec_F77='-L$libdir'
13777       hardcode_minus_L_F77=yes
13778       allow_undefined_flag_F77=unsupported
13779       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'
13780       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13781       ;;
13782
13783     osf3*)
13784       if test "$GCC" = yes; then
13785         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13786         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'
13787       else
13788         allow_undefined_flag_F77=' -expect_unresolved \*'
13789         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'
13790       fi
13791       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13792       hardcode_libdir_separator_F77=:
13793       ;;
13794
13795     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13796       if test "$GCC" = yes; then
13797         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13798         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'
13799         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13800       else
13801         allow_undefined_flag_F77=' -expect_unresolved \*'
13802         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'
13803         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~
13804         $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'
13805
13806         # Both c and cxx compiler support -rpath directly
13807         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13808       fi
13809       hardcode_libdir_separator_F77=:
13810       ;;
13811
13812     sco3.2v5*)
13813       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13814       hardcode_shlibpath_var_F77=no
13815       export_dynamic_flag_spec_F77='${wl}-Bexport'
13816       runpath_var=LD_RUN_PATH
13817       hardcode_runpath_var=yes
13818       ;;
13819
13820     solaris*)
13821       no_undefined_flag_F77=' -z text'
13822       if test "$GCC" = yes; then
13823         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13824         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13825           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13826       else
13827         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13828         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13829         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13830       fi
13831       hardcode_libdir_flag_spec_F77='-R$libdir'
13832       hardcode_shlibpath_var_F77=no
13833       case $host_os in
13834       solaris2.[0-5] | solaris2.[0-5].*) ;;
13835       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13836         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13837       esac
13838       link_all_deplibs_F77=yes
13839       ;;
13840
13841     sunos4*)
13842       if test "x$host_vendor" = xsequent; then
13843         # Use $CC to link under sequent, because it throws in some extra .o
13844         # files that make .init and .fini sections work.
13845         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13846       else
13847         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13848       fi
13849       hardcode_libdir_flag_spec_F77='-L$libdir'
13850       hardcode_direct_F77=yes
13851       hardcode_minus_L_F77=yes
13852       hardcode_shlibpath_var_F77=no
13853       ;;
13854
13855     sysv4)
13856       case $host_vendor in
13857         sni)
13858           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13859           hardcode_direct_F77=yes # is this really true???
13860         ;;
13861         siemens)
13862           ## LD is ld it makes a PLAMLIB
13863           ## CC just makes a GrossModule.
13864           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13865           reload_cmds_F77='$CC -r -o $output$reload_objs'
13866           hardcode_direct_F77=no
13867         ;;
13868         motorola)
13869           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13870           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13871         ;;
13872       esac
13873       runpath_var='LD_RUN_PATH'
13874       hardcode_shlibpath_var_F77=no
13875       ;;
13876
13877     sysv4.3*)
13878       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13879       hardcode_shlibpath_var_F77=no
13880       export_dynamic_flag_spec_F77='-Bexport'
13881       ;;
13882
13883     sysv4*MP*)
13884       if test -d /usr/nec; then
13885         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13886         hardcode_shlibpath_var_F77=no
13887         runpath_var=LD_RUN_PATH
13888         hardcode_runpath_var=yes
13889         ld_shlibs_F77=yes
13890       fi
13891       ;;
13892
13893     sysv4.2uw2*)
13894       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13895       hardcode_direct_F77=yes
13896       hardcode_minus_L_F77=no
13897       hardcode_shlibpath_var_F77=no
13898       hardcode_runpath_var=yes
13899       runpath_var=LD_RUN_PATH
13900       ;;
13901
13902    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13903       no_undefined_flag_F77='${wl}-z ${wl}text'
13904       if test "$GCC" = yes; then
13905         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13906       else
13907         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13908       fi
13909       runpath_var='LD_RUN_PATH'
13910       hardcode_shlibpath_var_F77=no
13911       ;;
13912
13913     sysv5*)
13914       no_undefined_flag_F77=' -z text'
13915       # $CC -shared without GNU ld will not create a library from C++
13916       # object files and a static libstdc++, better avoid it by now
13917       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13918       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13919                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13920       hardcode_libdir_flag_spec_F77=
13921       hardcode_shlibpath_var_F77=no
13922       runpath_var='LD_RUN_PATH'
13923       ;;
13924
13925     uts4*)
13926       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13927       hardcode_libdir_flag_spec_F77='-L$libdir'
13928       hardcode_shlibpath_var_F77=no
13929       ;;
13930
13931     *)
13932       ld_shlibs_F77=no
13933       ;;
13934     esac
13935   fi
13936
13937 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13938 echo "${ECHO_T}$ld_shlibs_F77" >&6
13939 test "$ld_shlibs_F77" = no && can_build_shared=no
13940
13941 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13942 if test "$GCC" = yes; then
13943   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13944 fi
13945
13946 #
13947 # Do we need to explicitly link libc?
13948 #
13949 case "x$archive_cmds_need_lc_F77" in
13950 x|xyes)
13951   # Assume -lc should be added
13952   archive_cmds_need_lc_F77=yes
13953
13954   if test "$enable_shared" = yes && test "$GCC" = yes; then
13955     case $archive_cmds_F77 in
13956     *'~'*)
13957       # FIXME: we may have to deal with multi-command sequences.
13958       ;;
13959     '$CC '*)
13960       # Test whether the compiler implicitly links with -lc since on some
13961       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13962       # to ld, don't add -lc before -lgcc.
13963       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13964 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13965       $rm conftest*
13966       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13967
13968       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13969   (eval $ac_compile) 2>&5
13970   ac_status=$?
13971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972   (exit $ac_status); } 2>conftest.err; then
13973         soname=conftest
13974         lib=conftest
13975         libobjs=conftest.$ac_objext
13976         deplibs=
13977         wl=$lt_prog_compiler_wl_F77
13978         compiler_flags=-v
13979         linker_flags=-v
13980         verstring=
13981         output_objdir=.
13982         libname=conftest
13983         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13984         allow_undefined_flag_F77=
13985         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13986   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13987   ac_status=$?
13988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989   (exit $ac_status); }
13990         then
13991           archive_cmds_need_lc_F77=no
13992         else
13993           archive_cmds_need_lc_F77=yes
13994         fi
13995         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13996       else
13997         cat conftest.err 1>&5
13998       fi
13999       $rm conftest*
14000       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14001 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14002       ;;
14003     esac
14004   fi
14005   ;;
14006 esac
14007
14008 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14009 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14010 hardcode_action_F77=
14011 if test -n "$hardcode_libdir_flag_spec_F77" || \
14012    test -n "$runpath_var F77" || \
14013    test "X$hardcode_automatic_F77"="Xyes" ; then
14014
14015   # We can hardcode non-existant directories.
14016   if test "$hardcode_direct_F77" != no &&
14017      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14018      # have to relink, otherwise we might link with an installed library
14019      # when we should be linking with a yet-to-be-installed one
14020      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14021      test "$hardcode_minus_L_F77" != no; then
14022     # Linking always hardcodes the temporary library directory.
14023     hardcode_action_F77=relink
14024   else
14025     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14026     hardcode_action_F77=immediate
14027   fi
14028 else
14029   # We cannot hardcode anything, or else we can only hardcode existing
14030   # directories.
14031   hardcode_action_F77=unsupported
14032 fi
14033 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14034 echo "${ECHO_T}$hardcode_action_F77" >&6
14035
14036 if test "$hardcode_action_F77" = relink; then
14037   # Fast installation is not supported
14038   enable_fast_install=no
14039 elif test "$shlibpath_overrides_runpath" = yes ||
14040      test "$enable_shared" = no; then
14041   # Fast installation is not necessary
14042   enable_fast_install=needless
14043 fi
14044
14045 striplib=
14046 old_striplib=
14047 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14048 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14049 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14050   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14051   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14052   echo "$as_me:$LINENO: result: yes" >&5
14053 echo "${ECHO_T}yes" >&6
14054 else
14055 # FIXME - insert some real tests, host_os isn't really good enough
14056   case $host_os in
14057    darwin*)
14058        if test -n "$STRIP" ; then
14059          striplib="$STRIP -x"
14060          echo "$as_me:$LINENO: result: yes" >&5
14061 echo "${ECHO_T}yes" >&6
14062        else
14063   echo "$as_me:$LINENO: result: no" >&5
14064 echo "${ECHO_T}no" >&6
14065 fi
14066        ;;
14067    *)
14068   echo "$as_me:$LINENO: result: no" >&5
14069 echo "${ECHO_T}no" >&6
14070     ;;
14071   esac
14072 fi
14073
14074 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14075 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14076 library_names_spec=
14077 libname_spec='lib$name'
14078 soname_spec=
14079 shrext=".so"
14080 postinstall_cmds=
14081 postuninstall_cmds=
14082 finish_cmds=
14083 finish_eval=
14084 shlibpath_var=
14085 shlibpath_overrides_runpath=unknown
14086 version_type=none
14087 dynamic_linker="$host_os ld.so"
14088 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14089 if test "$GCC" = yes; then
14090   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14091   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14092     # if the path contains ";" then we assume it to be the separator
14093     # otherwise default to the standard path separator (i.e. ":") - it is
14094     # assumed that no part of a normal pathname contains ";" but that should
14095     # okay in the real world where ";" in dirpaths is itself problematic.
14096     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14097   else
14098     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14099   fi
14100 else
14101   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14102 fi
14103 need_lib_prefix=unknown
14104 hardcode_into_libs=no
14105
14106 # when you set need_version to no, make sure it does not cause -set_version
14107 # flags to be left without arguments
14108 need_version=unknown
14109
14110 case $host_os in
14111 aix3*)
14112   version_type=linux
14113   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14114   shlibpath_var=LIBPATH
14115
14116   # AIX 3 has no versioning support, so we append a major version to the name.
14117   soname_spec='${libname}${release}${shared_ext}$major'
14118   ;;
14119
14120 aix4* | aix5*)
14121   version_type=linux
14122   need_lib_prefix=no
14123   need_version=no
14124   hardcode_into_libs=yes
14125   if test "$host_cpu" = ia64; then
14126     # AIX 5 supports IA64
14127     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14128     shlibpath_var=LD_LIBRARY_PATH
14129   else
14130     # With GCC up to 2.95.x, collect2 would create an import file
14131     # for dependence libraries.  The import file would start with
14132     # the line `#! .'.  This would cause the generated library to
14133     # depend on `.', always an invalid library.  This was fixed in
14134     # development snapshots of GCC prior to 3.0.
14135     case $host_os in
14136       aix4 | aix4.[01] | aix4.[01].*)
14137       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14138            echo ' yes '
14139            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14140         :
14141       else
14142         can_build_shared=no
14143       fi
14144       ;;
14145     esac
14146     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14147     # soname into executable. Probably we can add versioning support to
14148     # collect2, so additional links can be useful in future.
14149     if test "$aix_use_runtimelinking" = yes; then
14150       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14151       # instead of lib<name>.a to let people know that these are not
14152       # typical AIX shared libraries.
14153       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14154     else
14155       # We preserve .a as extension for shared libraries through AIX4.2
14156       # and later when we are not doing run time linking.
14157       library_names_spec='${libname}${release}.a $libname.a'
14158       soname_spec='${libname}${release}${shared_ext}$major'
14159     fi
14160     shlibpath_var=LIBPATH
14161   fi
14162   ;;
14163
14164 amigaos*)
14165   library_names_spec='$libname.ixlibrary $libname.a'
14166   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14167   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'
14168   ;;
14169
14170 beos*)
14171   library_names_spec='${libname}${shared_ext}'
14172   dynamic_linker="$host_os ld.so"
14173   shlibpath_var=LIBRARY_PATH
14174   ;;
14175
14176 bsdi4*)
14177   version_type=linux
14178   need_version=no
14179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14180   soname_spec='${libname}${release}${shared_ext}$major'
14181   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14182   shlibpath_var=LD_LIBRARY_PATH
14183   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14184   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14185   # the default ld.so.conf also contains /usr/contrib/lib and
14186   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14187   # libtool to hard-code these into programs
14188   ;;
14189
14190 cygwin* | mingw* | pw32*)
14191   version_type=windows
14192   shrext=".dll"
14193   need_version=no
14194   need_lib_prefix=no
14195
14196   case $GCC,$host_os in
14197   yes,cygwin* | yes,mingw* | yes,pw32*)
14198     library_names_spec='$libname.dll.a'
14199     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14200     postinstall_cmds='base_file=`basename \${file}`~
14201       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14202       dldir=$destdir/`dirname \$dlpath`~
14203       test -d \$dldir || mkdir -p \$dldir~
14204       $install_prog $dir/$dlname \$dldir/$dlname'
14205     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14206       dlpath=$dir/\$dldll~
14207        $rm \$dlpath'
14208     shlibpath_overrides_runpath=yes
14209
14210     case $host_os in
14211     cygwin*)
14212       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14213       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14214       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14215       ;;
14216     mingw*)
14217       # MinGW DLLs use traditional 'lib' prefix
14218       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14219       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14220       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14221         # It is most probably a Windows format PATH printed by
14222         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14223         # path with ; separators, and with drive letters. We can handle the
14224         # drive letters (cygwin fileutils understands them), so leave them,
14225         # especially as we might pass files found there to a mingw objdump,
14226         # which wouldn't understand a cygwinified path. Ahh.
14227         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14228       else
14229         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14230       fi
14231       ;;
14232     pw32*)
14233       # pw32 DLLs use 'pw' prefix rather than 'lib'
14234       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14235       ;;
14236     esac
14237     ;;
14238
14239   *)
14240     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14241     ;;
14242   esac
14243   dynamic_linker='Win32 ld.exe'
14244   # FIXME: first we should search . and the directory the executable is in
14245   shlibpath_var=PATH
14246   ;;
14247
14248 darwin* | rhapsody*)
14249   dynamic_linker="$host_os dyld"
14250   version_type=darwin
14251   need_lib_prefix=no
14252   need_version=no
14253   # FIXME: Relying on posixy $() will cause problems for
14254   #        cross-compilation, but unfortunately the echo tests do not
14255   #        yet detect zsh echo's removal of \ escapes.
14256   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14257   soname_spec='${libname}${release}${major}$shared_ext'
14258   shlibpath_overrides_runpath=yes
14259   shlibpath_var=DYLD_LIBRARY_PATH
14260   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14261   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14262   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14263   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"`
14264   fi
14265   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14266   ;;
14267
14268 dgux*)
14269   version_type=linux
14270   need_lib_prefix=no
14271   need_version=no
14272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14273   soname_spec='${libname}${release}${shared_ext}$major'
14274   shlibpath_var=LD_LIBRARY_PATH
14275   ;;
14276
14277 freebsd1*)
14278   dynamic_linker=no
14279   ;;
14280
14281 freebsd*)
14282   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14283   version_type=freebsd-$objformat
14284   case $version_type in
14285     freebsd-elf*)
14286       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14287       need_version=no
14288       need_lib_prefix=no
14289       ;;
14290     freebsd-*)
14291       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14292       need_version=yes
14293       ;;
14294   esac
14295   shlibpath_var=LD_LIBRARY_PATH
14296   case $host_os in
14297   freebsd2*)
14298     shlibpath_overrides_runpath=yes
14299     ;;
14300   freebsd3.01* | freebsdelf3.01*)
14301     shlibpath_overrides_runpath=yes
14302     hardcode_into_libs=yes
14303     ;;
14304   *) # from 3.2 on
14305     shlibpath_overrides_runpath=no
14306     hardcode_into_libs=yes
14307     ;;
14308   esac
14309   ;;
14310
14311 gnu*)
14312   version_type=linux
14313   need_lib_prefix=no
14314   need_version=no
14315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14316   soname_spec='${libname}${release}${shared_ext}$major'
14317   shlibpath_var=LD_LIBRARY_PATH
14318   hardcode_into_libs=yes
14319   ;;
14320
14321 hpux9* | hpux10* | hpux11*)
14322   # Give a soname corresponding to the major version so that dld.sl refuses to
14323   # link against other versions.
14324   version_type=sunos
14325   need_lib_prefix=no
14326   need_version=no
14327   case "$host_cpu" in
14328   ia64*)
14329     shrext='.so'
14330     hardcode_into_libs=yes
14331     dynamic_linker="$host_os dld.so"
14332     shlibpath_var=LD_LIBRARY_PATH
14333     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14334     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14335     soname_spec='${libname}${release}${shared_ext}$major'
14336     if test "X$HPUX_IA64_MODE" = X32; then
14337       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14338     else
14339       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14340     fi
14341     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14342     ;;
14343    hppa*64*)
14344      shrext='.sl'
14345      hardcode_into_libs=yes
14346      dynamic_linker="$host_os dld.sl"
14347      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14348      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14349      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14350      soname_spec='${libname}${release}${shared_ext}$major'
14351      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14352      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14353      ;;
14354    *)
14355     shrext='.sl'
14356     dynamic_linker="$host_os dld.sl"
14357     shlibpath_var=SHLIB_PATH
14358     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14359     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14360     soname_spec='${libname}${release}${shared_ext}$major'
14361     ;;
14362   esac
14363   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14364   postinstall_cmds='chmod 555 $lib'
14365   ;;
14366
14367 irix5* | irix6* | nonstopux*)
14368   case $host_os in
14369     nonstopux*) version_type=nonstopux ;;
14370     *)
14371         if test "$lt_cv_prog_gnu_ld" = yes; then
14372                 version_type=linux
14373         else
14374                 version_type=irix
14375         fi ;;
14376   esac
14377   need_lib_prefix=no
14378   need_version=no
14379   soname_spec='${libname}${release}${shared_ext}$major'
14380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14381   case $host_os in
14382   irix5* | nonstopux*)
14383     libsuff= shlibsuff=
14384     ;;
14385   *)
14386     case $LD in # libtool.m4 will add one of these switches to LD
14387     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14388       libsuff= shlibsuff= libmagic=32-bit;;
14389     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14390       libsuff=32 shlibsuff=N32 libmagic=N32;;
14391     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14392       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14393     *) libsuff= shlibsuff= libmagic=never-match;;
14394     esac
14395     ;;
14396   esac
14397   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14398   shlibpath_overrides_runpath=no
14399   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14400   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14401   hardcode_into_libs=yes
14402   ;;
14403
14404 # No shared lib support for Linux oldld, aout, or coff.
14405 linux*oldld* | linux*aout* | linux*coff*)
14406   dynamic_linker=no
14407   ;;
14408
14409 # This must be Linux ELF.
14410 linux*)
14411   version_type=linux
14412   need_lib_prefix=no
14413   need_version=no
14414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14415   soname_spec='${libname}${release}${shared_ext}$major'
14416   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14417   shlibpath_var=LD_LIBRARY_PATH
14418   shlibpath_overrides_runpath=no
14419   # This implies no fast_install, which is unacceptable.
14420   # Some rework will be needed to allow for fast_install
14421   # before this can be enabled.
14422   hardcode_into_libs=yes
14423
14424   # We used to test for /lib/ld.so.1 and disable shared libraries on
14425   # powerpc, because MkLinux only supported shared libraries with the
14426   # GNU dynamic linker.  Since this was broken with cross compilers,
14427   # most powerpc-linux boxes support dynamic linking these days and
14428   # people can always --disable-shared, the test was removed, and we
14429   # assume the GNU/Linux dynamic linker is in use.
14430   dynamic_linker='GNU/Linux ld.so'
14431   ;;
14432
14433 netbsd*)
14434   version_type=sunos
14435   need_lib_prefix=no
14436   need_version=no
14437   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14439     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14440     dynamic_linker='NetBSD (a.out) ld.so'
14441   else
14442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14443     soname_spec='${libname}${release}${shared_ext}$major'
14444     dynamic_linker='NetBSD ld.elf_so'
14445   fi
14446   shlibpath_var=LD_LIBRARY_PATH
14447   shlibpath_overrides_runpath=yes
14448   hardcode_into_libs=yes
14449   ;;
14450
14451 newsos6)
14452   version_type=linux
14453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14454   shlibpath_var=LD_LIBRARY_PATH
14455   shlibpath_overrides_runpath=yes
14456   ;;
14457
14458 nto-qnx)
14459   version_type=linux
14460   need_lib_prefix=no
14461   need_version=no
14462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463   soname_spec='${libname}${release}${shared_ext}$major'
14464   shlibpath_var=LD_LIBRARY_PATH
14465   shlibpath_overrides_runpath=yes
14466   ;;
14467
14468 openbsd*)
14469   version_type=sunos
14470   need_lib_prefix=no
14471   need_version=no
14472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14473   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14474   shlibpath_var=LD_LIBRARY_PATH
14475   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14476     case $host_os in
14477       openbsd2.[89] | openbsd2.[89].*)
14478         shlibpath_overrides_runpath=no
14479         ;;
14480       *)
14481         shlibpath_overrides_runpath=yes
14482         ;;
14483       esac
14484   else
14485     shlibpath_overrides_runpath=yes
14486   fi
14487   ;;
14488
14489 os2*)
14490   libname_spec='$name'
14491   shrext=".dll"
14492   need_lib_prefix=no
14493   library_names_spec='$libname${shared_ext} $libname.a'
14494   dynamic_linker='OS/2 ld.exe'
14495   shlibpath_var=LIBPATH
14496   ;;
14497
14498 osf3* | osf4* | osf5*)
14499   version_type=osf
14500   need_lib_prefix=no
14501   need_version=no
14502   soname_spec='${libname}${release}${shared_ext}$major'
14503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14504   shlibpath_var=LD_LIBRARY_PATH
14505   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14506   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14507   ;;
14508
14509 sco3.2v5*)
14510   version_type=osf
14511   soname_spec='${libname}${release}${shared_ext}$major'
14512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14513   shlibpath_var=LD_LIBRARY_PATH
14514   ;;
14515
14516 solaris*)
14517   version_type=linux
14518   need_lib_prefix=no
14519   need_version=no
14520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14521   soname_spec='${libname}${release}${shared_ext}$major'
14522   shlibpath_var=LD_LIBRARY_PATH
14523   shlibpath_overrides_runpath=yes
14524   hardcode_into_libs=yes
14525   # ldd complains unless libraries are executable
14526   postinstall_cmds='chmod +x $lib'
14527   ;;
14528
14529 sunos4*)
14530   version_type=sunos
14531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14532   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14533   shlibpath_var=LD_LIBRARY_PATH
14534   shlibpath_overrides_runpath=yes
14535   if test "$with_gnu_ld" = yes; then
14536     need_lib_prefix=no
14537   fi
14538   need_version=yes
14539   ;;
14540
14541 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14542   version_type=linux
14543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14544   soname_spec='${libname}${release}${shared_ext}$major'
14545   shlibpath_var=LD_LIBRARY_PATH
14546   case $host_vendor in
14547     sni)
14548       shlibpath_overrides_runpath=no
14549       need_lib_prefix=no
14550       export_dynamic_flag_spec='${wl}-Blargedynsym'
14551       runpath_var=LD_RUN_PATH
14552       ;;
14553     siemens)
14554       need_lib_prefix=no
14555       ;;
14556     motorola)
14557       need_lib_prefix=no
14558       need_version=no
14559       shlibpath_overrides_runpath=no
14560       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14561       ;;
14562   esac
14563   ;;
14564
14565 sysv4*MP*)
14566   if test -d /usr/nec ;then
14567     version_type=linux
14568     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14569     soname_spec='$libname${shared_ext}.$major'
14570     shlibpath_var=LD_LIBRARY_PATH
14571   fi
14572   ;;
14573
14574 uts4*)
14575   version_type=linux
14576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14577   soname_spec='${libname}${release}${shared_ext}$major'
14578   shlibpath_var=LD_LIBRARY_PATH
14579   ;;
14580
14581 *)
14582   dynamic_linker=no
14583   ;;
14584 esac
14585 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14586 echo "${ECHO_T}$dynamic_linker" >&6
14587 test "$dynamic_linker" = no && can_build_shared=no
14588
14589
14590 # The else clause should only fire when bootstrapping the
14591 # libtool distribution, otherwise you forgot to ship ltmain.sh
14592 # with your package, and you will get complaints that there are
14593 # no rules to generate ltmain.sh.
14594 if test -f "$ltmain"; then
14595   # See if we are running on zsh, and set the options which allow our commands through
14596   # without removal of \ escapes.
14597   if test -n "${ZSH_VERSION+set}" ; then
14598     setopt NO_GLOB_SUBST
14599   fi
14600   # Now quote all the things that may contain metacharacters while being
14601   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14602   # variables and quote the copies for generation of the libtool script.
14603   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14604     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14605     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14606     deplibs_check_method reload_flag reload_cmds need_locks \
14607     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14608     lt_cv_sys_global_symbol_to_c_name_address \
14609     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14610     old_postinstall_cmds old_postuninstall_cmds \
14611     compiler_F77 \
14612     CC_F77 \
14613     LD_F77 \
14614     lt_prog_compiler_wl_F77 \
14615     lt_prog_compiler_pic_F77 \
14616     lt_prog_compiler_static_F77 \
14617     lt_prog_compiler_no_builtin_flag_F77 \
14618     export_dynamic_flag_spec_F77 \
14619     thread_safe_flag_spec_F77 \
14620     whole_archive_flag_spec_F77 \
14621     enable_shared_with_static_runtimes_F77 \
14622     old_archive_cmds_F77 \
14623     old_archive_from_new_cmds_F77 \
14624     predep_objects_F77 \
14625     postdep_objects_F77 \
14626     predeps_F77 \
14627     postdeps_F77 \
14628     compiler_lib_search_path_F77 \
14629     archive_cmds_F77 \
14630     archive_expsym_cmds_F77 \
14631     postinstall_cmds_F77 \
14632     postuninstall_cmds_F77 \
14633     old_archive_from_expsyms_cmds_F77 \
14634     allow_undefined_flag_F77 \
14635     no_undefined_flag_F77 \
14636     export_symbols_cmds_F77 \
14637     hardcode_libdir_flag_spec_F77 \
14638     hardcode_libdir_flag_spec_ld_F77 \
14639     hardcode_libdir_separator_F77 \
14640     hardcode_automatic_F77 \
14641     module_cmds_F77 \
14642     module_expsym_cmds_F77 \
14643     lt_cv_prog_compiler_c_o_F77 \
14644     exclude_expsyms_F77 \
14645     include_expsyms_F77; do
14646
14647     case $var in
14648     old_archive_cmds_F77 | \
14649     old_archive_from_new_cmds_F77 | \
14650     archive_cmds_F77 | \
14651     archive_expsym_cmds_F77 | \
14652     module_cmds_F77 | \
14653     module_expsym_cmds_F77 | \
14654     old_archive_from_expsyms_cmds_F77 | \
14655     export_symbols_cmds_F77 | \
14656     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14657     postinstall_cmds | postuninstall_cmds | \
14658     old_postinstall_cmds | old_postuninstall_cmds | \
14659     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14660       # Double-quote double-evaled strings.
14661       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14662       ;;
14663     *)
14664       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14665       ;;
14666     esac
14667   done
14668
14669   case $lt_echo in
14670   *'\$0 --fallback-echo"')
14671     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14672     ;;
14673   esac
14674
14675 cfgfile="$ofile"
14676
14677   cat <<__EOF__ >> "$cfgfile"
14678 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14679
14680 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14681
14682 # Shell to use when invoking shell scripts.
14683 SHELL=$lt_SHELL
14684
14685 # Whether or not to build shared libraries.
14686 build_libtool_libs=$enable_shared
14687
14688 # Whether or not to build static libraries.
14689 build_old_libs=$enable_static
14690
14691 # Whether or not to add -lc for building shared libraries.
14692 build_libtool_need_lc=$archive_cmds_need_lc_F77
14693
14694 # Whether or not to disallow shared libs when runtime libs are static
14695 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14696
14697 # Whether or not to optimize for fast installation.
14698 fast_install=$enable_fast_install
14699
14700 # The host system.
14701 host_alias=$host_alias
14702 host=$host
14703
14704 # An echo program that does not interpret backslashes.
14705 echo=$lt_echo
14706
14707 # The archiver.
14708 AR=$lt_AR
14709 AR_FLAGS=$lt_AR_FLAGS
14710
14711 # A C compiler.
14712 LTCC=$lt_LTCC
14713
14714 # A language-specific compiler.
14715 CC=$lt_compiler_F77
14716
14717 # Is the compiler the GNU C compiler?
14718 with_gcc=$GCC_F77
14719
14720 # An ERE matcher.
14721 EGREP=$lt_EGREP
14722
14723 # The linker used to build libraries.
14724 LD=$lt_LD_F77
14725
14726 # Whether we need hard or soft links.
14727 LN_S=$lt_LN_S
14728
14729 # A BSD-compatible nm program.
14730 NM=$lt_NM
14731
14732 # A symbol stripping program
14733 STRIP=$STRIP
14734
14735 # Used to examine libraries when file_magic_cmd begins "file"
14736 MAGIC_CMD=$MAGIC_CMD
14737
14738 # Used on cygwin: DLL creation program.
14739 DLLTOOL="$DLLTOOL"
14740
14741 # Used on cygwin: object dumper.
14742 OBJDUMP="$OBJDUMP"
14743
14744 # Used on cygwin: assembler.
14745 AS="$AS"
14746
14747 # The name of the directory that contains temporary libtool files.
14748 objdir=$objdir
14749
14750 # How to create reloadable object files.
14751 reload_flag=$lt_reload_flag
14752 reload_cmds=$lt_reload_cmds
14753
14754 # How to pass a linker flag through the compiler.
14755 wl=$lt_lt_prog_compiler_wl_F77
14756
14757 # Object file suffix (normally "o").
14758 objext="$ac_objext"
14759
14760 # Old archive suffix (normally "a").
14761 libext="$libext"
14762
14763 # Shared library suffix (normally ".so").
14764 shrext='$shrext'
14765
14766 # Executable file suffix (normally "").
14767 exeext="$exeext"
14768
14769 # Additional compiler flags for building library objects.
14770 pic_flag=$lt_lt_prog_compiler_pic_F77
14771 pic_mode=$pic_mode
14772
14773 # What is the maximum length of a command?
14774 max_cmd_len=$lt_cv_sys_max_cmd_len
14775
14776 # Does compiler simultaneously support -c and -o options?
14777 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14778
14779 # Must we lock files when doing compilation ?
14780 need_locks=$lt_need_locks
14781
14782 # Do we need the lib prefix for modules?
14783 need_lib_prefix=$need_lib_prefix
14784
14785 # Do we need a version for libraries?
14786 need_version=$need_version
14787
14788 # Whether dlopen is supported.
14789 dlopen_support=$enable_dlopen
14790
14791 # Whether dlopen of programs is supported.
14792 dlopen_self=$enable_dlopen_self
14793
14794 # Whether dlopen of statically linked programs is supported.
14795 dlopen_self_static=$enable_dlopen_self_static
14796
14797 # Compiler flag to prevent dynamic linking.
14798 link_static_flag=$lt_lt_prog_compiler_static_F77
14799
14800 # Compiler flag to turn off builtin functions.
14801 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14802
14803 # Compiler flag to allow reflexive dlopens.
14804 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14805
14806 # Compiler flag to generate shared objects directly from archives.
14807 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14808
14809 # Compiler flag to generate thread-safe objects.
14810 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14811
14812 # Library versioning type.
14813 version_type=$version_type
14814
14815 # Format of library name prefix.
14816 libname_spec=$lt_libname_spec
14817
14818 # List of archive names.  First name is the real one, the rest are links.
14819 # The last name is the one that the linker finds with -lNAME.
14820 library_names_spec=$lt_library_names_spec
14821
14822 # The coded name of the library, if different from the real name.
14823 soname_spec=$lt_soname_spec
14824
14825 # Commands used to build and install an old-style archive.
14826 RANLIB=$lt_RANLIB
14827 old_archive_cmds=$lt_old_archive_cmds_F77
14828 old_postinstall_cmds=$lt_old_postinstall_cmds
14829 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14830
14831 # Create an old-style archive from a shared archive.
14832 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14833
14834 # Create a temporary old-style archive to link instead of a shared archive.
14835 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14836
14837 # Commands used to build and install a shared archive.
14838 archive_cmds=$lt_archive_cmds_F77
14839 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14840 postinstall_cmds=$lt_postinstall_cmds
14841 postuninstall_cmds=$lt_postuninstall_cmds
14842
14843 # Commands used to build a loadable module (assumed same as above if empty)
14844 module_cmds=$lt_module_cmds_F77
14845 module_expsym_cmds=$lt_module_expsym_cmds_F77
14846
14847 # Commands to strip libraries.
14848 old_striplib=$lt_old_striplib
14849 striplib=$lt_striplib
14850
14851 # Dependencies to place before the objects being linked to create a
14852 # shared library.
14853 predep_objects=$lt_predep_objects_F77
14854
14855 # Dependencies to place after the objects being linked to create a
14856 # shared library.
14857 postdep_objects=$lt_postdep_objects_F77
14858
14859 # Dependencies to place before the objects being linked to create a
14860 # shared library.
14861 predeps=$lt_predeps_F77
14862
14863 # Dependencies to place after the objects being linked to create a
14864 # shared library.
14865 postdeps=$lt_postdeps_F77
14866
14867 # The library search path used internally by the compiler when linking
14868 # a shared library.
14869 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14870
14871 # Method to check whether dependent libraries are shared objects.
14872 deplibs_check_method=$lt_deplibs_check_method
14873
14874 # Command to use when deplibs_check_method == file_magic.
14875 file_magic_cmd=$lt_file_magic_cmd
14876
14877 # Flag that allows shared libraries with undefined symbols to be built.
14878 allow_undefined_flag=$lt_allow_undefined_flag_F77
14879
14880 # Flag that forces no undefined symbols.
14881 no_undefined_flag=$lt_no_undefined_flag_F77
14882
14883 # Commands used to finish a libtool library installation in a directory.
14884 finish_cmds=$lt_finish_cmds
14885
14886 # Same as above, but a single script fragment to be evaled but not shown.
14887 finish_eval=$lt_finish_eval
14888
14889 # Take the output of nm and produce a listing of raw symbols and C names.
14890 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14891
14892 # Transform the output of nm in a proper C declaration
14893 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14894
14895 # Transform the output of nm in a C name address pair
14896 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14897
14898 # This is the shared library runtime path variable.
14899 runpath_var=$runpath_var
14900
14901 # This is the shared library path variable.
14902 shlibpath_var=$shlibpath_var
14903
14904 # Is shlibpath searched before the hard-coded library search path?
14905 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14906
14907 # How to hardcode a shared library path into an executable.
14908 hardcode_action=$hardcode_action_F77
14909
14910 # Whether we should hardcode library paths into libraries.
14911 hardcode_into_libs=$hardcode_into_libs
14912
14913 # Flag to hardcode \$libdir into a binary during linking.
14914 # This must work even if \$libdir does not exist.
14915 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14916
14917 # If ld is used when linking, flag to hardcode \$libdir into
14918 # a binary during linking. This must work even if \$libdir does
14919 # not exist.
14920 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14921
14922 # Whether we need a single -rpath flag with a separated argument.
14923 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14924
14925 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14926 # resulting binary.
14927 hardcode_direct=$hardcode_direct_F77
14928
14929 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14930 # resulting binary.
14931 hardcode_minus_L=$hardcode_minus_L_F77
14932
14933 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14934 # the resulting binary.
14935 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14936
14937 # Set to yes if building a shared library automatically hardcodes DIR into the library
14938 # and all subsequent libraries and executables linked against it.
14939 hardcode_automatic=$hardcode_automatic_F77
14940
14941 # Variables whose values should be saved in libtool wrapper scripts and
14942 # restored at relink time.
14943 variables_saved_for_relink="$variables_saved_for_relink"
14944
14945 # Whether libtool must link a program against all its dependency libraries.
14946 link_all_deplibs=$link_all_deplibs_F77
14947
14948 # Compile-time system search path for libraries
14949 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14950
14951 # Run-time system search path for libraries
14952 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14953
14954 # Fix the shell variable \$srcfile for the compiler.
14955 fix_srcfile_path="$fix_srcfile_path_F77"
14956
14957 # Set to yes if exported symbols are required.
14958 always_export_symbols=$always_export_symbols_F77
14959
14960 # The commands to list exported symbols.
14961 export_symbols_cmds=$lt_export_symbols_cmds_F77
14962
14963 # The commands to extract the exported symbol list from a shared archive.
14964 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14965
14966 # Symbols that should not be listed in the preloaded symbols.
14967 exclude_expsyms=$lt_exclude_expsyms_F77
14968
14969 # Symbols that must always be exported.
14970 include_expsyms=$lt_include_expsyms_F77
14971
14972 # ### END LIBTOOL TAG CONFIG: $tagname
14973
14974 __EOF__
14975
14976
14977 else
14978   # If there is no Makefile yet, we rely on a make rule to execute
14979   # `config.status --recheck' to rerun these tests and create the
14980   # libtool script then.
14981   test -f Makefile && make "$ltmain"
14982 fi
14983
14984
14985 ac_ext=c
14986 ac_cpp='$CPP $CPPFLAGS'
14987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14990
14991 CC="$lt_save_CC"
14992
14993         else
14994           tagname=""
14995         fi
14996         ;;
14997
14998       GCJ)
14999         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15000
15001
15002
15003 # Source file extension for Java test sources.
15004 ac_ext=java
15005
15006 # Object file extension for compiled Java test sources.
15007 objext=o
15008 objext_GCJ=$objext
15009
15010 # Code to be used in simple compile tests
15011 lt_simple_compile_test_code="class foo {}\n"
15012
15013 # Code to be used in simple link tests
15014 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15015
15016 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15017
15018 # If no C compiler was specified, use CC.
15019 LTCC=${LTCC-"$CC"}
15020
15021 # Allow CC to be a program name with arguments.
15022 compiler=$CC
15023
15024
15025 # Allow CC to be a program name with arguments.
15026 lt_save_CC="$CC"
15027 CC=${GCJ-"gcj"}
15028 compiler=$CC
15029 compiler_GCJ=$CC
15030
15031 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15032 archive_cmds_need_lc_GCJ=no
15033
15034 ## CAVEAT EMPTOR:
15035 ## There is no encapsulation within the following macros, do not change
15036 ## the running order or otherwise move them around unless you know exactly
15037 ## what you are doing...
15038
15039 lt_prog_compiler_no_builtin_flag_GCJ=
15040
15041 if test "$GCC" = yes; then
15042   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15043
15044   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15045 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15046 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15047   echo $ECHO_N "(cached) $ECHO_C" >&6
15048 else
15049   lt_cv_prog_compiler_rtti_exceptions=no
15050   ac_outfile=conftest.$ac_objext
15051    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15052    lt_compiler_flag="-fno-rtti -fno-exceptions"
15053    # Insert the option either (1) after the last *FLAGS variable, or
15054    # (2) before a word containing "conftest.", or (3) at the end.
15055    # Note that $ac_compile itself does not contain backslashes and begins
15056    # with a dollar sign (not a hyphen), so the echo should work correctly.
15057    # The option is referenced via a variable to avoid confusing sed.
15058    lt_compile=`echo "$ac_compile" | $SED \
15059    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15060    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15061    -e 's:$: $lt_compiler_flag:'`
15062    (eval echo "\"\$as_me:15062: $lt_compile\"" >&5)
15063    (eval "$lt_compile" 2>conftest.err)
15064    ac_status=$?
15065    cat conftest.err >&5
15066    echo "$as_me:15066: \$? = $ac_status" >&5
15067    if (exit $ac_status) && test -s "$ac_outfile"; then
15068      # The compiler can only warn and ignore the option if not recognized
15069      # So say no if there are warnings
15070      if test ! -s conftest.err; then
15071        lt_cv_prog_compiler_rtti_exceptions=yes
15072      fi
15073    fi
15074    $rm conftest*
15075
15076 fi
15077 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15078 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15079
15080 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15081     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15082 else
15083     :
15084 fi
15085
15086 fi
15087
15088 lt_prog_compiler_wl_GCJ=
15089 lt_prog_compiler_pic_GCJ=
15090 lt_prog_compiler_static_GCJ=
15091
15092 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15093 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15094
15095   if test "$GCC" = yes; then
15096     lt_prog_compiler_wl_GCJ='-Wl,'
15097     lt_prog_compiler_static_GCJ='-static'
15098
15099     case $host_os in
15100       aix*)
15101       # All AIX code is PIC.
15102       if test "$host_cpu" = ia64; then
15103         # AIX 5 now supports IA64 processor
15104         lt_prog_compiler_static_GCJ='-Bstatic'
15105       fi
15106       ;;
15107
15108     amigaos*)
15109       # FIXME: we need at least 68020 code to build shared libraries, but
15110       # adding the `-m68020' flag to GCC prevents building anything better,
15111       # like `-m68040'.
15112       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15113       ;;
15114
15115     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15116       # PIC is the default for these OSes.
15117       ;;
15118
15119     mingw* | pw32* | os2*)
15120       # This hack is so that the source file can tell whether it is being
15121       # built for inclusion in a dll (and should export symbols for example).
15122       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15123       ;;
15124
15125     darwin* | rhapsody*)
15126       # PIC is the default on this platform
15127       # Common symbols not allowed in MH_DYLIB files
15128       lt_prog_compiler_pic_GCJ='-fno-common'
15129       ;;
15130
15131     msdosdjgpp*)
15132       # Just because we use GCC doesn't mean we suddenly get shared libraries
15133       # on systems that don't support them.
15134       lt_prog_compiler_can_build_shared_GCJ=no
15135       enable_shared=no
15136       ;;
15137
15138     sysv4*MP*)
15139       if test -d /usr/nec; then
15140         lt_prog_compiler_pic_GCJ=-Kconform_pic
15141       fi
15142       ;;
15143
15144     hpux*)
15145       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15146       # not for PA HP-UX.
15147       case "$host_cpu" in
15148       hppa*64*|ia64*)
15149         # +Z the default
15150         ;;
15151       *)
15152         lt_prog_compiler_pic_GCJ='-fPIC'
15153         ;;
15154       esac
15155       ;;
15156
15157     *)
15158       lt_prog_compiler_pic_GCJ='-fPIC'
15159       ;;
15160     esac
15161   else
15162     # PORTME Check for flag to pass linker flags through the system compiler.
15163     case $host_os in
15164     aix*)
15165       lt_prog_compiler_wl_GCJ='-Wl,'
15166       if test "$host_cpu" = ia64; then
15167         # AIX 5 now supports IA64 processor
15168         lt_prog_compiler_static_GCJ='-Bstatic'
15169       else
15170         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15171       fi
15172       ;;
15173
15174     mingw* | pw32* | os2*)
15175       # This hack is so that the source file can tell whether it is being
15176       # built for inclusion in a dll (and should export symbols for example).
15177       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15178       ;;
15179
15180     hpux9* | hpux10* | hpux11*)
15181       lt_prog_compiler_wl_GCJ='-Wl,'
15182       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15183       # not for PA HP-UX.
15184       case "$host_cpu" in
15185       hppa*64*|ia64*)
15186         # +Z the default
15187         ;;
15188       *)
15189         lt_prog_compiler_pic_GCJ='+Z'
15190         ;;
15191       esac
15192       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15193       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15194       ;;
15195
15196     irix5* | irix6* | nonstopux*)
15197       lt_prog_compiler_wl_GCJ='-Wl,'
15198       # PIC (with -KPIC) is the default.
15199       lt_prog_compiler_static_GCJ='-non_shared'
15200       ;;
15201
15202     newsos6)
15203       lt_prog_compiler_pic_GCJ='-KPIC'
15204       lt_prog_compiler_static_GCJ='-Bstatic'
15205       ;;
15206
15207     linux*)
15208       case $CC in
15209       icc|ecc)
15210         lt_prog_compiler_wl_GCJ='-Wl,'
15211         lt_prog_compiler_pic_GCJ='-KPIC'
15212         lt_prog_compiler_static_GCJ='-static'
15213         ;;
15214       ccc)
15215         lt_prog_compiler_wl_GCJ='-Wl,'
15216         # All Alpha code is PIC.
15217         lt_prog_compiler_static_GCJ='-non_shared'
15218         ;;
15219       esac
15220       ;;
15221
15222     osf3* | osf4* | osf5*)
15223       lt_prog_compiler_wl_GCJ='-Wl,'
15224       # All OSF/1 code is PIC.
15225       lt_prog_compiler_static_GCJ='-non_shared'
15226       ;;
15227
15228     sco3.2v5*)
15229       lt_prog_compiler_pic_GCJ='-Kpic'
15230       lt_prog_compiler_static_GCJ='-dn'
15231       ;;
15232
15233     solaris*)
15234       lt_prog_compiler_wl_GCJ='-Wl,'
15235       lt_prog_compiler_pic_GCJ='-KPIC'
15236       lt_prog_compiler_static_GCJ='-Bstatic'
15237       ;;
15238
15239     sunos4*)
15240       lt_prog_compiler_wl_GCJ='-Qoption ld '
15241       lt_prog_compiler_pic_GCJ='-PIC'
15242       lt_prog_compiler_static_GCJ='-Bstatic'
15243       ;;
15244
15245     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15246       lt_prog_compiler_wl_GCJ='-Wl,'
15247       lt_prog_compiler_pic_GCJ='-KPIC'
15248       lt_prog_compiler_static_GCJ='-Bstatic'
15249       ;;
15250
15251     sysv4*MP*)
15252       if test -d /usr/nec ;then
15253         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15254         lt_prog_compiler_static_GCJ='-Bstatic'
15255       fi
15256       ;;
15257
15258     uts4*)
15259       lt_prog_compiler_pic_GCJ='-pic'
15260       lt_prog_compiler_static_GCJ='-Bstatic'
15261       ;;
15262
15263     *)
15264       lt_prog_compiler_can_build_shared_GCJ=no
15265       ;;
15266     esac
15267   fi
15268
15269 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15270 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15271
15272 #
15273 # Check to make sure the PIC flag actually works.
15274 #
15275 if test -n "$lt_prog_compiler_pic_GCJ"; then
15276   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15277 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15278 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15279   echo $ECHO_N "(cached) $ECHO_C" >&6
15280 else
15281   lt_prog_compiler_pic_works_GCJ=no
15282   ac_outfile=conftest.$ac_objext
15283    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15284    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15285    # Insert the option either (1) after the last *FLAGS variable, or
15286    # (2) before a word containing "conftest.", or (3) at the end.
15287    # Note that $ac_compile itself does not contain backslashes and begins
15288    # with a dollar sign (not a hyphen), so the echo should work correctly.
15289    # The option is referenced via a variable to avoid confusing sed.
15290    lt_compile=`echo "$ac_compile" | $SED \
15291    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15292    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15293    -e 's:$: $lt_compiler_flag:'`
15294    (eval echo "\"\$as_me:15294: $lt_compile\"" >&5)
15295    (eval "$lt_compile" 2>conftest.err)
15296    ac_status=$?
15297    cat conftest.err >&5
15298    echo "$as_me:15298: \$? = $ac_status" >&5
15299    if (exit $ac_status) && test -s "$ac_outfile"; then
15300      # The compiler can only warn and ignore the option if not recognized
15301      # So say no if there are warnings
15302      if test ! -s conftest.err; then
15303        lt_prog_compiler_pic_works_GCJ=yes
15304      fi
15305    fi
15306    $rm conftest*
15307
15308 fi
15309 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15310 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15311
15312 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15313     case $lt_prog_compiler_pic_GCJ in
15314      "" | " "*) ;;
15315      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15316      esac
15317 else
15318     lt_prog_compiler_pic_GCJ=
15319      lt_prog_compiler_can_build_shared_GCJ=no
15320 fi
15321
15322 fi
15323 case "$host_os" in
15324   # For platforms which do not support PIC, -DPIC is meaningless:
15325   *djgpp*)
15326     lt_prog_compiler_pic_GCJ=
15327     ;;
15328   *)
15329     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15330     ;;
15331 esac
15332
15333 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15334 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15335 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15336   echo $ECHO_N "(cached) $ECHO_C" >&6
15337 else
15338   lt_cv_prog_compiler_c_o_GCJ=no
15339    $rm -r conftest 2>/dev/null
15340    mkdir conftest
15341    cd conftest
15342    mkdir out
15343    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15344
15345    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15346    # that will create temporary files in the current directory regardless of
15347    # the output directory.  Thus, making CWD read-only will cause this test
15348    # to fail, enabling locking or at least warning the user not to do parallel
15349    # builds.
15350    chmod -w .
15351
15352    lt_compiler_flag="-o out/conftest2.$ac_objext"
15353    # Insert the option either (1) after the last *FLAGS variable, or
15354    # (2) before a word containing "conftest.", or (3) at the end.
15355    # Note that $ac_compile itself does not contain backslashes and begins
15356    # with a dollar sign (not a hyphen), so the echo should work correctly.
15357    lt_compile=`echo "$ac_compile" | $SED \
15358    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15359    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15360    -e 's:$: $lt_compiler_flag:'`
15361    (eval echo "\"\$as_me:15361: $lt_compile\"" >&5)
15362    (eval "$lt_compile" 2>out/conftest.err)
15363    ac_status=$?
15364    cat out/conftest.err >&5
15365    echo "$as_me:15365: \$? = $ac_status" >&5
15366    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15367    then
15368      # The compiler can only warn and ignore the option if not recognized
15369      # So say no if there are warnings
15370      if test ! -s out/conftest.err; then
15371        lt_cv_prog_compiler_c_o_GCJ=yes
15372      fi
15373    fi
15374    chmod u+w .
15375    $rm conftest* out/*
15376    rmdir out
15377    cd ..
15378    rmdir conftest
15379    $rm conftest*
15380
15381 fi
15382 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15383 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15384
15385
15386 hard_links="nottested"
15387 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15388   # do not overwrite the value of need_locks provided by the user
15389   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15390 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15391   hard_links=yes
15392   $rm conftest*
15393   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15394   touch conftest.a
15395   ln conftest.a conftest.b 2>&5 || hard_links=no
15396   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15397   echo "$as_me:$LINENO: result: $hard_links" >&5
15398 echo "${ECHO_T}$hard_links" >&6
15399   if test "$hard_links" = no; then
15400     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15401 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15402     need_locks=warn
15403   fi
15404 else
15405   need_locks=no
15406 fi
15407
15408 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15409 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15410
15411   runpath_var=
15412   allow_undefined_flag_GCJ=
15413   enable_shared_with_static_runtimes_GCJ=no
15414   archive_cmds_GCJ=
15415   archive_expsym_cmds_GCJ=
15416   old_archive_From_new_cmds_GCJ=
15417   old_archive_from_expsyms_cmds_GCJ=
15418   export_dynamic_flag_spec_GCJ=
15419   whole_archive_flag_spec_GCJ=
15420   thread_safe_flag_spec_GCJ=
15421   hardcode_libdir_flag_spec_GCJ=
15422   hardcode_libdir_flag_spec_ld_GCJ=
15423   hardcode_libdir_separator_GCJ=
15424   hardcode_direct_GCJ=no
15425   hardcode_minus_L_GCJ=no
15426   hardcode_shlibpath_var_GCJ=unsupported
15427   link_all_deplibs_GCJ=unknown
15428   hardcode_automatic_GCJ=no
15429   module_cmds_GCJ=
15430   module_expsym_cmds_GCJ=
15431   always_export_symbols_GCJ=no
15432   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15433   # include_expsyms should be a list of space-separated symbols to be *always*
15434   # included in the symbol list
15435   include_expsyms_GCJ=
15436   # exclude_expsyms can be an extended regexp of symbols to exclude
15437   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15438   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15439   # as well as any symbol that contains `d'.
15440   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15441   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15442   # platforms (ab)use it in PIC code, but their linkers get confused if
15443   # the symbol is explicitly referenced.  Since portable code cannot
15444   # rely on this symbol name, it's probably fine to never include it in
15445   # preloaded symbol tables.
15446   extract_expsyms_cmds=
15447
15448   case $host_os in
15449   cygwin* | mingw* | pw32*)
15450     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15451     # When not using gcc, we currently assume that we are using
15452     # Microsoft Visual C++.
15453     if test "$GCC" != yes; then
15454       with_gnu_ld=no
15455     fi
15456     ;;
15457   openbsd*)
15458     with_gnu_ld=no
15459     ;;
15460   esac
15461
15462   ld_shlibs_GCJ=yes
15463   if test "$with_gnu_ld" = yes; then
15464     # If archive_cmds runs LD, not CC, wlarc should be empty
15465     wlarc='${wl}'
15466
15467     # See if GNU ld supports shared libraries.
15468     case $host_os in
15469     aix3* | aix4* | aix5*)
15470       # On AIX/PPC, the GNU linker is very broken
15471       if test "$host_cpu" != ia64; then
15472         ld_shlibs_GCJ=no
15473         cat <<EOF 1>&2
15474
15475 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15476 *** to be unable to reliably create shared libraries on AIX.
15477 *** Therefore, libtool is disabling shared libraries support.  If you
15478 *** really care for shared libraries, you may want to modify your PATH
15479 *** so that a non-GNU linker is found, and then restart.
15480
15481 EOF
15482       fi
15483       ;;
15484
15485     amigaos*)
15486       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)'
15487       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15488       hardcode_minus_L_GCJ=yes
15489
15490       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15491       # that the semantics of dynamic libraries on AmigaOS, at least up
15492       # to version 4, is to share data among multiple programs linked
15493       # with the same dynamic library.  Since this doesn't match the
15494       # behavior of shared libraries on other platforms, we can't use
15495       # them.
15496       ld_shlibs_GCJ=no
15497       ;;
15498
15499     beos*)
15500       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15501         allow_undefined_flag_GCJ=unsupported
15502         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15503         # support --undefined.  This deserves some investigation.  FIXME
15504         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15505       else
15506         ld_shlibs_GCJ=no
15507       fi
15508       ;;
15509
15510     cygwin* | mingw* | pw32*)
15511       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15512       # as there is no search path for DLLs.
15513       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15514       allow_undefined_flag_GCJ=unsupported
15515       always_export_symbols_GCJ=no
15516       enable_shared_with_static_runtimes_GCJ=yes
15517       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15518
15519       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15520         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15521         # If the export-symbols file already is a .def file (1st line
15522         # is EXPORTS), use it as is; otherwise, prepend...
15523         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15524           cp $export_symbols $output_objdir/$soname.def;
15525         else
15526           echo EXPORTS > $output_objdir/$soname.def;
15527           cat $export_symbols >> $output_objdir/$soname.def;
15528         fi~
15529         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15530       else
15531         ld_shlibs=no
15532       fi
15533       ;;
15534
15535     netbsd*)
15536       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15537         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15538         wlarc=
15539       else
15540         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15541         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15542       fi
15543       ;;
15544
15545     solaris* | sysv5*)
15546       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15547         ld_shlibs_GCJ=no
15548         cat <<EOF 1>&2
15549
15550 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15551 *** create shared libraries on Solaris systems.  Therefore, libtool
15552 *** is disabling shared libraries support.  We urge you to upgrade GNU
15553 *** binutils to release 2.9.1 or newer.  Another option is to modify
15554 *** your PATH or compiler configuration so that the native linker is
15555 *** used, and then restart.
15556
15557 EOF
15558       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15559         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15560         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15561       else
15562         ld_shlibs_GCJ=no
15563       fi
15564       ;;
15565
15566     sunos4*)
15567       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15568       wlarc=
15569       hardcode_direct_GCJ=yes
15570       hardcode_shlibpath_var_GCJ=no
15571       ;;
15572
15573     *)
15574       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15575         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15576         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15577       else
15578         ld_shlibs_GCJ=no
15579       fi
15580       ;;
15581     esac
15582
15583     if test "$ld_shlibs_GCJ" = yes; then
15584       runpath_var=LD_RUN_PATH
15585       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15586       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15587       # ancient GNU ld didn't support --whole-archive et. al.
15588       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15589         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15590       else
15591         whole_archive_flag_spec_GCJ=
15592       fi
15593     fi
15594   else
15595     # PORTME fill in a description of your system's linker (not GNU ld)
15596     case $host_os in
15597     aix3*)
15598       allow_undefined_flag_GCJ=unsupported
15599       always_export_symbols_GCJ=yes
15600       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'
15601       # Note: this linker hardcodes the directories in LIBPATH if there
15602       # are no directories specified by -L.
15603       hardcode_minus_L_GCJ=yes
15604       if test "$GCC" = yes && test -z "$link_static_flag"; then
15605         # Neither direct hardcoding nor static linking is supported with a
15606         # broken collect2.
15607         hardcode_direct_GCJ=unsupported
15608       fi
15609       ;;
15610
15611     aix4* | aix5*)
15612       if test "$host_cpu" = ia64; then
15613         # On IA64, the linker does run time linking by default, so we don't
15614         # have to do anything special.
15615         aix_use_runtimelinking=no
15616         exp_sym_flag='-Bexport'
15617         no_entry_flag=""
15618       else
15619         # If we're using GNU nm, then we don't want the "-C" option.
15620         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15621         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15622           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'
15623         else
15624           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'
15625         fi
15626         aix_use_runtimelinking=no
15627
15628         # Test if we are trying to use run time linking or normal
15629         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15630         # need to do runtime linking.
15631         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15632           for ld_flag in $LDFLAGS; do
15633           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15634             aix_use_runtimelinking=yes
15635             break
15636           fi
15637           done
15638         esac
15639
15640         exp_sym_flag='-bexport'
15641         no_entry_flag='-bnoentry'
15642       fi
15643
15644       # When large executables or shared objects are built, AIX ld can
15645       # have problems creating the table of contents.  If linking a library
15646       # or program results in "error TOC overflow" add -mminimal-toc to
15647       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15648       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15649
15650       archive_cmds_GCJ=''
15651       hardcode_direct_GCJ=yes
15652       hardcode_libdir_separator_GCJ=':'
15653       link_all_deplibs_GCJ=yes
15654
15655       if test "$GCC" = yes; then
15656         case $host_os in aix4.012|aix4.012.*)
15657         # We only want to do this on AIX 4.2 and lower, the check
15658         # below for broken collect2 doesn't work under 4.3+
15659           collect2name=`${CC} -print-prog-name=collect2`
15660           if test -f "$collect2name" && \
15661            strings "$collect2name" | grep resolve_lib_name >/dev/null
15662           then
15663           # We have reworked collect2
15664           hardcode_direct_GCJ=yes
15665           else
15666           # We have old collect2
15667           hardcode_direct_GCJ=unsupported
15668           # It fails to find uninstalled libraries when the uninstalled
15669           # path is not listed in the libpath.  Setting hardcode_minus_L
15670           # to unsupported forces relinking
15671           hardcode_minus_L_GCJ=yes
15672           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15673           hardcode_libdir_separator_GCJ=
15674           fi
15675         esac
15676         shared_flag='-shared'
15677       else
15678         # not using gcc
15679         if test "$host_cpu" = ia64; then
15680         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15681         # chokes on -Wl,-G. The following line is correct:
15682           shared_flag='-G'
15683         else
15684         if test "$aix_use_runtimelinking" = yes; then
15685             shared_flag='${wl}-G'
15686           else
15687             shared_flag='${wl}-bM:SRE'
15688         fi
15689         fi
15690       fi
15691
15692       # It seems that -bexpall does not export symbols beginning with
15693       # underscore (_), so it is better to generate a list of symbols to export.
15694       always_export_symbols_GCJ=yes
15695       if test "$aix_use_runtimelinking" = yes; then
15696         # Warning - without using the other runtime loading flags (-brtl),
15697         # -berok will link without error, but may produce a broken library.
15698         allow_undefined_flag_GCJ='-berok'
15699        # Determine the default libpath from the value encoded in an empty executable.
15700        cat >conftest.$ac_ext <<_ACEOF
15701 #line $LINENO "configure"
15702 /* confdefs.h.  */
15703 _ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h.  */
15707
15708 int
15709 main ()
15710 {
15711
15712   ;
15713   return 0;
15714 }
15715 _ACEOF
15716 rm -f conftest.$ac_objext conftest$ac_exeext
15717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15718   (eval $ac_link) 2>&5
15719   ac_status=$?
15720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721   (exit $ac_status); } &&
15722          { ac_try='test -s conftest$ac_exeext'
15723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15724   (eval $ac_try) 2>&5
15725   ac_status=$?
15726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727   (exit $ac_status); }; }; then
15728
15729 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15730 }'`
15731 # Check for a 64-bit object if we didn't find anything.
15732 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; }
15733 }'`; fi
15734 else
15735   echo "$as_me: failed program was:" >&5
15736 sed 's/^/| /' conftest.$ac_ext >&5
15737
15738 fi
15739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15741
15742        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15743         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"
15744        else
15745         if test "$host_cpu" = ia64; then
15746           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15747           allow_undefined_flag_GCJ="-z nodefs"
15748           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"
15749         else
15750          # Determine the default libpath from the value encoded in an empty executable.
15751          cat >conftest.$ac_ext <<_ACEOF
15752 #line $LINENO "configure"
15753 /* confdefs.h.  */
15754 _ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h.  */
15758
15759 int
15760 main ()
15761 {
15762
15763   ;
15764   return 0;
15765 }
15766 _ACEOF
15767 rm -f conftest.$ac_objext conftest$ac_exeext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15769   (eval $ac_link) 2>&5
15770   ac_status=$?
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); } &&
15773          { ac_try='test -s conftest$ac_exeext'
15774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775   (eval $ac_try) 2>&5
15776   ac_status=$?
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); }; }; then
15779
15780 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15781 }'`
15782 # Check for a 64-bit object if we didn't find anything.
15783 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; }
15784 }'`; fi
15785 else
15786   echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15788
15789 fi
15790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15791 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15792
15793          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15794           # Warning - without using the other run time loading flags,
15795           # -berok will link without error, but may produce a broken library.
15796           no_undefined_flag_GCJ=' ${wl}-bernotok'
15797           allow_undefined_flag_GCJ=' ${wl}-berok'
15798           # -bexpall does not export symbols beginning with underscore (_)
15799           always_export_symbols_GCJ=yes
15800           # Exported symbols can be pulled into shared objects from archives
15801           whole_archive_flag_spec_GCJ=' '
15802           archive_cmds_need_lc_GCJ=yes
15803           # This is similar to how AIX traditionally builds it's shared libraries.
15804           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'
15805         fi
15806       fi
15807       ;;
15808
15809     amigaos*)
15810       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)'
15811       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15812       hardcode_minus_L_GCJ=yes
15813       # see comment about different semantics on the GNU ld section
15814       ld_shlibs_GCJ=no
15815       ;;
15816
15817     bsdi4*)
15818       export_dynamic_flag_spec_GCJ=-rdynamic
15819       ;;
15820
15821     cygwin* | mingw* | pw32*)
15822       # When not using gcc, we currently assume that we are using
15823       # Microsoft Visual C++.
15824       # hardcode_libdir_flag_spec is actually meaningless, as there is
15825       # no search path for DLLs.
15826       hardcode_libdir_flag_spec_GCJ=' '
15827       allow_undefined_flag_GCJ=unsupported
15828       # Tell ltmain to make .lib files, not .a files.
15829       libext=lib
15830       # Tell ltmain to make .dll files, not .so files.
15831       shrext=".dll"
15832       # FIXME: Setting linknames here is a bad hack.
15833       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15834       # The linker will automatically build a .lib file if we build a DLL.
15835       old_archive_From_new_cmds_GCJ='true'
15836       # FIXME: Should let the user specify the lib program.
15837       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15838       fix_srcfile_path='`cygpath -w "$srcfile"`'
15839       enable_shared_with_static_runtimes_GCJ=yes
15840       ;;
15841
15842     darwin* | rhapsody*)
15843     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15844       archive_cmds_need_lc_GCJ=no
15845       case "$host_os" in
15846       rhapsody* | darwin1.[012])
15847         allow_undefined_flag_GCJ='-undefined suppress'
15848         ;;
15849       *) # Darwin 1.3 on
15850         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15851         ;;
15852       esac
15853       # FIXME: Relying on posixy $() will cause problems for
15854       #        cross-compilation, but unfortunately the echo tests do not
15855       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15856       #        `"' quotes if we put them in here... so don't!
15857         lt_int_apple_cc_single_mod=no
15858         output_verbose_link_cmd='echo'
15859         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15860           lt_int_apple_cc_single_mod=yes
15861         fi
15862         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15863           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15864         else
15865         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'
15866       fi
15867       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15868       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15869         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15870           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}'
15871         else
15872           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}'
15873         fi
15874           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}'
15875       hardcode_direct_GCJ=no
15876       hardcode_automatic_GCJ=yes
15877       hardcode_shlibpath_var_GCJ=unsupported
15878       whole_archive_flag_spec_GCJ='-all_load $convenience'
15879       link_all_deplibs_GCJ=yes
15880     fi
15881       ;;
15882
15883     dgux*)
15884       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15885       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15886       hardcode_shlibpath_var_GCJ=no
15887       ;;
15888
15889     freebsd1*)
15890       ld_shlibs_GCJ=no
15891       ;;
15892
15893     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15894     # support.  Future versions do this automatically, but an explicit c++rt0.o
15895     # does not break anything, and helps significantly (at the cost of a little
15896     # extra space).
15897     freebsd2.2*)
15898       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15899       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15900       hardcode_direct_GCJ=yes
15901       hardcode_shlibpath_var_GCJ=no
15902       ;;
15903
15904     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15905     freebsd2*)
15906       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15907       hardcode_direct_GCJ=yes
15908       hardcode_minus_L_GCJ=yes
15909       hardcode_shlibpath_var_GCJ=no
15910       ;;
15911
15912     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15913     freebsd*)
15914       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15915       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15916       hardcode_direct_GCJ=yes
15917       hardcode_shlibpath_var_GCJ=no
15918       ;;
15919
15920     hpux9*)
15921       if test "$GCC" = yes; then
15922         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'
15923       else
15924         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'
15925       fi
15926       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15927       hardcode_libdir_separator_GCJ=:
15928       hardcode_direct_GCJ=yes
15929
15930       # hardcode_minus_L: Not really in the search PATH,
15931       # but as the default location of the library.
15932       hardcode_minus_L_GCJ=yes
15933       export_dynamic_flag_spec_GCJ='${wl}-E'
15934       ;;
15935
15936     hpux10* | hpux11*)
15937       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15938         case "$host_cpu" in
15939         hppa*64*|ia64*)
15940           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15941           ;;
15942         *)
15943           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15944           ;;
15945         esac
15946       else
15947         case "$host_cpu" in
15948         hppa*64*|ia64*)
15949           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15950           ;;
15951         *)
15952           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15953           ;;
15954         esac
15955       fi
15956       if test "$with_gnu_ld" = no; then
15957         case "$host_cpu" in
15958         hppa*64*)
15959           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15960           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15961           hardcode_libdir_separator_GCJ=:
15962           hardcode_direct_GCJ=no
15963           hardcode_shlibpath_var_GCJ=no
15964           ;;
15965         ia64*)
15966           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15967           hardcode_direct_GCJ=no
15968           hardcode_shlibpath_var_GCJ=no
15969
15970           # hardcode_minus_L: Not really in the search PATH,
15971           # but as the default location of the library.
15972           hardcode_minus_L_GCJ=yes
15973           ;;
15974         *)
15975           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15976           hardcode_libdir_separator_GCJ=:
15977           hardcode_direct_GCJ=yes
15978           export_dynamic_flag_spec_GCJ='${wl}-E'
15979
15980           # hardcode_minus_L: Not really in the search PATH,
15981           # but as the default location of the library.
15982           hardcode_minus_L_GCJ=yes
15983           ;;
15984         esac
15985       fi
15986       ;;
15987
15988     irix5* | irix6* | nonstopux*)
15989       if test "$GCC" = yes; then
15990         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'
15991       else
15992         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'
15993         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15994       fi
15995       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15996       hardcode_libdir_separator_GCJ=:
15997       link_all_deplibs_GCJ=yes
15998       ;;
15999
16000     netbsd*)
16001       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16002         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16003       else
16004         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16005       fi
16006       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16007       hardcode_direct_GCJ=yes
16008       hardcode_shlibpath_var_GCJ=no
16009       ;;
16010
16011     newsos6)
16012       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16013       hardcode_direct_GCJ=yes
16014       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16015       hardcode_libdir_separator_GCJ=:
16016       hardcode_shlibpath_var_GCJ=no
16017       ;;
16018
16019     openbsd*)
16020       hardcode_direct_GCJ=yes
16021       hardcode_shlibpath_var_GCJ=no
16022       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16023         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16024         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16025         export_dynamic_flag_spec_GCJ='${wl}-E'
16026       else
16027        case $host_os in
16028          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16029            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16030            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16031            ;;
16032          *)
16033            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16034            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16035            ;;
16036        esac
16037       fi
16038       ;;
16039
16040     os2*)
16041       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16042       hardcode_minus_L_GCJ=yes
16043       allow_undefined_flag_GCJ=unsupported
16044       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'
16045       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16046       ;;
16047
16048     osf3*)
16049       if test "$GCC" = yes; then
16050         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16051         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'
16052       else
16053         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16054         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'
16055       fi
16056       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16057       hardcode_libdir_separator_GCJ=:
16058       ;;
16059
16060     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16061       if test "$GCC" = yes; then
16062         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16063         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'
16064         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16065       else
16066         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16067         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'
16068         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~
16069         $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'
16070
16071         # Both c and cxx compiler support -rpath directly
16072         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16073       fi
16074       hardcode_libdir_separator_GCJ=:
16075       ;;
16076
16077     sco3.2v5*)
16078       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16079       hardcode_shlibpath_var_GCJ=no
16080       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16081       runpath_var=LD_RUN_PATH
16082       hardcode_runpath_var=yes
16083       ;;
16084
16085     solaris*)
16086       no_undefined_flag_GCJ=' -z text'
16087       if test "$GCC" = yes; then
16088         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16089         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16090           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16091       else
16092         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16093         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16094         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16095       fi
16096       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16097       hardcode_shlibpath_var_GCJ=no
16098       case $host_os in
16099       solaris2.[0-5] | solaris2.[0-5].*) ;;
16100       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16101         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16102       esac
16103       link_all_deplibs_GCJ=yes
16104       ;;
16105
16106     sunos4*)
16107       if test "x$host_vendor" = xsequent; then
16108         # Use $CC to link under sequent, because it throws in some extra .o
16109         # files that make .init and .fini sections work.
16110         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16111       else
16112         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16113       fi
16114       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16115       hardcode_direct_GCJ=yes
16116       hardcode_minus_L_GCJ=yes
16117       hardcode_shlibpath_var_GCJ=no
16118       ;;
16119
16120     sysv4)
16121       case $host_vendor in
16122         sni)
16123           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16124           hardcode_direct_GCJ=yes # is this really true???
16125         ;;
16126         siemens)
16127           ## LD is ld it makes a PLAMLIB
16128           ## CC just makes a GrossModule.
16129           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16130           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16131           hardcode_direct_GCJ=no
16132         ;;
16133         motorola)
16134           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16136         ;;
16137       esac
16138       runpath_var='LD_RUN_PATH'
16139       hardcode_shlibpath_var_GCJ=no
16140       ;;
16141
16142     sysv4.3*)
16143       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16144       hardcode_shlibpath_var_GCJ=no
16145       export_dynamic_flag_spec_GCJ='-Bexport'
16146       ;;
16147
16148     sysv4*MP*)
16149       if test -d /usr/nec; then
16150         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16151         hardcode_shlibpath_var_GCJ=no
16152         runpath_var=LD_RUN_PATH
16153         hardcode_runpath_var=yes
16154         ld_shlibs_GCJ=yes
16155       fi
16156       ;;
16157
16158     sysv4.2uw2*)
16159       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16160       hardcode_direct_GCJ=yes
16161       hardcode_minus_L_GCJ=no
16162       hardcode_shlibpath_var_GCJ=no
16163       hardcode_runpath_var=yes
16164       runpath_var=LD_RUN_PATH
16165       ;;
16166
16167    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16168       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16169       if test "$GCC" = yes; then
16170         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16171       else
16172         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16173       fi
16174       runpath_var='LD_RUN_PATH'
16175       hardcode_shlibpath_var_GCJ=no
16176       ;;
16177
16178     sysv5*)
16179       no_undefined_flag_GCJ=' -z text'
16180       # $CC -shared without GNU ld will not create a library from C++
16181       # object files and a static libstdc++, better avoid it by now
16182       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16183       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16184                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16185       hardcode_libdir_flag_spec_GCJ=
16186       hardcode_shlibpath_var_GCJ=no
16187       runpath_var='LD_RUN_PATH'
16188       ;;
16189
16190     uts4*)
16191       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16192       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16193       hardcode_shlibpath_var_GCJ=no
16194       ;;
16195
16196     *)
16197       ld_shlibs_GCJ=no
16198       ;;
16199     esac
16200   fi
16201
16202 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16203 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16204 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16205
16206 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16207 if test "$GCC" = yes; then
16208   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16209 fi
16210
16211 #
16212 # Do we need to explicitly link libc?
16213 #
16214 case "x$archive_cmds_need_lc_GCJ" in
16215 x|xyes)
16216   # Assume -lc should be added
16217   archive_cmds_need_lc_GCJ=yes
16218
16219   if test "$enable_shared" = yes && test "$GCC" = yes; then
16220     case $archive_cmds_GCJ in
16221     *'~'*)
16222       # FIXME: we may have to deal with multi-command sequences.
16223       ;;
16224     '$CC '*)
16225       # Test whether the compiler implicitly links with -lc since on some
16226       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16227       # to ld, don't add -lc before -lgcc.
16228       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16229 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16230       $rm conftest*
16231       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16232
16233       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16234   (eval $ac_compile) 2>&5
16235   ac_status=$?
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); } 2>conftest.err; then
16238         soname=conftest
16239         lib=conftest
16240         libobjs=conftest.$ac_objext
16241         deplibs=
16242         wl=$lt_prog_compiler_wl_GCJ
16243         compiler_flags=-v
16244         linker_flags=-v
16245         verstring=
16246         output_objdir=.
16247         libname=conftest
16248         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16249         allow_undefined_flag_GCJ=
16250         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16251   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16252   ac_status=$?
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); }
16255         then
16256           archive_cmds_need_lc_GCJ=no
16257         else
16258           archive_cmds_need_lc_GCJ=yes
16259         fi
16260         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16261       else
16262         cat conftest.err 1>&5
16263       fi
16264       $rm conftest*
16265       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16266 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16267       ;;
16268     esac
16269   fi
16270   ;;
16271 esac
16272
16273 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16274 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16275 hardcode_action_GCJ=
16276 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16277    test -n "$runpath_var GCJ" || \
16278    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16279
16280   # We can hardcode non-existant directories.
16281   if test "$hardcode_direct_GCJ" != no &&
16282      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16283      # have to relink, otherwise we might link with an installed library
16284      # when we should be linking with a yet-to-be-installed one
16285      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16286      test "$hardcode_minus_L_GCJ" != no; then
16287     # Linking always hardcodes the temporary library directory.
16288     hardcode_action_GCJ=relink
16289   else
16290     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16291     hardcode_action_GCJ=immediate
16292   fi
16293 else
16294   # We cannot hardcode anything, or else we can only hardcode existing
16295   # directories.
16296   hardcode_action_GCJ=unsupported
16297 fi
16298 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16299 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16300
16301 if test "$hardcode_action_GCJ" = relink; then
16302   # Fast installation is not supported
16303   enable_fast_install=no
16304 elif test "$shlibpath_overrides_runpath" = yes ||
16305      test "$enable_shared" = no; then
16306   # Fast installation is not necessary
16307   enable_fast_install=needless
16308 fi
16309
16310 striplib=
16311 old_striplib=
16312 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16313 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16314 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16315   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16316   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16317   echo "$as_me:$LINENO: result: yes" >&5
16318 echo "${ECHO_T}yes" >&6
16319 else
16320 # FIXME - insert some real tests, host_os isn't really good enough
16321   case $host_os in
16322    darwin*)
16323        if test -n "$STRIP" ; then
16324          striplib="$STRIP -x"
16325          echo "$as_me:$LINENO: result: yes" >&5
16326 echo "${ECHO_T}yes" >&6
16327        else
16328   echo "$as_me:$LINENO: result: no" >&5
16329 echo "${ECHO_T}no" >&6
16330 fi
16331        ;;
16332    *)
16333   echo "$as_me:$LINENO: result: no" >&5
16334 echo "${ECHO_T}no" >&6
16335     ;;
16336   esac
16337 fi
16338
16339 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16340 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16341 library_names_spec=
16342 libname_spec='lib$name'
16343 soname_spec=
16344 shrext=".so"
16345 postinstall_cmds=
16346 postuninstall_cmds=
16347 finish_cmds=
16348 finish_eval=
16349 shlibpath_var=
16350 shlibpath_overrides_runpath=unknown
16351 version_type=none
16352 dynamic_linker="$host_os ld.so"
16353 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16354 if test "$GCC" = yes; then
16355   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16356   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16357     # if the path contains ";" then we assume it to be the separator
16358     # otherwise default to the standard path separator (i.e. ":") - it is
16359     # assumed that no part of a normal pathname contains ";" but that should
16360     # okay in the real world where ";" in dirpaths is itself problematic.
16361     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16362   else
16363     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16364   fi
16365 else
16366   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16367 fi
16368 need_lib_prefix=unknown
16369 hardcode_into_libs=no
16370
16371 # when you set need_version to no, make sure it does not cause -set_version
16372 # flags to be left without arguments
16373 need_version=unknown
16374
16375 case $host_os in
16376 aix3*)
16377   version_type=linux
16378   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16379   shlibpath_var=LIBPATH
16380
16381   # AIX 3 has no versioning support, so we append a major version to the name.
16382   soname_spec='${libname}${release}${shared_ext}$major'
16383   ;;
16384
16385 aix4* | aix5*)
16386   version_type=linux
16387   need_lib_prefix=no
16388   need_version=no
16389   hardcode_into_libs=yes
16390   if test "$host_cpu" = ia64; then
16391     # AIX 5 supports IA64
16392     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16393     shlibpath_var=LD_LIBRARY_PATH
16394   else
16395     # With GCC up to 2.95.x, collect2 would create an import file
16396     # for dependence libraries.  The import file would start with
16397     # the line `#! .'.  This would cause the generated library to
16398     # depend on `.', always an invalid library.  This was fixed in
16399     # development snapshots of GCC prior to 3.0.
16400     case $host_os in
16401       aix4 | aix4.[01] | aix4.[01].*)
16402       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16403            echo ' yes '
16404            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16405         :
16406       else
16407         can_build_shared=no
16408       fi
16409       ;;
16410     esac
16411     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16412     # soname into executable. Probably we can add versioning support to
16413     # collect2, so additional links can be useful in future.
16414     if test "$aix_use_runtimelinking" = yes; then
16415       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16416       # instead of lib<name>.a to let people know that these are not
16417       # typical AIX shared libraries.
16418       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16419     else
16420       # We preserve .a as extension for shared libraries through AIX4.2
16421       # and later when we are not doing run time linking.
16422       library_names_spec='${libname}${release}.a $libname.a'
16423       soname_spec='${libname}${release}${shared_ext}$major'
16424     fi
16425     shlibpath_var=LIBPATH
16426   fi
16427   ;;
16428
16429 amigaos*)
16430   library_names_spec='$libname.ixlibrary $libname.a'
16431   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16432   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'
16433   ;;
16434
16435 beos*)
16436   library_names_spec='${libname}${shared_ext}'
16437   dynamic_linker="$host_os ld.so"
16438   shlibpath_var=LIBRARY_PATH
16439   ;;
16440
16441 bsdi4*)
16442   version_type=linux
16443   need_version=no
16444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16445   soname_spec='${libname}${release}${shared_ext}$major'
16446   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16447   shlibpath_var=LD_LIBRARY_PATH
16448   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16449   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16450   # the default ld.so.conf also contains /usr/contrib/lib and
16451   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16452   # libtool to hard-code these into programs
16453   ;;
16454
16455 cygwin* | mingw* | pw32*)
16456   version_type=windows
16457   shrext=".dll"
16458   need_version=no
16459   need_lib_prefix=no
16460
16461   case $GCC,$host_os in
16462   yes,cygwin* | yes,mingw* | yes,pw32*)
16463     library_names_spec='$libname.dll.a'
16464     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16465     postinstall_cmds='base_file=`basename \${file}`~
16466       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16467       dldir=$destdir/`dirname \$dlpath`~
16468       test -d \$dldir || mkdir -p \$dldir~
16469       $install_prog $dir/$dlname \$dldir/$dlname'
16470     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16471       dlpath=$dir/\$dldll~
16472        $rm \$dlpath'
16473     shlibpath_overrides_runpath=yes
16474
16475     case $host_os in
16476     cygwin*)
16477       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16478       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16479       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16480       ;;
16481     mingw*)
16482       # MinGW DLLs use traditional 'lib' prefix
16483       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16484       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16485       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16486         # It is most probably a Windows format PATH printed by
16487         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16488         # path with ; separators, and with drive letters. We can handle the
16489         # drive letters (cygwin fileutils understands them), so leave them,
16490         # especially as we might pass files found there to a mingw objdump,
16491         # which wouldn't understand a cygwinified path. Ahh.
16492         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16493       else
16494         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16495       fi
16496       ;;
16497     pw32*)
16498       # pw32 DLLs use 'pw' prefix rather than 'lib'
16499       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16500       ;;
16501     esac
16502     ;;
16503
16504   *)
16505     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16506     ;;
16507   esac
16508   dynamic_linker='Win32 ld.exe'
16509   # FIXME: first we should search . and the directory the executable is in
16510   shlibpath_var=PATH
16511   ;;
16512
16513 darwin* | rhapsody*)
16514   dynamic_linker="$host_os dyld"
16515   version_type=darwin
16516   need_lib_prefix=no
16517   need_version=no
16518   # FIXME: Relying on posixy $() will cause problems for
16519   #        cross-compilation, but unfortunately the echo tests do not
16520   #        yet detect zsh echo's removal of \ escapes.
16521   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16522   soname_spec='${libname}${release}${major}$shared_ext'
16523   shlibpath_overrides_runpath=yes
16524   shlibpath_var=DYLD_LIBRARY_PATH
16525   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16526   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16527   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16528   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"`
16529   fi
16530   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16531   ;;
16532
16533 dgux*)
16534   version_type=linux
16535   need_lib_prefix=no
16536   need_version=no
16537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16538   soname_spec='${libname}${release}${shared_ext}$major'
16539   shlibpath_var=LD_LIBRARY_PATH
16540   ;;
16541
16542 freebsd1*)
16543   dynamic_linker=no
16544   ;;
16545
16546 freebsd*)
16547   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16548   version_type=freebsd-$objformat
16549   case $version_type in
16550     freebsd-elf*)
16551       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16552       need_version=no
16553       need_lib_prefix=no
16554       ;;
16555     freebsd-*)
16556       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16557       need_version=yes
16558       ;;
16559   esac
16560   shlibpath_var=LD_LIBRARY_PATH
16561   case $host_os in
16562   freebsd2*)
16563     shlibpath_overrides_runpath=yes
16564     ;;
16565   freebsd3.01* | freebsdelf3.01*)
16566     shlibpath_overrides_runpath=yes
16567     hardcode_into_libs=yes
16568     ;;
16569   *) # from 3.2 on
16570     shlibpath_overrides_runpath=no
16571     hardcode_into_libs=yes
16572     ;;
16573   esac
16574   ;;
16575
16576 gnu*)
16577   version_type=linux
16578   need_lib_prefix=no
16579   need_version=no
16580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16581   soname_spec='${libname}${release}${shared_ext}$major'
16582   shlibpath_var=LD_LIBRARY_PATH
16583   hardcode_into_libs=yes
16584   ;;
16585
16586 hpux9* | hpux10* | hpux11*)
16587   # Give a soname corresponding to the major version so that dld.sl refuses to
16588   # link against other versions.
16589   version_type=sunos
16590   need_lib_prefix=no
16591   need_version=no
16592   case "$host_cpu" in
16593   ia64*)
16594     shrext='.so'
16595     hardcode_into_libs=yes
16596     dynamic_linker="$host_os dld.so"
16597     shlibpath_var=LD_LIBRARY_PATH
16598     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16599     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600     soname_spec='${libname}${release}${shared_ext}$major'
16601     if test "X$HPUX_IA64_MODE" = X32; then
16602       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16603     else
16604       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16605     fi
16606     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16607     ;;
16608    hppa*64*)
16609      shrext='.sl'
16610      hardcode_into_libs=yes
16611      dynamic_linker="$host_os dld.sl"
16612      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16613      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16614      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16615      soname_spec='${libname}${release}${shared_ext}$major'
16616      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16617      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16618      ;;
16619    *)
16620     shrext='.sl'
16621     dynamic_linker="$host_os dld.sl"
16622     shlibpath_var=SHLIB_PATH
16623     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16624     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16625     soname_spec='${libname}${release}${shared_ext}$major'
16626     ;;
16627   esac
16628   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16629   postinstall_cmds='chmod 555 $lib'
16630   ;;
16631
16632 irix5* | irix6* | nonstopux*)
16633   case $host_os in
16634     nonstopux*) version_type=nonstopux ;;
16635     *)
16636         if test "$lt_cv_prog_gnu_ld" = yes; then
16637                 version_type=linux
16638         else
16639                 version_type=irix
16640         fi ;;
16641   esac
16642   need_lib_prefix=no
16643   need_version=no
16644   soname_spec='${libname}${release}${shared_ext}$major'
16645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16646   case $host_os in
16647   irix5* | nonstopux*)
16648     libsuff= shlibsuff=
16649     ;;
16650   *)
16651     case $LD in # libtool.m4 will add one of these switches to LD
16652     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16653       libsuff= shlibsuff= libmagic=32-bit;;
16654     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16655       libsuff=32 shlibsuff=N32 libmagic=N32;;
16656     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16657       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16658     *) libsuff= shlibsuff= libmagic=never-match;;
16659     esac
16660     ;;
16661   esac
16662   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16663   shlibpath_overrides_runpath=no
16664   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16665   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16666   hardcode_into_libs=yes
16667   ;;
16668
16669 # No shared lib support for Linux oldld, aout, or coff.
16670 linux*oldld* | linux*aout* | linux*coff*)
16671   dynamic_linker=no
16672   ;;
16673
16674 # This must be Linux ELF.
16675 linux*)
16676   version_type=linux
16677   need_lib_prefix=no
16678   need_version=no
16679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16680   soname_spec='${libname}${release}${shared_ext}$major'
16681   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16682   shlibpath_var=LD_LIBRARY_PATH
16683   shlibpath_overrides_runpath=no
16684   # This implies no fast_install, which is unacceptable.
16685   # Some rework will be needed to allow for fast_install
16686   # before this can be enabled.
16687   hardcode_into_libs=yes
16688
16689   # We used to test for /lib/ld.so.1 and disable shared libraries on
16690   # powerpc, because MkLinux only supported shared libraries with the
16691   # GNU dynamic linker.  Since this was broken with cross compilers,
16692   # most powerpc-linux boxes support dynamic linking these days and
16693   # people can always --disable-shared, the test was removed, and we
16694   # assume the GNU/Linux dynamic linker is in use.
16695   dynamic_linker='GNU/Linux ld.so'
16696   ;;
16697
16698 netbsd*)
16699   version_type=sunos
16700   need_lib_prefix=no
16701   need_version=no
16702   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16703     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16704     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16705     dynamic_linker='NetBSD (a.out) ld.so'
16706   else
16707     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16708     soname_spec='${libname}${release}${shared_ext}$major'
16709     dynamic_linker='NetBSD ld.elf_so'
16710   fi
16711   shlibpath_var=LD_LIBRARY_PATH
16712   shlibpath_overrides_runpath=yes
16713   hardcode_into_libs=yes
16714   ;;
16715
16716 newsos6)
16717   version_type=linux
16718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16719   shlibpath_var=LD_LIBRARY_PATH
16720   shlibpath_overrides_runpath=yes
16721   ;;
16722
16723 nto-qnx)
16724   version_type=linux
16725   need_lib_prefix=no
16726   need_version=no
16727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16728   soname_spec='${libname}${release}${shared_ext}$major'
16729   shlibpath_var=LD_LIBRARY_PATH
16730   shlibpath_overrides_runpath=yes
16731   ;;
16732
16733 openbsd*)
16734   version_type=sunos
16735   need_lib_prefix=no
16736   need_version=no
16737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16738   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16739   shlibpath_var=LD_LIBRARY_PATH
16740   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16741     case $host_os in
16742       openbsd2.[89] | openbsd2.[89].*)
16743         shlibpath_overrides_runpath=no
16744         ;;
16745       *)
16746         shlibpath_overrides_runpath=yes
16747         ;;
16748       esac
16749   else
16750     shlibpath_overrides_runpath=yes
16751   fi
16752   ;;
16753
16754 os2*)
16755   libname_spec='$name'
16756   shrext=".dll"
16757   need_lib_prefix=no
16758   library_names_spec='$libname${shared_ext} $libname.a'
16759   dynamic_linker='OS/2 ld.exe'
16760   shlibpath_var=LIBPATH
16761   ;;
16762
16763 osf3* | osf4* | osf5*)
16764   version_type=osf
16765   need_lib_prefix=no
16766   need_version=no
16767   soname_spec='${libname}${release}${shared_ext}$major'
16768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16769   shlibpath_var=LD_LIBRARY_PATH
16770   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16771   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16772   ;;
16773
16774 sco3.2v5*)
16775   version_type=osf
16776   soname_spec='${libname}${release}${shared_ext}$major'
16777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16778   shlibpath_var=LD_LIBRARY_PATH
16779   ;;
16780
16781 solaris*)
16782   version_type=linux
16783   need_lib_prefix=no
16784   need_version=no
16785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16786   soname_spec='${libname}${release}${shared_ext}$major'
16787   shlibpath_var=LD_LIBRARY_PATH
16788   shlibpath_overrides_runpath=yes
16789   hardcode_into_libs=yes
16790   # ldd complains unless libraries are executable
16791   postinstall_cmds='chmod +x $lib'
16792   ;;
16793
16794 sunos4*)
16795   version_type=sunos
16796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16797   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16798   shlibpath_var=LD_LIBRARY_PATH
16799   shlibpath_overrides_runpath=yes
16800   if test "$with_gnu_ld" = yes; then
16801     need_lib_prefix=no
16802   fi
16803   need_version=yes
16804   ;;
16805
16806 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16807   version_type=linux
16808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16809   soname_spec='${libname}${release}${shared_ext}$major'
16810   shlibpath_var=LD_LIBRARY_PATH
16811   case $host_vendor in
16812     sni)
16813       shlibpath_overrides_runpath=no
16814       need_lib_prefix=no
16815       export_dynamic_flag_spec='${wl}-Blargedynsym'
16816       runpath_var=LD_RUN_PATH
16817       ;;
16818     siemens)
16819       need_lib_prefix=no
16820       ;;
16821     motorola)
16822       need_lib_prefix=no
16823       need_version=no
16824       shlibpath_overrides_runpath=no
16825       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16826       ;;
16827   esac
16828   ;;
16829
16830 sysv4*MP*)
16831   if test -d /usr/nec ;then
16832     version_type=linux
16833     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16834     soname_spec='$libname${shared_ext}.$major'
16835     shlibpath_var=LD_LIBRARY_PATH
16836   fi
16837   ;;
16838
16839 uts4*)
16840   version_type=linux
16841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16842   soname_spec='${libname}${release}${shared_ext}$major'
16843   shlibpath_var=LD_LIBRARY_PATH
16844   ;;
16845
16846 *)
16847   dynamic_linker=no
16848   ;;
16849 esac
16850 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16851 echo "${ECHO_T}$dynamic_linker" >&6
16852 test "$dynamic_linker" = no && can_build_shared=no
16853
16854 if test "x$enable_dlopen" != xyes; then
16855   enable_dlopen=unknown
16856   enable_dlopen_self=unknown
16857   enable_dlopen_self_static=unknown
16858 else
16859   lt_cv_dlopen=no
16860   lt_cv_dlopen_libs=
16861
16862   case $host_os in
16863   beos*)
16864     lt_cv_dlopen="load_add_on"
16865     lt_cv_dlopen_libs=
16866     lt_cv_dlopen_self=yes
16867     ;;
16868
16869   mingw* | pw32*)
16870     lt_cv_dlopen="LoadLibrary"
16871     lt_cv_dlopen_libs=
16872    ;;
16873
16874   cygwin*)
16875     lt_cv_dlopen="dlopen"
16876     lt_cv_dlopen_libs=
16877    ;;
16878
16879   darwin*)
16880   # if libdl is installed we need to link against it
16881     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16882 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16883 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16884   echo $ECHO_N "(cached) $ECHO_C" >&6
16885 else
16886   ac_check_lib_save_LIBS=$LIBS
16887 LIBS="-ldl  $LIBS"
16888 cat >conftest.$ac_ext <<_ACEOF
16889 #line $LINENO "configure"
16890 /* confdefs.h.  */
16891 _ACEOF
16892 cat confdefs.h >>conftest.$ac_ext
16893 cat >>conftest.$ac_ext <<_ACEOF
16894 /* end confdefs.h.  */
16895
16896 /* Override any gcc2 internal prototype to avoid an error.  */
16897 #ifdef __cplusplus
16898 extern "C"
16899 #endif
16900 /* We use char because int might match the return type of a gcc2
16901    builtin and then its argument prototype would still apply.  */
16902 char dlopen ();
16903 int
16904 main ()
16905 {
16906 dlopen ();
16907   ;
16908   return 0;
16909 }
16910 _ACEOF
16911 rm -f conftest.$ac_objext conftest$ac_exeext
16912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16913   (eval $ac_link) 2>&5
16914   ac_status=$?
16915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916   (exit $ac_status); } &&
16917          { ac_try='test -s conftest$ac_exeext'
16918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919   (eval $ac_try) 2>&5
16920   ac_status=$?
16921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922   (exit $ac_status); }; }; then
16923   ac_cv_lib_dl_dlopen=yes
16924 else
16925   echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16927
16928 ac_cv_lib_dl_dlopen=no
16929 fi
16930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16931 LIBS=$ac_check_lib_save_LIBS
16932 fi
16933 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16934 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16935 if test $ac_cv_lib_dl_dlopen = yes; then
16936   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16937 else
16938
16939     lt_cv_dlopen="dyld"
16940     lt_cv_dlopen_libs=
16941     lt_cv_dlopen_self=yes
16942
16943 fi
16944
16945    ;;
16946
16947   *)
16948     echo "$as_me:$LINENO: checking for shl_load" >&5
16949 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16950 if test "${ac_cv_func_shl_load+set}" = set; then
16951   echo $ECHO_N "(cached) $ECHO_C" >&6
16952 else
16953   cat >conftest.$ac_ext <<_ACEOF
16954 #line $LINENO "configure"
16955 /* confdefs.h.  */
16956 _ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h.  */
16960 /* System header to define __stub macros and hopefully few prototypes,
16961     which can conflict with char shl_load (); below.
16962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16963     <limits.h> exists even on freestanding compilers.  */
16964 #ifdef __STDC__
16965 # include <limits.h>
16966 #else
16967 # include <assert.h>
16968 #endif
16969 /* Override any gcc2 internal prototype to avoid an error.  */
16970 #ifdef __cplusplus
16971 extern "C"
16972 {
16973 #endif
16974 /* We use char because int might match the return type of a gcc2
16975    builtin and then its argument prototype would still apply.  */
16976 char shl_load ();
16977 /* The GNU C library defines this for functions which it implements
16978     to always fail with ENOSYS.  Some functions are actually named
16979     something starting with __ and the normal name is an alias.  */
16980 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16981 choke me
16982 #else
16983 char (*f) () = shl_load;
16984 #endif
16985 #ifdef __cplusplus
16986 }
16987 #endif
16988
16989 int
16990 main ()
16991 {
16992 return f != shl_load;
16993   ;
16994   return 0;
16995 }
16996 _ACEOF
16997 rm -f conftest.$ac_objext conftest$ac_exeext
16998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16999   (eval $ac_link) 2>&5
17000   ac_status=$?
17001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002   (exit $ac_status); } &&
17003          { ac_try='test -s conftest$ac_exeext'
17004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005   (eval $ac_try) 2>&5
17006   ac_status=$?
17007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008   (exit $ac_status); }; }; then
17009   ac_cv_func_shl_load=yes
17010 else
17011   echo "$as_me: failed program was:" >&5
17012 sed 's/^/| /' conftest.$ac_ext >&5
17013
17014 ac_cv_func_shl_load=no
17015 fi
17016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17017 fi
17018 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17019 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17020 if test $ac_cv_func_shl_load = yes; then
17021   lt_cv_dlopen="shl_load"
17022 else
17023   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17024 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17025 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17026   echo $ECHO_N "(cached) $ECHO_C" >&6
17027 else
17028   ac_check_lib_save_LIBS=$LIBS
17029 LIBS="-ldld  $LIBS"
17030 cat >conftest.$ac_ext <<_ACEOF
17031 #line $LINENO "configure"
17032 /* confdefs.h.  */
17033 _ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h.  */
17037
17038 /* Override any gcc2 internal prototype to avoid an error.  */
17039 #ifdef __cplusplus
17040 extern "C"
17041 #endif
17042 /* We use char because int might match the return type of a gcc2
17043    builtin and then its argument prototype would still apply.  */
17044 char shl_load ();
17045 int
17046 main ()
17047 {
17048 shl_load ();
17049   ;
17050   return 0;
17051 }
17052 _ACEOF
17053 rm -f conftest.$ac_objext conftest$ac_exeext
17054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17055   (eval $ac_link) 2>&5
17056   ac_status=$?
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); } &&
17059          { ac_try='test -s conftest$ac_exeext'
17060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061   (eval $ac_try) 2>&5
17062   ac_status=$?
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); }; }; then
17065   ac_cv_lib_dld_shl_load=yes
17066 else
17067   echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17069
17070 ac_cv_lib_dld_shl_load=no
17071 fi
17072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17073 LIBS=$ac_check_lib_save_LIBS
17074 fi
17075 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17076 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17077 if test $ac_cv_lib_dld_shl_load = yes; then
17078   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17079 else
17080   echo "$as_me:$LINENO: checking for dlopen" >&5
17081 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17082 if test "${ac_cv_func_dlopen+set}" = set; then
17083   echo $ECHO_N "(cached) $ECHO_C" >&6
17084 else
17085   cat >conftest.$ac_ext <<_ACEOF
17086 #line $LINENO "configure"
17087 /* confdefs.h.  */
17088 _ACEOF
17089 cat confdefs.h >>conftest.$ac_ext
17090 cat >>conftest.$ac_ext <<_ACEOF
17091 /* end confdefs.h.  */
17092 /* System header to define __stub macros and hopefully few prototypes,
17093     which can conflict with char dlopen (); below.
17094     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17095     <limits.h> exists even on freestanding compilers.  */
17096 #ifdef __STDC__
17097 # include <limits.h>
17098 #else
17099 # include <assert.h>
17100 #endif
17101 /* Override any gcc2 internal prototype to avoid an error.  */
17102 #ifdef __cplusplus
17103 extern "C"
17104 {
17105 #endif
17106 /* We use char because int might match the return type of a gcc2
17107    builtin and then its argument prototype would still apply.  */
17108 char dlopen ();
17109 /* The GNU C library defines this for functions which it implements
17110     to always fail with ENOSYS.  Some functions are actually named
17111     something starting with __ and the normal name is an alias.  */
17112 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17113 choke me
17114 #else
17115 char (*f) () = dlopen;
17116 #endif
17117 #ifdef __cplusplus
17118 }
17119 #endif
17120
17121 int
17122 main ()
17123 {
17124 return f != dlopen;
17125   ;
17126   return 0;
17127 }
17128 _ACEOF
17129 rm -f conftest.$ac_objext conftest$ac_exeext
17130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17131   (eval $ac_link) 2>&5
17132   ac_status=$?
17133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134   (exit $ac_status); } &&
17135          { ac_try='test -s conftest$ac_exeext'
17136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137   (eval $ac_try) 2>&5
17138   ac_status=$?
17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); }; }; then
17141   ac_cv_func_dlopen=yes
17142 else
17143   echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17145
17146 ac_cv_func_dlopen=no
17147 fi
17148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17149 fi
17150 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17151 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17152 if test $ac_cv_func_dlopen = yes; then
17153   lt_cv_dlopen="dlopen"
17154 else
17155   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17156 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17157 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17158   echo $ECHO_N "(cached) $ECHO_C" >&6
17159 else
17160   ac_check_lib_save_LIBS=$LIBS
17161 LIBS="-ldl  $LIBS"
17162 cat >conftest.$ac_ext <<_ACEOF
17163 #line $LINENO "configure"
17164 /* confdefs.h.  */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h.  */
17169
17170 /* Override any gcc2 internal prototype to avoid an error.  */
17171 #ifdef __cplusplus
17172 extern "C"
17173 #endif
17174 /* We use char because int might match the return type of a gcc2
17175    builtin and then its argument prototype would still apply.  */
17176 char dlopen ();
17177 int
17178 main ()
17179 {
17180 dlopen ();
17181   ;
17182   return 0;
17183 }
17184 _ACEOF
17185 rm -f conftest.$ac_objext conftest$ac_exeext
17186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17187   (eval $ac_link) 2>&5
17188   ac_status=$?
17189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190   (exit $ac_status); } &&
17191          { ac_try='test -s conftest$ac_exeext'
17192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193   (eval $ac_try) 2>&5
17194   ac_status=$?
17195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196   (exit $ac_status); }; }; then
17197   ac_cv_lib_dl_dlopen=yes
17198 else
17199   echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17201
17202 ac_cv_lib_dl_dlopen=no
17203 fi
17204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17205 LIBS=$ac_check_lib_save_LIBS
17206 fi
17207 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17208 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17209 if test $ac_cv_lib_dl_dlopen = yes; then
17210   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17211 else
17212   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17213 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17214 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17215   echo $ECHO_N "(cached) $ECHO_C" >&6
17216 else
17217   ac_check_lib_save_LIBS=$LIBS
17218 LIBS="-lsvld  $LIBS"
17219 cat >conftest.$ac_ext <<_ACEOF
17220 #line $LINENO "configure"
17221 /* confdefs.h.  */
17222 _ACEOF
17223 cat confdefs.h >>conftest.$ac_ext
17224 cat >>conftest.$ac_ext <<_ACEOF
17225 /* end confdefs.h.  */
17226
17227 /* Override any gcc2 internal prototype to avoid an error.  */
17228 #ifdef __cplusplus
17229 extern "C"
17230 #endif
17231 /* We use char because int might match the return type of a gcc2
17232    builtin and then its argument prototype would still apply.  */
17233 char dlopen ();
17234 int
17235 main ()
17236 {
17237 dlopen ();
17238   ;
17239   return 0;
17240 }
17241 _ACEOF
17242 rm -f conftest.$ac_objext conftest$ac_exeext
17243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17244   (eval $ac_link) 2>&5
17245   ac_status=$?
17246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247   (exit $ac_status); } &&
17248          { ac_try='test -s conftest$ac_exeext'
17249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250   (eval $ac_try) 2>&5
17251   ac_status=$?
17252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253   (exit $ac_status); }; }; then
17254   ac_cv_lib_svld_dlopen=yes
17255 else
17256   echo "$as_me: failed program was:" >&5
17257 sed 's/^/| /' conftest.$ac_ext >&5
17258
17259 ac_cv_lib_svld_dlopen=no
17260 fi
17261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17262 LIBS=$ac_check_lib_save_LIBS
17263 fi
17264 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17265 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17266 if test $ac_cv_lib_svld_dlopen = yes; then
17267   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17268 else
17269   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17270 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17271 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17272   echo $ECHO_N "(cached) $ECHO_C" >&6
17273 else
17274   ac_check_lib_save_LIBS=$LIBS
17275 LIBS="-ldld  $LIBS"
17276 cat >conftest.$ac_ext <<_ACEOF
17277 #line $LINENO "configure"
17278 /* confdefs.h.  */
17279 _ACEOF
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h.  */
17283
17284 /* Override any gcc2 internal prototype to avoid an error.  */
17285 #ifdef __cplusplus
17286 extern "C"
17287 #endif
17288 /* We use char because int might match the return type of a gcc2
17289    builtin and then its argument prototype would still apply.  */
17290 char dld_link ();
17291 int
17292 main ()
17293 {
17294 dld_link ();
17295   ;
17296   return 0;
17297 }
17298 _ACEOF
17299 rm -f conftest.$ac_objext conftest$ac_exeext
17300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17301   (eval $ac_link) 2>&5
17302   ac_status=$?
17303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); } &&
17305          { ac_try='test -s conftest$ac_exeext'
17306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307   (eval $ac_try) 2>&5
17308   ac_status=$?
17309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); }; }; then
17311   ac_cv_lib_dld_dld_link=yes
17312 else
17313   echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17315
17316 ac_cv_lib_dld_dld_link=no
17317 fi
17318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17319 LIBS=$ac_check_lib_save_LIBS
17320 fi
17321 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17322 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17323 if test $ac_cv_lib_dld_dld_link = yes; then
17324   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17325 fi
17326
17327
17328 fi
17329
17330
17331 fi
17332
17333
17334 fi
17335
17336
17337 fi
17338
17339
17340 fi
17341
17342     ;;
17343   esac
17344
17345   if test "x$lt_cv_dlopen" != xno; then
17346     enable_dlopen=yes
17347   else
17348     enable_dlopen=no
17349   fi
17350
17351   case $lt_cv_dlopen in
17352   dlopen)
17353     save_CPPFLAGS="$CPPFLAGS"
17354     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17355
17356     save_LDFLAGS="$LDFLAGS"
17357     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17358
17359     save_LIBS="$LIBS"
17360     LIBS="$lt_cv_dlopen_libs $LIBS"
17361
17362     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17363 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17364 if test "${lt_cv_dlopen_self+set}" = set; then
17365   echo $ECHO_N "(cached) $ECHO_C" >&6
17366 else
17367           if test "$cross_compiling" = yes; then :
17368   lt_cv_dlopen_self=cross
17369 else
17370   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17371   lt_status=$lt_dlunknown
17372   cat > conftest.$ac_ext <<EOF
17373 #line 17373 "configure"
17374 #include "confdefs.h"
17375
17376 #if HAVE_DLFCN_H
17377 #include <dlfcn.h>
17378 #endif
17379
17380 #include <stdio.h>
17381
17382 #ifdef RTLD_GLOBAL
17383 #  define LT_DLGLOBAL           RTLD_GLOBAL
17384 #else
17385 #  ifdef DL_GLOBAL
17386 #    define LT_DLGLOBAL         DL_GLOBAL
17387 #  else
17388 #    define LT_DLGLOBAL         0
17389 #  endif
17390 #endif
17391
17392 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17393    find out it does not work in some platform. */
17394 #ifndef LT_DLLAZY_OR_NOW
17395 #  ifdef RTLD_LAZY
17396 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17397 #  else
17398 #    ifdef DL_LAZY
17399 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17400 #    else
17401 #      ifdef RTLD_NOW
17402 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17403 #      else
17404 #        ifdef DL_NOW
17405 #          define LT_DLLAZY_OR_NOW      DL_NOW
17406 #        else
17407 #          define LT_DLLAZY_OR_NOW      0
17408 #        endif
17409 #      endif
17410 #    endif
17411 #  endif
17412 #endif
17413
17414 #ifdef __cplusplus
17415 extern "C" void exit (int);
17416 #endif
17417
17418 void fnord() { int i=42;}
17419 int main ()
17420 {
17421   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17422   int status = $lt_dlunknown;
17423
17424   if (self)
17425     {
17426       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17427       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17428       /* dlclose (self); */
17429     }
17430
17431     exit (status);
17432 }
17433 EOF
17434   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17435   (eval $ac_link) 2>&5
17436   ac_status=$?
17437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17439     (./conftest; exit; ) 2>/dev/null
17440     lt_status=$?
17441     case x$lt_status in
17442       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17443       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17444       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17445     esac
17446   else :
17447     # compilation failed
17448     lt_cv_dlopen_self=no
17449   fi
17450 fi
17451 rm -fr conftest*
17452
17453
17454 fi
17455 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17456 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17457
17458     if test "x$lt_cv_dlopen_self" = xyes; then
17459       LDFLAGS="$LDFLAGS $link_static_flag"
17460       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17461 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17462 if test "${lt_cv_dlopen_self_static+set}" = set; then
17463   echo $ECHO_N "(cached) $ECHO_C" >&6
17464 else
17465           if test "$cross_compiling" = yes; then :
17466   lt_cv_dlopen_self_static=cross
17467 else
17468   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17469   lt_status=$lt_dlunknown
17470   cat > conftest.$ac_ext <<EOF
17471 #line 17471 "configure"
17472 #include "confdefs.h"
17473
17474 #if HAVE_DLFCN_H
17475 #include <dlfcn.h>
17476 #endif
17477
17478 #include <stdio.h>
17479
17480 #ifdef RTLD_GLOBAL
17481 #  define LT_DLGLOBAL           RTLD_GLOBAL
17482 #else
17483 #  ifdef DL_GLOBAL
17484 #    define LT_DLGLOBAL         DL_GLOBAL
17485 #  else
17486 #    define LT_DLGLOBAL         0
17487 #  endif
17488 #endif
17489
17490 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17491    find out it does not work in some platform. */
17492 #ifndef LT_DLLAZY_OR_NOW
17493 #  ifdef RTLD_LAZY
17494 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17495 #  else
17496 #    ifdef DL_LAZY
17497 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17498 #    else
17499 #      ifdef RTLD_NOW
17500 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17501 #      else
17502 #        ifdef DL_NOW
17503 #          define LT_DLLAZY_OR_NOW      DL_NOW
17504 #        else
17505 #          define LT_DLLAZY_OR_NOW      0
17506 #        endif
17507 #      endif
17508 #    endif
17509 #  endif
17510 #endif
17511
17512 #ifdef __cplusplus
17513 extern "C" void exit (int);
17514 #endif
17515
17516 void fnord() { int i=42;}
17517 int main ()
17518 {
17519   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17520   int status = $lt_dlunknown;
17521
17522   if (self)
17523     {
17524       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17525       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17526       /* dlclose (self); */
17527     }
17528
17529     exit (status);
17530 }
17531 EOF
17532   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17533   (eval $ac_link) 2>&5
17534   ac_status=$?
17535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17537     (./conftest; exit; ) 2>/dev/null
17538     lt_status=$?
17539     case x$lt_status in
17540       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17541       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17542       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17543     esac
17544   else :
17545     # compilation failed
17546     lt_cv_dlopen_self_static=no
17547   fi
17548 fi
17549 rm -fr conftest*
17550
17551
17552 fi
17553 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17554 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17555     fi
17556
17557     CPPFLAGS="$save_CPPFLAGS"
17558     LDFLAGS="$save_LDFLAGS"
17559     LIBS="$save_LIBS"
17560     ;;
17561   esac
17562
17563   case $lt_cv_dlopen_self in
17564   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17565   *) enable_dlopen_self=unknown ;;
17566   esac
17567
17568   case $lt_cv_dlopen_self_static in
17569   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17570   *) enable_dlopen_self_static=unknown ;;
17571   esac
17572 fi
17573
17574
17575 # The else clause should only fire when bootstrapping the
17576 # libtool distribution, otherwise you forgot to ship ltmain.sh
17577 # with your package, and you will get complaints that there are
17578 # no rules to generate ltmain.sh.
17579 if test -f "$ltmain"; then
17580   # See if we are running on zsh, and set the options which allow our commands through
17581   # without removal of \ escapes.
17582   if test -n "${ZSH_VERSION+set}" ; then
17583     setopt NO_GLOB_SUBST
17584   fi
17585   # Now quote all the things that may contain metacharacters while being
17586   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17587   # variables and quote the copies for generation of the libtool script.
17588   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17589     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17590     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17591     deplibs_check_method reload_flag reload_cmds need_locks \
17592     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17593     lt_cv_sys_global_symbol_to_c_name_address \
17594     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17595     old_postinstall_cmds old_postuninstall_cmds \
17596     compiler_GCJ \
17597     CC_GCJ \
17598     LD_GCJ \
17599     lt_prog_compiler_wl_GCJ \
17600     lt_prog_compiler_pic_GCJ \
17601     lt_prog_compiler_static_GCJ \
17602     lt_prog_compiler_no_builtin_flag_GCJ \
17603     export_dynamic_flag_spec_GCJ \
17604     thread_safe_flag_spec_GCJ \
17605     whole_archive_flag_spec_GCJ \
17606     enable_shared_with_static_runtimes_GCJ \
17607     old_archive_cmds_GCJ \
17608     old_archive_from_new_cmds_GCJ \
17609     predep_objects_GCJ \
17610     postdep_objects_GCJ \
17611     predeps_GCJ \
17612     postdeps_GCJ \
17613     compiler_lib_search_path_GCJ \
17614     archive_cmds_GCJ \
17615     archive_expsym_cmds_GCJ \
17616     postinstall_cmds_GCJ \
17617     postuninstall_cmds_GCJ \
17618     old_archive_from_expsyms_cmds_GCJ \
17619     allow_undefined_flag_GCJ \
17620     no_undefined_flag_GCJ \
17621     export_symbols_cmds_GCJ \
17622     hardcode_libdir_flag_spec_GCJ \
17623     hardcode_libdir_flag_spec_ld_GCJ \
17624     hardcode_libdir_separator_GCJ \
17625     hardcode_automatic_GCJ \
17626     module_cmds_GCJ \
17627     module_expsym_cmds_GCJ \
17628     lt_cv_prog_compiler_c_o_GCJ \
17629     exclude_expsyms_GCJ \
17630     include_expsyms_GCJ; do
17631
17632     case $var in
17633     old_archive_cmds_GCJ | \
17634     old_archive_from_new_cmds_GCJ | \
17635     archive_cmds_GCJ | \
17636     archive_expsym_cmds_GCJ | \
17637     module_cmds_GCJ | \
17638     module_expsym_cmds_GCJ | \
17639     old_archive_from_expsyms_cmds_GCJ | \
17640     export_symbols_cmds_GCJ | \
17641     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17642     postinstall_cmds | postuninstall_cmds | \
17643     old_postinstall_cmds | old_postuninstall_cmds | \
17644     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17645       # Double-quote double-evaled strings.
17646       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17647       ;;
17648     *)
17649       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17650       ;;
17651     esac
17652   done
17653
17654   case $lt_echo in
17655   *'\$0 --fallback-echo"')
17656     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17657     ;;
17658   esac
17659
17660 cfgfile="$ofile"
17661
17662   cat <<__EOF__ >> "$cfgfile"
17663 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17664
17665 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17666
17667 # Shell to use when invoking shell scripts.
17668 SHELL=$lt_SHELL
17669
17670 # Whether or not to build shared libraries.
17671 build_libtool_libs=$enable_shared
17672
17673 # Whether or not to build static libraries.
17674 build_old_libs=$enable_static
17675
17676 # Whether or not to add -lc for building shared libraries.
17677 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17678
17679 # Whether or not to disallow shared libs when runtime libs are static
17680 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17681
17682 # Whether or not to optimize for fast installation.
17683 fast_install=$enable_fast_install
17684
17685 # The host system.
17686 host_alias=$host_alias
17687 host=$host
17688
17689 # An echo program that does not interpret backslashes.
17690 echo=$lt_echo
17691
17692 # The archiver.
17693 AR=$lt_AR
17694 AR_FLAGS=$lt_AR_FLAGS
17695
17696 # A C compiler.
17697 LTCC=$lt_LTCC
17698
17699 # A language-specific compiler.
17700 CC=$lt_compiler_GCJ
17701
17702 # Is the compiler the GNU C compiler?
17703 with_gcc=$GCC_GCJ
17704
17705 # An ERE matcher.
17706 EGREP=$lt_EGREP
17707
17708 # The linker used to build libraries.
17709 LD=$lt_LD_GCJ
17710
17711 # Whether we need hard or soft links.
17712 LN_S=$lt_LN_S
17713
17714 # A BSD-compatible nm program.
17715 NM=$lt_NM
17716
17717 # A symbol stripping program
17718 STRIP=$STRIP
17719
17720 # Used to examine libraries when file_magic_cmd begins "file"
17721 MAGIC_CMD=$MAGIC_CMD
17722
17723 # Used on cygwin: DLL creation program.
17724 DLLTOOL="$DLLTOOL"
17725
17726 # Used on cygwin: object dumper.
17727 OBJDUMP="$OBJDUMP"
17728
17729 # Used on cygwin: assembler.
17730 AS="$AS"
17731
17732 # The name of the directory that contains temporary libtool files.
17733 objdir=$objdir
17734
17735 # How to create reloadable object files.
17736 reload_flag=$lt_reload_flag
17737 reload_cmds=$lt_reload_cmds
17738
17739 # How to pass a linker flag through the compiler.
17740 wl=$lt_lt_prog_compiler_wl_GCJ
17741
17742 # Object file suffix (normally "o").
17743 objext="$ac_objext"
17744
17745 # Old archive suffix (normally "a").
17746 libext="$libext"
17747
17748 # Shared library suffix (normally ".so").
17749 shrext='$shrext'
17750
17751 # Executable file suffix (normally "").
17752 exeext="$exeext"
17753
17754 # Additional compiler flags for building library objects.
17755 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17756 pic_mode=$pic_mode
17757
17758 # What is the maximum length of a command?
17759 max_cmd_len=$lt_cv_sys_max_cmd_len
17760
17761 # Does compiler simultaneously support -c and -o options?
17762 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17763
17764 # Must we lock files when doing compilation ?
17765 need_locks=$lt_need_locks
17766
17767 # Do we need the lib prefix for modules?
17768 need_lib_prefix=$need_lib_prefix
17769
17770 # Do we need a version for libraries?
17771 need_version=$need_version
17772
17773 # Whether dlopen is supported.
17774 dlopen_support=$enable_dlopen
17775
17776 # Whether dlopen of programs is supported.
17777 dlopen_self=$enable_dlopen_self
17778
17779 # Whether dlopen of statically linked programs is supported.
17780 dlopen_self_static=$enable_dlopen_self_static
17781
17782 # Compiler flag to prevent dynamic linking.
17783 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17784
17785 # Compiler flag to turn off builtin functions.
17786 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17787
17788 # Compiler flag to allow reflexive dlopens.
17789 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17790
17791 # Compiler flag to generate shared objects directly from archives.
17792 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17793
17794 # Compiler flag to generate thread-safe objects.
17795 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17796
17797 # Library versioning type.
17798 version_type=$version_type
17799
17800 # Format of library name prefix.
17801 libname_spec=$lt_libname_spec
17802
17803 # List of archive names.  First name is the real one, the rest are links.
17804 # The last name is the one that the linker finds with -lNAME.
17805 library_names_spec=$lt_library_names_spec
17806
17807 # The coded name of the library, if different from the real name.
17808 soname_spec=$lt_soname_spec
17809
17810 # Commands used to build and install an old-style archive.
17811 RANLIB=$lt_RANLIB
17812 old_archive_cmds=$lt_old_archive_cmds_GCJ
17813 old_postinstall_cmds=$lt_old_postinstall_cmds
17814 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17815
17816 # Create an old-style archive from a shared archive.
17817 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17818
17819 # Create a temporary old-style archive to link instead of a shared archive.
17820 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17821
17822 # Commands used to build and install a shared archive.
17823 archive_cmds=$lt_archive_cmds_GCJ
17824 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17825 postinstall_cmds=$lt_postinstall_cmds
17826 postuninstall_cmds=$lt_postuninstall_cmds
17827
17828 # Commands used to build a loadable module (assumed same as above if empty)
17829 module_cmds=$lt_module_cmds_GCJ
17830 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17831
17832 # Commands to strip libraries.
17833 old_striplib=$lt_old_striplib
17834 striplib=$lt_striplib
17835
17836 # Dependencies to place before the objects being linked to create a
17837 # shared library.
17838 predep_objects=$lt_predep_objects_GCJ
17839
17840 # Dependencies to place after the objects being linked to create a
17841 # shared library.
17842 postdep_objects=$lt_postdep_objects_GCJ
17843
17844 # Dependencies to place before the objects being linked to create a
17845 # shared library.
17846 predeps=$lt_predeps_GCJ
17847
17848 # Dependencies to place after the objects being linked to create a
17849 # shared library.
17850 postdeps=$lt_postdeps_GCJ
17851
17852 # The library search path used internally by the compiler when linking
17853 # a shared library.
17854 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17855
17856 # Method to check whether dependent libraries are shared objects.
17857 deplibs_check_method=$lt_deplibs_check_method
17858
17859 # Command to use when deplibs_check_method == file_magic.
17860 file_magic_cmd=$lt_file_magic_cmd
17861
17862 # Flag that allows shared libraries with undefined symbols to be built.
17863 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17864
17865 # Flag that forces no undefined symbols.
17866 no_undefined_flag=$lt_no_undefined_flag_GCJ
17867
17868 # Commands used to finish a libtool library installation in a directory.
17869 finish_cmds=$lt_finish_cmds
17870
17871 # Same as above, but a single script fragment to be evaled but not shown.
17872 finish_eval=$lt_finish_eval
17873
17874 # Take the output of nm and produce a listing of raw symbols and C names.
17875 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17876
17877 # Transform the output of nm in a proper C declaration
17878 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17879
17880 # Transform the output of nm in a C name address pair
17881 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17882
17883 # This is the shared library runtime path variable.
17884 runpath_var=$runpath_var
17885
17886 # This is the shared library path variable.
17887 shlibpath_var=$shlibpath_var
17888
17889 # Is shlibpath searched before the hard-coded library search path?
17890 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17891
17892 # How to hardcode a shared library path into an executable.
17893 hardcode_action=$hardcode_action_GCJ
17894
17895 # Whether we should hardcode library paths into libraries.
17896 hardcode_into_libs=$hardcode_into_libs
17897
17898 # Flag to hardcode \$libdir into a binary during linking.
17899 # This must work even if \$libdir does not exist.
17900 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17901
17902 # If ld is used when linking, flag to hardcode \$libdir into
17903 # a binary during linking. This must work even if \$libdir does
17904 # not exist.
17905 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17906
17907 # Whether we need a single -rpath flag with a separated argument.
17908 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17909
17910 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17911 # resulting binary.
17912 hardcode_direct=$hardcode_direct_GCJ
17913
17914 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17915 # resulting binary.
17916 hardcode_minus_L=$hardcode_minus_L_GCJ
17917
17918 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17919 # the resulting binary.
17920 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17921
17922 # Set to yes if building a shared library automatically hardcodes DIR into the library
17923 # and all subsequent libraries and executables linked against it.
17924 hardcode_automatic=$hardcode_automatic_GCJ
17925
17926 # Variables whose values should be saved in libtool wrapper scripts and
17927 # restored at relink time.
17928 variables_saved_for_relink="$variables_saved_for_relink"
17929
17930 # Whether libtool must link a program against all its dependency libraries.
17931 link_all_deplibs=$link_all_deplibs_GCJ
17932
17933 # Compile-time system search path for libraries
17934 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17935
17936 # Run-time system search path for libraries
17937 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17938
17939 # Fix the shell variable \$srcfile for the compiler.
17940 fix_srcfile_path="$fix_srcfile_path_GCJ"
17941
17942 # Set to yes if exported symbols are required.
17943 always_export_symbols=$always_export_symbols_GCJ
17944
17945 # The commands to list exported symbols.
17946 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17947
17948 # The commands to extract the exported symbol list from a shared archive.
17949 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17950
17951 # Symbols that should not be listed in the preloaded symbols.
17952 exclude_expsyms=$lt_exclude_expsyms_GCJ
17953
17954 # Symbols that must always be exported.
17955 include_expsyms=$lt_include_expsyms_GCJ
17956
17957 # ### END LIBTOOL TAG CONFIG: $tagname
17958
17959 __EOF__
17960
17961
17962 else
17963   # If there is no Makefile yet, we rely on a make rule to execute
17964   # `config.status --recheck' to rerun these tests and create the
17965   # libtool script then.
17966   test -f Makefile && make "$ltmain"
17967 fi
17968
17969
17970 ac_ext=c
17971 ac_cpp='$CPP $CPPFLAGS'
17972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17975
17976 CC="$lt_save_CC"
17977
17978         else
17979           tagname=""
17980         fi
17981         ;;
17982
17983       RC)
17984
17985
17986
17987 # Source file extension for RC test sources.
17988 ac_ext=rc
17989
17990 # Object file extension for compiled RC test sources.
17991 objext=o
17992 objext_RC=$objext
17993
17994 # Code to be used in simple compile tests
17995 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17996
17997 # Code to be used in simple link tests
17998 lt_simple_link_test_code="$lt_simple_compile_test_code"
17999
18000 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18001
18002 # If no C compiler was specified, use CC.
18003 LTCC=${LTCC-"$CC"}
18004
18005 # Allow CC to be a program name with arguments.
18006 compiler=$CC
18007
18008
18009 # Allow CC to be a program name with arguments.
18010 lt_save_CC="$CC"
18011 CC=${RC-"windres"}
18012 compiler=$CC
18013 compiler_RC=$CC
18014 lt_cv_prog_compiler_c_o_RC=yes
18015
18016 # The else clause should only fire when bootstrapping the
18017 # libtool distribution, otherwise you forgot to ship ltmain.sh
18018 # with your package, and you will get complaints that there are
18019 # no rules to generate ltmain.sh.
18020 if test -f "$ltmain"; then
18021   # See if we are running on zsh, and set the options which allow our commands through
18022   # without removal of \ escapes.
18023   if test -n "${ZSH_VERSION+set}" ; then
18024     setopt NO_GLOB_SUBST
18025   fi
18026   # Now quote all the things that may contain metacharacters while being
18027   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18028   # variables and quote the copies for generation of the libtool script.
18029   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18030     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18031     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18032     deplibs_check_method reload_flag reload_cmds need_locks \
18033     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18034     lt_cv_sys_global_symbol_to_c_name_address \
18035     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18036     old_postinstall_cmds old_postuninstall_cmds \
18037     compiler_RC \
18038     CC_RC \
18039     LD_RC \
18040     lt_prog_compiler_wl_RC \
18041     lt_prog_compiler_pic_RC \
18042     lt_prog_compiler_static_RC \
18043     lt_prog_compiler_no_builtin_flag_RC \
18044     export_dynamic_flag_spec_RC \
18045     thread_safe_flag_spec_RC \
18046     whole_archive_flag_spec_RC \
18047     enable_shared_with_static_runtimes_RC \
18048     old_archive_cmds_RC \
18049     old_archive_from_new_cmds_RC \
18050     predep_objects_RC \
18051     postdep_objects_RC \
18052     predeps_RC \
18053     postdeps_RC \
18054     compiler_lib_search_path_RC \
18055     archive_cmds_RC \
18056     archive_expsym_cmds_RC \
18057     postinstall_cmds_RC \
18058     postuninstall_cmds_RC \
18059     old_archive_from_expsyms_cmds_RC \
18060     allow_undefined_flag_RC \
18061     no_undefined_flag_RC \
18062     export_symbols_cmds_RC \
18063     hardcode_libdir_flag_spec_RC \
18064     hardcode_libdir_flag_spec_ld_RC \
18065     hardcode_libdir_separator_RC \
18066     hardcode_automatic_RC \
18067     module_cmds_RC \
18068     module_expsym_cmds_RC \
18069     lt_cv_prog_compiler_c_o_RC \
18070     exclude_expsyms_RC \
18071     include_expsyms_RC; do
18072
18073     case $var in
18074     old_archive_cmds_RC | \
18075     old_archive_from_new_cmds_RC | \
18076     archive_cmds_RC | \
18077     archive_expsym_cmds_RC | \
18078     module_cmds_RC | \
18079     module_expsym_cmds_RC | \
18080     old_archive_from_expsyms_cmds_RC | \
18081     export_symbols_cmds_RC | \
18082     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18083     postinstall_cmds | postuninstall_cmds | \
18084     old_postinstall_cmds | old_postuninstall_cmds | \
18085     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18086       # Double-quote double-evaled strings.
18087       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18088       ;;
18089     *)
18090       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18091       ;;
18092     esac
18093   done
18094
18095   case $lt_echo in
18096   *'\$0 --fallback-echo"')
18097     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18098     ;;
18099   esac
18100
18101 cfgfile="$ofile"
18102
18103   cat <<__EOF__ >> "$cfgfile"
18104 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18105
18106 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18107
18108 # Shell to use when invoking shell scripts.
18109 SHELL=$lt_SHELL
18110
18111 # Whether or not to build shared libraries.
18112 build_libtool_libs=$enable_shared
18113
18114 # Whether or not to build static libraries.
18115 build_old_libs=$enable_static
18116
18117 # Whether or not to add -lc for building shared libraries.
18118 build_libtool_need_lc=$archive_cmds_need_lc_RC
18119
18120 # Whether or not to disallow shared libs when runtime libs are static
18121 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18122
18123 # Whether or not to optimize for fast installation.
18124 fast_install=$enable_fast_install
18125
18126 # The host system.
18127 host_alias=$host_alias
18128 host=$host
18129
18130 # An echo program that does not interpret backslashes.
18131 echo=$lt_echo
18132
18133 # The archiver.
18134 AR=$lt_AR
18135 AR_FLAGS=$lt_AR_FLAGS
18136
18137 # A C compiler.
18138 LTCC=$lt_LTCC
18139
18140 # A language-specific compiler.
18141 CC=$lt_compiler_RC
18142
18143 # Is the compiler the GNU C compiler?
18144 with_gcc=$GCC_RC
18145
18146 # An ERE matcher.
18147 EGREP=$lt_EGREP
18148
18149 # The linker used to build libraries.
18150 LD=$lt_LD_RC
18151
18152 # Whether we need hard or soft links.
18153 LN_S=$lt_LN_S
18154
18155 # A BSD-compatible nm program.
18156 NM=$lt_NM
18157
18158 # A symbol stripping program
18159 STRIP=$STRIP
18160
18161 # Used to examine libraries when file_magic_cmd begins "file"
18162 MAGIC_CMD=$MAGIC_CMD
18163
18164 # Used on cygwin: DLL creation program.
18165 DLLTOOL="$DLLTOOL"
18166
18167 # Used on cygwin: object dumper.
18168 OBJDUMP="$OBJDUMP"
18169
18170 # Used on cygwin: assembler.
18171 AS="$AS"
18172
18173 # The name of the directory that contains temporary libtool files.
18174 objdir=$objdir
18175
18176 # How to create reloadable object files.
18177 reload_flag=$lt_reload_flag
18178 reload_cmds=$lt_reload_cmds
18179
18180 # How to pass a linker flag through the compiler.
18181 wl=$lt_lt_prog_compiler_wl_RC
18182
18183 # Object file suffix (normally "o").
18184 objext="$ac_objext"
18185
18186 # Old archive suffix (normally "a").
18187 libext="$libext"
18188
18189 # Shared library suffix (normally ".so").
18190 shrext='$shrext'
18191
18192 # Executable file suffix (normally "").
18193 exeext="$exeext"
18194
18195 # Additional compiler flags for building library objects.
18196 pic_flag=$lt_lt_prog_compiler_pic_RC
18197 pic_mode=$pic_mode
18198
18199 # What is the maximum length of a command?
18200 max_cmd_len=$lt_cv_sys_max_cmd_len
18201
18202 # Does compiler simultaneously support -c and -o options?
18203 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18204
18205 # Must we lock files when doing compilation ?
18206 need_locks=$lt_need_locks
18207
18208 # Do we need the lib prefix for modules?
18209 need_lib_prefix=$need_lib_prefix
18210
18211 # Do we need a version for libraries?
18212 need_version=$need_version
18213
18214 # Whether dlopen is supported.
18215 dlopen_support=$enable_dlopen
18216
18217 # Whether dlopen of programs is supported.
18218 dlopen_self=$enable_dlopen_self
18219
18220 # Whether dlopen of statically linked programs is supported.
18221 dlopen_self_static=$enable_dlopen_self_static
18222
18223 # Compiler flag to prevent dynamic linking.
18224 link_static_flag=$lt_lt_prog_compiler_static_RC
18225
18226 # Compiler flag to turn off builtin functions.
18227 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18228
18229 # Compiler flag to allow reflexive dlopens.
18230 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18231
18232 # Compiler flag to generate shared objects directly from archives.
18233 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18234
18235 # Compiler flag to generate thread-safe objects.
18236 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18237
18238 # Library versioning type.
18239 version_type=$version_type
18240
18241 # Format of library name prefix.
18242 libname_spec=$lt_libname_spec
18243
18244 # List of archive names.  First name is the real one, the rest are links.
18245 # The last name is the one that the linker finds with -lNAME.
18246 library_names_spec=$lt_library_names_spec
18247
18248 # The coded name of the library, if different from the real name.
18249 soname_spec=$lt_soname_spec
18250
18251 # Commands used to build and install an old-style archive.
18252 RANLIB=$lt_RANLIB
18253 old_archive_cmds=$lt_old_archive_cmds_RC
18254 old_postinstall_cmds=$lt_old_postinstall_cmds
18255 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18256
18257 # Create an old-style archive from a shared archive.
18258 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18259
18260 # Create a temporary old-style archive to link instead of a shared archive.
18261 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18262
18263 # Commands used to build and install a shared archive.
18264 archive_cmds=$lt_archive_cmds_RC
18265 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18266 postinstall_cmds=$lt_postinstall_cmds
18267 postuninstall_cmds=$lt_postuninstall_cmds
18268
18269 # Commands used to build a loadable module (assumed same as above if empty)
18270 module_cmds=$lt_module_cmds_RC
18271 module_expsym_cmds=$lt_module_expsym_cmds_RC
18272
18273 # Commands to strip libraries.
18274 old_striplib=$lt_old_striplib
18275 striplib=$lt_striplib
18276
18277 # Dependencies to place before the objects being linked to create a
18278 # shared library.
18279 predep_objects=$lt_predep_objects_RC
18280
18281 # Dependencies to place after the objects being linked to create a
18282 # shared library.
18283 postdep_objects=$lt_postdep_objects_RC
18284
18285 # Dependencies to place before the objects being linked to create a
18286 # shared library.
18287 predeps=$lt_predeps_RC
18288
18289 # Dependencies to place after the objects being linked to create a
18290 # shared library.
18291 postdeps=$lt_postdeps_RC
18292
18293 # The library search path used internally by the compiler when linking
18294 # a shared library.
18295 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18296
18297 # Method to check whether dependent libraries are shared objects.
18298 deplibs_check_method=$lt_deplibs_check_method
18299
18300 # Command to use when deplibs_check_method == file_magic.
18301 file_magic_cmd=$lt_file_magic_cmd
18302
18303 # Flag that allows shared libraries with undefined symbols to be built.
18304 allow_undefined_flag=$lt_allow_undefined_flag_RC
18305
18306 # Flag that forces no undefined symbols.
18307 no_undefined_flag=$lt_no_undefined_flag_RC
18308
18309 # Commands used to finish a libtool library installation in a directory.
18310 finish_cmds=$lt_finish_cmds
18311
18312 # Same as above, but a single script fragment to be evaled but not shown.
18313 finish_eval=$lt_finish_eval
18314
18315 # Take the output of nm and produce a listing of raw symbols and C names.
18316 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18317
18318 # Transform the output of nm in a proper C declaration
18319 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18320
18321 # Transform the output of nm in a C name address pair
18322 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18323
18324 # This is the shared library runtime path variable.
18325 runpath_var=$runpath_var
18326
18327 # This is the shared library path variable.
18328 shlibpath_var=$shlibpath_var
18329
18330 # Is shlibpath searched before the hard-coded library search path?
18331 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18332
18333 # How to hardcode a shared library path into an executable.
18334 hardcode_action=$hardcode_action_RC
18335
18336 # Whether we should hardcode library paths into libraries.
18337 hardcode_into_libs=$hardcode_into_libs
18338
18339 # Flag to hardcode \$libdir into a binary during linking.
18340 # This must work even if \$libdir does not exist.
18341 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18342
18343 # If ld is used when linking, flag to hardcode \$libdir into
18344 # a binary during linking. This must work even if \$libdir does
18345 # not exist.
18346 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18347
18348 # Whether we need a single -rpath flag with a separated argument.
18349 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18350
18351 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18352 # resulting binary.
18353 hardcode_direct=$hardcode_direct_RC
18354
18355 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18356 # resulting binary.
18357 hardcode_minus_L=$hardcode_minus_L_RC
18358
18359 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18360 # the resulting binary.
18361 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18362
18363 # Set to yes if building a shared library automatically hardcodes DIR into the library
18364 # and all subsequent libraries and executables linked against it.
18365 hardcode_automatic=$hardcode_automatic_RC
18366
18367 # Variables whose values should be saved in libtool wrapper scripts and
18368 # restored at relink time.
18369 variables_saved_for_relink="$variables_saved_for_relink"
18370
18371 # Whether libtool must link a program against all its dependency libraries.
18372 link_all_deplibs=$link_all_deplibs_RC
18373
18374 # Compile-time system search path for libraries
18375 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18376
18377 # Run-time system search path for libraries
18378 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18379
18380 # Fix the shell variable \$srcfile for the compiler.
18381 fix_srcfile_path="$fix_srcfile_path_RC"
18382
18383 # Set to yes if exported symbols are required.
18384 always_export_symbols=$always_export_symbols_RC
18385
18386 # The commands to list exported symbols.
18387 export_symbols_cmds=$lt_export_symbols_cmds_RC
18388
18389 # The commands to extract the exported symbol list from a shared archive.
18390 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18391
18392 # Symbols that should not be listed in the preloaded symbols.
18393 exclude_expsyms=$lt_exclude_expsyms_RC
18394
18395 # Symbols that must always be exported.
18396 include_expsyms=$lt_include_expsyms_RC
18397
18398 # ### END LIBTOOL TAG CONFIG: $tagname
18399
18400 __EOF__
18401
18402
18403 else
18404   # If there is no Makefile yet, we rely on a make rule to execute
18405   # `config.status --recheck' to rerun these tests and create the
18406   # libtool script then.
18407   test -f Makefile && make "$ltmain"
18408 fi
18409
18410
18411 ac_ext=c
18412 ac_cpp='$CPP $CPPFLAGS'
18413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18416
18417 CC="$lt_save_CC"
18418
18419         ;;
18420
18421       *)
18422         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18423 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18424    { (exit 1); exit 1; }; }
18425         ;;
18426       esac
18427
18428       # Append the new tag name to the list of available tags.
18429       if test -n "$tagname" ; then
18430       available_tags="$available_tags $tagname"
18431     fi
18432     fi
18433   done
18434   IFS="$lt_save_ifs"
18435
18436   # Now substitute the updated list of available tags.
18437   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18438     mv "${ofile}T" "$ofile"
18439     chmod +x "$ofile"
18440   else
18441     rm -f "${ofile}T"
18442     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18443 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18444    { (exit 1); exit 1; }; }
18445   fi
18446 fi
18447
18448
18449
18450 # This can be used to rebuild libtool when needed
18451 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18452
18453 # Always use our own libtool.
18454 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18455
18456 # Prevent multiple expansion
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478 # Extract the first word of "pwd", so it can be a program name with args.
18479 set dummy pwd; ac_word=$2
18480 echo "$as_me:$LINENO: checking for $ac_word" >&5
18481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18482 if test "${ac_cv_path_RPWD+set}" = set; then
18483   echo $ECHO_N "(cached) $ECHO_C" >&6
18484 else
18485   case $RPWD in
18486   [\\/]* | ?:[\\/]*)
18487   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18488   ;;
18489   *)
18490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18491 for as_dir in $PATH
18492 do
18493   IFS=$as_save_IFS
18494   test -z "$as_dir" && as_dir=.
18495   for ac_exec_ext in '' $ac_executable_extensions; do
18496   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18497     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18499     break 2
18500   fi
18501 done
18502 done
18503
18504   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18505   ;;
18506 esac
18507 fi
18508 RPWD=$ac_cv_path_RPWD
18509
18510 if test -n "$RPWD"; then
18511   echo "$as_me:$LINENO: result: $RPWD" >&5
18512 echo "${ECHO_T}$RPWD" >&6
18513 else
18514   echo "$as_me:$LINENO: result: no" >&5
18515 echo "${ECHO_T}no" >&6
18516 fi
18517
18518 if test ${RPWD} = "false"
18519 then
18520         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18521 echo "$as_me: error: pwd required but not found" >&2;}
18522    { (exit 1); exit 1; }; }
18523 fi
18524
18525 # Extract the first word of "ar", so it can be a program name with args.
18526 set dummy ar; ac_word=$2
18527 echo "$as_me:$LINENO: checking for $ac_word" >&5
18528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18529 if test "${ac_cv_path_AR+set}" = set; then
18530   echo $ECHO_N "(cached) $ECHO_C" >&6
18531 else
18532   case $AR in
18533   [\\/]* | ?:[\\/]*)
18534   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18535   ;;
18536   *)
18537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18538 for as_dir in $PATH
18539 do
18540   IFS=$as_save_IFS
18541   test -z "$as_dir" && as_dir=.
18542   for ac_exec_ext in '' $ac_executable_extensions; do
18543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18544     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18546     break 2
18547   fi
18548 done
18549 done
18550
18551   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18552   ;;
18553 esac
18554 fi
18555 AR=$ac_cv_path_AR
18556
18557 if test -n "$AR"; then
18558   echo "$as_me:$LINENO: result: $AR" >&5
18559 echo "${ECHO_T}$AR" >&6
18560 else
18561   echo "$as_me:$LINENO: result: no" >&5
18562 echo "${ECHO_T}no" >&6
18563 fi
18564
18565 if test ${AR} = "false"
18566 then
18567         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18568 echo "$as_me: error: ar required but not found" >&2;}
18569    { (exit 1); exit 1; }; }
18570 fi
18571
18572 # Extract the first word of "sed", so it can be a program name with args.
18573 set dummy sed; ac_word=$2
18574 echo "$as_me:$LINENO: checking for $ac_word" >&5
18575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18576 if test "${ac_cv_path_SED+set}" = set; then
18577   echo $ECHO_N "(cached) $ECHO_C" >&6
18578 else
18579   case $SED in
18580   [\\/]* | ?:[\\/]*)
18581   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18582   ;;
18583   *)
18584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18585 for as_dir in $PATH
18586 do
18587   IFS=$as_save_IFS
18588   test -z "$as_dir" && as_dir=.
18589   for ac_exec_ext in '' $ac_executable_extensions; do
18590   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18591     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18593     break 2
18594   fi
18595 done
18596 done
18597
18598   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18599   ;;
18600 esac
18601 fi
18602 SED=$ac_cv_path_SED
18603
18604 if test -n "$SED"; then
18605   echo "$as_me:$LINENO: result: $SED" >&5
18606 echo "${ECHO_T}$SED" >&6
18607 else
18608   echo "$as_me:$LINENO: result: no" >&5
18609 echo "${ECHO_T}no" >&6
18610 fi
18611
18612 if test ${SED} = "false"
18613 then
18614         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18615 echo "$as_me: error: sed required but not found" >&2;}
18616    { (exit 1); exit 1; }; }
18617 fi
18618
18619 # Extract the first word of "rm", so it can be a program name with args.
18620 set dummy rm; ac_word=$2
18621 echo "$as_me:$LINENO: checking for $ac_word" >&5
18622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18623 if test "${ac_cv_path_RM+set}" = set; then
18624   echo $ECHO_N "(cached) $ECHO_C" >&6
18625 else
18626   case $RM in
18627   [\\/]* | ?:[\\/]*)
18628   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18629   ;;
18630   *)
18631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18632 for as_dir in $PATH
18633 do
18634   IFS=$as_save_IFS
18635   test -z "$as_dir" && as_dir=.
18636   for ac_exec_ext in '' $ac_executable_extensions; do
18637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18638     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18640     break 2
18641   fi
18642 done
18643 done
18644
18645   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18646   ;;
18647 esac
18648 fi
18649 RM=$ac_cv_path_RM
18650
18651 if test -n "$RM"; then
18652   echo "$as_me:$LINENO: result: $RM" >&5
18653 echo "${ECHO_T}$RM" >&6
18654 else
18655   echo "$as_me:$LINENO: result: no" >&5
18656 echo "${ECHO_T}no" >&6
18657 fi
18658
18659 if test ${RM} = "false"
18660 then
18661         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18662 echo "$as_me: error: rm required but not found" >&2;}
18663    { (exit 1); exit 1; }; }
18664 fi
18665
18666 # Extract the first word of "echo", so it can be a program name with args.
18667 set dummy echo; ac_word=$2
18668 echo "$as_me:$LINENO: checking for $ac_word" >&5
18669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18670 if test "${ac_cv_path_ECHO+set}" = set; then
18671   echo $ECHO_N "(cached) $ECHO_C" >&6
18672 else
18673   case $ECHO in
18674   [\\/]* | ?:[\\/]*)
18675   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18676   ;;
18677   *)
18678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18679 for as_dir in $PATH
18680 do
18681   IFS=$as_save_IFS
18682   test -z "$as_dir" && as_dir=.
18683   for ac_exec_ext in '' $ac_executable_extensions; do
18684   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18685     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18687     break 2
18688   fi
18689 done
18690 done
18691
18692   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18693   ;;
18694 esac
18695 fi
18696 ECHO=$ac_cv_path_ECHO
18697
18698 if test -n "$ECHO"; then
18699   echo "$as_me:$LINENO: result: $ECHO" >&5
18700 echo "${ECHO_T}$ECHO" >&6
18701 else
18702   echo "$as_me:$LINENO: result: no" >&5
18703 echo "${ECHO_T}no" >&6
18704 fi
18705
18706 if test ${ECHO} = "false"
18707 then
18708         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18709 echo "$as_me: error: echo required but not found" >&2;}
18710    { (exit 1); exit 1; }; }
18711 fi
18712
18713 # Extract the first word of "mkdir", so it can be a program name with args.
18714 set dummy mkdir; ac_word=$2
18715 echo "$as_me:$LINENO: checking for $ac_word" >&5
18716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18717 if test "${ac_cv_path_MKDIR+set}" = set; then
18718   echo $ECHO_N "(cached) $ECHO_C" >&6
18719 else
18720   case $MKDIR in
18721   [\\/]* | ?:[\\/]*)
18722   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18723   ;;
18724   *)
18725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18726 for as_dir in $PATH
18727 do
18728   IFS=$as_save_IFS
18729   test -z "$as_dir" && as_dir=.
18730   for ac_exec_ext in '' $ac_executable_extensions; do
18731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18732     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18734     break 2
18735   fi
18736 done
18737 done
18738
18739   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18740   ;;
18741 esac
18742 fi
18743 MKDIR=$ac_cv_path_MKDIR
18744
18745 if test -n "$MKDIR"; then
18746   echo "$as_me:$LINENO: result: $MKDIR" >&5
18747 echo "${ECHO_T}$MKDIR" >&6
18748 else
18749   echo "$as_me:$LINENO: result: no" >&5
18750 echo "${ECHO_T}no" >&6
18751 fi
18752
18753 if test ${MKDIR} = "false"
18754 then
18755         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18756 echo "$as_me: error: mkdir required but not found" >&2;}
18757    { (exit 1); exit 1; }; }
18758 fi
18759
18760 # Extract the first word of "date", so it can be a program name with args.
18761 set dummy date; ac_word=$2
18762 echo "$as_me:$LINENO: checking for $ac_word" >&5
18763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18764 if test "${ac_cv_path_DATE+set}" = set; then
18765   echo $ECHO_N "(cached) $ECHO_C" >&6
18766 else
18767   case $DATE in
18768   [\\/]* | ?:[\\/]*)
18769   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18770   ;;
18771   *)
18772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18773 for as_dir in $PATH
18774 do
18775   IFS=$as_save_IFS
18776   test -z "$as_dir" && as_dir=.
18777   for ac_exec_ext in '' $ac_executable_extensions; do
18778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18779     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18781     break 2
18782   fi
18783 done
18784 done
18785
18786   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18787   ;;
18788 esac
18789 fi
18790 DATE=$ac_cv_path_DATE
18791
18792 if test -n "$DATE"; then
18793   echo "$as_me:$LINENO: result: $DATE" >&5
18794 echo "${ECHO_T}$DATE" >&6
18795 else
18796   echo "$as_me:$LINENO: result: no" >&5
18797 echo "${ECHO_T}no" >&6
18798 fi
18799
18800 if test ${DATE} = "false"
18801 then
18802         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18803 echo "$as_me: error: date required but not found" >&2;}
18804    { (exit 1); exit 1; }; }
18805 fi
18806
18807 # Extract the first word of "mv", so it can be a program name with args.
18808 set dummy mv; ac_word=$2
18809 echo "$as_me:$LINENO: checking for $ac_word" >&5
18810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18811 if test "${ac_cv_path_MV+set}" = set; then
18812   echo $ECHO_N "(cached) $ECHO_C" >&6
18813 else
18814   case $MV in
18815   [\\/]* | ?:[\\/]*)
18816   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18817   ;;
18818   *)
18819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18820 for as_dir in $PATH
18821 do
18822   IFS=$as_save_IFS
18823   test -z "$as_dir" && as_dir=.
18824   for ac_exec_ext in '' $ac_executable_extensions; do
18825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18826     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18828     break 2
18829   fi
18830 done
18831 done
18832
18833   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18834   ;;
18835 esac
18836 fi
18837 MV=$ac_cv_path_MV
18838
18839 if test -n "$MV"; then
18840   echo "$as_me:$LINENO: result: $MV" >&5
18841 echo "${ECHO_T}$MV" >&6
18842 else
18843   echo "$as_me:$LINENO: result: no" >&5
18844 echo "${ECHO_T}no" >&6
18845 fi
18846
18847 if test ${MV} = "false"
18848 then
18849         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18850 echo "$as_me: error: mv required but not found" >&2;}
18851    { (exit 1); exit 1; }; }
18852 fi
18853
18854 # Extract the first word of "dot", so it can be a program name with args.
18855 set dummy dot; ac_word=$2
18856 echo "$as_me:$LINENO: checking for $ac_word" >&5
18857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18858 if test "${ac_cv_path_DOT+set}" = set; then
18859   echo $ECHO_N "(cached) $ECHO_C" >&6
18860 else
18861   case $DOT in
18862   [\\/]* | ?:[\\/]*)
18863   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18864   ;;
18865   *)
18866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18867 for as_dir in $PATH
18868 do
18869   IFS=$as_save_IFS
18870   test -z "$as_dir" && as_dir=.
18871   for ac_exec_ext in '' $ac_executable_extensions; do
18872   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18873     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18875     break 2
18876   fi
18877 done
18878 done
18879
18880   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18881   ;;
18882 esac
18883 fi
18884 DOT=$ac_cv_path_DOT
18885
18886 if test -n "$DOT"; then
18887   echo "$as_me:$LINENO: result: $DOT" >&5
18888 echo "${ECHO_T}$DOT" >&6
18889 else
18890   echo "$as_me:$LINENO: result: no" >&5
18891 echo "${ECHO_T}no" >&6
18892 fi
18893
18894
18895 # Extract the first word of "etags", so it can be a program name with args.
18896 set dummy etags; ac_word=$2
18897 echo "$as_me:$LINENO: checking for $ac_word" >&5
18898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18899 if test "${ac_cv_path_ETAGS+set}" = set; then
18900   echo $ECHO_N "(cached) $ECHO_C" >&6
18901 else
18902   case $ETAGS in
18903   [\\/]* | ?:[\\/]*)
18904   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18905   ;;
18906   *)
18907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18908 for as_dir in $PATH
18909 do
18910   IFS=$as_save_IFS
18911   test -z "$as_dir" && as_dir=.
18912   for ac_exec_ext in '' $ac_executable_extensions; do
18913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18914     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18916     break 2
18917   fi
18918 done
18919 done
18920
18921   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18922   ;;
18923 esac
18924 fi
18925 ETAGS=$ac_cv_path_ETAGS
18926
18927 if test -n "$ETAGS"; then
18928   echo "$as_me:$LINENO: result: $ETAGS" >&5
18929 echo "${ECHO_T}$ETAGS" >&6
18930 else
18931   echo "$as_me:$LINENO: result: no" >&5
18932 echo "${ECHO_T}no" >&6
18933 fi
18934
18935
18936 # Extract the first word of "python", so it can be a program name with args.
18937 set dummy python; ac_word=$2
18938 echo "$as_me:$LINENO: checking for $ac_word" >&5
18939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18940 if test "${ac_cv_path_PYTHON+set}" = set; then
18941   echo $ECHO_N "(cached) $ECHO_C" >&6
18942 else
18943   case $PYTHON in
18944   [\\/]* | ?:[\\/]*)
18945   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18946   ;;
18947   *)
18948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18949 for as_dir in $PATH
18950 do
18951   IFS=$as_save_IFS
18952   test -z "$as_dir" && as_dir=.
18953   for ac_exec_ext in '' $ac_executable_extensions; do
18954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18955     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18957     break 2
18958   fi
18959 done
18960 done
18961
18962   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18963   ;;
18964 esac
18965 fi
18966 PYTHON=$ac_cv_path_PYTHON
18967
18968 if test -n "$PYTHON"; then
18969   echo "$as_me:$LINENO: result: $PYTHON" >&5
18970 echo "${ECHO_T}$PYTHON" >&6
18971 else
18972   echo "$as_me:$LINENO: result: no" >&5
18973 echo "${ECHO_T}no" >&6
18974 fi
18975
18976 if test ${PYTHON} = "false"
18977 then
18978         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18979 echo "$as_me: WARNING: python required but not found" >&2;}
18980 fi
18981
18982 # Extract the first word of "qmtest", so it can be a program name with args.
18983 set dummy qmtest; ac_word=$2
18984 echo "$as_me:$LINENO: checking for $ac_word" >&5
18985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18986 if test "${ac_cv_path_QMTEST+set}" = set; then
18987   echo $ECHO_N "(cached) $ECHO_C" >&6
18988 else
18989   case $QMTEST in
18990   [\\/]* | ?:[\\/]*)
18991   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18992   ;;
18993   *)
18994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18995 for as_dir in $PATH
18996 do
18997   IFS=$as_save_IFS
18998   test -z "$as_dir" && as_dir=.
18999   for ac_exec_ext in '' $ac_executable_extensions; do
19000   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19001     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19003     break 2
19004   fi
19005 done
19006 done
19007
19008   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
19009   ;;
19010 esac
19011 fi
19012 QMTEST=$ac_cv_path_QMTEST
19013
19014 if test -n "$QMTEST"; then
19015   echo "$as_me:$LINENO: result: $QMTEST" >&5
19016 echo "${ECHO_T}$QMTEST" >&6
19017 else
19018   echo "$as_me:$LINENO: result: no" >&5
19019 echo "${ECHO_T}no" >&6
19020 fi
19021
19022 if test ${QMTEST} = "false"
19023 then
19024         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19025 echo "$as_me: WARNING: qmtest required but not found" >&2;}
19026 fi
19027
19028 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19029 pymajor=`echo $pyversion | cut -d. -f1`
19030 pyminor=`echo $pyversion | cut -d. -f2`
19031
19032 if test "$pymajor" -ge "2"
19033 then
19034         if test "$pymajor" -eq "2"
19035         then
19036                 if test "$pyminor" -lt "2"
19037                 then
19038                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19039 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19040    { (exit 1); exit 1; }; }
19041                 fi
19042         fi
19043 else
19044         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19045 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19046    { (exit 1); exit 1; }; }
19047 fi
19048
19049
19050
19051
19052
19053 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19054 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19055 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19056   echo $ECHO_N "(cached) $ECHO_C" >&6
19057 else
19058   ac_check_lib_save_LIBS=$LIBS
19059 LIBS="-lelf  $LIBS"
19060 cat >conftest.$ac_ext <<_ACEOF
19061 #line $LINENO "configure"
19062 /* confdefs.h.  */
19063 _ACEOF
19064 cat confdefs.h >>conftest.$ac_ext
19065 cat >>conftest.$ac_ext <<_ACEOF
19066 /* end confdefs.h.  */
19067
19068 /* Override any gcc2 internal prototype to avoid an error.  */
19069 #ifdef __cplusplus
19070 extern "C"
19071 #endif
19072 /* We use char because int might match the return type of a gcc2
19073    builtin and then its argument prototype would still apply.  */
19074 char elf_begin ();
19075 int
19076 main ()
19077 {
19078 elf_begin ();
19079   ;
19080   return 0;
19081 }
19082 _ACEOF
19083 rm -f conftest.$ac_objext conftest$ac_exeext
19084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19085   (eval $ac_link) 2>&5
19086   ac_status=$?
19087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088   (exit $ac_status); } &&
19089          { ac_try='test -s conftest$ac_exeext'
19090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091   (eval $ac_try) 2>&5
19092   ac_status=$?
19093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094   (exit $ac_status); }; }; then
19095   ac_cv_lib_elf_elf_begin=yes
19096 else
19097   echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19099
19100 ac_cv_lib_elf_elf_begin=no
19101 fi
19102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19103 LIBS=$ac_check_lib_save_LIBS
19104 fi
19105 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19106 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19107 if test $ac_cv_lib_elf_elf_begin = yes; then
19108   cat >>confdefs.h <<_ACEOF
19109 #define HAVE_LIBELF 1
19110 _ACEOF
19111
19112   LIBS="-lelf $LIBS"
19113
19114 fi
19115
19116
19117 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19118 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19119 if test "${ac_cv_search_dlopen+set}" = set; then
19120   echo $ECHO_N "(cached) $ECHO_C" >&6
19121 else
19122   ac_func_search_save_LIBS=$LIBS
19123 ac_cv_search_dlopen=no
19124 cat >conftest.$ac_ext <<_ACEOF
19125 #line $LINENO "configure"
19126 /* confdefs.h.  */
19127 _ACEOF
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h.  */
19131
19132 /* Override any gcc2 internal prototype to avoid an error.  */
19133 #ifdef __cplusplus
19134 extern "C"
19135 #endif
19136 /* We use char because int might match the return type of a gcc2
19137    builtin and then its argument prototype would still apply.  */
19138 char dlopen ();
19139 int
19140 main ()
19141 {
19142 dlopen ();
19143   ;
19144   return 0;
19145 }
19146 _ACEOF
19147 rm -f conftest.$ac_objext conftest$ac_exeext
19148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19149   (eval $ac_link) 2>&5
19150   ac_status=$?
19151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152   (exit $ac_status); } &&
19153          { ac_try='test -s conftest$ac_exeext'
19154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155   (eval $ac_try) 2>&5
19156   ac_status=$?
19157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); }; }; then
19159   ac_cv_search_dlopen="none required"
19160 else
19161   echo "$as_me: failed program was:" >&5
19162 sed 's/^/| /' conftest.$ac_ext >&5
19163
19164 fi
19165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19166 if test "$ac_cv_search_dlopen" = no; then
19167   for ac_lib in dl; do
19168     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19169     cat >conftest.$ac_ext <<_ACEOF
19170 #line $LINENO "configure"
19171 /* confdefs.h.  */
19172 _ACEOF
19173 cat confdefs.h >>conftest.$ac_ext
19174 cat >>conftest.$ac_ext <<_ACEOF
19175 /* end confdefs.h.  */
19176
19177 /* Override any gcc2 internal prototype to avoid an error.  */
19178 #ifdef __cplusplus
19179 extern "C"
19180 #endif
19181 /* We use char because int might match the return type of a gcc2
19182    builtin and then its argument prototype would still apply.  */
19183 char dlopen ();
19184 int
19185 main ()
19186 {
19187 dlopen ();
19188   ;
19189   return 0;
19190 }
19191 _ACEOF
19192 rm -f conftest.$ac_objext conftest$ac_exeext
19193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19194   (eval $ac_link) 2>&5
19195   ac_status=$?
19196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197   (exit $ac_status); } &&
19198          { ac_try='test -s conftest$ac_exeext'
19199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200   (eval $ac_try) 2>&5
19201   ac_status=$?
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); }; }; then
19204   ac_cv_search_dlopen="-l$ac_lib"
19205 break
19206 else
19207   echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19209
19210 fi
19211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19212   done
19213 fi
19214 LIBS=$ac_func_search_save_LIBS
19215 fi
19216 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19217 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19218 if test "$ac_cv_search_dlopen" != no; then
19219   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19220   cat >>confdefs.h <<\_ACEOF
19221 #define HAVE_DLOPEN 1
19222 _ACEOF
19223
19224 else
19225   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19226 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19227 fi
19228
19229
19230 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19231 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19232 if test "${ac_cv_search_mallinfo+set}" = set; then
19233   echo $ECHO_N "(cached) $ECHO_C" >&6
19234 else
19235   ac_func_search_save_LIBS=$LIBS
19236 ac_cv_search_mallinfo=no
19237 cat >conftest.$ac_ext <<_ACEOF
19238 #line $LINENO "configure"
19239 /* confdefs.h.  */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h.  */
19244
19245 /* Override any gcc2 internal prototype to avoid an error.  */
19246 #ifdef __cplusplus
19247 extern "C"
19248 #endif
19249 /* We use char because int might match the return type of a gcc2
19250    builtin and then its argument prototype would still apply.  */
19251 char mallinfo ();
19252 int
19253 main ()
19254 {
19255 mallinfo ();
19256   ;
19257   return 0;
19258 }
19259 _ACEOF
19260 rm -f conftest.$ac_objext conftest$ac_exeext
19261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19262   (eval $ac_link) 2>&5
19263   ac_status=$?
19264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265   (exit $ac_status); } &&
19266          { ac_try='test -s conftest$ac_exeext'
19267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268   (eval $ac_try) 2>&5
19269   ac_status=$?
19270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271   (exit $ac_status); }; }; then
19272   ac_cv_search_mallinfo="none required"
19273 else
19274   echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19276
19277 fi
19278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19279 if test "$ac_cv_search_mallinfo" = no; then
19280   for ac_lib in malloc; do
19281     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19282     cat >conftest.$ac_ext <<_ACEOF
19283 #line $LINENO "configure"
19284 /* confdefs.h.  */
19285 _ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h.  */
19289
19290 /* Override any gcc2 internal prototype to avoid an error.  */
19291 #ifdef __cplusplus
19292 extern "C"
19293 #endif
19294 /* We use char because int might match the return type of a gcc2
19295    builtin and then its argument prototype would still apply.  */
19296 char mallinfo ();
19297 int
19298 main ()
19299 {
19300 mallinfo ();
19301   ;
19302   return 0;
19303 }
19304 _ACEOF
19305 rm -f conftest.$ac_objext conftest$ac_exeext
19306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19307   (eval $ac_link) 2>&5
19308   ac_status=$?
19309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310   (exit $ac_status); } &&
19311          { ac_try='test -s conftest$ac_exeext'
19312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313   (eval $ac_try) 2>&5
19314   ac_status=$?
19315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316   (exit $ac_status); }; }; then
19317   ac_cv_search_mallinfo="-l$ac_lib"
19318 break
19319 else
19320   echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19322
19323 fi
19324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19325   done
19326 fi
19327 LIBS=$ac_func_search_save_LIBS
19328 fi
19329 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19330 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19331 if test "$ac_cv_search_mallinfo" != no; then
19332   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19333   cat >>confdefs.h <<\_ACEOF
19334 #define HAVE_MALLINFO 1
19335 _ACEOF
19336
19337 fi
19338
19339
19340
19341 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19342 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19343 if test "${ac_cv_header_stdc+set}" = set; then
19344   echo $ECHO_N "(cached) $ECHO_C" >&6
19345 else
19346   cat >conftest.$ac_ext <<_ACEOF
19347 #line $LINENO "configure"
19348 /* confdefs.h.  */
19349 _ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h.  */
19353 #include <stdlib.h>
19354 #include <stdarg.h>
19355 #include <string.h>
19356 #include <float.h>
19357
19358 int
19359 main ()
19360 {
19361
19362   ;
19363   return 0;
19364 }
19365 _ACEOF
19366 rm -f conftest.$ac_objext
19367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19368   (eval $ac_compile) 2>&5
19369   ac_status=$?
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); } &&
19372          { ac_try='test -s conftest.$ac_objext'
19373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374   (eval $ac_try) 2>&5
19375   ac_status=$?
19376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377   (exit $ac_status); }; }; then
19378   ac_cv_header_stdc=yes
19379 else
19380   echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19382
19383 ac_cv_header_stdc=no
19384 fi
19385 rm -f conftest.$ac_objext conftest.$ac_ext
19386
19387 if test $ac_cv_header_stdc = yes; then
19388   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19389   cat >conftest.$ac_ext <<_ACEOF
19390 #line $LINENO "configure"
19391 /* confdefs.h.  */
19392 _ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h.  */
19396 #include <string.h>
19397
19398 _ACEOF
19399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19400   $EGREP "memchr" >/dev/null 2>&1; then
19401   :
19402 else
19403   ac_cv_header_stdc=no
19404 fi
19405 rm -f conftest*
19406
19407 fi
19408
19409 if test $ac_cv_header_stdc = yes; then
19410   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19411   cat >conftest.$ac_ext <<_ACEOF
19412 #line $LINENO "configure"
19413 /* confdefs.h.  */
19414 _ACEOF
19415 cat confdefs.h >>conftest.$ac_ext
19416 cat >>conftest.$ac_ext <<_ACEOF
19417 /* end confdefs.h.  */
19418 #include <stdlib.h>
19419
19420 _ACEOF
19421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19422   $EGREP "free" >/dev/null 2>&1; then
19423   :
19424 else
19425   ac_cv_header_stdc=no
19426 fi
19427 rm -f conftest*
19428
19429 fi
19430
19431 if test $ac_cv_header_stdc = yes; then
19432   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19433   if test "$cross_compiling" = yes; then
19434   :
19435 else
19436   cat >conftest.$ac_ext <<_ACEOF
19437 #line $LINENO "configure"
19438 /* confdefs.h.  */
19439 _ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h.  */
19443 #include <ctype.h>
19444 #if ((' ' & 0x0FF) == 0x020)
19445 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19446 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19447 #else
19448 # define ISLOWER(c) \
19449                    (('a' <= (c) && (c) <= 'i') \
19450                      || ('j' <= (c) && (c) <= 'r') \
19451                      || ('s' <= (c) && (c) <= 'z'))
19452 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19453 #endif
19454
19455 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19456 int
19457 main ()
19458 {
19459   int i;
19460   for (i = 0; i < 256; i++)
19461     if (XOR (islower (i), ISLOWER (i))
19462         || toupper (i) != TOUPPER (i))
19463       exit(2);
19464   exit (0);
19465 }
19466 _ACEOF
19467 rm -f conftest$ac_exeext
19468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19469   (eval $ac_link) 2>&5
19470   ac_status=$?
19471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474   (eval $ac_try) 2>&5
19475   ac_status=$?
19476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477   (exit $ac_status); }; }; then
19478   :
19479 else
19480   echo "$as_me: program exited with status $ac_status" >&5
19481 echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19483
19484 ( exit $ac_status )
19485 ac_cv_header_stdc=no
19486 fi
19487 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19488 fi
19489 fi
19490 fi
19491 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19492 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19493 if test $ac_cv_header_stdc = yes; then
19494
19495 cat >>confdefs.h <<\_ACEOF
19496 #define STDC_HEADERS 1
19497 _ACEOF
19498
19499 fi
19500
19501 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19502 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19503 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19504   echo $ECHO_N "(cached) $ECHO_C" >&6
19505 else
19506   cat >conftest.$ac_ext <<_ACEOF
19507 #line $LINENO "configure"
19508 /* confdefs.h.  */
19509 _ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h.  */
19513 #include <sys/types.h>
19514 #include <sys/wait.h>
19515 #ifndef WEXITSTATUS
19516 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19517 #endif
19518 #ifndef WIFEXITED
19519 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19520 #endif
19521
19522 int
19523 main ()
19524 {
19525   int s;
19526   wait (&s);
19527   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19528   ;
19529   return 0;
19530 }
19531 _ACEOF
19532 rm -f conftest.$ac_objext
19533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19534   (eval $ac_compile) 2>&5
19535   ac_status=$?
19536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537   (exit $ac_status); } &&
19538          { ac_try='test -s conftest.$ac_objext'
19539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540   (eval $ac_try) 2>&5
19541   ac_status=$?
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); }; }; then
19544   ac_cv_header_sys_wait_h=yes
19545 else
19546   echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19548
19549 ac_cv_header_sys_wait_h=no
19550 fi
19551 rm -f conftest.$ac_objext conftest.$ac_ext
19552 fi
19553 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19554 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19555 if test $ac_cv_header_sys_wait_h = yes; then
19556
19557 cat >>confdefs.h <<\_ACEOF
19558 #define HAVE_SYS_WAIT_H 1
19559 _ACEOF
19560
19561 fi
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19573 do
19574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19576   echo "$as_me:$LINENO: checking for $ac_header" >&5
19577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19579   echo $ECHO_N "(cached) $ECHO_C" >&6
19580 fi
19581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19583 else
19584   # Is the header compilable?
19585 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19587 cat >conftest.$ac_ext <<_ACEOF
19588 #line $LINENO "configure"
19589 /* confdefs.h.  */
19590 _ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h.  */
19594 $ac_includes_default
19595 #include <$ac_header>
19596 _ACEOF
19597 rm -f conftest.$ac_objext
19598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19599   (eval $ac_compile) 2>&5
19600   ac_status=$?
19601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602   (exit $ac_status); } &&
19603          { ac_try='test -s conftest.$ac_objext'
19604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605   (eval $ac_try) 2>&5
19606   ac_status=$?
19607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608   (exit $ac_status); }; }; then
19609   ac_header_compiler=yes
19610 else
19611   echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19613
19614 ac_header_compiler=no
19615 fi
19616 rm -f conftest.$ac_objext conftest.$ac_ext
19617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19618 echo "${ECHO_T}$ac_header_compiler" >&6
19619
19620 # Is the header present?
19621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19623 cat >conftest.$ac_ext <<_ACEOF
19624 #line $LINENO "configure"
19625 /* confdefs.h.  */
19626 _ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h.  */
19630 #include <$ac_header>
19631 _ACEOF
19632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19633   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19634   ac_status=$?
19635   grep -v '^ *+' conftest.er1 >conftest.err
19636   rm -f conftest.er1
19637   cat conftest.err >&5
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); } >/dev/null; then
19640   if test -s conftest.err; then
19641     ac_cpp_err=$ac_c_preproc_warn_flag
19642   else
19643     ac_cpp_err=
19644   fi
19645 else
19646   ac_cpp_err=yes
19647 fi
19648 if test -z "$ac_cpp_err"; then
19649   ac_header_preproc=yes
19650 else
19651   echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19653
19654   ac_header_preproc=no
19655 fi
19656 rm -f conftest.err conftest.$ac_ext
19657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19658 echo "${ECHO_T}$ac_header_preproc" >&6
19659
19660 # So?  What about this header?
19661 case $ac_header_compiler:$ac_header_preproc in
19662   yes:no )
19663     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19667     (
19668       cat <<\_ASBOX
19669 ## ------------------------------------ ##
19670 ## Report this to bug-autoconf@gnu.org. ##
19671 ## ------------------------------------ ##
19672 _ASBOX
19673     ) |
19674       sed "s/^/$as_me: WARNING:     /" >&2
19675     ;;
19676   no:yes )
19677     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19679     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19683     (
19684       cat <<\_ASBOX
19685 ## ------------------------------------ ##
19686 ## Report this to bug-autoconf@gnu.org. ##
19687 ## ------------------------------------ ##
19688 _ASBOX
19689     ) |
19690       sed "s/^/$as_me: WARNING:     /" >&2
19691     ;;
19692 esac
19693 echo "$as_me:$LINENO: checking for $ac_header" >&5
19694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19696   echo $ECHO_N "(cached) $ECHO_C" >&6
19697 else
19698   eval "$as_ac_Header=$ac_header_preproc"
19699 fi
19700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19702
19703 fi
19704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19705   cat >>confdefs.h <<_ACEOF
19706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19707 _ACEOF
19708
19709 fi
19710
19711 done
19712
19713
19714
19715
19716
19717
19718 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19719 do
19720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19722   echo "$as_me:$LINENO: checking for $ac_header" >&5
19723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19725   echo $ECHO_N "(cached) $ECHO_C" >&6
19726 fi
19727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19729 else
19730   # Is the header compilable?
19731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19733 cat >conftest.$ac_ext <<_ACEOF
19734 #line $LINENO "configure"
19735 /* confdefs.h.  */
19736 _ACEOF
19737 cat confdefs.h >>conftest.$ac_ext
19738 cat >>conftest.$ac_ext <<_ACEOF
19739 /* end confdefs.h.  */
19740 $ac_includes_default
19741 #include <$ac_header>
19742 _ACEOF
19743 rm -f conftest.$ac_objext
19744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19745   (eval $ac_compile) 2>&5
19746   ac_status=$?
19747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748   (exit $ac_status); } &&
19749          { ac_try='test -s conftest.$ac_objext'
19750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751   (eval $ac_try) 2>&5
19752   ac_status=$?
19753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754   (exit $ac_status); }; }; then
19755   ac_header_compiler=yes
19756 else
19757   echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19759
19760 ac_header_compiler=no
19761 fi
19762 rm -f conftest.$ac_objext conftest.$ac_ext
19763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19764 echo "${ECHO_T}$ac_header_compiler" >&6
19765
19766 # Is the header present?
19767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19769 cat >conftest.$ac_ext <<_ACEOF
19770 #line $LINENO "configure"
19771 /* confdefs.h.  */
19772 _ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h.  */
19776 #include <$ac_header>
19777 _ACEOF
19778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19780   ac_status=$?
19781   grep -v '^ *+' conftest.er1 >conftest.err
19782   rm -f conftest.er1
19783   cat conftest.err >&5
19784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785   (exit $ac_status); } >/dev/null; then
19786   if test -s conftest.err; then
19787     ac_cpp_err=$ac_c_preproc_warn_flag
19788   else
19789     ac_cpp_err=
19790   fi
19791 else
19792   ac_cpp_err=yes
19793 fi
19794 if test -z "$ac_cpp_err"; then
19795   ac_header_preproc=yes
19796 else
19797   echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19799
19800   ac_header_preproc=no
19801 fi
19802 rm -f conftest.err conftest.$ac_ext
19803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19804 echo "${ECHO_T}$ac_header_preproc" >&6
19805
19806 # So?  What about this header?
19807 case $ac_header_compiler:$ac_header_preproc in
19808   yes:no )
19809     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19813     (
19814       cat <<\_ASBOX
19815 ## ------------------------------------ ##
19816 ## Report this to bug-autoconf@gnu.org. ##
19817 ## ------------------------------------ ##
19818 _ASBOX
19819     ) |
19820       sed "s/^/$as_me: WARNING:     /" >&2
19821     ;;
19822   no:yes )
19823     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19825     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19829     (
19830       cat <<\_ASBOX
19831 ## ------------------------------------ ##
19832 ## Report this to bug-autoconf@gnu.org. ##
19833 ## ------------------------------------ ##
19834 _ASBOX
19835     ) |
19836       sed "s/^/$as_me: WARNING:     /" >&2
19837     ;;
19838 esac
19839 echo "$as_me:$LINENO: checking for $ac_header" >&5
19840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19842   echo $ECHO_N "(cached) $ECHO_C" >&6
19843 else
19844   eval "$as_ac_Header=$ac_header_preproc"
19845 fi
19846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19848
19849 fi
19850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19851   cat >>confdefs.h <<_ACEOF
19852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19853 _ACEOF
19854
19855 fi
19856
19857 done
19858
19859
19860
19861
19862 for ac_header in dlfcn.h link.h
19863 do
19864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19866   echo "$as_me:$LINENO: checking for $ac_header" >&5
19867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19869   echo $ECHO_N "(cached) $ECHO_C" >&6
19870 fi
19871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19873 else
19874   # Is the header compilable?
19875 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19877 cat >conftest.$ac_ext <<_ACEOF
19878 #line $LINENO "configure"
19879 /* confdefs.h.  */
19880 _ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h.  */
19884 $ac_includes_default
19885 #include <$ac_header>
19886 _ACEOF
19887 rm -f conftest.$ac_objext
19888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19889   (eval $ac_compile) 2>&5
19890   ac_status=$?
19891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); } &&
19893          { ac_try='test -s conftest.$ac_objext'
19894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895   (eval $ac_try) 2>&5
19896   ac_status=$?
19897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898   (exit $ac_status); }; }; then
19899   ac_header_compiler=yes
19900 else
19901   echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19903
19904 ac_header_compiler=no
19905 fi
19906 rm -f conftest.$ac_objext conftest.$ac_ext
19907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19908 echo "${ECHO_T}$ac_header_compiler" >&6
19909
19910 # Is the header present?
19911 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19913 cat >conftest.$ac_ext <<_ACEOF
19914 #line $LINENO "configure"
19915 /* confdefs.h.  */
19916 _ACEOF
19917 cat confdefs.h >>conftest.$ac_ext
19918 cat >>conftest.$ac_ext <<_ACEOF
19919 /* end confdefs.h.  */
19920 #include <$ac_header>
19921 _ACEOF
19922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19923   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19924   ac_status=$?
19925   grep -v '^ *+' conftest.er1 >conftest.err
19926   rm -f conftest.er1
19927   cat conftest.err >&5
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); } >/dev/null; then
19930   if test -s conftest.err; then
19931     ac_cpp_err=$ac_c_preproc_warn_flag
19932   else
19933     ac_cpp_err=
19934   fi
19935 else
19936   ac_cpp_err=yes
19937 fi
19938 if test -z "$ac_cpp_err"; then
19939   ac_header_preproc=yes
19940 else
19941   echo "$as_me: failed program was:" >&5
19942 sed 's/^/| /' conftest.$ac_ext >&5
19943
19944   ac_header_preproc=no
19945 fi
19946 rm -f conftest.err conftest.$ac_ext
19947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19948 echo "${ECHO_T}$ac_header_preproc" >&6
19949
19950 # So?  What about this header?
19951 case $ac_header_compiler:$ac_header_preproc in
19952   yes:no )
19953     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19957     (
19958       cat <<\_ASBOX
19959 ## ------------------------------------ ##
19960 ## Report this to bug-autoconf@gnu.org. ##
19961 ## ------------------------------------ ##
19962 _ASBOX
19963     ) |
19964       sed "s/^/$as_me: WARNING:     /" >&2
19965     ;;
19966   no:yes )
19967     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19969     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19971     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19973     (
19974       cat <<\_ASBOX
19975 ## ------------------------------------ ##
19976 ## Report this to bug-autoconf@gnu.org. ##
19977 ## ------------------------------------ ##
19978 _ASBOX
19979     ) |
19980       sed "s/^/$as_me: WARNING:     /" >&2
19981     ;;
19982 esac
19983 echo "$as_me:$LINENO: checking for $ac_header" >&5
19984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19986   echo $ECHO_N "(cached) $ECHO_C" >&6
19987 else
19988   eval "$as_ac_Header=$ac_header_preproc"
19989 fi
19990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19992
19993 fi
19994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19995   cat >>confdefs.h <<_ACEOF
19996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19997 _ACEOF
19998
19999 fi
20000
20001 done
20002
20003
20004
20005 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20006 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20007 if test "${ac_cv_c_const+set}" = set; then
20008   echo $ECHO_N "(cached) $ECHO_C" >&6
20009 else
20010   cat >conftest.$ac_ext <<_ACEOF
20011 #line $LINENO "configure"
20012 /* confdefs.h.  */
20013 _ACEOF
20014 cat confdefs.h >>conftest.$ac_ext
20015 cat >>conftest.$ac_ext <<_ACEOF
20016 /* end confdefs.h.  */
20017
20018 int
20019 main ()
20020 {
20021 /* FIXME: Include the comments suggested by Paul. */
20022 #ifndef __cplusplus
20023   /* Ultrix mips cc rejects this.  */
20024   typedef int charset[2];
20025   const charset x;
20026   /* SunOS 4.1.1 cc rejects this.  */
20027   char const *const *ccp;
20028   char **p;
20029   /* NEC SVR4.0.2 mips cc rejects this.  */
20030   struct point {int x, y;};
20031   static struct point const zero = {0,0};
20032   /* AIX XL C 1.02.0.0 rejects this.
20033      It does not let you subtract one const X* pointer from another in
20034      an arm of an if-expression whose if-part is not a constant
20035      expression */
20036   const char *g = "string";
20037   ccp = &g + (g ? g-g : 0);
20038   /* HPUX 7.0 cc rejects these. */
20039   ++ccp;
20040   p = (char**) ccp;
20041   ccp = (char const *const *) p;
20042   { /* SCO 3.2v4 cc rejects this.  */
20043     char *t;
20044     char const *s = 0 ? (char *) 0 : (char const *) 0;
20045
20046     *t++ = 0;
20047   }
20048   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20049     int x[] = {25, 17};
20050     const int *foo = &x[0];
20051     ++foo;
20052   }
20053   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20054     typedef const int *iptr;
20055     iptr p = 0;
20056     ++p;
20057   }
20058   { /* AIX XL C 1.02.0.0 rejects this saying
20059        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20060     struct s { int j; const int *ap[3]; };
20061     struct s *b; b->j = 5;
20062   }
20063   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20064     const int foo = 10;
20065   }
20066 #endif
20067
20068   ;
20069   return 0;
20070 }
20071 _ACEOF
20072 rm -f conftest.$ac_objext
20073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20074   (eval $ac_compile) 2>&5
20075   ac_status=$?
20076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077   (exit $ac_status); } &&
20078          { ac_try='test -s conftest.$ac_objext'
20079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080   (eval $ac_try) 2>&5
20081   ac_status=$?
20082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083   (exit $ac_status); }; }; then
20084   ac_cv_c_const=yes
20085 else
20086   echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20088
20089 ac_cv_c_const=no
20090 fi
20091 rm -f conftest.$ac_objext conftest.$ac_ext
20092 fi
20093 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20094 echo "${ECHO_T}$ac_cv_c_const" >&6
20095 if test $ac_cv_c_const = no; then
20096
20097 cat >>confdefs.h <<\_ACEOF
20098 #define const
20099 _ACEOF
20100
20101 fi
20102
20103 echo "$as_me:$LINENO: checking for inline" >&5
20104 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20105 if test "${ac_cv_c_inline+set}" = set; then
20106   echo $ECHO_N "(cached) $ECHO_C" >&6
20107 else
20108   ac_cv_c_inline=no
20109 for ac_kw in inline __inline__ __inline; do
20110   cat >conftest.$ac_ext <<_ACEOF
20111 #line $LINENO "configure"
20112 /* confdefs.h.  */
20113 _ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h.  */
20117 #ifndef __cplusplus
20118 typedef int foo_t;
20119 static $ac_kw foo_t static_foo () {return 0; }
20120 $ac_kw foo_t foo () {return 0; }
20121 #endif
20122
20123 _ACEOF
20124 rm -f conftest.$ac_objext
20125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20126   (eval $ac_compile) 2>&5
20127   ac_status=$?
20128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129   (exit $ac_status); } &&
20130          { ac_try='test -s conftest.$ac_objext'
20131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20132   (eval $ac_try) 2>&5
20133   ac_status=$?
20134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135   (exit $ac_status); }; }; then
20136   ac_cv_c_inline=$ac_kw; break
20137 else
20138   echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20140
20141 fi
20142 rm -f conftest.$ac_objext conftest.$ac_ext
20143 done
20144
20145 fi
20146 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20147 echo "${ECHO_T}$ac_cv_c_inline" >&6
20148 case $ac_cv_c_inline in
20149   inline | yes) ;;
20150   no)
20151 cat >>confdefs.h <<\_ACEOF
20152 #define inline
20153 _ACEOF
20154  ;;
20155   *)  cat >>confdefs.h <<_ACEOF
20156 #define inline $ac_cv_c_inline
20157 _ACEOF
20158  ;;
20159 esac
20160
20161
20162 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20163 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20164 if test "${ac_cv_c_bigendian+set}" = set; then
20165   echo $ECHO_N "(cached) $ECHO_C" >&6
20166 else
20167   # See if sys/param.h defines the BYTE_ORDER macro.
20168 cat >conftest.$ac_ext <<_ACEOF
20169 #line $LINENO "configure"
20170 /* confdefs.h.  */
20171 _ACEOF
20172 cat confdefs.h >>conftest.$ac_ext
20173 cat >>conftest.$ac_ext <<_ACEOF
20174 /* end confdefs.h.  */
20175 #include <sys/types.h>
20176 #include <sys/param.h>
20177
20178 int
20179 main ()
20180 {
20181 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20182  bogus endian macros
20183 #endif
20184
20185   ;
20186   return 0;
20187 }
20188 _ACEOF
20189 rm -f conftest.$ac_objext
20190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20191   (eval $ac_compile) 2>&5
20192   ac_status=$?
20193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194   (exit $ac_status); } &&
20195          { ac_try='test -s conftest.$ac_objext'
20196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197   (eval $ac_try) 2>&5
20198   ac_status=$?
20199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); }; }; then
20201   # It does; now see whether it defined to BIG_ENDIAN or not.
20202 cat >conftest.$ac_ext <<_ACEOF
20203 #line $LINENO "configure"
20204 /* confdefs.h.  */
20205 _ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h.  */
20209 #include <sys/types.h>
20210 #include <sys/param.h>
20211
20212 int
20213 main ()
20214 {
20215 #if BYTE_ORDER != BIG_ENDIAN
20216  not big endian
20217 #endif
20218
20219   ;
20220   return 0;
20221 }
20222 _ACEOF
20223 rm -f conftest.$ac_objext
20224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20225   (eval $ac_compile) 2>&5
20226   ac_status=$?
20227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228   (exit $ac_status); } &&
20229          { ac_try='test -s conftest.$ac_objext'
20230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231   (eval $ac_try) 2>&5
20232   ac_status=$?
20233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234   (exit $ac_status); }; }; then
20235   ac_cv_c_bigendian=yes
20236 else
20237   echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.$ac_ext >&5
20239
20240 ac_cv_c_bigendian=no
20241 fi
20242 rm -f conftest.$ac_objext conftest.$ac_ext
20243 else
20244   echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20246
20247 # It does not; compile a test program.
20248 if test "$cross_compiling" = yes; then
20249   # try to guess the endianness by grepping values into an object file
20250   ac_cv_c_bigendian=unknown
20251   cat >conftest.$ac_ext <<_ACEOF
20252 #line $LINENO "configure"
20253 /* confdefs.h.  */
20254 _ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h.  */
20258 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20259 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20260 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20261 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20262 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20263 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20264 int
20265 main ()
20266 {
20267  _ascii (); _ebcdic ();
20268   ;
20269   return 0;
20270 }
20271 _ACEOF
20272 rm -f conftest.$ac_objext
20273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20274   (eval $ac_compile) 2>&5
20275   ac_status=$?
20276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277   (exit $ac_status); } &&
20278          { ac_try='test -s conftest.$ac_objext'
20279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280   (eval $ac_try) 2>&5
20281   ac_status=$?
20282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283   (exit $ac_status); }; }; then
20284   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20285   ac_cv_c_bigendian=yes
20286 fi
20287 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20288   if test "$ac_cv_c_bigendian" = unknown; then
20289     ac_cv_c_bigendian=no
20290   else
20291     # finding both strings is unlikely to happen, but who knows?
20292     ac_cv_c_bigendian=unknown
20293   fi
20294 fi
20295 else
20296   echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20298
20299 fi
20300 rm -f conftest.$ac_objext conftest.$ac_ext
20301 else
20302   cat >conftest.$ac_ext <<_ACEOF
20303 #line $LINENO "configure"
20304 /* confdefs.h.  */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h.  */
20309 int
20310 main ()
20311 {
20312   /* Are we little or big endian?  From Harbison&Steele.  */
20313   union
20314   {
20315     long l;
20316     char c[sizeof (long)];
20317   } u;
20318   u.l = 1;
20319   exit (u.c[sizeof (long) - 1] == 1);
20320 }
20321 _ACEOF
20322 rm -f conftest$ac_exeext
20323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20324   (eval $ac_link) 2>&5
20325   ac_status=$?
20326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20329   (eval $ac_try) 2>&5
20330   ac_status=$?
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); }; }; then
20333   ac_cv_c_bigendian=no
20334 else
20335   echo "$as_me: program exited with status $ac_status" >&5
20336 echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20338
20339 ( exit $ac_status )
20340 ac_cv_c_bigendian=yes
20341 fi
20342 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20343 fi
20344 fi
20345 rm -f conftest.$ac_objext conftest.$ac_ext
20346 fi
20347 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20348 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20349 case $ac_cv_c_bigendian in
20350   yes)
20351     cat >>confdefs.h <<\_ACEOF
20352 #define ENDIAN_BIG 1
20353 _ACEOF
20354  ;;
20355   no)
20356     cat >>confdefs.h <<\_ACEOF
20357 #define ENDIAN_LITTLE 1
20358 _ACEOF
20359  ;;
20360   *)
20361     { { echo "$as_me:$LINENO: error: unknown endianness
20362 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20363 echo "$as_me: error: unknown endianness
20364 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20365    { (exit 1); exit 1; }; } ;;
20366 esac
20367
20368
20369 echo "$as_me:$LINENO: checking for pid_t" >&5
20370 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20371 if test "${ac_cv_type_pid_t+set}" = set; then
20372   echo $ECHO_N "(cached) $ECHO_C" >&6
20373 else
20374   cat >conftest.$ac_ext <<_ACEOF
20375 #line $LINENO "configure"
20376 /* confdefs.h.  */
20377 _ACEOF
20378 cat confdefs.h >>conftest.$ac_ext
20379 cat >>conftest.$ac_ext <<_ACEOF
20380 /* end confdefs.h.  */
20381 $ac_includes_default
20382 int
20383 main ()
20384 {
20385 if ((pid_t *) 0)
20386   return 0;
20387 if (sizeof (pid_t))
20388   return 0;
20389   ;
20390   return 0;
20391 }
20392 _ACEOF
20393 rm -f conftest.$ac_objext
20394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20395   (eval $ac_compile) 2>&5
20396   ac_status=$?
20397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398   (exit $ac_status); } &&
20399          { ac_try='test -s conftest.$ac_objext'
20400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401   (eval $ac_try) 2>&5
20402   ac_status=$?
20403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404   (exit $ac_status); }; }; then
20405   ac_cv_type_pid_t=yes
20406 else
20407   echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20409
20410 ac_cv_type_pid_t=no
20411 fi
20412 rm -f conftest.$ac_objext conftest.$ac_ext
20413 fi
20414 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20415 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20416 if test $ac_cv_type_pid_t = yes; then
20417   :
20418 else
20419
20420 cat >>confdefs.h <<_ACEOF
20421 #define pid_t int
20422 _ACEOF
20423
20424 fi
20425
20426 echo "$as_me:$LINENO: checking for size_t" >&5
20427 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20428 if test "${ac_cv_type_size_t+set}" = set; then
20429   echo $ECHO_N "(cached) $ECHO_C" >&6
20430 else
20431   cat >conftest.$ac_ext <<_ACEOF
20432 #line $LINENO "configure"
20433 /* confdefs.h.  */
20434 _ACEOF
20435 cat confdefs.h >>conftest.$ac_ext
20436 cat >>conftest.$ac_ext <<_ACEOF
20437 /* end confdefs.h.  */
20438 $ac_includes_default
20439 int
20440 main ()
20441 {
20442 if ((size_t *) 0)
20443   return 0;
20444 if (sizeof (size_t))
20445   return 0;
20446   ;
20447   return 0;
20448 }
20449 _ACEOF
20450 rm -f conftest.$ac_objext
20451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20452   (eval $ac_compile) 2>&5
20453   ac_status=$?
20454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455   (exit $ac_status); } &&
20456          { ac_try='test -s conftest.$ac_objext'
20457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20458   (eval $ac_try) 2>&5
20459   ac_status=$?
20460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461   (exit $ac_status); }; }; then
20462   ac_cv_type_size_t=yes
20463 else
20464   echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20466
20467 ac_cv_type_size_t=no
20468 fi
20469 rm -f conftest.$ac_objext conftest.$ac_ext
20470 fi
20471 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20472 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20473 if test $ac_cv_type_size_t = yes; then
20474   :
20475 else
20476
20477 cat >>confdefs.h <<_ACEOF
20478 #define size_t unsigned
20479 _ACEOF
20480
20481 fi
20482
20483 echo "$as_me:$LINENO: checking for int64_t" >&5
20484 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20485 if test "${ac_cv_type_int64_t+set}" = set; then
20486   echo $ECHO_N "(cached) $ECHO_C" >&6
20487 else
20488   cat >conftest.$ac_ext <<_ACEOF
20489 #line $LINENO "configure"
20490 /* confdefs.h.  */
20491 _ACEOF
20492 cat confdefs.h >>conftest.$ac_ext
20493 cat >>conftest.$ac_ext <<_ACEOF
20494 /* end confdefs.h.  */
20495 $ac_includes_default
20496 int
20497 main ()
20498 {
20499 if ((int64_t *) 0)
20500   return 0;
20501 if (sizeof (int64_t))
20502   return 0;
20503   ;
20504   return 0;
20505 }
20506 _ACEOF
20507 rm -f conftest.$ac_objext
20508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20509   (eval $ac_compile) 2>&5
20510   ac_status=$?
20511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512   (exit $ac_status); } &&
20513          { ac_try='test -s conftest.$ac_objext'
20514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515   (eval $ac_try) 2>&5
20516   ac_status=$?
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); }; }; then
20519   ac_cv_type_int64_t=yes
20520 else
20521   echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20523
20524 ac_cv_type_int64_t=no
20525 fi
20526 rm -f conftest.$ac_objext conftest.$ac_ext
20527 fi
20528 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20529 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20530 if test $ac_cv_type_int64_t = yes; then
20531
20532 cat >>confdefs.h <<_ACEOF
20533 #define HAVE_INT64_T 1
20534 _ACEOF
20535
20536
20537 else
20538   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20539 echo "$as_me: error: Type int64_t required but not found" >&2;}
20540    { (exit 1); exit 1; }; }
20541 fi
20542
20543 echo "$as_me:$LINENO: checking for uint64_t" >&5
20544 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20545 if test "${ac_cv_type_uint64_t+set}" = set; then
20546   echo $ECHO_N "(cached) $ECHO_C" >&6
20547 else
20548   cat >conftest.$ac_ext <<_ACEOF
20549 #line $LINENO "configure"
20550 /* confdefs.h.  */
20551 _ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h.  */
20555 $ac_includes_default
20556 int
20557 main ()
20558 {
20559 if ((uint64_t *) 0)
20560   return 0;
20561 if (sizeof (uint64_t))
20562   return 0;
20563   ;
20564   return 0;
20565 }
20566 _ACEOF
20567 rm -f conftest.$ac_objext
20568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20569   (eval $ac_compile) 2>&5
20570   ac_status=$?
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); } &&
20573          { ac_try='test -s conftest.$ac_objext'
20574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20575   (eval $ac_try) 2>&5
20576   ac_status=$?
20577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578   (exit $ac_status); }; }; then
20579   ac_cv_type_uint64_t=yes
20580 else
20581   echo "$as_me: failed program was:" >&5
20582 sed 's/^/| /' conftest.$ac_ext >&5
20583
20584 ac_cv_type_uint64_t=no
20585 fi
20586 rm -f conftest.$ac_objext conftest.$ac_ext
20587 fi
20588 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20589 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20590 if test $ac_cv_type_uint64_t = yes; then
20591
20592 cat >>confdefs.h <<_ACEOF
20593 #define HAVE_UINT64_T 1
20594 _ACEOF
20595
20596
20597 else
20598   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20599 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20600    { (exit 1); exit 1; }; }
20601 fi
20602
20603 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20604 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20605 if test "${ac_cv_header_time+set}" = set; then
20606   echo $ECHO_N "(cached) $ECHO_C" >&6
20607 else
20608   cat >conftest.$ac_ext <<_ACEOF
20609 #line $LINENO "configure"
20610 /* confdefs.h.  */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h.  */
20615 #include <sys/types.h>
20616 #include <sys/time.h>
20617 #include <time.h>
20618
20619 int
20620 main ()
20621 {
20622 if ((struct tm *) 0)
20623 return 0;
20624   ;
20625   return 0;
20626 }
20627 _ACEOF
20628 rm -f conftest.$ac_objext
20629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20630   (eval $ac_compile) 2>&5
20631   ac_status=$?
20632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633   (exit $ac_status); } &&
20634          { ac_try='test -s conftest.$ac_objext'
20635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20636   (eval $ac_try) 2>&5
20637   ac_status=$?
20638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639   (exit $ac_status); }; }; then
20640   ac_cv_header_time=yes
20641 else
20642   echo "$as_me: failed program was:" >&5
20643 sed 's/^/| /' conftest.$ac_ext >&5
20644
20645 ac_cv_header_time=no
20646 fi
20647 rm -f conftest.$ac_objext conftest.$ac_ext
20648 fi
20649 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20650 echo "${ECHO_T}$ac_cv_header_time" >&6
20651 if test $ac_cv_header_time = yes; then
20652
20653 cat >>confdefs.h <<\_ACEOF
20654 #define TIME_WITH_SYS_TIME 1
20655 _ACEOF
20656
20657 fi
20658
20659 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20660 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20661 if test "${ac_cv_struct_tm+set}" = set; then
20662   echo $ECHO_N "(cached) $ECHO_C" >&6
20663 else
20664   cat >conftest.$ac_ext <<_ACEOF
20665 #line $LINENO "configure"
20666 /* confdefs.h.  */
20667 _ACEOF
20668 cat confdefs.h >>conftest.$ac_ext
20669 cat >>conftest.$ac_ext <<_ACEOF
20670 /* end confdefs.h.  */
20671 #include <sys/types.h>
20672 #include <time.h>
20673
20674 int
20675 main ()
20676 {
20677 struct tm *tp; tp->tm_sec;
20678   ;
20679   return 0;
20680 }
20681 _ACEOF
20682 rm -f conftest.$ac_objext
20683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20684   (eval $ac_compile) 2>&5
20685   ac_status=$?
20686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687   (exit $ac_status); } &&
20688          { ac_try='test -s conftest.$ac_objext'
20689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20690   (eval $ac_try) 2>&5
20691   ac_status=$?
20692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693   (exit $ac_status); }; }; then
20694   ac_cv_struct_tm=time.h
20695 else
20696   echo "$as_me: failed program was:" >&5
20697 sed 's/^/| /' conftest.$ac_ext >&5
20698
20699 ac_cv_struct_tm=sys/time.h
20700 fi
20701 rm -f conftest.$ac_objext conftest.$ac_ext
20702 fi
20703 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20704 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20705 if test $ac_cv_struct_tm = sys/time.h; then
20706
20707 cat >>confdefs.h <<\_ACEOF
20708 #define TM_IN_SYS_TIME 1
20709 _ACEOF
20710
20711 fi
20712
20713
20714 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20715 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20716 if test "${ac_cv_cxx_namespaces+set}" = set; then
20717   echo $ECHO_N "(cached) $ECHO_C" >&6
20718 else
20719
20720
20721  ac_ext=cc
20722 ac_cpp='$CXXCPP $CPPFLAGS'
20723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20726
20727  cat >conftest.$ac_ext <<_ACEOF
20728 #line $LINENO "configure"
20729 /* confdefs.h.  */
20730 _ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h.  */
20734 namespace Outer { namespace Inner { int i = 0; }}
20735 int
20736 main ()
20737 {
20738 using namespace Outer::Inner; return i;
20739   ;
20740   return 0;
20741 }
20742 _ACEOF
20743 rm -f conftest.$ac_objext
20744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20745   (eval $ac_compile) 2>&5
20746   ac_status=$?
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); } &&
20749          { ac_try='test -s conftest.$ac_objext'
20750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751   (eval $ac_try) 2>&5
20752   ac_status=$?
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); }; }; then
20755   ac_cv_cxx_namespaces=yes
20756 else
20757   echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20759
20760 ac_cv_cxx_namespaces=no
20761 fi
20762 rm -f conftest.$ac_objext conftest.$ac_ext
20763  ac_ext=c
20764 ac_cpp='$CPP $CPPFLAGS'
20765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20768
20769
20770 fi
20771 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20772 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20773 if test "$ac_cv_cxx_namespaces" = yes; then
20774
20775 cat >>confdefs.h <<\_ACEOF
20776 #define HAVE_NAMESPACES
20777 _ACEOF
20778
20779 fi
20780
20781 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20782 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20783 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20784   echo $ECHO_N "(cached) $ECHO_C" >&6
20785 else
20786
20787
20788
20789   ac_ext=cc
20790 ac_cpp='$CXXCPP $CPPFLAGS'
20791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20794
20795   cat >conftest.$ac_ext <<_ACEOF
20796 #line $LINENO "configure"
20797 /* confdefs.h.  */
20798 _ACEOF
20799 cat confdefs.h >>conftest.$ac_ext
20800 cat >>conftest.$ac_ext <<_ACEOF
20801 /* end confdefs.h.  */
20802 #include <ext/hash_map>
20803 #ifdef HAVE_NAMESPACES
20804 using namespace std;
20805 #endif
20806 int
20807 main ()
20808 {
20809 hash_map<int, int> t; return 0;
20810   ;
20811   return 0;
20812 }
20813 _ACEOF
20814 rm -f conftest.$ac_objext
20815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20816   (eval $ac_compile) 2>&5
20817   ac_status=$?
20818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819   (exit $ac_status); } &&
20820          { ac_try='test -s conftest.$ac_objext'
20821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822   (eval $ac_try) 2>&5
20823   ac_status=$?
20824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   (exit $ac_status); }; }; then
20826   ac_cv_cxx_have_ext_hash_map=std
20827 else
20828   echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20830
20831 ac_cv_cxx_have_ext_hash_map=no
20832 fi
20833 rm -f conftest.$ac_objext conftest.$ac_ext
20834   cat >conftest.$ac_ext <<_ACEOF
20835 #line $LINENO "configure"
20836 /* confdefs.h.  */
20837 _ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h.  */
20841 #include <ext/hash_map>
20842 #ifdef HAVE_NAMESPACES
20843 using namespace __gnu_cxx;
20844 #endif
20845 int
20846 main ()
20847 {
20848 hash_map<int, int> t; return 0;
20849   ;
20850   return 0;
20851 }
20852 _ACEOF
20853 rm -f conftest.$ac_objext
20854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20855   (eval $ac_compile) 2>&5
20856   ac_status=$?
20857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858   (exit $ac_status); } &&
20859          { ac_try='test -s conftest.$ac_objext'
20860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20861   (eval $ac_try) 2>&5
20862   ac_status=$?
20863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864   (exit $ac_status); }; }; then
20865   ac_cv_cxx_have_ext_hash_map=gnu
20866 else
20867   echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20869
20870 ac_cv_cxx_have_ext_hash_map=no
20871 fi
20872 rm -f conftest.$ac_objext conftest.$ac_ext
20873   ac_ext=c
20874 ac_cpp='$CPP $CPPFLAGS'
20875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20878
20879
20880 fi
20881 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20882 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20883 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20884
20885 cat >>confdefs.h <<\_ACEOF
20886 #define HAVE_STD_EXT_HASH_MAP
20887 _ACEOF
20888
20889 fi
20890 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20891
20892 cat >>confdefs.h <<\_ACEOF
20893 #define HAVE_GNU_EXT_HASH_MAP
20894 _ACEOF
20895
20896 fi
20897
20898 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20899 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20900 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20901   echo $ECHO_N "(cached) $ECHO_C" >&6
20902 else
20903
20904
20905
20906   ac_ext=cc
20907 ac_cpp='$CXXCPP $CPPFLAGS'
20908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20911
20912   cat >conftest.$ac_ext <<_ACEOF
20913 #line $LINENO "configure"
20914 /* confdefs.h.  */
20915 _ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h.  */
20919 #include <ext/hash_set>
20920 #ifdef HAVE_NAMESPACES
20921 using namespace std;
20922 #endif
20923 int
20924 main ()
20925 {
20926 hash_set<int> t; return 0;
20927   ;
20928   return 0;
20929 }
20930 _ACEOF
20931 rm -f conftest.$ac_objext
20932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20933   (eval $ac_compile) 2>&5
20934   ac_status=$?
20935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); } &&
20937          { ac_try='test -s conftest.$ac_objext'
20938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939   (eval $ac_try) 2>&5
20940   ac_status=$?
20941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942   (exit $ac_status); }; }; then
20943   ac_cv_cxx_have_ext_hash_set=std
20944 else
20945   echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20947
20948 ac_cv_cxx_have_ext_hash_set=no
20949 fi
20950 rm -f conftest.$ac_objext conftest.$ac_ext
20951   cat >conftest.$ac_ext <<_ACEOF
20952 #line $LINENO "configure"
20953 /* confdefs.h.  */
20954 _ACEOF
20955 cat confdefs.h >>conftest.$ac_ext
20956 cat >>conftest.$ac_ext <<_ACEOF
20957 /* end confdefs.h.  */
20958 #include <ext/hash_set>
20959 #ifdef HAVE_NAMESPACES
20960 using namespace __gnu_cxx;
20961 #endif
20962 int
20963 main ()
20964 {
20965 hash_set<int> t; return 0;
20966   ;
20967   return 0;
20968 }
20969 _ACEOF
20970 rm -f conftest.$ac_objext
20971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20972   (eval $ac_compile) 2>&5
20973   ac_status=$?
20974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975   (exit $ac_status); } &&
20976          { ac_try='test -s conftest.$ac_objext'
20977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20978   (eval $ac_try) 2>&5
20979   ac_status=$?
20980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981   (exit $ac_status); }; }; then
20982   ac_cv_cxx_have_ext_hash_set=gnu
20983 else
20984   echo "$as_me: failed program was:" >&5
20985 sed 's/^/| /' conftest.$ac_ext >&5
20986
20987 ac_cv_cxx_have_ext_hash_set=no
20988 fi
20989 rm -f conftest.$ac_objext conftest.$ac_ext
20990   ac_ext=c
20991 ac_cpp='$CPP $CPPFLAGS'
20992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20995
20996
20997 fi
20998 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20999 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21000 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21001
21002 cat >>confdefs.h <<\_ACEOF
21003 #define HAVE_STD_EXT_HASH_SET
21004 _ACEOF
21005
21006 fi
21007 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21008
21009 cat >>confdefs.h <<\_ACEOF
21010 #define HAVE_GNU_EXT_HASH_SET
21011 _ACEOF
21012
21013 fi
21014
21015 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21016 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21017 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21018   echo $ECHO_N "(cached) $ECHO_C" >&6
21019 else
21020
21021
21022
21023   ac_ext=cc
21024 ac_cpp='$CXXCPP $CPPFLAGS'
21025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21028
21029   cat >conftest.$ac_ext <<_ACEOF
21030 #line $LINENO "configure"
21031 /* confdefs.h.  */
21032 _ACEOF
21033 cat confdefs.h >>conftest.$ac_ext
21034 cat >>conftest.$ac_ext <<_ACEOF
21035 /* end confdefs.h.  */
21036 #include <ext/slist>
21037 #ifdef HAVE_NAMESPACES
21038 using namespace std;
21039 #endif
21040 int
21041 main ()
21042 {
21043 slist<int> s; return 0;
21044   ;
21045   return 0;
21046 }
21047 _ACEOF
21048 rm -f conftest.$ac_objext
21049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21050   (eval $ac_compile) 2>&5
21051   ac_status=$?
21052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053   (exit $ac_status); } &&
21054          { ac_try='test -s conftest.$ac_objext'
21055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056   (eval $ac_try) 2>&5
21057   ac_status=$?
21058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059   (exit $ac_status); }; }; then
21060   ac_cv_cxx_have_ext_slist=std
21061 else
21062   echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21064
21065 ac_cv_cxx_have_ext_slist=no
21066 fi
21067 rm -f conftest.$ac_objext conftest.$ac_ext
21068   cat >conftest.$ac_ext <<_ACEOF
21069 #line $LINENO "configure"
21070 /* confdefs.h.  */
21071 _ACEOF
21072 cat confdefs.h >>conftest.$ac_ext
21073 cat >>conftest.$ac_ext <<_ACEOF
21074 /* end confdefs.h.  */
21075 #include <ext/slist>
21076 #ifdef HAVE_NAMESPACES
21077 using namespace __gnu_cxx;
21078 #endif
21079 int
21080 main ()
21081 {
21082 slist<int> s; return 0;
21083   ;
21084   return 0;
21085 }
21086 _ACEOF
21087 rm -f conftest.$ac_objext
21088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21089   (eval $ac_compile) 2>&5
21090   ac_status=$?
21091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092   (exit $ac_status); } &&
21093          { ac_try='test -s conftest.$ac_objext'
21094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095   (eval $ac_try) 2>&5
21096   ac_status=$?
21097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098   (exit $ac_status); }; }; then
21099   ac_cv_cxx_have_ext_slist=gnu
21100 else
21101   echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21103
21104 ac_cv_cxx_have_ext_slist=no
21105 fi
21106 rm -f conftest.$ac_objext conftest.$ac_ext
21107
21108   ac_ext=c
21109 ac_cpp='$CPP $CPPFLAGS'
21110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21113
21114
21115 fi
21116 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21117 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21118 if test "$ac_cv_cxx_have_ext_slist" = std; then
21119
21120 cat >>confdefs.h <<\_ACEOF
21121 #define HAVE_EXT_SLIST std
21122 _ACEOF
21123
21124 fi
21125 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21126
21127 cat >>confdefs.h <<\_ACEOF
21128 #define HAVE_EXT_SLIST gnu
21129 _ACEOF
21130
21131 fi
21132
21133 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21134 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21135 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21136   echo $ECHO_N "(cached) $ECHO_C" >&6
21137 else
21138
21139
21140
21141   ac_ext=cc
21142 ac_cpp='$CXXCPP $CPPFLAGS'
21143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21146
21147   cat >conftest.$ac_ext <<_ACEOF
21148 #line $LINENO "configure"
21149 /* confdefs.h.  */
21150 _ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h.  */
21154 #include <iterator>
21155 #ifdef HAVE_NAMESPACES
21156 using namespace std;
21157 #endif
21158 int
21159 main ()
21160 {
21161 iterator<int,int,int> t; return 0;
21162   ;
21163   return 0;
21164 }
21165 _ACEOF
21166 rm -f conftest.$ac_objext
21167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21168   (eval $ac_compile) 2>&5
21169   ac_status=$?
21170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171   (exit $ac_status); } &&
21172          { ac_try='test -s conftest.$ac_objext'
21173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21174   (eval $ac_try) 2>&5
21175   ac_status=$?
21176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177   (exit $ac_status); }; }; then
21178   ac_cv_cxx_have_std_iterator=yes
21179 else
21180   echo "$as_me: failed program was:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21182
21183 ac_cv_cxx_have_std_iterator=no
21184 fi
21185 rm -f conftest.$ac_objext conftest.$ac_ext
21186   ac_ext=c
21187 ac_cpp='$CPP $CPPFLAGS'
21188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21191
21192
21193 fi
21194 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21195 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21196 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21197
21198 cat >>confdefs.h <<\_ACEOF
21199 #define HAVE_STD_ITERATOR
21200 _ACEOF
21201
21202 fi
21203
21204 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21205 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21206 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21207   echo $ECHO_N "(cached) $ECHO_C" >&6
21208 else
21209
21210
21211
21212   ac_ext=cc
21213 ac_cpp='$CXXCPP $CPPFLAGS'
21214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21217
21218   cat >conftest.$ac_ext <<_ACEOF
21219 #line $LINENO "configure"
21220 /* confdefs.h.  */
21221 _ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h.  */
21225 #include <iterator>
21226 #ifdef HAVE_NAMESPACES
21227 using namespace std;
21228 #endif
21229 int
21230 main ()
21231 {
21232 bidirectional_iterator<int,int> t; return 0;
21233   ;
21234   return 0;
21235 }
21236 _ACEOF
21237 rm -f conftest.$ac_objext
21238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21239   (eval $ac_compile) 2>&5
21240   ac_status=$?
21241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242   (exit $ac_status); } &&
21243          { ac_try='test -s conftest.$ac_objext'
21244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245   (eval $ac_try) 2>&5
21246   ac_status=$?
21247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248   (exit $ac_status); }; }; then
21249   ac_cv_cxx_have_bi_iterator=yes
21250 else
21251   echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21253
21254 ac_cv_cxx_have_bi_iterator=no
21255 fi
21256 rm -f conftest.$ac_objext conftest.$ac_ext
21257   ac_ext=c
21258 ac_cpp='$CPP $CPPFLAGS'
21259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21262
21263
21264 fi
21265 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21266 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21267 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21268
21269 cat >>confdefs.h <<\_ACEOF
21270 #define HAVE_BI_ITERATOR
21271 _ACEOF
21272
21273 fi
21274
21275 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21276 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21277 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21278   echo $ECHO_N "(cached) $ECHO_C" >&6
21279 else
21280
21281
21282
21283   ac_ext=cc
21284 ac_cpp='$CXXCPP $CPPFLAGS'
21285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21288
21289   cat >conftest.$ac_ext <<_ACEOF
21290 #line $LINENO "configure"
21291 /* confdefs.h.  */
21292 _ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h.  */
21296 #include <iterator>
21297 #ifdef HAVE_NAMESPACES
21298 using namespace std;
21299 #endif
21300 int
21301 main ()
21302 {
21303 forward_iterator<int,int> t; return 0;
21304   ;
21305   return 0;
21306 }
21307 _ACEOF
21308 rm -f conftest.$ac_objext
21309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21310   (eval $ac_compile) 2>&5
21311   ac_status=$?
21312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313   (exit $ac_status); } &&
21314          { ac_try='test -s conftest.$ac_objext'
21315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316   (eval $ac_try) 2>&5
21317   ac_status=$?
21318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319   (exit $ac_status); }; }; then
21320   ac_cv_cxx_have_fwd_iterator=yes
21321 else
21322   echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21324
21325 ac_cv_cxx_have_fwd_iterator=no
21326 fi
21327 rm -f conftest.$ac_objext conftest.$ac_ext
21328   ac_ext=c
21329 ac_cpp='$CPP $CPPFLAGS'
21330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21333
21334
21335 fi
21336 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21337 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21338 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21339
21340 cat >>confdefs.h <<\_ACEOF
21341 #define HAVE_FWD_ITERATOR
21342 _ACEOF
21343
21344 fi
21345
21346
21347 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21348 # for constant arguments.  Useless!
21349 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21350 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21351 if test "${ac_cv_working_alloca_h+set}" = set; then
21352   echo $ECHO_N "(cached) $ECHO_C" >&6
21353 else
21354   cat >conftest.$ac_ext <<_ACEOF
21355 #line $LINENO "configure"
21356 /* confdefs.h.  */
21357 _ACEOF
21358 cat confdefs.h >>conftest.$ac_ext
21359 cat >>conftest.$ac_ext <<_ACEOF
21360 /* end confdefs.h.  */
21361 #include <alloca.h>
21362 int
21363 main ()
21364 {
21365 char *p = (char *) alloca (2 * sizeof (int));
21366   ;
21367   return 0;
21368 }
21369 _ACEOF
21370 rm -f conftest.$ac_objext conftest$ac_exeext
21371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21372   (eval $ac_link) 2>&5
21373   ac_status=$?
21374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375   (exit $ac_status); } &&
21376          { ac_try='test -s conftest$ac_exeext'
21377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378   (eval $ac_try) 2>&5
21379   ac_status=$?
21380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381   (exit $ac_status); }; }; then
21382   ac_cv_working_alloca_h=yes
21383 else
21384   echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21386
21387 ac_cv_working_alloca_h=no
21388 fi
21389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21390 fi
21391 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21392 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21393 if test $ac_cv_working_alloca_h = yes; then
21394
21395 cat >>confdefs.h <<\_ACEOF
21396 #define HAVE_ALLOCA_H 1
21397 _ACEOF
21398
21399 fi
21400
21401 echo "$as_me:$LINENO: checking for alloca" >&5
21402 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21403 if test "${ac_cv_func_alloca_works+set}" = set; then
21404   echo $ECHO_N "(cached) $ECHO_C" >&6
21405 else
21406   cat >conftest.$ac_ext <<_ACEOF
21407 #line $LINENO "configure"
21408 /* confdefs.h.  */
21409 _ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h.  */
21413 #ifdef __GNUC__
21414 # define alloca __builtin_alloca
21415 #else
21416 # ifdef _MSC_VER
21417 #  include <malloc.h>
21418 #  define alloca _alloca
21419 # else
21420 #  if HAVE_ALLOCA_H
21421 #   include <alloca.h>
21422 #  else
21423 #   ifdef _AIX
21424  #pragma alloca
21425 #   else
21426 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21427 char *alloca ();
21428 #    endif
21429 #   endif
21430 #  endif
21431 # endif
21432 #endif
21433
21434 int
21435 main ()
21436 {
21437 char *p = (char *) alloca (1);
21438   ;
21439   return 0;
21440 }
21441 _ACEOF
21442 rm -f conftest.$ac_objext conftest$ac_exeext
21443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21444   (eval $ac_link) 2>&5
21445   ac_status=$?
21446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447   (exit $ac_status); } &&
21448          { ac_try='test -s conftest$ac_exeext'
21449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450   (eval $ac_try) 2>&5
21451   ac_status=$?
21452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453   (exit $ac_status); }; }; then
21454   ac_cv_func_alloca_works=yes
21455 else
21456   echo "$as_me: failed program was:" >&5
21457 sed 's/^/| /' conftest.$ac_ext >&5
21458
21459 ac_cv_func_alloca_works=no
21460 fi
21461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21462 fi
21463 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21464 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21465
21466 if test $ac_cv_func_alloca_works = yes; then
21467
21468 cat >>confdefs.h <<\_ACEOF
21469 #define HAVE_ALLOCA 1
21470 _ACEOF
21471
21472 else
21473   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21474 # that cause trouble.  Some versions do not even contain alloca or
21475 # contain a buggy version.  If you still want to use their alloca,
21476 # use ar to extract alloca.o from them instead of compiling alloca.c.
21477
21478 ALLOCA=alloca.$ac_objext
21479
21480 cat >>confdefs.h <<\_ACEOF
21481 #define C_ALLOCA 1
21482 _ACEOF
21483
21484
21485 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21486 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21487 if test "${ac_cv_os_cray+set}" = set; then
21488   echo $ECHO_N "(cached) $ECHO_C" >&6
21489 else
21490   cat >conftest.$ac_ext <<_ACEOF
21491 #line $LINENO "configure"
21492 /* confdefs.h.  */
21493 _ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h.  */
21497 #if defined(CRAY) && ! defined(CRAY2)
21498 webecray
21499 #else
21500 wenotbecray
21501 #endif
21502
21503 _ACEOF
21504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21505   $EGREP "webecray" >/dev/null 2>&1; then
21506   ac_cv_os_cray=yes
21507 else
21508   ac_cv_os_cray=no
21509 fi
21510 rm -f conftest*
21511
21512 fi
21513 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21514 echo "${ECHO_T}$ac_cv_os_cray" >&6
21515 if test $ac_cv_os_cray = yes; then
21516   for ac_func in _getb67 GETB67 getb67; do
21517     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21518 echo "$as_me:$LINENO: checking for $ac_func" >&5
21519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21520 if eval "test \"\${$as_ac_var+set}\" = set"; then
21521   echo $ECHO_N "(cached) $ECHO_C" >&6
21522 else
21523   cat >conftest.$ac_ext <<_ACEOF
21524 #line $LINENO "configure"
21525 /* confdefs.h.  */
21526 _ACEOF
21527 cat confdefs.h >>conftest.$ac_ext
21528 cat >>conftest.$ac_ext <<_ACEOF
21529 /* end confdefs.h.  */
21530 /* System header to define __stub macros and hopefully few prototypes,
21531     which can conflict with char $ac_func (); below.
21532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21533     <limits.h> exists even on freestanding compilers.  */
21534 #ifdef __STDC__
21535 # include <limits.h>
21536 #else
21537 # include <assert.h>
21538 #endif
21539 /* Override any gcc2 internal prototype to avoid an error.  */
21540 #ifdef __cplusplus
21541 extern "C"
21542 {
21543 #endif
21544 /* We use char because int might match the return type of a gcc2
21545    builtin and then its argument prototype would still apply.  */
21546 char $ac_func ();
21547 /* The GNU C library defines this for functions which it implements
21548     to always fail with ENOSYS.  Some functions are actually named
21549     something starting with __ and the normal name is an alias.  */
21550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21551 choke me
21552 #else
21553 char (*f) () = $ac_func;
21554 #endif
21555 #ifdef __cplusplus
21556 }
21557 #endif
21558
21559 int
21560 main ()
21561 {
21562 return f != $ac_func;
21563   ;
21564   return 0;
21565 }
21566 _ACEOF
21567 rm -f conftest.$ac_objext conftest$ac_exeext
21568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21569   (eval $ac_link) 2>&5
21570   ac_status=$?
21571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572   (exit $ac_status); } &&
21573          { ac_try='test -s conftest$ac_exeext'
21574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575   (eval $ac_try) 2>&5
21576   ac_status=$?
21577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578   (exit $ac_status); }; }; then
21579   eval "$as_ac_var=yes"
21580 else
21581   echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21583
21584 eval "$as_ac_var=no"
21585 fi
21586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21587 fi
21588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21589 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21590 if test `eval echo '${'$as_ac_var'}'` = yes; then
21591
21592 cat >>confdefs.h <<_ACEOF
21593 #define CRAY_STACKSEG_END $ac_func
21594 _ACEOF
21595
21596     break
21597 fi
21598
21599   done
21600 fi
21601
21602 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21603 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21604 if test "${ac_cv_c_stack_direction+set}" = set; then
21605   echo $ECHO_N "(cached) $ECHO_C" >&6
21606 else
21607   if test "$cross_compiling" = yes; then
21608   ac_cv_c_stack_direction=0
21609 else
21610   cat >conftest.$ac_ext <<_ACEOF
21611 #line $LINENO "configure"
21612 /* confdefs.h.  */
21613 _ACEOF
21614 cat confdefs.h >>conftest.$ac_ext
21615 cat >>conftest.$ac_ext <<_ACEOF
21616 /* end confdefs.h.  */
21617 int
21618 find_stack_direction ()
21619 {
21620   static char *addr = 0;
21621   auto char dummy;
21622   if (addr == 0)
21623     {
21624       addr = &dummy;
21625       return find_stack_direction ();
21626     }
21627   else
21628     return (&dummy > addr) ? 1 : -1;
21629 }
21630
21631 int
21632 main ()
21633 {
21634   exit (find_stack_direction () < 0);
21635 }
21636 _ACEOF
21637 rm -f conftest$ac_exeext
21638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21639   (eval $ac_link) 2>&5
21640   ac_status=$?
21641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644   (eval $ac_try) 2>&5
21645   ac_status=$?
21646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647   (exit $ac_status); }; }; then
21648   ac_cv_c_stack_direction=1
21649 else
21650   echo "$as_me: program exited with status $ac_status" >&5
21651 echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21653
21654 ( exit $ac_status )
21655 ac_cv_c_stack_direction=-1
21656 fi
21657 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21658 fi
21659 fi
21660 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21661 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21662
21663 cat >>confdefs.h <<_ACEOF
21664 #define STACK_DIRECTION $ac_cv_c_stack_direction
21665 _ACEOF
21666
21667
21668 fi
21669
21670 if test $ac_cv_c_compiler_gnu = yes; then
21671     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21672 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21673 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21674   echo $ECHO_N "(cached) $ECHO_C" >&6
21675 else
21676     ac_pattern="Autoconf.*'x'"
21677   cat >conftest.$ac_ext <<_ACEOF
21678 #line $LINENO "configure"
21679 /* confdefs.h.  */
21680 _ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h.  */
21684 #include <sgtty.h>
21685 Autoconf TIOCGETP
21686 _ACEOF
21687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21688   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21689   ac_cv_prog_gcc_traditional=yes
21690 else
21691   ac_cv_prog_gcc_traditional=no
21692 fi
21693 rm -f conftest*
21694
21695
21696   if test $ac_cv_prog_gcc_traditional = no; then
21697     cat >conftest.$ac_ext <<_ACEOF
21698 #line $LINENO "configure"
21699 /* confdefs.h.  */
21700 _ACEOF
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h.  */
21704 #include <termio.h>
21705 Autoconf TCGETA
21706 _ACEOF
21707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21708   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21709   ac_cv_prog_gcc_traditional=yes
21710 fi
21711 rm -f conftest*
21712
21713   fi
21714 fi
21715 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21716 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21717   if test $ac_cv_prog_gcc_traditional = yes; then
21718     CC="$CC -traditional"
21719   fi
21720 fi
21721
21722 echo "$as_me:$LINENO: checking for working memcmp" >&5
21723 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21724 if test "${ac_cv_func_memcmp_working+set}" = set; then
21725   echo $ECHO_N "(cached) $ECHO_C" >&6
21726 else
21727   if test "$cross_compiling" = yes; then
21728   ac_cv_func_memcmp_working=no
21729 else
21730   cat >conftest.$ac_ext <<_ACEOF
21731 #line $LINENO "configure"
21732 /* confdefs.h.  */
21733 _ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h.  */
21737
21738 int
21739 main ()
21740 {
21741
21742   /* Some versions of memcmp are not 8-bit clean.  */
21743   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21744   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21745     exit (1);
21746
21747   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21748      or more and with at least one buffer not starting on a 4-byte boundary.
21749      William Lewis provided this test program.   */
21750   {
21751     char foo[21];
21752     char bar[21];
21753     int i;
21754     for (i = 0; i < 4; i++)
21755       {
21756         char *a = foo + i;
21757         char *b = bar + i;
21758         strcpy (a, "--------01111111");
21759         strcpy (b, "--------10000000");
21760         if (memcmp (a, b, 16) >= 0)
21761           exit (1);
21762       }
21763     exit (0);
21764   }
21765
21766   ;
21767   return 0;
21768 }
21769 _ACEOF
21770 rm -f conftest$ac_exeext
21771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21772   (eval $ac_link) 2>&5
21773   ac_status=$?
21774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21777   (eval $ac_try) 2>&5
21778   ac_status=$?
21779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780   (exit $ac_status); }; }; then
21781   ac_cv_func_memcmp_working=yes
21782 else
21783   echo "$as_me: program exited with status $ac_status" >&5
21784 echo "$as_me: failed program was:" >&5
21785 sed 's/^/| /' conftest.$ac_ext >&5
21786
21787 ( exit $ac_status )
21788 ac_cv_func_memcmp_working=no
21789 fi
21790 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21791 fi
21792 fi
21793 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21794 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21795 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21796
21797
21798
21799 for ac_header in stdlib.h unistd.h
21800 do
21801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21803   echo "$as_me:$LINENO: checking for $ac_header" >&5
21804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21806   echo $ECHO_N "(cached) $ECHO_C" >&6
21807 fi
21808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21810 else
21811   # Is the header compilable?
21812 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21814 cat >conftest.$ac_ext <<_ACEOF
21815 #line $LINENO "configure"
21816 /* confdefs.h.  */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h.  */
21821 $ac_includes_default
21822 #include <$ac_header>
21823 _ACEOF
21824 rm -f conftest.$ac_objext
21825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21826   (eval $ac_compile) 2>&5
21827   ac_status=$?
21828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829   (exit $ac_status); } &&
21830          { ac_try='test -s conftest.$ac_objext'
21831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21832   (eval $ac_try) 2>&5
21833   ac_status=$?
21834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835   (exit $ac_status); }; }; then
21836   ac_header_compiler=yes
21837 else
21838   echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.$ac_ext >&5
21840
21841 ac_header_compiler=no
21842 fi
21843 rm -f conftest.$ac_objext conftest.$ac_ext
21844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21845 echo "${ECHO_T}$ac_header_compiler" >&6
21846
21847 # Is the header present?
21848 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21850 cat >conftest.$ac_ext <<_ACEOF
21851 #line $LINENO "configure"
21852 /* confdefs.h.  */
21853 _ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h.  */
21857 #include <$ac_header>
21858 _ACEOF
21859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21860   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21861   ac_status=$?
21862   grep -v '^ *+' conftest.er1 >conftest.err
21863   rm -f conftest.er1
21864   cat conftest.err >&5
21865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866   (exit $ac_status); } >/dev/null; then
21867   if test -s conftest.err; then
21868     ac_cpp_err=$ac_c_preproc_warn_flag
21869   else
21870     ac_cpp_err=
21871   fi
21872 else
21873   ac_cpp_err=yes
21874 fi
21875 if test -z "$ac_cpp_err"; then
21876   ac_header_preproc=yes
21877 else
21878   echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21880
21881   ac_header_preproc=no
21882 fi
21883 rm -f conftest.err conftest.$ac_ext
21884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21885 echo "${ECHO_T}$ac_header_preproc" >&6
21886
21887 # So?  What about this header?
21888 case $ac_header_compiler:$ac_header_preproc in
21889   yes:no )
21890     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21894     (
21895       cat <<\_ASBOX
21896 ## ------------------------------------ ##
21897 ## Report this to bug-autoconf@gnu.org. ##
21898 ## ------------------------------------ ##
21899 _ASBOX
21900     ) |
21901       sed "s/^/$as_me: WARNING:     /" >&2
21902     ;;
21903   no:yes )
21904     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21906     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21910     (
21911       cat <<\_ASBOX
21912 ## ------------------------------------ ##
21913 ## Report this to bug-autoconf@gnu.org. ##
21914 ## ------------------------------------ ##
21915 _ASBOX
21916     ) |
21917       sed "s/^/$as_me: WARNING:     /" >&2
21918     ;;
21919 esac
21920 echo "$as_me:$LINENO: checking for $ac_header" >&5
21921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21923   echo $ECHO_N "(cached) $ECHO_C" >&6
21924 else
21925   eval "$as_ac_Header=$ac_header_preproc"
21926 fi
21927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21929
21930 fi
21931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21932   cat >>confdefs.h <<_ACEOF
21933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21934 _ACEOF
21935
21936 fi
21937
21938 done
21939
21940
21941 for ac_func in getpagesize
21942 do
21943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21944 echo "$as_me:$LINENO: checking for $ac_func" >&5
21945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21946 if eval "test \"\${$as_ac_var+set}\" = set"; then
21947   echo $ECHO_N "(cached) $ECHO_C" >&6
21948 else
21949   cat >conftest.$ac_ext <<_ACEOF
21950 #line $LINENO "configure"
21951 /* confdefs.h.  */
21952 _ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h.  */
21956 /* System header to define __stub macros and hopefully few prototypes,
21957     which can conflict with char $ac_func (); below.
21958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21959     <limits.h> exists even on freestanding compilers.  */
21960 #ifdef __STDC__
21961 # include <limits.h>
21962 #else
21963 # include <assert.h>
21964 #endif
21965 /* Override any gcc2 internal prototype to avoid an error.  */
21966 #ifdef __cplusplus
21967 extern "C"
21968 {
21969 #endif
21970 /* We use char because int might match the return type of a gcc2
21971    builtin and then its argument prototype would still apply.  */
21972 char $ac_func ();
21973 /* The GNU C library defines this for functions which it implements
21974     to always fail with ENOSYS.  Some functions are actually named
21975     something starting with __ and the normal name is an alias.  */
21976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21977 choke me
21978 #else
21979 char (*f) () = $ac_func;
21980 #endif
21981 #ifdef __cplusplus
21982 }
21983 #endif
21984
21985 int
21986 main ()
21987 {
21988 return f != $ac_func;
21989   ;
21990   return 0;
21991 }
21992 _ACEOF
21993 rm -f conftest.$ac_objext conftest$ac_exeext
21994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21995   (eval $ac_link) 2>&5
21996   ac_status=$?
21997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998   (exit $ac_status); } &&
21999          { ac_try='test -s conftest$ac_exeext'
22000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001   (eval $ac_try) 2>&5
22002   ac_status=$?
22003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004   (exit $ac_status); }; }; then
22005   eval "$as_ac_var=yes"
22006 else
22007   echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22009
22010 eval "$as_ac_var=no"
22011 fi
22012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22013 fi
22014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22016 if test `eval echo '${'$as_ac_var'}'` = yes; then
22017   cat >>confdefs.h <<_ACEOF
22018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22019 _ACEOF
22020
22021 fi
22022 done
22023
22024 echo "$as_me:$LINENO: checking for working mmap" >&5
22025 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22026 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22027   echo $ECHO_N "(cached) $ECHO_C" >&6
22028 else
22029   if test "$cross_compiling" = yes; then
22030   ac_cv_func_mmap_fixed_mapped=no
22031 else
22032   cat >conftest.$ac_ext <<_ACEOF
22033 #line $LINENO "configure"
22034 /* confdefs.h.  */
22035 _ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h.  */
22039 $ac_includes_default
22040 /* malloc might have been renamed as rpl_malloc. */
22041 #undef malloc
22042
22043 /* Thanks to Mike Haertel and Jim Avera for this test.
22044    Here is a matrix of mmap possibilities:
22045         mmap private not fixed
22046         mmap private fixed at somewhere currently unmapped
22047         mmap private fixed at somewhere already mapped
22048         mmap shared not fixed
22049         mmap shared fixed at somewhere currently unmapped
22050         mmap shared fixed at somewhere already mapped
22051    For private mappings, we should verify that changes cannot be read()
22052    back from the file, nor mmap's back from the file at a different
22053    address.  (There have been systems where private was not correctly
22054    implemented like the infamous i386 svr4.0, and systems where the
22055    VM page cache was not coherent with the file system buffer cache
22056    like early versions of FreeBSD and possibly contemporary NetBSD.)
22057    For shared mappings, we should conversely verify that changes get
22058    propagated back to all the places they're supposed to be.
22059
22060    Grep wants private fixed already mapped.
22061    The main things grep needs to know about mmap are:
22062    * does it exist and is it safe to write into the mmap'd area
22063    * how to use it (BSD variants)  */
22064
22065 #include <fcntl.h>
22066 #include <sys/mman.h>
22067
22068 #if !STDC_HEADERS && !HAVE_STDLIB_H
22069 char *malloc ();
22070 #endif
22071
22072 /* This mess was copied from the GNU getpagesize.h.  */
22073 #if !HAVE_GETPAGESIZE
22074 /* Assume that all systems that can run configure have sys/param.h.  */
22075 # if !HAVE_SYS_PARAM_H
22076 #  define HAVE_SYS_PARAM_H 1
22077 # endif
22078
22079 # ifdef _SC_PAGESIZE
22080 #  define getpagesize() sysconf(_SC_PAGESIZE)
22081 # else /* no _SC_PAGESIZE */
22082 #  if HAVE_SYS_PARAM_H
22083 #   include <sys/param.h>
22084 #   ifdef EXEC_PAGESIZE
22085 #    define getpagesize() EXEC_PAGESIZE
22086 #   else /* no EXEC_PAGESIZE */
22087 #    ifdef NBPG
22088 #     define getpagesize() NBPG * CLSIZE
22089 #     ifndef CLSIZE
22090 #      define CLSIZE 1
22091 #     endif /* no CLSIZE */
22092 #    else /* no NBPG */
22093 #     ifdef NBPC
22094 #      define getpagesize() NBPC
22095 #     else /* no NBPC */
22096 #      ifdef PAGESIZE
22097 #       define getpagesize() PAGESIZE
22098 #      endif /* PAGESIZE */
22099 #     endif /* no NBPC */
22100 #    endif /* no NBPG */
22101 #   endif /* no EXEC_PAGESIZE */
22102 #  else /* no HAVE_SYS_PARAM_H */
22103 #   define getpagesize() 8192   /* punt totally */
22104 #  endif /* no HAVE_SYS_PARAM_H */
22105 # endif /* no _SC_PAGESIZE */
22106
22107 #endif /* no HAVE_GETPAGESIZE */
22108
22109 int
22110 main ()
22111 {
22112   char *data, *data2, *data3;
22113   int i, pagesize;
22114   int fd;
22115
22116   pagesize = getpagesize ();
22117
22118   /* First, make a file with some known garbage in it. */
22119   data = (char *) malloc (pagesize);
22120   if (!data)
22121     exit (1);
22122   for (i = 0; i < pagesize; ++i)
22123     *(data + i) = rand ();
22124   umask (0);
22125   fd = creat ("conftest.mmap", 0600);
22126   if (fd < 0)
22127     exit (1);
22128   if (write (fd, data, pagesize) != pagesize)
22129     exit (1);
22130   close (fd);
22131
22132   /* Next, try to mmap the file at a fixed address which already has
22133      something else allocated at it.  If we can, also make sure that
22134      we see the same garbage.  */
22135   fd = open ("conftest.mmap", O_RDWR);
22136   if (fd < 0)
22137     exit (1);
22138   data2 = (char *) malloc (2 * pagesize);
22139   if (!data2)
22140     exit (1);
22141   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22142   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22143                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22144     exit (1);
22145   for (i = 0; i < pagesize; ++i)
22146     if (*(data + i) != *(data2 + i))
22147       exit (1);
22148
22149   /* Finally, make sure that changes to the mapped area do not
22150      percolate back to the file as seen by read().  (This is a bug on
22151      some variants of i386 svr4.0.)  */
22152   for (i = 0; i < pagesize; ++i)
22153     *(data2 + i) = *(data2 + i) + 1;
22154   data3 = (char *) malloc (pagesize);
22155   if (!data3)
22156     exit (1);
22157   if (read (fd, data3, pagesize) != pagesize)
22158     exit (1);
22159   for (i = 0; i < pagesize; ++i)
22160     if (*(data + i) != *(data3 + i))
22161       exit (1);
22162   close (fd);
22163   exit (0);
22164 }
22165 _ACEOF
22166 rm -f conftest$ac_exeext
22167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22168   (eval $ac_link) 2>&5
22169   ac_status=$?
22170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22173   (eval $ac_try) 2>&5
22174   ac_status=$?
22175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176   (exit $ac_status); }; }; then
22177   ac_cv_func_mmap_fixed_mapped=yes
22178 else
22179   echo "$as_me: program exited with status $ac_status" >&5
22180 echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22182
22183 ( exit $ac_status )
22184 ac_cv_func_mmap_fixed_mapped=no
22185 fi
22186 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22187 fi
22188 fi
22189 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22190 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22191 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22192
22193 cat >>confdefs.h <<\_ACEOF
22194 #define HAVE_MMAP 1
22195 _ACEOF
22196
22197 fi
22198 rm -f conftest.mmap
22199
22200 echo "$as_me:$LINENO: checking for mmap of files" >&5
22201 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22202 if test "${ac_cv_func_mmap_file+set}" = set; then
22203   echo $ECHO_N "(cached) $ECHO_C" >&6
22204 else
22205
22206
22207   ac_ext=c
22208 ac_cpp='$CPP $CPPFLAGS'
22209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22212
22213   if test "$cross_compiling" = yes; then
22214   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22215 See \`config.log' for more details." >&5
22216 echo "$as_me: error: cannot run test program while cross compiling
22217 See \`config.log' for more details." >&2;}
22218    { (exit 1); exit 1; }; }
22219 else
22220   cat >conftest.$ac_ext <<_ACEOF
22221 #line $LINENO "configure"
22222 /* confdefs.h.  */
22223 _ACEOF
22224 cat confdefs.h >>conftest.$ac_ext
22225 cat >>conftest.$ac_ext <<_ACEOF
22226 /* end confdefs.h.  */
22227
22228 #ifdef HAVE_SYS_MMAN_H
22229 #include <sys/mman.h>
22230 #endif
22231
22232 #ifdef HAVE_SYS_TYPES_H
22233 #include <sys/types.h>
22234 #endif
22235
22236 #ifdef HAVE_FCNTL_H
22237 #include <fcntl.h>
22238 #endif
22239
22240   int fd;
22241   int main () {
22242   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22243 _ACEOF
22244 rm -f conftest$ac_exeext
22245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22246   (eval $ac_link) 2>&5
22247   ac_status=$?
22248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22251   (eval $ac_try) 2>&5
22252   ac_status=$?
22253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254   (exit $ac_status); }; }; then
22255   ac_cv_func_mmap_file=yes
22256 else
22257   echo "$as_me: program exited with status $ac_status" >&5
22258 echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22260
22261 ( exit $ac_status )
22262 ac_cv_func_mmap_file=no
22263 fi
22264 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22265 fi
22266   ac_ext=c
22267 ac_cpp='$CPP $CPPFLAGS'
22268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22271
22272
22273 fi
22274 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22275 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22276 if test "$ac_cv_func_mmap_file" = yes; then
22277    cat >>confdefs.h <<\_ACEOF
22278 #define HAVE_MMAP_FILE 1
22279 _ACEOF
22280
22281    MMAP_FILE=yes
22282
22283 fi
22284
22285 if test ${ac_cv_func_mmap_file} = "no"
22286 then
22287         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22288 echo "$as_me: error: mmap() of files required but not found" >&2;}
22289    { (exit 1); exit 1; }; }
22290 fi
22291 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22292 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22293 if test "${ac_cv_header_mmap_anon+set}" = set; then
22294   echo $ECHO_N "(cached) $ECHO_C" >&6
22295 else
22296
22297
22298   ac_ext=c
22299 ac_cpp='$CPP $CPPFLAGS'
22300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22303
22304   cat >conftest.$ac_ext <<_ACEOF
22305 #line $LINENO "configure"
22306 /* confdefs.h.  */
22307 _ACEOF
22308 cat confdefs.h >>conftest.$ac_ext
22309 cat >>conftest.$ac_ext <<_ACEOF
22310 /* end confdefs.h.  */
22311 #include <sys/mman.h>
22312   #include <unistd.h>
22313   #include <fcntl.h>
22314 int
22315 main ()
22316 {
22317 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22318   ;
22319   return 0;
22320 }
22321 _ACEOF
22322 rm -f conftest.$ac_objext
22323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22324   (eval $ac_compile) 2>&5
22325   ac_status=$?
22326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327   (exit $ac_status); } &&
22328          { ac_try='test -s conftest.$ac_objext'
22329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22330   (eval $ac_try) 2>&5
22331   ac_status=$?
22332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333   (exit $ac_status); }; }; then
22334   ac_cv_header_mmap_anon=yes
22335 else
22336   echo "$as_me: failed program was:" >&5
22337 sed 's/^/| /' conftest.$ac_ext >&5
22338
22339 ac_cv_header_mmap_anon=no
22340 fi
22341 rm -f conftest.$ac_objext conftest.$ac_ext
22342   ac_ext=c
22343 ac_cpp='$CPP $CPPFLAGS'
22344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22347
22348
22349 fi
22350 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22351 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22352 if test "$ac_cv_header_mmap_anon" = yes; then
22353    cat >>confdefs.h <<\_ACEOF
22354 #define HAVE_MMAP_ANONYMOUS 1
22355 _ACEOF
22356
22357 fi
22358
22359 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22360 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22361 if test "${ac_cv_type_signal+set}" = set; then
22362   echo $ECHO_N "(cached) $ECHO_C" >&6
22363 else
22364   cat >conftest.$ac_ext <<_ACEOF
22365 #line $LINENO "configure"
22366 /* confdefs.h.  */
22367 _ACEOF
22368 cat confdefs.h >>conftest.$ac_ext
22369 cat >>conftest.$ac_ext <<_ACEOF
22370 /* end confdefs.h.  */
22371 #include <sys/types.h>
22372 #include <signal.h>
22373 #ifdef signal
22374 # undef signal
22375 #endif
22376 #ifdef __cplusplus
22377 extern "C" void (*signal (int, void (*)(int)))(int);
22378 #else
22379 void (*signal ()) ();
22380 #endif
22381
22382 int
22383 main ()
22384 {
22385 int i;
22386   ;
22387   return 0;
22388 }
22389 _ACEOF
22390 rm -f conftest.$ac_objext
22391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22392   (eval $ac_compile) 2>&5
22393   ac_status=$?
22394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395   (exit $ac_status); } &&
22396          { ac_try='test -s conftest.$ac_objext'
22397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398   (eval $ac_try) 2>&5
22399   ac_status=$?
22400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401   (exit $ac_status); }; }; then
22402   ac_cv_type_signal=void
22403 else
22404   echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22406
22407 ac_cv_type_signal=int
22408 fi
22409 rm -f conftest.$ac_objext conftest.$ac_ext
22410 fi
22411 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22412 echo "${ECHO_T}$ac_cv_type_signal" >&6
22413
22414 cat >>confdefs.h <<_ACEOF
22415 #define RETSIGTYPE $ac_cv_type_signal
22416 _ACEOF
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
22431 do
22432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22433 echo "$as_me:$LINENO: checking for $ac_func" >&5
22434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22435 if eval "test \"\${$as_ac_var+set}\" = set"; then
22436   echo $ECHO_N "(cached) $ECHO_C" >&6
22437 else
22438   cat >conftest.$ac_ext <<_ACEOF
22439 #line $LINENO "configure"
22440 /* confdefs.h.  */
22441 _ACEOF
22442 cat confdefs.h >>conftest.$ac_ext
22443 cat >>conftest.$ac_ext <<_ACEOF
22444 /* end confdefs.h.  */
22445 /* System header to define __stub macros and hopefully few prototypes,
22446     which can conflict with char $ac_func (); below.
22447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22448     <limits.h> exists even on freestanding compilers.  */
22449 #ifdef __STDC__
22450 # include <limits.h>
22451 #else
22452 # include <assert.h>
22453 #endif
22454 /* Override any gcc2 internal prototype to avoid an error.  */
22455 #ifdef __cplusplus
22456 extern "C"
22457 {
22458 #endif
22459 /* We use char because int might match the return type of a gcc2
22460    builtin and then its argument prototype would still apply.  */
22461 char $ac_func ();
22462 /* The GNU C library defines this for functions which it implements
22463     to always fail with ENOSYS.  Some functions are actually named
22464     something starting with __ and the normal name is an alias.  */
22465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22466 choke me
22467 #else
22468 char (*f) () = $ac_func;
22469 #endif
22470 #ifdef __cplusplus
22471 }
22472 #endif
22473
22474 int
22475 main ()
22476 {
22477 return f != $ac_func;
22478   ;
22479   return 0;
22480 }
22481 _ACEOF
22482 rm -f conftest.$ac_objext conftest$ac_exeext
22483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22484   (eval $ac_link) 2>&5
22485   ac_status=$?
22486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487   (exit $ac_status); } &&
22488          { ac_try='test -s conftest$ac_exeext'
22489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22490   (eval $ac_try) 2>&5
22491   ac_status=$?
22492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493   (exit $ac_status); }; }; then
22494   eval "$as_ac_var=yes"
22495 else
22496   echo "$as_me: failed program was:" >&5
22497 sed 's/^/| /' conftest.$ac_ext >&5
22498
22499 eval "$as_ac_var=no"
22500 fi
22501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22502 fi
22503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22505 if test `eval echo '${'$as_ac_var'}'` = yes; then
22506   cat >>confdefs.h <<_ACEOF
22507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22508 _ACEOF
22509
22510 fi
22511 done
22512
22513
22514
22515 echo "$as_me:$LINENO: checking for mmap" >&5
22516 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22517 if test "${ac_cv_func_mmap+set}" = set; then
22518   echo $ECHO_N "(cached) $ECHO_C" >&6
22519 else
22520   cat >conftest.$ac_ext <<_ACEOF
22521 #line $LINENO "configure"
22522 /* confdefs.h.  */
22523 _ACEOF
22524 cat confdefs.h >>conftest.$ac_ext
22525 cat >>conftest.$ac_ext <<_ACEOF
22526 /* end confdefs.h.  */
22527 /* System header to define __stub macros and hopefully few prototypes,
22528     which can conflict with char mmap (); below.
22529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22530     <limits.h> exists even on freestanding compilers.  */
22531 #ifdef __STDC__
22532 # include <limits.h>
22533 #else
22534 # include <assert.h>
22535 #endif
22536 /* Override any gcc2 internal prototype to avoid an error.  */
22537 #ifdef __cplusplus
22538 extern "C"
22539 {
22540 #endif
22541 /* We use char because int might match the return type of a gcc2
22542    builtin and then its argument prototype would still apply.  */
22543 char mmap ();
22544 /* The GNU C library defines this for functions which it implements
22545     to always fail with ENOSYS.  Some functions are actually named
22546     something starting with __ and the normal name is an alias.  */
22547 #if defined (__stub_mmap) || defined (__stub___mmap)
22548 choke me
22549 #else
22550 char (*f) () = mmap;
22551 #endif
22552 #ifdef __cplusplus
22553 }
22554 #endif
22555
22556 int
22557 main ()
22558 {
22559 return f != mmap;
22560   ;
22561   return 0;
22562 }
22563 _ACEOF
22564 rm -f conftest.$ac_objext conftest$ac_exeext
22565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22566   (eval $ac_link) 2>&5
22567   ac_status=$?
22568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569   (exit $ac_status); } &&
22570          { ac_try='test -s conftest$ac_exeext'
22571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22572   (eval $ac_try) 2>&5
22573   ac_status=$?
22574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575   (exit $ac_status); }; }; then
22576   ac_cv_func_mmap=yes
22577 else
22578   echo "$as_me: failed program was:" >&5
22579 sed 's/^/| /' conftest.$ac_ext >&5
22580
22581 ac_cv_func_mmap=no
22582 fi
22583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22584 fi
22585 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22586 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22587 if test $ac_cv_func_mmap = yes; then
22588   :
22589 else
22590   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22591 echo "$as_me: error: Function mmap() required but not found" >&2;}
22592    { (exit 1); exit 1; }; }
22593 fi
22594
22595 echo "$as_me:$LINENO: checking for mprotect" >&5
22596 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22597 if test "${ac_cv_func_mprotect+set}" = set; then
22598   echo $ECHO_N "(cached) $ECHO_C" >&6
22599 else
22600   cat >conftest.$ac_ext <<_ACEOF
22601 #line $LINENO "configure"
22602 /* confdefs.h.  */
22603 _ACEOF
22604 cat confdefs.h >>conftest.$ac_ext
22605 cat >>conftest.$ac_ext <<_ACEOF
22606 /* end confdefs.h.  */
22607 /* System header to define __stub macros and hopefully few prototypes,
22608     which can conflict with char mprotect (); below.
22609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22610     <limits.h> exists even on freestanding compilers.  */
22611 #ifdef __STDC__
22612 # include <limits.h>
22613 #else
22614 # include <assert.h>
22615 #endif
22616 /* Override any gcc2 internal prototype to avoid an error.  */
22617 #ifdef __cplusplus
22618 extern "C"
22619 {
22620 #endif
22621 /* We use char because int might match the return type of a gcc2
22622    builtin and then its argument prototype would still apply.  */
22623 char mprotect ();
22624 /* The GNU C library defines this for functions which it implements
22625     to always fail with ENOSYS.  Some functions are actually named
22626     something starting with __ and the normal name is an alias.  */
22627 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22628 choke me
22629 #else
22630 char (*f) () = mprotect;
22631 #endif
22632 #ifdef __cplusplus
22633 }
22634 #endif
22635
22636 int
22637 main ()
22638 {
22639 return f != mprotect;
22640   ;
22641   return 0;
22642 }
22643 _ACEOF
22644 rm -f conftest.$ac_objext conftest$ac_exeext
22645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22646   (eval $ac_link) 2>&5
22647   ac_status=$?
22648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649   (exit $ac_status); } &&
22650          { ac_try='test -s conftest$ac_exeext'
22651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22652   (eval $ac_try) 2>&5
22653   ac_status=$?
22654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655   (exit $ac_status); }; }; then
22656   ac_cv_func_mprotect=yes
22657 else
22658   echo "$as_me: failed program was:" >&5
22659 sed 's/^/| /' conftest.$ac_ext >&5
22660
22661 ac_cv_func_mprotect=no
22662 fi
22663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22664 fi
22665 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22666 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22667 if test $ac_cv_func_mprotect = yes; then
22668   :
22669 else
22670   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22671 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22672    { (exit 1); exit 1; }; }
22673 fi
22674
22675
22676
22677 # Check whether --enable-purify or --disable-purify was given.
22678 if test "${enable_purify+set}" = set; then
22679   enableval="$enable_purify"
22680
22681 else
22682   enableval="no"
22683 fi;
22684 if test ${enableval} = "no"
22685 then
22686         ENABLE_PURIFY=
22687
22688 else
22689         ENABLE_PURIFY=ENABLE_PURIFY=1
22690
22691 fi
22692
22693 # Check whether --enable-optimized or --disable-optimized was given.
22694 if test "${enable_optimized+set}" = set; then
22695   enableval="$enable_optimized"
22696
22697 else
22698   enableval=no
22699 fi;
22700 if test ${enableval} = "no"
22701 then
22702         ENABLE_OPTIMIZED=
22703
22704 else
22705         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22706
22707 fi
22708
22709 # Check whether --enable-spec or --disable-spec was given.
22710 if test "${enable_spec+set}" = set; then
22711   enableval="$enable_spec"
22712
22713 else
22714   enableval=no
22715 fi;
22716 if test ${enableval} = "no"
22717 then
22718         USE_SPEC=
22719
22720 else
22721         USE_SPEC=USE_SPEC=1
22722
22723 fi
22724
22725 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22726 if test "${enable_precompiled_bytecode+set}" = set; then
22727   enableval="$enable_precompiled_bytecode"
22728
22729 else
22730   enableval=no
22731 fi;
22732 if test ${enableval} = "no"
22733 then
22734         UPB=
22735
22736 else
22737         UPB=USE_PRECOMPILED_BYTECODE=1
22738
22739 fi
22740
22741
22742 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22743 if test "${enable_llc_diffs+set}" = set; then
22744   enableval="$enable_llc_diffs"
22745
22746 else
22747   enableval=yes
22748 fi;
22749 if test ${enableval} = "no"
22750 then
22751         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22752
22753 else
22754         DISABLE_LLC_DIFFS=
22755
22756 fi
22757
22758 # Check whether --enable-jit or --disable-jit was given.
22759 if test "${enable_jit+set}" = set; then
22760   enableval="$enable_jit"
22761
22762 else
22763   enableval=default
22764 fi;
22765
22766 if test ${enableval} = "no"
22767 then
22768         JIT=
22769
22770 else
22771         case $target in
22772                 *i*86*)
22773                         JIT=TARGET_HAS_JIT=1
22774
22775                         ;;
22776                 *sparc*)
22777                         JIT=TARGET_HAS_JIT=1
22778
22779                         ;;
22780                 *)
22781                         JIT=
22782
22783                         ;;
22784         esac
22785 fi
22786
22787
22788
22789 # Check whether --with-spec or --without-spec was given.
22790 if test "${with_spec+set}" = set; then
22791   withval="$with_spec"
22792   SPEC_ROOT=$withval
22793
22794 else
22795   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22796
22797 fi;
22798
22799
22800 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22801 if test "${with_llvmgccdir+set}" = set; then
22802   withval="$with_llvmgccdir"
22803   LLVMGCCDIR=$withval
22804
22805 fi;
22806
22807
22808 # Check whether --with-bcrepos or --without-bcrepos was given.
22809 if test "${with_bcrepos+set}" = set; then
22810   withval="$with_bcrepos"
22811   BCR=$withval
22812
22813 else
22814   BCR=/home/vadve/lattner/LLVMPrograms
22815
22816 fi;
22817
22818
22819 # Check whether --with-papi or --without-papi was given.
22820 if test "${with_papi+set}" = set; then
22821   withval="$with_papi"
22822   PAPIDIR=$withval
22823
22824 else
22825   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22826
22827 fi;
22828
22829
22830 # Check whether --with-purify or --without-purify was given.
22831 if test "${with_purify+set}" = set; then
22832   withval="$with_purify"
22833   PURIFY=$withval
22834
22835 fi;
22836
22837
22838           ac_config_files="$ac_config_files Makefile.config"
22839 cat >confcache <<\_ACEOF
22840 # This file is a shell script that caches the results of configure
22841 # tests run on this system so they can be shared between configure
22842 # scripts and configure runs, see configure's option --config-cache.
22843 # It is not useful on other systems.  If it contains results you don't
22844 # want to keep, you may remove or edit it.
22845 #
22846 # config.status only pays attention to the cache file if you give it
22847 # the --recheck option to rerun configure.
22848 #
22849 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22850 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22851 # following values.
22852
22853 _ACEOF
22854
22855 # The following way of writing the cache mishandles newlines in values,
22856 # but we know of no workaround that is simple, portable, and efficient.
22857 # So, don't put newlines in cache variables' values.
22858 # Ultrix sh set writes to stderr and can't be redirected directly,
22859 # and sets the high bit in the cache file unless we assign to the vars.
22860 {
22861   (set) 2>&1 |
22862     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22863     *ac_space=\ *)
22864       # `set' does not quote correctly, so add quotes (double-quote
22865       # substitution turns \\\\ into \\, and sed turns \\ into \).
22866       sed -n \
22867         "s/'/'\\\\''/g;
22868           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22869       ;;
22870     *)
22871       # `set' quotes correctly as required by POSIX, so do not add quotes.
22872       sed -n \
22873         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22874       ;;
22875     esac;
22876 } |
22877   sed '
22878      t clear
22879      : clear
22880      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22881      t end
22882      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22883      : end' >>confcache
22884 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22885   if test -w $cache_file; then
22886     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22887     cat confcache >$cache_file
22888   else
22889     echo "not updating unwritable cache $cache_file"
22890   fi
22891 fi
22892 rm -f confcache
22893
22894 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22895 # Let make expand exec_prefix.
22896 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22897
22898 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22899 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22900 # trailing colons and then remove the whole line if VPATH becomes empty
22901 # (actually we leave an empty line to preserve line numbers).
22902 if test "x$srcdir" = x.; then
22903   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22904 s/:*\$(srcdir):*/:/;
22905 s/:*\${srcdir}:*/:/;
22906 s/:*@srcdir@:*/:/;
22907 s/^\([^=]*=[    ]*\):*/\1/;
22908 s/:*$//;
22909 s/^[^=]*=[      ]*$//;
22910 }'
22911 fi
22912
22913 DEFS=-DHAVE_CONFIG_H
22914
22915 ac_libobjs=
22916 ac_ltlibobjs=
22917 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22918   # 1. Remove the extension, and $U if already installed.
22919   ac_i=`echo "$ac_i" |
22920          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22921   # 2. Add them.
22922   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22923   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22924 done
22925 LIBOBJS=$ac_libobjs
22926
22927 LTLIBOBJS=$ac_ltlibobjs
22928
22929
22930
22931 : ${CONFIG_STATUS=./config.status}
22932 ac_clean_files_save=$ac_clean_files
22933 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22934 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22935 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22936 cat >$CONFIG_STATUS <<_ACEOF
22937 #! $SHELL
22938 # Generated by $as_me.
22939 # Run this file to recreate the current configuration.
22940 # Compiler output produced by configure, useful for debugging
22941 # configure, is in config.log if it exists.
22942
22943 debug=false
22944 ac_cs_recheck=false
22945 ac_cs_silent=false
22946 SHELL=\${CONFIG_SHELL-$SHELL}
22947 _ACEOF
22948
22949 cat >>$CONFIG_STATUS <<\_ACEOF
22950 ## --------------------- ##
22951 ## M4sh Initialization.  ##
22952 ## --------------------- ##
22953
22954 # Be Bourne compatible
22955 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22956   emulate sh
22957   NULLCMD=:
22958   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22959   # is contrary to our usage.  Disable this feature.
22960   alias -g '${1+"$@"}'='"$@"'
22961 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22962   set -o posix
22963 fi
22964
22965 # Support unset when possible.
22966 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22967   as_unset=unset
22968 else
22969   as_unset=false
22970 fi
22971
22972
22973 # Work around bugs in pre-3.0 UWIN ksh.
22974 $as_unset ENV MAIL MAILPATH
22975 PS1='$ '
22976 PS2='> '
22977 PS4='+ '
22978
22979 # NLS nuisances.
22980 for as_var in \
22981   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22982   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22983   LC_TELEPHONE LC_TIME
22984 do
22985   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22986     eval $as_var=C; export $as_var
22987   else
22988     $as_unset $as_var
22989   fi
22990 done
22991
22992 # Required to use basename.
22993 if expr a : '\(a\)' >/dev/null 2>&1; then
22994   as_expr=expr
22995 else
22996   as_expr=false
22997 fi
22998
22999 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23000   as_basename=basename
23001 else
23002   as_basename=false
23003 fi
23004
23005
23006 # Name of the executable.
23007 as_me=`$as_basename "$0" ||
23008 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23009          X"$0" : 'X\(//\)$' \| \
23010          X"$0" : 'X\(/\)$' \| \
23011          .     : '\(.\)' 2>/dev/null ||
23012 echo X/"$0" |
23013     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23014           /^X\/\(\/\/\)$/{ s//\1/; q; }
23015           /^X\/\(\/\).*/{ s//\1/; q; }
23016           s/.*/./; q'`
23017
23018
23019 # PATH needs CR, and LINENO needs CR and PATH.
23020 # Avoid depending upon Character Ranges.
23021 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23022 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23023 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23024 as_cr_digits='0123456789'
23025 as_cr_alnum=$as_cr_Letters$as_cr_digits
23026
23027 # The user is always right.
23028 if test "${PATH_SEPARATOR+set}" != set; then
23029   echo "#! /bin/sh" >conf$$.sh
23030   echo  "exit 0"   >>conf$$.sh
23031   chmod +x conf$$.sh
23032   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23033     PATH_SEPARATOR=';'
23034   else
23035     PATH_SEPARATOR=:
23036   fi
23037   rm -f conf$$.sh
23038 fi
23039
23040
23041   as_lineno_1=$LINENO
23042   as_lineno_2=$LINENO
23043   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23044   test "x$as_lineno_1" != "x$as_lineno_2" &&
23045   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23046   # Find who we are.  Look in the path if we contain no path at all
23047   # relative or not.
23048   case $0 in
23049     *[\\/]* ) as_myself=$0 ;;
23050     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23051 for as_dir in $PATH
23052 do
23053   IFS=$as_save_IFS
23054   test -z "$as_dir" && as_dir=.
23055   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23056 done
23057
23058        ;;
23059   esac
23060   # We did not find ourselves, most probably we were run as `sh COMMAND'
23061   # in which case we are not to be found in the path.
23062   if test "x$as_myself" = x; then
23063     as_myself=$0
23064   fi
23065   if test ! -f "$as_myself"; then
23066     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23067 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23068    { (exit 1); exit 1; }; }
23069   fi
23070   case $CONFIG_SHELL in
23071   '')
23072     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23073 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23074 do
23075   IFS=$as_save_IFS
23076   test -z "$as_dir" && as_dir=.
23077   for as_base in sh bash ksh sh5; do
23078          case $as_dir in
23079          /*)
23080            if ("$as_dir/$as_base" -c '
23081   as_lineno_1=$LINENO
23082   as_lineno_2=$LINENO
23083   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23084   test "x$as_lineno_1" != "x$as_lineno_2" &&
23085   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23086              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23087              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23088              CONFIG_SHELL=$as_dir/$as_base
23089              export CONFIG_SHELL
23090              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23091            fi;;
23092          esac
23093        done
23094 done
23095 ;;
23096   esac
23097
23098   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23099   # uniformly replaced by the line number.  The first 'sed' inserts a
23100   # line-number line before each line; the second 'sed' does the real
23101   # work.  The second script uses 'N' to pair each line-number line
23102   # with the numbered line, and appends trailing '-' during
23103   # substitution so that $LINENO is not a special case at line end.
23104   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23105   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23106   sed '=' <$as_myself |
23107     sed '
23108       N
23109       s,$,-,
23110       : loop
23111       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23112       t loop
23113       s,-$,,
23114       s,^['$as_cr_digits']*\n,,
23115     ' >$as_me.lineno &&
23116   chmod +x $as_me.lineno ||
23117     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23118 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23119    { (exit 1); exit 1; }; }
23120
23121   # Don't try to exec as it changes $[0], causing all sort of problems
23122   # (the dirname of $[0] is not the place where we might find the
23123   # original and so on.  Autoconf is especially sensible to this).
23124   . ./$as_me.lineno
23125   # Exit status is that of the last command.
23126   exit
23127 }
23128
23129
23130 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23131   *c*,-n*) ECHO_N= ECHO_C='
23132 ' ECHO_T='      ' ;;
23133   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23134   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23135 esac
23136
23137 if expr a : '\(a\)' >/dev/null 2>&1; then
23138   as_expr=expr
23139 else
23140   as_expr=false
23141 fi
23142
23143 rm -f conf$$ conf$$.exe conf$$.file
23144 echo >conf$$.file
23145 if ln -s conf$$.file conf$$ 2>/dev/null; then
23146   # We could just check for DJGPP; but this test a) works b) is more generic
23147   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23148   if test -f conf$$.exe; then
23149     # Don't use ln at all; we don't have any links
23150     as_ln_s='cp -p'
23151   else
23152     as_ln_s='ln -s'
23153   fi
23154 elif ln conf$$.file conf$$ 2>/dev/null; then
23155   as_ln_s=ln
23156 else
23157   as_ln_s='cp -p'
23158 fi
23159 rm -f conf$$ conf$$.exe conf$$.file
23160
23161 if mkdir -p . 2>/dev/null; then
23162   as_mkdir_p=:
23163 else
23164   as_mkdir_p=false
23165 fi
23166
23167 as_executable_p="test -f"
23168
23169 # Sed expression to map a string onto a valid CPP name.
23170 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23171
23172 # Sed expression to map a string onto a valid variable name.
23173 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23174
23175
23176 # IFS
23177 # We need space, tab and new line, in precisely that order.
23178 as_nl='
23179 '
23180 IFS="   $as_nl"
23181
23182 # CDPATH.
23183 $as_unset CDPATH
23184
23185 exec 6>&1
23186
23187 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23188 # report actual input values of CONFIG_FILES etc. instead of their
23189 # values after options handling.  Logging --version etc. is OK.
23190 exec 5>>config.log
23191 {
23192   echo
23193   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23194 ## Running $as_me. ##
23195 _ASBOX
23196 } >&5
23197 cat >&5 <<_CSEOF
23198
23199 This file was extended by [LLVM] $as_me [1.0], which was
23200 generated by GNU Autoconf 2.57.  Invocation command line was
23201
23202   CONFIG_FILES    = $CONFIG_FILES
23203   CONFIG_HEADERS  = $CONFIG_HEADERS
23204   CONFIG_LINKS    = $CONFIG_LINKS
23205   CONFIG_COMMANDS = $CONFIG_COMMANDS
23206   $ $0 $@
23207
23208 _CSEOF
23209 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23210 echo >&5
23211 _ACEOF
23212
23213 # Files that config.status was made for.
23214 if test -n "$ac_config_files"; then
23215   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23216 fi
23217
23218 if test -n "$ac_config_headers"; then
23219   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23220 fi
23221
23222 if test -n "$ac_config_links"; then
23223   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23224 fi
23225
23226 if test -n "$ac_config_commands"; then
23227   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23228 fi
23229
23230 cat >>$CONFIG_STATUS <<\_ACEOF
23231
23232 ac_cs_usage="\
23233 \`$as_me' instantiates files from templates according to the
23234 current configuration.
23235
23236 Usage: $0 [OPTIONS] [FILE]...
23237
23238   -h, --help       print this help, then exit
23239   -V, --version    print version number, then exit
23240   -q, --quiet      do not print progress messages
23241   -d, --debug      don't remove temporary files
23242       --recheck    update $as_me by reconfiguring in the same conditions
23243   --file=FILE[:TEMPLATE]
23244                    instantiate the configuration file FILE
23245   --header=FILE[:TEMPLATE]
23246                    instantiate the configuration header FILE
23247
23248 Configuration files:
23249 $config_files
23250
23251 Configuration headers:
23252 $config_headers
23253
23254 Configuration commands:
23255 $config_commands
23256
23257 Report bugs to <bug-autoconf@gnu.org>."
23258 _ACEOF
23259
23260 cat >>$CONFIG_STATUS <<_ACEOF
23261 ac_cs_version="\\
23262 [LLVM] config.status [1.0]
23263 configured by $0, generated by GNU Autoconf 2.57,
23264   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23265
23266 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23267 Free Software Foundation, Inc.
23268 This config.status script is free software; the Free Software Foundation
23269 gives unlimited permission to copy, distribute and modify it."
23270 srcdir=$srcdir
23271 INSTALL="$INSTALL"
23272 _ACEOF
23273
23274 cat >>$CONFIG_STATUS <<\_ACEOF
23275 # If no file are specified by the user, then we need to provide default
23276 # value.  By we need to know if files were specified by the user.
23277 ac_need_defaults=:
23278 while test $# != 0
23279 do
23280   case $1 in
23281   --*=*)
23282     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23283     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23284     ac_shift=:
23285     ;;
23286   -*)
23287     ac_option=$1
23288     ac_optarg=$2
23289     ac_shift=shift
23290     ;;
23291   *) # This is not an option, so the user has probably given explicit
23292      # arguments.
23293      ac_option=$1
23294      ac_need_defaults=false;;
23295   esac
23296
23297   case $ac_option in
23298   # Handling of the options.
23299 _ACEOF
23300 cat >>$CONFIG_STATUS <<\_ACEOF
23301   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23302     ac_cs_recheck=: ;;
23303   --version | --vers* | -V )
23304     echo "$ac_cs_version"; exit 0 ;;
23305   --he | --h)
23306     # Conflict between --help and --header
23307     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23308 Try \`$0 --help' for more information." >&5
23309 echo "$as_me: error: ambiguous option: $1
23310 Try \`$0 --help' for more information." >&2;}
23311    { (exit 1); exit 1; }; };;
23312   --help | --hel | -h )
23313     echo "$ac_cs_usage"; exit 0 ;;
23314   --debug | --d* | -d )
23315     debug=: ;;
23316   --file | --fil | --fi | --f )
23317     $ac_shift
23318     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23319     ac_need_defaults=false;;
23320   --header | --heade | --head | --hea )
23321     $ac_shift
23322     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23323     ac_need_defaults=false;;
23324   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23325   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23326     ac_cs_silent=: ;;
23327
23328   # This is an error.
23329   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23330 Try \`$0 --help' for more information." >&5
23331 echo "$as_me: error: unrecognized option: $1
23332 Try \`$0 --help' for more information." >&2;}
23333    { (exit 1); exit 1; }; } ;;
23334
23335   *) ac_config_targets="$ac_config_targets $1" ;;
23336
23337   esac
23338   shift
23339 done
23340
23341 ac_configure_extra_args=
23342
23343 if $ac_cs_silent; then
23344   exec 6>/dev/null
23345   ac_configure_extra_args="$ac_configure_extra_args --silent"
23346 fi
23347
23348 _ACEOF
23349 cat >>$CONFIG_STATUS <<_ACEOF
23350 if \$ac_cs_recheck; then
23351   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23352   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23353 fi
23354
23355 _ACEOF
23356
23357 cat >>$CONFIG_STATUS <<_ACEOF
23358 #
23359 # INIT-COMMANDS section.
23360 #
23361
23362 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23363 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23364 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23365 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23366 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23367 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23368 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23369 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23370 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23371 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23372 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23373 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23374 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23375 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23376 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23377 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23378 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23379 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23380 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23381 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23382 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23383 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23384 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23385 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23386 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23387 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23388 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23389 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23390 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23391 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23392 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23393 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23394 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23395 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23396 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23397 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23398 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23399 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23400 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23401 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23402 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23403 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23404 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23405 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23406 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23407 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23408 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23409 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23410 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23411 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23412 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23413 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23414 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23415 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23416 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23417 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23418 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23419 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23420 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23421 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23422 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23423 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23424 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23454 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23455 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23456 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23457 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23458 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23459 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23460 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23461 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23462 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23463 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23464 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23465 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23466 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23467 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23468 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23469 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23470 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23471 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23472 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23473 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23474 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23475 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23476 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23477 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23478 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23479 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23480 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23481 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23482 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23483 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23484 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23485 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23486 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23487 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23488 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23489 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23490 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23491 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23492 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23493 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23494 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23495 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23496 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23497 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23498 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23499 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23500 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23501 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23502 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23503 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23504 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23505 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23506 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
23507 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23508 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
23509 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
23510 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23511 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23512 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23513 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23514 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23515 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23516 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23517 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23518 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23519 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23520 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23521 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23522 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23523 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23524 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23525 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23526 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23527 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23528 ${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23529 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23530 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23531 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23532 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23533 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23534 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23535 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23536 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23537 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23538 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23539 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23540 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23541
23542 _ACEOF
23543
23544
23545
23546 cat >>$CONFIG_STATUS <<\_ACEOF
23547 for ac_config_target in $ac_config_targets
23548 do
23549   case "$ac_config_target" in
23550   # Handling of arguments.
23551   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23552   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23553   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23554   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23555   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23556   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23557   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23558   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23559   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23560   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23561   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23562   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23563   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23564   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23565   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23566   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23567   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23568   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23569   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23570   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23571   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23572   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23573   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23574   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23575   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23576   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23577   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23578   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23579   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23580   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23581   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23582   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23583   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23584   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23585   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23586   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23587   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23588   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23589   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23590   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23591   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23592   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23593   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23594   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23595   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23596   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23597   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23598   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23599   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23600   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23601   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23602   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23603   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23604   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23605   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23606   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23607   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23608   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23609   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23610   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23611   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23612   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23613   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23614   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23615   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23616   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23617   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23618   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23619   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23620   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23621   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23622   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23623   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23624   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23625   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23626   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23627   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23628   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23629   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23630   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23631   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23632   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23633   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23634   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23635   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23636   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23637   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23638   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23639   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23640   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23641   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23642   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23643   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23644   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23645   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23646   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23647   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23648   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23649   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23650   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23651   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23652   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23653   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23654   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23655   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23656   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23657   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23658   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23659   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23660   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23661   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23662   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23663   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23664   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23665   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23666   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23667   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23668   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23669   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23670   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23671   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23672   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23673   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23674   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23675   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23676   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23677   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23678   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23679   "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23680   "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23681   "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23682   "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23683   "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23684   "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23685   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23686   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23687   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23688   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23689   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23690   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23691   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23692   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23693   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23694   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23695   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23696   "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
23697   "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23698   "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
23699   "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
23700   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23701   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23702   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23703   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23704   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23705   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23706   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23707   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23708   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23709   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23710   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23711   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23712   "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23713   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23714   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23715   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23716   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23717   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23718   "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23719   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23720   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23721   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23722   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23723   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23724   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23725   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23726   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23727   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23728   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23729   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23730   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23731   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23732   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23733 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23734    { (exit 1); exit 1; }; };;
23735   esac
23736 done
23737
23738 # If the user did not use the arguments to specify the items to instantiate,
23739 # then the envvar interface is used.  Set only those that are not.
23740 # We use the long form for the default assignment because of an extremely
23741 # bizarre bug on SunOS 4.1.3.
23742 if $ac_need_defaults; then
23743   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23744   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23745   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23746 fi
23747
23748 # Have a temporary directory for convenience.  Make it in the build tree
23749 # simply because there is no reason to put it here, and in addition,
23750 # creating and moving files from /tmp can sometimes cause problems.
23751 # Create a temporary directory, and hook for its removal unless debugging.
23752 $debug ||
23753 {
23754   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23755   trap '{ (exit 1); exit 1; }' 1 2 13 15
23756 }
23757
23758 # Create a (secure) tmp directory for tmp files.
23759
23760 {
23761   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23762   test -n "$tmp" && test -d "$tmp"
23763 }  ||
23764 {
23765   tmp=./confstat$$-$RANDOM
23766   (umask 077 && mkdir $tmp)
23767 } ||
23768 {
23769    echo "$me: cannot create a temporary directory in ." >&2
23770    { (exit 1); exit 1; }
23771 }
23772
23773 _ACEOF
23774
23775 cat >>$CONFIG_STATUS <<_ACEOF
23776
23777 #
23778 # CONFIG_FILES section.
23779 #
23780
23781 # No need to generate the scripts if there are no CONFIG_FILES.
23782 # This happens for instance when ./config.status config.h
23783 if test -n "\$CONFIG_FILES"; then
23784   # Protect against being on the right side of a sed subst in config.status.
23785   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23786    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23787 s,@SHELL@,$SHELL,;t t
23788 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23789 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23790 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23791 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23792 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23793 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23794 s,@exec_prefix@,$exec_prefix,;t t
23795 s,@prefix@,$prefix,;t t
23796 s,@program_transform_name@,$program_transform_name,;t t
23797 s,@bindir@,$bindir,;t t
23798 s,@sbindir@,$sbindir,;t t
23799 s,@libexecdir@,$libexecdir,;t t
23800 s,@datadir@,$datadir,;t t
23801 s,@sysconfdir@,$sysconfdir,;t t
23802 s,@sharedstatedir@,$sharedstatedir,;t t
23803 s,@localstatedir@,$localstatedir,;t t
23804 s,@libdir@,$libdir,;t t
23805 s,@includedir@,$includedir,;t t
23806 s,@oldincludedir@,$oldincludedir,;t t
23807 s,@infodir@,$infodir,;t t
23808 s,@mandir@,$mandir,;t t
23809 s,@build_alias@,$build_alias,;t t
23810 s,@host_alias@,$host_alias,;t t
23811 s,@target_alias@,$target_alias,;t t
23812 s,@DEFS@,$DEFS,;t t
23813 s,@ECHO_C@,$ECHO_C,;t t
23814 s,@ECHO_N@,$ECHO_N,;t t
23815 s,@ECHO_T@,$ECHO_T,;t t
23816 s,@LIBS@,$LIBS,;t t
23817 s,@subdirs@,$subdirs,;t t
23818 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23819 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23820 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23821 s,@build@,$build,;t t
23822 s,@build_cpu@,$build_cpu,;t t
23823 s,@build_vendor@,$build_vendor,;t t
23824 s,@build_os@,$build_os,;t t
23825 s,@host@,$host,;t t
23826 s,@host_cpu@,$host_cpu,;t t
23827 s,@host_vendor@,$host_vendor,;t t
23828 s,@host_os@,$host_os,;t t
23829 s,@target@,$target,;t t
23830 s,@target_cpu@,$target_cpu,;t t
23831 s,@target_vendor@,$target_vendor,;t t
23832 s,@target_os@,$target_os,;t t
23833 s,@OS@,$OS,;t t
23834 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23835 s,@ARCH@,$ARCH,;t t
23836 s,@CXX@,$CXX,;t t
23837 s,@CXXFLAGS@,$CXXFLAGS,;t t
23838 s,@LDFLAGS@,$LDFLAGS,;t t
23839 s,@CPPFLAGS@,$CPPFLAGS,;t t
23840 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23841 s,@EXEEXT@,$EXEEXT,;t t
23842 s,@OBJEXT@,$OBJEXT,;t t
23843 s,@CC@,$CC,;t t
23844 s,@CFLAGS@,$CFLAGS,;t t
23845 s,@ac_ct_CC@,$ac_ct_CC,;t t
23846 s,@CPP@,$CPP,;t t
23847 s,@ifGNUmake@,$ifGNUmake,;t t
23848 s,@LEX@,$LEX,;t t
23849 s,@LEXLIB@,$LEXLIB,;t t
23850 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23851 s,@YACC@,$YACC,;t t
23852 s,@EGREP@,$EGREP,;t t
23853 s,@LN_S@,$LN_S,;t t
23854 s,@ECHO@,$ECHO,;t t
23855 s,@AR@,$AR,;t t
23856 s,@ac_ct_AR@,$ac_ct_AR,;t t
23857 s,@RANLIB@,$RANLIB,;t t
23858 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23859 s,@STRIP@,$STRIP,;t t
23860 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23861 s,@CXXCPP@,$CXXCPP,;t t
23862 s,@F77@,$F77,;t t
23863 s,@FFLAGS@,$FFLAGS,;t t
23864 s,@ac_ct_F77@,$ac_ct_F77,;t t
23865 s,@LIBTOOL@,$LIBTOOL,;t t
23866 s,@RPWD@,$RPWD,;t t
23867 s,@SED@,$SED,;t t
23868 s,@RM@,$RM,;t t
23869 s,@MKDIR@,$MKDIR,;t t
23870 s,@DATE@,$DATE,;t t
23871 s,@MV@,$MV,;t t
23872 s,@DOT@,$DOT,;t t
23873 s,@ETAGS@,$ETAGS,;t t
23874 s,@PYTHON@,$PYTHON,;t t
23875 s,@QMTEST@,$QMTEST,;t t
23876 s,@ALLOCA@,$ALLOCA,;t t
23877 s,@LIBOBJS@,$LIBOBJS,;t t
23878 s,@MMAP_FILE@,$MMAP_FILE,;t t
23879 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23880 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23881 s,@USE_SPEC@,$USE_SPEC,;t t
23882 s,@UPB@,$UPB,;t t
23883 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23884 s,@JIT@,$JIT,;t t
23885 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23886 s,@BCR@,$BCR,;t t
23887 s,@PAPIDIR@,$PAPIDIR,;t t
23888 s,@PURIFY@,$PURIFY,;t t
23889 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23890 CEOF
23891
23892 _ACEOF
23893
23894   cat >>$CONFIG_STATUS <<\_ACEOF
23895   # Split the substitutions into bite-sized pieces for seds with
23896   # small command number limits, like on Digital OSF/1 and HP-UX.
23897   ac_max_sed_lines=48
23898   ac_sed_frag=1 # Number of current file.
23899   ac_beg=1 # First line for current file.
23900   ac_end=$ac_max_sed_lines # Line after last line for current file.
23901   ac_more_lines=:
23902   ac_sed_cmds=
23903   while $ac_more_lines; do
23904     if test $ac_beg -gt 1; then
23905       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23906     else
23907       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23908     fi
23909     if test ! -s $tmp/subs.frag; then
23910       ac_more_lines=false
23911     else
23912       # The purpose of the label and of the branching condition is to
23913       # speed up the sed processing (if there are no `@' at all, there
23914       # is no need to browse any of the substitutions).
23915       # These are the two extra sed commands mentioned above.
23916       (echo ':t
23917   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23918       if test -z "$ac_sed_cmds"; then
23919         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23920       else
23921         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23922       fi
23923       ac_sed_frag=`expr $ac_sed_frag + 1`
23924       ac_beg=$ac_end
23925       ac_end=`expr $ac_end + $ac_max_sed_lines`
23926     fi
23927   done
23928   if test -z "$ac_sed_cmds"; then
23929     ac_sed_cmds=cat
23930   fi
23931 fi # test -n "$CONFIG_FILES"
23932
23933 _ACEOF
23934 cat >>$CONFIG_STATUS <<\_ACEOF
23935 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23936   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23937   case $ac_file in
23938   - | *:- | *:-:* ) # input from stdin
23939         cat >$tmp/stdin
23940         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23941         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23942   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23943         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23944   * )   ac_file_in=$ac_file.in ;;
23945   esac
23946
23947   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23948   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23949 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23950          X"$ac_file" : 'X\(//\)[^/]' \| \
23951          X"$ac_file" : 'X\(//\)$' \| \
23952          X"$ac_file" : 'X\(/\)' \| \
23953          .     : '\(.\)' 2>/dev/null ||
23954 echo X"$ac_file" |
23955     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23956           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23957           /^X\(\/\/\)$/{ s//\1/; q; }
23958           /^X\(\/\).*/{ s//\1/; q; }
23959           s/.*/./; q'`
23960   { if $as_mkdir_p; then
23961     mkdir -p "$ac_dir"
23962   else
23963     as_dir="$ac_dir"
23964     as_dirs=
23965     while test ! -d "$as_dir"; do
23966       as_dirs="$as_dir $as_dirs"
23967       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23969          X"$as_dir" : 'X\(//\)[^/]' \| \
23970          X"$as_dir" : 'X\(//\)$' \| \
23971          X"$as_dir" : 'X\(/\)' \| \
23972          .     : '\(.\)' 2>/dev/null ||
23973 echo X"$as_dir" |
23974     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23975           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23976           /^X\(\/\/\)$/{ s//\1/; q; }
23977           /^X\(\/\).*/{ s//\1/; q; }
23978           s/.*/./; q'`
23979     done
23980     test ! -n "$as_dirs" || mkdir $as_dirs
23981   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23982 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23983    { (exit 1); exit 1; }; }; }
23984
23985   ac_builddir=.
23986
23987 if test "$ac_dir" != .; then
23988   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23989   # A "../" for each directory in $ac_dir_suffix.
23990   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23991 else
23992   ac_dir_suffix= ac_top_builddir=
23993 fi
23994
23995 case $srcdir in
23996   .)  # No --srcdir option.  We are building in place.
23997     ac_srcdir=.
23998     if test -z "$ac_top_builddir"; then
23999        ac_top_srcdir=.
24000     else
24001        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24002     fi ;;
24003   [\\/]* | ?:[\\/]* )  # Absolute path.
24004     ac_srcdir=$srcdir$ac_dir_suffix;
24005     ac_top_srcdir=$srcdir ;;
24006   *) # Relative path.
24007     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24008     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24009 esac
24010 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24011 # absolute.
24012 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24013 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24014 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24015 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24016
24017
24018   case $INSTALL in
24019   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24020   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24021   esac
24022
24023   if test x"$ac_file" != x-; then
24024     { echo "$as_me:$LINENO: creating $ac_file" >&5
24025 echo "$as_me: creating $ac_file" >&6;}
24026     rm -f "$ac_file"
24027   fi
24028   # Let's still pretend it is `configure' which instantiates (i.e., don't
24029   # use $as_me), people would be surprised to read:
24030   #    /* config.h.  Generated by config.status.  */
24031   if test x"$ac_file" = x-; then
24032     configure_input=
24033   else
24034     configure_input="$ac_file.  "
24035   fi
24036   configure_input=$configure_input"Generated from `echo $ac_file_in |
24037                                      sed 's,.*/,,'` by configure."
24038
24039   # First look for the input files in the build tree, otherwise in the
24040   # src tree.
24041   ac_file_inputs=`IFS=:
24042     for f in $ac_file_in; do
24043       case $f in
24044       -) echo $tmp/stdin ;;
24045       [\\/$]*)
24046          # Absolute (can't be DOS-style, as IFS=:)
24047          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24048 echo "$as_me: error: cannot find input file: $f" >&2;}
24049    { (exit 1); exit 1; }; }
24050          echo $f;;
24051       *) # Relative
24052          if test -f "$f"; then
24053            # Build tree
24054            echo $f
24055          elif test -f "$srcdir/$f"; then
24056            # Source tree
24057            echo $srcdir/$f
24058          else
24059            # /dev/null tree
24060            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24061 echo "$as_me: error: cannot find input file: $f" >&2;}
24062    { (exit 1); exit 1; }; }
24063          fi;;
24064       esac
24065     done` || { (exit 1); exit 1; }
24066 _ACEOF
24067 cat >>$CONFIG_STATUS <<_ACEOF
24068   sed "$ac_vpsub
24069 $extrasub
24070 _ACEOF
24071 cat >>$CONFIG_STATUS <<\_ACEOF
24072 :t
24073 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24074 s,@configure_input@,$configure_input,;t t
24075 s,@srcdir@,$ac_srcdir,;t t
24076 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24077 s,@top_srcdir@,$ac_top_srcdir,;t t
24078 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24079 s,@builddir@,$ac_builddir,;t t
24080 s,@abs_builddir@,$ac_abs_builddir,;t t
24081 s,@top_builddir@,$ac_top_builddir,;t t
24082 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24083 s,@INSTALL@,$ac_INSTALL,;t t
24084 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24085   rm -f $tmp/stdin
24086   if test x"$ac_file" != x-; then
24087     mv $tmp/out $ac_file
24088   else
24089     cat $tmp/out
24090     rm -f $tmp/out
24091   fi
24092
24093 done
24094 _ACEOF
24095 cat >>$CONFIG_STATUS <<\_ACEOF
24096
24097 #
24098 # CONFIG_HEADER section.
24099 #
24100
24101 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24102 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24103 #
24104 # ac_d sets the value in "#define NAME VALUE" lines.
24105 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24106 ac_dB='[        ].*$,\1#\2'
24107 ac_dC=' '
24108 ac_dD=',;t'
24109 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24110 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24111 ac_uB='$,\1#\2define\3'
24112 ac_uC=' '
24113 ac_uD=',;t'
24114
24115 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24116   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24117   case $ac_file in
24118   - | *:- | *:-:* ) # input from stdin
24119         cat >$tmp/stdin
24120         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24121         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24122   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24123         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24124   * )   ac_file_in=$ac_file.in ;;
24125   esac
24126
24127   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24128 echo "$as_me: creating $ac_file" >&6;}
24129
24130   # First look for the input files in the build tree, otherwise in the
24131   # src tree.
24132   ac_file_inputs=`IFS=:
24133     for f in $ac_file_in; do
24134       case $f in
24135       -) echo $tmp/stdin ;;
24136       [\\/$]*)
24137          # Absolute (can't be DOS-style, as IFS=:)
24138          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24139 echo "$as_me: error: cannot find input file: $f" >&2;}
24140    { (exit 1); exit 1; }; }
24141          echo $f;;
24142       *) # Relative
24143          if test -f "$f"; then
24144            # Build tree
24145            echo $f
24146          elif test -f "$srcdir/$f"; then
24147            # Source tree
24148            echo $srcdir/$f
24149          else
24150            # /dev/null tree
24151            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24152 echo "$as_me: error: cannot find input file: $f" >&2;}
24153    { (exit 1); exit 1; }; }
24154          fi;;
24155       esac
24156     done` || { (exit 1); exit 1; }
24157   # Remove the trailing spaces.
24158   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24159
24160 _ACEOF
24161
24162 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24163 # `conftest.undefs', that substitutes the proper values into
24164 # config.h.in to produce config.h.  The first handles `#define'
24165 # templates, and the second `#undef' templates.
24166 # And first: Protect against being on the right side of a sed subst in
24167 # config.status.  Protect against being in an unquoted here document
24168 # in config.status.
24169 rm -f conftest.defines conftest.undefs
24170 # Using a here document instead of a string reduces the quoting nightmare.
24171 # Putting comments in sed scripts is not portable.
24172 #
24173 # `end' is used to avoid that the second main sed command (meant for
24174 # 0-ary CPP macros) applies to n-ary macro definitions.
24175 # See the Autoconf documentation for `clear'.
24176 cat >confdef2sed.sed <<\_ACEOF
24177 s/[\\&,]/\\&/g
24178 s,[\\$`],\\&,g
24179 t clear
24180 : clear
24181 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24182 t end
24183 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24184 : end
24185 _ACEOF
24186 # If some macros were called several times there might be several times
24187 # the same #defines, which is useless.  Nevertheless, we may not want to
24188 # sort them, since we want the *last* AC-DEFINE to be honored.
24189 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24190 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24191 rm -f confdef2sed.sed
24192
24193 # This sed command replaces #undef with comments.  This is necessary, for
24194 # example, in the case of _POSIX_SOURCE, which is predefined and required
24195 # on some systems where configure will not decide to define it.
24196 cat >>conftest.undefs <<\_ACEOF
24197 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24198 _ACEOF
24199
24200 # Break up conftest.defines because some shells have a limit on the size
24201 # of here documents, and old seds have small limits too (100 cmds).
24202 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24203 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24204 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24205 echo '  :' >>$CONFIG_STATUS
24206 rm -f conftest.tail
24207 while grep . conftest.defines >/dev/null
24208 do
24209   # Write a limited-size here document to $tmp/defines.sed.
24210   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24211   # Speed up: don't consider the non `#define' lines.
24212   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24213   # Work around the forget-to-reset-the-flag bug.
24214   echo 't clr' >>$CONFIG_STATUS
24215   echo ': clr' >>$CONFIG_STATUS
24216   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24217   echo 'CEOF
24218   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24219   rm -f $tmp/in
24220   mv $tmp/out $tmp/in
24221 ' >>$CONFIG_STATUS
24222   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24223   rm -f conftest.defines
24224   mv conftest.tail conftest.defines
24225 done
24226 rm -f conftest.defines
24227 echo '  fi # grep' >>$CONFIG_STATUS
24228 echo >>$CONFIG_STATUS
24229
24230 # Break up conftest.undefs because some shells have a limit on the size
24231 # of here documents, and old seds have small limits too (100 cmds).
24232 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24233 rm -f conftest.tail
24234 while grep . conftest.undefs >/dev/null
24235 do
24236   # Write a limited-size here document to $tmp/undefs.sed.
24237   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24238   # Speed up: don't consider the non `#undef'
24239   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24240   # Work around the forget-to-reset-the-flag bug.
24241   echo 't clr' >>$CONFIG_STATUS
24242   echo ': clr' >>$CONFIG_STATUS
24243   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24244   echo 'CEOF
24245   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24246   rm -f $tmp/in
24247   mv $tmp/out $tmp/in
24248 ' >>$CONFIG_STATUS
24249   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24250   rm -f conftest.undefs
24251   mv conftest.tail conftest.undefs
24252 done
24253 rm -f conftest.undefs
24254
24255 cat >>$CONFIG_STATUS <<\_ACEOF
24256   # Let's still pretend it is `configure' which instantiates (i.e., don't
24257   # use $as_me), people would be surprised to read:
24258   #    /* config.h.  Generated by config.status.  */
24259   if test x"$ac_file" = x-; then
24260     echo "/* Generated by configure.  */" >$tmp/config.h
24261   else
24262     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24263   fi
24264   cat $tmp/in >>$tmp/config.h
24265   rm -f $tmp/in
24266   if test x"$ac_file" != x-; then
24267     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24268       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24269 echo "$as_me: $ac_file is unchanged" >&6;}
24270     else
24271       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24272 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24273          X"$ac_file" : 'X\(//\)[^/]' \| \
24274          X"$ac_file" : 'X\(//\)$' \| \
24275          X"$ac_file" : 'X\(/\)' \| \
24276          .     : '\(.\)' 2>/dev/null ||
24277 echo X"$ac_file" |
24278     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24279           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24280           /^X\(\/\/\)$/{ s//\1/; q; }
24281           /^X\(\/\).*/{ s//\1/; q; }
24282           s/.*/./; q'`
24283       { if $as_mkdir_p; then
24284     mkdir -p "$ac_dir"
24285   else
24286     as_dir="$ac_dir"
24287     as_dirs=
24288     while test ! -d "$as_dir"; do
24289       as_dirs="$as_dir $as_dirs"
24290       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24291 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24292          X"$as_dir" : 'X\(//\)[^/]' \| \
24293          X"$as_dir" : 'X\(//\)$' \| \
24294          X"$as_dir" : 'X\(/\)' \| \
24295          .     : '\(.\)' 2>/dev/null ||
24296 echo X"$as_dir" |
24297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24298           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24299           /^X\(\/\/\)$/{ s//\1/; q; }
24300           /^X\(\/\).*/{ s//\1/; q; }
24301           s/.*/./; q'`
24302     done
24303     test ! -n "$as_dirs" || mkdir $as_dirs
24304   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24305 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24306    { (exit 1); exit 1; }; }; }
24307
24308       rm -f $ac_file
24309       mv $tmp/config.h $ac_file
24310     fi
24311   else
24312     cat $tmp/config.h
24313     rm -f $tmp/config.h
24314   fi
24315 done
24316 _ACEOF
24317 cat >>$CONFIG_STATUS <<\_ACEOF
24318
24319 #
24320 # CONFIG_COMMANDS section.
24321 #
24322 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24323   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24324   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24325   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24326 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24327          X"$ac_dest" : 'X\(//\)[^/]' \| \
24328          X"$ac_dest" : 'X\(//\)$' \| \
24329          X"$ac_dest" : 'X\(/\)' \| \
24330          .     : '\(.\)' 2>/dev/null ||
24331 echo X"$ac_dest" |
24332     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24333           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24334           /^X\(\/\/\)$/{ s//\1/; q; }
24335           /^X\(\/\).*/{ s//\1/; q; }
24336           s/.*/./; q'`
24337   ac_builddir=.
24338
24339 if test "$ac_dir" != .; then
24340   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24341   # A "../" for each directory in $ac_dir_suffix.
24342   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24343 else
24344   ac_dir_suffix= ac_top_builddir=
24345 fi
24346
24347 case $srcdir in
24348   .)  # No --srcdir option.  We are building in place.
24349     ac_srcdir=.
24350     if test -z "$ac_top_builddir"; then
24351        ac_top_srcdir=.
24352     else
24353        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24354     fi ;;
24355   [\\/]* | ?:[\\/]* )  # Absolute path.
24356     ac_srcdir=$srcdir$ac_dir_suffix;
24357     ac_top_srcdir=$srcdir ;;
24358   *) # Relative path.
24359     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24360     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24361 esac
24362 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24363 # absolute.
24364 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24365 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24366 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24367 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24368
24369
24370   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24371 echo "$as_me: executing $ac_dest commands" >&6;}
24372   case $ac_dest in
24373     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24374     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24375     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24376     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24377     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24378     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24379     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24380     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24381     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24382     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24383     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24384     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24385     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24386     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24387     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24388     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24389     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24390     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24391     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24392     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24393     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24394     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24395     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24396     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24397     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24398     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24399     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24400     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24401     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24402     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24403     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24404     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24405     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24406     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24407     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24408     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24409     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24410     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24411     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24412     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24413     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24414     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24415     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24416     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24417     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24418     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24419     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24420     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24421     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24422     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24423     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24424     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24425     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24426     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24427     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24428     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24429     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24430     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24431     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24432     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24433     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24434     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24435     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24436     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24437     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24438     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24439     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24440     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24441     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24442     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24443     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24444     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 ;;
24445     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 ;;
24446     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 ;;
24447     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 ;;
24448     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 ;;
24449     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 ;;
24450     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 ;;
24451     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 ;;
24452     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 ;;
24453     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 ;;
24454     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 ;;
24455     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 ;;
24456     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 ;;
24457     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 ;;
24458     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 ;;
24459     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 ;;
24460     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24461     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24462     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24463     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24464     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 ;;
24465     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 ;;
24466     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 ;;
24467     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24468     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 ;;
24469     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 ;;
24470     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 ;;
24471     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 ;;
24472     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 ;;
24473     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 ;;
24474     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 ;;
24475     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 ;;
24476     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 ;;
24477     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 ;;
24478     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 ;;
24479     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 ;;
24480     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 ;;
24481     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 ;;
24482     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 ;;
24483     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 ;;
24484     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 ;;
24485     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 ;;
24486     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 ;;
24487     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 ;;
24488     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 ;;
24489     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 ;;
24490     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 ;;
24491     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 ;;
24492     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 ;;
24493     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 ;;
24494     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 ;;
24495     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 ;;
24496     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 ;;
24497     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 ;;
24498     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 ;;
24499     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 ;;
24500     test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24501     test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24502     test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24503     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 ;;
24504     test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24505     test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24506     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24507     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24508     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24509     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24510     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 ;;
24511     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 ;;
24512     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 ;;
24513     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 ;;
24514     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24515     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24516     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 ;;
24517     test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
24518     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 ;;
24519     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 ;;
24520     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 ;;
24521     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24522     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24523     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24524     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24525     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24526     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24527     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24528     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24529     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24530     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24531     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24532     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24533     tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24534     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24535     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24536     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24537     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24538     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24539     www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24540     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24541     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24542     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24543     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24544     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24545     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24546     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24547     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24548     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24549     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24550     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24551     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24552   esac
24553 done
24554 _ACEOF
24555
24556 cat >>$CONFIG_STATUS <<\_ACEOF
24557
24558 { (exit 0); exit 0; }
24559 _ACEOF
24560 chmod +x $CONFIG_STATUS
24561 ac_clean_files=$ac_clean_files_save
24562
24563
24564 # configure is writing to config.log, and then calls config.status.
24565 # config.status does its own redirection, appending to config.log.
24566 # Unfortunately, on DOS this fails, as config.log is still kept open
24567 # by configure, so config.status won't be able to write to it; its
24568 # output is simply discarded.  So we exec the FD to /dev/null,
24569 # effectively closing config.log, so it can be properly (re)opened and
24570 # appended to by config.status.  When coming back to configure, we
24571 # need to make the FD available again.
24572 if test "$no_create" != yes; then
24573   ac_cs_success=:
24574   ac_config_status_args=
24575   test "$silent" = yes &&
24576     ac_config_status_args="$ac_config_status_args --quiet"
24577   exec 5>/dev/null
24578   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24579   exec 5>>config.log
24580   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24581   # would make configure fail if this is the last instruction.
24582   $ac_cs_success || { (exit 1); exit 1; }
24583 fi
24584
24585 #
24586 # CONFIG_SUBDIRS section.
24587 #
24588 if test "$no_recursion" != yes; then
24589
24590   # Remove --cache-file and --srcdir arguments so they do not pile up.
24591   ac_sub_configure_args=
24592   ac_prev=
24593   for ac_arg in $ac_configure_args; do
24594     if test -n "$ac_prev"; then
24595       ac_prev=
24596       continue
24597     fi
24598     case $ac_arg in
24599     -cache-file | --cache-file | --cache-fil | --cache-fi \
24600     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24601       ac_prev=cache_file ;;
24602     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24603     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24604     | --c=*)
24605       ;;
24606     --config-cache | -C)
24607       ;;
24608     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24609       ac_prev=srcdir ;;
24610     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24611       ;;
24612     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24613       ac_prev=prefix ;;
24614     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24615       ;;
24616     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24617     esac
24618   done
24619
24620   # Always prepend --prefix to ensure using the same prefix
24621   # in subdir configurations.
24622   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24623
24624   ac_popdir=`pwd`
24625   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24626
24627     # Do not complain, so a configure script can configure whichever
24628     # parts of a large source tree are present.
24629     test -d $srcdir/$ac_dir || continue
24630
24631     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24632 echo "$as_me: configuring in $ac_dir" >&6;}
24633     { if $as_mkdir_p; then
24634     mkdir -p "$ac_dir"
24635   else
24636     as_dir="$ac_dir"
24637     as_dirs=
24638     while test ! -d "$as_dir"; do
24639       as_dirs="$as_dir $as_dirs"
24640       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24641 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24642          X"$as_dir" : 'X\(//\)[^/]' \| \
24643          X"$as_dir" : 'X\(//\)$' \| \
24644          X"$as_dir" : 'X\(/\)' \| \
24645          .     : '\(.\)' 2>/dev/null ||
24646 echo X"$as_dir" |
24647     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24648           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24649           /^X\(\/\/\)$/{ s//\1/; q; }
24650           /^X\(\/\).*/{ s//\1/; q; }
24651           s/.*/./; q'`
24652     done
24653     test ! -n "$as_dirs" || mkdir $as_dirs
24654   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24655 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24656    { (exit 1); exit 1; }; }; }
24657
24658     ac_builddir=.
24659
24660 if test "$ac_dir" != .; then
24661   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24662   # A "../" for each directory in $ac_dir_suffix.
24663   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24664 else
24665   ac_dir_suffix= ac_top_builddir=
24666 fi
24667
24668 case $srcdir in
24669   .)  # No --srcdir option.  We are building in place.
24670     ac_srcdir=.
24671     if test -z "$ac_top_builddir"; then
24672        ac_top_srcdir=.
24673     else
24674        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24675     fi ;;
24676   [\\/]* | ?:[\\/]* )  # Absolute path.
24677     ac_srcdir=$srcdir$ac_dir_suffix;
24678     ac_top_srcdir=$srcdir ;;
24679   *) # Relative path.
24680     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24681     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24682 esac
24683 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24684 # absolute.
24685 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24686 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24687 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24688 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24689
24690
24691     cd $ac_dir
24692
24693     # Check for guested configure; otherwise get Cygnus style configure.
24694     if test -f $ac_srcdir/configure.gnu; then
24695       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24696     elif test -f $ac_srcdir/configure; then
24697       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24698     elif test -f $ac_srcdir/configure.in; then
24699       ac_sub_configure=$ac_configure
24700     else
24701       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24702 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24703       ac_sub_configure=
24704     fi
24705
24706     # The recursion is here.
24707     if test -n "$ac_sub_configure"; then
24708       # Make the cache file name correct relative to the subdirectory.
24709       case $cache_file in
24710       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24711       *) # Relative path.
24712         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24713       esac
24714
24715       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24716 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24717       # The eval makes quoting arguments work.
24718       eval $ac_sub_configure $ac_sub_configure_args \
24719            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24720         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24721 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24722    { (exit 1); exit 1; }; }
24723     fi
24724
24725     cd $ac_popdir
24726   done
24727 fi
24728